@font-face {
  font-family: "Cormorant Garamond Local";
  src: url("/static/fonts/CormorantGaramond-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond Local";
  src: url("/static/fonts/CormorantGaramond-Italic-VariableFont_wght.ttf") format("truetype");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg-1: #02050a;
  --bg-2: #07131d;
  --panel: rgba(3, 13, 24, 0.9);
  --panel-soft: rgba(7, 20, 35, 0.82);
  --line: rgba(90, 214, 255, 0.16);
  --line-strong: rgba(131, 255, 218, 0.28);
  --text: #edf7fb;
  --muted: #91acba;
  --cyan: #70dfff;
  --mint: #84f0c3;
  --mint-strong: #54d8a6;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --accent: #16a34a;
  --accent-soft: #0ea5e9;
  --accent-muted: #94a3b8;
  --text-strong: #111827;
  --panel-bg: linear-gradient(160deg, rgba(22, 163, 74, 0.06), rgba(14, 165, 233, 0.08));
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Cormorant Garamond Local", Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(180deg, #f5f7fa 0%, #eef2f6 100%);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

.scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 32%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 60% 75%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px),
    radial-gradient(circle at 32% 58%, rgba(255, 255, 255, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 68%, rgba(255, 255, 255, 0.4) 0 1px, transparent 2px),
    radial-gradient(circle at 16% 84%, rgba(255, 255, 255, 0.45) 0 1px, transparent 2px);
  background-size: auto;
}

.scene-ring {
  position: absolute;
  border: 1px solid rgba(112, 223, 255, 0.08);
  border-radius: 999px;
}

.ring-a {
  width: 880px;
  height: 880px;
  left: -220px;
  top: 120px;
}

.ring-b {
  width: 640px;
  height: 640px;
  right: -120px;
  top: -60px;
}

.scene-planet {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.planet-a {
  width: 140px;
  height: 140px;
  right: 12%;
  top: 9%;
  background: radial-gradient(circle at 35% 35%, #dbfff6, #8deed0 30%, #6dcfff 58%, rgba(109, 207, 255, 0.08) 78%);
  box-shadow: 0 0 50px rgba(112, 223, 255, 0.2);
}

.planet-b {
  width: 220px;
  height: 220px;
  left: -40px;
  bottom: 8%;
  background: radial-gradient(circle at 35% 35%, #d7fff2, #84f0c3 34%, #4ab0cc 65%, rgba(74, 176, 204, 0.08) 80%);
  box-shadow: 0 0 80px rgba(132, 240, 195, 0.18);
}

.layout {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-view,
.dashboard-view {
  width: min(1180px, 100%);
}

.auth-shell {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
}

.auth-view {
  position: relative;
  isolation: isolate;
}

.auth-view::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.22)),
    var(--login-hero-image, none) center/cover no-repeat;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.auth-view::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: transparent;
  pointer-events: none;
}

.auth-card,
.brand-strip,
.dashboard-shell {
  border: 1px solid var(--line);
  background: rgba(1, 8, 16, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.brand-strip {
  width: min(980px, 100%);
  margin: 0 auto 18px;
  padding: 18px 24px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.microcopy,
.panel-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent-muted);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  position: relative;
}

.brand-mark span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(132, 240, 195, 0.4);
  border-radius: 0;
  transform: rotate(0deg);
}

.brand-mark span:nth-child(2) {
  transform: rotate(45deg);
  border-color: rgba(112, 223, 255, 0.4);
}

.brand-mark span:nth-child(3) {
  transform: rotate(90deg);
}

.brand-row h1 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1;
}

.brand-subtitle,
.brand-text,
.form-copy,
.stage-copy p:last-child {
  color: var(--muted);
}

.brand-text {
  max-width: 420px;
  line-height: 1.6;
}

.auth-card {
  width: min(560px, 100%);
  margin: 0 auto;
  border-radius: 0;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(2, 10, 18, 0.99), rgba(1, 7, 14, 0.98)),
    radial-gradient(circle at top right, rgba(255, 0, 51, 0.16), transparent 20%),
    radial-gradient(circle at bottom left, rgba(112, 223, 255, 0.05), transparent 26%);
}

.auth-card-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 12px;
}

.tab-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 7px;
  border-radius: 0;
  background: rgba(6, 19, 31, 0.92);
  border: 1px solid rgba(112, 223, 255, 0.08);
}

.tab {
  border: 0;
  border-radius: 0;
  padding: 14px 18px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.tab.is-active {
  color: #fff1f1;
  background: linear-gradient(135deg, rgba(255, 0, 64, 0.98) 0%, rgba(112, 223, 255, 0.75) 100%);
  font-weight: 800;
  box-shadow: 0 0 22px rgba(255, 0, 64, 0.34);
}

.form {
  display: none;
}

.form.is-visible {
  display: block;
}

.form h2 {
  margin: 0;
  font-size: 2rem;
}

.form-copy {
  margin: 10px 0 22px;
  line-height: 1.6;
}

.form-alert {
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(112, 223, 255, 0.14);
}

.form-alert-error {
  border-color: rgba(255, 0, 64, 0.3);
  color: #ffd7e0;
  background: rgba(26, 4, 12, 0.9);
}

.form-alert-success {
  border-color: rgba(100, 230, 255, 0.24);
  color: #bff7ff;
  background: rgba(4, 18, 28, 0.92);
}

.form label {
  display: block;
  margin-bottom: 16px;
}

.form span {
  display: block;
  margin-bottom: 8px;
  color: #a9c1cd;
}

.form input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 0;
  border: 1px solid rgba(112, 223, 255, 0.1);
  background: rgba(0, 6, 12, 0.96);
  color: var(--text);
  outline: none;
}

.form input:focus {
  border-color: rgba(255, 0, 64, 0.82);
  box-shadow: 0 0 0 3px rgba(255, 0, 64, 0.14), 0 0 16px rgba(255, 0, 64, 0.14);
}

.recovery-panel {
  display: none;
  margin-top: 14px;
  border: 1px solid rgba(112, 223, 255, 0.12);
  background: rgba(1, 9, 18, 0.9);
}

.recovery-panel.is-visible {
  display: block;
}

.recovery-panel summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  color: #bff7ff;
}

.recovery-panel summary::-webkit-details-marker {
  display: none;
}

.recovery-form {
  padding: 0 16px 16px;
}

.recovery-form label {
  display: block;
  margin-bottom: 14px;
}

.recovery-form span {
  display: block;
  margin-bottom: 8px;
  color: #a9c1cd;
}

.recovery-form input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 0;
  border: 1px solid rgba(112, 223, 255, 0.1);
  background: rgba(0, 6, 12, 0.96);
  color: var(--text);
  outline: none;
}

.captcha-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
}

.captcha-box {
  display: grid;
  place-items: center;
  border-radius: 0;
  font-weight: 800;
  color: var(--text);
  background: linear-gradient(135deg, rgba(255, 0, 64, 0.24), rgba(112, 223, 255, 0.1));
  border: 1px solid rgba(255, 0, 64, 0.38);
  box-shadow: 0 0 14px rgba(255, 0, 64, 0.1);
}

.primary-btn,
.ghost-btn,
.hub-btn {
  border: 0;
  cursor: pointer;
}

.primary-btn {
  width: 100%;
  margin-top: 12px;
  padding: 17px 20px;
  border-radius: 0;
  font-weight: 800;
  color: #fff7f7;
  background: linear-gradient(135deg, rgba(255, 0, 64, 1) 0%, rgba(112, 223, 255, 0.7) 100%);
  box-shadow: 0 18px 36px rgba(255, 0, 64, 0.22), 0 0 22px rgba(255, 0, 64, 0.12);
}

