/* Xalts — luxury dark */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --black: #080808;
  --surface: #0d0d0d;
  --card: rgba(18, 18, 18, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --gold: #c9a227;
  --gold-dim: #a8861f;
  --gold-glow: rgba(201, 162, 39, 0.35);
  --valid: #22c55e;
  --valid-glow: rgba(34, 197, 94, 0.3);
  --expired: #ef4444;
  --expired-glow: rgba(239, 68, 68, 0.3);
  --font-syne: 'Syne', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-syne);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  background: var(--black);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(201, 162, 39, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(255, 255, 255, 0.03), transparent),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(255, 255, 255, 0.02), transparent);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); }

/* Layout */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .wrap { padding: 0 2rem; } }

/* Navbar */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  transition: background 0.3s, border-color 0.3s;
}
@media (min-width: 640px) { .nav { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .nav { padding: 0 2rem; } }
.nav.scrolled {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav a {
  color: inherit;
  text-decoration: none;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
}
.nav-logo svg {
  width: 2rem;
  height: 2rem;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.4));
}
.nav-links {
  display: none;
}
@media (min-width: 768px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
  }
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}
.nav-links a.active { color: var(--gold); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-actions a.discord {
  padding: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
}
.nav-actions a.discord:hover { color: #fff; }
.nav-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.nav-actions .btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.nav-actions .btn-cta {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.25);
}
.nav-actions .btn-cta:hover {
  background: var(--gold-dim);
  box-shadow: 0 0 30px rgba(201, 162, 39, 0.4);
}

/* Glass card */
.glass {
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 30px rgba(255, 255, 255, 0.02);
}

/* Main content area */
.main {
  padding-top: 5rem;
  padding-bottom: 4rem;
  min-height: 100vh;
}

/* Hero */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem 4rem;
}
.hero-logo {
  width: 6rem;
  height: 6rem;
  filter: drop-shadow(0 0 24px rgba(255,255,255,0.5));
}
@media (min-width: 640px) {
  .hero-logo { width: 8rem; height: 8rem; }
}
.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.hero-cta .btn-generate {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: var(--font-syne);
  color: var(--black);
  background: linear-gradient(to right, var(--gold), var(--gold-dim));
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.3s;
}
.hero-cta .btn-generate:hover {
  box-shadow: 0 0 30px rgba(201, 162, 39, 0.4);
}
.hero-stock {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}
.hero-live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.hero-live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--valid);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 8px 2px rgba(34, 197, 94, 0.3); }
}
.hero-live span { font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); }

/* Alt reveal card */
.alt-reveal {
  max-width: 42rem;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}
.alt-reveal .glass {
  padding: 1.5rem;
}
.alt-reveal h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1rem;
}
.token-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.token-display {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: none;
  outline: none;
}
.token-copy {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.token-copy:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.token-copy.copied { color: var(--valid); }
.token-meta {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.token-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid;
}
.token-badge.valid {
  color: var(--valid);
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}
.token-badge.expired {
  color: var(--expired);
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}
.token-tip {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Usage pill */
.usage-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.7);
  max-width: 42rem;
  margin: 0 auto 2rem;
  padding-left: 1.5rem;
}
.usage-pill.at-limit {
  border-color: rgba(201, 162, 39, 0.5);
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold);
}
.usage-pill a { color: var(--gold); text-decoration: none; }
.usage-pill a:hover { text-decoration: underline; }

