:root {
  color-scheme: dark;
  /* Default: Dark Slate & Electric Mint Theme */
  --bg: #131a22;
  --bg2: #162029;
  --bg3: #1a2530;
  --card-bg: #1c2732;
  --card-header: #233240;
  --jade: #2ed59e;
  --jade2: #26c28e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-secondary: #cbd5e1;
  --muted: #8e9fae;
  --gold: #f5a623;
  --gold2: #d98218;
  --mint: #2ed59e;
  --cyan: #1ea1f2;
  --danger: #ef4444;
  --ok: #2ed59e;
  --accent-mint: #2ed59e;
  --ink: #131a22;
  --radius: 16px;
  --font: "Inter", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Inter", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* === ADVANCED DARK SLATE & ELECTRIC MINT DESIGN TOKENS === */
  --glass-bg-primary: rgba(28, 39, 50, 0.88);
  --glass-bg-secondary: rgba(28, 39, 50, 0.75);
  --glass-bg-tertiary: rgba(22, 32, 41, 0.65);
  --glass-bg-solid: #1c2732;
  --glass-bg-card: linear-gradient(135deg, rgba(28, 39, 50, 0.95) 0%, rgba(22, 32, 41, 0.92) 100%);
  --glass-bg-card-hover: linear-gradient(135deg, rgba(35, 50, 64, 0.98) 0%, rgba(28, 39, 50, 0.95) 100%);
  --glass-bg-header: rgba(19, 26, 34, 0.92);
  --glass-border-crisp: 1px solid rgba(255, 255, 255, 0.08);
  --glass-border-subtle: 1px solid rgba(255, 255, 255, 0.06);
  --glass-border-glow: 1px solid rgba(46, 213, 158, 0.35);
  --glass-blur: blur(20px) saturate(180%);
  --glass-blur-heavy: blur(28px) saturate(190%);
  --glass-blur-sm: blur(12px) saturate(160%);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.38), inset 0 1px 1px 0 rgba(255, 255, 255, 0.06);
  --glass-shadow-hover: 0 14px 40px 0 rgba(0, 0, 0, 0.48), inset 0 1px 1px 0 rgba(46, 213, 158, 0.15);
  --glass-highlight: inset 0 1px 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.35);
}

:root[data-theme="light"],
[data-theme="light"] {
  color-scheme: light;
  /* Light Theme: Emerald Jade & Pearl Glass */
  --bg: #f4fbf7;
  --bg2: #eaf7ef;
  --bg3: #def2e5;
  --card-bg: #ffffff;
  --card-header: #f0faf3;
  --jade: #0f7a45;
  --jade2: #0b6338;
  --line: rgba(15, 122, 69, 0.14);
  --line-strong: rgba(15, 122, 69, 0.22);
  --text: #0e291b;
  --text-secondary: #334d40;
  --muted: #567264;
  --gold: #d97706;
  --gold2: #b45309;
  --mint: #10b981;
  --cyan: #0284c7;
  --danger: #dc2626;
  --ok: #0f7a45;
  --accent-mint: #0f7a45;
  --ink: #0e291b;
  --radius: 16px;
  --font: "Inter", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Inter", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Glass tokens - Light Mode */
  --glass-bg-primary: rgba(255, 255, 255, 0.88);
  --glass-bg-secondary: rgba(255, 255, 255, 0.75);
  --glass-bg-tertiary: rgba(240, 250, 243, 0.65);
  --glass-bg-solid: #ffffff;
  --glass-bg-card: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 251, 247, 0.90) 100%);
  --glass-bg-card-hover: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 250, 243, 0.94) 100%);
  --glass-bg-header: rgba(255, 255, 255, 0.88);
  --glass-border-crisp: 1px solid rgba(15, 122, 69, 0.15);
  --glass-border-subtle: 1px solid rgba(15, 122, 69, 0.08);
  --glass-border-glow: 1px solid rgba(15, 122, 69, 0.35);
  --glass-blur: blur(20px) saturate(180%);
  --glass-blur-heavy: blur(28px) saturate(190%);
  --glass-blur-sm: blur(12px) saturate(160%);
  --glass-shadow: 0 8px 30px rgba(11, 55, 33, 0.06), inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
  --glass-shadow-hover: 0 14px 38px rgba(11, 55, 33, 0.12), inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
  --glass-highlight: inset 0 1px 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 1px 0 rgba(15, 122, 69, 0.05);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(46, 213, 158, 0.12), transparent 70%),
    radial-gradient(900px 500px at 85% 25%, rgba(30, 161, 242, 0.08), transparent 60%),
    radial-gradient(800px 600px at 15% 75%, rgba(46, 213, 158, 0.06), transparent 60%),
    linear-gradient(180deg, #131a22 0%, #162029 45%, #11171e 100%);
  background-attachment: fixed;
  letter-spacing: -0.01em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="light"] body,
body[data-theme="light"] {
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(15, 122, 69, 0.08), transparent 70%),
    radial-gradient(900px 500px at 85% 25%, rgba(14, 165, 233, 0.06), transparent 60%),
    radial-gradient(800px 600px at 15% 75%, rgba(15, 122, 69, 0.05), transparent 60%),
    linear-gradient(180deg, #f4fbf7 0%, #ebf7f0 45%, #e2f4e9 100%);
  background-attachment: fixed;
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.wrap-fluid {
  width: calc(100% - 48px);
  max-width: 1720px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .wrap-fluid {
    width: calc(100% - 24px);
  }
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 56px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  display: block;
}

.mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--jade), var(--jade2));
  color: #fff;
  font-weight: 800;
}

.nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 12px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 12px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #2ed59e, #26c28e);
  color: #0b1a13;
  font-weight: 750;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(46, 213, 158, 0.25);
  text-decoration: none;
}

.btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 24px rgba(46, 213, 158, 0.42);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(36, 51, 64, 0.65);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-ghost:hover {
  background: rgba(45, 63, 79, 0.9);
  border-color: rgba(46, 213, 158, 0.4);
  color: #2ed59e;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.btn-mint {
  background: linear-gradient(135deg, #2ed59e, #26c28e);
  color: #0b1a13;
  font-weight: 750;
}

.btn-secondary {
  background: #1ea1f2;
  color: #ffffff;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(30, 161, 242, 0.28);
}

.btn-secondary:hover {
  background: #38b2ff;
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(30, 161, 242, 0.42);
}

.btn-light {
  background: #1c2732;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 9px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 0 28px;
  gap: 16px;
  width: 100%;
}

.landing .hero,
.hero.hero-centered {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 36px 0 28px !important;
  gap: 16px !important;
  width: 100% !important;
}

.hero-centered .hero-logo-wrapper {
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 440px;
}

.hero-centered .hero-centered-content {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.hero-centered .hero-title,
.hero-title.text-center {
  text-align: center !important;
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.12;
  margin: 12px auto 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-lede {
  max-width: 620px;
  margin: 0 auto 22px;
  font-family: var(--serif, "EB Garamond", Georgia, serif);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.45;
  color: var(--muted);
}

.hero-cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
  margin: 0 auto 18px;
}

.hero-kpi {
  background: rgba(19, 26, 34, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 10px;
}

.hero-kpi b {
  display: block;
  font-family: var(--mono);
  font-size: clamp(18px, 2.4vw, 24px);
  color: #2ed59e;
  letter-spacing: -0.03em;
}

.hero-kpi span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-live-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 760px;
  margin: 8px auto 0;
  padding: 10px 14px;
  background: rgba(19, 26, 34, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.stats-band-centered {
  width: 100%;
  max-width: 980px;
  margin: 20px auto 16px !important;
}

.hero-logo img {
  width: 100%;
  max-width: 540px;
  height: auto;
  display: block;
  mix-blend-mode: normal;
}

.kicker {
  color: var(--jade);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
}

h1,
h2,
h3,
h4,
.display {
  font-family: var(--display);
  font-weight: 750;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.05;
  margin: 12px 0 16px;
  font-weight: 800;
}

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.55;
}

.cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.95) 0%, rgba(22, 32, 41, 0.92) 100%);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 8px 0 48px;
}

.stats-band .stat {
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.95) 0%, rgba(22, 32, 41, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 18px;
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stats-band .stat:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 213, 158, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(46, 213, 158, 0.1);
}

.stat {
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.95) 0%, rgba(22, 32, 41, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 18px;
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 213, 158, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(46, 213, 158, 0.1);
}

.stat b {
  display: block;
  font-size: 28px;
  margin-top: 6px;
  color: var(--jade);
  font-family: var(--display);
}

.details {
  display: grid;
  gap: 18px;
  padding-bottom: 56px;
}

.details h2 {
  font-size: 32px;
  margin: 8px 0 6px;
}

.details .lede {
  margin-bottom: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.detail-grid article p {
  margin-top: 8px;
}

.site-foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
  position: relative;
  z-index: 1;
}

.site-foot .foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 28px;
}

.site-foot h4 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--jade);
}

.site-foot a,
.site-foot p {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.site-foot a:hover {
  color: var(--text);
}

.site-foot .copy {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(340px, 88%);
  margin: 0 auto;
}

.auth-logo img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.form-logo {
  display: none;
  width: 160px;
  margin: 0 auto 12px;
}

.form-logo img {
  width: 100%;
  display: block;
  margin: 0 auto;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 8px 0 72px;
}

.card {
  padding: 22px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 22px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-art {
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
  background:
    radial-gradient(500px 300px at 50% 30%, rgba(255, 255, 255, .55), transparent),
    linear-gradient(180deg, #d8f6e6, #bfead0);
  border-right: 1px solid var(--line);
}

.auth-art h2 {
  font-size: 40px;
  margin: 0;
  max-width: 14ch;
}

.auth-art .muted {
  max-width: 36ch;
}

.auth-form {
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.form {
  width: min(420px, 100%);
  padding: 28px;
}

.form h1 {
  font-size: 32px;
  margin: 0 0 8px;
}

.field {
  display: block;
  margin: 14px 0;
  font-size: 13px;
  color: var(--muted);
}

.field input,
.field select,
input.in,
select.in,
textarea.in {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 2px rgba(15, 70, 42, 0.05);
  color: var(--text);
  outline: none;
  transition: all 0.2s ease;
}

.field input:focus,
.field select:focus,
input.in:focus,
select.in:focus,
textarea.in:focus {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--jade);
  box-shadow: 0 0 0 4px rgba(15, 122, 69, 0.14), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.autofill-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-danger {
  background: #fff;
  color: var(--danger);
  border: 1px solid rgba(234, 84, 85, 0.28);
}

.admin-title {
  margin: 18px 0 6px;
  font-size: 32px;
}

.admin-kicker {
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--jade);
  font-weight: 600;
}

.admin-sec-title {
  font-family: var(--display);
  font-size: 24px;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-sec-sub {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 600;
}

.admin-section {
  margin-bottom: 36px;
}

/* =========================================================
   ADMIN DASHBOARD TAILORED SUITE
   ========================================================= */
body.admin-body {
  background: #edf5f0;
  color: #122b1e;
  letter-spacing: -0.01em;
}

/* =========================================================
   ADMIN TERMINAL SUITE & SIDEBAR DRAWER
   ========================================================= */
.admin-terminal-body {
  --font: "Inter", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Inter", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-family: var(--font);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(46, 213, 158, 0.12), transparent 70%),
    radial-gradient(900px 500px at 85% 25%, rgba(30, 161, 242, 0.08), transparent 60%),
    radial-gradient(800px 600px at 15% 75%, rgba(46, 213, 158, 0.06), transparent 60%),
    linear-gradient(180deg, #131a22 0%, #162029 45%, #11171e 100%);
  background-attachment: fixed;
  color: var(--text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: clip;
}

[data-theme="light"] .admin-terminal-body,
body[data-theme="light"].admin-terminal-body {
  --font: "Inter", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Inter", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-family: var(--font);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(15, 122, 69, 0.08), transparent 70%),
    radial-gradient(900px 500px at 85% 25%, rgba(14, 165, 233, 0.06), transparent 60%),
    radial-gradient(800px 600px at 15% 75%, rgba(15, 122, 69, 0.05), transparent 60%),
    linear-gradient(180deg, #f4fbf7 0%, #ebf7f0 45%, #e2f4e9 100%) !important;
  background-attachment: fixed !important;
  color: var(--text) !important;
}

.admin-terminal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  width: 100%;
}

/* 1. ADMIN SIDEBAR */
.admin-sidebar {
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-right: 1px solid rgba(255, 255, 255, 0.75);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 50;
  box-sizing: border-box;
  box-shadow: 4px 0 24px rgba(11, 55, 33, 0.05);
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 14px;
  border-bottom: 1px solid rgba(15, 122, 69, 0.1);
  position: relative;
}

.admin-sidebar-brand img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.admin-brand-text {
  display: flex;
  flex-direction: column;
}

.admin-brand-title {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  color: #0b4d2c;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.admin-brand-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0f7a45;
  text-transform: uppercase;
}

/* Sidebar Navigation Menu */
.admin-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #2d5540;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-sizing: border-box;
}

.admin-nav-item:hover {
  background: rgba(15, 122, 69, 0.06);
  color: #0b4d2c;
  transform: translateX(3px);
}

.admin-nav-item.active {
  background: linear-gradient(135deg, #0b4d2c 0%, #0f7a45 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(15, 122, 69, 0.25);
}

.admin-nav-item.active .admin-nav-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.admin-nav-icon {
  font-size: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jade);
}

.admin-nav-icon svg {
  width: 18px;
  height: 18px;
}

.admin-nav-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(15, 122, 69, 0.1);
  color: #0f7a45;
  font-weight: 700;
}

/* Sidebar Footer Controls */
.admin-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 122, 69, 0.1);
}

.admin-side-payout-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid rgba(15, 122, 69, 0.2);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

.admin-side-payout-btn.open {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

.admin-side-payout-btn.closed {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.admin-side-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(15, 122, 69, 0.18);
  background: #ffffff;
  color: #1a3b2b;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.admin-side-action-btn:hover {
  background: rgba(15, 122, 69, 0.08);
  color: #0b4d2c;
  border-color: #0f7a45;
}

.admin-side-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(234, 84, 85, 0.25);
  background: #ffffff;
  color: #dc2626;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-side-logout-btn:hover {
  background: #dc2626;
  color: #ffffff;
}

/* 2. ADMIN MAIN AREA */
.admin-main-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.admin-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 20px rgba(11, 55, 33, 0.04);
  position: sticky;
  top: 0;
  z-index: 40;
}

.admin-top-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-top-tag {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b4d2c;
  background: rgba(15, 122, 69, 0.1);
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid rgba(15, 122, 69, 0.18);
}

.admin-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-content-inner {
  padding: 24px 28px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Tab Panels */
.admin-view-panel {
  display: none;
  animation: adminFadeIn 0.22s ease-out forwards;
}

.admin-view-panel.active {
  display: block;
}

@keyframes adminFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-sec {
  margin-bottom: 24px;
}

.admin-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.admin-sec-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: #0b4d2c;
  margin: 0;
  letter-spacing: -0.02em;
}

.admin-sec-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4a6b5a;
  margin: 2px 0 0;
  font-weight: 700;
}

/* HOME 8 KPI Cards Grid */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 1200px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.kpi-row-1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.kpi-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.admin-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.58) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 8px 24px rgba(11, 55, 33, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(11, 55, 33, 0.11), inset 0 1px 1px #fff;
}

.admin-card::before {
  display: none;
}

.admin-card.gold::before {
  background: #d97706;
}

.admin-card.mint::before {
  background: #16a34a;
}

.admin-card .kpi-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #557766;
  margin: 0 0 4px;
}

.admin-card .kpi-val {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  color: #0b4d2c;
  margin: 0;
  line-height: 1.15;
}

.admin-card .kpi-sub {
  font-size: 11px;
  color: #729181;
  margin: 3px 0 0;
}

.admin-card .kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eef7f2;
  border: 1px solid rgba(15, 122, 69, 0.12);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* CODE VAULT Split Box */
.vault-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.vault-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.55) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 26px rgba(11, 55, 33, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vault-panel h3 {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f7a45;
  margin: 0 0 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.slot-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.slot-input {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #122b1e;
  width: 100%;
  transition: all 0.15s ease;
}

.slot-input:focus {
  border-color: #0f7a45;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 3px rgba(15, 122, 69, 0.15);
  outline: none;
}

.send-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.send-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #557766;
  margin-bottom: 4px;
}

.send-field input,
.send-field select {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

.send-field input:focus {
  border-color: #0f7a45;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 3px rgba(15, 122, 69, 0.15);
  outline: none;
}

.qty-flex {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-flex input {
  width: 80px;
}

/* Inventory Header Bars & Pagination Bars */
.code-inventory-head-bar,
.member-inventory-head-bar {
  background: #1c2732;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.table-pagination-bar {
  background: #1c2732;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

/* Tables & Controls */
.admin-table-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.58) 100%);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(11, 55, 33, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.admin-table thead {
  background: rgba(230, 246, 236, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 70, 42, 0.1);
}

.admin-table th {
  padding: 11px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #527563;
  white-space: nowrap;
}

.admin-table td {
  padding: 11px 14px;
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  color: var(--text, #ffffff);
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background: rgba(46, 213, 158, 0.06);
}

/* Generic Table Styles for Member List Modals */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
  border-radius: 12px;
  overflow: hidden;
}

.table thead {
  background: #233240;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.table th {
  padding: 14px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8e9fae;
  white-space: nowrap;
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #ffffff;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.table tbody tr {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.table tbody tr:hover {
  background: rgba(46, 213, 158, 0.12);
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(46, 213, 158, 0.15);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table .center {
  text-align: center;
}

.table .tiny {
  font-size: 12px;
  color: var(--muted);
}

.table strong {
  color: var(--jade);
  font-weight: 700;
}

/* Light Theme Table Overrides */
[data-theme="light"] .table thead {
  background: #f4faf6;
  border-bottom: 1.5px solid rgba(15, 122, 69, 0.15);
}

[data-theme="light"] .table th {
  color: #0b4d2c;
}

[data-theme="light"] .table td {
  color: #0e291b;
  border-bottom: 1px solid rgba(15, 122, 69, 0.08);
}

[data-theme="light"] .table tbody tr:hover {
  background: rgba(15, 122, 69, 0.06);
}

[data-theme="light"] .table strong {
  color: #0f7a45;
}

/* Filters & Search */
.ctrl-tabs {
  display: inline-flex;
  background: #e7f2eb;
  padding: 3px;
  border-radius: 8px;
  gap: 3px;
}

.ctrl-tab {
  border: 0;
  background: transparent;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #4a6b5a;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ctrl-tab.active {
  background: #ffffff;
  color: #0b4d2c;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.ctrl-search {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(15, 70, 42, 0.16);
  background: #ffffff;
  font-size: 12px;
  width: 220px;
}

.ctrl-search:focus {
  border-color: #0f7a45;
  outline: none;
}

/* Status Badges */
.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tag-active,
.tag-available,
.tag-approved {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.tag-assigned,
.tag-pending {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.tag-expired,
.tag-used,
.tag-rejected {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.btn-admin-del {
  background: #ffffff;
  color: #dc2626;
  border: 1px solid #fca5a5;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-admin-del:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.btn-admin-action {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
}

.btn-admin-approve {
  background: #16a34a;
  color: #ffffff;
}

.btn-admin-approve:hover {
  background: #15803d;
}

.btn-admin-reject {
  background: #ef4444;
  color: #ffffff;
}

.btn-admin-reject:hover {
  background: #dc2626;
}

@media (max-width: 900px) {

  .admin-kpi-grid,
  .kpi-row-1,
  .kpi-row-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .vault-container {
    grid-template-columns: 1fr;
  }
}

.pwd-masked {
  -webkit-text-security: disc !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #151f28 inset !important;
  box-shadow: 0 0 0 1000px #151f28 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
  caret-color: #2ed59e !important;
  border-color: rgba(46, 213, 158, 0.4) !important;
  transition: background-color 5000s ease-in-out 0s;
}

[data-theme="light"] input:-webkit-autofill,
[data-theme="light"] input:-webkit-autofill:hover,
[data-theme="light"] input:-webkit-autofill:focus,
[data-theme="light"] input:-webkit-autofill:active,
[data-theme="light"] textarea:-webkit-autofill,
[data-theme="light"] select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #0e291b !important;
  color: #0e291b !important;
  caret-color: #0f7a45 !important;
  border-color: rgba(15, 122, 69, 0.3) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.err {
  display: none;
}

.err.show {
  display: block;
  padding: 10px 14px;
  background: rgba(234, 84, 85, .08);
  border: 1px solid rgba(234, 84, 85, .25);
  border-radius: 12px;
  color: var(--danger);
  font-size: 13px;
  margin-bottom: 6px;
}

.center {
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.center a {
  color: var(--jade);
}

/* Sponsor pre-fill notice */
.sponsor-notice {
  font-size: 12px;
  color: var(--jade);
  background: rgba(15, 122, 69, .07);
  border: 1px solid rgba(15, 122, 69, .15);
  border-radius: 10px;
  padding: 7px 12px;
  margin-top: 6px;
  display: none;
}

.sponsor-notice.show {
  display: block;
}

/* Wallet total row */
.wallet-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 0 0 14px;
  box-shadow: 0 4px 16px rgba(20, 80, 50, .06);
}

.wallet-total .wt-label {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.wallet-total .wt-val {
  font-family: var(--display);
  font-size: 28px;
  color: var(--jade);
  font-weight: 600;
}

/* Fee preview */
.fee-preview {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  min-height: 14px;
  transition: color .2s;
}

.fee-preview.ready {
  color: var(--jade);
}

/* Payout alert on wallet */
.payout-alert {
  display: none;
  padding: 8px 12px;
  background: rgba(234, 84, 85, .07);
  border: 1px solid rgba(234, 84, 85, .2);
  border-radius: 10px;
  font-size: 12px;
  color: var(--danger);
  margin-top: 8px;
}

.payout-alert.show {
  display: block;
}

/* Trade-in blocked state */
.tradein-blocked-notice {
  display: none;
  padding: 12px 16px;
  background: rgba(234, 84, 85, .07);
  border: 1px solid rgba(234, 84, 85, .2);
  border-radius: 14px;
  font-size: 13px;
  color: var(--danger);
  margin-bottom: 12px;
}

.tradein-blocked-notice.show {
  display: block;
}

.tradein-blocked fieldset {
  opacity: .45;
  pointer-events: none;
}

/* Wallet card cap-bar animation */
.bar>i {
  transition: width .8s cubic-bezier(.22, 1, .36, 1);
}

/* Admin ban button */
.btn-admin-ban {
  background: #fff;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-admin-ban:hover {
  background: #b45309;
  color: #fff;
  border-color: #b45309;
}

.btn-admin-unban {
  background: #fff;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-admin-unban:hover {
  background: #15803d;
  color: #fff;
  border-color: #15803d;
}

/* System wallet totals bar */
.wallet-totals-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.wt-card {
  background: var(--card-bg, #1c2732);
  border: 1px solid var(--line, rgba(255, 255, 255, .08));
  border-radius: 12px;
  padding: 12px 16px;
  transition: all 0.2s ease;
}

.wt-card .wt-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted, #8e9fae);
  margin: 0 0 3px;
  white-space: normal;
  word-wrap: break-word;
  hyphens: auto;
}

.wt-card .wt-card-val {
  font-family: var(--display);
  font-size: 20px;
  color: var(--jade, #2ed59e);
  margin: 0;
}

[data-theme="light"] .wt-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 122, 69, .14) !important;
  box-shadow: 0 4px 14px rgba(11, 55, 33, 0.04) !important;
}

[data-theme="light"] .wt-card .wt-card-label {
  color: #557766 !important;
}

[data-theme="light"] .wt-card .wt-card-val {
  color: #0b4d2c !important;
}

@media (max-width: 900px) {
  .wallet-totals-bar {
    grid-template-columns: 1fr;
  }
}

.appbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(200, 239, 216, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.wallets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0;
}

.wallet {
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.wallet::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--jade);
}

.wallet.ref::before {
  background: var(--gold);
}

.wallet.cycle::before {
  background: var(--mint);
}

.wallet .label {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.wallet .bal {
  font-family: var(--display);
  font-size: 34px;
  margin: 10px 0 6px;
}

.row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.row input.in,
.row select.in {
  flex: 1;
}

.split {
  display: grid;
  grid-template-columns: 1.7fr .9fr;
  gap: 14px;
}

.chart {
  overflow: hidden;
}

.chart-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

#tvchart {
  height: 430px;
}

.tvchart-shell {
  position: relative;
  background: #fff;
}

.tvchart-symbol-brand {
  position: absolute;
  z-index: 4;
  top: 46px;
  left: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  max-width: min(92%, 380px);
  padding: 6px 14px 8px 12px;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 78%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.tvchart-brand-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #131722;
  line-height: 1.2;
}

.tvchart-brand-meta {
  font-size: 12px;
  font-weight: 600;
  color: #787b86;
  line-height: 1.2;
}

.chart-live-pill {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(15, 122, 69, .12);
  overflow: hidden;
  margin-top: 12px;
}

.bar>i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--jade), var(--gold));
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 14px 0 48px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
}

.banner {
  display: none;
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200000;
  min-width: 320px;
  max-width: min(92vw, 540px);
  padding: 14px 22px;
  border-radius: 16px;
  border: 1.5px solid #ef4444;
  background: #ffffff;
  color: #991b1b;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 4px 12px rgba(239, 68, 68, 0.2);
  text-align: center;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  animation: bannerToastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bannerToastIn {
  from {
    opacity: 0;
    transform: translate(-50%, -20px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.banner.show {
  display: block;
}

.banner.ok {
  border-color: #10b981;
  background: #f0fdf4;
  color: #065f46;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(16, 185, 129, 0.25);
}

.pill {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 11px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.pill.open {
  color: var(--ok);
  border-color: rgba(155, 231, 196, .4);
}

.pill.closed {
  color: var(--danger);
  border-color: rgba(240, 160, 160, .35);
}

/* =========================================================
   INFINITE TRADING TERMINAL SUITE (MATCHING REFERENCE LAYOUT)
   ========================================================= */

body.dash-terminal-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  --font: "Inter", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Inter", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-family: var(--font);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(46, 213, 158, 0.12), transparent 70%),
    radial-gradient(900px 500px at 85% 25%, rgba(30, 161, 242, 0.08), transparent 60%),
    radial-gradient(800px 600px at 15% 75%, rgba(46, 213, 158, 0.06), transparent 60%),
    linear-gradient(180deg, #131a22 0%, #162029 45%, #11171e 100%);
  background-attachment: fixed;
  color: var(--text);
  overflow-x: clip;
}

[data-theme="light"] body.dash-terminal-body,
body[data-theme="light"].dash-terminal-body {
  --font: "Inter", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Inter", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-family: var(--font);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(15, 122, 69, 0.08), transparent 70%),
    radial-gradient(900px 500px at 85% 25%, rgba(14, 165, 233, 0.06), transparent 60%),
    radial-gradient(800px 600px at 15% 75%, rgba(15, 122, 69, 0.05), transparent 60%),
    linear-gradient(180deg, #f4fbf7 0%, #ebf7f0 45%, #e2f4e9 100%) !important;
  background-attachment: fixed !important;
  color: var(--text) !important;
}

.dash-terminal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* 1. FULL-HEIGHT LEFT SIDEBAR */
.dash-sidebar {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-right: 1px solid rgba(255, 255, 255, 0.75);
  padding: 12px 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(11, 55, 33, 0.05);
}

.dash-sidebar-brand {
  padding: 2px 4px 8px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(15, 122, 69, 0.1);
  flex-shrink: 0;
}

.dash-sidebar-brand .brand-logo {
  height: 38px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.dash-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

/* Sidebar Accordion Cards */
.side-nav-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.52) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 70, 42, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-nav-card:hover {
  border-color: rgba(15, 122, 69, 0.35);
  box-shadow: 0 6px 20px rgba(15, 70, 42, 0.08), inset 0 1px 1px #fff;
}

.side-nav-header {
  background: linear-gradient(135deg, rgba(11, 77, 44, 0.95) 0%, rgba(15, 122, 69, 0.95) 100%);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.side-nav-header:hover {
  filter: brightness(1.08);
}

.side-nav-header .side-title {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
  flex: 1;
}

.side-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jade);
}

.side-nav-icon svg {
  width: 18px;
  height: 18px;
}

.side-nav-header .accordion-caret {
  font-size: 10px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  opacity: 0.9;
}

.side-nav-card.collapsed .accordion-caret {
  transform: rotate(-90deg);
}

.side-nav-body {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(15, 122, 69, 0.08);
  transition: all 0.25s ease;
}

.side-nav-card.collapsed .side-nav-body {
  display: none;
}

.side-nav-btn,
.side-sub-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #f8fafc !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.side-sub-btn {
  padding-left: 16px;
  font-size: 12.5px;
  color: #cbd5e1 !important;
}

.side-nav-btn:hover,
.side-sub-btn:hover {
  background: rgba(46, 213, 158, 0.12) !important;
  color: var(--jade, #2ed59e) !important;
  transform: translateX(3px);
}

.side-info-card {
  background: rgba(46, 213, 158, 0.1) !important;
  border: 1px solid rgba(46, 213, 158, 0.3) !important;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 6px 0 4px;
  font-size: 11.5px;
  color: #f1f5f9 !important;
  line-height: 1.55;
}

.side-info-card p {
  color: #e2e8f0 !important;
}

.side-info-card strong {
  color: #2ed59e !important;
  font-weight: 750;
}

/* Wallet Withdrawal CTA button */
.side-cta-btn {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: var(--card-bg, #1c2732);
  color: var(--jade, #2ed59e) !important;
  border: 1.5px solid var(--line, rgba(255, 255, 255, 0.1)) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  cursor: pointer;
}

.side-cta-btn:hover {
  background: var(--jade, #2ed59e);
  color: #131a22 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(46, 213, 158, 0.3);
}

.side-cta-btn.side-cta-alt {
  margin-top: 6px;
  color: var(--text, #ffffff) !important;
}

.side-cta-btn .side-cta-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  color: var(--jade);
}

.side-cta-btn .side-cta-icon svg {
  width: 18px;
  height: 18px;
}

/* Light Mode Sidebar CTAs */
[data-theme="light"] .side-cta-btn {
  background: #ffffff !important;
  color: #0f7a45 !important;
  border: 1.5px solid rgba(15, 122, 69, 0.25) !important;
  box-shadow: 0 4px 14px rgba(15, 70, 42, 0.06) !important;
}

[data-theme="light"] .side-cta-btn:hover {
  background: #0f7a45 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(15, 70, 42, 0.2) !important;
}

[data-theme="light"] .side-cta-btn.side-cta-alt {
  color: #0e291b !important;
}

/* Referral link box */
.side-ref-card {
  background: var(--card-bg, #1c2732);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  margin-top: auto;
}

.side-ref-card input.in {
  background: rgba(0, 0, 0, 0.25) !important;
  color: #2ed59e !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  font-weight: 600 !important;
}

[data-theme="light"] .side-ref-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 122, 69, 0.2) !important;
  box-shadow: 0 4px 14px rgba(15, 70, 42, 0.05), inset 0 1px 1px #ffffff !important;
}

[data-theme="light"] .side-ref-card input.in {
  background: #f8fdf9 !important;
  color: #0b4d2c !important;
  border: 1px solid rgba(15, 122, 69, 0.25) !important;
}

/* 2. MAIN RIGHT DASHBOARD AREA */
.dash-main-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

/* Top Navigation Bar */
.dash-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 20px rgba(11, 55, 33, 0.04);
  position: sticky;
  top: 0;
  z-index: 40;
}

.dash-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(15, 70, 42, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.95);
}

.user-avatar-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar-icon svg {
  width: 16px;
  height: 16px;
}

.user-badge-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.user-badge-name {
  font-size: 12px;
  font-weight: 700;
  color: #0b4d2c;
}

.user-badge-status {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.user-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
  display: inline-block;
}

.user-status-dot.inactive {
  background: #ea5455;
  box-shadow: 0 0 0 2px rgba(234, 84, 85, 0.25);
}

.dash-logout-btn {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #143528;
  border: 1px solid rgba(15, 122, 69, 0.18);
  background: #ffffff;
  transition: all 0.15s ease;
}

.dash-logout-btn:hover {
  background: rgba(234, 84, 85, 0.08);
  color: #dc2626;
  border-color: #dc2626;
}

.dash-logout-btn .logout-icon {
  font-size: 14px;
}

.dash-logout-btn .logout-icon-svg,
.admin-side-logout-btn .logout-icon-svg,
#logoutTopBtn .logout-icon-svg,
#logout .logout-icon-svg {
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  transition: transform 0.15s ease;
}

.dash-logout-btn:hover .logout-icon-svg,
.admin-side-logout-btn:hover .logout-icon-svg,
#logoutTopBtn:hover .logout-icon-svg,
#logout:hover .logout-icon-svg {
  transform: scale(1.12);
}

/* Inner Content Area */
.dash-content-inner {
  padding: 20px 28px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.dash-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
}

.dash-sec-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b4d2c;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-title-dot {
  color: #22c55e;
  font-size: 14px;
}

.dash-title-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: normal;
}

/* =========================================================
   ROW 1: 3 METRIC CARDS (TOTAL ~48%, BINARY ~26%, PPT ~26%)
   ========================================================= */
.metrics-row-1 {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 14px;
}

/* HERO TOTAL BALANCE CARD */
.m-card-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.58) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 32px rgba(11, 55, 33, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.95);
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 120px;
}

.m-card-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(11, 55, 33, 0.13), inset 0 1px 1px #fff;
  border-color: rgba(34, 197, 94, 0.4);
}

.m-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.m-hero-icon-stack {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 122, 69, 0.12), rgba(34, 197, 94, 0.2));
  border: 1px solid rgba(15, 122, 69, 0.18);
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
}

