/* ============================================
   Number Anti-Cheat — Web Platform Design System
   ============================================ */

/* Fonts loaded via <link> in HTML for non-blocking render */

/* Brand logo in header */
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

:root {
  --bg-primary: #0c0c10;
  --bg-secondary: #12121a;
  --bg-card: rgba(22, 22, 32, 0.7);
  --bg-card-hover: rgba(30, 30, 45, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(99, 102, 241, 0.4);
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-muted: rgba(99, 102, 241, 0.15);
  --accent-rgb: 99, 102, 241;
  --text-primary: #f4f4f6;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --header-height: 72px;
  --container-max: 1120px;
  --section-padding: clamp(3rem, 8vw, 5rem);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-card-hover: 0 20px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.04);
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --success: #22c55e;
  --success-muted: rgba(34, 197, 94, 0.15);
  --danger: #ef4444;
  --danger-muted: rgba(239, 68, 68, 0.15);
  --warning: #f59e0b;
  --warning-muted: rgba(245, 158, 11, 0.15);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

.site-wrap { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2rem); }

.site-wrap::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 600px 400px at 12% 18%, rgba(99, 102, 241, 0.10) 0%, transparent 100%),
    radial-gradient(ellipse 500px 350px at 84% 14%, rgba(78, 125, 255, 0.11) 0%, transparent 100%),
    radial-gradient(ellipse 550px 400px at 72% 78%, rgba(70, 208, 182, 0.09) 0%, transparent 100%);
  will-change: auto;
}
.site-wrap::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.04));
  opacity: 0.3;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 2.5rem);
  background: rgba(12, 12, 16, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transform: translateZ(0);
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}
.site-header.scrolled { background: rgba(12, 12, 16, 0.95); box-shadow: 0 1px 0 var(--border-subtle); }
.header-brand { display: flex; align-items: center; gap: 12px; }
.header-brand a { display: flex; align-items: center; gap: 12px; color: var(--text-primary); font-weight: 700; font-size: 1.125rem; font-family: var(--font-heading); transition: opacity var(--transition-fast); }
.header-brand a:hover { opacity: 0.9; }
.header-brand .brand-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.header-nav a:hover { color: var(--text-primary); background: var(--accent-muted); }
.header-nav a.active { color: var(--accent); background: var(--accent-muted); }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35); }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-subtle); }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--border-accent); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 8px 16px; font-size: 0.8125rem; border-radius: var(--radius-sm); }
.btn-icon { padding: 8px; width: 36px; height: 36px; }

/* ── Hero Section ── */
.hero {
  padding: calc(var(--header-height) + 4rem) 0 var(--section-padding);
  text-align: center;
}
.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--accent-muted);
  border: 1px solid var(--border-accent);
  animation: fadeInUp 0.6s ease both;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease 0.1s both;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.6s ease 0.2s both;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  animation: fadeInUp 0.6s ease 0.3s both;
}

/* ── Section ── */
.section { padding: var(--section-padding) 0; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-label { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.5rem; }
.section-title { font-family: var(--font-heading); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; color: var(--text-primary); }
.section-desc { color: var(--text-secondary); max-width: 520px; margin: 0.5rem auto 0; font-size: 1rem; }

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transform: translateZ(0);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  animation: fadeInScale 0.6s ease both;
}
.card:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-accent);
}
.card-body { padding: 1.25rem; }
.card-title { font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 600; color: var(--text-primary); }
.card-desc { font-size: 0.875rem; color: var(--text-secondary); margin-top: 4px; }

/* ── Feature Grid (How it works / Features) ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  position: relative;
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), transparent), var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform var(--transition-smooth), border-color var(--transition-fast), box-shadow var(--transition-smooth);
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card-hover);
}
.feature-card .icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 0.5rem;
}
.feature-card p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.55; }

/* ── Steps (How it works) ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.step-card {
  position: relative;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #818cf8);
  opacity: 0.85;
}
.step-num {
  font-family: var(--font-heading);
  font-size: 0.75rem; font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.step-card h3 {
  font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 0.5rem;
}
.step-card p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.55; }

/* ── Main Content (pages with sidebar-less layout) ── */
.main-content { flex: 1; padding: calc(var(--header-height) + 2rem) 0 var(--section-padding); }
.page-header { margin-bottom: 2rem; }
.page-title { font-family: var(--font-heading); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; color: var(--text-primary); }
.page-subtitle { font-size: 1rem; color: var(--text-secondary); margin-top: 0.5rem; }

/* ── Forms ── */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 420px;
  margin: 0 auto;
}
.form-card h2 {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 0.5rem; text-align: center;
}
.form-card .form-subtitle {
  text-align: center; color: var(--text-secondary); font-size: 0.9375rem; margin-bottom: 1.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); }
