/* ==========================================================================
   Lurna Plus Ventures — premium glass UI
   ========================================================================== */

:root {
  --bg: #030f0b;
  --bg-2: #061a13;
  --panel: rgba(12, 42, 31, 0.55);
  --panel-solid: #0a2b20;
  --panel-2: rgba(20, 70, 50, 0.45);
  --line: rgba(120, 230, 180, 0.14);
  --line-strong: rgba(120, 230, 180, 0.28);
  --text: #eefaf4;
  --muted: #94b8a8;
  --emerald: #10b981;
  --emerald-2: #34d399;
  --emerald-3: #6ee7b7;
  --emerald-deep: #047857;
  --danger: #ff5d73;
  --ok: #3ddc97;

  --glass: rgba(14, 48, 36, 0.5);
  --glass-strong: rgba(14, 52, 39, 0.72);
  --glass-border: rgba(150, 255, 210, 0.16);
  --glass-highlight: rgba(255, 255, 255, 0.09);

  --shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(255, 255, 255, 0.03) inset;
  --shadow-lg: 0 30px 70px -18px rgba(0, 0, 0, 0.65);
  --radius: 20px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 0.35s;

  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #eef6f1;
  --bg-2: #ffffff;
  --panel: rgba(255, 255, 255, 0.66);
  --panel-solid: #ffffff;
  --panel-2: rgba(16, 185, 129, 0.1);
  --line: rgba(16, 90, 60, 0.12);
  --line-strong: rgba(16, 120, 80, 0.28);
  --text: #0e2419;
  --muted: #4b6a5a;

  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-highlight: rgba(255, 255, 255, 0.9);

  --shadow: 0 18px 40px -14px rgba(16, 80, 52, 0.2), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  --shadow-lg: 0 30px 60px -20px rgba(16, 80, 52, 0.28);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 8% -8%, rgba(16, 185, 129, 0.22), transparent 60%),
    radial-gradient(700px 460px at 100% 10%, rgba(20, 184, 166, 0.14), transparent 60%),
    radial-gradient(800px 600px at 60% 110%, rgba(5, 150, 105, 0.18), transparent 60%);
}
html[data-theme="light"] body {
  background-image:
    radial-gradient(900px 520px at 8% -8%, rgba(52, 211, 153, 0.32), transparent 60%),
    radial-gradient(700px 460px at 100% 10%, rgba(45, 212, 191, 0.22), transparent 60%),
    radial-gradient(800px 600px at 60% 110%, rgba(110, 231, 183, 0.3), transparent 60%);
}

::selection { background: rgba(52, 211, 153, 0.4); color: #fff; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--emerald-2); outline-offset: 2px; }

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: rgba(52, 211, 153, 0.35) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(52, 211, 153, 0.3); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(52, 211, 153, 0.55); background-clip: padding-box; border: 2px solid transparent; }

/* ==========================================================================
   Layout / sidebar
   ========================================================================== */
.app-shell { display: flex; min-height: 100vh; }

.app-sidebar {
  width: 268px;
  background:
    radial-gradient(300px 260px at 0% 0%, rgba(52, 211, 153, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(6, 51, 38, 0.86), rgba(3, 22, 15, 0.92) 75%);
  border-right: 1px solid var(--glass-border);
  box-shadow: 10px 0 40px -20px rgba(0, 0, 0, 0.6);
  padding: 20px 14px 24px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow: auto;
  z-index: 20;
}
.app-main { flex: 1; min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
html[data-theme="light"] .app-sidebar {
  background:
    radial-gradient(300px 260px at 0% 0%, rgba(52, 211, 153, 0.3), transparent 70%),
    linear-gradient(180deg, rgba(232, 250, 241, 0.85), rgba(247, 252, 249, 0.9));
  box-shadow: 10px 0 40px -24px rgba(16, 80, 52, 0.3);
}

.app-sidebar__brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding: 0 6px; }
.brand { font-weight: 800; letter-spacing: -0.03em; font-size: 1.2rem; }
.brand span { color: inherit; }

.app-nav { display: flex; flex-direction: column; gap: 4px; }
.app-nav a {
  position: relative;
  display: flex; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 14px; color: var(--muted); font-size: 0.94rem; font-weight: 500;
}
.app-nav a::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 0;
  border-radius: 3px; background: linear-gradient(180deg, var(--emerald-3), var(--emerald));
  transform: translateY(-50%);
}
.app-nav a:hover { background: rgba(52, 211, 153, 0.1); color: var(--text); }
.app-nav a.is-active {
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.22), rgba(52, 211, 153, 0.04));
  color: var(--text); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.18);
}
.app-nav a.is-active::before { height: 60%; }
.app-sidebar__foot { margin-top: 16px; }