.m-hero-icon-stack svg {
  color: var(--jade);
}

.m-hero-content {
  display: flex;
  flex-direction: column;
}

.m-hero-val {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  color: var(--jade);
  margin: 2px 0 2px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.m-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  min-width: 120px;
}

.m-corner-icon {
  font-size: 18px;
}

.sparkline-svg {
  width: 130px;
  height: 40px;
}

/* STANDARD METRIC CARDS */
.m-card-std {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.54) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 26px rgba(11, 55, 33, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 120px;
}

.m-card-std:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(11, 55, 33, 0.11), inset 0 1px 1px #fff;
  border-color: rgba(34, 197, 94, 0.35);
}

.m-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.m-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.m-badge-icon {
  font-size: 14px;
  opacity: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-badge-icon svg {
  width: 18px;
  height: 18px;
}

.m-pill-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.badge-purple {
  background: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
  border: 1px solid rgba(139, 92, 246, 0.24);
}

.m-val {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  color: var(--jade);
  margin: 2px 0 2px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.m-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Profit Sharing Metric Cards */
.metric-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.58) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 8px 24px rgba(11, 55, 33, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

:root:not([data-theme="light"]) .metric-card,
[data-theme="dark"] .metric-card {
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.95) 0%, rgba(22, 32, 41, 0.92) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="light"] .metric-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 251, 247, 0.92) 100%) !important;
  border: 1px solid rgba(15, 122, 69, 0.15) !important;
  box-shadow: 0 4px 14px rgba(11, 55, 33, 0.04) !important;
}

/* PPT CARD WITH CIRCULAR PROGRESS DIAL */
.m-card-ppt {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.m-card-split-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  flex: 1;
}