.withdraw-preview-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.75);
}

.withdraw-preview-card span {
  color: var(--text-strong);
}

.hidden {
  display: none !important;
}

.dashboard-shell {
  min-height: calc(100vh - 24px);
  border-radius: 0;
  padding: 14px 14px 96px;
  max-width: 460px;
  margin: 0 auto;
}

.dashboard-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 16px;
}

.dashboard-identity {
  flex: 1;
  min-width: 0;
}

.dashboard-profile-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.profile-photo-form {
  margin: 0;
  position: relative;
}

.profile-photo-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(112, 223, 255, 0.16);
  background: rgba(255, 255, 255, 0.94);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
}

.profile-photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-photo-fallback {
  font-size: 2.6rem;
  font-weight: 700;
  color: #0f172a;
}

.profile-photo-edit {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.profile-photo-input {
  display: none;
}

.profile-photo-preview {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 23, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.profile-photo-preview-card {
  position: relative;
  width: min(280px, calc(100vw - 32px));
  padding: 12px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.profile-photo-preview-image,
.profile-photo-preview-fallback {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  background: #eef2f7;
}

.profile-photo-preview-fallback {
  font-size: 5rem;
  font-weight: 700;
  color: #0f172a;
}

.profile-photo-preview-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  cursor: pointer;
}

#logoutBtn {
  min-width: 92px;
  text-align: center;
}

.stats-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 8px 0 14px;
}