/* ==========================================================================
   Topbar
   ========================================================================== */
.topbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 24px; border-bottom: 1px solid var(--glass-border);
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
}
.topbar.is-scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); }
.topbar__title { font-weight: 700; flex: 1; letter-spacing: -0.01em; font-size: 1.05rem; }
.topbar__title.brand { font-weight: 800; letter-spacing: -0.03em; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }

.dash-greet {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0 0 16px;
}
.dash-greet__hello { margin: 0; font-weight: 700; letter-spacing: -0.02em; font-size: 1.15rem; }
.dash-greet__line { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }
.dash-greet__clock {
  margin-left: auto; white-space: nowrap;
  font-variant-numeric: tabular-nums; font-weight: 700;
  font-size: 1.35rem; letter-spacing: -0.03em;
}
.app-content { padding: 24px; flex: 1; width: 100%; max-width: none; }

.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.78rem; font-weight: 700;
  background: linear-gradient(135deg, #10b981, #047857); color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.icon-btn {
  border: 1px solid var(--glass-border); background: var(--glass); border-radius: 12px;
  width: 40px; height: 40px; cursor: pointer; display: inline-grid; place-items: center;
  color: var(--text);
}
.icon-btn:hover { border-color: var(--emerald-2); }
.theme-icon { display: block; }
.theme-icon--moon { display: none; }
html[data-theme="light"] .theme-icon--sun { display: none; }
html[data-theme="light"] .theme-icon--moon { display: block; }

/* ==========================================================================
   Wallet cards — deep, bold, glassy
   ========================================================================== */
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-actions--split { display: grid; grid-template-columns: 1fr 1fr; }
.hero-actions--split .btn { width: 100%; }
.wallet-stack { display: grid; gap: 16px; margin-bottom: 22px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.wallet-card {
  --mx: 50%; --my: 0%;
  --c1: #0b3d91; --c2: #0ea5e9; --c3: #14b8a6; --orb: rgba(56, 189, 248, 0.55);
  border-radius: 24px; padding: 20px 20px 18px; color: #fff;
  min-height: 148px; position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, var(--c1), var(--c2) 60%, var(--c3));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.45), 0 2px 0 rgba(255, 255, 255, 0.25) inset;
}
.wallet-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(255, 255, 255, 0.28), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.22), transparent 42%);
}
.wallet-card::after {
  content: ""; position: absolute; right: -50px; bottom: -70px; width: 200px; height: 200px; z-index: -1;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.04) 70%);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.wallet-card h2 { margin: 0; font-size: 0.74rem; letter-spacing: 0.14em; font-weight: 700; opacity: 0.9; text-transform: uppercase; }
.wallet-card .amount { font-size: 2.1rem; font-weight: 800; margin: 12px 0 6px; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.wallet-card .sub { opacity: 0.88; font-size: 0.9rem; }
.wallet-card .pill {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255, 255, 255, 0.18); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px;
  padding: 7px 14px; font-weight: 700; font-size: 0.85rem; cursor: pointer; text-decoration: none; display: inline-block;
}
.wallet-card .pill:hover { background: rgba(255, 255, 255, 0.34); }