/* Leaderboard */
.section {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}
.section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin-bottom: 1.5rem;
}
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.leaderboard-table th {
  text-align: left;
  padding: 1rem 1.5rem;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid var(--border);
}
.leaderboard-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.leaderboard-table tr:last-child td { border-bottom: none; }
.leaderboard-table tr.gold-row { background: rgba(201, 162, 39, 0.05); }
.leaderboard-table .rank-1 { font-weight: 600; color: var(--gold); }
.leaderboard-table .rank-n { color: rgba(255, 255, 255, 0.7); }
.leaderboard-table .username { font-weight: 500; color: #fff; }
.leaderboard-table .count { text-align: right; color: rgba(255, 255, 255, 0.8); }

/* Discord widget */
.discord-widget {
  max-width: 36rem;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}
.discord-widget .glass {
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
.discord-widget .icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: rgba(88, 101, 242, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5865F2;
}
.discord-widget .icon svg { width: 2rem; height: 2rem; }
.discord-widget .text { flex: 1; text-align: center; }
@media (min-width: 640px) { .discord-widget .text { text-align: left; } }
.discord-widget .text strong { display: block; color: #fff; }
.discord-widget .text small { font-size: 0.875rem; color: rgba(255, 255, 255, 0.5); }
.discord-widget .btn-join {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: transparent;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.discord-widget .btn-join:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Page title */
.page-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 3rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
.pricing-card {
  padding: 2rem;
  position: relative;
}
.pricing-card.pro {
  border-color: rgba(201, 162, 39, 0.4);
  box-shadow: 0 0 30px rgba(201, 162, 39, 0.15);
}
.pricing-card .badge {
  position: absolute;
  top: -0.75rem;
  right: 1.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.pricing-card h2 { font-size: 1.25rem; font-weight: 600; color: #fff; margin: 0 0 0.25rem; }
.pricing-card .price { font-size: 2.25rem; font-weight: 700; color: rgba(255,255,255,0.9); margin: 0 0 1.5rem; }
.pricing-card.pro .price { color: var(--gold); }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: rgba(255,255,255,0.6); }
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.pricing-card li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
}
.pricing-card li svg { flex-shrink: 0; color: var(--valid); }
.pricing-card.pro li svg { color: var(--gold); }
.pricing-card .btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--font-syne);
  border-radius: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--border);
  color: #fff;
  background: transparent;
  transition: border-color 0.2s, background 0.2s;
}
.pricing-card .btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}
.pricing-card.pro .btn {
  background: linear-gradient(to right, var(--gold), var(--gold-dim));
  color: var(--black);
  border: none;
}
.pricing-card.pro .btn:hover { box-shadow: 0 0 20px rgba(201, 162, 39, 0.25); }
.pricing-card .crypto {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.pricing-card .crypto p { font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); margin: 0 0 0.75rem; }
.pricing-card .crypto-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pricing-card .crypto-badges span {
  display: inline-flex;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid;
}
.pricing-card .crypto-badges .xmr { color: #fb923c; background: rgba(251,146,60,0.1); border-color: rgba(251,146,60,0.3); }
.pricing-card .crypto-badges .ltc { color: #94a3b8; background: rgba(148,163,184,0.1); border-color: rgba(148,163,184,0.3); }
.pricing-card .crypto-badges .btc { color: #f97316; background: rgba(249,115,22,0.1); border-color: rgba(249,115,22,0.3); }
.pricing-card .crypto-badges .pol { color: #a78bfa; background: rgba(167,139,250,0.1); border-color: rgba(167,139,250,0.3); }
.pricing-card .crypto-badges .sol { color: #4ade80; background: rgba(74,222,128,0.1); border-color: rgba(74,222,128,0.3); }

/* FAQ accordion */
.faq-wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem;
}
.faq-list { border-radius: 0.75rem; overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-syne);
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.faq-q:hover { background: rgba(255, 255, 255, 0.02); }
.faq-q svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.2s;
}
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
}
.faq-item.open .faq-a { max-height: 30rem; }
.faq-a-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* Long-form (TOS, Privacy) */
.legal-wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}
.legal-wrap h1 { font-size: 1.875rem; font-weight: 700; color: #fff; margin-bottom: 2rem; }
.legal-wrap h2 { font-size: 1.25rem; font-weight: 600; color: #fff; margin-top: 2rem; margin-bottom: 0.5rem; }
.legal-wrap p { color: rgba(255, 255, 255, 0.8); line-height: 1.7; margin-bottom: 1rem; }
.legal-wrap a { color: var(--gold); text-decoration: none; }
.legal-wrap a:hover { text-decoration: underline; }

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem 3rem;
}
.auth-box {
  width: 100%;
  max-width: 28rem;
  padding: 2rem;
}
.auth-box h1 { font-size: 1.5rem; font-weight: 600; color: #fff; text-align: center; margin-bottom: 1.5rem; }
.auth-box .form-group { margin-bottom: 1rem; }
.auth-box label {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}
.auth-box input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-syne);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  outline: none;
}
.auth-box input::placeholder { color: rgba(255, 255, 255, 0.3); }
.auth-box input:focus { border-color: rgba(255, 255, 255, 0.3); }
.auth-box .error { font-size: 0.875rem; color: var(--expired); margin-bottom: 0.5rem; }
.auth-box .btn-submit {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-syne);
  color: var(--black);
  background: var(--gold);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.auth-box .btn-submit:hover { box-shadow: 0 0 20px rgba(201, 162, 39, 0.35); }
.auth-box .foot {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}
.auth-box .foot a { color: var(--gold); text-decoration: none; }
.auth-box .foot a:hover { text-decoration: underline; }

/* Dashboard */
.dash-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 4rem;
}
.dash-sidebar {
  display: none;
  width: 14rem;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}
@media (min-width: 768px) { .dash-sidebar { display: block; } }
.dash-sidebar .logo {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.dash-sidebar .logo svg { width: 1.75rem; height: 1.75rem; }
.dash-sidebar nav { padding: 1rem; }
.dash-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 0.9375rem;
}
.dash-content {
  flex: 1;
  padding: 1.5rem;
}
@media (min-width: 640px) { .dash-content { padding: 2rem; } }
.dash-content h1 { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 2rem; }
.dash-card { padding: 1.5rem; margin-bottom: 2rem; }
.dash-card h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dash-card .meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; }
.dash-card .meta > div {}
.dash-card .meta label { display: block; color: rgba(255, 255, 255, 0.5); font-size: 0.75rem; }
.dash-card .meta span { color: #fff; font-weight: 500; }
.dash-card .logout {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-syne);
}
.dash-card .logout:hover { color: var(--expired); }
.dash-empty {
  padding: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}
