:root {
  --app-bg: #050607;
  --surface: #0c1115;
  --text: #f6f7f8;
  --muted: #a5abb3;
  --line: #2a302d;
  --cyan: #12eac7;
  --teal: #02a88a;
  --gold: #ffc400;
  --gold-dark: #b97800;
  --silver: #e9edf2;
  --shadow: 0 18px 38px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

.bi {
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.bi::before {
  line-height: 1;
}

body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 50% -12%, rgba(255, 196, 0, 0.14), transparent 34%), #020304;
  color: var(--text);
  font-family: "Rajdhani", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background:
    radial-gradient(circle at 18% 14%, rgba(18, 234, 199, 0.12), transparent 27%),
    radial-gradient(circle at 86% 2%, rgba(255, 196, 0, 0.12), transparent 30%),
    linear-gradient(rgba(18, 234, 199, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 196, 0, 0.03) 1px, transparent 1px),
    var(--app-bg);
  background-size: auto, auto, 24px 24px, 24px 24px, auto;
  overflow-x: hidden;
  box-shadow: 0 0 0 1px rgba(255, 196, 0, 0.1), 0 0 48px rgba(0, 0, 0, 0.55);
}

.app-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  width: min(100%, 430px);
  height: 72px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(3, 5, 6, 0.93);
  border-bottom: 1px solid rgba(255, 196, 0, 0.22);
  backdrop-filter: blur(16px);
}

.brand {
  width: 148px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.profile-wrap {
  position: relative;
}

.profile-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 196, 0, 0.28);
  border-radius: 50%;
  background: linear-gradient(145deg, #101417, #050607);
  color: var(--gold);
  font-size: 25px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.profile-button i {
  width: 25px;
  height: 25px;
}

.profile-button:hover,
.profile-button:focus-visible,
.profile-button[aria-expanded="true"] {
  background: #151a1d;
  box-shadow: 0 10px 24px rgba(255, 196, 0, 0.18), 0 0 0 3px rgba(18, 234, 199, 0.08);
  transform: translateY(-1px);
}

.profile-button:active {
  transform: scale(0.96);
}

.profile-menu {
  position: absolute;
  top: 54px;
  right: 0;
  width: 168px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.profile-menu[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-align: left;
}

.profile-menu button i {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.profile-menu button:hover {
  background: rgba(255, 196, 0, 0.09);
  color: var(--cyan);
}

.app-content {
  padding: 82px 14px 100px;
}

.notice-marquee {
  height: 34px;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 196, 0, 0.32);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 196, 0, 0.16), rgba(18, 234, 199, 0.08));
  color: #ffe99a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.notice-track {
  width: max-content;
  display: inline-flex;
  animation: notice-marquee 18s linear infinite;
  will-change: transform;
}

.notice-track span {
  flex: 0 0 auto;
  padding-right: 42px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.35px;
  white-space: nowrap;
}

@keyframes notice-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.promo-banner {
  height: 100px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 196, 0, 0.22);
  border-radius: 8px;
  background: #030405;
  box-shadow: var(--shadow);
}

.promo-banner img {
  width: 100%;
  height: 100%;
  max-height: 100px;
  display: block;
  object-fit: cover;
}

.balance-panel {
  min-height: 150px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 196, 0, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 196, 0, 0.16), rgba(18, 234, 199, 0.07)),
    linear-gradient(135deg, #07090a 0%, #111619 55%, #060708 100%);
  color: white;
  box-shadow: var(--shadow);
}

.balance-panel::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: 16px;
  z-index: 0;
  width: 160px;
  height: 58px;
  border-top: 3px solid rgba(18, 234, 199, 0.68);
  border-right: 3px solid rgba(255, 196, 0, 0.68);
  pointer-events: none;
  transform: skewX(-24deg);
}

.balance-panel > * {
  position: relative;
  z-index: 1;
}