.ppt-dial-wrap {
  position: relative;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ppt-dial-svg {
  width: 50px;
  height: 50px;
  transform: rotate(-90deg);
}

.ppt-dial-bg {
  fill: none;
  stroke: rgba(15, 122, 69, 0.12);
  stroke-width: 4;
}

.ppt-dial-bar {
  fill: none;
  stroke: #22c55e;
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}

.ppt-dial-text {
  position: absolute;
  font-size: 10px;
  font-weight: 700;
  color: var(--jade);
}

/* =========================================================
   ROW 2: 4 METRIC CARDS
   ========================================================= */
.metrics-row-2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.m-card-center-spark {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.sparkline-mini-svg {
  width: 54px;
  height: 20px;
  flex-shrink: 0;
}

.m-card-bottom-line {
  height: 3px;
  border-radius: 99px;
  margin-top: 8px;
  width: 36px;
}

.line-emerald {
  background: #16a34a;
}

.line-purple {
  background: #8b5cf6;
}

.line-gold {
  background: #e8943a;
}

.line-yellow {
  background: #eab308;
}

/* =========================================================
   ROW 3: BINARY CAP FULL-WIDTH CARD
   ========================================================= */
.binary-cap-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.55) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 16px 22px;
  box-shadow: 0 8px 26px rgba(11, 55, 33, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.cap-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cap-main-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cap-val-display {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  color: var(--jade);
  margin-top: 2px;
  display: block;
}

.cap-right-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.cap-track-bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(15, 122, 69, 0.1);
  overflow: hidden;
  margin-top: 10px;
}

.cap-track-bar>i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0f7a45 0%, #22c55e 50%, #e8943a 100%);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   ROW 4: TRADING VIEW LIVE CHART CARD
   ========================================================= */
.trading-chart-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.52) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(11, 55, 33, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.chart-top-bar {
  background: linear-gradient(135deg, rgba(11, 77, 44, 0.95) 0%, rgba(15, 122, 69, 0.95) 100%);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chart-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13.5px;
}

/* Hamburger Button & Drawer Controls */
.dash-burger-btn {
  display: none;
  background: transparent;
  border: none;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.dash-burger-btn:hover {
  background: rgba(46, 213, 158, 0.1);
}

.dash-burger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.dash-top-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-top-brand {
  display: none;
  align-items: center;
}

.dash-top-brand .top-brand-logo {
  height: 34px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.dash-sidebar-close {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(15, 122, 69, 0.2);
  background: #ffffff;
  color: #0b4d2c;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.dash-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 40, 25, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.dash-sidebar-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* RESPONSIVE LAYOUT BREAKPOINTS */
@media (max-width: 1240px) {
  .metrics-row-1 {
    grid-template-columns: 1fr 1fr;
  }

  .m-card-hero {
    grid-column: span 2;
  }

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

/* MOBILE VIEW (<= 900px) */
@media (max-width: 900px) {
  body.sidebar-drawer-open {
    overflow: hidden;
  }

  .dash-terminal-layout {
    grid-template-columns: 1fr;
    display: block;
  }

  .admin-terminal-layout {
    grid-template-columns: 1fr;
    display: block;
  }

  .dash-burger-btn {
    display: flex;
  }

  .dash-top-brand {
    display: flex;
  }

  .dash-top-tag {
    display: none;
  }

  .dash-sidebar-close {
    display: grid;
  }

  .dash-sidebar-backdrop {
    display: none;
    pointer-events: none;
  }

  .dash-sidebar-backdrop.show {
    display: block !important;
    pointer-events: auto;
  }

  /* Off-canvas Sliding Drawer Sidebar (User Dashboard) */
  .dash-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(310px, 86vw);
    height: 100vh;
    z-index: 99;
    transform: translateX(-105%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 6px 0 32px rgba(10, 40, 25, 0.25);
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid rgba(15, 122, 69, 0.2);
    padding: 18px 14px 85px;
    overflow-y: auto;
  }

  /* Off-canvas Sliding Drawer Sidebar (Admin Dashboard) */
  .admin-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(310px, 86vw);
    height: 100vh;
    z-index: 99;
    transform: translateX(-105%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 6px 0 32px rgba(10, 40, 25, 0.25);
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid rgba(15, 122, 69, 0.2);
    padding: 18px 14px 85px;
    overflow-y: auto;
  }

  /* Fix referral link being covered by bottom nav on mobile */
  .side-ref-card,
  .admin-side-ref-box {
    margin-bottom: 80px;
  }

  .dash-sidebar.open,
  .admin-sidebar.open {
    transform: translateX(0);
  }

  /* Compact Mobile Top Bar */
  .dash-top-bar {
    padding: 8px 12px !important;
    gap: 6px !important;
    height: 52px !important;
    min-height: 52px !important;
  }

  .dash-top-left {
    gap: 6px !important;
    min-width: 0 !important;
  }

  .dash-top-brand .top-brand-logo {
    height: 26px !important;
    max-width: 85px !important;
    object-fit: contain !important;
  }

  .dash-top-tag {
    display: none !important;
  }

  .dash-top-right {
    gap: 5px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }

  .dash-top-right .btn-theme-toggle {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .dash-top-right .btn-theme-toggle .theme-toggle-text {
    display: none !important;
  }

  .dash-top-right .user-badge {
    padding: 4px 8px !important;
    gap: 5px !important;
    max-width: 95px !important;
    overflow: hidden !important;
    flex-shrink: 1 !important;
  }

  .dash-top-right .user-badge-name {
    font-size: 11px !important;
    max-width: 55px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .dash-top-right .user-badge-status {
    display: none !important;
  }

  /* Universal Mobile Logout Button (Icon Only, Never Overflowed) */
  .dash-logout-btn,
  #logout {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    background: rgba(239, 68, 68, 0.12) !important;
    color: #ef4444 !important;
    border: 1.5px solid rgba(239, 68, 68, 0.35) !important;
    cursor: pointer !important;
  }

  .dash-logout-btn span:first-child,
  #logout span:first-child {
    display: none !important;
  }

  .dash-logout-btn .logout-icon,
  #logout .logout-icon,
  .dash-logout-btn .logout-icon-svg,
  #logout .logout-icon-svg {
    font-size: 16px !important;
    width: 17px !important;
    height: 17px !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: block !important;
  }

  /* Compact Content Inner Area */
  .dash-content-inner {
    padding: 12px 12px 36px;
    gap: 12px;
  }

  /* ROW 1: MOBILE OPTIMIZED (Hero Card + 2-Column Binary & PPT Grid) */
  .metrics-row-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .m-card-hero {
    grid-column: 1 / -1;
    padding: 14px 16px;
    min-height: auto;
  }

  .m-hero-val {
    font-size: 26px;
  }

  .m-hero-icon-stack {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .sparkline-svg {
    width: 90px;
    height: 30px;
  }

  .m-card-binary,
  .m-card-ppt {
    padding: 12px 12px;
    min-height: 100px;
  }

  .m-card-std .m-val {
    font-size: 19px;
  }

  .m-card-std .m-label {
    font-size: 9.5px;
  }

  .m-card-std .m-sub {
    font-size: 10px;
  }

  .ppt-dial-wrap {
    width: 40px;
    height: 40px;
  }

  .ppt-dial-svg {
    width: 40px;
    height: 40px;
  }

  .ppt-dial-text {
    font-size: 9px;
  }

  /* ROW 2: MOBILE OPTIMIZED (2x2 Grid) */
  .metrics-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .m-card-inppt,
  .m-card-trade-dep,
  .m-card-trade-profit,
  .m-card-trade-ref {
    padding: 12px 12px;
    min-height: 100px;
  }

  /* Binary Cap Mobile Card */
  .binary-cap-card {
    padding: 12px 14px;
  }

  .cap-val-display {
    font-size: 19px;
  }

  .cap-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .cap-right-side {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  /* Trading Chart Mobile */
  #tvchart {
    height: 350px !important;
  }

  .chart-top-bar {
    padding: 10px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* Admin Terminal Layout Mobile */
  .admin-terminal-layout {
    grid-template-columns: 1fr;
    display: block;
  }

  .admin-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(310px, 86vw);
    height: 100vh;
    z-index: 99;
    transform: translateX(-105%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 6px 0 32px rgba(10, 40, 25, 0.25);
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid rgba(15, 122, 69, 0.2);
    padding: 18px 14px 24px;
    overflow-y: auto;
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-top-bar {
    padding: 10px 14px;
    gap: 8px;
  }

  .admin-top-right {
    gap: 6px;
  }

  .admin-content-inner {
    padding: 14px 12px 40px;
    gap: 14px;
  }

  .admin-kpi-grid,
  .kpi-row-1,
  .kpi-row-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .vault-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .user-badge-status {
    display: none;
  }
}

/* Genealogy Tree visualizer */
.genealogy-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  overflow-x: auto;
}

.tree-node {
  background: #ffffff;
  border: 2px solid var(--jade);
  border-radius: 14px;
  padding: 10px 14px;
  text-align: center;
  min-width: 140px;
  box-shadow: 0 4px 14px rgba(15, 70, 42, 0.08);
}

.tree-node.empty {
  border: 2px dashed rgba(15, 122, 69, 0.3);
  background: #fafdfb;
  color: #8fa89b;
}

.tree-node-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #ffffff);
  margin: 0 0 3px;
}

.tree-node-counts {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  font-size: 11px;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  color: var(--muted, #8e9fae);
}

.tree-connector {
  width: 2px;
  height: 20px;
  background: var(--jade);
}

.tree-branches {
  display: flex;
  justify-content: center;
  gap: 40px;
  position: relative;
  width: 100%;
}

.tree-branches::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: var(--jade);
}

@media (max-width: 960px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .metrics-7-grid {
    grid-template-columns: 1fr;
  }

  .m7-val {
    font-size: 20px;
  }

  .tree-branches {
    gap: 16px;
  }

  .tree-node {
    min-width: 110px;
    padding: 8px;
  }
}

/* Responsive Grid Breakpoints */
@media (max-width: 1024px) {
  .wrap {
    width: calc(100% - 32px);
  }

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

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

  .kpi-row-1,
  .wallet-totals-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 0 36px;
  }

  .hero .lede {
    margin: 0 auto;
  }

  .hero .cta {
    justify-content: center;
  }

  .hero-logo {
    margin: 0 auto 16px;
    max-width: 340px;
  }

  .hero-logo img {
    margin: 0 auto;
    max-width: 100%;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-art {
    display: none;
  }

  .form-logo {
    display: block;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .two {
    grid-template-columns: 1fr;
  }

  .wallets {
    grid-template-columns: 1fr;
  }

  .grid3 {
    grid-template-columns: 1fr;
  }

  .codes {
    grid-template-columns: 1fr;
  }

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

  .stats-band {
    grid-template-columns: repeat(2, 1fr);
    margin: 8px 0 24px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .site-foot .foot-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hl {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .kpi-row-1,
  .kpi-row-2,
  .vault-container,
  .wallet-totals-bar {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 38px;
  }

  .wallet .bal {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 24px);
  }

  .top {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0;
  }

  .admin-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .admin-header .nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .wallet-total {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .wallet-total>div:last-child {
    text-align: left;
  }

  .stats-band {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stats-band .stat,
  .stat {
    padding: 12px 14px;
  }

  .stat b {
    font-size: 22px;
  }

  #tvchart {
    height: 320px;
  }

  .form {
    padding: 20px;
  }

  .plan-modal {
    padding: 10px;
  }

  .plan-modal-sheet {
    max-height: 92vh;
    border-radius: 18px;
    max-width: 95vw;
    margin: 0 auto;
  }

  .plan-modal-head {
    padding: 16px 16px 8px;
  }

  .plan-modal-head h2 {
    font-size: 18px;
  }

  .plan-tabs {
    padding: 0 12px 10px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .plan-tab {
    padding: 6px 10px;
    font-size: 11px;
    flex: 1 1 auto;
    min-width: calc(50% - 6px);
  }

  .plan-modal-body {
    padding: 6px 16px 18px;
  }

  /* Mobile Modal Animations - Faster for better UX */
  .plan-modal-sheet {
    animation: modalSlideUpMobile 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes modalSlideUpMobile {
    from {
      opacity: 0;
      transform: translateY(20px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .plan-modal.closing .plan-modal-sheet {
    animation: modalSlideDownMobile 0.15s ease-in forwards;
  }

  @keyframes modalSlideDownMobile {
    from {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
    to {
      opacity: 0;
      transform: translateY(15px) scale(0.98);
    }
  }

  /* Touch-friendly tap targets on mobile */
  .plan-modal .btn {
    min-height: 44px;
  }

  .plan-modal .btn-sm {
    min-height: 36px;
  }

  /* Better touch feedback on mobile */
  .plan-modal .btn:active {
    transform: scale(0.97);
  }

  .admin-sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ctrl-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ctrl-search {
    width: 100%;
  }
}

/* Landing motion */
.landing {
  --font: "Inter", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Inter", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.landing h1,
.landing h2,
.landing h3,
.landing h4,
.landing .display,
.landing .hero-title,
.landing .sec-title,
.landing .track-title {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.landing .hero-title {
  font-weight: 600;
}
.landing .kicker,
.landing .nav-link,
.landing .land-nav-menu a,
.landing .btn {
  font-family: var(--font);
}
.landing .sec-lede,
.landing .lede,
.landing .track-desc,
.landing .track-user-story p,
.landing .faq-a,
.landing blockquote {
  font-family: var(--serif);
  letter-spacing: 0;
}
.landing .metric-val,
.landing .stat strong,
.landing code,
.landing .calc-total,
.landing .calc-value-pill,
.landing .live-stream-stats {
  font-family: var(--mono);
}

.landing>.wrap {
  flex: 1;
  display: flex;
  align-items: center;
}

.landing .cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 212, 200, 0.18), transparent 68%);
  z-index: 0;
  opacity: 0;
  transition: opacity .4s ease;
}

.landing .cursor-glow.on {
  opacity: 1;
}

.landing .orbs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.landing .wrap,
.landing .foot,
.landing .ticker,
.landing .land-foot {
  position: relative;
  z-index: 1;
}

.land-foot {
  border-top: 1px solid var(--line);
  padding: 14px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.plan-modal[hidden] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  z-index: -1 !important;
}

.plan-modal[hidden] * {
  pointer-events: none !important;
}

.plan-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.plan-modal.closing {
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

.plan-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 20, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.plan-modal-sheet {
  position: relative;
  width: min(920px, 100%);
  max-height: min(86vh, 860px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: linear-gradient(135deg, #1c2732 0%, #17222c 100%);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  color: #ffffff;
}

.plan-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 10px;
}

.plan-modal-head h2 {
  margin: 6px 0 0;
  font-size: 28px;
  color: #ffffff;
}

.plan-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(36, 51, 64, 0.6);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.plan-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.plan-tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--bg2);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 8px;
}

.plan-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 9px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-tab:hover {
  color: var(--text);
}

.plan-tab.on {
  color: var(--jade);
  background: var(--card-bg);
  border-color: rgba(46, 213, 158, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .plan-tab.on {
  color: #0b4d2c !important;
  background: #ffffff !important;
  border-color: rgba(15, 122, 69, 0.25) !important;
  box-shadow: 0 2px 8px rgba(11, 55, 33, 0.08) !important;
}

/* Code Vault Modern Inventory Cards */
.code-vault-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.code-vault-card:hover {
  transform: translateY(-2px);
  border-color: var(--jade);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .code-vault-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 122, 69, 0.16) !important;
  box-shadow: 0 2px 8px rgba(11, 55, 33, 0.04) !important;
}

[data-theme="light"] .code-vault-card:hover {
  border-color: #0f7a45 !important;
  box-shadow: 0 6px 18px rgba(11, 55, 33, 0.08) !important;
}

.code-val-text {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--jade);
  font-family: ui-monospace, monospace;
}

[data-theme="light"] .code-val-text {
  color: #0b4d2c !important;
}

.code-val-text.used-text {
  color: var(--muted) !important;
  text-decoration: line-through;
}

.btn-vault-copy {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-vault-copy.copied {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
}

/* Modern Sleek Scrollbars (Eliminates Arrow Glyphs) */
.plan-modal-body,
.plan-modal-sheet,
#earningsHistoryList,
#viewCodesAvail,
#viewCodesUsed,
.table-wrap,
.admin-table-wrap {
  scrollbar-width: thin;
  scrollbar-color: rgba(46, 213, 158, 0.35) transparent;
}

.plan-modal-body::-webkit-scrollbar,
.plan-modal-sheet::-webkit-scrollbar,
#earningsHistoryList::-webkit-scrollbar,
#viewCodesAvail::-webkit-scrollbar,
#viewCodesUsed::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar,
.admin-table-wrap::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.plan-modal-body::-webkit-scrollbar-track,
.plan-modal-sheet::-webkit-scrollbar-track,
#earningsHistoryList::-webkit-scrollbar-track,
#viewCodesAvail::-webkit-scrollbar-track,
#viewCodesUsed::-webkit-scrollbar-track {
  background: transparent;
}

.plan-modal-body::-webkit-scrollbar-thumb,
.plan-modal-sheet::-webkit-scrollbar-thumb,
#earningsHistoryList::-webkit-scrollbar-thumb,
#viewCodesAvail::-webkit-scrollbar-thumb,
#viewCodesUsed::-webkit-scrollbar-thumb {
  background: rgba(46, 213, 158, 0.35);
  border-radius: 99px;
}

[data-theme="light"] .plan-modal-body::-webkit-scrollbar-thumb,
[data-theme="light"] .plan-modal-sheet::-webkit-scrollbar-thumb {
  background: rgba(15, 122, 69, 0.3);
}

.plan-modal-body {
  overflow: auto;
  padding: 8px 22px 24px;
}

/* Interactive Button States in Modals */
.plan-modal .btn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.plan-modal .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 213, 158, 0.3);
}

.plan-modal .btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(46, 213, 158, 0.2);
}

.plan-modal .btn:focus {
  outline: 2px solid var(--jade);
  outline-offset: 2px;
}

/* Interactive Card States in Modals */
.plan-modal .card,
.plan-modal .panel {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.plan-modal .card:hover,
.plan-modal .panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  border-color: rgba(46, 213, 158, 0.4);
}

/* Interactive Input States */
.plan-modal input,
.plan-modal select,
.plan-modal textarea {
  transition: all 0.2s ease;
}

.plan-modal input:focus,
.plan-modal select:focus,
.plan-modal textarea:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(46, 213, 158, 0.2);
}

/* Tab Button Hover Effects */
.plan-tab {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.plan-tab:hover {
  transform: translateY(-1px);
}

.plan-tab.active {
  animation: tabPulse 0.3s ease-out;
}

@keyframes tabPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Interactive Table Row States */
.plan-modal .table tbody tr {
  transition: all 0.2s ease;
}

.plan-modal .table tbody tr:hover {
  background: rgba(46, 213, 158, 0.08);
  transform: scale(1.01);
}

/* Interactive Filter Tab Buttons */
.earnings-filter-btn,
.ctrl-tab {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.earnings-filter-btn:hover,
.ctrl-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 213, 158, 0.2);
}

.earnings-filter-btn.active,
.ctrl-tab.active {
  animation: filterTabPulse 0.3s ease-out;
}

@keyframes filterTabPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Interactive Badge Tags */
.badge-tag {
  transition: all 0.2s ease;
}

.badge-tag:hover {
  transform: scale(1.05);
}

/* Interactive Code Cards */
.code-card,
.member-card {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.code-card:hover,
.member-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  border-color: rgba(46, 213, 158, 0.4);
}

/* Interactive Withdrawal Cards */
.wd-card {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.wd-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.wd-card.active {
  animation: cardGlow 0.3s ease-out;
}

@keyframes cardGlow {
  0% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 8px 24px rgba(46, 213, 158, 0.3);
  }
  100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

.plan-pane {
  display: none;
}

.plan-pane.on {
  display: block;
}

.plan-pane h3 {
  font-family: var(--display);
  font-size: 24px;
  margin: 8px 0 14px;
}

.plan-modal .hl,
.plan-modal .stats-band,
.plan-modal .steps {
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.plan-modal .stats-band {
  margin: 8px 0 0;
}

body.modal-open {
  overflow: hidden;
}


.orbs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .35;
  animation: drift 18s ease-in-out infinite;
}

.orbs span:nth-child(1) {
  width: 280px;
  height: 280px;
  background: #8fd4c8;
  top: 8%;
  left: -6%;
}

.orbs span:nth-child(2) {
  width: 220px;
  height: 220px;
  background: #e8c27a;
  top: 62%;
  right: -4%;
  animation-duration: 22s;
  animation-delay: -4s;
}

.orbs span:nth-child(3) {
  width: 160px;
  height: 160px;
  background: #5eaea3;
  bottom: 8%;
  left: 40%;
  animation-duration: 16s;
  animation-delay: -8s;
}

@keyframes drift {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, -30px) scale(1.12);
  }
}

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(143, 212, 200, 0.04);
  margin: 0;
}

.ticker-track {
  display: flex;
  gap: 40px;
  width: max-content;
  padding: 12px 0;
  animation: marquee 28s linear infinite;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--jade);
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

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

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

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.d1 {
  animation-delay: .08s;
}

.reveal.d2 {
  animation-delay: .18s;
}

.reveal.d3 {
  animation-delay: .28s;
}

.reveal.d4 {
  animation-delay: .4s;
}

.reveal.d5 {
  animation-delay: .52s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo img {
  animation: none;
  filter: drop-shadow(0 12px 28px rgba(15, 122, 69, 0.12));
}

@keyframes floaty {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.landing .btn:hover {
  box-shadow: none;
  transform: none;
}

.landing .card:hover {
  transform: none;
}

.landing .stat {
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  border: 1px solid transparent;
  cursor: default;
}

.landing .stat:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  background: rgba(143, 212, 200, .08);
}

.landing .card {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.landing .card:hover {
  transform: translateY(-8px);
  border-color: rgba(143, 212, 200, .4);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .35);
}

.landing .card.in {
  animation: rise .8s cubic-bezier(.22, 1, .36, 1) both;
}

.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade);
  margin-right: 8px;
  box-shadow: 0 0 0 0 rgba(143, 212, 200, .7);
  animation: ping 1.8s infinite;
  vertical-align: middle;
}

@keyframes ping {
  70% {
    box-shadow: 0 0 0 8px transparent;
  }

  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@media (prefers-reduced-motion: reduce) {

  .orbs span,
  .ticker-track,
  .hero-logo img,
  .reveal,
  .landing .card.in,
  .pulse-dot {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Activation System, Code Seller Desk & Batch Minting Styles
   ========================================================================== */
.activation-panel {
  background: var(--card-bg, #1c2732);
  border: 2px solid var(--jade);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  color: var(--text, #ffffff);
}

/* Pending activation notice (inactive accounts) */
.activation-pending-card {
  margin-bottom: 20px;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid rgba(245, 158, 11, 0.45) !important;
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(245, 158, 11, 0.07) 0%,
    var(--card-bg, #1c2732) 42%,
    var(--card-bg, #1c2732) 100%
  ) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.activation-pending-layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 0;
  align-items: stretch;
}

.activation-pending-main {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  min-width: 0;
}

.activation-pending-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.activation-pending-body {
  min-width: 0;
  flex: 1;
}

.activation-pending-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.activation-pending-badges .badge-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
}

.activation-pending-title {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.activation-pending-lead {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
  opacity: 0.92;
}

.activation-pending-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: act-step;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activation-pending-steps li {
  counter-increment: act-step;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.activation-pending-steps li::before {
  content: counter(act-step);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.activation-pending-steps li span {
  color: var(--text);
  opacity: 0.88;
}

.activation-pending-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px;
  border-left: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
}

.activation-sponsor-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 8px 12px;
  align-items: center;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg2);
  border: 1px solid var(--line);
}

.activation-sponsor-avatar {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--jade);
  background: rgba(46, 213, 158, 0.14);
  border: 1px solid rgba(46, 213, 158, 0.35);
}

.activation-sponsor-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.activation-sponsor-name {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--jade);
  line-height: 1.2;
  word-break: break-word;
}

.activation-sponsor-status {
  grid-column: 1 / -1;
  justify-self: start;
  font-size: 10.5px !important;
  margin-top: 2px;
}

.activation-pending-callout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
  color: var(--text);
}

.activation-pending-callout svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #f59e0b;
}

.activation-pending-callout p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.9;
}

@media (max-width: 900px) {
  .activation-pending-layout {
    grid-template-columns: 1fr;
  }

  .activation-pending-aside {
    border-left: none;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.08);
  }
}

@media (max-width: 520px) {
  .activation-pending-main {
    flex-direction: column;
    padding: 18px 16px;
    gap: 12px;
  }

  .activation-pending-aside {
    padding: 16px;
  }

  .activation-pending-icon {
    width: 46px;
    height: 46px;
  }
}

[data-theme="light"] .activation-pending-card {
  background: linear-gradient(
    145deg,
    rgba(245, 158, 11, 0.1) 0%,
    #ffffff 48%,
    #f8faf9 100%
  ) !important;
  border-color: rgba(217, 119, 6, 0.35) !important;
  box-shadow: 0 8px 28px rgba(15, 122, 69, 0.08);
}

[data-theme="light"] .activation-pending-aside {
  background: rgba(15, 122, 69, 0.04);
}

[data-theme="light"] .activation-sponsor-card {
  background: #f4fbf7;
}

.badge-tag.tag-pending {
  background: rgba(245, 166, 35, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 166, 35, 0.3);
}

.badge-tag.tag-expired {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-tag.tag-available {
  background: rgba(46, 213, 158, 0.16);
  color: #2ed59e;
  border: 1px solid rgba(46, 213, 158, 0.3);
}

.badge-tag.tag-assigned {
  background: rgba(14, 165, 233, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.badge-tag.tag-used {
  background: rgba(148, 163, 184, 0.16);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* ==========================================================================
   USER DASHBOARD FOOTER COMPONENT (FLOATING & TRANSPARENT)
   ========================================================================== */
.dash-footer {
  margin-top: 28px;
  margin-bottom: 8px;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(15, 122, 69, 0.15);
  box-shadow: none;
  padding: 20px 4px 10px;
}

.dash-footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.dash-footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dash-footer-logo {
  height: 30px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.dash-footer-logo:hover {
  opacity: 1;
}

.dash-footer-copy {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.dash-footer-copy strong {
  color: #0b4d2c;
  font-weight: 700;
}

.dash-footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dash-footer-links button {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.dash-footer-links button:hover {
  color: #0b4d2c;
  text-decoration: underline;
  transform: translateY(-1px);
}

.dash-footer-sep {
  color: rgba(15, 122, 69, 0.25);
  font-size: 12px;
  user-select: none;
}

@media (max-width: 768px) {
  .dash-footer {
    margin-top: 20px;
    padding: 16px 2px 8px;
  }

  .dash-footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .dash-footer-left {
    gap: 10px;
  }

  .dash-footer-logo {
    height: 26px;
  }

  .dash-footer-copy {
    font-size: 11.5px;
  }

  .dash-footer-links button {
    font-size: 11.5px;
  }
}

/* ==========================================================================
   Payout Account Binding & Provider Badges
   ========================================================================== */
.payout-method-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #ffffff;
  border: 1.5px solid rgba(15, 122, 69, 0.22);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 122, 69, 0.06);
  padding: 4px;
}

.payout-method-icon-box img {
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  display: block;
}

.badge-tag.tag-gcash {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
  font-weight: 700;
}

.badge-tag.tag-maya {
  background: #f3e8ff;
  color: #9333ea;
  border: 1px solid #e9d5ff;
  font-weight: 700;
}

.badge-tag.tag-gotyme {
  background: #ecfeff;
  color: #0891b2;
  border: 1px solid #a5f3fc;
  font-weight: 700;
}

.badge-tag.tag-maribank {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
  font-weight: 700;
}

.badge-tag.tag-ub {
  background: #fefce8;
  color: #ca8a04;
  border: 1px solid #fef08a;
  font-weight: 700;
}

.badge-tag.tag-cat-binary {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-weight: 700;
}

.badge-tag.tag-cat-traderef {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
  font-weight: 700;
}

.badge-tag.tag-cat-cycle {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  font-weight: 700;
}

.btn-admin-copy {
  background: #ffffff;
  border: 1px solid rgba(15, 122, 69, 0.2);
  color: #0b4d2c;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.btn-admin-copy:hover {
  background: rgba(15, 122, 69, 0.08);
  border-color: var(--jade);
  color: var(--jade);
}

.admin-wd-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.admin-wd-summary-card {
  background: #ffffff;
  border: 1px solid rgba(15, 122, 69, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(15, 70, 42, 0.03);
}

.admin-wd-summary-card .title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
}

.admin-wd-summary-card .val {
  font-size: 18px;
  font-weight: 800;
  color: #0b4d2c;
  margin: 0;
}

.admin-wd-summary-card .sub {
  font-size: 10.5px;
  color: var(--muted);
  margin: 2px 0 0;
}

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

/* Payout Method Tile Picker */
.payout-method-picker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .payout-method-picker {
    grid-template-columns: repeat(3, 1fr);
  }
}

.payout-method-tile {
  background: #f8faf9;
  border: 1.5px solid rgba(15, 122, 69, 0.16);
  border-radius: 12px;
  padding: 10px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  min-height: 82px;
}

.payout-method-tile:hover {
  background: #ffffff;
  border-color: var(--jade);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 122, 69, 0.1);
}

.payout-method-tile.active {
  background: #ffffff;
  border-color: #0b4d2c;
  border-width: 2px;
  box-shadow: 0 6px 18px rgba(11, 77, 44, 0.18);
}

.payout-method-tile .tile-icon {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payout-method-tile .tile-icon img {
  max-width: 72px;
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

.payout-method-tile .tile-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #122b1e;
  text-align: center;
  line-height: 1.15;
}

.payout-method-tile.active .tile-name {
  color: #0b4d2c;
  font-weight: 800;
}

/* =========================================================
   WITHDRAWAL WALLET CARDS & RESPONSIVE GRID
   ========================================================= */
.wd-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 760px) {
  .wd-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.wd-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 16px 16px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.wd-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Card Themes */
.wd-card.theme-binary {
  border-top: 4px solid var(--jade);
  background: var(--card-bg);
}

.wd-card.theme-cashback {
  border-top: 4px solid #f59e0b;
  background: var(--card-bg);
}

.wd-card.theme-ref {
  border-top: 4px solid var(--gold);
  background: var(--card-bg);
}

.wd-card.theme-cycle {
  border-top: 4px solid var(--mint);
  background: var(--card-bg);
}

/* Card Header */
.wd-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.wd-card-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wd-icon-pill {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.icon-binary {
  background: rgba(15, 122, 69, 0.12);
  color: var(--jade);
}

.icon-ref {
  background: rgba(217, 119, 6, 0.14);
  color: #b45309;
}

.icon-cycle {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.wd-card-label {
  display: block;
  font-size: 12.5px;
  font-weight: 750;
  color: #122b1e;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.wd-card-sub {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 1px;
}

.wd-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2.5px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-binary {
  background: rgba(15, 122, 69, 0.1);
  color: var(--jade);
  border: 1px solid rgba(15, 122, 69, 0.18);
}

.badge-cashback {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.badge-ref {
  background: rgba(217, 119, 6, 0.1);
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge-cycle {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Balance Box */
.wd-card-bal-box {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 12px;
}

.wd-card-bal-title {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 2px;
}

.wd-card-bal {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--jade);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Form & Input Elements */
.wd-card-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.wd-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #c9d5ce;
  border-radius: 10px;
  transition: all 0.2s ease;
  overflow: hidden;
}

.wd-input-wrapper:focus-within {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(15, 122, 69, 0.12);
}

.wd-curr-symbol {
  padding-left: 10px;
  font-weight: 800;
  color: #0b4d2c;
  font-size: 14px;
  user-select: none;
}

.wd-input-field.in {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: 8px 6px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #122b1e !important;
  outline: none !important;
  width: 100% !important;
  min-width: 0 !important;
  box-shadow: none !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

.wd-max-pill {
  background: rgba(15, 122, 69, 0.1);
  color: var(--jade);
  border: 1px solid rgba(15, 122, 69, 0.2);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  margin-right: 6px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.wd-max-pill:hover {
  background: var(--jade);
  color: #ffffff;
  border-color: var(--jade);
}

.wd-max-pill:active {
  transform: scale(0.95);
}

.wd-min-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: var(--muted);
  padding: 0 2px;
}

.wd-fee-rate-tag {
  font-size: 10px;
  color: #557062;
  font-weight: 600;
}

/* Submit Cashout Button */
.wd-btn-cashout {
  width: 100%;
  padding: 9.5px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  border: none;
  letter-spacing: 0.02em;
}

.btn-theme-binary {
  background: linear-gradient(135deg, #0f7a45 0%, #09522e 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(15, 122, 69, 0.2);
}

.btn-theme-binary:hover {
  box-shadow: 0 5px 15px rgba(15, 122, 69, 0.32);
  transform: translateY(-1px);
}

.btn-theme-cashback {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.2);
}

.btn-theme-cashback:hover {
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.32);
  transform: translateY(-1px);
}

.btn-theme-ref {
  background: linear-gradient(135deg, #d97706 0%, #a15204 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.22);
}

.btn-theme-ref:hover {
  box-shadow: 0 5px 15px rgba(217, 119, 6, 0.35);
  transform: translateY(-1px);
}

.btn-theme-cycle {
  background: linear-gradient(135deg, #059669 0%, #046244 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.22);
}

.btn-theme-cycle:hover {
  box-shadow: 0 5px 15px rgba(5, 150, 105, 0.35);
  transform: translateY(-1px);
}

.wd-btn-cashout:active {
  transform: translateY(1px) scale(0.985);
}

.wd-btn-cashout .btn-arrow {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.wd-btn-cashout:hover .btn-arrow {
  transform: translateX(2px);
}

/* Fee breakdown & alerts */
.wd-fee-preview {
  display: none;
  font-size: 11px;
  color: #0b4d2c;
  background: #ebf7f0;
  border: 1px solid #bce4cd;
  border-radius: 8px;
  padding: 6px 8px;
  text-align: center;
  line-height: 1.35;
}

.wd-fee-preview.ready {
  display: block;
}

.wd-payout-alert {
  display: none;
  font-size: 11px;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 6px 8px;
  text-align: center;
  font-weight: 700;
}

.wd-payout-alert.show {
  display: block;
}

/* ==========================================================================
   INTERACTIVE LANDING PAGE STYLES & ANIMATIONS
   ========================================================================== */

/* Background Orbs */
.orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orbs .orb-1 {
  width: 520px;
  height: 520px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.45), rgba(15, 122, 69, 0.15));
  animation-duration: 16s;
}

.orbs .orb-2 {
  width: 600px;
  height: 600px;
  top: 30%;
  right: -150px;
  background: radial-gradient(circle, rgba(232, 148, 58, 0.28), rgba(245, 158, 11, 0.08));
  animation-duration: 22s;
}

.orbs .orb-3 {
  width: 480px;
  height: 480px;
  bottom: 5%;
  left: 15%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35), rgba(200, 239, 216, 0.1));
  animation-duration: 20s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(35px, 45px) scale(1.08);
  }

  100% {
    transform: translate(-25px, 20px) scale(0.95);
  }
}

/* Interactive Cursor Glow */
.cursor-glow {
  position: fixed;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.16) 0%, rgba(232, 148, 58, 0.06) 40%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.cursor-glow.on {
  opacity: 1;
}

/* Top Live Ticker */
/* Top Live Ticker - Hidden */
.ticker {
  display: none !important;
}

/* Sticky Glassmorphic Navbar */
.land-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(19, 26, 34, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.land-header.scrolled {
  background: rgba(16, 22, 29, 0.96);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
  border-bottom-color: rgba(46, 213, 158, 0.2);
}

.land-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.land-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.land-brand-logo {
  height: 48px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.land-brand-logo:hover {
  transform: scale(1.03);
}

.land-nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.land-nav-menu .nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none !important;
  border-bottom: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  padding: 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.land-nav-menu .nav-link::after,
.nav-link::after {
  display: none !important;
  content: none !important;
  height: 0 !important;
  border: none !important;
  opacity: 0 !important;
}

.land-nav-menu .nav-link:hover,
.land-nav-menu .nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none !important;
  border-bottom: none !important;
}
.land-nav-menu .nav-link.is-active {
  color: #2ed59e;
  background: rgba(46, 213, 158, 0.12);
}

[data-theme="light"] .land-nav-menu .nav-link {
  color: #334d40;
  text-decoration: none !important;
  border-bottom: none !important;
}

[data-theme="light"] .land-nav-menu .nav-link:hover {
  color: #0b4d2c !important;
  background: rgba(15, 122, 69, 0.08) !important;
  text-decoration: none !important;
  border-bottom: none !important;
}


.land-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.land-btn-plan {
  font-size: 12.5px !important;
  padding: 7px 14px !important;
  background: rgba(35, 50, 64, 0.7) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.land-btn-plan:hover {
  background: rgba(45, 63, 79, 0.9) !important;
  border-color: rgba(46, 213, 158, 0.4) !important;
  color: #2ed59e !important;
}

.btn-primary-glow {
  background: linear-gradient(135deg, #2ed59e 0%, #26c28e 100%);
  color: #0b1a13 !important;
  font-weight: 750;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(46, 213, 158, 0.3);
  transition: all 0.2s ease;
}

.btn-primary-glow:hover {
  box-shadow: 0 6px 20px rgba(46, 213, 158, 0.45);
  filter: brightness(1.08);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* Hero Section */
.land-hero-section {
  position: relative;
  z-index: 2;
  padding: 24px 0 20px;
}

.hero-logo-wrapper {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-card {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 12px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: transform 0.2s ease-out;
  transform-style: preserve-3d;
  max-width: 460px;
  width: 100%;
  animation: hero3dFloatRotate 7.5s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-logo-card.interacting {
  animation: none !important;
}

.hero-logo-card:hover {
  box-shadow: none;
}

@keyframes hero3dFloatRotate {
  0% {
    transform: perspective(1200px) rotateY(-18deg) rotateX(8deg) translateY(0px) scale3d(1, 1, 1);
  }

  30% {
    transform: perspective(1200px) rotateY(-6deg) rotateX(12deg) translateY(-8px) scale3d(1.02, 1.02, 1.02);
  }

  70% {
    transform: perspective(1200px) rotateY(16deg) rotateX(5deg) translateY(-14px) scale3d(1.02, 1.02, 1.02);
  }

  100% {
    transform: perspective(1200px) rotateY(18deg) rotateX(-6deg) translateY(-4px) scale3d(1, 1, 1);
  }
}

.hero-glow-ring {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 92%);
  height: min(420px, 92%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 148, 58, 0.32) 0%, rgba(34, 197, 94, 0.22) 42%, transparent 72%);
  filter: blur(36px);
  z-index: -1;
  opacity: 0.85;
  animation: pulseLogoGlow 5.5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes pulseLogoGlow {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.55;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.95;
  }
}

.hero-main-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  margin: 0 auto;
  transform: translateZ(42px);
  filter: drop-shadow(0 20px 32px rgba(15, 70, 42, 0.24)) drop-shadow(0 6px 16px rgba(232, 148, 58, 0.32));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-logo-card:hover .hero-main-img {
  filter: drop-shadow(0 28px 44px rgba(15, 70, 42, 0.3)) drop-shadow(0 8px 24px rgba(232, 148, 58, 0.48));
}

.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 122, 69, 0.14);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #143528;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.badge-top {
  top: -12px;
  right: -8px;
  animation: floatBadge 4s ease-in-out infinite alternate;
}

.badge-bottom {
  bottom: -12px;
  left: -8px;
  animation: floatBadge 5s ease-in-out infinite alternate-reverse;
}

@keyframes floatBadge {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-8px);
  }
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pulse-gold {
  background: #e8943a;
  box-shadow: 0 0 0 0 rgba(232, 148, 58, 0.6);
  animation: pulseDotGold 2s infinite;
}

.pulse-green {
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulseDotGreen 2s infinite;
}

@keyframes pulseDotGold {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 148, 58, 0.6);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(232, 148, 58, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(232, 148, 58, 0);
  }
}

@keyframes pulseDotGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Transparent Floating Container Guards for Hero & Headers */
.hero,
.hero-content,
.hero-logo-wrapper,
.hero-logo-card,
.sec-header {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 213, 158, 0.12);
  border: 1px solid rgba(46, 213, 158, 0.28);
  color: var(--jade);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade);
  display: inline-block;
  animation: pulseDotGreen 1.8s infinite;
}

.hero-title {
  font-size: clamp(34px, 4.8vw, 54px);
  line-height: 1.08;
  margin: 12px 0 16px;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, #2ed59e 0%, #26c28e 45%, #ffd166 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-lg {
  padding: 13px 24px !important;
  font-size: 15px !important;
  border-radius: 999px;
  gap: 8px;
}

.btn-arrow {
  font-size: 13px;
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Stat Bands with Interactive Tooltips */
.stat-interactive {
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.stat-interactive:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  border-color: rgba(46, 213, 158, 0.35);
}

.stat-sub {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

/* Live Activity Bar */
.live-activity-bar {
  position: relative;
  z-index: 10;
  background: rgba(19, 26, 34, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.live-stream-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.live-stream-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.live-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulseDotRed 1.6s infinite;
}

@keyframes pulseDotRed {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.live-stream-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #ffffff;
  font-weight: 600;
  flex: 1;
}

.stream-msg {
  transition: opacity 0.3s ease;
}

.stream-time {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.live-stream-stats {
  font-size: 12px;
  color: #8e9fae;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.live-stream-stats strong {
  color: #2ed59e;
}

/* Common Section Layout */
.section-pad {
  padding: 56px 0;
  position: relative;
  z-index: 2;
}

.sec-header {
  margin-bottom: 36px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.sec-title {
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 6px 0 10px;
  color: #ffffff;
  font-family: var(--display);
  font-weight: 600;
}

.sec-lede {
  font-size: 16px;
  color: #8e9fae;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

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

.justify-center {
  justify-content: center;
}

.w-100 {
  width: 100%;
}

.text-green {
  color: #2ed59e !important;
}

.text-gold {
  color: #ffbe3b !important;
}

.font-bold {
  font-weight: 800 !important;
}

/* Dual Track Grid */
.dual-track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.track-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-radius: 24px;
  background: #1c2732;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.track-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
  border-color: rgba(46, 213, 158, 0.25);
}

.track-card-featured {
  border: 1px solid rgba(245, 166, 35, 0.4) !important;
  background: linear-gradient(135deg, #222f3d 0%, #1c2732 100%) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(245, 166, 35, 0.15) !important;
}

.track-card[data-program] {
  cursor: pointer;
}

.track-card.is-picked {
  border-color: rgba(46, 213, 158, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(46, 213, 158, 0.28);
}

.track-card-featured.is-picked {
  border-color: rgba(245, 166, 35, 0.7) !important;
}

.featured-ribbon {
  position: absolute;
  top: 14px;
  right: 18px;
  background: linear-gradient(135deg, #f5a623, #d97706);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.35);
}

.track-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.track-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.icon-binary {
  background: rgba(46, 213, 158, 0.15);
  color: var(--jade);
  border: 1px solid rgba(46, 213, 158, 0.25);
}

.icon-tradein {
  background: rgba(245, 166, 35, 0.18);
  color: #f5a623;
  border: 1px solid rgba(245, 166, 35, 0.25);
}

.track-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag-jade {
  color: var(--jade);
}

.tag-gold {
  color: #ffbe3b;
}

.track-title {
  font-size: 22px;
  margin: 2px 0 0;
  color: #ffffff;
  font-weight: 700;
}

.track-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.track-metrics {
  display: grid;
  gap: 10px;
  background: rgba(19, 26, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 22px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.metric-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.metric-label {
  color: var(--muted);
}

.metric-val {
  font-weight: 700;
  color: #ffffff;
}

/* Interactive Calculator Styles */
.calc-master-panel {
  padding: 36px;
  border-radius: 28px;
  background: #1c2732;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.calc-top-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
  margin-bottom: 28px;
  gap: 20px;
  flex-wrap: wrap;
}

.calc-nav-tabs {
  display: flex;
  background: #131a22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.calc-tab-btn {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #8e9fae;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.calc-tab-btn.active {
  background: #233240;
  color: #2ed59e;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.calc-pane {
  display: none;
}

.calc-pane.active {
  display: block;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}

.calc-inputs-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-label {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.calc-value-pill {
  background: rgba(46, 213, 158, 0.15);
  color: #2ed59e;
  font-weight: 800;
  font-size: 15px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(46, 213, 158, 0.3);
  font-family: ui-monospace, SFMono-Regular, monospace;
}

/* Custom Range Slider */
.custom-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 6px;
  background: #233240;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ed59e, #179c70);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(46, 213, 158, 0.4);
  border: 2px solid #131a22;
  transition: transform 0.15s ease;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.range-gold {
  background: #2c2518;
}

.range-gold::-webkit-slider-thumb {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4);
  border: 2px solid #131a22;
}

.calc-range-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #8e9fae;
  padding: 0 2px;
}

/* Quick Presets */
.calc-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.tiny-label {
  font-size: 12px;
  color: #8e9fae;
  font-weight: 600;
}

.preset-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-preset {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #17222c;
  color: #8e9fae;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-preset:hover,
.btn-preset.active {
  background: #2ed59e;
  color: #0b1a13;
  border-color: #2ed59e;
}

.preset-hot {
  display: inline-block;
  margin-left: 4px;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Result Card */
.result-card-main {
  background: linear-gradient(180deg, #17222c 0%, #131a22 100%);
  border: 1px solid rgba(46, 213, 158, 0.25);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.result-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.result-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #2ed59e;
  text-transform: uppercase;
}

.result-big-number {
  font-size: 36px;
  font-weight: 700;
  color: #2ed59e;
  font-family: var(--display);
  line-height: 1.1;
  margin-top: 4px;
}

.roi-badge-circle {
  background: linear-gradient(135deg, #f5a623, #d97706);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.35);
}

.roi-pct {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.roi-sub {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  opacity: 0.9;
  margin-top: 3px;
}

.result-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.res-item {
  background: #1c2732;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
}

.res-lbl {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.res-val {
  display: block;
  font-size: 16px;
  margin: 2px 0 1px;
  color: #ffffff;
}

.res-note {
  font-size: 10px;
  color: #8e9fae;
}

/* Timeline Steps */
.cycle-timeline {
  background: #151f28;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 20px;
}

.timeline-title {
  font-size: 11px;
  font-weight: 700;
  color: #2ed59e;
  margin-bottom: 10px;
}

.timeline-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.t-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.t-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2ed59e;
  color: #0b1a13;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(46, 213, 158, 0.35);
}

.t-final .t-dot {
  background: linear-gradient(135deg, #f5a623, #d97706);
  color: #ffffff;
}

.t-day {
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 3px;
}

.t-amt {
  font-size: 10px;
  color: #2ed59e;
  font-weight: 700;
  font-family: ui-monospace, monospace;
}

.t-line {
  flex: 1;
  height: 2px;
  background: rgba(46, 213, 158, 0.25);
  margin: 0 4px;
  margin-bottom: 20px;
}

.calc-action-bar {
  margin-top: 4px;
}

/* Cap Meter */
.cap-meter-wrap {
  margin: 16px 0 20px;
}

.cap-meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  color: #8e9fae;
  margin-bottom: 6px;
}

.cap-meter-track {
  height: 10px;
  background: #131a22;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cap-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #2ed59e, #f5a623);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Interactive Binary Tree Demo */
.tree-demo-card {
  padding: 32px 28px;
  border-radius: 28px;
  background: #1c2732;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

.tree-controls-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 660px;
  margin: 0 auto 28px;
}

.tree-stat-pill {
  background: #162029;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 10px 14px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tree-stat-pill.pill-gold {
  border-color: rgba(245, 166, 35, 0.35);
  background: linear-gradient(180deg, #22252b, #1c2027);
}

.tree-stat-pill.pill-earnings {
  border-color: rgba(46, 213, 158, 0.35);
  background: linear-gradient(180deg, #182622, #15201d);
}

.tree-pill-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tree-pill-val {
  display: block;
  font-size: 22px;
  color: #ffffff;
  font-family: var(--display);
  line-height: 1.15;
  margin-top: 3px;
}

.tree-visual-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 560px;
  margin: 0 auto 24px;
  position: relative;
}

.tree-visual-container .tree-node {
  background: #1c2732;
  border: 1.5px solid var(--jade);
  border-radius: 18px;
  padding: 12px 20px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
  min-width: 130px;
}

.node-you {
  background: linear-gradient(135deg, #1f2c38, #18242f);
  border-color: var(--jade);
}

.node-you .node-avatar {
  font-size: 24px;
  line-height: 1;
}

.node-you .node-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-top: 3px;
}

.node-you .node-sub {
  font-size: 11px;
  color: var(--jade);
  background: rgba(46, 213, 158, 0.15);
  padding: 2px 10px;
  border-radius: 99px;
  font-weight: 700;
  margin-top: 4px;
  display: inline-block;
}

.tree-branch-lines {
  position: relative;
  width: 280px;
  height: 36px;
  margin: 0 auto;
  display: block;
}

.line-stem {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 18px;
  background: var(--jade);
  transform: translateX(-50%);
}

.line-left {
  position: absolute;
  top: 18px;
  left: 0;
  right: 50%;
  height: 2px;
  background: var(--jade);
  border-top-left-radius: 4px;
}

.line-left::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 18px;
  background: var(--jade);
}

.line-right {
  position: absolute;
  top: 18px;
  left: 50%;
  right: 0;
  height: 2px;
  background: var(--jade);
  border-top-right-radius: 4px;
}

.line-right::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 18px;
  background: var(--jade);
}

.tree-children-row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  gap: 16px;
  position: relative;
}

.tree-branch-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.tree-members-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  width: 100%;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
}

.node-member {
  background: linear-gradient(135deg, #1c2732 0%, #17222c 100%);
  border: 1.5px solid rgba(46, 213, 158, 0.3);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  max-width: 140px;
  transition: all 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

.node-member .node-avatar {
  font-size: 16px;
  line-height: 1;
  color: var(--jade);
}

.node-member .node-title {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 4px;
}

.node-member .node-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(19, 26, 34, 0.8);
  padding: 2px 8px;
  border-radius: 6px;
  margin-top: 4px;
}

.node-member-new {
  animation: memberAppear 0.5s ease-out;
}

@keyframes memberAppear {
  from {
    opacity: 0;
    transform: scale(0.5) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.node-matched {
  animation: memberMatch 0.3s ease-out forwards;
}

@keyframes memberMatch {
  0% {
    opacity: 1;
    transform: scale(1);
    border-color: var(--gold);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.6);
  }
  100% {
    opacity: 0;
    transform: scale(0);
  }
}

.node-child {
  border-color: rgba(46, 213, 158, 0.35);
  width: 100%;
  max-width: 210px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #1c2732 0%, #17222c 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.node-child .node-avatar {
  font-size: 20px;
  line-height: 1;
}

.node-child .node-title {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin-top: 3px;
}

.node-child .node-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: #131a22;
  padding: 3px 10px;
  border-radius: 8px;
  margin-top: 6px;
  display: inline-block;
}

.node-pulse {
  animation: nodePulse 0.35s ease;
}

@keyframes nodePulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
    border-color: var(--jade);
    box-shadow: 0 0 20px rgba(46, 213, 158, 0.45);
  }

  100% {
    transform: scale(1);
  }
}

.tree-btn-wrap {
  width: 100%;
  max-width: 210px;
}

.tree-btn-wrap .btn {
  width: 100% !important;
  padding: 9px 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  border: 1.5px solid var(--jade) !important;
  background: #233240 !important;
  color: var(--jade) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tree-btn-wrap .btn:hover {
  background: var(--jade) !important;
  color: #0b1a13 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(46, 213, 158, 0.35);
}

.tree-btn-wrap .btn:active {
  transform: translateY(0) scale(0.97);
}

.tree-center-match-zone {
  position: absolute;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  pointer-events: none;
  width: max-content;
}

.pair-match-burst {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border-radius: 18px;
  padding: 10px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(245, 166, 35, 0.4);
  opacity: 0;
  transform: scale(0.4);
  transition: all 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.pair-match-burst.pop {
  opacity: 1;
  transform: scale(1.1);
  animation: burstShake 0.4s ease;
}

@keyframes burstShake {
  0% {
    transform: scale(0.6) rotate(0deg);
  }

  30% {
    transform: scale(1.2) rotate(-5deg);
  }

  60% {
    transform: scale(1.1) rotate(5deg);
  }

  100% {
    transform: scale(1.1) rotate(0deg);
  }
}

.burst-icon {
  font-size: 18px;
}

.burst-text {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.burst-val {
  font-size: 16px;
  font-weight: 800;
}

.tree-footer-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  margin-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.tree-info-text {
  font-size: 12px;
  color: var(--muted);
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* Steps Journey Grid */
.steps-journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-journey-card {
  position: relative;
  padding: 28px;
  border-radius: 22px;
  background: #1c2732;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.step-journey-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(46, 213, 158, 0.25);
}

.step-card-num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 32px;
  font-weight: 900;
  color: rgba(46, 213, 158, 0.15);
  font-family: var(--display);
}

.step-card-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.step-journey-card h3 {
  font-size: 19px;
  margin: 0 0 8px;
  color: #ffffff;
}

.step-journey-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 16px;
  flex: 1;
}

.step-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--jade);
  background: rgba(46, 213, 158, 0.12);
  border: 1px solid rgba(46, 213, 158, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Gateways Section */
.gateways-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.gateway-card {
  background: #1c2732;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  font: inherit;
  color: inherit;
  cursor: pointer;
  width: 100%;
}

.gateway-card.is-active {
  border-color: rgba(46, 213, 158, 0.55);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(46, 213, 158, 0.25);
  transform: translateY(-3px);
}

.gateway-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  border-color: rgba(46, 213, 158, 0.3);
}

.gw-logo {
  height: 42px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  margin-bottom: 10px;
}

.gw-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.gw-badge {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.fee-tier-panel {
  padding: 20px 24px;
  border-radius: 18px;
  background: #1c2732;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.fee-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}

.fee-col {
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.fee-col.is-active {
  background: rgba(46, 213, 158, 0.1);
  border-color: rgba(46, 213, 158, 0.35);
}

.cashout-playground {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cashout-playground-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cashout-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.cashout-amount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

.cashout-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.cashout-result-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-family: var(--mono);
}

.faq-empty {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 18px 12px;
}

.land-nav-menu a.nav-link.is-current {
  color: #2ed59e;
}

.fee-range {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.fee-pct {
  display: block;
  font-size: 22px;
  margin: 4px 0 2px;
  color: #2ed59e;
  font-family: var(--display);
}

.fee-sub {
  display: block;
  font-size: 11px;
  color: #8e9fae;
}

/* Searchable FAQ Accordion */
.faq-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.faq-search-box {
  position: relative;
  margin-bottom: 24px;
}

.faq-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--muted);
}

#faqSearchInput {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: #162029;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 14px;
  color: #ffffff;
  outline: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#faqSearchInput:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(46, 213, 158, 0.2);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #1c2732;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item.active {
  background: #233240;
  border-color: rgba(46, 213, 158, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  gap: 12px;
}

.faq-toggle-icon {
  font-size: 20px;
  font-weight: 400;
  color: var(--jade);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* CTA Bottom Banner */
.cta-banner-card {
  padding: 48px 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, #1c2732 0%, #162029 100%);
  border: 1px solid rgba(46, 213, 158, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cta-banner-card h2 {
  color: #ffffff;
}

.cta-banner-card p {
  color: #8e9fae;
}

/* Floating Shortcuts */
.floating-shortcuts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 85;
}

.floating-shortcut-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #2ed59e, #179c70);
  color: #0b1a13;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(46, 213, 158, 0.35);
  transition: all 0.2s ease;
}

.floating-shortcut-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 26px rgba(46, 213, 158, 0.55);
  color: #0b1a13;
}

.floating-top-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--jade);
  font-size: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-end;
}

.floating-top-btn.show {
  display: flex;
}

.floating-top-btn:hover {
  background: var(--jade);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   MODERN FINTECH MICRO-INTERACTIONS & ANIMATION SYSTEM
   ========================================================================== */

/* 1. Kinetic Canvas Layer */
.kinetic-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

/* 2. 3D Interactive Card & Stat Tilt with Dynamic Light Sheen */
.card,
.stat,
.track-card,
.step-journey-card,
.gateway-card {
  --card-rx: 0deg;
  --card-ry: 0deg;
  --card-scale: 1;
  --mouse-x: -500px;
  --mouse-y: -500px;
  --sheen-opacity: 0;
  position: relative;
  border-radius: var(--radius, 22px);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.18s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.28s ease, border-color 0.2s ease;
  overflow: hidden;
}

/* Hover state enhancement */
.card:hover,
.stat:hover,
.track-card:hover,
.step-journey-card:hover,
.gateway-card:hover {
  box-shadow: 0 20px 48px rgba(15, 70, 42, 0.14), 0 0 0 1px rgba(34, 197, 94, 0.22);
}

/* Dynamic Light Sheen Effect following cursor */
.card::after,
.stat::after,
.track-card::after,
.step-journey-card::after,
.gateway-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle 340px at var(--mouse-x, -500px) var(--mouse-y, -500px),
      rgba(255, 255, 255, 0.38),
      rgba(34, 197, 94, 0.12) 32%,
      transparent 72%);
  opacity: var(--sheen-opacity, 0);
  transition: opacity 0.25s ease;
  mix-blend-mode: overlay;
  z-index: 5;
}

/* 3. Scroll-Triggered Reveal Animations (Intersection Observer) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Active 3D tilt perspective for revealed cards */
.card.reveal.in,
.stat.reveal.in,
.track-card.reveal.in,
.step-journey-card.reveal.in,
.gateway-card.reveal.in {
  transform: perspective(1000px) rotateX(var(--card-rx, 0deg)) rotateY(var(--card-ry, 0deg)) scale3d(var(--card-scale, 1), var(--card-scale, 1), var(--card-scale, 1));
}

/* Staggered Delay Utilities */
.d1 {
  transition-delay: 0.05s;
}

.d2 {
  transition-delay: 0.12s;
}

.d3 {
  transition-delay: 0.19s;
}

.d4 {
  transition-delay: 0.26s;
}

.d5 {
  transition-delay: 0.33s;
}

/* Staggered Child Grid Delays */
.grid3>*:nth-child(1),
.stats-band>*:nth-child(1),
.dual-track-grid>*:nth-child(1),
.steps-journey-grid>*:nth-child(1) {
  transition-delay: 0.06s;
}

.grid3>*:nth-child(2),
.stats-band>*:nth-child(2),
.dual-track-grid>*:nth-child(2),
.steps-journey-grid>*:nth-child(2) {
  transition-delay: 0.14s;
}

.grid3>*:nth-child(3),
.stats-band>*:nth-child(3),
.steps-journey-grid>*:nth-child(3) {
  transition-delay: 0.22s;
}

.grid3>*:nth-child(4),
.stats-band>*:nth-child(4) {
  transition-delay: 0.30s;
}

.gateways-grid>*:nth-child(1) {
  transition-delay: 0.05s;
}

.gateways-grid>*:nth-child(2) {
  transition-delay: 0.10s;
}

.gateways-grid>*:nth-child(3) {
  transition-delay: 0.15s;
}

.gateways-grid>*:nth-child(4) {
  transition-delay: 0.20s;
}

.gateways-grid>*:nth-child(5) {
  transition-delay: 0.25s;
}

/* 4. Animated KPI Counter Styling */
.kpi-counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  will-change: transform;
}

/* Standard Stable Button State */
.btn {
  position: relative;
  transition: filter 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Responsive Queries for Landing Page */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }

  .hero-logo-wrapper {
    order: -1;
  }

  .hero-logo-card {
    max-width: 360px;
  }

  .hero-content .cta {
    justify-content: center;
  }

  .hero-content .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }

  .dual-track-grid {
    grid-template-columns: 1fr;
  }

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

  .steps-journey-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  /* Navbar & Mobile Drawer */
  .land-nav-wrap {
    padding: 8px 0;
  }

  .land-brand-logo {
    height: 38px;
  }

  .land-nav-actions {
    gap: 6px;
  }

  .land-nav-actions .btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }

  .land-nav-menu {
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    background: rgba(19, 26, 34, 0.98);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    flex-direction: column;
    padding: 20px 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
    transform: translateY(-160%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
    z-index: 89;
  }

  .land-nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-toggle {
    display: flex;
    padding: 6px 4px;
  }

  .land-btn-plan {
    display: none !important;
  }

  /* Mobile: hide desktop pill, show mobile pill inside hamburger */
  .plan-pill-desktop {
    display: none !important;
  }

  .plan-pill-mobile {
    display: inline-flex !important;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    height: 44px;
    font-size: 14px !important;
  }

  /* Hero Mobile Refinement */
  .land-hero-section {
    padding: 10px 0 16px;
  }

  .hero {
    gap: 16px;
    padding: 10px 0 20px;
  }

  .hero-logo-wrapper {
    perspective: none;
    order: -1;
  }

  .hero-logo-card {
    max-width: 190px !important;
    margin: 0 auto;
    animation: none !important;
    transform: none !important;
  }

  .hero-kpi-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero-live-ticker {
    border-radius: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cashout-result-grid,
  .cashout-playground-head {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-main-img {
    max-width: 180px !important;
    transform: none !important;
    filter: drop-shadow(0 10px 22px rgba(15, 70, 42, 0.18)) !important;
  }

  .hero-glow-ring {
    width: 200px !important;
    height: 200px !important;
  }

  .kicker-pill {
    font-size: 10px;
    padding: 4px 10px;
    margin-bottom: 6px;
  }

  .hero-title {
    font-size: 28px !important;
    line-height: 1.14;
    margin: 8px 0 10px;
    letter-spacing: -0.02em;
  }

  .hero-content .lede {
    font-size: 14px !important;
    line-height: 1.5;
    padding: 0 4px;
    max-width: 100%;
  }

  .hero-content .cta {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 18px;
  }

  .hero-content .cta .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px !important;
    font-size: 14.5px !important;
  }

  /* Stats & Grids */
  .gateways-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fee-tier-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stats-band {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 18px 0 24px;
  }

  .stat {
    padding: 12px 10px;
    text-align: center;
  }

  .stat b {
    font-size: 20px;
  }

  .calc-master-panel {
    padding: 20px;
  }

  /* Tree Simulator Mobile Overhaul - Clean, Compact Side-by-Side Tree */
  .tree-demo-card {
    padding: 18px 12px;
    border-radius: 22px;
    background: radial-gradient(circle at 50% 0%, rgba(240, 253, 244, 0.98), #ffffff 80%);
  }

  .tree-controls-bar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-bottom: 18px !important;
    width: 100% !important;
  }

  .tree-stat-pill {
    padding: 8px 10px !important;
    border-radius: 12px !important;
    min-width: 0 !important;
  }

  .tree-pill-label {
    font-size: 9.5px !important;
  }

  .tree-pill-val {
    font-size: 18px !important;
  }

  .tree-visual-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 14px !important;
  }

  .node-you {
    min-width: 110px !important;
    padding: 7px 14px !important;
    border-radius: 14px !important;
  }

  .node-you .node-avatar {
    font-size: 18px !important;
  }

  .node-you .node-title {
    font-size: 11.5px !important;
  }

  .node-you .node-sub {
    font-size: 9.5px !important;
    padding: 1px 7px !important;
  }

  .tree-branch-lines {
    display: block !important;
    width: calc(50% + 6px) !important;
    max-width: 240px !important;
    height: 24px !important;
    margin: 0 auto !important;
  }

  .line-stem {
    height: 12px !important;
  }

  .line-left {
    top: 12px !important;
    left: 0 !important;
    right: 50% !important;
    height: 2px !important;
  }

  .line-left::after {
    height: 12px !important;
    left: 0 !important;
  }

  .line-right {
    top: 12px !important;
    left: 50% !important;
    right: 0 !important;
    height: 2px !important;
  }

  .line-right::after {
    height: 12px !important;
    right: 0 !important;
  }

  .tree-children-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    position: relative !important;
  }

  .tree-branch-col {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    gap: 8px !important;
  }

  .node-child {
    max-width: 100% !important;
    padding: 10px 6px !important;
    border-radius: 14px !important;
  }

  .node-child .node-avatar {
    font-size: 16px !important;
  }

  .node-child .node-title {
    font-size: 11px !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .node-child .node-sub {
    font-size: 10px !important;
    padding: 2px 7px !important;
    margin-top: 4px !important;
  }

  .tree-btn-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }

  .tree-btn-wrap .btn {
    width: 100% !important;
    padding: 8px 4px !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 6px rgba(15, 122, 69, 0.08) !important;
  }

  .tree-center-match-zone {
    position: absolute !important;
    top: 35% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 25 !important;
    min-width: 0 !important;
    width: max-content !important;
    pointer-events: none !important;
  }

  .pair-match-burst {
    padding: 6px 14px !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 22px rgba(217, 119, 6, 0.45) !important;
  }

  .burst-icon {
    font-size: 15px !important;
  }

  .burst-text {
    font-size: 9px !important;
  }

  .burst-val {
    font-size: 14px !important;
  }

  .tree-footer-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding-top: 14px !important;
    margin-top: 14px !important;
  }

  .tree-footer-actions button.btn {
    flex: 1 1 calc(50% - 4px) !important;
    padding: 9px 8px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
  }

  .tree-info-text {
    font-size: 10.5px !important;
    margin-top: 4px !important;
    line-height: 1.35 !important;
  }

  /* Floating shortcuts */
  .floating-shortcuts {
    bottom: 16px;
    right: 14px;
    gap: 8px;
  }

  .floating-shortcut-btn {
    padding: 7px 12px;
    font-size: 11px;
    box-shadow: 0 4px 14px rgba(15, 122, 69, 0.3);
  }

  .floating-top-btn {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }
}

/* Binary Positioning & Clickable Tree Slot Enhancements */
.clickable-slot {
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.clickable-slot:hover {
  background: #e8f9f0 !important;
  border-color: var(--jade) !important;
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 6px 16px rgba(15, 122, 69, 0.15) !important;
}

.encode-pos-btn,
.self-pos-btn {
  transition: all 0.2s ease !important;
}

.encode-pos-btn:hover,
.self-pos-btn:hover {
  background: #f4fbf7 !important;
}

/* =========================================================
   INTERACTIVE AUTH SYSTEM (LOGIN & REGISTER)
   ========================================================= */
.auth-page-body {
  position: relative;
  overflow-x: clip;
  min-height: 100vh;
  background:
    radial-gradient(1000px 600px at 20% 15%, rgba(46, 213, 158, 0.12), transparent 70%),
    radial-gradient(900px 500px at 85% 75%, rgba(30, 161, 242, 0.08), transparent 60%),
    linear-gradient(180deg, #131a22 0%, #162029 45%, #11171e 100%);
  background-attachment: fixed;
  color: #ffffff;
}

[data-theme="light"] .auth-page-body,
body[data-theme="light"].auth-page-body {
  background:
    radial-gradient(1000px 600px at 20% 15%, rgba(15, 122, 69, 0.08), transparent 70%),
    radial-gradient(900px 500px at 85% 75%, rgba(14, 165, 233, 0.06), transparent 60%),
    linear-gradient(180deg, #f4fbf7 0%, #ebf7f0 45%, #e2f4e9 100%) !important;
  color: #0e291b !important;
}

.auth-ambient-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(15, 122, 69, 0.18) 0%, rgba(34, 197, 94, 0.05) 50%, transparent 70%);
  filter: blur(50px);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s;
  z-index: 0;
  opacity: 0.8;
}

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.auth-art {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  background: transparent;
  border-right: 1px solid rgba(15, 122, 69, 0.12);
  position: relative;
}

.auth-logo-interactive {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  filter: drop-shadow(0 12px 28px rgba(15, 122, 69, 0.18));
}

.auth-logo-interactive:hover {
  transform: translateY(-6px) scale(1.03);
  filter: drop-shadow(0 18px 36px rgba(232, 148, 58, 0.3));
}

.auth-live-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 390px;
  margin-top: 10px;
}

.auth-live-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(28, 39, 50, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 11px 16px;
  border-radius: 14px;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: default;
}

.auth-live-badge:hover {
  transform: translateY(-3px) translateX(4px);
  background: rgba(35, 50, 64, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border-color: var(--jade);
}

[data-theme="light"] .auth-live-badge {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(15, 122, 69, 0.12) !important;
  box-shadow: 0 4px 14px rgba(15, 70, 42, 0.05) !important;
}

[data-theme="light"] .auth-live-badge:hover {
  background: #ffffff !important;
  border-color: #0f7a45 !important;
  box-shadow: 0 8px 24px rgba(15, 70, 42, 0.1) !important;
}

.auth-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: rgba(46, 213, 158, 0.12);
  color: var(--jade);
  flex-shrink: 0;
}

[data-theme="light"] .auth-badge-icon {
  background: rgba(15, 122, 69, 0.1);
  color: #0f7a45;
}

.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.95) 0%, rgba(22, 32, 41, 0.92) 100%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 32px 32px 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(46, 213, 158, 0.15);
}

[data-theme="light"] .auth-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 251, 247, 0.92) 100%) !important;
  border: 1.5px solid rgba(15, 122, 69, 0.15) !important;
  box-shadow: 0 24px 64px rgba(11, 55, 33, 0.1), inset 0 1px 1px #fff !important;
}

[data-theme="light"] .auth-card:hover {
  box-shadow: 0 30px 75px rgba(11, 55, 33, 0.16), inset 0 1px 1px #fff !important;
}

.auth-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-switcher-btn {
  text-align: center;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.auth-switcher-btn.active {
  background: var(--jade);
  color: #131a22;
  box-shadow: 0 2px 10px rgba(46, 213, 158, 0.3);
}

.auth-switcher-btn:hover:not(.active) {
  color: #ffffff;
}

[data-theme="light"] .auth-switcher {
  background: rgba(15, 122, 69, 0.08);
  border: 1px solid rgba(15, 122, 69, 0.15);
}

[data-theme="light"] .auth-switcher-btn {
  color: #557766;
}

[data-theme="light"] .auth-switcher-btn.active {
  background: #ffffff;
  color: #0f7a45;
  box-shadow: 0 2px 8px rgba(15, 70, 42, 0.12);
}

[data-theme="light"] .auth-switcher-btn:hover:not(.active) {
  color: #0e291b;
}

.auth-field-group {
  margin-bottom: 16px;
  position: relative;
}

.auth-field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.auth-field-inner {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-field-icon {
  position: absolute;
  left: 14px;
  font-size: 15px;
  color: var(--muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  z-index: 2;
}

.auth-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: #151f28;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 14px;
  color: #ffffff;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.auth-input:focus {
  background: #182430;
  border-color: var(--jade);
  box-shadow: 0 0 0 4px rgba(46, 213, 158, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .auth-input {
  border: 1.5px solid rgba(15, 122, 69, 0.22);
  background: rgba(255, 255, 255, 0.95);
  color: #0e291b;
  box-shadow: inset 0 1px 2px rgba(15, 70, 42, 0.04);
}

[data-theme="light"] .auth-input:focus {
  background: #ffffff;
  border-color: #0f7a45;
  box-shadow: 0 0 0 4px rgba(15, 122, 69, 0.15), inset 0 1px 1px #fff;
}

.auth-input.is-valid {
  border-color: var(--jade);
}

.auth-toggle-pwd {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  padding: 4px 6px;
  font-size: 16px;
  cursor: pointer;
  color: var(--muted);
  border-radius: 6px;
  transition: color 0.2s, transform 0.2s;
  z-index: 2;
}

.auth-toggle-pwd:hover {
  color: var(--jade);
  transform: scale(1.1);
}

.auth-field-status {
  position: absolute;
  right: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--jade);
  display: none;
  z-index: 2;
}

.auth-field-status.show {
  display: inline-block;
}

/* Password Strength Meter */
.pwd-strength-wrap {
  margin-top: 6px;
}

.pwd-strength-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(15, 70, 42, 0.08);
}

.pwd-strength-seg {
  height: 100%;
  border-radius: 2px;
  background: transparent;
  transition: background 0.3s ease;
}

.pwd-strength-text {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
}

/* Submit button with interactive shimmer */
.auth-submit-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--jade) 0%, var(--jade2) 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 122, 69, 0.24);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.auth-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 122, 69, 0.32);
}

.auth-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Shake Animation on Error */
@keyframes authShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-8px);
  }

  40%,
  80% {
    transform: translateX(8px);
  }
}

.auth-card.shake {
  animation: authShake 0.4s ease;
}

/* Quick Fill Chip */
.quick-fill-bar {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.quick-chip-btn {
  background: rgba(15, 122, 69, 0.08);
  border: 1px dashed rgba(15, 122, 69, 0.3);
  color: var(--jade);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-chip-btn:hover {
  background: var(--jade);
  color: #ffffff;
}

@media (max-width: 860px) {
  .auth-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 0;
  }

  .auth-art {
    padding: 24px 16px 8px;
    border-right: none;
    border-bottom: none;
    gap: 0;
    width: 100%;
  }

  .auth-logo-interactive img {
    max-width: 155px !important;
  }

  .auth-art-copy {
    display: none !important;
  }

  .auth-art .stats-band {
    display: none !important;
  }

  .auth-live-badges {
    display: none !important;
  }

  .auth-form-wrap {
    padding: 6px 16px 32px;
    width: 100%;
    max-width: 420px;
    display: flex;
    justify-content: center;
  }

  .auth-card {
    padding: 22px 18px 22px;
    border-radius: 20px;
    box-shadow: 0 10px 32px rgba(15, 70, 42, 0.1);
    width: 100%;
  }

  .auth-switcher {
    margin-bottom: 16px;
    padding: 3px;
  }

  .auth-switcher-btn {
    padding: 8px 10px;
    font-size: 13px;
  }

  .auth-card h1 {
    font-size: 22px !important;
    margin: 0 0 4px !important;
  }

  .auth-card p.muted {
    font-size: 12.5px !important;
  }

  .auth-field-group {
    margin-bottom: 13px;
  }

  .auth-field-label {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .auth-input {
    height: 46px;
    font-size: 16px !important;
    /* Prevents auto-zoom on mobile browsers */
    padding-left: 38px;
  }

  .auth-field-icon {
    font-size: 14px;
    left: 12px;
  }

  .auth-submit-btn {
    padding: 12px 18px;
    font-size: 15px;
    margin-top: 16px !important;
    border-radius: 12px;
  }
}

@media (max-width: 420px) {
  .auth-art {
    padding: 18px 12px 4px;
  }

  .auth-logo-interactive img {
    max-width: 138px !important;
  }

  .auth-form-wrap {
    padding: 2px 12px 24px;
  }

  .auth-card {
    padding: 18px 15px 20px;
    border-radius: 18px;
  }
}

/* =========================================================
   ADMIN REFERRAL LINK STYLES
   ========================================================= */
.admin-side-ref-box {
  margin: 14px 10px 10px;
  padding: 12px;
  background: rgba(15, 122, 69, 0.05);
  border: 1px solid rgba(15, 122, 69, 0.18);
  border-radius: 12px;
}

.admin-ref-banner {
  background: linear-gradient(135deg, rgba(15, 122, 69, 0.07) 0%, rgba(217, 119, 6, 0.08) 100%);
  border: 1px solid rgba(15, 122, 69, 0.22);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(10, 40, 25, 0.03);
}

.admin-ref-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-ref-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f7a45, #0b4d2c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 122, 69, 0.25);
  flex-shrink: 0;
}

.admin-ref-banner-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 280px;
  max-width: 540px;
}

@media (max-width: 768px) {
  .admin-ref-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 12px;
  }

  .admin-ref-banner-right {
    max-width: 100%;
    min-width: 0;
  }
}

/* ==========================================================================
   INTERACTIVE MULTI-LEVEL GENEALOGY TREE & DRILL-DOWN VISUALIZER
   ========================================================================== */
.genealogy-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  background: var(--bg2, #16202a);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 10px 14px;
  flex-wrap: wrap;
}

.genealogy-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
}

.tree-bc-crumb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--card-bg, #1c2732);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  color: var(--text, #ffffff);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.tree-bc-crumb:hover {
  background: rgba(46, 213, 158, 0.14);
  border-color: var(--jade);
  color: var(--jade);
  transform: translateY(-1px);
}

.tree-bc-crumb.active {
  background: var(--jade);
  color: #0c131c;
  border-color: var(--jade);
  font-weight: 800;
  cursor: default;
}

.tree-bc-sep {
  color: var(--muted, #8e9fae);
  font-weight: 700;
  font-size: 11px;
}

.genealogy-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.genealogy-search-in {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
  font-size: 12px;
  font-weight: 600;
  outline: none;
  width: 180px;
  background: var(--card-bg, #1c2732);
  color: var(--text, #ffffff);
}

.genealogy-search-in:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 2px rgba(46, 213, 158, 0.2);
}

.genealogy-canvas-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 20px 10px 30px;
  background: radial-gradient(circle at center, rgba(25, 36, 46, 0.85) 0%, rgba(15, 22, 29, 0.96) 100%);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 420px;
}

.tree-root-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(245, 166, 35, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 166, 35, 0.35);
  margin-bottom: 4px;
  display: inline-block;
}

/* ==========================================================================
   GENEALOGY TREE - EXPANDING MULTI-LEVEL BINARY STRUCTURE
   ========================================================================== */
.tree-root-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.tree-node.root-node {
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, rgba(32, 44, 56, 0.98) 0%, rgba(22, 32, 41, 0.98) 100%);
  border-radius: 14px;
  padding: 12px 20px;
  text-align: center;
  min-width: 160px;
  max-width: 240px;
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
  color: var(--text, #ffffff);
}

/* Vertical line from Root down */
.tree-connector-main {
  width: 2px;
  height: 24px;
  background: var(--jade);
  box-shadow: 0 0 8px rgba(46, 213, 158, 0.4);
  margin: 0 auto;
}

/* Row containing Level 2 (Left Leg & Right Leg) */
.tree-children-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* Horizontal line splitting Root to Left and Right */
.tree-children-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: var(--jade);
  box-shadow: 0 0 8px rgba(46, 213, 158, 0.4);
  z-index: 1;
}