.stat-card {
  padding: 14px 16px;
  border: 1px solid rgba(132, 240, 195, 0.22);
  background:
    linear-gradient(180deg, rgba(6, 18, 30, 0.96), rgba(3, 11, 20, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.stat-card p {
  margin: 0 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}

.stat-card strong {
  font-size: 1.7rem;
  color: var(--text-strong);
  font-weight: 700;
  text-shadow: none;
}

.dashboard-topbar h2,
.stage-copy h3 {
  margin: 8px 0 0;
}

.dashboard-user {
  margin-top: 6px;
  color: #000000;
  font-size: 1.05rem;
  font-weight: 700;
}

.dashboard-user-sub {
  margin-top: 2px;
  color: var(--text-strong);
  font-size: 0.98rem;
  font-weight: 600;
}

.ghost-btn {
  padding: 13px 18px;
  border-radius: 0;
  color: var(--text);
  background: rgba(7, 20, 35, 0.88);
  border: 1px solid rgba(112, 223, 255, 0.12);
}

.dashboard-stage {
  min-height: auto;
  display: grid;
  gap: 14px;
}

.stage-copy {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.stage-copy h3 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 0.95;
}

.stage-copy p:last-child {
  line-height: 1.7;
  font-size: 0.9rem;
  margin-top: 10px;
}

.plans-group-title {
  margin-bottom: 10px;
  color: var(--accent-soft);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plans-grid {
  display: grid;
  gap: 10px;
}

.menu-groups {
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.menu-panel {
  border: 1px solid rgba(84, 216, 166, 0.28);
  background: rgba(1, 7, 14, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(84, 216, 166, 0.04),
    0 0 18px rgba(84, 216, 166, 0.06);
  padding: 10px 8px;
}

.actions-board {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0 auto;
}

.actions-board-secondary {
  grid-template-columns: repeat(3, 1fr);
}

.hub-btn {
  min-height: 72px;
  border-radius: 0;
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 600;
  background: transparent;
  border: 0;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 2px;
  text-align: center;
}

.hub-link {
  text-decoration: none;
}

.hub-btn:hover {
  transform: translateY(-2px);
}

.hub-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  right: auto;
  width: min(460px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
  z-index: 1000;
}

.plans-page {
  width: min(460px, 100%);
}

.plans-shell {
  min-height: auto;
  max-width: 460px;
  margin: 0 auto;
  padding: 14px 14px 30px;
  border: 1px solid var(--line);
  background: rgba(1, 8, 16, 0.96);
  box-shadow: var(--shadow);
}

.plans-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.plans-topbar h1 {
  margin: 8px 0 0;
  font-size: 2rem;
}

.plans-back {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.plans-page-group {
  margin-bottom: 16px;
}

.plans-accordion {
  width: 100%;
  border: 1px solid #111827;
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  padding: 9px 12px;
  cursor: pointer;
  margin-bottom: 8px;
}

.plans-accordion.is-open {
  border-color: rgba(255, 0, 64, 0.28);
  color: #ffffff;
}

.plans-page-grid {
  display: grid;
  gap: 12px;
}

.plans-page-grid.hidden {
  display: none;
}

.plans-carousel {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.plans-carousel.hidden {
  display: none;
}

.plans-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 6px;
}

.plans-carousel-track::-webkit-scrollbar {
  height: 6px;
}

.plans-carousel-track::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.2);
}

.carousel-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #ffffff;
  color: #111827;
  font-weight: 700;
  cursor: pointer;
}

.carousel-btn span {
  display: block;
  line-height: 1;
}

@media (max-width: 640px) {
  .plans-carousel {
    grid-template-columns: 24px 1fr 24px;
  }

  .carousel-btn {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }
}

.plans-empty {
  border: 1px dashed rgba(255, 0, 64, 0.24);
  background: rgba(5, 9, 17, 0.94);
  color: var(--muted);
  padding: 14px 12px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plan-showcase {
  border: 1px solid rgba(112, 223, 255, 0.12);
  background: linear-gradient(180deg, rgba(7, 12, 22, 0.98), rgba(3, 8, 16, 0.98));
  overflow: hidden;
}

.plan-showcase img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

.plan-showcase-body {
  padding: 12px;
  display: grid;
  gap: 6px;
}

.plan-showcase-body strong {
  font-size: 1.18rem;
  color: #0f172a;
}

.plan-showcase-body span {
  color: #334155;
  font-size: 1rem;
}

.plans-page .plan-showcase-body .neon-number {
  color: #0f172a;
}

.plan-buy-btn {
  margin-top: 8px;
  width: 100%;
  padding: 12px 14px;
  font-size: 0.96rem;
}

.admin-login-page,
.admin-page {
  width: min(980px, 100%);
}

.admin-login-card,
.admin-shell {
  border: 1px solid var(--line);
  background: rgba(1, 8, 16, 0.96);
  box-shadow: var(--shadow);
}

.admin-login-card {
  width: min(460px, 100%);
  margin: 0 auto;
  padding: 26px;
}

.admin-login-card h1 {
  margin: 8px 0 0;
}

.admin-login-copy {
  color: var(--muted);
  margin: 10px 0 18px;
}

.admin-error {
  border: 1px solid rgba(255, 0, 64, 0.35);
  background: rgba(25, 5, 10, 0.92);
  color: #ffd9e2;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.admin-form,
.admin-plan-form {
  display: grid;
  gap: 14px;
}

.admin-form label,
.admin-plan-form label {
  display: grid;
  gap: 8px;
}

.admin-form span,
.admin-plan-form span {
  color: var(--muted);
}

.admin-form input,
.admin-plan-form input,
.admin-plan-form select {
  width: 100%;
  border: 1px solid rgba(112, 223, 255, 0.1);
  background: rgba(0, 6, 12, 0.96);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  outline: none;
}

.admin-plan-estimate {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(112, 223, 255, 0.12);
  background: rgba(6, 18, 30, 0.88);
}

.admin-plan-estimate strong {
  color: var(--text);
  font-size: 1rem;
}

.admin-plan-estimate span {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-shell {
  padding: 18px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.admin-topbar h1 {
  margin: 8px 0 0;
  color: #e5eef8;
}

.admin-topbar-actions {
  display: flex;
  gap: 10px;
}

.admin-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.admin-nav-btn {
  text-decoration: none;
  color: #cbd5e1;
  border: 1px solid rgba(112, 223, 255, 0.12);
  background: rgba(2, 8, 15, 0.96);
  padding: 12px 10px;
  text-align: center;
  font-weight: 700;
  position: relative;
}

.admin-nav-btn.is-active {
  color: #ffffff;
  border-color: rgba(255, 0, 64, 0.28);
  box-shadow: 0 0 14px rgba(255, 0, 64, 0.08);
}

.admin-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
}

.admin-section {
  border: 1px solid rgba(112, 223, 255, 0.12);
  background: rgba(1, 7, 14, 0.96);
  padding: 16px;
}

.admin-section-head {
  margin-bottom: 14px;
}

.admin-section-head h2 {
  margin: 8px 0 0;
  color: #f8fafc;
}

.admin-table {
  display: grid;
}

.admin-table-head,
.admin-table-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px 10px;
}

.admin-table-head {
  color: var(--accent-soft);
  border-bottom: 1px solid rgba(112, 223, 255, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.admin-table-row {
  border-bottom: 1px solid rgba(112, 223, 255, 0.08);
  color: #cbd5e1;
}

.admin-table-users .admin-table-head,
.admin-table-users .admin-table-row {
  grid-template-columns: 0.35fr 1.1fr 1fr 1fr 0.8fr;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.admin-metric {
  border: 1px solid rgba(255, 0, 64, 0.16);
  background: rgba(8, 10, 18, 0.96);
  padding: 14px;
}

.admin-metric p {
  margin: 0 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.admin-metric strong {
  color: var(--text-strong);
  font-size: 1.8rem;
  text-shadow: none;
}

.admin-card-list,
.admin-plan-groups {
  display: grid;
  gap: 12px;
}

.admin-card-item,
.admin-plan-group {
  border: 1px solid rgba(112, 223, 255, 0.12);
  background: rgba(4, 11, 20, 0.98);
  padding: 12px;
}

.admin-card-copy,
.admin-plan-list {
  display: grid;
  gap: 6px;
}

.admin-user-detail {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.admin-card-copy strong,
.admin-plan-group-head strong {
  color: #ffffff;
}

.admin-card-copy span,
.admin-plan-group-head span,
.admin-plan-row span {
  color: #cbd5e1;
}

.admin-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.admin-action-btn {
  border: 0;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-action-btn.approve {
  background: rgba(100, 230, 255, 0.16);
  color: var(--text-strong);
}

.admin-action-btn.cancel {
  background: rgba(255, 0, 64, 0.16);
  color: #ff6a92;
}

.admin-plan-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-plan-row {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid rgba(112, 223, 255, 0.08);
}

.admin-cancel-link,
.admin-inline-link {
  text-decoration: none;
}

.admin-proof-link {
  color: var(--accent-soft);
  text-decoration: none;
  font-weight: 700;
}

.nav-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 52px;
  font-size: 0.88rem;
  text-align: center;
}

.nav-btn.nav-link {
  text-decoration: none;
}

.nav-btn.is-active {
  color: #111827;
}

.nav-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
}

.nav-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .brand-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions-board-secondary {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .layout {
    padding: 16px;
  }

  .auth-card,
  .dashboard-shell,
  .brand-strip {
    padding: 20px;
    border-radius: 0;
  }

  .dashboard-shell {
    padding: 12px 12px 98px;
    max-width: 100%;
  }

  .captcha-row,
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .dashboard-topbar {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
  }

  .dashboard-profile-side {
    align-items: center;
    flex: 0 0 auto;
    min-width: 110px;
  }

  .stage-copy {
    text-align: left;
    margin: 0;
  }

  .stage-copy h3 {
    font-size: 1.75rem;
  }

  .menu-groups {
    width: 100%;
  }

  .actions-board,
  .actions-board-secondary {
    grid-template-columns: repeat(2, 1fr);
  }

  .hub-btn {
    min-height: 70px;
    font-size: 0.68rem;
  }

  .admin-shell,
  .admin-login-card {
    padding: 14px;
  }

  .admin-topbar,
  .admin-topbar-actions,
  .admin-plan-group-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-nav,
  .admin-table-head,
  .admin-table-row,
  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions form,
  .admin-action-btn {
    width: 100%;
  }
}

/* User-facing white theme overrides */
body {
  font-family: "Cormorant Garamond Local", Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  background:
    radial-gradient(circle at 20% 20%, rgba(22, 163, 74, 0.08), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.12), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
  color: var(--text-strong);
}

.scene-stars,
.scene-ring,
.scene-planet {
  display: none;
}

.auth-view .brand-strip,
.auth-view .auth-card,
.dashboard-view .dashboard-shell,
.plans-page .plans-shell {
  background: var(--panel-bg), #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.auth-shell {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.auth-shell::before {
  content: "";
  position: absolute;
  inset: -10% -18% -8%;
  background:
    radial-gradient(circle at 18% 22%, rgba(34, 184, 255, 0.32), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(15, 23, 42, 0.18), transparent 14%),
    radial-gradient(circle at 82% 74%, rgba(99, 102, 241, 0.24), transparent 16%),
    radial-gradient(circle at 20% 78%, rgba(56, 189, 248, 0.28), transparent 18%),
    radial-gradient(circle at 52% 48%, rgba(148, 163, 184, 0.12), transparent 28%);
  filter: blur(42px);
  pointer-events: none;
  opacity: 0.95;
}

.auth-view .brand-strip,
.auth-view .auth-card {
  position: relative;
  z-index: 1;
}

.auth-view .brand-strip {
  width: 100%;
  margin: 0 0 18px;
  align-items: center;
}

.auth-view .auth-card {
  width: 100%;
}

.auth-view .brand-strip,
.dashboard-view .dashboard-shell,
.plans-page .plans-shell {
  border-radius: 0;
}

.auth-view .brand-mark span {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
}

.auth-view .brand-mark span:nth-child(2) {
  border-color: rgba(34, 184, 255, 0.35);
}

.auth-view .microcopy,
.auth-view .panel-kicker,
.dashboard-view .microcopy,
.dashboard-view .panel-kicker,
.plans-page .microcopy {
  color: var(--accent-muted);
}

.auth-view .brand-subtitle,
.auth-view .brand-text,
.auth-view .form-copy,
.dashboard-view .stage-copy p:last-child,
.dashboard-view .dashboard-user,
.plans-page .plan-showcase-body span,
.plans-page .plans-empty {
  color: var(--text-strong);
}

.auth-view .tab-switcher {
  background: #f3f4f6;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0;
}

.auth-view .tab {
  border-radius: 0;
}

.auth-view .tab.is-active {
  background: #111827;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.16);
}

.auth-view .form span {
  color: #4b5563;
}

.auth-view .form input {
  background: #f8fafc;
  color: #111827;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0;
}

.auth-view .form input:focus {
  border-color: rgba(34, 184, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(34, 184, 255, 0.12);
}

.auth-view .captcha-box {
  background: #111827;
  border: 1px solid #111827;
  border-radius: 0;
  color: #ffffff;
  box-shadow: none;
}

.auth-view .primary-btn,
.plans-page .primary-btn {
  background: #ffffff;
  color: #111827;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 0;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.dashboard-view .ghost-btn,
.plans-page .ghost-btn {
  background: #ffffff;
  color: #111827;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0;
}

.dashboard-view .stats-strip {
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.dashboard-view .stat-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0;
}

.dashboard-view .stat-card strong {
  color: #111827;
  text-shadow: none;
}

.dashboard-view .menu-panel {
  background: var(--panel-bg), #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 0;
  box-shadow: none;
  padding: 16px 14px;
}

.dashboard-view .actions-board {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.dashboard-view .hub-btn {
  min-height: 126px;
  background: transparent;
  color: #111827;
  border-radius: 0;
  gap: 12px;
  font-size: 0.74rem;
  font-weight: 700;
}

.tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.tutorial-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 12, 0.58);
  backdrop-filter: blur(4px);
}

.tutorial-overlay-passive {
  pointer-events: none;
}

.tutorial-overlay-passive .tutorial-backdrop {
  background: transparent;
  backdrop-filter: none;
}

.tutorial-overlay-passive .tutorial-target-active {
  pointer-events: auto;
}

.tutorial-card {
  position: fixed;
  z-index: 1202;
  max-width: calc(100vw - 32px);
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.tutorial-card-centered {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 32px)) !important;
}

.tutorial-hint {
  position: fixed;
  z-index: 1202;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(380px, calc(100vw - 40px));
  padding: 20px 22px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 248, 252, 0.98));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: 14px;
  justify-items: start;
}

.tutorial-hint p {
  margin: 0;
  color: #111827;
  font-size: 1.05rem;
  line-height: 1.45;
}

.tutorial-hint strong {
  color: #111827;
  font-size: 1.9rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.tutorial-hint .ghost-btn {
  margin-top: 4px;
  min-width: 136px;
}

.tutorial-card h3,
.tutorial-card p {
  margin: 0;
  color: #111827;
}

.tutorial-card h3 {
  margin-top: 6px;
  margin-bottom: 10px;
}

.tutorial-card p + p {
  margin-top: 8px;
}

.tutorial-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.tutorial-actions .ghost-btn,
.tutorial-actions .primary-btn {
  width: auto;
  min-width: 118px;
  margin-top: 0;
}

.tutorial-actions .primary-btn,
.tutorial-mini-nav .primary-btn {
  background: #111827;
  color: #ffffff;
  border: 1px solid #111827;
  box-shadow: none;
}

.tutorial-actions .ghost-btn,
.tutorial-mini-nav .ghost-btn {
  background: #ffffff;
  color: #111827;
  border: 1px solid rgba(15, 23, 42, 0.16);
  box-shadow: none;
}

.tutorial-mini-nav {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  z-index: 1205;
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  width: min(420px, calc(100vw - 24px));
  justify-content: center;
}

.tutorial-mini-btn {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 12px 16px;
}

body[data-tutorial-page="recharge"] .plans-shell.recharge-shell {
  padding-bottom: 220px;
}

.tutorial-target-active {
  position: relative;
  z-index: 1203;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.92), 0 0 0 18px rgba(17, 24, 39, 0.28), 0 0 30px rgba(255, 255, 255, 0.42);
}

.tutorial-target-active .hub-icon {
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.96), 0 0 0 22px rgba(17, 24, 39, 0.3), 0 0 32px rgba(255, 255, 255, 0.58);
  transform: scale(1.06);
  animation: tutorialPulse 1.5s ease-in-out infinite;
}

.tutorial-target-active {
  outline: 3px solid rgba(255, 255, 255, 0.92);
  outline-offset: 6px;
}

.tutorial-target-active span:last-child {
  color: #111827 !important;
  text-shadow: none;
}

@keyframes tutorialPulse {
  0%,
  100% {
    transform: scale(1.03);
  }
  50% {
    transform: scale(1.1);
  }
}

body[data-theme="dark"] .tutorial-card {
  background: rgba(8, 14, 25, 0.96);
  border-color: rgba(148, 163, 184, 0.18);
}

body[data-theme="dark"] .tutorial-card h3,
body[data-theme="dark"] .tutorial-card p,
body[data-theme="dark"] .tutorial-card .microcopy {
  color: #f8fafc;
}

body[data-theme="dark"] .tutorial-hint {
  background: rgba(8, 14, 25, 0.96);
  border-color: rgba(148, 163, 184, 0.18);
}

body[data-theme="dark"] .tutorial-hint p,
body[data-theme="dark"] .tutorial-hint strong,
body[data-theme="dark"] .tutorial-hint .microcopy {
  color: #f8fafc;
}

body[data-theme="dark"] .tutorial-mini-nav {
  background: rgba(8, 14, 25, 0.96);
  border-color: rgba(148, 163, 184, 0.18);
}

body[data-theme="dark"] .tutorial-target-active span:last-child {
  color: #ffffff !important;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
}

.dashboard-stage-title {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin-bottom: 10px;
}

.dashboard-banner-shell {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
  margin: 18px 0 24px;
}

.carousel-dots {
  display: none;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
  opacity: 0.9;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.carousel-dot.is-active {
  transform: scale(1.25);
  background: #111827;
  border-color: #111827;
  opacity: 1;
}

.dashboard-banner-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.dashboard-banner-track::-webkit-scrollbar {
  display: none;
}

.dashboard-banner-card {
  min-width: 100%;
  scroll-snap-align: start;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  overflow: hidden;
  aspect-ratio: 16 / 5.6;
}

.dashboard-banner-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Center last row items in dashboard only */

.dashboard-view .hub-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 0;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(17, 24, 39, 0.16);
  font-size: 0.9rem;
  font-weight: 800;
}

.dashboard-view .hub-icon svg,
.dashboard-view .nav-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-view .mobile-nav {
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(460px, 100%);
  z-index: 1000;
}

/* Match white theme on all user pages */
.plans-page .mobile-nav,
.ranking-page .mobile-nav {
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.plans-page .mobile-nav,
.ranking-page .mobile-nav {
  background: #ffffff;
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
  color: #111827;
}

.plans-page .nav-btn,
.ranking-page .nav-btn {
  color: #6b7280;
}

.plans-page .nav-btn.is-active,
.ranking-page .nav-btn.is-active {
  color: #111827;
}

.plans-page .nav-icon,
.ranking-page .nav-icon {
  background: #111827;
  color: #ffffff;
}

.plans-page .nav-icon,
.ranking-page .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
}

.dashboard-view .nav-btn {
  color: #6b7280;
}

.dashboard-view .nav-btn.is-active {
  color: #111827;
}

.dashboard-view .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
}

.dashboard-view .nav-link-icon {
  text-decoration: none;
}

.plans-page .plans-accordion {
  background: var(--panel-bg), #ffffff;
  color: var(--text-strong);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.plans-page .plans-accordion.is-open {
  color: #111827;
  border-color: rgba(15, 23, 42, 0.14);
}

.plans-page .plan-showcase {
  background: var(--panel-bg), #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0;
}

.plans-page .plan-showcase img {
  background: #e5e7eb;
}

.withdrawals-page .recharge-card,
.withdrawals-page .recharge-bank-item,
.withdrawals-page .admin-card-item {
  background: #ffffff;
}

.plans-page .plans-empty {
  background: var(--panel-bg), #ffffff;
  border: 1px dashed rgba(15, 23, 42, 0.18);
}

.recharge-shell {
  display: grid;
  gap: 16px;
}

.recharge-card {
  background: var(--panel-bg), #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0;
  padding: 18px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.recharge-card h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.recharge-bank-grid {
  display: grid;
  gap: 12px;
}

.recharge-bank-item {
  background: var(--panel-bg), #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0;
  padding: 14px;
}

.recharge-bank-item span {
  display: block;
  color: var(--text-strong);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.recharge-bank-item strong {
  color: #111827;
  word-break: break-word;
}

.recharge-card select {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  color: #111827;
  padding: 14px 16px;
  font: inherit;
  outline: none;
  border-radius: 0;
}

.recharge-card input {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  color: #111827;
  padding: 14px 16px;
  font: inherit;
  outline: none;
  border-radius: 0;
}

.recharge-card input::placeholder {
  color: #9ca3af;
}

.plans-page .admin-plan-form input,
.plans-page .admin-plan-form select {
  background: #ffffff;
  color: #111827;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.plans-page .admin-card-item {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #111827;
}

.plans-page .admin-card-copy span,
.plans-page .admin-card-copy strong {
  color: var(--text-strong);
}

.neon-number {
  color: var(--text-strong);
  text-shadow: none;
}

.invite-action {
  display: grid;
  gap: 10px;
}

.invite-btn {
  margin-top: 4px;
  padding: 12px 16px;
}

.invite-code-form {
  display: grid;
  gap: 10px;
}

.invite-code-form input {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  color: #111827;
  padding: 12px 14px;
  font: inherit;
  outline: none;
  border-radius: 0;
}

.rank-card {
  background: var(--panel-bg), #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0;
  padding: 18px;
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.rank-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.rank-card--silver {
  background:
    radial-gradient(circle at top right, rgba(203, 213, 225, 0.55), transparent 32%),
    linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(236, 243, 248, 0.98));
  border-color: rgba(100, 116, 139, 0.42);
  box-shadow: 0 18px 36px rgba(100, 116, 139, 0.12);
}

.rank-card--gold {
  background:
    radial-gradient(circle at top right, rgba(253, 224, 71, 0.26), transparent 32%),
    linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.92));
  border-color: rgba(217, 119, 6, 0.34);
  box-shadow: 0 18px 36px rgba(217, 119, 6, 0.14);
}

.rank-card--diamond {
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(224, 242, 254, 0.94));
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.14);
}

.rank-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.rank-header {
  display: flex;
  gap: 14px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.rank-header p {
  margin: 0 0 6px;
  color: #6b7280;
}

.rank-header strong {
  display: block;
  font-size: 1.32rem;
  color: #111827;
  line-height: 1.05;
}

.rank-title-block {
  display: grid;
  gap: 4px;
}

.rank-commission {
  font-size: 0.86rem;
  color: #334155;
  font-weight: 700;
}

.rank-user {
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.rank-user--silver {
  color: #64748b;
}

.rank-user--gold {
  color: #d97706;
}

.rank-user--diamond {
  color: #2563eb;
}

.settings-shell {
  display: grid;
  gap: 16px;
}

.settings-card {
  background: var(--panel-bg), #ffffff;
}

.settings-card-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.settings-form {
  display: grid;
  gap: 14px;
}

.settings-form label {
  display: grid;
  gap: 8px;
}

.settings-form span,
.settings-page .brand-text,
.settings-page .microcopy,
.plans-page .brand-text,
.dashboard-view .dashboard-user,
.dashboard-view .dashboard-user-sub,
.recharge-card span,
.recharge-card p,
.admin-card-copy span,
.plans-page .plans-empty,
.support-time {
  color: #111827;
}

.settings-toggle {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.settings-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
}

body[data-theme="dark"] {
  color: #edf2f7;
  background: linear-gradient(180deg, #010204 0%, #04070d 100%);
}

body[data-theme="dark"] .scene {
  opacity: 1;
}

body[data-theme="dark"] .brand-strip,
body[data-theme="dark"] .auth-card,
body[data-theme="dark"] .dashboard-shell,
body[data-theme="dark"] .plans-shell,
body[data-theme="dark"] .recharge-card,
body[data-theme="dark"] .recharge-bank-item,
body[data-theme="dark"] .admin-card-item,
body[data-theme="dark"] .ranking-rules-card,
body[data-theme="dark"] .ranking-claim,
body[data-theme="dark"] .ranking-rules,
body[data-theme="dark"] .menu-panel,
body[data-theme="dark"] .stat-card,
body[data-theme="dark"] .reward-highlight,
body[data-theme="dark"] .plans-accordion,
body[data-theme="dark"] .plan-showcase,
body[data-theme="dark"] .support-bubble {
  background: linear-gradient(180deg, rgba(12, 20, 35, 0.96), rgba(8, 14, 25, 0.98));
  border-color: rgba(148, 163, 184, 0.18);
  color: #edf2f7;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .form-copy,
body[data-theme="dark"] .brand-text,
body[data-theme="dark"] .dashboard-user,
body[data-theme="dark"] .dashboard-user-sub,
body[data-theme="dark"] .recharge-card span,
body[data-theme="dark"] .recharge-card p,
body[data-theme="dark"] .admin-card-copy span,
body[data-theme="dark"] .plans-empty,
body[data-theme="dark"] .support-time,
body[data-theme="dark"] .settings-form span,
body[data-theme="dark"] .settings-page .brand-text,
body[data-theme="dark"] .microcopy,
body[data-theme="dark"] .panel-kicker {
  color: #cbd5e1;
}

body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] strong,
body[data-theme="dark"] .neon-number,
body[data-theme="dark"] .recharge-bank-item strong,
body[data-theme="dark"] .admin-card-copy strong {
  color: #f8fafc;
}

body[data-theme="dark"] input,
body[data-theme="dark"] select,
body[data-theme="dark"] textarea,
body[data-theme="dark"] .captcha-box {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.18);
  color: #f8fafc;
}

body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder {
  color: #94a3b8;
}

body[data-theme="dark"] .ghost-btn {
  background: #101827;
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.18);
}

body[data-theme="dark"] .primary-btn {
  background: linear-gradient(90deg, #1f2937, #0f172a);
  color: #ffffff;
  border-color: rgba(148, 163, 184, 0.18);
}

body[data-theme="dark"] .mobile-nav {
  background: rgba(8, 14, 25, 0.96);
  border-top-color: rgba(148, 163, 184, 0.18);
}

body[data-theme="dark"] .auth-view::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.42)),
    var(--login-hero-image, none) center/cover no-repeat;
}

body[data-theme="dark"] .nav-btn {
  color: #cbd5e1;
}

body[data-theme="dark"] .nav-btn.is-active {
  color: #f8fafc;
}

body[data-theme="dark"] .nav-icon {
  background: #f8fafc;
  color: #0f172a;
}

body[data-theme="dark"] .dashboard-view .microcopy,
body[data-theme="dark"] .dashboard-view .panel-kicker,
body[data-theme="dark"] .plans-page .microcopy {
  color: #cbd5e1;
}

body[data-theme="dark"] .dashboard-view .dashboard-user,
body[data-theme="dark"] .dashboard-view .dashboard-user-sub,
body[data-theme="dark"] .dashboard-view .stage-copy p,
body[data-theme="dark"] .dashboard-view .hub-btn,
body[data-theme="dark"] .dashboard-view .hub-btn span,
body[data-theme="dark"] .dashboard-view .nav-btn,
body[data-theme="dark"] .plans-page .brand-text,
body[data-theme="dark"] .rank-header p,
body[data-theme="dark"] .rank-stats span,
body[data-theme="dark"] .rank-remaining {
  color: #dbe4ee;
}

body[data-theme="dark"] .dashboard-view h2,
body[data-theme="dark"] .dashboard-view h3,
body[data-theme="dark"] .dashboard-view .stat-card strong,
body[data-theme="dark"] .dashboard-view .hub-btn strong,
body[data-theme="dark"] .dashboard-view .hub-btn span:last-child,
body[data-theme="dark"] .plans-page h1,
body[data-theme="dark"] .plans-page h2,
body[data-theme="dark"] .plans-page strong {
  color: #f8fafc;
}

body[data-theme="dark"] .dashboard-view .stat-card,
body[data-theme="dark"] .dashboard-view .menu-panel {
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.98), rgba(8, 14, 25, 0.98));
}

body[data-theme="dark"] .dashboard-banner-card {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.18);
}

body[data-theme="dark"] .dashboard-view .hub-icon {
  background: #162033;
  color: #f8fafc;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .dashboard-view .ghost-btn,
body[data-theme="dark"] .plans-page .ghost-btn {
  background: #101827;
  color: #f8fafc;
}

.rank-icon {
  width: 62px;
  height: 62px;
  border-radius: 0;
  background: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.16);
}

.rank-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rank-icon--silver {
  background: linear-gradient(135deg, #cbd5e1, #64748b);
  color: #ffffff;
}

.rank-icon--gold {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #111827;
}

.rank-icon--diamond {
  background: linear-gradient(135deg, #67e8f9, #2563eb);
  color: #ffffff;
}

.rank-chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.75);
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rank-chip--silver {
  border-color: rgba(100, 116, 139, 0.24);
}

.rank-chip--gold {
  border-color: rgba(245, 158, 11, 0.32);
}

.rank-chip--diamond {
  border-color: rgba(37, 99, 235, 0.24);
}

.rank-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
}

.rank-stat-box {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.rank-stats span {
  display: block;
  color: #6b7280;
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.rank-stats strong {
  color: #111827;
}

.rank-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.rank-progress-meta span {
  color: #475569;
  font-size: 0.9rem;
}

.rank-progress-meta strong {
  color: #111827;
  font-size: 1rem;
}

.rank-progress {
  height: 10px;
  border-radius: 0;
  background: #e5e7eb;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.rank-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-soft), #22d3ee);
}

.rank-progress-bar--silver {
  background: linear-gradient(90deg, #cbd5e1, #64748b);
}

.rank-progress-bar--gold {
  background: linear-gradient(90deg, #fde68a, #f59e0b);
}

.rank-progress-bar--diamond {
  background: linear-gradient(90deg, #67e8f9, #2563eb);
}

.rank-remaining {
  margin: 0;
  color: #374151;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.rank-preview {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.rank-preview-copy {
  display: grid;
  gap: 4px;
}

.rank-preview-copy span {
  color: #6b7280;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.rank-preview-copy strong {
  color: #111827;
  font-size: 1.04rem;
}

.rank-preview-copy small {
  color: #475569;
  font-size: 0.84rem;
  font-weight: 600;
}

.rank-preview .rank-preview-icon {
  width: 52px;
  height: 52px;
  box-shadow: none;
}

body[data-theme="dark"] .ranking-shell {
  background:
    radial-gradient(circle at 20% 20%, rgba(22, 163, 74, 0.08), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(10, 17, 30, 0.98), rgba(7, 13, 24, 0.98));
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .ranking-page .plans-empty,
body[data-theme="dark"] .plans-page .plans-empty {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

body[data-theme="dark"] .ranking-claim-status {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.18);
}

body[data-theme="dark"] .ranking-claim-status span,
body[data-theme="dark"] .ranking-rules-card span,
body[data-theme="dark"] .ranking-info span,
body[data-theme="dark"] .ranking-metric span {
  color: #dbe4ee;
}

body[data-theme="dark"] .ranking-rules-card {
  background: linear-gradient(120deg, rgba(22, 163, 74, 0.08), rgba(14, 165, 233, 0.08));
  border-color: rgba(148, 163, 184, 0.18);
}

body[data-theme="dark"] .ranking-rules-card strong,
body[data-theme="dark"] .ranking-rank,
body[data-theme="dark"] .ranking-info strong,
body[data-theme="dark"] .ranking-metric strong {
  color: #f8fafc;
}

body[data-theme="dark"] .plans-page .plans-accordion {
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.98), rgba(8, 14, 25, 0.98));
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.18);
}

body[data-theme="dark"] .plans-page .plan-showcase {
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.98), rgba(8, 14, 25, 0.98));
  border-color: rgba(148, 163, 184, 0.18);
}

body[data-theme="dark"] .plans-page .plan-showcase-body strong,
body[data-theme="dark"] .plans-page .plan-showcase-body span,
body[data-theme="dark"] .plans-page .plan-showcase-body .neon-number {
  color: #f8fafc;
}

body[data-theme="dark"] .carousel-btn {
  background: #f8fafc;
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.18);
}

body[data-theme="dark"] .carousel-dot {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.42);
}

