/* ═══════════════════════════════════════════════════════════════════════════
   KickCase — global stylesheet
   Kick.com-inspired: near-black background, signature lime green #53fc18
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:        #53fc18;
  --green-dim:    #3bc912;
  --green-glow:   rgba(83, 252, 24, .18);
  --bg:           #0a0b0d;
  --surface:      #111318;
  --card:         #16191f;
  --border:       rgba(255, 255, 255, .07);
  --border-green: rgba(83, 252, 24, .3);
  --text:         #ffffff;
  --muted:        #7a7f8a;
  --danger:       #ff0044;
  --warn:         #ffc107;
}

html {
  scroll-behavior: smooth;
  /* anchors land clear of the sticky nav */
  scroll-padding-top: 76px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--green); color: #000; }

/* Keyboard accessibility — visible focus ring on anything interactive */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #23262d; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #2e323b; }

code {
  font-family: 'SF Mono', 'Courier New', monospace;
  background: rgba(83, 252, 24, .08);
  color: var(--green);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
}

/* ── NAV ───────────────────────────────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 13, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .25s, box-shadow .25s;
}
nav.scrolled {
  background: rgba(10, 11, 13, .94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.3px;
  color: var(--text);
}
.nav-logo span { color: var(--green); }
.nav-logo-img {
  width: 28px;
  height: 28px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(83, 252, 24, .35));
}
.nav-logo-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .15s;
}
.nav-link:hover { color: var(--text); }
.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity .15s, box-shadow .15s;
}
.btn-nav svg { width: 13px; height: 13px; flex-shrink: 0; }
.btn-nav:hover { opacity: .88; box-shadow: 0 0 16px var(--green-glow); }

/* ── BUTTONS ───────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity .15s, transform .1s, box-shadow .15s, border-color .15s, color .15s;
  line-height: 1;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn-primary { background: var(--green); color: #000; }
.btn-primary:hover:not(:disabled) { opacity: .88; box-shadow: 0 0 24px var(--green-glow); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 10px; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 6px; }
.btn-danger { background: var(--danger); color: #fff; }

/* ── CARDS / BADGES ────────────────────────────────────────────────────────── */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.card-green { border-color: var(--border-green); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(83, 252, 24, .1);
  border: 1px solid rgba(83, 252, 24, .25);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}