/* Each leg branch (Left or Right) */
.tree-subbranch {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 280px;
  max-width: 440px;
  position: relative;
}

/* Vertical line connecting horizontal bar to child card */
.tree-branch-top-connector {
  width: 2px;
  height: 18px;
  background: var(--jade);
  box-shadow: 0 0 8px rgba(46, 213, 158, 0.4);
  margin: 0 auto;
}

/* Child Card (Level 2) */
.tree-node.child-node {
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.96) 0%, rgba(19, 26, 34, 0.96) 100%);
  border: 2px solid var(--jade);
  border-radius: 14px;
  padding: 10px 14px;
  text-align: center;
  width: 100%;
  max-width: 210px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 2;
  color: var(--text, #ffffff);
}

.tree-node.child-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(46, 213, 158, 0.22);
  border-color: #2ed59e;
}

.tree-node.child-node.active-member {
  border-color: var(--jade);
}

.tree-node.child-node.inactive-member {
  border-color: #64748b;
  background: rgba(22, 32, 41, 0.8);
}

/* Empty slot at Level 2 */
.tree-node.empty-slot {
  background: rgba(19, 26, 34, 0.65);
  border: 2px dashed rgba(46, 213, 158, 0.35);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  width: 100%;
  max-width: 210px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
  color: var(--text, #ffffff);
}

.tree-node.empty-slot:hover {
  border-color: var(--jade);
  background: rgba(46, 213, 158, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(46, 213, 158, 0.25);
}

/* Vertical line connecting child card down to grandchildren */
.tree-subbranch-down-connector {
  width: 2px;
  height: 20px;
  background: var(--jade);
  box-shadow: 0 0 8px rgba(46, 213, 158, 0.4);
  margin: 0 auto;
}

/* Row containing Level 3 (Grandchildren) */
.tree-grandchild-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  width: 100%;
  margin-top: 0;
}

/* Horizontal line splitting child to left and right grandchildren */
.tree-grandchild-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: var(--jade);
  box-shadow: 0 0 8px rgba(46, 213, 158, 0.4);
  z-index: 1;
}

/* Vertical connector for grandchild branch */
.tree-grandchild-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 120px;
  max-width: 190px;
  position: relative;
}

.tree-grandchild-connector {
  width: 2px;
  height: 16px;
  background: var(--jade);
  box-shadow: 0 0 8px rgba(46, 213, 158, 0.4);
  margin: 0 auto;
}

/* Grandchild card (Level 3) */
.tree-grandchild-node {
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.96) 0%, rgba(19, 26, 34, 0.96) 100%);
  border: 1.5px solid var(--jade);
  border-radius: 12px;
  padding: 8px 10px;
  text-align: center;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  position: relative;
  z-index: 2;
  cursor: pointer;
  color: var(--text, #ffffff);
}

.tree-grandchild-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(46, 213, 158, 0.22);
  border-color: #2ed59e;
}

.tree-grandchild-node.active-slot {
  border-color: var(--jade);
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.96) 0%, rgba(19, 26, 34, 0.96) 100%);
}

.tree-grandchild-node.inactive-slot {
  border-color: #64748b;
  background: rgba(22, 32, 41, 0.75);
}

.tree-grandchild-node.empty-slot {
  border: 1.5px dashed rgba(46, 213, 158, 0.35);
  background: rgba(19, 26, 34, 0.65);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px 6px;
}

.tree-grandchild-node.empty-slot:hover {
  border-color: var(--jade);
  background: rgba(46, 213, 158, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(46, 213, 158, 0.2);
}

.grandchild-mob {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text, #ffffff);
  margin: 2px 0 3px;
  line-height: 1.2;
}

.grandchild-stats {
  font-size: 9px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 2px;
}

/* Explore Drilldown button */
.btn-drilldown-node {
  margin-top: 6px;
  background: rgba(46, 213, 158, 0.12);
  border: 1px solid rgba(46, 213, 158, 0.3);
  color: var(--jade);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-drilldown-node:hover {
  background: var(--jade);
  color: #0e291b;
  border-color: var(--jade);
}

/* Level 4 mini slots */
.tree-l4-row {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 6px;
  width: 100%;
}

.tree-l4-node {
  background: rgba(22, 32, 41, 0.9);
  border: 1px solid rgba(46, 213, 158, 0.25);
  border-radius: 6px;
  padding: 3px 4px;
  font-size: 8px;
  flex: 1;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  color: var(--text, #ffffff);
}

.tree-l4-node.empty-slot {
  border: 1px dashed rgba(46, 213, 158, 0.3);
  background: rgba(19, 26, 34, 0.7);
  color: var(--jade);
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   GLASSMORPHIC CONFIRMATION POPUP MODAL
   ========================================================================== */
.modal-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 18, 10, 0.55);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: confirmFadeIn 0.18s ease-out;
}

@keyframes confirmFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-confirm-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.72) 100%);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(11, 55, 33, 0.24), inset 0 1px 1px rgba(255, 255, 255, 0.95);
  overflow: hidden;
  animation: confirmZoomIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes confirmZoomIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.confirm-head {
  padding: 20px 24px 14px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  background: var(--bg2, #162029);
}

.confirm-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(46, 213, 158, 0.12);
  color: var(--jade);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 1px solid rgba(46, 213, 158, 0.25);
}

.confirm-icon-circle.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.confirm-icon-circle.warn {
  background: rgba(245, 166, 35, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 166, 35, 0.3);
}

.confirm-title {
  margin: 0 0 3px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text, #ffffff);
  line-height: 1.3;
}

.confirm-sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}

.confirm-body {
  padding: 18px 24px;
}

.confirm-details-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg2, #162029);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}

.confirm-details-table td {
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  color: var(--text, #ffffff);
}

.confirm-details-table tr:last-child td {
  border-bottom: none;
}

.confirm-details-table td.label {
  color: var(--muted);
  font-weight: 600;
  width: 40%;
}

.confirm-details-table td.val {
  color: var(--jade);
  font-weight: 700;
  text-align: right;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 24px 20px;
  background: var(--bg2, #162029);
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.08));
}

.confirm-actions .btn {
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
}

/* ==========================================================================
   TRADE-IN RECEIPT UPLOAD & ADMIN RECEIPT PREVIEW LIGHTBOX
   ========================================================================== */
.receipt-dropzone {
  border: 2px dashed rgba(15, 122, 69, 0.35);
  background: #f8fdf9;
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  margin: 12px 0;
}

.receipt-dropzone:hover,
.receipt-dropzone.dragover {
  border-color: var(--jade);
  background: #effaf3;
  transform: translateY(-1px);
}

.receipt-drop-icon {
  font-size: 32px;
  margin-bottom: 6px;
  display: block;
}

.receipt-drop-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0b4d2c;
  margin: 0 0 3px;
}

.receipt-drop-hint {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0;
}

.receipt-preview-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid rgba(15, 122, 69, 0.25);
  border-radius: 12px;
  margin-top: 10px;
}

.receipt-preview-img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  flex-shrink: 0;
}

.receipt-preview-meta {
  flex: 1;
  min-width: 0;
}

.receipt-preview-filename {
  font-size: 12px;
  font-weight: 700;
  color: #0b4d2c;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.receipt-preview-size {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

.receipt-remove-btn {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.receipt-remove-btn:hover {
  background: #fecaca;
}

/* Survio-inspired Action Button */
.receipt-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(15, 122, 69, 0.35);
  background: rgba(15, 122, 69, 0.08);
  color: #0b4d2c;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.receipt-view-btn:hover {
  background: rgba(15, 122, 69, 0.2);
  border-color: var(--jade);
  transform: translateY(-1px);
}

/* Lightbox Modal */
.receipt-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 20, 12, 0.78);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: confirmFadeIn 0.2s ease-out;
}