body[data-theme="dark"] .carousel-dot.is-active {
  background: #ffffff;
  border-color: #ffffff;
}

body[data-theme="dark"] .recharge-card .brand-text,
body[data-theme="dark"] .recharge-card label span,
body[data-theme="dark"] .recharge-card .neon-number,
body[data-theme="dark"] .admin-card-copy span,
body[data-theme="dark"] .admin-card-copy strong,
body[data-theme="dark"] .recharge-bank-item span,
body[data-theme="dark"] .recharge-bank-item strong {
  color: #f8fafc;
}

body[data-theme="dark"] .rank-card {
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.98), rgba(8, 14, 25, 0.98));
  border-color: rgba(148, 163, 184, 0.18);
}

body[data-theme="dark"] .rank-card::before {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.08), rgba(255, 255, 255, 0));
}

body[data-theme="dark"] .rank-card--silver {
  background:
    radial-gradient(circle at top right, rgba(148, 163, 184, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.98), rgba(8, 14, 25, 0.98));
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .rank-card--gold {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.98), rgba(8, 14, 25, 0.98));
  border-color: rgba(245, 158, 11, 0.34);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .rank-card--diamond {
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.98), rgba(8, 14, 25, 0.98));
  border-color: rgba(56, 189, 248, 0.34);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .rank-header p,