.badge-dot {
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

/* ── FORMS ─────────────────────────────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .4px;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--green); }
.field input::placeholder { color: #4a4e57; }
.field textarea { resize: vertical; min-height: 80px; }
.field select { cursor: pointer; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-info { display: flex; flex-direction: column; gap: 2px; }
.toggle-info strong { font-size: 14px; font-weight: 600; }
.toggle-info span { font-size: 12px; color: var(--muted); }
.toggle { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .1);
  border-radius: 11px;
  cursor: pointer;
  transition: .2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: .2s;
}
.toggle input:checked + .toggle-slider { background: rgba(83, 252, 24, .25); }
.toggle input:checked + .toggle-slider::before {
  transform: translateX(18px);
  background: var(--green);
}

.save-note {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  opacity: 0;
  transition: opacity .3s;
  margin-left: 12px;
}

/* ── COPY WIDGET ───────────────────────────────────────────────────────────── */

.copy-wrap {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.copy-text {
  flex: 1;
  padding: 10px 14px;
  font-family: 'SF Mono', 'Courier New', monospace;
  font-size: 13px;
  color: var(--green);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.copy-btn {
  padding: 10px 14px;
  background: rgba(83, 252, 24, .1);
  border: none;
  border-left: 1px solid var(--border);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  font-family: inherit;
}
.copy-btn:hover { background: rgba(83, 252, 24, .2); }
.copy-btn.copied { color: var(--text); }

/* ── TOAST ─────────────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--card);
  border: 1px solid var(--border-green);
  color: var(--green);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ── LAYOUT / FOOTER / UTIL ────────────────────────────────────────────────── */

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
footer a { color: var(--green); text-decoration: none; }

.text-green  { color: var(--green); }
.text-muted  { color: var(--muted); }
.text-white  { color: var(--text); }
.text-center { text-align: center; }
.mt-3  { margin-top: 12px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-14 { margin-bottom: 14px; }
.mb-20 { margin-bottom: 20px; }
.pt-0  { padding-top: 0; }
.w-full { width: 100%; }
.flex  { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }
.cell-strong { font-weight: 700; }

/* Card that wraps a full-bleed table (landing page commands table) */
.table-card { margin-top: 32px; padding: 0; overflow: hidden; }

.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.section-sub { font-size: 16px; color: var(--muted); max-width: 500px; }

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.hero {
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(83, 252, 24, .13) 0%, transparent 70%);
  pointer-events: none;
  animation: hero-glow 9s ease-in-out infinite alternate;
}
/* faint blueprint grid behind the hero, fading out towards the edges */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 30%, transparent 75%);
  pointer-events: none;
}
@keyframes hero-glow {
  from { opacity: .75; transform: translateX(-50%) scale(.96); }
  to   { opacity: 1.15; transform: translateX(-50%) scale(1.06); }
}
/* entrance — badge, headline, sub, CTAs rise in one after another */
.hero > * {
  position: relative;
  z-index: 1;
  animation: rise-in .7s cubic-bezier(.16, 1, .3, 1) both;
}
.hero > *:nth-child(2) { animation-delay: .1s; }
.hero > *:nth-child(3) { animation-delay: .2s; }
.hero > *:nth-child(4) { animation-delay: .32s; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.hero-badge { margin-bottom: 24px; position: relative; }
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.08;
  margin-bottom: 20px;
  position: relative;
}
.hero h1 em { color: var(--green); font-style: normal; }
.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
  position: relative;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color .2s, transform .2s, box-shadow .25s;
}
.step-card:hover {
  border-color: var(--border-green);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35), 0 0 24px rgba(83, 252, 24, .07);
}
.step-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .25s;
}
.feature-card:hover {
  border-color: var(--border-green);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35), 0 0 24px rgba(83, 252, 24, .07);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(83, 252, 24, .1);
  border: 1px solid rgba(83, 252, 24, .2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.7;
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

table { width: 100%; border-collapse: collapse; margin-top: 0; }
thead th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:last-child { border-bottom: none; }
tbody td { padding: 14px 16px; font-size: 14px; vertical-align: top; }
.cmd-table tbody td:first-child {
  font-family: 'SF Mono', 'Courier New', monospace;
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
}
.cmd-table tbody td:last-child { color: var(--muted); }

.split-box {
  background: var(--card);
  border: 1px solid var(--border-green);
  border-radius: 16px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 48px;
}
.split-you { border-right: 1px solid var(--border); padding-right: 32px; }
.split-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.split-pct {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
}
.split-pct.green { color: var(--green); text-shadow: 0 0 40px var(--green-glow); }
.split-pct.dim   { color: rgba(255, 255, 255, .2); }
.split-desc { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
@media (max-width: 640px) {
  .split-box { grid-template-columns: 1fr; }
  .split-you { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 24px; }
}

.cta-band {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.cta-band p { font-size: 16px; color: var(--muted); margin-bottom: 32px; }

/* ═══════════════════════════════════════════════════════════════════════════
   CONNECT PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.connect-wrap {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.connect-box { width: 100%; max-width: 460px; }
.connect-logo { text-align: center; margin-bottom: 40px; }
.connect-logo .logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
}
.connect-logo .logo-mark span { color: var(--green); }
.logo-dot-lg {
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--green);
}
.logo-img-lg {
  width: 56px;
  height: 56px;
  display: block;
  filter: drop-shadow(0 0 14px rgba(83, 252, 24, .4));
}
.connect-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
}
.connect-card h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 8px;
}
.connect-card .sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}
.kick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 24px;
  background: var(--green);
  color: #000;
  font-weight: 800;
  font-size: 15px;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity .15s, transform .1s, box-shadow .15s;
  letter-spacing: -.2px;
}
.kick-btn:hover  { opacity: .88; box-shadow: 0 0 24px var(--green-glow); }
.kick-btn:active { transform: scale(.98); }
.kick-btn svg { flex-shrink: 0; }

.perms-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.perm-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.perm-check {
  width: 18px;
  height: 18px;
  background: rgba(83, 252, 24, .12);
  border: 1px solid rgba(83, 252, 24, .3);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.perm-check svg { width: 10px; height: 10px; }
.perm-item .perm-text { color: var(--muted); }
.perm-item .perm-text strong { color: var(--text); }

.notice {
  background: rgba(83, 252, 24, .05);
  border: 1px solid rgba(83, 252, 24, .12);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 24px;
}
.notice strong { color: var(--green); }

.error-banner {
  background: rgba(255, 0, 68, .08);
  border: 1px solid rgba(255, 0, 68, .25);
  color: #ff4466;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.error-banner svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke-width: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════════════════════ */

.dash-wrap { max-width: 860px; margin: 0 auto; padding: 40px 24px 80px; }

/* ── Sidebar panel layout ─────────────────────────────────────────────── */
.dash-layout {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 60px);
}
.dash-side {
  width: 232px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}
.side-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px;
}
.side-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(83, 252, 24, .3), rgba(83, 252, 24, .05));
  border: 2px solid var(--border-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--green);
  flex-shrink: 0;
}
.side-avatar-img { object-fit: cover; font-size: 0; }
.side-profile-info { display: flex; flex-direction: column; min-width: 0; }
.side-profile-info strong {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
}
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background .12s, color .12s;
}
.side-item svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: currentColor;
  flex-shrink: 0;
}
.side-item svg [stroke-width] { fill: none; }
.side-item:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.side-item.active {
  color: var(--green);
  background: rgba(83, 252, 24, .08);
}
.side-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 12px 0;
  border-top: 1px solid var(--border);
}
.side-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.side-link:hover { color: var(--green); }
.side-link-dim { color: var(--muted); }

