:root {
  color-scheme: dark;
  --bg: #030712;
  --bg-2: #07111f;
  --panel: rgba(7, 17, 31, .72);
  --panel-2: rgba(11, 24, 44, .76);
  --line: rgba(103, 232, 249, .22);
  --line-hot: rgba(139, 92, 246, .46);
  --text: #f8fbff;
  --muted: #9fb0cf;
  --green: #14f195;
  --cyan: #22d3ee;
  --turquoise: #2fffd2;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --pink: #d946ef;
  --yellow: #ffe66d;
  --red: #ff5470;
  --radius: 24px;
  --radius-sm: 14px;
  --radius-lg: 30px;
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
  --gradient-primary: linear-gradient(135deg, var(--cyan), var(--blue) 48%, var(--purple));
  --gradient-accent: linear-gradient(135deg, var(--turquoise), var(--cyan), var(--purple));
  --shadow: 0 0 80px rgba(34, 211, 238, .09), 0 0 120px rgba(139, 92, 246, .08);
  --glow-cyan: 0 0 34px rgba(34, 211, 238, .32);
  --glow-green: 0 0 34px rgba(47, 255, 210, .24);
  --glow-purple: 0 0 46px rgba(139, 92, 246, .32);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 12%, rgba(139, 92, 246, .34), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(34, 211, 238, .22), transparent 26%),
    radial-gradient(circle at 48% 80%, rgba(47, 255, 210, .13), transparent 34%),
    linear-gradient(180deg, #07111f 0%, #030712 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .34) 0 1px, transparent 1px),
    linear-gradient(rgba(139, 92, 246, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, .04) 1px, transparent 1px);
  background-size: 92px 92px, 54px 54px, 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .22));
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.app-shell {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, .12), transparent 38%),
    linear-gradient(315deg, rgba(34, 211, 238, .09), transparent 42%);
}

.auth-layout, .main-layout {
  min-height: 100vh;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 22px;
}

.main-layout {
  width: min(1180px, 100%);
  padding: 0 22px 34px;
  background:
    linear-gradient(180deg, rgba(8, 12, 30, .24), rgba(5, 7, 19, .7)),
    radial-gradient(circle at 50% 8%, rgba(20, 241, 149, .16), transparent 24%);
}

.landing-layout {
  width: min(1120px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 22px 40px;
  background:
    linear-gradient(180deg, rgba(8, 12, 30, .24), rgba(5, 7, 19, .7)),
    radial-gradient(circle at 50% 8%, rgba(20, 241, 149, .16), transparent 23%);
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -22px;
  padding: 16px 22px 12px;
  background: rgba(7, 10, 24, .86);
  border-bottom: 1px solid rgba(157, 168, 199, .14);
  box-shadow: 0 16px 42px rgba(153, 69, 255, .16);
  backdrop-filter: blur(18px);
}

.landing-actions {
  display: flex;
  gap: 8px;
}

.btn.compact {
  padding: 9px 13px;
}

.landing-hero {
  padding: 34px 0 22px;
}

.featured-offer {
  border: 1px solid rgba(103, 232, 249, .3);
  border-radius: var(--radius-lg);
  padding: 22px;
  background:
    var(--glass),
    radial-gradient(circle at 50% 100%, rgba(34, 211, 238, .2), transparent 52%),
    linear-gradient(180deg, rgba(139, 92, 246, .2), rgba(3, 7, 18, .72));
  box-shadow: 0 0 34px rgba(139, 92, 246, .34), 0 0 52px rgba(34, 211, 238, .16), inset 8px 8px 24px rgba(0, 0, 0, .18), inset -8px -8px 24px rgba(255, 255, 255, .03);
  text-align: center;
}

.featured-offer.static-cyan-card {
  animation: none;
  border-color: rgba(34, 211, 238, .58);
  box-shadow:
    0 0 26px rgba(34, 211, 238, .34),
    0 0 58px rgba(34, 211, 238, .12),
    inset 8px 8px 24px rgba(0, 0, 0, .18),
    inset -8px -8px 24px rgba(255, 255, 255, .025);
}

.landing-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  align-content: start;
}

.landing-nav,
.perk-row,
.how-section,
.earn-section,
.cashout-section,
.landing-footer {
  grid-column: 1 / -1;
}

.landing-hero {
  grid-column: span 7;
}