body[data-theme="dark"] .rank-stats span,
body[data-theme="dark"] .rank-remaining,
body[data-theme="dark"] .rank-progress-meta span,
body[data-theme="dark"] .rank-commission,
body[data-theme="dark"] .rank-preview-copy span,
body[data-theme="dark"] .rank-preview-copy small {
  color: #dbe4ee;
}

body[data-theme="dark"] .rank-header strong,
body[data-theme="dark"] .rank-stats strong,
body[data-theme="dark"] .rank-progress-meta strong,
body[data-theme="dark"] .rank-preview-copy strong {
  color: #f8fafc;
}

body[data-theme="dark"] .rank-progress {
  background: rgba(148, 163, 184, 0.18);
}

body[data-theme="dark"] .rank-stat-box,
body[data-theme="dark"] .rank-chip {
  background: rgba(15, 23, 42, 0.74);
  border-color: rgba(148, 163, 184, 0.18);
  color: #f8fafc;
}

body[data-theme="dark"] .rank-preview {
  background: rgba(15, 23, 42, 0.74);
  border-color: rgba(148, 163, 184, 0.18);
}

@media (max-width: 720px) {
  .rank-card-top {
    grid-template-columns: 1fr;
    display: grid;
  }

  .rank-chip {
    justify-self: start;
  }

  .rank-preview {
    grid-template-columns: 1fr;
  }

  .rank-preview .rank-preview-icon {
    justify-self: start;
  }
}

