:root {
  --bg: #050605;
  --bg-2: #0b0d0b;
  --card: #0e110e;
  --line: #1c221c;
  --line-2: #273027;
  --text: #eef1ec;
  --muted: #8d978a;
  --neon: #53fc18;
  --neon-dim: rgba(83, 252, 24, 0.14);
  --neon-glow: 0 0 24px rgba(83, 252, 24, 0.35);
  --radius: 16px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.neon { color: var(--neon); text-shadow: var(--neon-glow); }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(5, 6, 5, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1.5px solid var(--neon); color: var(--neon);
  box-shadow: var(--neon-glow), inset 0 0 12px rgba(83, 252, 24, 0.2);
  font-weight: 800;
}
.brand-name { font-size: 17px; }
.nav { display: flex; gap: 22px; margin-right: auto; }
.nav a { color: var(--muted); font-weight: 600; font-size: 14px; transition: color .15s; }
.nav a:hover { color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 10px; }

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--bg-2);
  font-size: 14px; font-weight: 700;
}
.user-chip img, .avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  background: var(--line-2);
}
.user-chip .bal { color: var(--neon); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 700; font-size: 15px; font-family: inherit;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s, box-shadow .15s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--neon); color: #041002; box-shadow: var(--neon-glow); }
.btn-primary:hover { box-shadow: 0 0 34px rgba(83, 252, 24, 0.55); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }
.btn-link { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; padding: 0; }
.btn-link:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(800px 380px at 12% 0%, rgba(83, 252, 24, 0.10), transparent 70%),
    radial-gradient(600px 300px at 95% 30%, rgba(83, 252, 24, 0.05), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .25;
  mask-image: radial-gradient(ellipse at 30% 30%, #000 10%, transparent 70%);
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.03em; margin: 18px 0 18px; font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.02em; margin: 6px 0 28px; line-height: 1.15; }
h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.01em; }
.lead { font-size: 18px; color: var(--muted); max-width: 520px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.stream-title { color: var(--muted); font-size: 14px; margin: 18px 0 0; min-height: 22px; }

.live-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--bg-2);
  font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .02em;
}
.live-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #4b524a; }
.live-pill.on { color: var(--neon); border-color: rgba(83, 252, 24, .45); background: var(--neon-dim); }
.live-pill.on .dot { background: var(--neon); box-shadow: 0 0 0 0 rgba(83, 252, 24, .7); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(83,252,24,.6); } 70% { box-shadow: 0 0 0 10px rgba(83,252,24,0); } 100% { box-shadow: 0 0 0 0 rgba(83,252,24,0); } }

/* ---------- cards ---------- */
.card {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; color: var(--neon); margin: 0; }
.me-card { border-color: var(--line-2); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.me-card h3 { font-size: 22px; margin: 10px 0 8px; }
.me-card .muted { margin: 0 0 22px; font-size: 15px; }
.me-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.me-head img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--neon); }
.me-head .name { font-weight: 800; font-size: 18px; }
.badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; background: var(--neon-dim); color: var(--neon); margin-left: 6px; vertical-align: 2px; }
.me-balance { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--neon); text-shadow: var(--neon-glow); }
.me-balance small { font-size: 16px; color: var(--muted); text-shadow: none; font-weight: 700; margin-left: 6px; }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 18px; }
.me-stats div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.me-stats b { display: block; font-size: 18px; }
.me-stats span { font-size: 12px; color: var(--muted); }
.activity { font-size: 14px; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px dashed var(--line-2); color: var(--muted); }
.activity.on { border-style: solid; border-color: rgba(83,252,24,.4); color: var(--neon); background: var(--neon-dim); }