.signup-glow {
  grid-column: span 5;
  align-self: center;
}

.featured-offer .dice {
  font-size: 50px;
  margin-bottom: 8px;
}

.featured-offer h1 {
  margin: 0 0 6px;
  font-size: 22px;
}

.featured-offer p {
  margin: 0 0 8px;
  color: var(--muted);
}

.featured-offer .rating {
  color: var(--yellow);
  margin-bottom: 10px;
  font-weight: 800;
}

.featured-offer strong {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 34px;
  text-shadow: none;
}

.featured-offer .simple-offer-btn {
  background: #7cf8dd;
  color: #031016;
  box-shadow: none;
  border: 0;
}

.featured-offer .simple-offer-btn:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.signup-glow {
  position: relative;
  margin: 24px 0 26px;
  padding: 22px 14px 16px;
  border: 1px solid rgba(103, 232, 249, .3);
  border-radius: var(--radius-lg);
  background: var(--glass), rgba(7, 17, 31, .78);
  box-shadow: 0 0 32px rgba(139, 92, 246, .36), 0 0 42px rgba(34, 211, 238, .12), inset 10px 10px 24px rgba(0, 0, 0, .18), inset -10px -10px 24px rgba(255, 255, 255, .025);
}

.signup-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(153, 69, 255, .72);
  border-radius: 999px;
  padding: 5px 13px;
  background: #110f26;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 16px rgba(153, 69, 255, .62);
}

.free-word {
  color: var(--green);
  text-shadow: 0 0 12px rgba(20, 241, 149, .45);
}

.signup-extra {
  animation: revealField .22s ease both;
}

@keyframes revealField {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wide {
  width: 100%;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 13px 0;
  color: var(--muted);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(157, 168, 199, .2);
}

.social {
  width: 100%;
  min-height: 42px;
  margin-bottom: 9px;
  border: 0;
  border-radius: 7px;
  font-weight: 800;
}

.social.apple {
  background: #000;
  color: #fff;
}

.social.google {
  background: #fff;
  color: #1f2937;
}

.social.facebook {
  background: #3578e5;
  color: #fff;
}

.signup-note {
  margin: 8px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.text-link {
  display: block;
  margin: 10px auto 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 800;
}

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

.mini-perk {
  min-height: 112px;
  border: 1px solid rgba(157, 168, 199, .15);
  border-radius: var(--radius);
  background: var(--glass), rgba(7, 17, 31, .66);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px 8px;
  box-shadow: inset 0 0 22px rgba(153, 69, 255, .05);
}

.mini-perk span {
  display: block;
  font-size: 28px;
}

.mini-perk strong {
  font-size: 14px;
  line-height: 1.25;
}

.how-section,
.earn-section,
.cashout-section {
  margin-bottom: 36px;
}

.how-section h2,
.earn-section h2,
.cashout-section h2 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 30px;
  line-height: 1.15;
  text-shadow: 0 0 20px rgba(153, 69, 255, .5);
}

.how-section > p {
  margin: 0 0 26px;
  color: var(--muted);
  text-align: center;
  font-size: 22px;
  font-weight: 900;
}

.how-card {
  position: relative;
  min-height: 224px;
  margin: 0 0 18px;
  perspective: 1000px;
}

.step-badge {
  position: absolute;
  top: -15px;
  left: -14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green);
  color: #050713;
  font-weight: 950;
  font-size: 18px;
  box-shadow: 0 0 20px rgba(20, 241, 149, .5);
}

.flip-inner {
  position: relative;
  min-height: inherit;
  transition: transform .55s ease;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-inner,
.flip-card:focus .flip-inner,
.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(157, 168, 199, .14);
  border-radius: var(--radius-lg);
  padding: 30px 22px 22px;
  background: rgba(8, 12, 30, .74);
  backface-visibility: hidden;
  box-shadow: inset 0 0 22px rgba(153, 69, 255, .06);
}

.flip-back {
  display: grid;
  align-content: center;
  background: linear-gradient(145deg, rgba(153, 69, 255, .3), rgba(8, 12, 30, .92));
  transform: rotateY(180deg);
}

.how-icon,
.earn-icon {
  font-size: 34px;
  margin-bottom: 18px;
}

.how-card h3,
.earn-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.how-card p,
.earn-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.earn-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.earn-card {
  min-height: 278px;
  perspective: 1000px;
}

.earn-card .flip-face {
  padding: 26px 22px;
}