body[data-theme="dark"] .income-summary-card {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.18);
}

body[data-theme="dark"] .income-summary-card span,
body[data-theme="dark"] .income-total span,
body[data-theme="dark"] .income-label {
  color: #dbe4ee;
}

body[data-theme="dark"] .income-summary-card strong,
body[data-theme="dark"] .income-total strong,
body[data-theme="dark"] .income-value {
  color: #f8fafc;
}

body[data-theme="dark"] .income-donut {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .income-donut::after {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.18);
}

body[data-theme="dark"] .income-history-head select {
  background: #0f172a;
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.18);
}

@media (max-width: 640px) {
  .auth-shell {
    max-width: 100%;
  }

  .auth-shell::before {
    inset: -6% -8% -4%;
    filter: blur(34px);
    opacity: 0.8;
  }

  .dashboard-view .stats-strip {
    grid-template-columns: 1fr;
  }

  .dashboard-view .actions-board,
  .dashboard-view .actions-board-secondary {
    grid-template-columns: repeat(3, 1fr);
  }

  .dashboard-view .hub-btn {
    min-height: 92px;
    gap: 5px;
    padding: 4px 2px;
  }

  .dashboard-view .hub-icon {
    width: 52px;
    height: 52px;
  }

  .dashboard-banner-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .dashboard-banner-card {
    aspect-ratio: 16 / 7.2;
  }

  .dashboard-banner-shell .carousel-btn {
    display: none;
  }

  .carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
  }

  .auth-view .brand-strip {
    padding: 18px;
    gap: 14px;
  }

  .auth-view .brand-row {
    width: 100%;
    align-items: flex-start;
  }

  .auth-view .brand-text {
    max-width: 100%;
  }

  .auth-view .auth-card {
    padding: 20px;
  }

  .auth-view .tab-switcher {
    width: 100%;
  }

  .auth-view .form h2 {
    font-size: 1.55rem;
    line-height: 1.05;
  }

  .auth-view .captcha-row {
    grid-template-columns: 120px 1fr;
  }
}