.receipt-lightbox-card {
  background: linear-gradient(135deg, rgba(20, 38, 28, 0.92) 0%, rgba(10, 24, 16, 0.94) 100%);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 22px;
  max-width: 680px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  animation: confirmZoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.receipt-lightbox-head {
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  background: rgba(10, 20, 15, 0.9);
}

.receipt-lightbox-body {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  background: #09120c;
  min-height: 240px;
  max-height: 72vh;
  position: relative;
}

.receipt-lightbox-img {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  cursor: zoom-in;
  transition: transform 0.25s ease, max-height 0.25s ease;
  user-select: none;
}

.receipt-lightbox-img.zoomed {
  max-height: none;
  max-width: none;
  transform: scale(1.6);
  cursor: zoom-out;
}

.receipt-lightbox-footer {
  padding: 12px 20px;
  background: rgba(10, 20, 15, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   GENEALOGY EXPANDED TREE & NETWORK METRICS
   ========================================================================== */
.tree-depth-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 122, 69, 0.08);
  padding: 4px 6px;
  border-radius: 10px;
  border: 1px solid rgba(15, 122, 69, 0.18);
}

.depth-btn {
  background: transparent;
  border: none;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.depth-btn:hover {
  color: var(--jade);
  background: rgba(15, 122, 69, 0.12);
}

.depth-btn.active {
  background: var(--jade);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 122, 69, 0.35);
}

.tree-network-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.tree-stat-card {
  background: var(--card-bg, #1c2732);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tree-stat-card .tree-stat-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--jade);
  line-height: 1.1;
}

.tree-stat-card .tree-stat-lbl {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.unactivated-directs-banner {
  background: linear-gradient(135deg, rgba(235, 153, 30, 0.1) 0%, rgba(243, 112, 33, 0.15) 100%);
  border: 1px solid rgba(243, 112, 33, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   TRADE-IN CYCLE MONITOR & CLAIM SYSTEM
   ========================================================================== */
.tradein-monitor-card {
  background: linear-gradient(180deg, var(--card-bg, #1c2732) 0%, var(--bg2, #162029) 100%);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(15, 70, 42, 0.04);
  transition: all 0.25s ease;
}

.tradein-monitor-card:hover {
  border-color: rgba(15, 122, 69, 0.35);
  box-shadow: 0 6px 20px rgba(15, 70, 42, 0.08);
}

.tradein-progress-wrap {
  position: relative;
  background: rgba(15, 122, 69, 0.1);
  height: 9px;
  border-radius: 99px;
  overflow: hidden;
  margin: 10px 0 16px;
}

.tradein-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0b4d2c 0%, #0f7a45 50%, #20c997 100%);
  border-radius: 99px;
  transition: width 0.5s ease-out;
}

.tradein-milestones {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: -12px;
  padding: 0 4px;
}

.milestone-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.milestone-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: transparent;
  transition: all 0.25s ease;
}

.milestone-node.completed .milestone-dot {
  background: var(--jade);
  border-color: var(--jade);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 122, 69, 0.4);
}

.milestone-node.current .milestone-dot {
  border-color: #f59e0b;
  background: #fef3c7;
  color: #b45309;
  animation: pulseDot 1.5s infinite;
}

.milestone-lbl {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--muted);
}

.milestone-node.completed .milestone-lbl {
  color: var(--jade);
}

.tradein-claim-btn {
  background: linear-gradient(135deg, #0b4d2c 0%, #0f7a45 100%);
  color: #ffffff;
  border: none;
  border-radius: 99px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(15, 122, 69, 0.3);
  transition: all 0.25s ease;
  animation: pulseClaim 2s infinite;
}

.tradein-claim-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 122, 69, 0.45);
}

@keyframes pulseClaim {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(15, 122, 69, 0.5);
  }
}

@keyframes pulseDot {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.tradein-countdown-pill {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   EARNINGS HISTORY SYSTEM
   ========================================================================== */
.earnings-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.earnings-filter-btn {
  background: #ffffff;
  border: 1px solid rgba(15, 122, 69, 0.18);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.earnings-filter-btn:hover {
  border-color: var(--jade);
  color: var(--jade);
}

.earnings-filter-btn.active {
  background: var(--jade);
  color: #ffffff;
  border-color: var(--jade);
  box-shadow: 0 2px 10px rgba(15, 122, 69, 0.3);
}

.earning-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-referral {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-indirect {
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  border: 1px solid rgba(20, 184, 166, 0.25);
}

.badge-matching {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-tradein-ref {
  background: rgba(139, 92, 246, 0.12);
  color: #6d28d9;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.badge-tradein-yield {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.earnings-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.earning-sum-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

.earning-sum-card .sum-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--jade);
}

.earning-sum-card .sum-lbl {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}

/* ==========================================================================
   TRADE-IN SLOTS CAPACITY & 3-DAY PAUSED CLAIM SYSTEM STYLES
   ========================================================================== */

.tradein-slots-card {
  background: var(--card-bg);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(15, 122, 69, 0.07);
}

.tradein-slots-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.slots-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #0f7a45;
  color: #ffffff;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(15, 122, 69, 0.25);
}

.slots-pill-badge.full {
  background: #dc2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.tradein-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 8px;
}

.tradein-slot-card {
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
}

.tradein-slot-card.slot-active {
  background: var(--card-bg, #1c2732);
  border: 1.5px solid rgba(46, 213, 158, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tradein-slot-card.slot-pending {
  background: rgba(245, 166, 35, 0.08);
  border: 1.5px dashed var(--gold);
}

.tradein-slot-card.slot-claimable {
  background: rgba(46, 213, 158, 0.12);
  border: 2px solid var(--jade);
  box-shadow: 0 0 14px rgba(46, 213, 158, 0.35);
  animation: pulse-border 1.8s infinite;
}

.tradein-slot-card.slot-empty {
  background: var(--bg2, #162029);
  border: 1.5px dashed var(--line, rgba(255, 255, 255, 0.1));
  color: var(--muted);
}

.tradein-slot-card .slot-num {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--jade);
  margin-bottom: 2px;
}

.tradein-slot-card.slot-empty .slot-num {
  color: var(--muted);
}

.tradein-slot-card .slot-capital {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text, #ffffff);
  margin: 0;
}

.tradein-slot-card .slot-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  margin-top: 3px;
}

.slot-badge-active {
  background: rgba(46, 213, 158, 0.15);
  color: var(--jade);
}

.slot-badge-pending {
  background: rgba(245, 166, 35, 0.18);
  color: #fbbf24;
}

.slot-badge-claim {
  background: var(--jade);
  color: #0e291b;
  font-weight: 800;
}

.slot-badge-free {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.tradein-claim-btn-glowing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff !important;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
  animation: pulse-btn 2s infinite;
}

.tradein-claim-btn-glowing:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.tradein-rollover-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.tradein-rollover-btn:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.badge-tag.tag-rollover {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 7px;
}

.rollover-submit-box {
  background: var(--bg2);
  border: 1.5px dashed rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  padding: 12px;
}

@keyframes pulse-btn {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

.tradein-paused-alert {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 11.5px;
  color: #991b1b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  line-height: 1.4;
}

.encode-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.encode-mode-btn {
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  background: #f9fafb;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.encode-mode-btn.active {
  border-color: var(--jade);
  background: #f0fbf5;
  color: #0b4d2c;
  box-shadow: 0 2px 8px rgba(15, 122, 69, 0.12);
}

/* =========================================================
   ADMIN PANEL: MOBILE VIEW & APPROVAL ENHANCEMENTS
   ========================================================= */

/* Amount to Release Highlight Box */
.amount-release-box {
  background: linear-gradient(135deg, #f0fbf5 0%, #e8f9f0 100%);
  border: 1.5px solid rgba(15, 122, 69, 0.28);
  border-radius: 10px;
  padding: 8px 12px;
  margin: 6px 0;
}

.amount-release-val {
  font-size: 17px;
  font-weight: 800;
  color: #0f7a45;
  line-height: 1.2;
}

.amount-release-less {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #065f46;
  margin-top: 2px;
}

/* ==========================================================================
   COMPREHENSIVE ADMIN MOBILE RESPONSIVE SYSTEM (ALL 6 PANELS)
   ========================================================================== */
.admin-mobile-cards-list {
  display: none;
}

/* Home Pending Action Center Items */
.home-pending-card {
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.95) 0%, rgba(22, 32, 41, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid #f59e0b;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

[data-theme="light"] .home-pending-card {
  background: #ffffff !important;
  border-color: rgba(15, 122, 69, 0.16) !important;
  border-left: 4px solid #f59e0b !important;
  box-shadow: 0 2px 8px rgba(15, 70, 42, 0.04) !important;
}

@media (min-width: 680px) {
  .home-pending-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {

  /* 1. Global Viewport & Layout Reset to Prevent Horizontal Overflow */
  html,
  body.admin-terminal-body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100%;
  }

  .admin-terminal-layout {
    display: block !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  .admin-main-area {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  .admin-content-inner {
    padding: 16px 14px 80px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    gap: 18px !important;
  }

  .admin-view-panel {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  /* 2. Top Navigation Bar - Single Sleek Mobile Header Row */
  .admin-top-bar {
    padding: 0 14px !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    background: linear-gradient(135deg, rgba(19, 26, 34, 0.96) 0%, rgba(22, 32, 41, 0.94) 100%) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
  }

  .admin-top-tag {
    display: none !important;
    /* Hide breadcrumbs on mobile to save precious screen real estate */
  }

  .admin-top-left {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
  }

  .admin-top-left .dash-burger-btn {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
  }

  .admin-top-left .top-brand-logo {
    height: 28px !important;
    width: auto !important;
    display: block !important;
  }

  .admin-top-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .admin-top-right .btn-theme-toggle {
    padding: 6px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .admin-top-right .btn-theme-toggle .theme-toggle-text {
    display: none !important;
  }

  .admin-top-right .user-badge {
    padding: 4px 8px !important;
    font-size: 10px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
  }

  #togglePayoutsTopBtn {
    padding: 4px 8px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  #logoutTopBtn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ef4444 !important;
    border: 1.5px solid rgba(239, 68, 68, 0.4) !important;
    background: rgba(239, 68, 68, 0.12) !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
  }

  #logoutTopBtn span:first-child {
    display: none !important;
  }

  #logoutTopBtn .logout-icon,
  #logoutTopBtn .logout-icon-svg {
    font-size: 16px !important;
    width: 17px !important;
    height: 17px !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: block !important;
  }

  @media (max-width: 520px) {
    .admin-top-right .user-badge span:last-child {
      display: none !important;
    }
    .admin-top-right .user-badge {
      padding: 0 !important;
      width: 24px !important;
      height: 24px !important;
      border-radius: 50% !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      flex-shrink: 0 !important;
    }
    #togglePayoutsTopBtn {
      padding: 3px 6px !important;
      font-size: 9.5px !important;
      max-width: 85px !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }
  }

  /* 3. Section Headers & Responsive Filter Toolbars */
  .admin-sec-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
    padding: 4px 0 !important;
  }

  .admin-sec-title {
    font-size: 19px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
  }

  .admin-sec-sub {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    color: var(--jade) !important;
  }

  .admin-sec-head>div {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .ctrl-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .ctrl-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 4px !important;
  }

  .ctrl-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .ctrl-tab {
    flex-shrink: 0 !important;
    padding: 6px 12px !important;
    font-size: 11.5px !important;
  }

  .ctrl-search {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 5. Tables Swapped to Mobile Cards on <= 768px */
  .admin-table-panel.table-wrap,
  .plan-modal .table-wrap {
    display: none !important;
  }

  .admin-mobile-cards-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .admin-mob-card {
    background: var(--card-bg, #1c2732);
    border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    color: var(--text, #ffffff);
  }

  .admin-mob-card.pending {
    border-left: 4px solid var(--gold, #f5a623);
    background: linear-gradient(180deg, var(--card-bg, #1c2732) 0%, var(--bg2, #162029) 100%);
  }

  .admin-mob-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.08));
    padding-bottom: 8px;
    gap: 6px;
    flex-wrap: wrap;
  }

  .admin-mob-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    font-size: 12.5px;
  }

  .admin-mob-card-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .admin-mob-card-field.full {
    grid-column: 1 / -1;
  }

  .admin-mob-card-label {
    font-size: 10px;
    color: var(--muted, #8e9fae);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .admin-mob-card-val {
    font-size: 13px;
    color: var(--text, #ffffff);
    word-break: break-word;
  }

  /* Mobile Referral Cards for Member List Modals - Hidden by default on desktop */
  .plan-modal .mobile-referral-cards {
    display: none !important;
  }

  .plan-modal .table-wrap {
    display: block !important;
  }

  /* Mobile: Hide table, show mobile cards */
  @media (max-width: 768px) {
    .plan-modal .mobile-referral-cards {
      display: flex !important;
      flex-direction: column !important;
      gap: 12px !important;
      margin-top: 10px !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
    .plan-modal .table-wrap {
      display: none !important;
    }
  }

  /* Desktop: Show table, hide mobile cards */
  @media (min-width: 769px) {
    .plan-modal .mobile-referral-cards {
      display: none !important;
    }
    .plan-modal .table-wrap {
      display: block !important;
    }
  }

  .plan-modal .referral-mobile-card {
    background: var(--card-bg, #1c2732);
    border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    color: var(--text, #ffffff);
    transition: all 0.2s ease;
  }

  .plan-modal .referral-mobile-card:hover {
    border-color: rgba(46, 213, 158, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  }

  .plan-modal .referral-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.08));
    padding-bottom: 8px;
    gap: 6px;
    flex-wrap: wrap;
  }

  .plan-modal .referral-card-username {
    font-size: 15px;
    font-weight: 800;
    color: var(--jade);
  }

  .plan-modal .referral-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    font-size: 12.5px;
  }

  .plan-modal .referral-card-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .plan-modal .referral-card-field.full {
    grid-column: 1 / -1;
  }

  .plan-modal .referral-card-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .plan-modal .referral-card-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
  }

  /* Light theme mobile cards */
  [data-theme="light"] .plan-modal .referral-mobile-card {
    background: #ffffff;
    border-color: rgba(15, 122, 69, 0.15);
    color: #0e291b;
  }

  [data-theme="light"] .plan-modal .referral-card-username {
    color: #0f7a45;
  }

  [data-theme="light"] .plan-modal .referral-card-label {
    color: #567264;
  }

  [data-theme="light"] .plan-modal .referral-card-value {
    color: #0e291b;
  }

  .admin-mob-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    border-top: 1px solid var(--line, rgba(255, 255, 255, 0.08));
    padding-top: 10px;
    flex-wrap: wrap;
  }

  .admin-mob-card-actions .btn-admin-action,
  .admin-mob-card-actions .btn,
  .admin-mob-card-actions button {
    flex: 1;
    min-width: 72px;
    padding: 8px 8px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
  }

  /* 6. Panel 1: Home / KPIs */
  .admin-ref-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 12px 14px !important;
    gap: 10px !important;
  }

  .admin-ref-banner-right {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    gap: 6px !important;
  }

  .admin-ref-banner-right input {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile 2-Column KPI Cards Grid (Compact App Tiles) */
  .admin-kpi-grid,
  .kpi-row-1,
  .kpi-row-2 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .admin-card {
    padding: 14px 12px !important;
    border-radius: 16px !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    min-height: 110px !important;
    box-sizing: border-box !important;
    background: linear-gradient(135deg, rgba(28, 39, 50, 0.95) 0%, rgba(22, 32, 41, 0.92) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .admin-card.gold {
    background: linear-gradient(135deg, rgba(46, 213, 158, 0.12) 0%, rgba(217, 119, 6, 0.08) 100%) !important;
    border-color: rgba(217, 119, 6, 0.25) !important;
  }

  .admin-card.mint {
    background: linear-gradient(135deg, rgba(46, 213, 158, 0.15) 0%, rgba(22, 163, 74, 0.1) 100%) !important;
    border-color: rgba(46, 213, 158, 0.3) !important;
  }

  .admin-card > div:first-child {
    width: 100% !important;
    padding-right: 36px !important;
    box-sizing: border-box !important;
  }

  .admin-card .kpi-label {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    line-height: 1.3 !important;
    margin: 0 0 4px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    color: var(--muted) !important;
  }

  .admin-card .kpi-val {
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    margin: 2px 0 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: var(--text) !important;
  }

  .admin-card.gold .kpi-val {
    color: var(--gold) !important;
  }

  .admin-card.mint .kpi-val {
    color: var(--jade) !important;
  }

  .admin-card .kpi-sub {
    font-size: 10px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: var(--muted) !important;
  }

  .admin-card .kpi-icon {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
    border-radius: 10px !important;
    display: grid !important;
    place-items: center !important;
    background: rgba(46, 213, 158, 0.12) !important;
    border: 1px solid rgba(46, 213, 158, 0.25) !important;
  }

  /* Remove colored left border line on mobile */
  .admin-card::before {
    display: none !important;
  }

  .wallet-totals-bar {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    margin-top: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .wt-card {
    padding: 12px 10px !important;
    border-radius: 14px !important;
    text-align: left !important;
    background: linear-gradient(135deg, rgba(28, 39, 50, 0.92) 0%, rgba(22, 32, 41, 0.88) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .wt-card .wt-card-label {
    font-size: 8.5px !important;
    letter-spacing: 0.02em !important;
    line-height: 1.2 !important;
    display: block !important;
    margin-bottom: 4px !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    color: var(--muted) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    word-wrap: break-word !important;
    hyphens: auto !important;
  }

  .wt-card .wt-card-val {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: var(--jade) !important;
  }

  /* Pending Approvals Quick Center - Mobile Optimization */
  .admin-card[style*="grid-column:1/-1"] {
    grid-column: 1 / -1 !important;
    padding: 16px 14px !important;
  }

  .admin-card[style*="grid-column:1/-1"] > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .admin-card[style*="grid-column:1/-1"] > div:first-child h3 {
    font-size: 15px !important;
  }

  .admin-card[style*="grid-column:1/-1"] > div:first-child p {
    font-size: 10px !important;
  }

  .admin-card[style*="grid-column:1/-1"] > div:first-child > div:last-child {
    width: 100% !important;
    flex-wrap: wrap !important;
  }

  .admin-card[style*="grid-column:1/-1"] > div:first-child > div:last-child button {
    flex: 1 !important;
    min-width: 0 !important;
    font-size: 11px !important;
    padding: 8px 10px !important;
    white-space: nowrap !important;
  }

  /* Profit Sharing Mobile Optimizations */
  #viewProfitSharing .metrics-row-1 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  #viewProfitSharing .metric-card {
    padding: 16px 14px !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, rgba(28, 39, 50, 0.95) 0%, rgba(22, 32, 41, 0.92) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
    min-height: 120px !important;
  }

  #viewProfitSharing .metric-card .m-label {
    font-size: 10px !important;
    letter-spacing: 0.04em !important;
    color: var(--muted) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
    display: block !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  #viewProfitSharing .metric-card .m-val {
    font-size: 32px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin: 4px 0 6px !important;
    color: var(--jade) !important;
  }

  #viewProfitSharing .metric-card .m-sub {
    font-size: 10px !important;
    color: var(--muted) !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Profit Sharing Release Card */
  #viewProfitSharing .admin-card[style*="rgba(46,213,158,0.1)"] {
    padding: 18px 16px !important;
    border-radius: 16px !important;
  }

  #viewProfitSharing .admin-card[style*="rgba(46,213,158,0.1)"] > div {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  #viewProfitSharing .admin-card[style*="rgba(46,213,158,0.1)"] h3 {
    font-size: 17px !important;
  }

  #viewProfitSharing .admin-card[style*="rgba(46,213,158,0.1)"] button {
    width: 100% !important;
    font-size: 13px !important;
    padding: 12px 16px !important;
  }

  /* Qualified Members Table Mobile */
  .admin-table-panel {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .admin-table {
    min-width: 600px !important;
  }

  /* Badge tags mobile */
  .badge-tag {
    font-size: 10px !important;
    padding: 4px 10px !important;
  }

  /* Admin section header mobile */
  .admin-sec-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .admin-sec-header button {
    width: 100% !important;
  }

  /* 7. Panel 3: Code Vault Responsive */
  .vault-container {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .vault-panel {
    padding: 14px !important;
  }

  .slot-list {
    flex-direction: column !important;
  }

  .slot-input {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .code-inventory-head-bar,
  .member-inventory-head-bar {
    padding: 10px 12px !important;
  }

  .table-pagination-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 10px 12px !important;
  }

  .table-pagination-bar > div:first-child {
    justify-content: space-between !important;
    width: 100% !important;
  }

  #codePageButtons {
    justify-content: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }

  /* 8. Panel 5: Withdrawals 3 Category Summary Cards */
  .admin-wd-summary-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* 9. Panel 6: Earnings Audit Filter Tabs */
  #adminEarningsFilterTabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #adminEarningsFilterTabs::-webkit-scrollbar {
    display: none !important;
  }

  #adminTotalEarningsPaid {
    font-size: 11px !important;
    padding: 4px 10px !important;
  }
}

/* ==========================================================================
   INFINITE TRADING — COMPLETE GLASSMORPHISM MASTER SUITE (ALL PAGES)
   ========================================================================== */

/* Universal Ambient Orbs Backdrop (Supported Across All Pages) */
.orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.52;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orbs .orb-1 {
  width: 580px;
  height: 580px;
  top: -120px;
  left: -90px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.45) 0%, rgba(15, 122, 69, 0.15) 70%, transparent 100%);
  animation-duration: 16s;
}

.orbs .orb-2 {
  width: 650px;
  height: 650px;
  top: 25%;
  right: -160px;
  background: radial-gradient(circle, rgba(232, 148, 58, 0.32) 0%, rgba(245, 158, 11, 0.12) 65%, transparent 100%);
  animation-duration: 22s;
}

.orbs .orb-3 {
  width: 520px;
  height: 520px;
  bottom: 5%;
  left: 10%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.38) 0%, rgba(200, 239, 216, 0.15) 70%, transparent 100%);
  animation-duration: 20s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(35px, 45px) scale(1.08);
  }

  100% {
    transform: translate(-25px, 20px) scale(0.95);
  }
}

/* Glass Surface Foundations */
.glass-panel,
.panel,
.card,
.auth-card,
.m-card-hero,
.m-card-std,
.binary-cap-card,
.trading-chart-card,
.admin-card,
.vault-panel,
.admin-table-panel,
.calc-master-panel,
.result-card-main,
.track-card,
.tree-visual-container,
.step-card,
.gateway-card,
.faq-item {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.95) 0%, rgba(22, 32, 41, 0.92) 100%) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.38), inset 0 1px 1px 0 rgba(255, 255, 255, 0.06) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
  color: #ffffff !important;
}

/* Interactive Hover Lift & Specular Shimmer */
.stat:hover,
.admin-card:hover,
.m-card-std:hover,
.m-card-hero:hover,
.track-card:hover,
.step-card:hover,
.gateway-card:hover,
.admin-mob-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 40px 0 rgba(0, 0, 0, 0.55), inset 0 1px 1px 0 rgba(46, 213, 158, 0.15) !important;
  border-color: rgba(46, 213, 158, 0.35) !important;
}

/* Glass Navigation, Headers, and Sidebars */
.land-header {
  background: rgba(19, 26, 34, 0.92) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45) !important;
}

.dash-top-bar,
.admin-top-bar {
  background: rgba(19, 26, 34, 0.92) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

.dash-sidebar,
.admin-sidebar {
  background: rgba(19, 26, 34, 0.96) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4) !important;
}

.side-nav-card {
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.9) 0%, rgba(22, 32, 41, 0.85) 100%) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.side-nav-body {
  background: rgba(22, 32, 41, 0.7) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.side-ref-card,
.admin-side-ref-box {
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.92) 0%, rgba(22, 32, 41, 0.88) 100%) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.06) !important;
}

/* Glass Form Controls & Inputs */
input.in,
select.in,
textarea.in,
.auth-input,
.ctrl-search,
.slot-input,
.send-field input,
.send-field select,
.genealogy-search-in {
  background: #151f28 !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  color: #ffffff !important;
  transition: all 0.2s ease !important;
}

input.in:focus,
select.in:focus,
textarea.in:focus,
.auth-input:focus,
.ctrl-search:focus,
.slot-input:focus,
.send-field input:focus,
.send-field select:focus,
.genealogy-search-in:focus {
  background: #182430 !important;
  border-color: #2ed59e !important;
  box-shadow: 0 0 0 4px rgba(46, 213, 158, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.08) !important;
  outline: none !important;
}

/* Glass Modals & Dialog Sheets */
.plan-modal-sheet,
.modal-confirm-card {
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.98) 0%, rgba(19, 26, 34, 0.98) 100%) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.plan-modal-backdrop,
.modal-confirm-overlay {
  background: rgba(10, 15, 20, 0.78) !important;
  backdrop-filter: blur(10px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(180%) !important;
}

/* Glass Tables & Headings */
.table-wrap,
.admin-table-panel {
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.95) 0%, rgba(22, 32, 41, 0.92) 100%) !important;
  backdrop-filter: blur(22px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.06) !important;
}

.table thead,
.admin-table thead {
  background: #233240 !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #8e9fae !important;
}

.table tbody tr:hover,
.admin-table tbody tr:hover {
  background: #22303e !important;
}

/* Glass Pills & Status Badges */
.pill,
.badge-tag,
.m-pill-badge {
  background: rgba(28, 39, 50, 0.75) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06) !important;
}

.pill.open,
.tag-active,
.tag-available,
.tag-approved {
  background: rgba(46, 213, 158, 0.16) !important;
  color: #2ed59e !important;
  border-color: rgba(46, 213, 158, 0.3) !important;
}

.pill.closed,
.tag-expired,
.tag-used,
.tag-rejected {
  background: rgba(239, 68, 68, 0.16) !important;
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

.tag-assigned,
.tag-pending,
.tag-welcome,
.badge-tag.tag-welcome,
.badge-tag.tag-assigned,
.badge-tag.tag-pending {
  background: rgba(245, 166, 35, 0.16) !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 166, 35, 0.3) !important;
}

.badge-tag.tag-approved,
.badge-tag.tag-available {
  background: rgba(46, 213, 158, 0.16) !important;
  color: #2ed59e !important;
  border-color: rgba(46, 213, 158, 0.3) !important;
}

.badge-tag.tag-rejected,
.badge-tag.tag-expired {
  background: rgba(239, 68, 68, 0.16) !important;
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

/* Glass Pill Selectors / Tab Strips */
.ctrl-tabs,
.calc-nav-tabs,
.auth-switcher {
  background: #151f28 !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 4px !important;
  border-radius: 999px !important;
}

.ctrl-tab.active,
.calc-tab-btn.active,
.auth-switcher-btn.active {
  background: #233240 !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.08) !important;
  color: #2ed59e !important;
}

/* User Profile Badge */
.user-badge {
  background: #1c2732 !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.06) !important;
}

/* Tree Demo Visual Nodes */
.tree-visual-container .tree-node,
.node-you {
  background: linear-gradient(135deg, #1c2732 0%, #151f28 100%) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

/* Lightbox Glass Overlay */
.receipt-lightbox-overlay {
  background: rgba(10, 15, 20, 0.85) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
}

.receipt-lightbox-card {
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.96) 0%, rgba(19, 26, 34, 0.98) 100%) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
}

/* ==========================================================================
   PWA INSTALL BUTTON & PROMPT STYLES
   ========================================================================== */
.btn-pwa-install {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(46, 213, 158, 0.12) !important;
  color: #2ed59e !important;
  border: 1px solid rgba(46, 213, 158, 0.38) !important;
  border-radius: 999px;
  padding: 8px 15px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(46, 213, 158, 0.15);
  position: relative;
  overflow: hidden;
}

.btn-pwa-install:hover {
  background: rgba(46, 213, 158, 0.22) !important;
  color: #55f3be !important;
  border-color: rgba(46, 213, 158, 0.6) !important;
  box-shadow: 0 4px 16px rgba(46, 213, 158, 0.25);
  transform: translateY(-1px);
}

.btn-pwa-install .icon-install {
  transition: transform 0.25s ease;
}

.btn-pwa-install:hover .icon-install {
  transform: translateY(2px);
}

.pwa-ios-modal {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  background: #1c2732;
  border: 1px solid rgba(46, 213, 158, 0.3);
  border-radius: 20px;
  padding: 18px 22px;
  max-width: 380px;
  width: calc(100% - 32px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  z-index: 99999;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
  pointer-events: none;
  visibility: hidden;
}

.pwa-ios-modal.show {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.pwa-ios-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pwa-ios-title {
  font-size: 14.5px;
  font-weight: 750;
  color: #2ed59e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pwa-ios-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #8e9fae;
  cursor: pointer;
  padding: 2px 6px;
}

.pwa-ios-body {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}

.pwa-ios-step {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-weight: 600;
}

/* ==========================================================================
   DARK SLATE & ELECTRIC MINT THEME (REFERENCE STYLE MATCH)
   ========================================================================== */

/* Universal Dark Form Inputs */
input.in,
select.in,
textarea.in,
input[type="text"],
input[type="password"],
input[type="number"],
select,
textarea {
  background: #151f28 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
}

input.in:focus,
select.in:focus,
textarea.in:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: #2ed59e !important;
  box-shadow: 0 0 0 3px rgba(46, 213, 158, 0.22) !important;
  background: #17232e !important;
}

input::placeholder,
textarea::placeholder {
  color: #64748b !important;
}

/* Dropzones & Receipts in Dark Theme */
:root:not([data-theme="light"]) .receipt-dropzone,
[data-theme="dark"] .receipt-dropzone {
  background: #17232e !important;
  border: 2px dashed rgba(46, 213, 158, 0.35) !important;
  border-radius: 14px !important;
  padding: 16px !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}

:root:not([data-theme="light"]) .receipt-dropzone:hover,
:root:not([data-theme="light"]) .receipt-dropzone.dragover,
[data-theme="dark"] .receipt-dropzone:hover,
[data-theme="dark"] .receipt-dropzone.dragover {
  background: #1c2b38 !important;
  border-color: #2ed59e !important;
  box-shadow: 0 0 20px rgba(46, 213, 158, 0.15) !important;
}

:root:not([data-theme="light"]) .receipt-drop-title,
[data-theme="dark"] .receipt-drop-title {
  color: #2ed59e !important;
  font-weight: 700 !important;
  margin: 4px 0 !important;
}

:root:not([data-theme="light"]) .receipt-drop-hint,
[data-theme="dark"] .receipt-drop-hint {
  color: #8e9fae !important;
  font-size: 11px !important;
  margin: 0 !important;
}

:root:not([data-theme="light"]) .receipt-preview-box,
[data-theme="dark"] .receipt-preview-box {
  background: #151f28 !important;
  border: 1px solid rgba(46, 213, 158, 0.3) !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

/* Dark Slate Cards & Surfaces */
:root:not([data-theme="light"]) .card,
:root:not([data-theme="light"]) .panel,
:root:not([data-theme="light"]) .tradein-monitor-card,
:root:not([data-theme="light"]) .vault-panel,
:root:not([data-theme="light"]) .admin-kpi-card,
:root:not([data-theme="light"]) .code-inventory-head-bar,
:root:not([data-theme="light"]) .member-inventory-head-bar,
:root:not([data-theme="light"]) .table-pagination-bar,
[data-theme="dark"] .card,
[data-theme="dark"] .panel,
[data-theme="dark"] .tradein-monitor-card,
[data-theme="dark"] .vault-panel,
[data-theme="dark"] .admin-kpi-card,
[data-theme="dark"] .code-inventory-head-bar,
[data-theme="dark"] .member-inventory-head-bar,
[data-theme="dark"] .table-pagination-bar {
  background: #1c2732 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35) !important;
  color: #ffffff !important;
}

:root:not([data-theme="light"]) .card:hover,
:root:not([data-theme="light"]) .panel:hover,
[data-theme="dark"] .card:hover,
[data-theme="dark"] .panel:hover {
  border-color: rgba(46, 213, 158, 0.2) !important;
}

/* Tables in Dark Theme */
:root:not([data-theme="light"]) table,
[data-theme="dark"] table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
}

:root:not([data-theme="light"]) th,
[data-theme="dark"] th {
  background: #233240 !important;
  color: #8e9fae !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  font-size: 11.5px !important;
  letter-spacing: 0.05em !important;
}

:root:not([data-theme="light"]) td,
[data-theme="dark"] td {
  background: #1c2732 !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

:root:not([data-theme="light"]) tr:hover td,
[data-theme="dark"] tr:hover td {
  background: #22303e !important;
}

/* Badges & Tags */
.badge-tag,
.pill {
  border-radius: 999px !important;
  font-weight: 750 !important;
}

.pill.open,
.tag-approved,
.tag-available {
  background: rgba(46, 213, 158, 0.16) !important;
  color: #2ed59e !important;
  border: 1px solid rgba(46, 213, 158, 0.3) !important;
}

.pill.closed,
.tag-expired,
.tag-rejected {
  background: rgba(239, 68, 68, 0.16) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.tag-maya,
.pill.pending {
  background: rgba(30, 161, 242, 0.16) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(30, 161, 242, 0.3) !important;
}

/* Glowing Currency Highlights */
.glow-mint,
.text-green,
.val-mint {
  color: #2ed59e !important;
  font-weight: 800 !important;
}

/* Floating Bottom Mobile Nav Bar — Hidden on Desktop, Only on Mobile */
.mobile-bottom-nav {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #12181f;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  body.dash-terminal-body,
  body.admin-terminal-body {
    padding-bottom: 74px !important;
  }

  /* Fix referral link being covered by bottom nav on mobile */
  .side-ref-card,
  .admin-side-ref-box {
    margin-bottom: 80px;
  }
}

.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #8e9fae;
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
  background: none;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bnav-item.active,
.bnav-item:hover {
  color: #2ed59e;
}

.bnav-item .bnav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  line-height: 1;
}

/* Center Glowing Action Button */
.bnav-center-action {
  position: relative;
  top: -14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}

.bnav-center-bubble {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, #2ed59e 0%, #179c70 100%);
  border: 3px solid #12181f;
  display: grid;
  place-items: center;
  box-shadow: 0 0 20px rgba(46, 213, 158, 0.65), 0 4px 12px rgba(0, 0, 0, 0.5);
  font-size: 24px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bnav-center-action:hover .bnav-center-bubble {
  transform: scale(1.08);
  box-shadow: 0 0 28px rgba(46, 213, 158, 0.85);
}

.bnav-center-action span {
  font-size: 10.5px;
  font-weight: 800;
  color: #2ed59e;
  margin-top: 2px;
}

/* ==========================================================================
   THEME TOGGLE BUTTON & DUAL THEME ENGINE OVERRIDES
   ========================================================================== */

/* Navbar & Top Bar Theme Toggle Pill */
.btn-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(36, 51, 64, 0.65);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.btn-theme-toggle:hover {
  background: rgba(45, 63, 79, 0.95);
  border-color: rgba(46, 213, 158, 0.4);
  color: #2ed59e;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.theme-toggle-icon {
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle-icon svg {
  width: 16px;
  height: 16px;
}

.btn-theme-toggle:hover .theme-toggle-icon {
  transform: rotate(20deg) scale(1.18);
}

/* Hero Ambient Lighting Aura */
.hero-logo-card {
  position: relative;
}

.hero-logo-card::before {
  content: "";
  position: absolute;
  inset: -18px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.22) 0%, rgba(46, 213, 158, 0.16) 45%, transparent 72%);
  filter: blur(24px);
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  animation: auraBreathe 5s ease-in-out infinite alternate;
}

@keyframes auraBreathe {
  0% {
    transform: scale(0.92);
    opacity: 0.65;
  }

  100% {
    transform: scale(1.08);
    opacity: 0.98;
  }
}

/* ==========================================================================
   LIGHT THEME COMPLETE COMPONENT OVERRIDES ([data-theme="light"])
   ========================================================================== */

[data-theme="light"] .hero-logo-card::before {
  background: radial-gradient(circle, rgba(15, 122, 69, 0.22) 0%, rgba(217, 119, 6, 0.14) 50%, transparent 72%);
}

/* Light Theme Navigation & Topbars */
[data-theme="light"] .land-header {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(15, 122, 69, 0.12) !important;
  box-shadow: 0 4px 20px rgba(11, 55, 33, 0.05) !important;
}

[data-theme="light"] .dash-top-bar,
[data-theme="light"] .admin-top-bar {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(15, 122, 69, 0.12) !important;
  box-shadow: 0 4px 20px rgba(11, 55, 33, 0.05) !important;
}

[data-theme="light"] .dash-sidebar,
[data-theme="light"] .admin-sidebar {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border-right: 1px solid rgba(15, 122, 69, 0.12) !important;
  box-shadow: 4px 0 24px rgba(11, 55, 33, 0.04) !important;
}

[data-theme="light"] .side-nav-card,
[data-theme="light"] .side-ref-card,
[data-theme="light"] .admin-side-ref-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 250, 243, 0.85) 100%) !important;
  border: 1px solid rgba(15, 122, 69, 0.12) !important;
  box-shadow: 0 4px 14px rgba(11, 55, 33, 0.04) !important;
}

[data-theme="light"] .side-nav-body {
  background: rgba(244, 251, 247, 0.8) !important;
}

/* Light Theme Navigation Menu & Drawer */
[data-theme="light"] .land-nav-menu {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid rgba(15, 122, 69, 0.14) !important;
}

[data-theme="light"] .land-nav-menu .nav-link {
  color: #1e3a2b !important;
}

[data-theme="light"] .land-nav-menu .nav-link:hover {
  color: #0f7a45 !important;
  background: rgba(15, 122, 69, 0.08) !important;
}

[data-theme="light"] .mobile-toggle span {
  background: #0f7a45 !important;
}

/* Light Theme Cards & Surfaces */
[data-theme="light"] .card,
[data-theme="light"] .panel,
[data-theme="light"] .glass-panel,
[data-theme="light"] .admin-card,
[data-theme="light"] .track-card,
[data-theme="light"] .step-card,
[data-theme="light"] .gateway-card,
[data-theme="light"] .faq-item,
[data-theme="light"] .vault-panel,
[data-theme="light"] .tradein-monitor-card,
[data-theme="light"] .m-card-hero,
[data-theme="light"] .m-card-std,
[data-theme="light"] .binary-cap-card,
[data-theme="light"] .trading-chart-card,
[data-theme="light"] .calc-master-panel,
[data-theme="light"] .result-card-main,
[data-theme="light"] .tree-visual-container,
[data-theme="light"] .admin-kpi-card,
[data-theme="light"] .code-inventory-head-bar,
[data-theme="light"] .member-inventory-head-bar,
[data-theme="light"] .table-pagination-bar,
[data-theme="light"] .auth-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 251, 247, 0.92) 100%) !important;
  border: 1px solid rgba(15, 122, 69, 0.15) !important;
  box-shadow: 0 8px 30px rgba(11, 55, 33, 0.06), inset 0 1px 1px #ffffff !important;
  color: #0e291b !important;
}