.dash-main {
  flex: 1;
  min-width: 0;
  padding: 32px 28px 80px;
}
.dash-sec { display: none; }
.dash-sec.active { display: block; animation: secfade .15s ease; }
@keyframes secfade { from { opacity: 0; transform: translateY(4px); } }
.sec-head { margin-bottom: 22px; }
.sec-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.sec-head p { font-size: 14px; color: var(--muted); margin-top: 3px; }
.dash-main .section-card { margin-bottom: 16px; }
.dash-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Stat tiles */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.stat-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.stat-num {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--green);
}
.stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
  margin-top: 2px;
}
.rank-cell { color: var(--muted); font-weight: 700; width: 40px; }

@media (max-width: 760px) {
  .dash-layout { flex-direction: column; }
  .dash-side {
    width: 100%;
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px;
  }
  .side-nav { flex-direction: row; overflow-x: auto; }
  .side-item { white-space: nowrap; }
  .side-bottom { flex-direction: row; border-top: none; padding: 0 12px; }
  .dash-main { padding: 24px 16px 60px; }
  .dash-grid2 { grid-template-columns: 1fr; }
}
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.dash-header-left h1 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.dash-header-left p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.dash-header-actions { display: flex; gap: 10px; align-items: center; }
.online-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(83, 252, 24, .08);
  border: 1px solid rgba(83, 252, 24, .2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
}
.online-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-full { grid-column: 1 / -1; }

.section-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.section-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-card-header h2 { font-size: 14px; font-weight: 700; letter-spacing: -.2px; }
.section-card-header span { font-size: 12px; color: var(--muted); }
.section-card-body { padding: 20px; }
.section-card-body.flush { padding: 0; }

.donate-link-card {
  background: var(--card);
  border: 1px solid var(--border-green);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.donate-link-card .dlabel {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  margin-bottom: 10px;
}

.coin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.coin-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  transition: all .15s;
  font-family: inherit;
}
.coin-tab svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }
.coin-tab.active {
  background: rgba(83, 252, 24, .1);
  border-color: var(--border-green);
  color: var(--green);
}

/* Bot identity card */
.bot-id-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.bot-id-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  margin-bottom: 4px;
}
.bot-id-name {
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.id-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--muted);
}
.id-pill-bot {
  background: rgba(83, 252, 24, .1);
  border-color: var(--border-green);
  color: var(--green);
}
.bot-id-note {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.bot-id-note strong { color: var(--green); }

/* Chat command toggles */
.cmd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
  margin-bottom: 20px;
}
@media (max-width: 620px) { .cmd-grid { grid-template-columns: 1fr; } }
.cmd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.cmd-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cmd-info strong {
  font-size: 13px;
  font-weight: 700;
  font-family: 'SF Mono', 'Courier New', monospace;
  color: var(--green);
}
.cmd-info span { font-size: 11px; color: var(--muted); }

