/* ============================================================
   FableCash — "Enchanted Midnight" design system
   Fraunces (storybook serif) + Inter · aurora glows · glass cards
   --primary is injected from DB settings; shades derive via color-mix
   ============================================================ */
:root {
  --primary: #8b5cf6;
  --primary-deep: color-mix(in srgb, var(--primary) 65%, #1e1145);
  --primary-soft: color-mix(in srgb, var(--primary) 14%, transparent);
  --primary-glow: color-mix(in srgb, var(--primary) 38%, transparent);
  --primary-dark: color-mix(in srgb, var(--primary) 80%, #000);
  --gold: #f5b53f;
  --gold-deep: #d8901c;
  --mint: #34d399;
  --rose: #f4506b;
  --navy: #1e293b;
  --radius: 18px;
  --radius-sm: 12px;
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --shadow-card: 0 10px 34px rgba(5, 4, 18, .35);
  --transition: .22s cubic-bezier(.4, 0, .2, 1);
}

[data-theme="dark"] {
  --bg: #0b0a19;
  --bg2: #131126;
  --card: #16142d;
  --card-solid: #16142d;
  --border: #2c2850;
  --border-glow: color-mix(in srgb, var(--primary) 45%, #2c2850);
  --text: #ece9f8;
  --muted: #9d97be;
  --input-bg: #0e0c20;
  --nav-bg: color-mix(in srgb, #0b0a19 78%, transparent);
  --aurora-opacity: 1;
}
[data-theme="light"] {
  --bg: #f6f4fc;
  --bg2: #ffffff;
  --card: #ffffff;
  --card-solid: #ffffff;
  --border: #e4dff2;
  --border-glow: color-mix(in srgb, var(--primary) 40%, #e4dff2);
  --text: #211c3f;
  --muted: #6f6a8f;
  --input-bg: #faf9fe;
  --nav-bg: color-mix(in srgb, #ffffff 78%, transparent);
  --aurora-opacity: .5;
  --shadow-card: 0 10px 30px rgba(88, 66, 160, .1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }

/* ---------- enchanted background (stars + aurora) ----------
   Static gradients (no filters, no animation) — cheap to composite. */
.site-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  pointer-events: none; opacity: var(--aurora-opacity, 1);
  background:
    radial-gradient(ellipse 60% 45% at 12% -5%, color-mix(in srgb, var(--primary) 17%, transparent), transparent 70%),
    radial-gradient(ellipse 45% 40% at 95% 12%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 70%);
}
#stars { position: absolute; inset: 0; width: 100%; height: 100%; }
[data-theme="light"] #stars { opacity: .35; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.22; margin-bottom: .5rem; letter-spacing: -.01em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; margin-top: .5rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.1rem; }
.muted { color: var(--muted); font-size: .92rem; }
.center { text-align: center; }
.section { padding: 3rem 1rem; }
.huge { font-size: 5rem; }
.center-page { text-align: center; padding: 6rem 1rem; }
.pos { color: var(--mint); font-weight: 600; }
.neg { color: var(--rose); font-weight: 600; }
code { background: var(--input-bg); border: 1px solid var(--border); padding: 2px 6px; border-radius: 6px; font-size: .85em; word-break: break-all; }
.code-block { display: block; padding: .8rem; margin: .5rem 0; }

/* section headers */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .35rem;
}
.section-eyebrow::before { content: '✦'; color: var(--primary); }
.section-head { margin-bottom: 1.4rem; }
.section-head p { color: var(--muted); max-width: 560px; }

/* ---------- nav ---------- */
.navbar {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner { display: flex; align-items: center; gap: 1.4rem; height: 66px; }
.logo {
  font-family: var(--font-head); font-weight: 700; font-size: 1.32rem;
  color: var(--text); display: flex; align-items: center; gap: .5rem; letter-spacing: -.01em;
}
.logo:hover { text-decoration: none; }
.logo img { height: 36px; }
.logo-mark { display: inline-flex; width: 30px; height: 30px; filter: drop-shadow(0 0 8px var(--primary-glow)); }
.logo-mark svg { width: 100%; height: 100%; }
.nav-links { display: flex; gap: .25rem; }
.nav-link {
  color: var(--muted); font-weight: 550; font-size: .95rem;
  padding: .42rem .85rem; border-radius: 999px; transition: var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--primary-soft); text-decoration: none; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: .7rem; }
.points-pill {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #241703; font-weight: 700; padding: .38rem .85rem; border-radius: 999px;
  display: flex; align-items: center; gap: .4rem; font-size: .9rem;
  box-shadow: 0 3px 14px color-mix(in srgb, var(--gold) 35%, transparent);
  transition: var(--transition);
}
.points-pill:hover { text-decoration: none; transform: translateY(-1px) scale(1.03); }
.pill-usd { opacity: .78; font-weight: 600; font-size: .8rem; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-block; border: none; cursor: pointer; font-family: var(--font-body);
  font-weight: 600; border-radius: 12px; padding: .65rem 1.35rem; font-size: .95rem;
  transition: var(--transition); text-align: center; position: relative; overflow: hidden;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  box-shadow: 0 4px 18px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { box-shadow: 0 8px 28px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .5s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #241703;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--gold) 32%, transparent);
}
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-glow); background: var(--primary-soft); }
.btn-sm { padding: .38rem .9rem; font-size: .85rem; }
.btn-lg { padding: .85rem 1.9rem; font-size: 1.05rem; border-radius: 14px; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

label { display: block; font-size: .88rem; font-weight: 500; margin: .85rem 0 .3rem; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: .7rem .9rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--input-bg); color: var(--text); font-family: var(--font-body); font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.checkbox { display: flex; align-items: center; gap: .5rem; }
.checkbox input { width: auto; }
form button[type=submit] { margin-top: 1rem; }
.inline-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; flex: 1; min-width: 130px; }
.inline-form button { margin-top: 0; }

/* ---------- cards & grids ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem;
  box-shadow: var(--shadow-card);
  position: relative;
}
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 4.5rem 0 3.5rem; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--primary-soft); border: 1px solid var(--border-glow);
  color: var(--text); font-size: .82rem; font-weight: 600;
  padding: .35rem .95rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.hero-badge .spark { color: var(--gold); animation: sparkPulse 2.4s ease-in-out infinite; }
@keyframes sparkPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.82); } }
.hero-text h1 {
  font-size: 3.1rem; font-weight: 640; letter-spacing: -.02em; line-height: 1.12;
  background: linear-gradient(96deg, var(--text) 20%, var(--primary) 62%, var(--gold) 98%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-text > p { margin: 1.1rem 0 1.7rem; color: var(--muted); font-size: 1.12rem; max-width: 34rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.hero-proof { display: flex; gap: 2.2rem; margin-top: 2.2rem; flex-wrap: wrap; }
.proof-item strong {
  display: block; font-family: var(--font-head); font-size: 1.55rem; font-weight: 640;
  color: var(--text);
}
.proof-item span { font-size: .82rem; color: var(--muted); }
.hero-card {
  background: var(--card); border: 1px solid var(--border-glow); border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 0 18px 50px rgba(5, 4, 18, .4), 0 0 40px var(--primary-soft);
}
.feed-head { display: flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 color-mix(in srgb, var(--mint) 55%, transparent); animation: livePulse 1.8s infinite; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mint) 55%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------- live feed ---------- */
.feed { list-style: none; margin-top: .8rem; max-height: 310px; overflow: hidden; }
.feed li {
  padding: .6rem 0; border-bottom: 1px dashed var(--border); font-size: .9rem;
  animation: feedIn .4s ease; display: flex; flex-wrap: wrap; gap: .3rem; align-items: baseline;
}
.feed li strong { color: var(--gold); font-weight: 650; }
.feed li:last-child { border-bottom: none; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- stats / trust strip ---------- */
.stats-bar { border-block: 1px solid var(--border); background: color-mix(in srgb, var(--bg2) 60%, transparent); }
.stats-inner { display: flex; justify-content: space-around; padding: 1.2rem 0; flex-wrap: wrap; gap: 1rem; }
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--gold); }
.stat span { font-size: .85rem; color: var(--muted); }

.trust-strip { display: flex; gap: .8rem 2rem; flex-wrap: wrap; align-items: center; padding: 1rem 0; }
.trust-item { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .88rem; font-weight: 550; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: .5rem; margin: 1.3rem 0; flex-wrap: wrap; }
.tab {
  padding: .48rem 1.15rem; border-radius: 999px; border: 1px solid var(--border);
  color: var(--muted); font-weight: 550; font-size: .9rem; background: var(--card);
  transition: var(--transition);
}
.tab:hover { text-decoration: none; border-color: var(--border-glow); color: var(--text); transform: translateY(-1px); }
.tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff; border-color: transparent; box-shadow: 0 3px 14px var(--primary-glow);
}

/* ---------- provider / gift cards ---------- */
.provider-card, .giftcard {
  text-align: center; display: flex; flex-direction: column; gap: .4rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.provider-card:hover, .giftcard:hover {
  transform: translateY(-4px); border-color: var(--border-glow);
  box-shadow: var(--shadow-card), 0 0 30px var(--primary-soft);
}
.provider-card .btn, .giftcard .btn { margin-top: auto; }
.provider-logo {
  width: 64px; height: 64px; margin: 0 auto .4rem; border-radius: 18px;
  background: linear-gradient(140deg, var(--primary), var(--primary-deep) 70%);
  color: #fff; font-family: var(--font-head); font-size: 1.7rem; font-weight: 650;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: 0 6px 18px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.provider-logo img { width: 100%; height: 100%; object-fit: cover; }
.stars { color: var(--gold); font-size: .95rem; }
.rate-form { display: flex; gap: 2px; justify-content: center; align-items: center; margin-top: .3rem; }
.star-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 0 1px; margin-top: 0 !important; transition: color .15s, transform .15s; }
.star-btn:hover { color: var(--gold); transform: scale(1.25); }

/* ---------- steps / how it works ---------- */
.steps { position: relative; }
.step { text-align: center; }
.step-num {
  width: 52px; height: 52px; margin: 0 auto .8rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff; font-family: var(--font-head);
  font-weight: 650; font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 5px var(--primary-soft), 0 6px 18px var(--primary-glow);
}
.step h3 { font-size: 1.15rem; }

/* ---------- levels journey ---------- */
.journey { display: flex; gap: .7rem; flex-wrap: wrap; align-items: stretch; }
.journey-step {
  flex: 1; min-width: 130px; text-align: center; padding: 1rem .6rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: transform var(--transition), border-color var(--transition);
}
.journey-step:hover { transform: translateY(-3px); border-color: var(--border-glow); }
.journey-step .j-icon { font-size: 1.5rem; display: block; margin-bottom: .2rem; }
.journey-step .j-name { font-family: var(--font-head); font-weight: 650; }
.journey-step .j-req { font-size: .78rem; color: var(--muted); }

/* ---------- rewards showcase ---------- */
.reward-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.reward-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: .45rem 1.05rem; font-weight: 600; font-size: .9rem; color: var(--text);
  transition: var(--transition);
}
.reward-chip:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 4px 14px color-mix(in srgb, var(--gold) 20%, transparent); }

/* ---------- CTA panel ---------- */
.cta-panel {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid var(--border-glow); border-radius: 24px;
  padding: 3.2rem 1.5rem;
  background:
    radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 55%),
    radial-gradient(ellipse at 85% 100%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 55%),
    var(--card-solid);
  box-shadow: 0 20px 60px rgba(5, 4, 18, .45), 0 0 60px var(--primary-soft);
}
.cta-panel h2 { font-size: 2rem; font-weight: 640; }
.cta-panel p { color: var(--muted); max-width: 480px; margin: .5rem auto 1.5rem; }