[data-theme="light"] .card:hover,
[data-theme="light"] .panel:hover,
[data-theme="light"] .m-card-std:hover,
[data-theme="light"] .m-card-hero:hover,
[data-theme="light"] .track-card:hover,
[data-theme="light"] .step-card:hover,
[data-theme="light"] .gateway-card:hover {
  box-shadow: 0 14px 38px rgba(11, 55, 33, 0.12), inset 0 1px 1px #ffffff !important;
  border-color: rgba(15, 122, 69, 0.35) !important;
}

/* Light Theme Headings & Text */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] .hero-title,
[data-theme="light"] .sec-title,
[data-theme="light"] .track-title,
[data-theme="light"] .modal-title {
  color: #0b3d24 !important;
}

[data-theme="light"] .lede {
  color: #355344 !important;
}

[data-theme="light"] .sec-lede {
  color: #446353 !important;
}

[data-theme="light"] .muted {
  color: #567264 !important;
}

[data-theme="light"] .tiny {
  color: #567264 !important;
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #0f7a45 0%, #16a34a 50%, #d97706 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

[data-theme="light"] .kicker-pill {
  background: rgba(15, 122, 69, 0.08) !important;
  border-color: rgba(15, 122, 69, 0.25) !important;
  color: #0f7a45 !important;
}

/* Light Theme Buttons */
[data-theme="light"] .btn-ghost {
  background: rgba(15, 122, 69, 0.08) !important;
  color: #0f7a45 !important;
  border: 1px solid rgba(15, 122, 69, 0.25) !important;
  box-shadow: 0 2px 8px rgba(11, 55, 33, 0.04) !important;
}

[data-theme="light"] .btn-ghost:hover {
  background: rgba(15, 122, 69, 0.16) !important;
  border-color: rgba(15, 122, 69, 0.4) !important;
  color: #0b6338 !important;
}

[data-theme="light"] .btn-primary-glow,
[data-theme="light"] .btn-mint {
  background: linear-gradient(135deg, #0f7a45, #0b6338) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(15, 122, 69, 0.3) !important;
}

[data-theme="light"] .btn-primary-glow:hover,
[data-theme="light"] .btn-mint:hover {
  box-shadow: 0 6px 22px rgba(15, 122, 69, 0.45) !important;
  filter: brightness(1.08) !important;
}

[data-theme="light"] .btn-pwa-install {
  background: rgba(15, 122, 69, 0.1) !important;
  color: #0f7a45 !important;
  border: 1px solid rgba(15, 122, 69, 0.3) !important;
}

[data-theme="light"] .btn-theme-toggle {
  background: rgba(15, 122, 69, 0.08) !important;
  color: #0f7a45 !important;
  border: 1px solid rgba(15, 122, 69, 0.22) !important;
  box-shadow: 0 2px 8px rgba(11, 55, 33, 0.05) !important;
}

[data-theme="light"] .btn-theme-toggle:hover {
  background: rgba(15, 122, 69, 0.16) !important;
  border-color: rgba(15, 122, 69, 0.38) !important;
  color: #0b6338 !important;
}

/* Light Theme Inputs */
[data-theme="light"] input.in,
[data-theme="light"] select.in,
[data-theme="light"] textarea.in,
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="number"],
[data-theme="light"] select,
[data-theme="light"] textarea,
[data-theme="light"] .auth-input,
[data-theme="light"] .ctrl-search,
[data-theme="light"] .slot-input,
[data-theme="light"] .send-field input,
[data-theme="light"] .send-field select,
[data-theme="light"] .genealogy-search-in {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #0e291b !important;
  border: 1px solid rgba(15, 122, 69, 0.22) !important;
  box-shadow: inset 0 1px 2px rgba(15, 70, 42, 0.04) !important;
}

[data-theme="light"] input.in:focus,
[data-theme="light"] select.in:focus,
[data-theme="light"] textarea.in:focus,
[data-theme="light"] input[type="text"]:focus,
[data-theme="light"] input[type="password"]:focus,
[data-theme="light"] input[type="number"]:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] .auth-input:focus,
[data-theme="light"] .ctrl-search:focus,
[data-theme="light"] .slot-input:focus,
[data-theme="light"] .send-field input:focus,
[data-theme="light"] .send-field select:focus,
[data-theme="light"] .genealogy-search-in:focus {
  background: #ffffff !important;
  border-color: #0f7a45 !important;
  box-shadow: 0 0 0 3px rgba(15, 122, 69, 0.18) !important;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: #8fa89b !important;
}

/* Light Theme Tables */
[data-theme="light"] .table-wrap,
[data-theme="light"] .admin-table-panel {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(15, 122, 69, 0.14) !important;
  box-shadow: 0 8px 28px rgba(11, 55, 33, 0.05) !important;
}

[data-theme="light"] th,
[data-theme="light"] .table thead,
[data-theme="light"] .admin-table thead {
  background: #eaf7ef !important;
  color: #0f7a45 !important;
  border-bottom: 1px solid rgba(15, 122, 69, 0.15) !important;
}

[data-theme="light"] td,
[data-theme="light"] .table tbody td,
[data-theme="light"] .admin-table tbody td {
  background: #ffffff !important;
  color: #0e291b !important;
  border-bottom: 1px solid rgba(15, 122, 69, 0.08) !important;
}

[data-theme="light"] tr:hover td,
[data-theme="light"] .table tbody tr:hover td,
[data-theme="light"] .admin-table tbody tr:hover td {
  background: #f0faf3 !important;
}

[data-theme="light"] .table-pagination-bar {
  background: #ffffff !important;
  border: 1px solid rgba(15, 122, 69, 0.16) !important;
  box-shadow: 0 4px 16px rgba(11, 55, 33, 0.05) !important;
}

[data-theme="light"] .table-pagination-bar .muted {
  color: #3b604e !important;
}

[data-theme="light"] #codePageSizeSelect,
[data-theme="light"] #memberPageSizeSelect {
  background: #ffffff !important;
  color: #0e291b !important;
  border: 1px solid rgba(15, 122, 69, 0.25) !important;
}

/* Light Theme Badges & Status Tags */
[data-theme="light"] .badge-tag {
  box-shadow: none !important;
}

[data-theme="light"] .tag-approved,
[data-theme="light"] .tag-active,
[data-theme="light"] .tag-available {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
}

[data-theme="light"] .tag-pending,
[data-theme="light"] .tag-assigned,
[data-theme="light"] .tag-welcome {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
}

[data-theme="light"] .tag-rejected,
[data-theme="light"] .tag-expired,
[data-theme="light"] .tag-used {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
}

/* Light Theme Modals */
[data-theme="light"] .plan-modal-sheet,
[data-theme="light"] .modal-confirm-card,
[data-theme="light"] .pwa-ios-modal {
  background: #ffffff !important;
  border: 1px solid rgba(15, 122, 69, 0.22) !important;
  box-shadow: 0 28px 70px rgba(11, 55, 33, 0.2) !important;
  color: #0e291b !important;
}

[data-theme="light"] .plan-modal-backdrop,
[data-theme="light"] .modal-confirm-overlay {
  background: rgba(10, 40, 25, 0.5) !important;
}

/* Light Theme Tabs & Selectors */
[data-theme="light"] .ctrl-tabs,
[data-theme="light"] .calc-nav-tabs,
[data-theme="light"] .auth-switcher {
  background: rgba(15, 122, 69, 0.08) !important;
  border: 1px solid rgba(15, 122, 69, 0.15) !important;
}

[data-theme="light"] .ctrl-tab.active,
[data-theme="light"] .calc-tab-btn.active,
[data-theme="light"] .auth-switcher-btn.active {
  background: #ffffff !important;
  color: #0f7a45 !important;
  box-shadow: 0 3px 12px rgba(11, 55, 33, 0.1), inset 0 1px 1px #ffffff !important;
}

/* Light Theme Tree Demo & Badges */
[data-theme="light"] .tree-visual-container .tree-node,
[data-theme="light"] .node-you {
  background: linear-gradient(135deg, #ffffff 0%, #f0faf3 100%) !important;
  border: 1.5px solid rgba(15, 122, 69, 0.25) !important;
  box-shadow: 0 8px 24px rgba(11, 55, 33, 0.08) !important;
  color: #0e291b !important;
}

[data-theme="light"] .mobile-bottom-nav {
  background: #ffffff !important;
  border-top: 1px solid rgba(15, 122, 69, 0.12) !important;
  box-shadow: 0 -4px 20px rgba(11, 55, 33, 0.06) !important;
}

[data-theme="light"] .bnav-item {
  color: #567264 !important;
}

[data-theme="light"] .bnav-item.active,
[data-theme="light"] .bnav-item:hover {
  color: #0f7a45 !important;
}

[data-theme="light"] .bnav-center-bubble {
  border-color: #ffffff !important;
  background: radial-gradient(circle, #0f7a45 0%, #0b6338 100%) !important;
  box-shadow: 0 0 20px rgba(15, 122, 69, 0.45), 0 4px 12px rgba(11, 55, 33, 0.2) !important;
}

[data-theme="light"] .bnav-center-action span {
  color: #0f7a45 !important;
}

/* Light Theme Stats & Counters */
[data-theme="light"] .stats-band .stat,
[data-theme="light"] .stat {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 251, 247, 0.9) 100%) !important;
  border: 1px solid rgba(15, 122, 69, 0.15) !important;
  box-shadow: 0 8px 24px rgba(11, 55, 33, 0.05), inset 0 1px 1px #ffffff !important;
  color: #0e291b !important;
}

[data-theme="light"] .stats-band .stat:hover,
[data-theme="light"] .stat:hover {
  box-shadow: 0 12px 32px rgba(11, 55, 33, 0.1), inset 0 1px 1px #ffffff !important;
  border-color: rgba(15, 122, 69, 0.35) !important;
}

[data-theme="light"] .stat b,
[data-theme="light"] .kpi-counter {
  color: #0b4d2c !important;
}

[data-theme="light"] .stat-sub {
  color: #567264 !important;
}

/* ==========================================================================
   NAVBAR CLEAN BUTTONS UNIFICATION & RESPONSIVENESS
   ========================================================================== */

/* Navbar Actions Alignment */
.land-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.land-nav-actions .btn {
  height: 38px;
  padding: 0 16px !important;
  font-size: 13px !important;
  font-weight: 700;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* Compact Theme Toggle Icon Button */
.btn-theme-icon-only {
  width: 38px;
  height: 38px;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.btn-theme-icon-only .theme-toggle-icon {
  font-size: 16px;
}

/* Compensation Plan Pill in Navbar Actions */
.land-nav-plan-pill {
  color: var(--jade) !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(46, 213, 158, 0.28);
  height: 38px;
  padding: 0 16px !important;
  border-radius: 999px;
  background: rgba(46, 213, 158, 0.08);
  transition: all 0.2s ease;
  font-size: 12.5px !important;
  white-space: nowrap;
}

.land-nav-plan-pill:hover {
  background: rgba(46, 213, 158, 0.18) !important;
  border-color: rgba(46, 213, 158, 0.5);
  transform: translateY(-1px);
}

[data-theme="light"] .land-nav-plan-pill {
  color: #0f7a45 !important;
  border-color: rgba(15, 122, 69, 0.25);
  background: rgba(15, 122, 69, 0.08);
}

[data-theme="light"] .land-nav-plan-pill:hover {
  background: rgba(15, 122, 69, 0.16) !important;
  border-color: rgba(15, 122, 69, 0.45);
}

/* Compensation Plan pill - desktop only in top bar */
.plan-pill-desktop {
  display: inline-flex;
}

.plan-pill-mobile {
  display: none;
}

.hero-logo-wrapper {
  position: relative;
}

.hero-float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(28, 39, 50, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  font-size: 11.5px;
  color: #e2e8f0;
  z-index: 10;
  pointer-events: none;
  animation: floatDrift 4s ease-in-out infinite alternate;
}

.float-chip-1 {
  top: 10%;
  right: -10px;
  animation-delay: 0s;
}

.float-chip-2 {
  bottom: 22%;
  left: -15px;
  animation-delay: 1.5s;
}

.float-chip-3 {
  bottom: 8%;
  right: 5px;
  animation-delay: 0.8s;
}

.chip-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ed59e;
  box-shadow: 0 0 8px #2ed59e;
  animation: pulseDot 1.8s infinite;
}

@keyframes floatDrift {
  0% {
    transform: translateY(0px) scale(1);
  }

  100% {
    transform: translateY(-8px) scale(1.02);
  }
}

[data-theme="light"] .hero-float-chip {
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(15, 122, 69, 0.2);
  box-shadow: 0 12px 28px rgba(11, 55, 33, 0.1);
  color: #0e291b;
}

[data-theme="light"] .hero-float-chip strong {
  color: #0b6338;
}

[data-theme="light"] .chip-pulse {
  background: #0f7a45;
  box-shadow: 0 0 8px #0f7a45;
}

@media (max-width: 768px) {
  .hero-float-chip {
    display: none !important;
  }
}

/* ==========================================================================
   IMMERSIVE LIGHT THEME COMPLETE OVERHAUL ([data-theme="light"])
   ========================================================================== */

/* 0. Global Typography & Value Contrast in Light Mode */
[data-theme="light"] .text-green,
[data-theme="light"] .glow-mint,
[data-theme="light"] .val-mint {
  color: #0b6338 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .text-gold {
  color: #b45309 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .tag-jade {
  color: #0b6338 !important;
  font-weight: 700;
}

[data-theme="light"] .tag-gold {
  color: #b45309 !important;
  font-weight: 700;
}

/* 1. Track Metrics Box in Dual-Growth Cards (Fixed dark box in light card) */
[data-theme="light"] .track-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 122, 69, 0.16) !important;
  box-shadow: 0 10px 32px rgba(11, 55, 33, 0.06), inset 0 1px 1px #ffffff !important;
}

[data-theme="light"] .track-card:hover {
  border-color: rgba(15, 122, 69, 0.38) !important;
  box-shadow: 0 16px 44px rgba(11, 55, 33, 0.12), inset 0 1px 1px #ffffff !important;
}

[data-theme="light"] .track-metrics {
  background: #f0faf4 !important;
  border: 1.5px solid rgba(15, 122, 69, 0.16) !important;
  box-shadow: inset 0 1px 2px rgba(15, 70, 42, 0.04) !important;
}

[data-theme="light"] .metric-label {
  color: #4a6656 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .metric-val {
  color: #0e291b !important;
  font-weight: 750 !important;
}

[data-theme="light"] .metric-row {
  border-bottom: 1px dashed rgba(15, 122, 69, 0.16) !important;
}

[data-theme="light"] .track-desc {
  color: #385545 !important;
}

[data-theme="light"] .track-desc strong {
  color: #0b4d2c !important;
}

/* 2. Interactive ROI Calculator Light Mode (Zero black boxes) */
[data-theme="light"] .calc-master-panel {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 122, 69, 0.18) !important;
  box-shadow: 0 16px 44px rgba(11, 55, 33, 0.07), inset 0 1px 1px #ffffff !important;
}

[data-theme="light"] .calc-nav-tabs {
  background: #eef8f2 !important;
  border: 1px solid rgba(15, 122, 69, 0.18) !important;
}

[data-theme="light"] .calc-tab-btn {
  color: #4a6656 !important;
}

[data-theme="light"] .calc-tab-btn.active {
  background: #ffffff !important;
  color: #0b4d2c !important;
  box-shadow: 0 2px 10px rgba(11, 55, 33, 0.1) !important;
}

[data-theme="light"] .calc-label {
  color: #0e291b !important;
  font-weight: 600 !important;
}

[data-theme="light"] .calc-value-pill {
  background: rgba(15, 122, 69, 0.1) !important;
  color: #0b6338 !important;
  border: 1px solid rgba(15, 122, 69, 0.25) !important;
  font-weight: 750 !important;
}

[data-theme="light"] .btn-preset {
  background: #ffffff !important;
  color: #1e3a2b !important;
  border: 1.5px solid rgba(15, 122, 69, 0.22) !important;
  box-shadow: 0 1px 4px rgba(11, 55, 33, 0.04) !important;
  font-weight: 700 !important;
}

[data-theme="light"] .btn-preset:hover,
[data-theme="light"] .btn-preset.active {
  background: #0f7a45 !important;
  color: #ffffff !important;
  border-color: #0f7a45 !important;
  box-shadow: 0 3px 10px rgba(15, 122, 69, 0.3) !important;
}

[data-theme="light"] .custom-range {
  background: #d1fae5 !important;
}

[data-theme="light"] .custom-range::-webkit-slider-thumb {
  background: linear-gradient(135deg, #0f7a45, #0b6338) !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 8px rgba(15, 122, 69, 0.45) !important;
}

[data-theme="light"] .custom-range::-moz-range-thumb {
  background: linear-gradient(135deg, #0f7a45, #0b6338) !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 8px rgba(15, 122, 69, 0.45) !important;
}

[data-theme="light"] .range-gold {
  background: #fef3c7 !important;
}

[data-theme="light"] .range-gold::-webkit-slider-thumb {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.45) !important;
}

[data-theme="light"] .range-gold::-moz-range-thumb {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  border: 2px solid #ffffff !important;
}

[data-theme="light"] .calc-range-ticks {
  color: #567264 !important;
}

[data-theme="light"] .result-card-main {
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf7 100%) !important;
  border: 1.5px solid rgba(15, 122, 69, 0.22) !important;
  box-shadow: 0 12px 36px rgba(11, 55, 33, 0.08), inset 0 1px 1px #ffffff !important;
}

[data-theme="light"] .result-tag {
  color: #0f7a45 !important;
  font-weight: 750 !important;
}

[data-theme="light"] .result-big-number {
  color: #0b6338 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .roi-badge-circle {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
  border: 1.5px solid rgba(217, 119, 6, 0.35) !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.15) !important;
}

[data-theme="light"] .roi-badge-circle .roi-pct {
  color: #92400e !important;
}

[data-theme="light"] .roi-badge-circle .roi-sub {
  color: #b45309 !important;
}

[data-theme="light"] .res-item {
  background: #ffffff !important;
  border: 1px solid rgba(15, 122, 69, 0.16) !important;
  box-shadow: 0 2px 8px rgba(11, 55, 33, 0.04) !important;
}

[data-theme="light"] .res-lbl {
  color: #4a6656 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .res-val {
  color: #0b4d2c !important;
  font-weight: 750 !important;
}

[data-theme="light"] .res-note {
  color: #567264 !important;
}

[data-theme="light"] .cycle-timeline {
  background: #f0faf4 !important;
  border: 1px solid rgba(15, 122, 69, 0.16) !important;
}

[data-theme="light"] .timeline-title {
  color: #0b4d2c !important;
  font-weight: 750 !important;
}

[data-theme="light"] .t-day {
  color: #0e291b !important;
  font-weight: 700 !important;
}

[data-theme="light"] .t-amt {
  color: #0b6338 !important;
  font-weight: 750 !important;
}

[data-theme="light"] .t-line {
  background: rgba(15, 122, 69, 0.25) !important;
}

[data-theme="light"] .t-dot {
  background: #0f7a45 !important;
  color: #ffffff !important;
}

[data-theme="light"] .t-final .t-dot {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #ffffff !important;
}

[data-theme="light"] .cap-meter-label {
  color: #4a6656 !important;
}

[data-theme="light"] .cap-meter-label span {
  color: #4a6656 !important;
}

[data-theme="light"] .cap-meter-track {
  background: #e2f4e9 !important;
  border: 1px solid rgba(15, 122, 69, 0.16) !important;
}

[data-theme="light"] .cap-meter-fill {
  background: linear-gradient(90deg, #0f7a45, #10b981) !important;
}

/* 3. Interactive Binary Tree Simulator Light Mode (Pristine Light Panels) */
[data-theme="light"] .tree-demo-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 122, 69, 0.16) !important;
  box-shadow: 0 16px 44px rgba(11, 55, 33, 0.06), inset 0 1px 1px #ffffff !important;
}

[data-theme="light"] .tree-stat-pill {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 122, 69, 0.18) !important;
  box-shadow: 0 4px 14px rgba(11, 55, 33, 0.05) !important;
  color: #0e291b !important;
}

[data-theme="light"] .tree-stat-pill.pill-gold {
  background: linear-gradient(180deg, #fffdf5, #fef9c3) !important;
  border-color: rgba(217, 119, 6, 0.32) !important;
}

[data-theme="light"] .tree-stat-pill.pill-earnings {
  background: linear-gradient(180deg, #f0fdf4, #dcfce7) !important;
  border-color: rgba(15, 122, 69, 0.35) !important;
}

[data-theme="light"] .tree-pill-label {
  color: #4a6656 !important;
}

[data-theme="light"] .tree-pill-val {
  color: #0b4d2c !important;
}

[data-theme="light"] .node-you {
  background: linear-gradient(135deg, #ffffff 0%, #f0faf4 100%) !important;
  border: 2px solid #0f7a45 !important;
  box-shadow: 0 8px 24px rgba(11, 55, 33, 0.08) !important;
}

[data-theme="light"] .node-you .node-title {
  color: #0b4d2c !important;
}

[data-theme="light"] .node-you .node-sub {
  background: rgba(15, 122, 69, 0.12) !important;
  color: #0f7a45 !important;
}

[data-theme="light"] .node-child {
  background: linear-gradient(180deg, #ffffff 0%, #f6fcf8 100%) !important;
  border: 1.5px solid rgba(15, 122, 69, 0.22) !important;
  box-shadow: 0 4px 16px rgba(11, 55, 33, 0.06) !important;
}

[data-theme="light"] .node-child .node-title {
  color: #0b4d2c !important;
}

[data-theme="light"] .node-child .node-sub {
  background: #eef8f2 !important;
  color: #0f7a45 !important;
  border: 1px solid rgba(15, 122, 69, 0.15) !important;
}

[data-theme="light"] .tree-btn-wrap .btn {
  background: #ffffff !important;
  color: #0f7a45 !important;
  border: 1.5px solid #0f7a45 !important;
  box-shadow: 0 2px 8px rgba(11, 55, 33, 0.06) !important;
}

[data-theme="light"] .tree-btn-wrap .btn:hover {
  background: #0f7a45 !important;
  color: #ffffff !important;
}

[data-theme="light"] .tree-footer-actions {
  border-top: 1px dashed rgba(15, 122, 69, 0.2) !important;
}

[data-theme="light"] .tree-footer-actions .btn {
  background: #ffffff !important;
  color: #0b4d2c !important;
  border: 1.5px solid rgba(15, 122, 69, 0.25) !important;
  box-shadow: 0 2px 8px rgba(11, 55, 33, 0.04) !important;
}

[data-theme="light"] .tree-footer-actions .btn:hover {
  background: #0f7a45 !important;
  color: #ffffff !important;
  border-color: #0f7a45 !important;
}

[data-theme="light"] .tree-info-text {
  color: #567264 !important;
}

/* 4. Live Activity Stream Bar Light Mode */
[data-theme="light"] .live-activity-bar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-top: 1px solid rgba(15, 122, 69, 0.14) !important;
  border-bottom: 1px solid rgba(15, 122, 69, 0.14) !important;
  box-shadow: 0 4px 16px rgba(11, 55, 33, 0.04) !important;
  color: #0e291b !important;
}

[data-theme="light"] .live-stream-badge {
  background: rgba(15, 122, 69, 0.1) !important;
  color: #0f7a45 !important;
  border: 1px solid rgba(15, 122, 69, 0.25) !important;
}

[data-theme="light"] .stream-msg {
  color: #0e291b !important;
}

[data-theme="light"] .stream-time {
  color: #567264 !important;
}

[data-theme="light"] .live-stream-stats {
  color: #4a6656 !important;
}

[data-theme="light"] .live-stream-stats strong {
  color: #0f7a45 !important;
}

[data-theme="light"] .hero-kpi {
  background: #ffffff;
  border-color: rgba(15, 122, 69, 0.16);
}

[data-theme="light"] .hero-kpi b {
  color: #0f7a45;
}

[data-theme="light"] .hero-live-ticker {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 122, 69, 0.16);
}

[data-theme="light"] .track-card.is-picked {
  border-color: rgba(15, 122, 69, 0.5);
  box-shadow: 0 14px 32px rgba(11, 55, 33, 0.1), 0 0 0 1px rgba(15, 122, 69, 0.22);
}

[data-theme="light"] .gateway-card.is-active,
[data-theme="light"] .fee-col.is-active {
  border-color: rgba(15, 122, 69, 0.4);
  background: rgba(15, 122, 69, 0.07);
}

[data-theme="light"] .cashout-playground {
  border-bottom-color: rgba(15, 122, 69, 0.14);
}

[data-theme="light"] .land-nav-menu a.nav-link.is-current {
  color: #0f7a45;
}

/* 5. 3 Simple Steps Light Mode */
[data-theme="light"] .step-journey-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 122, 69, 0.16) !important;
  box-shadow: 0 8px 26px rgba(11, 55, 33, 0.05), inset 0 1px 1px #ffffff !important;
}

[data-theme="light"] .step-journey-card:hover {
  border-color: rgba(15, 122, 69, 0.38) !important;
  box-shadow: 0 14px 34px rgba(11, 55, 33, 0.1), inset 0 1px 1px #ffffff !important;
}

[data-theme="light"] .step-card-num {
  color: rgba(15, 122, 69, 0.16) !important;
}

[data-theme="light"] .step-journey-card h3 {
  color: #0b4d2c !important;
}

[data-theme="light"] .step-journey-card p {
  color: #446353 !important;
}

[data-theme="light"] .step-pill {
  background: rgba(15, 122, 69, 0.09) !important;
  color: #0f7a45 !important;
  border: 1px solid rgba(15, 122, 69, 0.22) !important;
  font-weight: 700 !important;
}

/* 6. Supported Gateways & Fee Tiers Light Mode */
[data-theme="light"] .gateway-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 122, 69, 0.16) !important;
  box-shadow: 0 4px 18px rgba(11, 55, 33, 0.05), inset 0 1px 1px #ffffff !important;
}

[data-theme="light"] .gateway-card:hover {
  border-color: rgba(15, 122, 69, 0.38) !important;
  box-shadow: 0 8px 28px rgba(11, 55, 33, 0.1), inset 0 1px 1px #ffffff !important;
}

[data-theme="light"] .gw-name {
  color: #0e291b !important;
  font-weight: 750 !important;
}

[data-theme="light"] .gw-badge {
  background: rgba(15, 122, 69, 0.08) !important;
  color: #0f7a45 !important;
  border: 1px solid rgba(15, 122, 69, 0.2) !important;
  font-weight: 600 !important;
}

[data-theme="light"] .fee-tier-panel {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 122, 69, 0.16) !important;
  box-shadow: 0 6px 20px rgba(11, 55, 33, 0.05), inset 0 1px 1px #ffffff !important;
}

[data-theme="light"] .fee-range {
  color: #0e291b !important;
  font-weight: 700 !important;
}

[data-theme="light"] .fee-sub {
  color: #567264 !important;
}

/* 7. FAQ Section Light Mode */
[data-theme="light"] .faq-search-box {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 122, 69, 0.22) !important;
  box-shadow: 0 4px 14px rgba(11, 55, 33, 0.04) !important;
}

[data-theme="light"] .faq-search-box input {
  color: #0e291b !important;
}

[data-theme="light"] .faq-item {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 122, 69, 0.16) !important;
  box-shadow: 0 4px 14px rgba(11, 55, 33, 0.04), inset 0 1px 1px #ffffff !important;
}

[data-theme="light"] .faq-question {
  color: #0b4d2c !important;
}

[data-theme="light"] .faq-question span {
  color: #0b4d2c !important;
  font-weight: 700 !important;
}

[data-theme="light"] .faq-toggle-icon {
  color: #0f7a45 !important;
}

[data-theme="light"] .faq-answer p {
  color: #3d594a !important;
}

/* 8. CTA Banner & Comprehensive Footer Light Mode */
[data-theme="light"] .cta-banner-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0faf4 100%) !important;
  border: 1.5px solid rgba(15, 122, 69, 0.2) !important;
  box-shadow: 0 16px 44px rgba(11, 55, 33, 0.08), inset 0 1px 1px #ffffff !important;
}

[data-theme="light"] .site-foot {
  border-top: 1px solid rgba(15, 122, 69, 0.14) !important;
}

[data-theme="light"] .site-foot h4 {
  color: #0f7a45 !important;
}

[data-theme="light"] .site-foot a,
[data-theme="light"] .site-foot p {
  color: #567264 !important;
}

[data-theme="light"] .site-foot a:hover {
  color: #0f7a45 !important;
}

[data-theme="light"] .site-foot .copy {
  border-top-color: rgba(15, 122, 69, 0.12) !important;
}

/* ==========================================================================
   IMMERSIVE THEME ENGINE — DASHBOARD & ADMIN COMPLETE HARMONY
   Supports: Dark Slate & Electric Mint (Default) | Emerald Jade & Pearl Glass (Light)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DARK THEME SPECIFICS (Applied by default and when [data-theme="dark"])
   -------------------------------------------------------------------------- */
:root:not([data-theme="light"]) .admin-top-bar,
[data-theme="dark"] .admin-top-bar {
  background: rgba(19, 26, 34, 0.92) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

:root:not([data-theme="light"]) .admin-top-tag,
[data-theme="dark"] .admin-top-tag {
  background: rgba(46, 213, 158, 0.12) !important;
  color: #2ed59e !important;
  border: 1px solid rgba(46, 213, 158, 0.25) !important;
}

:root:not([data-theme="light"]) .admin-sec-title,
[data-theme="dark"] .admin-sec-title {
  color: #ffffff !important;
}

:root:not([data-theme="light"]) .admin-sec-sub,
[data-theme="dark"] .admin-sec-sub,
:root:not([data-theme="light"]) #lastUpdatedText,
[data-theme="dark"] #lastUpdatedText {
  color: #8e9fae !important;
}

:root:not([data-theme="light"]) .admin-ref-banner,
[data-theme="dark"] .admin-ref-banner {
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.95) 0%, rgba(22, 32, 41, 0.92) 100%) !important;
  border: 1px solid rgba(46, 213, 158, 0.25) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.38) !important;
  color: #ffffff !important;
}

:root:not([data-theme="light"]) .admin-ref-banner h3,
[data-theme="dark"] .admin-ref-banner h3 {
  color: #ffffff !important;
}

:root:not([data-theme="light"]) .admin-ref-banner p,
[data-theme="dark"] .admin-ref-banner p {
  color: #8e9fae !important;
}

:root:not([data-theme="light"]) .admin-ref-banner input,
[data-theme="dark"] .admin-ref-banner input {
  background: rgba(19, 26, 34, 0.8) !important;
  color: #2ed59e !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

:root:not([data-theme="light"]) .admin-ref-banner button,
[data-theme="dark"] .admin-ref-banner button {
  background: #2ed59e !important;
  color: #131a22 !important;
  box-shadow: 0 2px 10px rgba(46, 213, 158, 0.3) !important;
}

:root:not([data-theme="light"]) .admin-card,
[data-theme="dark"] .admin-card {
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.95) 0%, rgba(22, 32, 41, 0.92) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.38), inset 0 1px 1px rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

:root:not([data-theme="light"]) .admin-card .kpi-label,
[data-theme="dark"] .admin-card .kpi-label {
  color: #8e9fae !important;
}

:root:not([data-theme="light"]) .admin-card .kpi-val,
[data-theme="dark"] .admin-card .kpi-val {
  color: #2ed59e !important;
}

:root:not([data-theme="light"]) .admin-card .kpi-sub,
[data-theme="dark"] .admin-card .kpi-sub {
  color: #64748b !important;
}