.earn-card.purple .flip-face { background: linear-gradient(145deg, rgba(70, 39, 130, .88), rgba(36, 26, 78, .82)); }
.earn-card.cyan .flip-face { background: linear-gradient(145deg, rgba(16, 68, 86, .88), rgba(12, 40, 58, .82)); }
.earn-card.green .flip-face { background: linear-gradient(145deg, rgba(23, 80, 50, .88), rgba(12, 45, 34, .82)); }

.earn-card small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
}

.earn-card strong {
  display: block;
  margin: 3px 0 14px;
  color: var(--green);
  font-size: 20px;
}

.cashout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(157, 168, 199, .12);
  border-radius: var(--radius-lg);
  background: rgba(8, 12, 30, .5);
}

.cashout-tile {
  min-height: 78px;
  display: grid;
  place-items: center;
  gap: 5px;
  border-radius: var(--radius);
  background: rgba(11, 25, 43, .84);
  color: var(--muted);
  font-size: 12px;
}

.cashout-tile strong {
  color: var(--green);
  font-size: 27px;
}

.landing-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 22px;
  padding: 36px 12px 16px;
  border-top: 1px solid rgba(157, 168, 199, .13);
  color: var(--muted);
}

.landing-footer p {
  line-height: 1.45;
}

.landing-footer div {
  display: grid;
  align-content: start;
  gap: 9px;
}

.landing-footer strong {
  color: var(--text);
}

.pulse-card {
  animation: softPulse 2.8s ease-in-out infinite;
}

.pulse-card.slow {
  animation-duration: 4s;
}

@keyframes softPulse {
  0%, 100% {
    box-shadow: 0 0 22px rgba(153, 69, 255, .28), inset 0 0 18px rgba(20, 241, 149, .04);
  }
  50% {
    box-shadow: 0 0 36px rgba(20, 241, 149, .32), 0 0 52px rgba(153, 69, 255, .2), inset 0 0 22px rgba(0, 209, 255, .08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-card,
  .flip-inner {
    animation: none !important;
    transition: none !important;
  }
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 28px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--gradient-accent);
  color: #060812;
  font-weight: 950;
  box-shadow: var(--glow-cyan), var(--glow-purple);
}

.hero {
  position: relative;
}

.hero::before {
  content: "LIVE MVP";
  display: inline-flex;
  margin-top: 26px;
  border: 1px solid rgba(20, 241, 149, .34);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(20, 241, 149, .08);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.hero h1 {
  margin: 18px 0 16px;
  max-width: 720px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: .95;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero h1,
.stat strong,
.reward {
  background: linear-gradient(90deg, var(--text), #d9fff0 34%, #d7c2ff 70%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 640px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 680px;
}

.proof-tile, .panel, .stat, .offer-card, .admin-row, .ledger-row {
  position: relative;
  border: 1px solid var(--line);
  background: var(--glass), var(--panel);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow), inset 8px 8px 22px rgba(0, 0, 0, .16), inset -8px -8px 22px rgba(255, 255, 255, .025);
}

.proof-tile::before, .panel::before, .stat::before, .offer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .34), rgba(139, 92, 246, .24), transparent);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.proof-tile {
  padding: 16px;
}

.proof-tile strong {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}

.proof-tile span, .muted { color: var(--muted); }

.panel {
  padding: 19px;
  box-shadow: var(--shadow);
}

.main-layout .panel,
.main-layout .offer-card,
.main-layout .admin-row,
.main-layout .ledger-row {
  border-color: rgba(153, 69, 255, .34);
  background: rgba(8, 12, 30, .74);
  box-shadow: 0 0 20px rgba(153, 69, 255, .16), inset 0 0 18px rgba(20, 241, 149, .035);
}

.main-layout .panel:hover,
.main-layout .offer-card:hover {
  box-shadow: 0 0 32px rgba(153, 69, 255, .34), 0 0 26px rgba(20, 241, 149, .12);
}

.panel h2, .section-title {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: 0;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
}

.field label {
  color: #b8c3df;
  font-size: 13px;
  font-weight: 700;
}

.field input, .field select {
  width: 100%;
  border: 1px solid rgba(157, 168, 199, .2);
  border-radius: var(--radius-sm);
  background: rgba(3, 7, 18, .78);
  color: var(--text);
  padding: 13px 12px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
}

.field input:focus, .field select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .13), var(--glow-cyan);
}