@media (min-width: 980px) {
  .auth-view::before {
    opacity: 1;
    position: fixed;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.22)),
      var(--login-hero-image, none) center center / cover no-repeat;
  }

  .layout {
    padding: 0;
  }

  .auth-view,
  .auth-shell {
    width: 100%;
  }

  .auth-shell {
    display: grid !important;
    min-height: 100vh;
    width: 100% !important;
    max-width: none !important;
    margin: 0;
    padding: 0 72px;
    grid-template-columns: minmax(460px, 0.88fr) minmax(0, 1.12fr) !important;
    align-items: center;
    justify-items: stretch;
    place-items: center stretch;
    gap: 32px;
    position: relative;
    z-index: 1;
  }

  .auth-view .brand-strip {
    order: 2;
    margin: 0;
    width: 100%;
    max-width: 680px;
    min-height: 620px;
    padding: 36px 34px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background:
      linear-gradient(180deg, rgba(6, 12, 22, 0.72), rgba(10, 18, 31, 0.78));
    border-color: rgba(226, 232, 240, 0.14);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
  }

  .auth-view .brand-row {
    align-items: center;
  }

  .auth-view .brand-strip h1,
  .auth-view .brand-subtitle,
  .auth-view .brand-text,
  .auth-view .microcopy {
    color: #f8fafc;
  }

  .auth-view .auth-card {
    order: 1;
    align-self: center;
    justify-self: start;
    width: 100%;
    max-width: 560px;
    margin: 0;
    padding: 34px 30px;
    background: rgba(8, 14, 25, 0.86);
    border-color: rgba(226, 232, 240, 0.14);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(22px);
  }

  .auth-view .auth-card h2,
  .auth-view .auth-card .form-copy,
  .auth-view .auth-card .form span,
  .auth-view .auth-card label span {
    color: #f8fafc;
  }

  .auth-view .auth-card input {
    background: rgba(248, 250, 252, 0.92);
    color: #111827;
    border-color: rgba(226, 232, 240, 0.18);
  }

  .auth-view .auth-card .tab-switcher {
    background: rgba(248, 250, 252, 0.92);
  }

  .auth-view .auth-card .captcha-box {
    background: rgba(17, 24, 39, 0.92);
    color: #ffffff;
  }
}

.ranking-shell {
  min-height: calc(100vh - 24px);
  max-width: 460px;
  margin: 0 auto;
  padding: 16px 16px 32px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.08), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.1), transparent 24%),
    #ffffff;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
  border-radius: 0;
}

.ranking-page .ghost-btn {
  background: #ffffff;
  color: #111827;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0;
}

.ranking-page .plans-empty {
  background: #ffffff;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  color: #111827;
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.ranking-claim {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--panel-bg), #ffffff;
  border-radius: 0;
  padding: 16px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.ranking-claim h2 {
  margin: 6px 0 0;
}

.ranking-claim .primary-btn {
  width: 100%;
}

.ranking-claim-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: 0;
  padding: 12px 14px;
}

.ranking-claim-status span {
  color: #6b7280;
  font-size: 0.85rem;
}

.ranking-claim-status strong {
  color: #111827;
  font-size: 1rem;
}

.ranking-rules {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--panel-bg), #ffffff;
  border-radius: 0;
  padding: 16px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.ranking-rules-grid {
  display: grid;
  gap: 10px;
}

.ranking-rules-card {
  background: linear-gradient(120deg, rgba(34, 197, 94, 0.08), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0;
  padding: 12px 14px;
}

.ranking-rules-card strong {
  display: block;
  color: #111827;
  margin-bottom: 4px;
  font-size: 1.45rem;
  font-weight: 700;
}

.ranking-rules-card span {
  color: var(--text-strong);
  font-size: 1rem;
  line-height: 1.45;
}

.ranking-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--panel-bg), #ffffff;
  border-radius: 0;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.ranking-rank {
  font-weight: 800;
  color: var(--text-strong);
  font-size: 1.05rem;
}

.ranking-info strong {
  display: block;
  font-size: 1rem;
  color: #111827;
}

.ranking-info span {
  color: var(--text-strong);
  font-size: 0.85rem;
}

.ranking-metric span {
  display: block;
  color: var(--text-strong);
  font-size: 0.78rem;
}

.ranking-metric strong {
  color: #111827;
  font-size: 1rem;
}

.income-shell {
  padding: 16px 16px 32px;
}

.income-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.income-summary-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  padding: 12px 14px;
}

.income-summary-card span {
  color: #6b7280;
  font-size: 0.95rem;
}

.income-summary-card strong {
  display: block;
  font-size: 1.1rem;
}

.income-chart {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 12px 0;
}