.behavior-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
}
@media (max-width: 620px) { .behavior-grid { grid-template-columns: 1fr; } }

.don-table { width: 100%; border-collapse: collapse; margin: 0; }
.don-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.don-table td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.don-table tr:last-child td { border-bottom: none; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.status-confirmed { background: rgba(83, 252, 24, .1);  color: var(--green); }
.status-pending   { background: rgba(255, 193, 7, .1);  color: var(--warn); }
.status-paid_out  { background: rgba(99, 102, 241, .12); color: #818cf8; }
.status-failed    { background: rgba(255, 0, 68, .1);   color: var(--danger); }
.don-empty { text-align: center; padding: 32px; color: var(--muted); font-size: 14px; }

/* ═══════════════════════════════════════════════════════════════════════════
   DONATE PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.donate-wrap {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px 80px;
}
.donate-box { width: 100%; max-width: 500px; }

.streamer-header { text-align: center; margin-bottom: 32px; }
.streamer-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(83, 252, 24, .3), rgba(83, 252, 24, .05));
  border: 2px solid var(--border-green);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: var(--green);
  margin-bottom: 12px;
}
.streamer-avatar-img {
  object-fit: cover;
  font-size: 0;
}
.streamer-header h1 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 4px; }
.streamer-header p { font-size: 14px; color: var(--muted); }

.steps { display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  transition: all .2s;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step-dot.active { background: var(--green); border-color: var(--green); color: #000; }
.step-dot.done {
  background: rgba(83, 252, 24, .15);
  border-color: var(--border-green);
  color: var(--green);
}
.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 4px;
  transition: background .2s;
  max-width: 60px;
}
.step-line.done { background: var(--green); }

.panel {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.panel.active { display: block; }
.panel h2 { font-size: 18px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 4px; }
.panel .panel-sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.panel .field { margin-bottom: 14px; }
.panel-actions { display: flex; gap: 10px; margin-top: 6px; }
.panel-actions .grow { flex: 1; }

.coin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.coin-card {
  /* rendered as <button> for keyboard accessibility */
  font: inherit;
  color: inherit;
  width: 100%;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.coin-card:hover { border-color: rgba(83, 252, 24, .4); transform: translateY(-2px); }
.coin-card.selected { border-color: var(--green); background: rgba(83, 252, 24, .05); }
.coin-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  margin-bottom: 8px;
}
.coin-icon svg { width: 30px; height: 30px; }
.coin-icon-ton svg    { fill: #0098ea; }   /* official TON blue      */
.coin-icon-tether svg { fill: #50af95; }   /* official Tether green  */
.coin-icon-tron svg   { fill: #ff060a; }   /* official TRON red      */
.coin-icon-bnb svg    { fill: #f0b90b; }   /* official BNB yellow    */

/* Exact-amount box */
.pay-amount-box {
  background: rgba(83, 252, 24, .06);
  border: 1px solid var(--border-green);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  margin-bottom: 14px;
}
.pay-amount-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  margin-bottom: 6px;
}
.pay-amount-value {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--green);
  font-family: 'SF Mono', 'Courier New', monospace;
  word-break: break-all;
  line-height: 1.2;
}
.pay-amount-sym { font-size: 16px; font-weight: 800; color: var(--text); }
.pay-amount-copy {
  margin-top: 10px;
  border: 1px solid var(--border-green);
  border-left: 1px solid var(--border-green);
  border-radius: 6px;
  background: rgba(83, 252, 24, .1);
}

/* QR + payment info side by side */
.pay-flex {
  display: flex;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}
@media (max-width: 520px) { .pay-flex { flex-direction: column; align-items: center; } }
.qr-box {
  background: #ffffff;
  border-radius: 10px;
  padding: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-box img, .qr-box canvas { display: block; }
.pay-flex .pay-info { flex: 1; margin-bottom: 0; }

.status-expired-icon {
  background: rgba(255, 193, 7, .1);
  border: 2px solid rgba(255, 193, 7, .3);
}

.step3-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.expire-note { font-size: 12px; color: var(--muted); }
.expire-note .expire-count { color: var(--warn); font-weight: 700; }
.start-over {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.start-over:hover { color: var(--text); }
.coin-name { font-size: 14px; font-weight: 700; }
.coin-desc { font-size: 11px; color: var(--muted); margin-top: 2px; }

.amount-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.preset-btn {
  padding: 8px 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.preset-btn:hover,
.preset-btn.selected {
  border-color: var(--green);
  color: var(--green);
  background: rgba(83, 252, 24, .06);
}

.pay-info {
  background: var(--surface);
  border: 1px solid var(--border-green);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
}
.pay-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}
.pay-row:last-child { margin-bottom: 0; }
.pay-row-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  white-space: nowrap;
  margin-top: 1px;
}
.pay-row-val {
  font-size: 13px;
  font-weight: 600;
  font-family: 'SF Mono', 'Courier New', monospace;
  word-break: break-all;
  text-align: right;
}
.pay-row-val .green,
.pay-row-val.green { color: var(--green); }
.pay-copy-row { display: flex; gap: 8px; margin-bottom: 20px; }
.pay-copy-row .btn { flex: 1; }

.warning-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(255, 193, 7, .05);
  border: 1px solid rgba(255, 193, 7, .2);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--warn);
  line-height: 1.6;
  margin-bottom: 16px;
}
.warning-box svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 1px;
  fill: none;
  stroke: var(--warn);
  stroke-width: 1.8;
}

.status-area { text-align: center; padding: 8px 0; }
.status-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}
.status-icon svg { width: 30px; height: 30px; fill: none; stroke-width: 1.8; }
.status-confirm-icon svg { stroke: var(--green); }
.status-expired-icon svg { stroke: var(--warn); }
.status-confirm-icon { background: rgba(83, 252, 24, .1); border: 2px solid var(--border-green); }
.polling-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.status-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.status-title.ok { font-size: 18px; font-weight: 800; color: var(--green); }
.status-sub { font-size: 13px; color: var(--muted); margin-bottom: 0; }
.status-sub.spaced { margin-bottom: 20px; }