.btn {
  position: relative;
  border: 0;
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(11, 24, 44, .78);
  color: var(--text);
  font-weight: 850;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(34, 211, 238, .18), 0 0 32px rgba(139, 92, 246, .18);
}

.btn.primary {
  background: var(--gradient-primary);
  color: #030712;
  box-shadow: var(--glow-cyan), var(--glow-purple);
}

.btn.ghost {
  border: 1px solid rgba(157, 168, 199, .24);
  background: rgba(8, 11, 29, .36);
}

.btn.warn {
  background: rgba(255, 84, 112, .15);
  color: #ffb2c0;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 0 -22px 18px;
  padding: 16px 22px 12px;
  background: rgba(5, 7, 19, .72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(157, 168, 199, .12);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow-x: visible;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 5px;
}

.tab {
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(157, 168, 199, .16);
  border-radius: 18px;
  background: rgba(8, 11, 29, .68);
  color: var(--muted);
  font-weight: 850;
  transition: color .18s ease, box-shadow .18s ease, background .18s ease;
}

.tab:hover {
  color: var(--text);
  border-color: rgba(20, 241, 149, .32);
}

.tab.active {
  background: var(--gradient-primary);
  color: #030712;
  border-color: transparent;
  box-shadow: var(--glow-cyan);
}

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

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.stat {
  padding: 16px;
  min-height: 112px;
  overflow: hidden;
  border-color: rgba(34, 211, 238, .42);
  background: rgba(3, 7, 18, .86);
  box-shadow: none;
}

.stat::before {
  display: none;
}

.dashboard-neon-card {
  grid-template-columns: 1fr auto;
  align-items: center;
  position: relative;
  display: grid;
  gap: 18px;
  margin: 16px 0 14px;
  padding: 22px;
  border: 1px solid rgba(103, 232, 249, .32);
  border-radius: var(--radius-lg);
  background:
    var(--glass),
    linear-gradient(180deg, rgba(139, 92, 246, .2), rgba(3, 7, 18, .72)),
    radial-gradient(circle at 80% 0%, rgba(34, 211, 238, .2), transparent 48%);
  box-shadow: 0 0 36px rgba(139, 92, 246, .36), 0 0 48px rgba(34, 211, 238, .14), inset 10px 10px 24px rgba(0, 0, 0, .18), inset -10px -10px 24px rgba(255, 255, 255, .025);
}

.dashboard-neon-card.pulse-card {
  animation: none;
  box-shadow:
    0 0 34px rgba(139, 92, 246, .42),
    0 0 68px rgba(139, 92, 246, .18),
    inset 10px 10px 24px rgba(0, 0, 0, .18),
    inset -10px -10px 24px rgba(255, 255, 255, .025);
}

.dashboard-neon-card h1 {
  margin: 12px 0 8px;
  font-size: 31px;
  line-height: 1.05;
  text-shadow: 0 0 22px rgba(153, 69, 255, .48);
}

.dashboard-neon-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.account-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(3, 7, 18, .74);
  border-color: rgba(34, 211, 238, .24);
  box-shadow: none;
}

.account-panel p {
  margin: 0;
}

.signup-badge.inline {
  position: static;
  transform: none;
  display: inline-flex;
  width: fit-content;
}

.stat::after {
  display: none;
}

.stat small {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 800;
}

.stat strong {
  display: block;
  font-size: 31px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.progress {
  overflow: hidden;
  height: 10px;
  background: rgba(5, 8, 20, .74);
  border-radius: 999px;
  border: 1px solid rgba(157, 168, 199, .16);
  margin: 18px 0 10px;
}

.progress > span {
  display: block;
  height: 100%;
  width: var(--value);
  background: var(--gradient-primary);
  box-shadow: 0 0 18px rgba(34, 211, 238, .5);
}

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

.offer-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.offer-card:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 241, 149, .4);
  box-shadow: var(--shadow), var(--glow-purple);
}

.offer-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(153, 69, 255, .4), rgba(20, 241, 149, .18));
  color: var(--green);
  font-weight: 950;
  border: 1px solid rgba(20, 241, 149, .22);
}

.offer-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.pill {
  border: 1px solid rgba(157, 168, 199, .2);
  border-radius: 999px;
  padding: 4px 8px;
  color: #c5cde4;
  background: rgba(255, 255, 255, .035);
  font-size: 12px;
  font-weight: 700;
}