.form-group input::placeholder { color: var(--text-muted); }
.form-actions { margin-top: 1.5rem; }
.form-actions .btn { width: 100%; }
.form-footer { text-align: center; margin-top: 1.25rem; font-size: 0.875rem; color: var(--text-secondary); }
.form-footer a { color: var(--accent); font-weight: 500; }
.form-footer a:hover { text-decoration: underline; }
.form-error {
  background: var(--danger-muted);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
}
.form-success {
  background: var(--success-muted);
  color: var(--success);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
}

/* ── Dashboard ── */
.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  margin-bottom: 2rem;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent), rgba(22,22,32,0.75);
  border: 1px solid rgba(255,255,255,0.07);
}
.stat-card::before {
  content: '';
  display: block;
  height: 3px;
  margin: -1.25rem -1rem 1rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--accent), #818cf8);
  opacity: 0.7;
}
.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2; margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
}

/* ── Sessions Table ── */
.sessions-table-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, rgba(var(--accent-rgb),0.07) 0%, transparent 22%), rgba(22,22,32,0.75);
  overflow: hidden;
}
.sessions-table {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
}
.sessions-table thead {
  background: linear-gradient(90deg, rgba(var(--accent-rgb),0.14) 0%, rgba(129,140,248,0.1) 100%);
  border-bottom: 1px solid var(--border-subtle);
}
.sessions-table th {
  text-align: left; padding: 0.75rem 1rem;
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
}
.sessions-table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary); vertical-align: middle;
}
.sessions-table tbody tr { transition: background var(--transition-fast); cursor: pointer; }
.sessions-table tbody tr:hover { background: rgba(var(--accent-rgb), 0.06); }

/* ── Status Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.badge-pending { background: var(--warning-muted); color: var(--warning); }
.badge-active { background: var(--accent-muted); color: var(--accent); }
.badge-completed { background: var(--success-muted); color: var(--success); }
.badge-expired { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Risk level badges */
.risk-low { background: var(--success-muted); color: var(--success); }
.risk-medium { background: var(--warning-muted); color: var(--warning); }
.risk-high { background: var(--danger-muted); color: var(--danger); }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition-fast);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 90%; max-width: 480px;
  transform: translateY(12px) scale(0.98);
  transition: transform var(--transition-smooth);
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal h3 {
  font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 1rem;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 1.25rem; padding: 4px;
}
.modal-close:hover { color: var(--text-primary); }

/* ── Code Display ── */
.code-display {
  background: var(--bg-primary);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  margin: 1rem 0;
}
.code-value {
  font-family: 'Plus Jakarta Sans', monospace;
  font-size: 2rem; font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.25em;
}
.code-label {
  font-size: 0.8125rem; color: var(--text-muted);
  margin-top: 0.5rem;
}
.link-display {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  margin: 0.75rem 0;
}
.link-display input {
  flex: 1; background: none; border: none;
  color: var(--text-secondary); font-size: 0.875rem;
  font-family: var(--font-body); outline: none;
}
.link-display .btn-copy {
  background: var(--accent-muted); color: var(--accent);
  border: none; padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 0.8125rem; font-weight: 600; cursor: pointer;
  transition: background var(--transition-fast);
}
.link-display .btn-copy:hover { background: rgba(99,102,241,0.25); }

/* ── Live Session ── */
.session-status {
  display: flex; align-items: center; gap: 12px;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}