.dash-empty a { color: var(--gold); text-decoration: none; }
.dash-empty a:hover { text-decoration: underline; }
.alt-card { padding: 1.5rem; margin-bottom: 1.5rem; }
.upsell-banner {
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(201, 162, 39, 0.3);
}
.upsell-banner p { margin: 0; color: rgba(255, 255, 255, 0.9); }
.upsell-banner .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-syne);
  color: var(--black);
  background: var(--gold);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

/* Admin */
.admin-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 4rem;
  background: var(--black);
}
.admin-sidebar {
  display: none;
  width: 16rem;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
}
@media (min-width: 768px) { .admin-sidebar { display: block; } }
.admin-sidebar .logo {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.admin-sidebar nav { padding: 1rem; }
.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
  transition: color 0.2s, background 0.2s;
}
.admin-sidebar nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.admin-sidebar nav a.active { color: var(--gold); background: rgba(255, 255, 255, 0.1); border: 1px solid var(--border); }
.admin-main { flex: 1; padding: 1.5rem; overflow: auto; }
@media (min-width: 640px) { .admin-main { padding: 2rem; } }
.admin-main h1 { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 1.5rem; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table th {
  text-align: left;
  padding: 1rem 1.5rem;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover { background: rgba(255, 255, 255, 0.02); }
.admin-table .btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  margin-left: 0.25rem;
}
.admin-table .btn-icon:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.admin-table .btn-icon.banned { border-color: var(--expired); color: var(--expired); }
.admin-search {
  max-width: 24rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.admin-search input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  font-size: 0.875rem;
  font-family: var(--font-syne);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  outline: none;
}
.admin-search input:focus { border-color: rgba(255, 255, 255, 0.3); }
.admin-upload {
  border: 2px dashed var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.admin-upload:hover, .admin-upload.dragover { border-color: rgba(201, 162, 39, 0.5); background: rgba(201, 162, 39, 0.05); }
.admin-upload input[type="file"] { display: none; }
.admin-upload label { cursor: pointer; color: rgba(255, 255, 255, 0.7); }
.admin-stats { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .admin-stats { grid-template-columns: repeat(3, 1fr); } }
.admin-stat-card { padding: 1.5rem; }
.admin-stat-card label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255, 255, 255, 0.5); }
.admin-stat-card .value { font-size: 1.5rem; font-weight: 700; color: #fff; margin-top: 0.25rem; }
.admin-stat-card .sub { font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); margin-top: 0.25rem; }
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.admin-modal .glass {
  max-width: 24rem;
  width: 90%;
  padding: 1.5rem;
}
.admin-modal h3 { font-size: 1.125rem; font-weight: 600; color: #fff; margin: 0 0 1rem; }
.admin-modal .btns { display: flex; gap: 0.75rem; margin-top: 1rem; }
.admin-modal .btns button {
  flex: 1;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-syne);
  border-radius: 0.5rem;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
}
.admin-modal .btns button:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.admin-modal .btns button.active { border-color: var(--gold); background: rgba(201, 162, 39, 0.1); color: var(--gold); }
.admin-modal .close { width: 100%; margin-top: 1rem; padding: 0.5rem; border: 1px solid var(--border); background: transparent; color: rgba(255, 255, 255, 0.7); border-radius: 0.5rem; cursor: pointer; font-family: var(--font-syne); }
.admin-reset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  margin-top: 1rem;
}
.admin-reset-row .confirm { display: flex; align-items: center; gap: 0.5rem; }
.admin-reset-row button {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-family: var(--font-syne);
  border-radius: 0.5rem;
  cursor: pointer;
}
.admin-reset-row .btn-reset { border: 1px solid rgba(239, 68, 68, 0.5); color: var(--expired); background: transparent; }
.admin-reset-row .btn-yes { background: rgba(239, 68, 68, 0.2); color: var(--expired); border: none; }
.admin-reset-row .btn-cancel { border: 1px solid var(--border); color: rgba(255, 255, 255, 0.7); background: transparent; }
.admin-datetime { margin-bottom: 1rem; }
.admin-datetime label { display: block; font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 0.5rem; }
.admin-datetime input {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-family: var(--font-syne);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  outline: none;
}
.admin-msg { font-size: 0.875rem; margin-top: 0.75rem; }
.admin-msg.error { color: var(--expired); }
.admin-msg.success { color: var(--valid); }
.fade-in { animation: fadeIn 0.5s ease-out forwards; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