/* ---------- faq ---------- */
.faq-list { display: flex; flex-direction: column; gap: .7rem; }
.faq-item summary {
  cursor: pointer; font-weight: 600; font-family: var(--font-head); font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '✦'; color: var(--primary); font-size: .85rem; transition: transform .25s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(135deg); color: var(--gold); }
.faq-item p { margin-top: .6rem; }

/* ---------- withdraw ---------- */
.withdraw-header {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  border-color: var(--border-glow);
  background:
    radial-gradient(ellipse at 90% 10%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 55%),
    var(--card);
}
.withdraw-header h1 { margin-bottom: .2rem; }
.balance-box { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.balance-box strong { font-family: var(--font-head); font-size: 1.9rem; color: var(--gold); line-height: 1.2; }
.balance-usd { color: var(--muted); font-size: .9rem; }
.balance-progress { width: 200px; max-width: 100%; margin-top: .6rem; }
.balance-note { font-size: .78rem; }
.balance-box .badge { margin-top: .5rem; }
.withdraw-meta { display: flex; gap: .7rem 2rem; flex-wrap: wrap; margin: 1.1rem .2rem 0; }
.giftcard .provider-logo {
  background: linear-gradient(140deg, var(--gold), var(--gold-deep) 75%);
  font-size: 1.6rem;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--gold) 30%, transparent), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.giftcard:hover { border-color: color-mix(in srgb, var(--gold) 45%, var(--border)); box-shadow: var(--shadow-card), 0 0 26px color-mix(in srgb, var(--gold) 14%, transparent); }