.balance-panel p {
  margin: 0 0 8px;
  color: rgba(233, 237, 242, 0.72);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.balance-panel h1 {
  margin: 0;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: 0;
}

.balance-panel .btn {
  min-width: 58px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, #fff1a8, var(--gold) 58%, #d89500);
  color: #07111f;
  font-weight: 900;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
  padding: 14px 10px;
  border: 1px solid rgba(255, 196, 0, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 196, 0, 0.1), rgba(255, 196, 0, 0.02)),
    linear-gradient(180deg, #11100b, #070707);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 241, 168, 0.08);
}

.action-tile {
  min-width: 0;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 4px;
  border: 1px solid rgba(255, 196, 0, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #18150d, #0b0a07);
  color: #f7e7ad;
  font-size: clamp(12px, 3vw, 14px);
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.15;
  text-align: center;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.action-tile span {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #fff6bd 0%, var(--gold) 48%, var(--gold-dark) 100%);
  color: #050607;
  font-size: 22px;
  box-shadow: 0 10px 22px rgba(255, 196, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.action-tile span i {
  width: 22px;
  height: 22px;
}

.action-tile:hover,
.action-tile:focus-visible {
  background: linear-gradient(180deg, #211b0d, #0f0d08);
  border-color: rgba(255, 196, 0, 0.48);
  box-shadow: inset 0 0 0 1px rgba(255, 241, 168, 0.08), 0 12px 26px rgba(0, 0, 0, 0.34);
  transform: translateY(-2px);
}

.action-tile:active {
  transform: scale(0.97);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 2px 12px;
}

.section-title h2 {
  margin: 0;
  color: var(--silver);
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.section-title a {
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.activity-list {
  padding-bottom: 12px;
}

.activity-item {
  min-height: 72px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 196, 0, 0.13);
  border-radius: 8px;
  background: linear-gradient(180deg, #101417, #080a0c);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.activity-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 19px;
}

.activity-icon i {
  width: 19px;
  height: 19px;
}

.activity-icon.success {
  background: rgba(18, 234, 199, 0.13);
  color: var(--cyan);
}

.activity-icon.warning {
  background: rgba(255, 196, 0, 0.14);
  color: var(--gold);
}

.activity-item h3,
.activity-item p {
  margin: 0;
}

.activity-item h3 {
  font-size: 15px;
  font-weight: 700;
}

.activity-item p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.activity-item strong {
  color: var(--gold);
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: 13px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: min(100%, 430px);
  min-height: 76px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(3, 5, 6, 0.94);
  border-top: 1px solid rgba(255, 196, 0, 0.2);
  backdrop-filter: blur(16px);
}

.bottom-nav a {
  min-width: 0;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  color: var(--muted);
  font-size: clamp(11px, 2.6vw, 12px);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.bottom-nav i {
  width: 24px;
  height: 24px;
  font-size: 21px;
}

.bottom-nav a.active,
.bottom-nav a:hover,
.bottom-nav a:focus-visible {
  background: linear-gradient(180deg, rgba(255, 196, 0, 0.14), rgba(18, 234, 199, 0.08));
  color: var(--gold);
  transform: translateY(-1px);
}

.bottom-nav a:active {
  transform: scale(0.97);
}

.login-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 28px 18px;
  background:
    radial-gradient(circle at 20% 12%, rgba(18, 234, 199, 0.16), transparent 28%),
    radial-gradient(circle at 84% 4%, rgba(255, 196, 0, 0.16), transparent 32%),
    linear-gradient(rgba(18, 234, 199, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 196, 0, 0.03) 1px, transparent 1px),
    var(--app-bg);
  background-size: auto, auto, 24px 24px, 24px 24px, auto;
}

.login-panel {
  width: 100%;
  padding: 26px 18px 22px;
  border: 1px solid rgba(255, 196, 0, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 196, 0, 0.08), rgba(18, 234, 199, 0.035)),
    linear-gradient(180deg, #101417, #070808);
  box-shadow: var(--shadow);
}

.login-logo {
  width: 190px;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

.login-heading {
  margin-bottom: 22px;
  text-align: center;
}

.login-heading p {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.login-heading h1 {
  margin: 0;
  color: var(--silver);
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: 24px;
  font-weight: 800;
}

.login-form {
  display: grid;
  gap: 15px;
}

.login-field {
  display: grid;
  gap: 7px;
}

.login-field > span {
  color: #f7e7ad;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.input-wrap {
  min-height: 52px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 196, 0, 0.2);
  border-radius: 8px;
  background: linear-gradient(180deg, #15120a, #090909);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-wrap:focus-within {
  border-color: rgba(255, 196, 0, 0.58);
  box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.1);
}

.input-wrap > i {
  width: 42px;
  height: 52px;
  color: var(--gold);
  font-size: 19px;
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
}

.input-wrap input::placeholder {
  color: rgba(165, 171, 179, 0.72);
}

.password-toggle {
  width: 44px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--gold);
}

.password-toggle i {
  width: 18px;
  height: 18px;
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.remember-me {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.remember-me input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.login-row a,
.signup-text a {
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.login-button {
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 5px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff1a8, var(--gold) 58%, #d89500);
  color: #060606;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.3px;
  box-shadow: 0 15px 26px rgba(255, 196, 0, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.login-button i {
  width: 18px;
  height: 18px;
}

.login-button:hover,
.login-button:focus-visible {
  box-shadow: 0 18px 32px rgba(255, 196, 0, 0.3);
  transform: translateY(-1px);
}

.login-button:active {
  transform: scale(0.98);
}

.signup-text {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 360px) {
  .app-header {
    padding-inline: 12px;
  }

  .brand {
    width: 128px;
  }

  .app-content {
    padding-inline: 10px;
  }

  .quick-actions {
    gap: 4px;
    padding-inline: 6px;
  }

  .action-tile span {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 13px;
    font-size: 19px;
  }

  .login-shell {
    padding-inline: 12px;
  }

  .login-logo {
    width: 170px;
    height: 106px;
  }
}