:root:not([data-theme="light"]) .admin-card .kpi-icon,
[data-theme="dark"] .admin-card .kpi-icon {
  background: rgba(46, 213, 158, 0.12) !important;
  color: #2ed59e !important;
  border: 1px solid rgba(46, 213, 158, 0.2) !important;
}

:root:not([data-theme="light"]) .admin-card.gold .kpi-val,
[data-theme="dark"] .admin-card.gold .kpi-val {
  color: #f5a623 !important;
}

:root:not([data-theme="light"]) .admin-card.gold .kpi-icon,
[data-theme="dark"] .admin-card.gold .kpi-icon {
  background: rgba(245, 166, 35, 0.12) !important;
  color: #f5a623 !important;
  border: 1px solid rgba(245, 166, 35, 0.2) !important;
}

:root:not([data-theme="light"]) .admin-card.gold::before,
[data-theme="dark"] .admin-card.gold::before {
  background: #f5a623 !important;
}

:root:not([data-theme="light"]) .admin-card.mint::before,
[data-theme="dark"] .admin-card.mint::before {
  background: #2ed59e !important;
}

:root:not([data-theme="light"]) #cardKpiTotalCashout,
[data-theme="dark"] #cardKpiTotalCashout {
  border-color: rgba(46, 213, 158, 0.35) !important;
}

:root:not([data-theme="light"]) #cardKpiTotalCashout .kpi-label,
[data-theme="dark"] #cardKpiTotalCashout .kpi-label,
:root:not([data-theme="light"]) #kpiTotalCashout,
[data-theme="dark"] #kpiTotalCashout {
  color: #2ed59e !important;
}

:root:not([data-theme="light"]) #cardKpiTotalCashout .kpi-icon,
[data-theme="dark"] #cardKpiTotalCashout .kpi-icon {
  background: rgba(46, 213, 158, 0.15) !important;
  color: #2ed59e !important;
}

:root:not([data-theme="light"]) #cardKpiPendingCashout,
[data-theme="dark"] #cardKpiPendingCashout {
  border-color: rgba(245, 166, 35, 0.35) !important;
}

:root:not([data-theme="light"]) #cardKpiPendingCashout .kpi-label,
[data-theme="dark"] #cardKpiPendingCashout .kpi-label,
:root:not([data-theme="light"]) #kpiPendingCashout,
[data-theme="dark"] #kpiPendingCashout {
  color: #f5a623 !important;
}

:root:not([data-theme="light"]) #cardKpiPendingCashout .kpi-icon,
[data-theme="dark"] #cardKpiPendingCashout .kpi-icon {
  background: rgba(245, 166, 35, 0.15) !important;
  color: #f5a623 !important;
}

:root:not([data-theme="light"]) #cardKpiPendingLoad,
[data-theme="dark"] #cardKpiPendingLoad {
  border-color: rgba(46, 213, 158, 0.35) !important;
}

:root:not([data-theme="light"]) #cardKpiPendingLoad .kpi-label,
[data-theme="dark"] #cardKpiPendingLoad .kpi-label,
:root:not([data-theme="light"]) #kpiPendingLoad,
[data-theme="dark"] #kpiPendingLoad {
  color: #2ed59e !important;
}

:root:not([data-theme="light"]) #cardKpiPendingLoad .kpi-icon,
[data-theme="dark"] #cardKpiPendingLoad .kpi-icon {
  background: rgba(46, 213, 158, 0.15) !important;
  color: #2ed59e !important;
}

:root:not([data-theme="light"]) .wt-card,
[data-theme="dark"] .wt-card {
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.95) 0%, rgba(22, 32, 41, 0.92) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

:root:not([data-theme="light"]) .wt-card .wt-card-label,
[data-theme="dark"] .wt-card .wt-card-label {
  color: #8e9fae !important;
}

:root:not([data-theme="light"]) .wt-card .wt-card-val,
[data-theme="dark"] .wt-card .wt-card-val {
  color: #2ed59e !important;
}

:root:not([data-theme="light"]) .admin-sidebar,
[data-theme="dark"] .admin-sidebar {
  background: rgba(19, 26, 34, 0.96) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

:root:not([data-theme="light"]) .admin-sidebar-brand,
[data-theme="dark"] .admin-sidebar-brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

:root:not([data-theme="light"]) .admin-brand-title,
[data-theme="dark"] .admin-brand-title {
  color: #ffffff !important;
}

:root:not([data-theme="light"]) .admin-brand-badge,
[data-theme="dark"] .admin-brand-badge {
  color: #2ed59e !important;
}

:root:not([data-theme="light"]) .admin-nav-item,
[data-theme="dark"] .admin-nav-item {
  color: #cbd5e1 !important;
}

:root:not([data-theme="light"]) .admin-nav-item:hover,
[data-theme="dark"] .admin-nav-item:hover {
  background: rgba(46, 213, 158, 0.1) !important;
  color: #2ed59e !important;
}

:root:not([data-theme="light"]) .admin-nav-item.active,
[data-theme="dark"] .admin-nav-item.active {
  background: linear-gradient(135deg, #0f7a45 0%, #2ed59e 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(46, 213, 158, 0.25) !important;
}

:root:not([data-theme="light"]) .admin-nav-badge,
[data-theme="dark"] .admin-nav-badge {
  background: rgba(46, 213, 158, 0.15) !important;
  color: #2ed59e !important;
}

:root:not([data-theme="light"]) .admin-side-ref-box,
[data-theme="dark"] .admin-side-ref-box {
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.92) 0%, rgba(22, 32, 41, 0.88) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

:root:not([data-theme="light"]) .admin-side-ref-box input,
[data-theme="dark"] .admin-side-ref-box input {
  background: rgba(19, 26, 34, 0.8) !important;
  color: #2ed59e !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

:root:not([data-theme="light"]) .admin-side-ref-box button,
[data-theme="dark"] .admin-side-ref-box button {
  background: rgba(46, 213, 158, 0.15) !important;
  color: #2ed59e !important;
  border: 1px solid rgba(46, 213, 158, 0.3) !important;
}

:root:not([data-theme="light"]) .admin-side-logout-btn,
[data-theme="dark"] .admin-side-logout-btn {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
}

:root:not([data-theme="light"]) .user-badge,
[data-theme="dark"] .user-badge {
  background: rgba(46, 213, 158, 0.12) !important;
  border: 1px solid rgba(46, 213, 158, 0.25) !important;
}

:root:not([data-theme="light"]) .user-badge span,
[data-theme="dark"] .user-badge span {
  color: #2ed59e !important;
}

:root:not([data-theme="light"]) #togglePayoutsTopBtn,
[data-theme="dark"] #togglePayoutsTopBtn {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

:root:not([data-theme="light"]) #logoutTopBtn,
[data-theme="dark"] #logoutTopBtn {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  color: #ef4444 !important;
}

:root:not([data-theme="light"]) .admin-table td,
[data-theme="dark"] .admin-table td {
  color: #f1f5f9 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

:root:not([data-theme="light"]) .admin-mob-card,
[data-theme="dark"] .admin-mob-card {
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.96) 0%, rgba(22, 32, 41, 0.94) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

:root:not([data-theme="light"]) .admin-mob-card.pending,
[data-theme="dark"] .admin-mob-card.pending {
  border-left: 4px solid #f5a623 !important;
  background: linear-gradient(135deg, rgba(34, 46, 58, 0.98) 0%, rgba(24, 34, 43, 0.95) 100%) !important;
}

:root:not([data-theme="light"]) .admin-mob-card-head,
[data-theme="dark"] .admin-mob-card-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

:root:not([data-theme="light"]) .admin-mob-card-val,
[data-theme="dark"] .admin-mob-card-val {
  color: #f1f5f9 !important;
}

:root:not([data-theme="light"]) .admin-mob-card-actions,
[data-theme="dark"] .admin-mob-card-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

:root:not([data-theme="light"]) .tree-node.root-node,
[data-theme="dark"] .tree-node.root-node {
  background: linear-gradient(135deg, rgba(32, 44, 56, 0.98) 0%, rgba(22, 32, 41, 0.98) 100%) !important;
  border-color: #f5a623 !important;
  box-shadow: 0 8px 28px rgba(245, 166, 35, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

:root:not([data-theme="light"]) .tree-node.child-node,
[data-theme="dark"] .tree-node.child-node {
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.96) 0%, rgba(19, 26, 34, 0.96) 100%) !important;
  border-color: rgba(46, 213, 158, 0.6) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

:root:not([data-theme="light"]) .tree-node.child-node:hover,
[data-theme="dark"] .tree-node.child-node:hover {
  border-color: #2ed59e !important;
  box-shadow: 0 10px 28px rgba(46, 213, 158, 0.22) !important;
}

:root:not([data-theme="light"]) .tree-node.child-node.inactive-member,
[data-theme="dark"] .tree-node.child-node.inactive-member {
  border-color: rgba(148, 163, 184, 0.35) !important;
  background: rgba(22, 32, 41, 0.8) !important;
}

:root:not([data-theme="light"]) .tree-node.empty-slot,
[data-theme="dark"] .tree-node.empty-slot {
  background: rgba(19, 26, 34, 0.65) !important;
  border: 1.5px dashed rgba(46, 213, 158, 0.35) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  color: #ffffff !important;
}

:root:not([data-theme="light"]) .tree-node.empty-slot:hover,
[data-theme="dark"] .tree-node.empty-slot:hover {
  background: rgba(46, 213, 158, 0.1) !important;
  border-color: #2ed59e !important;
  box-shadow: 0 8px 24px rgba(46, 213, 158, 0.2) !important;
}

:root:not([data-theme="light"]) .tree-grandchild-node,
[data-theme="dark"] .tree-grandchild-node {
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.96) 0%, rgba(19, 26, 34, 0.96) 100%) !important;
  border-color: rgba(46, 213, 158, 0.5) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}

:root:not([data-theme="light"]) .tree-grandchild-node:hover,
[data-theme="dark"] .tree-grandchild-node:hover {
  border-color: #2ed59e !important;
  box-shadow: 0 8px 22px rgba(46, 213, 158, 0.22) !important;
}

:root:not([data-theme="light"]) .tree-grandchild-node.active-slot,
[data-theme="dark"] .tree-grandchild-node.active-slot {
  border-color: rgba(46, 213, 158, 0.6) !important;
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.96) 0%, rgba(19, 26, 34, 0.96) 100%) !important;
}

:root:not([data-theme="light"]) .tree-grandchild-node.inactive-slot,
[data-theme="dark"] .tree-grandchild-node.inactive-slot {
  border-color: rgba(148, 163, 184, 0.3) !important;
  background: rgba(22, 32, 41, 0.75) !important;
}

:root:not([data-theme="light"]) .tree-grandchild-node.empty-slot,
[data-theme="dark"] .tree-grandchild-node.empty-slot {
  background: rgba(19, 26, 34, 0.65) !important;
  border: 1.5px dashed rgba(46, 213, 158, 0.3) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
}

:root:not([data-theme="light"]) .tree-grandchild-node.empty-slot:hover,
[data-theme="dark"] .tree-grandchild-node.empty-slot:hover {
  background: rgba(46, 213, 158, 0.1) !important;
  border-color: #2ed59e !important;
}

:root:not([data-theme="light"]) .tree-l4-node,
[data-theme="dark"] .tree-l4-node {
  background: rgba(22, 32, 41, 0.9) !important;
  border: 1px solid rgba(46, 213, 158, 0.3) !important;
  color: #cbd5e1 !important;
}

:root:not([data-theme="light"]) .tree-node-name,
[data-theme="dark"] .tree-node-name {
  color: #ffffff !important;
}

:root:not([data-theme="light"]) .grandchild-mob,
[data-theme="dark"] .grandchild-mob {
  color: #f1f5f9 !important;
}

:root:not([data-theme="light"]) .tree-node-counts,
[data-theme="dark"] .tree-node-counts {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #8e9fae !important;
}

:root:not([data-theme="light"]) .tree-node-counts strong,
[data-theme="dark"] .tree-node-counts strong {
  color: #2ed59e !important;
}

:root:not([data-theme="light"]) .btn-drilldown-node,
[data-theme="dark"] .btn-drilldown-node {
  background: rgba(46, 213, 158, 0.12) !important;
  border: 1px solid rgba(46, 213, 158, 0.3) !important;
  color: #2ed59e !important;
}

:root:not([data-theme="light"]) .btn-drilldown-node:hover,
[data-theme="dark"] .btn-drilldown-node:hover {
  background: #2ed59e !important;
  color: #0e291b !important;
}

:root:not([data-theme="light"]) .tree-connector-main,
:root:not([data-theme="light"]) .tree-branch-top-connector,
:root:not([data-theme="light"]) .tree-subbranch-down-connector,
:root:not([data-theme="light"]) .tree-grandchild-connector,
[data-theme="dark"] .tree-connector-main,
[data-theme="dark"] .tree-branch-top-connector,
[data-theme="dark"] .tree-subbranch-down-connector,
[data-theme="dark"] .tree-grandchild-connector {
  background: #2ed59e !important;
  box-shadow: 0 0 8px rgba(46, 213, 158, 0.4) !important;
}

:root:not([data-theme="light"]) .tree-children-row::before,
:root:not([data-theme="light"]) .tree-grandchild-row::before,
[data-theme="dark"] .tree-children-row::before,
[data-theme="dark"] .tree-grandchild-row::before {
  background: #2ed59e !important;
  box-shadow: 0 0 8px rgba(46, 213, 158, 0.4) !important;
}

:root:not([data-theme="light"]) .tree-stat-card,
[data-theme="dark"] .tree-stat-card {
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.95) 0%, rgba(22, 32, 41, 0.92) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

:root:not([data-theme="light"]) .tree-stat-card .tree-stat-val,
[data-theme="dark"] .tree-stat-card .tree-stat-val {
  color: #2ed59e !important;
}

:root:not([data-theme="light"]) .tradein-monitor-card,
[data-theme="dark"] .tradein-monitor-card {
  background: linear-gradient(135deg, rgba(28, 39, 50, 0.95) 0%, rgba(22, 32, 41, 0.92) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35) !important;
}

:root:not([data-theme="light"]) .tradein-slot-card.slot-active,
[data-theme="dark"] .tradein-slot-card.slot-active {
  background: rgba(28, 39, 50, 0.9) !important;
  border: 1.5px solid rgba(46, 213, 158, 0.4) !important;
}

:root:not([data-theme="light"]) .tradein-slot-card.slot-empty,
[data-theme="dark"] .tradein-slot-card.slot-empty {
  background: rgba(22, 32, 41, 0.6) !important;
  border: 1.5px dashed rgba(255, 255, 255, 0.1) !important;
}

:root:not([data-theme="light"]) .tradein-slot-card .slot-num,
[data-theme="dark"] .tradein-slot-card .slot-num {
  color: #2ed59e !important;
}

:root:not([data-theme="light"]) .tradein-slot-card .slot-capital,
[data-theme="dark"] .tradein-slot-card .slot-capital {
  color: #ffffff !important;
}

:root:not([data-theme="light"]) .confirm-head,
[data-theme="dark"] .confirm-head {
  background: rgba(22, 32, 41, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

:root:not([data-theme="light"]) .confirm-title,
[data-theme="dark"] .confirm-title {
  color: #ffffff !important;
}

:root:not([data-theme="light"]) .confirm-details-table,
[data-theme="dark"] .confirm-details-table {
  background: rgba(22, 32, 41, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

:root:not([data-theme="light"]) .confirm-details-table td,
[data-theme="dark"] .confirm-details-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: #f1f5f9 !important;
}

:root:not([data-theme="light"]) .confirm-details-table td.val,
[data-theme="dark"] .confirm-details-table td.val {
  color: #2ed59e !important;
}

:root:not([data-theme="light"]) .confirm-actions,
[data-theme="dark"] .confirm-actions {
  background: rgba(22, 32, 41, 0.95) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

:root:not([data-theme="light"]) .receipt-dropzone,
[data-theme="dark"] .receipt-dropzone {
  background: rgba(22, 32, 41, 0.7) !important;
  border: 2px dashed rgba(46, 213, 158, 0.3) !important;
}

:root:not([data-theme="light"]) .receipt-drop-title,
[data-theme="dark"] .receipt-drop-title {
  color: #2ed59e !important;
}

:root:not([data-theme="light"]) .receipt-preview-box,
[data-theme="dark"] .receipt-preview-box {
  background: rgba(28, 39, 50, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

:root:not([data-theme="light"]) .receipt-preview-filename,
[data-theme="dark"] .receipt-preview-filename {
  color: #ffffff !important;
}

:root:not([data-theme="light"]) .receipt-view-btn,
[data-theme="dark"] .receipt-view-btn {
  background: rgba(46, 213, 158, 0.12) !important;
  color: #2ed59e !important;
  border: 1px solid rgba(46, 213, 158, 0.3) !important;
}

:root:not([data-theme="light"]) .receipt-remove-btn,
[data-theme="dark"] .receipt-remove-btn {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

:root:not([data-theme="light"]) .earnings-filter-btn,
[data-theme="dark"] .earnings-filter-btn {
  background: rgba(28, 39, 50, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #8e9fae !important;
}

:root:not([data-theme="light"]) .earnings-filter-btn.active,
[data-theme="dark"] .earnings-filter-btn.active {
  background: var(--jade) !important;
  color: #0e291b !important;
  font-weight: 800 !important;
}

:root:not([data-theme="light"]) .ctrl-tabs,
[data-theme="dark"] .ctrl-tabs {
  background: rgba(19, 26, 34, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

:root:not([data-theme="light"]) .ctrl-tab,
[data-theme="dark"] .ctrl-tab {
  color: #8e9fae !important;
}

:root:not([data-theme="light"]) .ctrl-tab.active,
[data-theme="dark"] .ctrl-tab.active {
  background: rgba(46, 213, 158, 0.16) !important;
  color: #2ed59e !important;
}

:root:not([data-theme="light"]) .ctrl-search,
[data-theme="dark"] .ctrl-search {
  background: rgba(19, 26, 34, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

:root:not([data-theme="light"]) .btn-admin-del,
[data-theme="dark"] .btn-admin-del {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

:root:not([data-theme="light"]) .admin-side-payout-btn,
[data-theme="dark"] .admin-side-payout-btn {
  background: rgba(22, 32, 41, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

:root:not([data-theme="light"]) .admin-side-action-btn,
[data-theme="dark"] .admin-side-action-btn {
  background: rgba(22, 32, 41, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
}

:root:not([data-theme="light"]) [style*="color:#0b4d2c"],
:root:not([data-theme="light"]) [style*="color: #0b4d2c"],
:root:not([data-theme="light"]) [style*="color:#0f7a45"],
:root:not([data-theme="light"]) [style*="color: #0f7a45"],
:root:not([data-theme="light"]) [style*="color:#047857"],
:root:not([data-theme="light"]) [style*="color: #047857"],
:root:not([data-theme="light"]) [style*="color:#065f46"],
:root:not([data-theme="light"]) [style*="color: #065f46"],
:root:not([data-theme="light"]) [style*="color:#1a3b2b"],
:root:not([data-theme="light"]) [style*="color: #1a3b2b"],
:root:not([data-theme="light"]) [style*="color:#0e291b"],
:root:not([data-theme="light"]) [style*="color: #0e291b"],
:root:not([data-theme="light"]) [style*="color:#2d5540"],
:root:not([data-theme="light"]) [style*="color: #2d5540"],
[data-theme="dark"] [style*="color:#0b4d2c"],
[data-theme="dark"] [style*="color: #0b4d2c"],
[data-theme="dark"] [style*="color:#0f7a45"],
[data-theme="dark"] [style*="color: #0f7a45"],
[data-theme="dark"] [style*="color:#047857"],
[data-theme="dark"] [style*="color: #047857"],
[data-theme="dark"] [style*="color:#065f46"],
[data-theme="dark"] [style*="color: #065f46"],
[data-theme="dark"] [style*="color:#1a3b2b"],
[data-theme="dark"] [style*="color: #1a3b2b"],
[data-theme="dark"] [style*="color:#0e291b"],
[data-theme="dark"] [style*="color: #0e291b"],
[data-theme="dark"] [style*="color:#2d5540"],
[data-theme="dark"] [style*="color: #2d5540"] {
  color: #2ed59e !important;
}

:root:not([data-theme="light"]) [style*="color:#0369a1"],
:root:not([data-theme="light"]) [style*="color: #0369a1"],
[data-theme="dark"] [style*="color:#0369a1"],
[data-theme="dark"] [style*="color: #0369a1"] {
  color: #38bdf8 !important;
}

:root:not([data-theme="light"]) [style*="color:#854d0e"],
:root:not([data-theme="light"]) [style*="color: #854d0e"],
:root:not([data-theme="light"]) [style*="color:#92400e"],
:root:not([data-theme="light"]) [style*="color: #92400e"],
:root:not([data-theme="light"]) [style*="color:#b45309"],
:root:not([data-theme="light"]) [style*="color: #b45309"],
[data-theme="dark"] [style*="color:#854d0e"],
[data-theme="dark"] [style*="color: #854d0e"],
[data-theme="dark"] [style*="color:#92400e"],
[data-theme="dark"] [style*="color: #92400e"],
[data-theme="dark"] [style*="color:#b45309"],
[data-theme="dark"] [style*="color: #b45309"] {
  color: #fbbf24 !important;
}

:root:not([data-theme="light"]) [style*="color:#991b1b"],
:root:not([data-theme="light"]) [style*="color: #991b1b"],
:root:not([data-theme="light"]) [style*="color:#b91c1c"],
:root:not([data-theme="light"]) [style*="color: #b91c1c"],
[data-theme="dark"] [style*="color:#991b1b"],
[data-theme="dark"] [style*="color: #991b1b"],
[data-theme="dark"] [style*="color:#b91c1c"],
[data-theme="dark"] [style*="color: #b91c1c"] {
  color: #f87171 !important;
}

:root:not([data-theme="light"]) [style*="background:#f9fcf9"],
:root:not([data-theme="light"]) [style*="background: #f9fcf9"],
:root:not([data-theme="light"]) [style*="background:#f8faf8"],
:root:not([data-theme="light"]) [style*="background: #f8faf8"],
:root:not([data-theme="light"]) [style*="background:#fafafa"],
:root:not([data-theme="light"]) [style*="background: #fafafa"],
:root:not([data-theme="light"]) [style*="background:#f3f4f6"],
:root:not([data-theme="light"]) [style*="background: #f3f4f6"],
[data-theme="dark"] [style*="background:#f9fcf9"],
[data-theme="dark"] [style*="background: #f9fcf9"],
[data-theme="dark"] [style*="background:#f8faf8"],
[data-theme="dark"] [style*="background: #f8faf8"],
[data-theme="dark"] [style*="background:#fafafa"],
[data-theme="dark"] [style*="background: #fafafa"],
[data-theme="dark"] [style*="background:#f3f4f6"],
[data-theme="dark"] [style*="background: #f3f4f6"] {
  background: rgba(22, 32, 41, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

:root:not([data-theme="light"]) [style*="background:#ecfdf5"],
:root:not([data-theme="light"]) [style*="background: #ecfdf5"],
:root:not([data-theme="light"]) [style*="background:#e8f9f0"],
:root:not([data-theme="light"]) [style*="background: #e8f9f0"],
:root:not([data-theme="light"]) [style*="background:#eefbf3"],
:root:not([data-theme="light"]) [style*="background: #eefbf3"],
:root:not([data-theme="light"]) [style*="background:#f0fbf5"],
:root:not([data-theme="light"]) [style*="background: #f0fbf5"],
[data-theme="dark"] [style*="background:#ecfdf5"],
[data-theme="dark"] [style*="background: #ecfdf5"],
[data-theme="dark"] [style*="background:#e8f9f0"],
[data-theme="dark"] [style*="background: #e8f9f0"],
[data-theme="dark"] [style*="background:#eefbf3"],
[data-theme="dark"] [style*="background: #eefbf3"],
[data-theme="dark"] [style*="background:#f0fbf5"],
[data-theme="dark"] [style*="background: #f0fbf5"] {
  background: rgba(46, 213, 158, 0.12) !important;
  border-color: rgba(46, 213, 158, 0.28) !important;
}

:root:not([data-theme="light"]) [style*="background:#fef9e7"],
:root:not([data-theme="light"]) [style*="background: #fef9e7"],
:root:not([data-theme="light"]) [style*="background:#fef3c7"],
:root:not([data-theme="light"]) [style*="background: #fef3c7"],
:root:not([data-theme="light"]) [style*="background:#fffbeb"],
:root:not([data-theme="light"]) [style*="background: #fffbeb"],
[data-theme="dark"] [style*="background:#fef9e7"],
[data-theme="dark"] [style*="background: #fef9e7"],
[data-theme="dark"] [style*="background:#fef3c7"],
[data-theme="dark"] [style*="background: #fef3c7"],
[data-theme="dark"] [style*="background:#fffbeb"],
[data-theme="dark"] [style*="background: #fffbeb"] {
  background: rgba(245, 166, 35, 0.14) !important;
  border-color: rgba(245, 166, 35, 0.3) !important;
}

:root:not([data-theme="light"]) [style*="background:#fef2f2"],
:root:not([data-theme="light"]) [style*="background: #fef2f2"],
:root:not([data-theme="light"]) [style*="background:#fee2e2"],
:root:not([data-theme="light"]) [style*="background: #fee2e2"],
[data-theme="dark"] [style*="background:#fef2f2"],
[data-theme="dark"] [style*="background: #fef2f2"],
[data-theme="dark"] [style*="background:#fee2e2"],
[data-theme="dark"] [style*="background: #fee2e2"] {
  background: rgba(239, 68, 68, 0.14) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

:root:not([data-theme="light"]) [style*="background:#e0f2fe"],
:root:not([data-theme="light"]) [style*="background: #e0f2fe"],
:root:not([data-theme="light"]) [style*="background:#eff6ff"],
:root:not([data-theme="light"]) [style*="background: #eff6ff"],
[data-theme="dark"] [style*="background:#e0f2fe"],
[data-theme="dark"] [style*="background: #e0f2fe"],
[data-theme="dark"] [style*="background:#eff6ff"],
[data-theme="dark"] [style*="background: #eff6ff"] {
  background: rgba(14, 165, 233, 0.15) !important;
  border-color: rgba(14, 165, 233, 0.3) !important;
}

:root:not([data-theme="light"]) [style*="background:#eee"],
:root:not([data-theme="light"]) [style*="background: #eee"],
[data-theme="dark"] [style*="background:#eee"],
[data-theme="dark"] [style*="background: #eee"] {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}


/* --------------------------------------------------------------------------
   2. LIGHT THEME COMPLETE OVERRIDES ([data-theme="light"])
   -------------------------------------------------------------------------- */

/* --- Admin Top Bar & Header --- */
[data-theme="light"] .admin-top-bar {
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(15, 122, 69, 0.14) !important;
  box-shadow: 0 4px 20px rgba(11, 55, 33, 0.04) !important;
}

[data-theme="light"] .admin-top-tag {
  background: rgba(15, 122, 69, 0.1) !important;
  color: #0b4d2c !important;
  border: 1px solid rgba(15, 122, 69, 0.2) !important;
}

[data-theme="light"] .admin-sec-title {
  color: #0b3d24 !important;
}

[data-theme="light"] .admin-sec-sub,
[data-theme="light"] #lastUpdatedText {
  color: #446353 !important;
}

/* --- Admin Sidebar --- */
[data-theme="light"] .admin-sidebar {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border-right: 1px solid rgba(15, 122, 69, 0.14) !important;
  box-shadow: 4px 0 24px rgba(11, 55, 33, 0.05) !important;
}

[data-theme="light"] .admin-sidebar-brand {
  border-bottom: 1px solid rgba(15, 122, 69, 0.1) !important;
}

[data-theme="light"] .admin-brand-title {
  color: #0b4d2c !important;
}

[data-theme="light"] .admin-brand-badge {
  color: #0f7a45 !important;
}

[data-theme="light"] .admin-nav-item {
  color: #2d5540 !important;
}

[data-theme="light"] .admin-nav-item:hover {
  background: rgba(15, 122, 69, 0.06) !important;
  color: #0b4d2c !important;
}

[data-theme="light"] .admin-nav-item.active {
  background: linear-gradient(135deg, #0b4d2c 0%, #0f7a45 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(15, 122, 69, 0.25) !important;
}

[data-theme="light"] .admin-nav-badge {
  background: rgba(15, 122, 69, 0.1) !important;
  color: #0f7a45 !important;
}

[data-theme="light"] .admin-side-ref-box {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 122, 69, 0.14) !important;
  box-shadow: 0 2px 8px rgba(11, 55, 33, 0.04) !important;
}

[data-theme="light"] .admin-side-ref-box input {
  background: #f4fbf7 !important;
  color: #0e291b !important;
  border: 1px solid rgba(15, 122, 69, 0.2) !important;
}

[data-theme="light"] .admin-side-ref-box button {
  background: rgba(15, 122, 69, 0.08) !important;
  color: #0f7a45 !important;
  border: 1px solid rgba(15, 122, 69, 0.2) !important;
}

[data-theme="light"] .admin-side-logout-btn,
[data-theme="light"] #logoutTopBtn,
[data-theme="light"] .dash-logout-btn {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
}

[data-theme="light"] .user-badge {
  background: rgba(15, 122, 69, 0.08) !important;
  border: 1px solid rgba(15, 122, 69, 0.18) !important;
}

[data-theme="light"] .user-badge span {
  color: #0b4d2c !important;
}

[data-theme="light"] #systemStatusDot {
  background: #0f7a45 !important;
  box-shadow: 0 0 8px rgba(15, 122, 69, 0.5) !important;
}

[data-theme="light"] #togglePayoutsTopBtn {
  background: #ffffff !important;
  border: 1px solid rgba(15, 122, 69, 0.2) !important;
  color: #0b4d2c !important;
}

/* --- Admin Master Referral Banner --- */
[data-theme="light"] .admin-ref-banner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 251, 247, 0.94) 100%) !important;
  border: 1.5px solid rgba(15, 122, 69, 0.18) !important;
  box-shadow: 0 6px 20px rgba(11, 55, 33, 0.05) !important;
  color: #0e291b !important;
}

[data-theme="light"] .admin-ref-banner h3 {
  color: #0b3d24 !important;
}

[data-theme="light"] .admin-ref-banner p {
  color: #446353 !important;
}

[data-theme="light"] .admin-ref-banner input {
  background: #ffffff !important;
  color: #0e291b !important;
  border: 1px solid rgba(15, 122, 69, 0.22) !important;
}

[data-theme="light"] .admin-ref-banner button {
  background: #0f7a45 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(15, 122, 69, 0.2) !important;
}

/* --- All Admin Cards & KPI Surfaces --- */
[data-theme="light"] .admin-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 251, 247, 0.94) 100%) !important;
  border: 1.5px solid rgba(15, 122, 69, 0.14) !important;
  box-shadow: 0 8px 30px rgba(11, 55, 33, 0.06), inset 0 1px 1px #ffffff !important;
  color: #0e291b !important;
}

[data-theme="light"] .admin-card:hover {
  box-shadow: 0 14px 38px rgba(11, 55, 33, 0.11), inset 0 1px 1px #ffffff !important;
  border-color: rgba(15, 122, 69, 0.35) !important;
}

[data-theme="light"] .admin-card .kpi-label {
  color: #446353 !important;
}

[data-theme="light"] .admin-card .kpi-val {
  color: #0b4d2c !important;
}

[data-theme="light"] .admin-card .kpi-sub {
  color: #567264 !important;
}

[data-theme="light"] .admin-card .kpi-icon {
  background: rgba(15, 122, 69, 0.08) !important;
  color: #0f7a45 !important;
  border: 1px solid rgba(15, 122, 69, 0.15) !important;
}

[data-theme="light"] .admin-card.gold .kpi-val {
  color: #d97706 !important;
}

[data-theme="light"] .admin-card.gold .kpi-icon {
  background: rgba(217, 119, 6, 0.08) !important;
  color: #d97706 !important;
  border: 1px solid rgba(217, 119, 6, 0.15) !important;
}

[data-theme="light"] .admin-card.gold::before {
  background: #d97706 !important;
}

[data-theme="light"] .admin-card.mint::before {
  background: #10b981 !important;
}

[data-theme="light"] #cardKpiTotalCashout {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 122, 69, 0.3) !important;
}

[data-theme="light"] #cardKpiTotalCashout .kpi-label,
[data-theme="light"] #kpiTotalCashout {
  color: #0f7a45 !important;
}

[data-theme="light"] #cardKpiTotalCashout .kpi-icon {
  background: #e8f9f0 !important;
  color: #0f7a45 !important;
}

[data-theme="light"] #cardKpiPendingCashout {
  background: #ffffff !important;
  border: 1.5px solid #f59e0b !important;
}

[data-theme="light"] #cardKpiPendingCashout .kpi-label {
  color: #b45309 !important;
}

[data-theme="light"] #kpiPendingCashout {
  color: #d97706 !important;
}

[data-theme="light"] #cardKpiPendingCashout .kpi-icon {
  background: #fef3c7 !important;
  color: #d97706 !important;
}

[data-theme="light"] #cardKpiPendingLoad {
  background: #ffffff !important;
  border: 1.5px solid #10b981 !important;
}

[data-theme="light"] #cardKpiPendingLoad .kpi-label,
[data-theme="light"] #kpiPendingLoad {
  color: #0b6338 !important;
}

[data-theme="light"] #cardKpiPendingLoad .kpi-icon {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #0b6338 !important;
}