.wallet-card--wa  { --c1: #1e3a8a; --c2: #2563eb; --c3: #06b6d4; --orb: rgba(37, 99, 235, 0.6); }
.wallet-card--wd  { --c1: #064e3b; --c2: #059669; --c3: #34d399; --orb: rgba(16, 185, 129, 0.6); }
.wallet-card--dep { --c1: #78350f; --c2: #d97706; --c3: #fbbf24; --orb: rgba(245, 158, 11, 0.55); }
.wallet-card--cb  { --c1: #7f1d1d; --c2: #e11d48; --c3: #fb7185; --orb: rgba(244, 63, 94, 0.55); }

/* ==========================================================================
   Glass surfaces
   ========================================================================== */
.grid-2 { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 18px; }

.panel, .pkg, .stat, .auth-card {
  position: relative;
  background: linear-gradient(160deg, var(--glass-highlight), transparent 38%), var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}
.panel { border-radius: var(--radius); padding: 20px; }
.panel h3 { margin: 0 0 12px; letter-spacing: -0.01em; }
.product-preview {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 520px;
  height: auto;
  margin: 0 auto 16px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
}
video.product-preview,
.product-preview--pdf { width: 100%; }
.product-preview--pdf { height: 520px; }

.deal-carousel { margin: 0 0 18px; }
.deal-carousel--live {
  padding: 16px 12px 12px;
  border-radius: 22px;
  text-align: center;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--n-purple, var(--emerald)) 22%, transparent), transparent 52%),
    var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}
.deal-carousel__empty {
  margin: 0; padding: 14px 16px; border-radius: 14px;
  border: 1px dashed var(--glass-border); color: var(--muted);
  background: var(--glass);
}
.deal-carousel__title {
  margin: 2px 8px 0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
  background-image: linear-gradient(90deg, var(--n-pink, var(--emerald-3)), var(--n-orange, var(--emerald-2)), var(--n-yellow, var(--emerald-3)), var(--n-cyan, var(--emerald-2)), var(--n-purple, var(--emerald)));
  background-size: 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: none;
  filter: none;
  text-shadow: none;
}
.deal-carousel__date {
  margin: 3px 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  animation: none;
}
.deal-carousel__date time { font: inherit; color: inherit; }
.deal-carousel__foot {
  margin: 12px 8px 2px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  line-height: 1.4;
  animation: none;
}
.deal-carousel__viewport {
  perspective: 1200px;
  overflow: visible;
}
.deal-carousel__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}
.deal-carousel__track[data-count="1"] {
  grid-template-columns: minmax(0, 240px);
  justify-content: center;
}
.deal-carousel__track[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 520px;
  margin-inline: auto;
}
.deal-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 12px 6px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  -webkit-text-fill-color: currentColor;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  animation: none;
  transform: rotateY(0deg);
  transform-origin: center center;
  transition: transform 0.6s ease;
  backface-visibility: hidden;
}
.deal-carousel .deal-card.is-flip-out { transform: rotateY(90deg); }
.deal-carousel .deal-card.is-flip-prep {
  transition: none;
  transform: rotateY(-90deg);
}
.deal-card__icon {
  font-size: 1.05rem;
  line-height: 1;
  min-height: 1.05rem;
}
.deal-card__name {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.deal-card__price {
  font-weight: 800;
  font-size: clamp(0.68rem, 3.2vw, 1.05rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: var(--n-yellow, #fbbf24);
  white-space: nowrap;
}
.deal-card__line {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.25;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.deal-card__cashback {
  font-weight: 800;
  font-size: clamp(0.78rem, 3.6vw, 1.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--n-lime, var(--text));
  white-space: nowrap;
}
@media (max-width: 420px) {
  .deal-carousel--live { padding: 14px 8px 10px; }
  .deal-carousel__title { font-size: 0.76rem; letter-spacing: 0.045em; }
  .deal-carousel__track { gap: 6px; }
  .deal-card { padding: 10px 3px; border-radius: 14px; }
}
@media (min-width: 900px) {
  .deal-carousel--live { padding: 20px 18px 16px; }
  .deal-carousel__title { font-size: 1.02rem; }
  .deal-carousel__track { gap: 12px; }
  .deal-card { padding: 18px 12px; }
  .deal-card__name { font-size: 0.78rem; }
  .deal-card__line { font-size: 0.78rem; }
}

.ticker {
  overflow: hidden; border: 1px solid var(--glass-border); border-radius: 999px;
  background: var(--glass);
  margin-bottom: 18px; box-shadow: var(--shadow);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track {
  display: flex; width: max-content; padding: 11px 0;
  animation: ticker 48s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__set { display: flex; flex: none; gap: 32px; padding-right: 32px; }
.ticker__item { flex: none; white-space: nowrap; color: var(--muted); font-size: 0.92rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker__item strong { color: var(--emerald-3); font-weight: 700; }
html[data-theme="light"] .ticker__item strong { color: var(--emerald-deep); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.18); padding: 11px 20px; cursor: pointer; font-weight: 700;
  background: linear-gradient(135deg, #059669, #10b981 55%, #34d399); color: #fff;
  box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.45);
}
.btn:hover { box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.45); }
.btn--ghost {
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--text); box-shadow: none;
}
.btn--ghost:hover { border-color: var(--emerald-2); box-shadow: none; }
.btn--danger { background: linear-gradient(135deg, #9f1239, #e11d48); box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.45); }
.btn--danger:hover { box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.45); }
.btn--sm { padding: 7px 12px; font-size: 0.85rem; border-radius: 11px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; filter: grayscale(0.3); }

/* ==========================================================================
   Alerts
   ========================================================================== */
.alert {
  padding: 13px 16px; border-radius: 14px; margin-bottom: 16px; border: 1px solid transparent;
}
.alert--ok { background: rgba(16, 185, 129, 0.16); border-color: rgba(52, 211, 153, 0.35); color: var(--text); }
.alert--error { background: rgba(255, 93, 115, 0.16); border-color: rgba(255, 93, 115, 0.35); color: var(--text); }
.alert--warn { background: rgba(245, 158, 11, 0.16); border-color: rgba(245, 158, 11, 0.45); color: var(--text); }
.impersonation-banner form {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0;
}
.impersonation-banner p { margin: 0; flex: 1 1 220px; }
.topbar .impersonation-banner { flex: 1 0 100%; margin: 0; }
.public-page .impersonation-banner { width: min(520px, calc(100% - 32px)); margin: 16px auto 0; }

/* ==========================================================================
   Cards / packages
   ========================================================================== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.cards--compact {
  grid-template-columns: repeat(auto-fill, minmax(180px, 220px));
  gap: 10px;
  justify-content: start;
}
.cards--compact .pkg { border-radius: 16px; padding: 12px; gap: 6px; }
.cards--compact .pkg h3 { font-size: 0.95rem; line-height: 1.25; }
.cards--compact .pkg .price { font-size: 1.12rem; }
.cards--compact .pkg p { font-size: 0.8rem; margin: 0; }
.cards--compact .pkg .muted {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.cards--compact .pkg .btn { min-height: 42px; padding: 8px 10px; font-size: 0.8rem; }
.pkg__deal { margin: 0; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.pkg__deal, .price__was { text-decoration: none; }
@media (max-width: 640px) {
  .cards--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .cards--compact { grid-template-columns: 1fr; }
}
.pkg {
  border-radius: 22px; padding: 20px; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 8px;
}
.pkg::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; z-index: 1;
  background: linear-gradient(90deg, var(--emerald-deep), var(--emerald-2), var(--emerald-3));
  opacity: 0.85;
}
.pkg::after {
  content: ""; position: absolute; top: -60px; right: -60px; width: 160px; height: 160px; z-index: -1;
  border-radius: 50%; background: radial-gradient(circle, rgba(52, 211, 153, 0.28), transparent 70%);
  pointer-events: none;
}
.pkg:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.pkg h3 { margin: 0; letter-spacing: -0.01em; }
.pkg .price {
  font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--emerald-3), var(--emerald-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-theme="light"] .pkg .price { background: linear-gradient(90deg, #047857, #10b981); -webkit-background-clip: text; background-clip: text; }

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

/* ==========================================================================
   Forms
   ========================================================================== */
.form { display: grid; gap: 14px; max-width: 520px; }
label { display: grid; gap: 6px; font-size: 0.88rem; color: var(--muted); font-weight: 500; }
input, select, textarea {
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  border: 1px solid var(--glass-border); border-radius: 13px; padding: 12px 14px;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--emerald-2);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.28);
  background: color-mix(in srgb, var(--bg-2) 90%, transparent);
}

/* ==========================================================================
   Tables
   ========================================================================== */
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
tbody tr:hover { background: rgba(52, 211, 153, 0.07); }
tbody tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   Stats, badges, misc
   ========================================================================== */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat {
  border-radius: 18px; padding: 16px; overflow: hidden;
}
.stat::before {
  content: ""; position: absolute; left: 0; top: 16%; bottom: 16%; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--emerald-3), var(--emerald-deep));
}
.stat:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.stat b { display: block; font-size: 1.35rem; margin-top: 4px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.badge {
  display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 0.76rem; font-weight: 600;
  background: rgba(52, 211, 153, 0.14); color: var(--emerald-3); border: 1px solid rgba(52, 211, 153, 0.25);
}
html[data-theme="light"] .badge { color: var(--emerald-deep); }
.badge--hot { background: rgba(251, 191, 36, 0.16); color: #fbbf24; border-color: rgba(251, 191, 36, 0.4); }
html[data-theme="light"] .badge--hot { color: #b45309; }

/* Limited-time offer banner and urgency hints (driven by real data only) */
.promo {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 12px 16px; margin-bottom: 16px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(16, 185, 129, 0.12));
  border: 1px solid rgba(251, 191, 36, 0.38);
}
.promo__tag {
  border-radius: 999px; padding: 3px 10px; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; background: #f59e0b; color: #1c1300;
}
.promo__timer { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.promo-hint { margin: 4px 0 0; font-size: 0.9rem; color: var(--muted); }
.promo-hint a, .alert a { color: inherit; font-weight: 700; text-decoration: underline; }
.pkg .pkg__earn { font-weight: 700; }
.pkg .pkg__fine { font-size: 0.82rem; color: var(--muted); margin: 0; }
.pkg .pkg__proof { font-size: 0.85rem; margin: 0; color: var(--emerald-3); font-weight: 600; }
html[data-theme="light"] .pkg .pkg__proof { color: var(--emerald-deep); }
.pkg form { margin-top: auto; }
.pkg .btn { width: 100%; }

.gate { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }

.gate-modal {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px;
}
.gate-modal[hidden] { display: none; }
.gate-modal__backdrop {
  position: absolute; inset: 0; background: rgba(0, 8, 5, 0.55);
}
.gate-modal__panel {
  position: relative; width: min(420px, 100%); border-radius: 26px; padding: 28px;
  background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg);
}
.gate-modal__panel h3 { margin: 0 0 8px; }
.gate-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(440px, 100%); border-radius: 26px; padding: 28px; box-shadow: var(--shadow-lg); background-color: var(--glass-strong); }
.auth-brand-block { text-align: center; margin-bottom: 4px; }
.auth-brand-block .brand { display: inline-block; font-size: 1.7rem; line-height: 1.1; }
.auth-app-name { margin: 4px 0 12px; text-align: center; font-weight: 600; letter-spacing: -0.02em; }
.choice { display: grid; gap: 8px; }

pre.log {
  white-space: pre-wrap; word-break: break-word; font-size: 0.78rem;
  background: color-mix(in srgb, var(--bg) 80%, transparent); padding: 10px; border-radius: 10px;
  max-height: 180px; overflow: auto; border: 1px solid var(--line);
}

.app-overlay { display: block; position: fixed; inset: 0; background: rgba(0, 8, 5, 0.55); z-index: 15; opacity: 0; pointer-events: none; }
.app-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 961px) {
  html.sidebar-collapsed .app-sidebar { display: none; }
  html:not(.sidebar-collapsed) .app-main { margin-left: 268px; }
  html:not(.sidebar-collapsed) .app-overlay { display: none; }
}
@media (max-width: 960px) {
  .app-sidebar { display: none; }
  .app-sidebar.is-open { display: block; }
  .grid-2 { grid-template-columns: 1fr; }
  .app-content { padding: 16px; }
  .topbar { padding: 12px 16px; }
}
@media (max-width: 520px) {
  .wallet-card .amount { font-size: 1.8rem; }
  .dash-greet { align-items: flex-start; gap: 12px; }
  .dash-greet__clock { font-size: 1.1rem; padding-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker {
    overflow: visible;
    border-radius: 18px;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .ticker__track { animation: none; width: auto; flex-wrap: wrap; padding: 11px 16px; }
  .ticker__set { flex-wrap: wrap; gap: 8px 32px; padding-right: 0; }
  .ticker__set[aria-hidden="true"] { display: none; }
  .deal-carousel .deal-card,
  .deal-carousel .deal-card.is-flip-out,
  .deal-carousel .deal-card.is-flip-prep {
    transition: none;
    transform: none;
    animation: none;
  }
}

/* Public welcome + WhatsApp onboarding */
.public-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; flex-wrap: wrap;
}
.public-bar nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.public-page .auth-wrap { min-height: auto; align-content: start; padding-top: 8px; }
.landing {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto 48px;
  display: grid;
  gap: 16px;
}
.landing-hero.auth-card { width: 100%; }
.landing-hero p { font-size: 1.02rem; }
.landing-actions, .form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.landing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.landing-grid h2 { margin: 0 0 8px; font-size: 1.05rem; }
.auth-card--wide { width: min(520px, 100%); }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  list-style: none; padding: 0; margin: 0 0 8px;
}
.steps li {
  font-size: 0.78rem; color: var(--muted);
  border-top: 3px solid var(--line); padding-top: 6px;
}
.steps li.is-active { color: var(--text); border-top-color: var(--emerald-2); font-weight: 700; }
.steps li.is-done { border-top-color: var(--emerald); }
.summary-list { margin: 8px 0 16px; }
.summary-list div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; font-weight: 700; text-align: right; }
.option-list {
  border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0;
}
.option-list legend {
  padding: 0; margin-bottom: 2px; font-size: 0.88rem; color: var(--muted); font-weight: 500;
}
.option-list label {
  display: flex; align-items: center; gap: 10px; margin: 0;
  color: var(--text); font-weight: 600;
  border: 1px solid var(--glass-border); border-radius: 13px; padding: 12px 14px;
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
}
.option-list input[type="radio"] {
  width: 1.15rem; height: 1.15rem; margin: 0; padding: 0; flex: 0 0 auto; accent-color: #34d399;
}
@media (max-width: 800px) {
  .landing-grid { grid-template-columns: 1fr; }
  .landing-hero.auth-card { padding: 22px 18px; }
  .summary-list div { align-items: flex-start; }
  .summary-list dd { text-align: right; word-break: break-word; }
}