/* ═══════════════════════════════════════════════════════════════════════════
   ERROR PAGE  (templates/error.html — 404 / 403 / 500)
   ═══════════════════════════════════════════════════════════════════════════ */

.err-wrap {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.err-card {
  text-align: center;
  max-width: 460px;
}
.err-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: rgba(83, 252, 24, .08);
  border: 1px solid var(--border-green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.err-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--green);
  stroke-width: 1.7;
}
.err-code {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--muted);
  margin-bottom: 8px;
}
.err-card h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 10px;
}
.err-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}
.err-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL REVEAL  (base.js adds .revealed via IntersectionObserver)
   [data-reveal]          — single element rises in when scrolled into view
   [data-reveal-stagger]  — container whose CHILDREN rise in one by one
                            (base.js sets each child's transition-delay)
   Under prefers-reduced-motion the global override makes these instant.
   ═══════════════════════════════════════════════════════════════════════════ */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.16, 1, .3, 1);
}
[data-reveal].revealed { opacity: 1; transform: none; }

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
}
[data-reveal-stagger].revealed > * { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD OVERLAY SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.obs-steps {
  margin: 4px 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.obs-steps li { padding-left: 4px; }
.obs-steps strong { color: var(--text); }


/* ═══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY / GLOBAL POLISH
   ═══════════════════════════════════════════════════════════════════════════ */

/* Keyboard users: first Tab reveals a jump-to-content link */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  background: var(--green);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

main { display: block; }

/* ── FAQ (native <details> — accessible with zero JS) ─────────────────────── */

.faq-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .2s;
}
.faq-item[open] { border-color: var(--border-green); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-size: 15px;
  font-weight: 600;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--green);
  transition: transform .25s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 660px;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

footer { padding: 0; text-align: left; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 36px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { font-size: 13px; color: var(--muted); max-width: 320px; margin-top: 10px; }
.footer-logo { font-size: 17px; font-weight: 800; letter-spacing: -.3px; color: var(--text); }
.footer-logo span { color: var(--green); }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.footer-col strong {
  color: var(--text);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-col a { color: var(--muted); text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: var(--green); }
.footer-base {
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