/* ---------- sections ---------- */
.section { padding: 84px 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step p { color: var(--muted); margin: 0; }
.step b { color: var(--text); }
.step-no { display: inline-block; font-weight: 800; font-size: 13px; color: var(--neon); border: 1px solid rgba(83,252,24,.35); border-radius: 8px; padding: 2px 8px; margin-bottom: 18px; }
.note { color: var(--muted); font-size: 14px; margin: 20px 0 0; }

/* ---------- leaderboard ---------- */
.table-card { padding: 6px; overflow: hidden; }
.lb { width: 100%; border-collapse: collapse; }
.lb th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; padding: 14px 16px; }
.lb td { padding: 12px 16px; border-top: 1px solid var(--line); }
.lb .r { text-align: right; }
.lb .rank { width: 56px; font-weight: 800; color: var(--muted); }
.lb tr.top1 .rank { color: var(--neon); text-shadow: var(--neon-glow); }
.lb tr.top2 .rank, .lb tr.top3 .rank { color: var(--text); }
.lb .who { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.lb .points { font-weight: 800; font-variant-numeric: tabular-nums; }
.lb tr.me td { background: var(--neon-dim); }
.lb .empty { text-align: center; color: var(--muted); padding: 34px; }

/* ---------- schedule ---------- */
.schedule { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.day { text-align: center; padding: 18px 10px; }
.day .d { font-size: 13px; color: var(--muted); font-weight: 700; }
.day .t { font-size: 20px; font-weight: 800; margin-top: 6px; }
.day.off .t { color: #48504a; }
.day.today { border-color: rgba(83,252,24,.5); }
.day.today .d { color: var(--neon); }

/* ---------- socials ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.socials .btn { min-width: 150px; }


/* ---------- shop ---------- */
.link { color: var(--neon); text-decoration: underline; text-underline-offset: 3px; }
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.reward { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.reward.off { opacity: .62; }
.r-img { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(120% 120% at 20% 0%, rgba(83,252,24,.22), transparent 60%), var(--bg); border-bottom: 1px solid var(--line); display: grid; place-items: center; }
.r-img img { width: 100%; height: 100%; object-fit: cover; }
.r-img .r-icon { font-size: 40px; font-weight: 800; color: var(--neon); text-shadow: var(--neon-glow); letter-spacing: -0.04em; }
.r-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: rgba(5,6,5,.82); border: 1px solid var(--line-2); color: var(--text); }
.tag.neon { color: var(--neon); border-color: rgba(83,252,24,.45); }
.r-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.r-body h3 { margin: 0; font-size: 17px; }
.r-body .desc { margin: 0; color: var(--muted); font-size: 14px; }
.r-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.r-meta b { color: var(--text); }
.r-cost { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-top: auto; }
.r-cost small { font-size: 13px; color: var(--muted); font-weight: 700; margin-left: 4px; }
.r-winner { font-size: 14px; padding: 10px 12px; border-radius: 10px; background: var(--neon-dim); color: var(--neon); border: 1px solid rgba(83,252,24,.35); }
.reward .btn { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

.my-rewards { margin-top: 34px; }
.my-rewards h3 { margin-bottom: 12px; }
.rd { display: flex; justify-content: space-between; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); margin-bottom: 8px; font-size: 14px; }
.st { font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.st.pending { color: #ffd166; } .st.done { color: var(--neon); } .st.refunded { color: var(--muted); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; }
.modal-box { width: min(440px, 100%); }
.modal-box h3 { font-size: 22px; margin: 8px 0 6px; }
.m-row { margin-top: 18px; }
.m-row label { display: block; font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.m-row input { width: 100%; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; }
.m-row input:focus { outline: none; border-color: var(--neon); }
.qty { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; }
.qty input { text-align: center; font-weight: 800; }
.m-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.m-sum div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.m-sum span { display: block; font-size: 12px; }
.m-sum b { font-size: 18px; }
.m-msg { min-height: 22px; font-size: 14px; margin: 14px 0 0; }
.m-msg.err { color: #ff6b6b; } .m-msg.ok { color: var(--neon); }
.m-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

/* ---------- footer ---------- */
.foot { padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot a:hover { color: var(--neon); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .schedule { grid-template-columns: repeat(4, 1fr); }
  .nav { display: none; }
  .top-in { justify-content: space-between; }
}
@media (max-width: 560px) {
  .hero { padding: 56px 0 48px; }
  .section { padding: 60px 0; }
  .schedule { grid-template-columns: repeat(2, 1fr); }
  .hide-sm { display: none; }
  .table-card { padding: 2px; }
  .lb th, .lb td { padding: 11px 10px; }
  .lb .rank { width: 34px; }
  .lb .who { gap: 8px; }
  .lb .who .avatar { width: 24px; height: 24px; }
  .lb .badge { margin-left: 2px; }
  .user-chip .uname { display: none; }
  .me-balance { font-size: 40px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 0; }
  .section-head .muted { margin: -16px 0 16px; }
  .r-img { aspect-ratio: 3 / 1; }
}