/* ==========================================================================
   Public landing layout (logged-out index only)
   Spacing and grids only. Color, type, buttons, and surfaces come from
   the shared theme (app.css variables + neon-theme.css).
   ========================================================================== */
.topbar.public-bar nav a:not(.btn) { padding: 6px 0; }

.lp {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
  min-width: 0;
}
.lp-hero {
  display: grid;
  gap: 18px;
  align-items: start;
  min-width: 0;
}
.lp-hero > * { min-width: 0; }
.lp-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.lp-lede { margin: 14px 0 0; max-width: 42rem; }
.lp .landing-actions { margin-top: 18px; }
.lp-hero__login { margin: 14px 0 0; }
.lp-ledger h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.lp-ledger > div { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.lp-ledger p { margin: 0; }

.lp-facts p { margin: 8px 0 0; font-size: 0.92rem; }

.lp-section { display: grid; gap: 16px; min-width: 0; scroll-margin-top: 92px; }
.lp-section h2,
.lp-close h2 {
  margin: 10px 0 0;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.lp-section .panel > .muted,
.lp-close > .muted { margin: 10px 0 0; max-width: 42rem; }
.lp ol { list-style: none; margin: 0; padding: 0; }
.lp .pkg > .badge { align-self: flex-start; }
.lp-steps h3,
.lp .pkg h3,
.lp .panel h3 { margin-bottom: 8px; }
.lp-steps p,
.lp .pkg > p,
.lp .cards > .panel > p { margin: 0; }

.lp-faq details { border-top: 1px solid var(--line); margin-top: 14px; }
.lp-faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.lp-faq p { margin: 0 0 12px; }

.lp-foot p { margin: 8px 0 0; }
.lp-foot p:first-child { margin-top: 0; }
.lp-foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 12px;
}

@media (min-width: 800px) {
  .lp-hero { grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.8fr); }
}