.reward {
  font-weight: 950;
  text-align: right;
  min-width: 132px;
}

.ledger-row, .admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin-bottom: 8px;
}

.success { color: var(--green); }
.danger { color: var(--red); }
.yellow { color: var(--yellow); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 20;
  width: min(460px, calc(100% - 30px));
  padding: 13px 14px;
  border: 1px solid rgba(20, 241, 149, .45);
  border-radius: var(--radius);
  background: rgba(5, 22, 17, .92);
  color: var(--text);
  box-shadow: var(--shadow), var(--glow-green);
  backdrop-filter: blur(16px);
}

.hidden { display: none !important; }

/* Global CashFlowr visual cleanup: dark cards, purple neon borders/glow, cyan buttons, no pulse. */
.pulse-card,
.pulse-card.slow,
.dashboard-neon-card.pulse-card,
.featured-offer,
.signup-glow,
.mini-perk,
.how-card .flip-face,
.earn-card .flip-face,
.cashout-tile,
.proof-tile,
.panel,
.stat,
.offer-card,
.admin-row,
.ledger-row {
  animation: none !important;
}

.featured-offer,
.signup-glow,
.mini-perk,
.how-card .flip-face,
.earn-card .flip-face,
.earn-card.purple .flip-face,
.earn-card.cyan .flip-face,
.earn-card.green .flip-face,
.cashout-tile,
.proof-tile,
.panel,
.stat,
.offer-card,
.admin-row,
.ledger-row,
.dashboard-neon-card {
  background: rgba(3, 7, 18, .88) !important;
  border-color: rgba(153, 69, 255, .72) !important;
  box-shadow: 0 0 16px rgba(153, 69, 255, .34), 0 0 34px rgba(139, 92, 246, .26), inset 8px 8px 22px rgba(0, 0, 0, .18), inset -8px -8px 22px rgba(255, 255, 255, .018) !important;
}

.proof-tile::before,
.panel::before,
.stat::before,
.stat::after,
.offer-card::before {
  display: none !important;
}

.btn.primary,
.btn.ghost,
.featured-offer .simple-offer-btn,
.earn-card .btn,
.account-panel .btn,
.offer-card .btn,
.btn-row .btn {
  background: linear-gradient(135deg, rgba(103, 232, 249, .98), rgba(34, 211, 238, .95)) !important;
  color: #03111c !important;
  border: 1px solid rgba(103, 232, 249, .58) !important;
  box-shadow: none !important;
}

.btn.primary:hover,
.btn.ghost:hover,
.featured-offer .simple-offer-btn:hover,
.earn-card .btn:hover,
.account-panel .btn:hover,
.offer-card .btn:hover,
.btn-row .btn:hover {
  box-shadow: 0 0 20px rgba(139, 92, 246, .30) !important;
}

.btn.warn {
  background: rgba(255, 77, 109, .18) !important;
  color: #ffd6df !important;
  border: 1px solid rgba(255, 77, 109, .42) !important;
  box-shadow: none !important;
}

@media (max-width: 860px) {
  .landing-layout,
  .main-layout {
    width: min(440px, 100%);
    padding: 0 14px 28px;
  }

  .landing-layout {
    display: block;
  }

  .landing-nav,
  .topbar {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .proof-row {
    grid-template-columns: 1fr;
  }

  .tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
  }

  .tab {
    min-width: 136px;
  }

  .main-layout > .grid:first-of-type {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-layout > .grid:first-of-type .span-3 {
    grid-column: span 1;
  }

  .span-4, .span-5, .span-6, .span-7, .span-8 {
    grid-column: span 12;
  }

  .span-3 {
    grid-column: span 6;
  }

  .offer-card {
    grid-template-columns: auto 1fr;
  }

  .reward {
    grid-column: 1 / -1;
    text-align: left;
  }

  .earn-list {
    grid-template-columns: 1fr;
  }

  .landing-footer {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-neon-card {
    grid-template-columns: 1fr;
  }

  .account-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .auth-layout, .main-layout {
    padding: 14px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    margin: -14px -14px 16px;
    padding: 14px;
  }

  .user-chip {
    justify-content: flex-start;
  }

  .btn-row .btn {
    flex: 1;
  }

  .hero h1 {
    font-size: 40px;
  }
}