.giftcard h3 { font-size: 1.12rem; margin-bottom: 0; }
.giftcard-range { font-size: .84rem; }
.giftcard form label { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; margin: .55rem 0 .2rem; }
.giftcard select { font-size: .88rem; }
.giftcard form button[type=submit] { margin-top: .8rem; }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem;
  font-weight: 600; background: var(--border); color: var(--text);
}
.badge-pending, .badge-hold { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.badge-approved, .badge-earn, .badge-bonus, .badge-referral, .badge-refund { background: color-mix(in srgb, var(--mint) 15%, transparent); color: var(--mint); }
.badge-rejected, .badge-withdraw, .badge-expiry { background: color-mix(in srgb, var(--rose) 15%, transparent); color: var(--rose); }
.badge-admin { background: var(--primary-soft); color: var(--primary); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
th, td { padding: .6rem .65rem; border-bottom: 1px solid var(--border); }
tbody tr { transition: background .15s; }
tr:hover td { background: color-mix(in srgb, var(--primary) 4%, transparent); }
tr:last-child td { border-bottom: none; }
.low-stock td { color: var(--gold); }
.pagination { display: flex; gap: 1rem; margin-top: 1rem; align-items: center; }

/* ---------- profile ---------- */
.big-number { font-family: var(--font-head); font-size: 1.9rem; font-weight: 650; color: var(--gold); }
.level-badge {
  display: inline-block; padding: .28rem 1.05rem; border-radius: 999px; font-weight: 650;
  font-family: var(--font-head); font-size: .9rem; margin: .5rem 0;
  border: 1px solid transparent;
}
.level-bronze { background: rgba(180, 110, 60, .16); color: #d18a4a; border-color: rgba(180, 110, 60, .35); }
.level-silver { background: rgba(170, 175, 190, .14); color: #b6bdc9; border-color: rgba(170, 175, 190, .35); }
.level-gold { background: rgba(245, 181, 63, .14); color: var(--gold); border-color: rgba(245, 181, 63, .4); }
.level-platinum { background: rgba(125, 211, 252, .12); color: #7dd3fc; border-color: rgba(125, 211, 252, .35); }
.level-diamond { background: rgba(167, 139, 250, .14); color: #b6a2fc; border-color: rgba(167, 139, 250, .45); box-shadow: 0 0 14px rgba(167, 139, 250, .25); }
.progress { height: 10px; background: var(--input-bg); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; margin: .5rem 0 .3rem; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--gold)); border-radius: 999px; transition: width .8s ease; box-shadow: 0 0 10px var(--primary-glow); }
.ref-box { display: flex; gap: .5rem; margin: .6rem 0; }
.ref-box input { flex: 1; font-size: .8rem; }
.ref-box .btn { margin-top: 0; }
.share-btns { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.share-btns a {
  font-size: .82rem; padding: .32rem .75rem; border: 1px solid var(--border);
  border-radius: 999px; color: var(--text); transition: var(--transition);
}
.share-btns a:hover { border-color: var(--border-glow); background: var(--primary-soft); text-decoration: none; transform: translateY(-1px); }

/* honeypot field — hidden from humans, bots fill it in */
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ---------- auth ---------- */
.auth-page { display: flex; justify-content: center; padding: 3.5rem 1rem; }
.auth-card { width: 100%; max-width: 430px; padding: 1.9rem; border-color: var(--border-glow); box-shadow: var(--shadow-card), 0 0 50px var(--primary-soft); }
.auth-card h1 { font-size: 1.7rem; }
.auth-spark { font-size: 1.9rem; display: block; margin-bottom: .4rem; filter: drop-shadow(0 0 10px var(--primary-glow)); }

/* ---------- flash ---------- */
.flashes { padding-top: 1rem; }
.flash { padding: .75rem 1.05rem; border-radius: var(--radius-sm); margin-bottom: .6rem; font-size: .92rem; }
.flash-success { background: color-mix(in srgb, var(--mint) 12%, transparent); color: var(--mint); border: 1px solid color-mix(in srgb, var(--mint) 32%, transparent); }
.flash-error { background: color-mix(in srgb, var(--rose) 12%, transparent); color: var(--rose); border: 1px solid color-mix(in srgb, var(--rose) 32%, transparent); }
.flash-message { background: var(--card); border: 1px solid var(--border); }
.announcement { padding: .75rem 1.05rem; border-radius: var(--radius-sm); font-size: .92rem;
  background: color-mix(in srgb, var(--gold) 10%, transparent); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--gold) 32%, transparent); }

/* ---------- wall ---------- */
.wall-header { margin-bottom: 1rem; }
.wall-frame-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-glow); box-shadow: var(--shadow-card); }
.wall-frame { width: 100%; height: 75vh; border: none; display: block; background: #fff; }

/* ---------- footer & mobile nav ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 3.5rem; padding: 2.5rem 0 1rem; background: color-mix(in srgb, var(--bg2) 55%, transparent); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.4rem; }
.footer-brand { max-width: 320px; }
.footer-brand .muted { margin-top: .5rem; }
.footer-trust { display: flex; flex-direction: column; gap: .35rem; margin-top: .9rem; }
.footer-trust span { font-size: .82rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.3rem; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--muted); font-size: .9rem; transition: color .15s; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: .4rem; min-width: 120px; }
.footer-col strong { font-family: var(--font-head); font-size: .95rem; margin-bottom: .2rem; }
.footer-col a { color: var(--muted); font-size: .88rem; }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 1.1rem; }

.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  border-top: 1px solid var(--border);
  justify-content: space-around; padding: .5rem 0 calc(.5rem + env(safe-area-inset-bottom));
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--muted); font-size: .7rem; font-weight: 600;
}
.bottom-nav a span { font-size: 1.25rem; }
.bottom-nav a:hover { color: var(--primary); text-decoration: none; }

/* ---------- admin ---------- */
.admin-body { display: flex; flex-direction: row; min-height: 100vh; }
.admin-sidebar {
  width: 232px; flex-shrink: 0; background: var(--bg2);
  border-right: 1px solid var(--border); position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar nav { display: flex; flex-direction: column; }
.admin-sidebar nav a {
  padding: .7rem 1.2rem; color: var(--muted); font-size: .92rem; font-weight: 500;
  border-left: 3px solid transparent; transition: var(--transition);
}
.admin-sidebar nav a:hover { background: var(--primary-soft); color: var(--text); border-left-color: var(--primary); text-decoration: none; }
.admin-main { flex: 1; padding: 1.5rem 2rem; max-width: calc(100% - 232px); }
.stat-card strong { font-family: var(--font-head); font-size: 1.3rem; display: block; margin: .2rem 0; }
.content-row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--border); align-items: center; }
.action-list { display: flex; flex-direction: column; gap: .5rem; }
.action-list .btn { margin-top: 0; }

.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 1rem; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.bar { width: 100%; min-height: 3px; background: linear-gradient(180deg, var(--primary), var(--primary-deep)); border-radius: 4px 4px 0 0; }
.bar-label { font-size: .65rem; color: var(--muted); margin-top: 4px; }

/* ---------- confetti ---------- */
#confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 100; }

/* ---------- points credit animation ---------- */
@keyframes pointsPop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.points-pop { animation: pointsPop .5s ease; }

/* ---------- page content ---------- */
.page-content p { margin-bottom: .8rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-text h1 { font-size: 2.3rem; }
  .admin-main { padding: 1rem; max-width: 100%; }
  .admin-sidebar { width: 64px; }
  .admin-sidebar nav a { padding: .7rem .4rem; text-align: center; font-size: 1.1rem; overflow: hidden; white-space: nowrap; }
  .admin-sidebar .logo { display: none; }
}
@media (max-width: 640px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hide-mobile { display: none; }
  .bottom-nav { display: flex; }
  .section { padding: 1.8rem .5rem; }
  h1 { font-size: 1.55rem; }
  .hero-text h1 { font-size: 1.95rem; }
  .hero-proof { gap: 1.3rem; }
  .cta-panel { padding: 2.2rem 1.1rem; }
  .withdraw-header { flex-direction: column; align-items: flex-start; }
  .balance-box { text-align: left; align-items: flex-start; }
}