@media (max-width: 980px) {
  .topbar.public-bar nav { flex: 1 1 100%; }
  .lp-section { scroll-margin-top: 168px; }
}

@media (max-width: 560px) {
  .lp .landing-actions { display: grid; }
  .lp .landing-actions .btn { width: 100%; }
  .topbar.public-bar .btn { width: auto; }
}

/* Phone frame for a submitted WhatsApp screenshot */
.phone-mock { width: min(260px, 100%); margin: 12px auto; }
.phone-mock--compact { width: min(118px, 34vw); margin: 0 auto 6px; }
.phone-mock__device {
  position: relative;
  background: linear-gradient(165deg, #3a3a40 0%, #121214 28%, #1c1c20 100%);
  border-radius: 32px;
  padding: 12px 10px 14px;
  box-shadow:
    0 0 0 2px #2c2c31,
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 16px 30px rgba(0, 0, 0, 0.35);
}
.phone-mock--compact .phone-mock__device { border-radius: 22px; padding: 8px 7px 10px; }
.phone-mock__device::before,
.phone-mock__device::after {
  content: "";
  position: absolute;
  right: -3px;
  width: 3px;
  border-radius: 2px;
  background: #2a2a2e;
}
.phone-mock__device::before { top: 22%; height: 28px; }
.phone-mock__device::after { top: 38%; height: 46px; }
.phone-mock__ear {
  width: 42%;
  height: 16px;
  margin: 0 auto 8px;
  border-radius: 0 0 12px 12px;
  background: #0a0a0c;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}
.phone-mock--compact .phone-mock__ear { height: 10px; margin-bottom: 6px; border-radius: 0 0 8px 8px; }
.phone-mock__screen {
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  border-radius: 16px;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-mock--compact .phone-mock__screen { border-radius: 10px; }
.phone-mock__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #050505;
}
.phone-mock__empty {
  margin: 0;
  padding: 12px;
  text-align: center;
  color: #b7c4bc;
  font-size: 0.82rem;
  line-height: 1.35;
}
.phone-mock--compact .phone-mock__empty { font-size: 0.68rem; padding: 8px; }
.phone-mock__home {
  width: 34%;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.42);
}
.phone-mock--compact .phone-mock__home { height: 3px; margin-top: 7px; }
.submission-link { display: grid; justify-items: center; gap: 4px; text-align: center; }
.submission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 240px));
  gap: 16px;
}
.submission-card p { margin: 8px 0 0; }
.submission-view .phone-mock { margin-top: 18px; margin-bottom: 18px; }