/* --- System Wallet Totals Bar --- */
[data-theme="light"] .wt-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 122, 69, 0.14) !important;
  box-shadow: 0 4px 16px rgba(11, 55, 33, 0.04) !important;
  color: #0e291b !important;
}

[data-theme="light"] .wt-card .wt-card-label {
  color: #446353 !important;
}

[data-theme="light"] .wt-card .wt-card-val {
  color: #0b4d2c !important;
}

/* --- Dashboard Specific Light Overrides --- */
[data-theme="light"] .dash-sidebar {
  background: rgba(255, 255, 255, 0.88) !important;
  border-right: 1px solid rgba(15, 122, 69, 0.12) !important;
  box-shadow: 4px 0 24px rgba(11, 55, 33, 0.05) !important;
}

[data-theme="light"] .dash-top-bar {
  background: rgba(255, 255, 255, 0.88) !important;
  border-bottom: 1px solid rgba(15, 122, 69, 0.12) !important;
  box-shadow: 0 4px 20px rgba(11, 55, 33, 0.04) !important;
}

[data-theme="light"] .dash-top-tag {
  background: rgba(15, 122, 69, 0.1) !important;
  color: #0b4d2c !important;
  border: 1px solid rgba(15, 122, 69, 0.2) !important;
}

[data-theme="light"] .side-nav-card {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(15, 122, 69, 0.12) !important;
  box-shadow: 0 4px 16px rgba(11, 55, 33, 0.05) !important;
}

[data-theme="light"] .side-nav-body {
  background: transparent !important;
}

[data-theme="light"] .side-nav-item {
  color: #2d5540 !important;
}

[data-theme="light"] .side-nav-item:hover {
  background: rgba(15, 122, 69, 0.06) !important;
  color: #0b4d2c !important;
}

[data-theme="light"] .side-nav-item.active {
  background: linear-gradient(135deg, #0b4d2c 0%, #0f7a45 100%) !important;
  color: #ffffff !important;
}

[data-theme="light"] .side-nav-btn {
  color: #0e291b !important;
}

[data-theme="light"] .side-sub-btn {
  color: #2e4a3c !important;
}

[data-theme="light"] .side-nav-btn:hover,
[data-theme="light"] .side-sub-btn:hover {
  background: rgba(15, 122, 69, 0.08) !important;
  color: #0b4d2c !important;
}

[data-theme="light"] .side-info-card {
  background: #f4fbf7 !important;
  border: 1px solid rgba(15, 122, 69, 0.22) !important;
  color: #1e3a2b !important;
}

[data-theme="light"] .side-info-card p {
  color: #1e3a2b !important;
}

[data-theme="light"] .side-info-card strong {
  color: #0b4d2c !important;
}

[data-theme="light"] .side-ref-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(15, 122, 69, 0.15) !important;
}

[data-theme="light"] .side-ref-card input {
  background: #f4fbf7 !important;
  color: #0e291b !important;
  border: 1px solid rgba(15, 122, 69, 0.2) !important;
}

[data-theme="light"] .m-card-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 251, 247, 0.94) 100%) !important;
  border: 1.5px solid rgba(15, 122, 69, 0.15) !important;
  box-shadow: 0 8px 30px rgba(11, 55, 33, 0.06), inset 0 1px 1px #ffffff !important;
  color: #0e291b !important;
}

[data-theme="light"] .m-card-hero .m-label {
  color: #446353 !important;
}

[data-theme="light"] .m-card-hero .m-hero-val {
  color: #0b4d2c !important;
}

[data-theme="light"] .m-card-hero .m-sub {
  color: #567264 !important;
}

[data-theme="light"] .m-card-std {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 251, 247, 0.94) 100%) !important;
  border: 1.5px solid rgba(15, 122, 69, 0.14) !important;
  box-shadow: 0 8px 24px rgba(11, 55, 33, 0.05), inset 0 1px 1px #ffffff !important;
  color: #0e291b !important;
}

[data-theme="light"] .m-card-std .m-label {
  color: #446353 !important;
}

[data-theme="light"] .m-card-std .m-val {
  color: #0b4d2c !important;
}

[data-theme="light"] .m-card-std .m-sub {
  color: #567264 !important;
}

[data-theme="light"] .cap-val-display {
  color: #0b4d2c !important;
}

[data-theme="light"] .cap-main-label {
  color: #446353 !important;
}

[data-theme="light"] .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.94) !important;
  border-top: 1px solid rgba(15, 122, 69, 0.12) !important;
  box-shadow: 0 -4px 20px rgba(11, 55, 33, 0.06) !important;
}

[data-theme="light"] .bnav-item {
  color: #567264 !important;
}

[data-theme="light"] .bnav-item.active {
  color: #0f7a45 !important;
}

[data-theme="light"] #activationBox,
[data-theme="light"] #renewBox,
[data-theme="light"] #sellerDeskPanel {
  background: #ffffff !important;
  color: #0e291b !important;
}

[data-theme="light"] .binary-cap-card,
[data-theme="light"] .trading-chart-card,
[data-theme="light"] .calc-master-panel,
[data-theme="light"] .tree-visual-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 251, 247, 0.94) 100%) !important;
  border: 1.5px solid rgba(15, 122, 69, 0.14) !important;
  color: #0e291b !important;
}

/* --- Tables, Modals, Forms in Light Theme --- */
[data-theme="light"] .admin-table-wrap,
[data-theme="light"] .table-wrap,
[data-theme="light"] .admin-table-panel,
[data-theme="light"] table {
  background: #ffffff !important;
  color: #0e291b !important;
  border-color: rgba(15, 122, 69, 0.15) !important;
}

[data-theme="light"] .admin-table thead,
[data-theme="light"] table thead,
[data-theme="light"] th {
  background: #f4faf6 !important;
  color: #0b4d2c !important;
  border-bottom: 1.5px solid rgba(15, 122, 69, 0.15) !important;
  font-weight: 750 !important;
}

[data-theme="light"] td {
  background: #ffffff !important;
  color: #0e291b !important;
  border-bottom: 1px solid rgba(15, 122, 69, 0.08) !important;
}

[data-theme="light"] tr:hover td {
  background: #f0fbf5 !important;
}

/* Light Theme Badges & Tags Overrides */
[data-theme="light"] .badge-tag,
[data-theme="light"] .pill,
[data-theme="light"] .m-pill-badge {
  background: rgba(15, 122, 69, 0.08) !important;
  color: #0b4d2c !important;
  border: 1px solid rgba(15, 122, 69, 0.2) !important;
  box-shadow: none !important;
}

[data-theme="light"] .tag-welcome,
[data-theme="light"] .badge-tag.tag-welcome {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
  font-weight: 800 !important;
}

[data-theme="light"] .tag-approved,
[data-theme="light"] .tag-available,
[data-theme="light"] .tag-active,
[data-theme="light"] .badge-tag.tag-approved,
[data-theme="light"] .badge-tag.tag-available {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
  font-weight: 750 !important;
}

[data-theme="light"] .tag-expired,
[data-theme="light"] .tag-rejected,
[data-theme="light"] .tag-used,
[data-theme="light"] .badge-tag.tag-expired,
[data-theme="light"] .badge-tag.tag-rejected {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fca5a5 !important;
  font-weight: 750 !important;
}

[data-theme="light"] .tag-pending,
[data-theme="light"] .tag-assigned,
[data-theme="light"] .badge-tag.tag-pending {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
  font-weight: 750 !important;
}

[data-theme="light"] #codePageSizeSelect,
[data-theme="light"] #memberPageSizeSelect {
  background: #ffffff !important;
  color: #0e291b !important;
  border: 1px solid rgba(15, 122, 69, 0.25) !important;
}

[data-theme="light"] .ctrl-search {
  background: #ffffff !important;
  color: #0e291b !important;
  border: 1px solid rgba(15, 122, 69, 0.2) !important;
}

[data-theme="light"] .ctrl-tab {
  color: #567264 !important;
  background: transparent !important;
}

[data-theme="light"] .ctrl-tab.active {
  color: #0f7a45 !important;
  background: #ffffff !important;
  border-bottom: 2px solid #0f7a45 !important;
}

/* ==========================================================================
   USER DASHBOARD MODALS — 100% IMMERSIVE LIGHT THEME SUITE
   ========================================================================== */

/* 1. Modal Container & Sheet */
[data-theme="light"] .plan-modal-sheet,
[data-theme="light"] .modal-confirm-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 122, 69, 0.18) !important;
  box-shadow: 0 24px 64px rgba(11, 55, 33, 0.16), 0 4px 16px rgba(11, 55, 33, 0.08) !important;
  color: #0e291b !important;
}

[data-theme="light"] .plan-modal-backdrop {
  background: rgba(14, 41, 27, 0.45) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

[data-theme="light"] .plan-modal-head {
  border-bottom: 1px solid rgba(15, 122, 69, 0.12) !important;
  padding: 18px 22px 14px !important;
}

[data-theme="light"] .plan-modal-head h2 {
  color: #0b3d24 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .plan-modal-head .kicker {
  color: #0f7a45 !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

[data-theme="light"] .plan-close {
  background: rgba(15, 122, 69, 0.08) !important;
  color: #0b4d2c !important;
  border: 1px solid rgba(15, 122, 69, 0.2) !important;
  font-weight: 700 !important;
}

[data-theme="light"] .plan-close:hover {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
}

/* 2. Modal Body, Typography & Paragraphs */
[data-theme="light"] .plan-modal-body {
  color: #0e291b !important;
}

[data-theme="light"] .plan-modal-body h3,
[data-theme="light"] .plan-modal-body h4 {
  color: #0b3d24 !important;
}

[data-theme="light"] .plan-modal-body p,
[data-theme="light"] .plan-modal-body li {
  color: #2e4a3c !important;
}

[data-theme="light"] .plan-modal-body .muted,
[data-theme="light"] .plan-modal-body .tiny.muted,
[data-theme="light"] .plan-modal-body label.tiny.muted,
[data-theme="light"] .plan-modal-body label {
  color: #446353 !important;
  font-weight: 700 !important;
}

/* 3. Official Payment Channels (MOP) Box */
.modal-mop-box,
#officialMopBox {
  background: #162029;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
}

.mop-box-title {
  font-size: 13px;
  color: #2ed59e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
}

.mop-box-sub {
  font-size: 11px;
  color: #8e9fae;
}

.mop-field-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  color: #8e9fae;
  margin-bottom: 2px;
}

.mop-field-val {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.mop-acc-num {
  font-size: 14px;
  font-weight: 800;
  color: #2ed59e;
  background: rgba(46, 213, 158, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(46, 213, 158, 0.25);
}

.mop-instructions {
  font-size: 11.5px;
  line-height: 1.45;
  color: #cbd5e1;
  margin-top: 4px;
}

/* Light Theme MOP Styles */
[data-theme="light"] .modal-mop-box,
[data-theme="light"] #officialMopBox {
  background: #f0faf4 !important;
  border: 1.5px solid rgba(15, 122, 69, 0.2) !important;
  border-radius: 14px !important;
}

[data-theme="light"] .mop-box-title,
[data-theme="light"] #officialMopBox strong {
  color: #0b4d2c !important;
}

[data-theme="light"] .mop-box-sub,
[data-theme="light"] #officialMopBox .tiny.muted {
  color: #567264 !important;
}

[data-theme="light"] .mop-field-label {
  color: #567264 !important;
}

[data-theme="light"] .mop-field-val,
[data-theme="light"] #mopActiveAccountName {
  color: #0b3d24 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .mop-acc-num,
[data-theme="light"] #mopActiveAccountNumber {
  color: #0f7a45 !important;
  background: #eaf7ef !important;
  border: 1px solid rgba(15, 122, 69, 0.25) !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  font-weight: 800 !important;
}

[data-theme="light"] .mop-instructions,
[data-theme="light"] #mopActiveInstructions {
  color: #446353 !important;
}

/* Inner MOP Display Card */
[data-theme="light"] .mop-channel-content-card,
[data-theme="light"] #mopChannelContent,
[data-theme="light"] #mopActiveInstructionsBox {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 122, 69, 0.15) !important;
  box-shadow: 0 4px 16px rgba(11, 55, 33, 0.05) !important;
  border-radius: 12px !important;
}

[data-theme="light"] #btnCopyMopName,
[data-theme="light"] #btnCopyMopNumber,
[data-theme="light"] #btnZoomActiveMopQr {
  background: rgba(15, 122, 69, 0.08) !important;
  color: #0f7a45 !important;
  border: 1px solid rgba(15, 122, 69, 0.22) !important;
  font-weight: 700 !important;
}

[data-theme="light"] #btnCopyLoadWalletAccNum:hover,
[data-theme="light"] #btnCopyMopName:hover,
[data-theme="light"] #btnCopyMopNumber:hover {
  background: #0f7a45 !important;
  color: #ffffff !important;
}

/* Code Seller Vault Inventory Desk Items */
.seller-code-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: #17232e !important;
  padding: 8px 12px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(46, 213, 158, 0.25) !important;
  transition: all 0.15s ease !important;
}

.seller-code-item:hover {
  border-color: rgba(46, 213, 158, 0.5) !important;
  background: #1c2b38 !important;
}

.seller-code-val {
  font-size: 13px !important;
  font-weight: 750 !important;
  color: #2ed59e !important;
  letter-spacing: 0.04em !important;
}

.btn-seller-copy {
  padding: 3px 10px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #cbd5e1 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 6px !important;
}

.btn-seller-copy:hover {
  background: #2ed59e !important;
  color: #131a22 !important;
  border-color: #2ed59e !important;
}

/* Light Theme Code Seller Items */
[data-theme="light"] .seller-code-item {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 122, 69, 0.2) !important;
  box-shadow: 0 2px 8px rgba(11, 55, 33, 0.04) !important;
}

[data-theme="light"] .seller-code-item:hover {
  border-color: #0f7a45 !important;
  background: #f8fdf9 !important;
  box-shadow: 0 4px 12px rgba(11, 55, 33, 0.08) !important;
}

[data-theme="light"] .seller-code-val {
  color: #0b4d2c !important;
}

[data-theme="light"] .btn-seller-copy {
  background: #eaf7ef !important;
  color: #0f7a45 !important;
  border-color: rgba(15, 122, 69, 0.25) !important;
}

[data-theme="light"] .btn-seller-copy:hover {
  background: #0f7a45 !important;
  color: #ffffff !important;
}


  background: #0f7a45 !important;
  color: #ffffff !important;
  border-color: #0f7a45 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(15, 122, 69, 0.2) !important;
}

/* 5. Inputs, Selects & Form Controls */
[data-theme="light"] .plan-modal-body input.in,
[data-theme="light"] .plan-modal-body select.in,
[data-theme="light"] .plan-modal-body textarea.in {
  background: #ffffff !important;
  color: #0e291b !important;
  border: 1.5px solid rgba(15, 122, 69, 0.25) !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
}

[data-theme="light"] .plan-modal-body input.in::placeholder {
  color: #8da496 !important;
}

[data-theme="light"] .plan-modal-body input.in:focus,
[data-theme="light"] .plan-modal-body select.in:focus {
  border-color: #0f7a45 !important;
  box-shadow: 0 0 0 3px rgba(15, 122, 69, 0.12) !important;
  background: #ffffff !important;
}



/* 6. Receipt Screenshot Dropzone in Light Theme */
[data-theme="light"] .receipt-dropzone {
  background: #f8fdf9 !important;
  border: 2px dashed rgba(15, 122, 69, 0.35) !important;
  border-radius: 14px !important;
  padding: 20px 16px !important;
  text-align: center !important;
  transition: all 0.2s ease !important;
}

[data-theme="light"] .receipt-dropzone:hover,
[data-theme="light"] .receipt-dropzone.dragover {
  background: #effaf3 !important;
  border-color: #0f7a45 !important;
  transform: translateY(-1px) !important;
}

[data-theme="light"] .receipt-drop-title {
  color: #0b4d2c !important;
  font-weight: 800 !important;
  font-size: 13.5px !important;
  margin: 4px 0 !important;
}

[data-theme="light"] .receipt-drop-hint {
  color: #567264 !important;
  font-size: 11.5px !important;
}

[data-theme="light"] .receipt-drop-icon {
  color: #0f7a45 !important;
}

[data-theme="light"] .receipt-preview-box {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 122, 69, 0.2) !important;
  box-shadow: 0 4px 16px rgba(11, 55, 33, 0.06) !important;
  border-radius: 12px !important;
}

[data-theme="light"] #tradeinReceiptFileName {
  color: #0b4d2c !important;
  font-weight: 800 !important;
}

/* 7. Modal Inner Cards & Panels */
[data-theme="light"] .plan-modal-body .panel,
[data-theme="light"] .plan-modal-body .card,
[data-theme="light"] #payoutAccountCard,
[data-theme="light"] .tradein-slots-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 122, 69, 0.14) !important;
  box-shadow: 0 4px 16px rgba(11, 55, 33, 0.04) !important;
  color: #0e291b !important;
}

[data-theme="light"] .tradein-slots-header h4 {
  color: #0b4d2c !important;
}

[data-theme="light"] .slots-pill-badge {
  background: #eaf7ef !important;
  color: #0f7a45 !important;
  border: 1px solid rgba(15, 122, 69, 0.25) !important;
  font-weight: 750 !important;
}

[data-theme="light"] .payout-method-tile {
  background: #f4fbf7 !important;
  border: 1.5px solid rgba(15, 122, 69, 0.2) !important;
  color: #0e291b !important;
}

[data-theme="light"] .payout-method-tile.active {
  background: #eaf7ef !important;
  border-color: #0f7a45 !important;
  box-shadow: 0 0 0 2px rgba(15, 122, 69, 0.2) !important;
}

/* 8. Modal Tables (Referrals, Code Vault, Audit History) */
[data-theme="light"] .plan-modal-body table th {
  background: #f0faf3 !important;
  color: #0b4d2c !important;
  border-bottom: 1.5px solid rgba(15, 122, 69, 0.15) !important;
  font-weight: 750 !important;
}

[data-theme="light"] .plan-modal-body table td {
  background: #ffffff !important;
  color: #0e291b !important;
  border-bottom: 1px solid rgba(15, 122, 69, 0.08) !important;
}

[data-theme="light"] .plan-modal-body table tr:hover td {
  background: #f4fbf7 !important;
}

/* Light Theme: Withdrawal & Audit Cards */
[data-theme="light"] .wd-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 122, 69, 0.16) !important;
  box-shadow: 0 4px 16px rgba(11, 55, 33, 0.05) !important;
}

[data-theme="light"] .wd-card.theme-binary {
  border-top: 4px solid #0f7a45 !important;
  background: linear-gradient(180deg, #f4fbf7 0%, #ffffff 42%) !important;
}

[data-theme="light"] .wd-card.theme-cashback {
  border-top: 4px solid #f59e0b !important;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 42%) !important;
}

[data-theme="light"] .wd-card.theme-ref {
  border-top: 4px solid #d97706 !important;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 42%) !important;
}

[data-theme="light"] .wd-card.theme-cycle {
  border-top: 4px solid #10b981 !important;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 42%) !important;
}

[data-theme="light"] .wd-card-bal-box {
  background: #f4fbf7 !important;
  border: 1px solid rgba(15, 122, 69, 0.14) !important;
}

[data-theme="light"] .wd-card-bal {
  color: #0b4d2c !important;
}

[data-theme="light"] .earning-sum-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 122, 69, 0.16) !important;
  box-shadow: 0 2px 10px rgba(11, 55, 33, 0.04) !important;
}

[data-theme="light"] .earning-sum-card .sum-val {
  color: #0b4d2c !important;
}

[data-theme="light"] .earning-sum-card .sum-lbl {
  color: #446353 !important;
}

[data-theme="light"] .tradein-slots-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 122, 69, 0.2) !important;
}

/* Light Theme: Tree & Admin Mob Card Overrides */
[data-theme="light"] .admin-mob-card {
  background: #ffffff !important;
  border-color: rgba(15, 122, 69, 0.18) !important;
  box-shadow: 0 2px 10px rgba(15, 70, 42, 0.05) !important;
  color: #0e291b !important;
}

[data-theme="light"] .admin-mob-card.pending {
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%) !important;
}

[data-theme="light"] .admin-mob-card-head {
  border-bottom: 1px solid rgba(15, 122, 69, 0.08) !important;
}

[data-theme="light"] .admin-mob-card-val {
  color: #1a3b2b !important;
}

[data-theme="light"] .admin-mob-card-actions {
  border-top: 1px solid rgba(15, 122, 69, 0.08) !important;
}

[data-theme="light"] .tree-node.root-node {
  background: #fffdfa !important;
  border-color: #d97706 !important;
  color: #0e291b !important;
}

[data-theme="light"] .genealogy-toolbar {
  background: #f4faf6 !important;
  border-color: rgba(15, 122, 69, 0.2) !important;
}

[data-theme="light"] .tree-bc-crumb {
  background: #ffffff !important;
  border-color: rgba(15, 122, 69, 0.2) !important;
  color: #0b4d2c !important;
}

[data-theme="light"] .genealogy-search-in {
  background: #ffffff !important;
  color: #0b4d2c !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .genealogy-canvas-wrap {
  background: radial-gradient(circle at center, #fbfdfc 0%, #f4faf6 100%) !important;
  border-color: rgba(15, 122, 69, 0.15) !important;
  box-shadow: none !important;
}

[data-theme="light"] .tree-root-tag {
  background: #fef3c7 !important;
  color: #92400e !important;
  border-color: #fde68a !important;
}

[data-theme="light"] .tree-node.child-node {
  background: #ffffff !important;
  color: #0e291b !important;
}

[data-theme="light"] .tree-node.empty-slot {
  background: #fafffc !important;
  color: #0f7a45 !important;
}

[data-theme="light"] .tree-grandchild-node {
  background: #ffffff !important;
  color: #0e291b !important;
}

[data-theme="light"] .tree-grandchild-node.empty-slot {
  background: #fafffc !important;
}

[data-theme="light"] .tree-node-name,
[data-theme="light"] .grandchild-mob {
  color: #0b4d2c !important;
}

[data-theme="light"] .tree-node-counts {
  color: #557766 !important;
  border-top-color: rgba(15, 122, 69, 0.1) !important;
}

[data-theme="light"] .btn-drilldown-node {
  background: #f0fbf5 !important;
  color: #0f7a45 !important;
}

[data-theme="light"] .confirm-head {
  background: rgba(255, 255, 255, 0.6) !important;
  border-bottom-color: rgba(15, 122, 69, 0.12) !important;
}

[data-theme="light"] .confirm-title {
  color: #0b4d2c !important;
}

[data-theme="light"] .confirm-details-table {
  background: #f9fcf9 !important;
  border-color: rgba(15, 122, 69, 0.15) !important;
}

[data-theme="light"] .confirm-details-table td {
  color: #0e291b !important;
  border-bottom-color: rgba(15, 122, 69, 0.08) !important;
}

[data-theme="light"] .confirm-details-table td.val {
  color: #0b4d2c !important;
}

[data-theme="light"] .confirm-actions {
  background: #fbfdfc !important;
  border-top-color: rgba(15, 122, 69, 0.08) !important;
}

[data-theme="light"] .tree-stat-card {
  background: #ffffff !important;
  border-color: rgba(15, 122, 69, 0.16) !important;
}

[data-theme="light"] .tree-stat-card .tree-stat-val {
  color: #0b4d2c !important;
}

@media (max-width: 768px) {
  /* =========================================================
     MOBILE HIGH-PERFORMANCE SCROLLING & GPU ACCELERATION
     Eliminates blur compositing lag and enables butter-smooth 60fps
     ========================================================= */
  *,
  *::before,
  *::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html, body {
    -webkit-overflow-scrolling: touch;
    overflow-x: clip !important;
    overscroll-behavior-y: auto;
    touch-action: pan-y pinch-zoom;
  }

  body,
  body.dash-terminal-body,
  .admin-terminal-body {
    background-attachment: scroll !important;
  }

  .dash-top-bar,
  .dash-sidebar,
  .land-nav-wrap,
  .mobile-bottom-nav {
    background: #131a22 !important;
  }

  [data-theme="light"] .dash-top-bar,
  [data-theme="light"] .dash-sidebar,
  [data-theme="light"] .land-nav-wrap,
  [data-theme="light"] .mobile-bottom-nav {
    background: #ffffff !important;
  }

  .plan-modal {
    padding: 10px !important;
  }

  .plan-modal-backdrop {
    background: rgba(10, 15, 20, 0.88) !important;
  }

  [data-theme="light"] .plan-modal-backdrop {
    background: rgba(14, 41, 27, 0.65) !important;
  }

  .plan-modal-sheet {
    max-height: 92vh !important;
    background: #1c2732 !important;
    padding-bottom: 24px !important;
  }

  [data-theme="light"] .plan-modal-sheet {
    background: #ffffff !important;
  }

  .plan-modal-body {
    padding-bottom: 36px !important;
  }

  /* Clean, Balanced Top Bar on Mobile */
  .land-nav-wrap {
    padding: 8px 0 !important;
  }

  .land-brand-logo {
    height: 32px !important;
    max-width: 120px !important;
  }

  .land-nav-actions {
    gap: 6px !important;
  }

  .land-nav-actions .btn {
    height: 34px !important;
    padding: 0 11px !important;
    font-size: 12px !important;
  }

  .btn-theme-icon-only {
    width: 34px !important;
    height: 34px !important;
    font-size: 15px !important;
  }

  .mobile-toggle {
    width: 34px !important;
    height: 34px !important;
    padding: 5px 4px !important;
  }

  /* Responsive 2x2 Grid for Hero KPI Stats */
  .stats-band {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin: 16px 0 28px !important;
  }

  .stats-band .stat {
    padding: 12px 14px !important;
  }

  .stats-band .stat b {
    font-size: 20px !important;
  }

  /* Dual Track Grid - Stack 1-Col */
  .dual-track-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  /* Calculator Mobile Refinement */
  .calc-master-panel {
    padding: 20px 14px !important;
    border-radius: 20px !important;
  }

  .calc-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  .result-card-main {
    padding: 18px 14px !important;
  }

  .result-big-number {
    font-size: 28px !important;
  }

  .result-breakdown-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .timeline-steps {
    gap: 4px !important;
  }

  .t-dot {
    width: 20px !important;
    height: 20px !important;
    font-size: 10px !important;
  }

  .t-amt {
    font-size: 9px !important;
  }

  /* Tree Simulator Mobile Refinement */
  .tree-demo-card {
    padding: 20px 14px !important;
    border-radius: 20px !important;
  }

  .tree-controls-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
  }

  .tree-stat-pill {
    padding: 8px 10px !important;
  }

  .tree-pill-val {
    font-size: 18px !important;
  }

  .tree-branch-lines {
    width: 220px !important;
  }

  .tree-children-row {
    gap: 8px !important;
  }

  .node-child {
    padding: 10px 8px !important;
    max-width: 150px !important;
  }

  .node-child .node-title {
    font-size: 11px !important;
  }

  .node-child .node-sub {
    font-size: 10px !important;
    padding: 2px 6px !important;
  }

  .tree-btn-wrap .btn {
    font-size: 11px !important;
    padding: 7px 6px !important;
  }

  /* 3 Steps Mobile Stacking */
  .steps-journey-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Gateways Mobile Grid */
  .gateways-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .gateway-card {
    padding: 14px 10px !important;
  }

  .gateway-logo-wrap {
    height: 36px !important;
  }

  .gateway-logo-wrap img {
    max-height: 28px !important;
  }

  .fee-tier-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* Live Activity Mobile Stream */
  .live-stream-inner {
    flex-direction: column !important;
    gap: 6px !important;
    text-align: center !important;
  }

  .live-stream-stats {
    display: none !important;
  }

  /* Footer Mobile Stacking */
  .site-foot .foot-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  /* Mobile Landing Nav Actions: Keep Login, Register, and Install all visible */
  #navLogin {
    display: inline-flex !important;
    padding: 5px 9px !important;
    font-size: 11.5px !important;
  }

  #navRegister {
    display: inline-flex !important;
    padding: 5px 9px !important;
    font-size: 11.5px !important;
  }

  #navInstallApp {
    display: inline-flex !important;
    padding: 5px 7px !important;
    font-size: 11px !important;
  }

  #navInstallApp span {
    display: none !important;
  }

  #navInstallApp svg {
    margin-right: 0 !important;
  }

  .hero-title {
    font-size: 30px !important;
    line-height: 1.2 !important;
  }

  .hero .cta .btn {
    width: 100% !important;
  }

  .result-breakdown-grid {
    grid-template-columns: 1fr !important;
  }

  .wrap {
    width: calc(100% - 24px) !important;
  }

  /* Claim 100 Cashback Responsive Network Grid */
  #claimNetworkGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

/* =========================================================
   CLAIM ₱100 LOAD WALLET (WELCOME PRIVILEGE MODAL & CARDS)
   ========================================================= */
.network-choice-card {
  cursor: pointer;
  border: 2px solid var(--line);
  background: var(--bg2);
  border-radius: 12px;
  padding: 10px 6px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  user-select: none;
}
.network-choice-logo-wrap {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.network-choice-logo {
  max-width: 42px;
  max-height: 38px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.network-choice-logo-wide {
  max-width: 68px;
  max-height: 28px;
}
.network-choice-card strong {
  font-size: 13px;
  color: var(--text);
  line-height: 1.2;
}
.network-choice-card .tiny.muted {
  font-size: 9.5px;
}
.network-choice-card:hover {
  border-color: rgba(46, 213, 158, 0.45);
  transform: translateY(-1px);
}
.network-choice-card.active {
  border-color: #2ed59e !important;
  background: rgba(46, 213, 158, 0.14) !important;
  box-shadow: 0 0 14px rgba(46, 213, 158, 0.22);
}
[data-theme="light"] .network-choice-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}
[data-theme="light"] .network-choice-card.active {
  border-color: #0f7a45 !important;
  background: rgba(46, 213, 158, 0.16) !important;
}

.claim-type-card {
  cursor: pointer;
  border: 2px solid var(--line);
  background: var(--bg2);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s ease;
  user-select: none;
}
.claim-type-card:hover {
  border-color: rgba(46, 213, 158, 0.45);
}
.claim-type-card.active {
  border-color: #2ed59e !important;
  background: rgba(46, 213, 158, 0.14) !important;
  box-shadow: 0 0 14px rgba(46, 213, 158, 0.18);
}
[data-theme="light"] .claim-type-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}
[data-theme="light"] .claim-type-card.active {
  border-color: #0f7a45 !important;
  background: rgba(46, 213, 158, 0.16) !important;
}