.income-donut {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(#e5e7eb 0% 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.income-donut::after {
  content: "";
  position: absolute;
  inset: 26px;
  background: #ffffff;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.profile-shell {
  display: grid;
  gap: 16px;
  padding-bottom: 112px;
}

.profile-hero {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  color: #ffffff;
  font-size: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.profile-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-copy {
  display: grid;
  gap: 4px;
}

.profile-copy h2,
.profile-copy p {
  margin: 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.profile-metric {
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  display: grid;
  gap: 6px;
}

.profile-metric span {
  color: #6b7280;
}

.profile-metric strong {
  color: #111827;
  font-size: 1.2rem;
}

.profile-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

body[data-theme="dark"] .profile-avatar {
  background: #162033;
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.18);
}

body[data-theme="dark"] .profile-copy p,
body[data-theme="dark"] .profile-metric span {
  color: #dbe4ee;
}

body[data-theme="dark"] .profile-copy h2,
body[data-theme="dark"] .profile-metric strong {
  color: #f8fafc;
}

body[data-theme="dark"] .profile-metric {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.18);
}

@media (max-width: 640px) {
  .profile-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .profile-grid,
  .profile-actions {
    grid-template-columns: 1fr;
  }
}

.income-total {
  text-align: center;
}

.income-total span {
  display: block;
  color: var(--text-strong);
  font-size: 0.9rem;
}

.income-total strong {
  font-size: 1.2rem;
}

.income-legend {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.income-legend-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 10px;
  align-items: center;
}

.income-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.income-label {
  color: #111827;
}

.income-value {
  font-weight: 700;
}

.income-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.income-history-head select {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #111827;
  padding: 10px 12px;
  font: inherit;
}

@media (max-width: 640px) {
  .income-summary {
    grid-template-columns: 1fr;
  }

  .income-history-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Fixed nav spacing for pages */
.plans-page,
.ranking-page,
.admin-page,
.admin-login-page {
  padding-bottom: 20px;
}

.dashboard-view {
  padding-bottom: 20px;
}

/* Admin palette overrides */
.admin-page .admin-shell,
.admin-login-page .admin-login-card {
  background: var(--panel-bg), #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.admin-page .admin-topbar h1,
.admin-page .admin-section-head h2,
.admin-login-page h1 {
  color: #111827;
}

.admin-page .admin-nav-btn {
  background: var(--panel-bg), #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #111827;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
}

.admin-page .admin-nav-btn.is-active {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 10px 18px rgba(34, 197, 94, 0.15);
}

.admin-page .admin-section,
.admin-page .admin-card-item,
.admin-page .admin-plan-group {
  background: var(--panel-bg), #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.admin-page .admin-table-head {
  color: var(--accent-soft);
}

.admin-page .admin-table-row,
.admin-page .admin-card-copy span,
.admin-page .admin-card-copy strong,
.admin-page .admin-login-copy,
.admin-page .admin-form span,
.admin-login-page .admin-form span {
  color: #111827;
}

.admin-page .admin-form input,
.admin-page .admin-plan-form input,
.admin-page .admin-plan-form select,
.admin-login-page .admin-form input {
  background: #ffffff;
  color: #111827;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.admin-page .admin-action-btn.approve {
  background: rgba(34, 197, 94, 0.14);
  color: #166534;
}

.admin-page .admin-action-btn.cancel {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.admin-actions-column {
  flex-direction: column;
  align-items: flex-start;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  color: #111827;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body[data-theme="dark"] .status-chip {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.28);
  color: #0f172a;
}

body[data-theme="dark"] .reward-highlight-inline .status-chip,
body[data-theme="dark"] .reward-highlight .status-chip {
  color: #0f172a !important;
  opacity: 1;
  text-shadow: none;
}

.task-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}

.task-reward-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.task-reward-row-top {
  align-items: flex-start;
}

.task-claim-form {
  margin: 0;
}

.task-card-list,
.investment-card-list {
  display: grid;
  gap: 14px;
}

.task-card,
.investment-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98));
  padding: 16px;
  display: grid;
  gap: 12px;
}

.task-card-top,
.investment-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.task-card-eyebrow,
.investment-card-eyebrow {
  margin: 0 0 6px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
}

.task-card-title,
.investment-card-title {
  display: block;
  color: #111827;
  font-size: 1.28rem;
  line-height: 1.12;
}

.task-meta-grid,
.investment-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.task-meta-box,
.investment-meta-box,
.task-reward-box,
.investment-callout {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.task-meta-box span,
.investment-meta-box span,
.task-reward-box span,
.investment-callout span {
  color: #64748b;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.task-meta-box strong,
.investment-meta-box strong,
.task-reward-box strong,
.investment-callout strong {
  color: #111827;
  font-size: 1.06rem;
  line-height: 1.1;
}

.task-progress {
  height: 10px;
  background: #e2e8f0;
  overflow: hidden;
}

.task-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #111827, #475569);
}

.task-card .status-chip,
.investment-card .status-chip {
  align-self: start;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.88);
  color: #111827;
}

.task-card.is-complete .task-progress-bar {
  background: linear-gradient(90deg, #0f766e, #22c55e);
}

body[data-theme="dark"] .task-card,
body[data-theme="dark"] .investment-card {
  border-color: rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.98), rgba(8, 14, 25, 0.98));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .task-card-title,
body[data-theme="dark"] .investment-card-title,
body[data-theme="dark"] .task-meta-box strong,
body[data-theme="dark"] .investment-meta-box strong,
body[data-theme="dark"] .task-reward-box strong,
body[data-theme="dark"] .investment-callout strong,
body[data-theme="dark"] .task-card .status-chip,
body[data-theme="dark"] .investment-card .status-chip {
  color: #f8fafc;
}

body[data-theme="dark"] .task-card-eyebrow,
body[data-theme="dark"] .investment-card-eyebrow,
body[data-theme="dark"] .task-meta-box span,
body[data-theme="dark"] .investment-meta-box span,
body[data-theme="dark"] .task-reward-box span,
body[data-theme="dark"] .investment-callout span {
  color: #cbd5e1;
}

body[data-theme="dark"] .task-meta-box,
body[data-theme="dark"] .investment-meta-box,
body[data-theme="dark"] .task-reward-box,
body[data-theme="dark"] .investment-callout,
body[data-theme="dark"] .task-card .status-chip,
body[data-theme="dark"] .investment-card .status-chip {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
}

body[data-theme="dark"] .task-progress {
  background: rgba(148, 163, 184, 0.16);
}

@media (max-width: 720px) {
  .task-meta-grid,
  .investment-meta-grid {
    grid-template-columns: 1fr;
  }

  .task-card-top,
  .investment-card-top {
    grid-template-columns: 1fr;
    display: grid;
  }

  .task-card .status-chip,
  .investment-card .status-chip {
    justify-self: start;
  }
}

.support-shell {
  gap: 16px;
}

.support-thread {
  padding: 16px;
}

.support-messages {
  display: grid;
  gap: 12px;
}

.support-message {
  display: flex;
}

.support-message.is-user {
  justify-content: flex-end;
}

.support-message.is-admin {
  justify-content: flex-start;
}

.support-bubble {
  max-width: 78%;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}

.support-message.is-admin .support-bubble {
  background: #111827;
  color: #ffffff;
}

.support-bubble img {
  width: 100%;
  border-radius: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.support-time {
  font-size: 0.75rem;
  color: #6b7280;
}

.support-message.is-admin .support-time {
  color: #cbd5e1;
}

.support-form {
  display: grid;
  gap: 12px;
}

.support-form textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  color: #111827;
  padding: 12px 14px;
  font: inherit;
  outline: none;
  border-radius: 0;
  resize: vertical;
}

.support-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
  text-decoration: none;
  z-index: 1001;
}

.support-fab svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.support-admin-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
}

.support-admin-list {
  display: grid;
  gap: 10px;
}

.support-admin-user {
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  color: #111827;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.support-admin-user.is-active {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 10px 18px rgba(34, 197, 94, 0.12);
}

.support-admin-thread {
  display: grid;
  gap: 14px;
}

.reward-highlight {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  display: grid;
  gap: 6px;
}

.reward-highlight-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reward-sticky {
  position: sticky;
  top: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .support-admin-grid {
    grid-template-columns: 1fr;
  }
}