.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
.status-dot.waiting { background: var(--warning); animation: pulse 2s ease-in-out infinite; }
.status-dot.scanning { background: var(--accent); animation: pulse 1s ease-in-out infinite; }
.status-dot.completed { background: var(--success); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.status-text { font-size: 0.9375rem; color: var(--text-secondary); }
.status-text strong { color: var(--text-primary); }

/* ── Results Display ── */
.results-section {
  margin-bottom: 1.5rem;
}
.results-section-title {
  font-family: var(--font-heading);
  font-size: 1.125rem; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 10px;
}
.results-section-title::before {
  content: '';
  width: 4px; height: 1.25em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), #818cf8);
}
.results-panel {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent), rgba(22,22,32,0.82);
  border: 1px solid rgba(255,255,255,0.07);
}
.results-table {
  width: 100%; border-collapse: collapse; font-size: 0.875rem;
}
.results-table td {
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.results-table td:first-child {
  color: var(--text-muted); font-weight: 500; white-space: nowrap; width: 40%;
}
.results-table tr:first-child td { border-top: none; }
.results-list { margin: 0; padding: 0; }
.results-list li {
  padding: 0.5rem 0; padding-left: 1.25rem;
  color: var(--text-secondary); font-size: 0.875rem;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}
.results-list li:last-child { border-bottom: none; }
.results-list li::before {
  content: '';
  position: absolute; left: 0; top: 0.85em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Finding severity indicators */
.finding { padding: 0.75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 0.5rem; }
.finding-high { background: var(--danger-muted); border-left: 3px solid var(--danger); }
.finding-medium { background: var(--warning-muted); border-left: 3px solid var(--warning); }
.finding-low { background: var(--success-muted); border-left: 3px solid var(--success); }
.finding-info { background: rgba(99,102,241,0.08); border-left: 3px solid var(--accent); }
.finding-name { font-weight: 600; color: var(--text-primary); font-size: 0.875rem; }
.finding-detail { font-size: 0.8125rem; color: var(--text-secondary); margin-top: 2px; }

/* Score display */
.score-display {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.5rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  text-align: center;
}
.score-value {
  font-family: var(--font-heading);
  font-size: 3rem; font-weight: 800;
  line-height: 1;
}
.score-label {
  font-size: 0.875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Pins (History) ── */
.pins-toolbar {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.pins-search {
  flex: 1; min-width: 200px;
  padding: 10px 14px;
  font-family: var(--font-body); font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast);
}
.pins-search:focus { border-color: var(--accent); }
.pins-filter {
  padding: 10px 14px;
  font-family: var(--font-body); font-size: 0.875rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  outline: none; cursor: pointer;
}
.pin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-fast);
}
.pin-card:hover {
  transform: translateY(-3px) translateZ(0);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-accent);
}
.pin-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.75rem;
}
.pin-card-title { font-family: var(--font-heading); font-weight: 600; color: var(--text-primary); font-size: 1rem; }
.pin-card-date { font-size: 0.8125rem; color: var(--text-muted); }
.pin-card-meta {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.8125rem; color: var(--text-secondary);
}
.pin-card-actions {
  display: flex; gap: 0.5rem; margin-top: 1rem;
}

/* ── Settings ── */
.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.settings-section h3 {
  font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 10px;
}
.settings-section h3::before {
  content: '';
  width: 4px; height: 1.1em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), #818cf8);
}

/* ── Support ── */
.support-card {
  background: linear-gradient(160deg, rgba(88,101,242,0.18) 0%, rgba(22,22,32,0.95) 100%);
  border: 1px solid rgba(88,101,242,0.35);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 24px 56px rgba(88,101,242,0.12);
  position: relative; overflow: hidden;
}
.support-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.06) 0%, transparent 45%);
  pointer-events: none;
}
.support-card h2 {
  font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 0.75rem; position: relative; z-index: 1;
}
.support-card p {
  color: var(--text-secondary); font-size: 1rem;
  max-width: 28rem; margin: 0 auto 1.5rem;
  position: relative; z-index: 1;
}
.btn-discord {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 55%, #3c45a5 100%);
  color: #fff; border: none;
  padding: 14px 26px;
  font-weight: 600; font-size: 1rem;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(88,101,242,0.45), 0 0 0 1px rgba(255,255,255,0.1) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1;
}
.btn-discord:hover {
  background: linear-gradient(135deg, #6874f5 0%, #5865f2 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(88,101,242,0.55), 0 0 0 1px rgba(255,255,255,0.12) inset;
}
.btn-discord::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: discordSheen 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes discordSheen {
  0%, 80% { left: -100%; opacity: 0; }
  85% { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

/* ── FAQ ── */
.faq-list { max-width: 640px; margin: 2rem auto 0; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-question {
  width: 100%; padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  background: none; border: none;
  color: var(--text-primary); font-family: var(--font-heading);
  font-size: 0.9375rem; font-weight: 600;
  cursor: pointer; text-align: left;
  transition: color var(--transition-fast);
}
.faq-question:hover { color: var(--accent); }
.faq-question .arrow { transition: transform var(--transition-fast); font-size: 0.75rem; color: var(--text-muted); }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  padding: 0 1.25rem;
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.6;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.25rem 1rem;
}

/* ── Empty State ── */
.empty-state {
  text-align: center; padding: 3rem 1rem;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state h3 {
  font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 0.5rem;
}
.empty-state p { font-size: 0.9375rem; max-width: 320px; margin: 0 auto; }

/* ── Toast Notifications ── */
.toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 300;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 500;
  animation: toastIn 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.toast-success { background: #166534; color: #bbf7d0; }
.toast-error { background: #991b1b; color: #fecaca; }
.toast-info { background: #1e3a5f; color: #bfdbfe; }
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ── Footer ── */
.site-footer { margin-top: auto; padding: 2rem 0; border-top: 1px solid var(--border-subtle); text-align: center; }
.site-footer p { font-size: 0.875rem; color: var(--text-muted); }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header-nav { display: none; }
  .hero { padding-top: calc(var(--header-height) + 2rem); }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

/* ── Lazy render off-screen sections ── */
.section {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* ── Utility ── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-row { display: flex; gap: 0.75rem; align-items: center; }
.flex-1 { flex: 1; }
.copy-feedback { font-size: 0.75rem; color: var(--success); margin-left: 8px; }

/* Loading spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
