/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #08080f;
  --bg-card: #0f0f1a;
  --bg-card-hover: #141426;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(99,102,241,0.4);
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99,102,241,0.15);
  --text: #f1f5f9;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(99,102,241,0.3);
}
.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 0 30px rgba(99,102,241,0.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-glow);
}

.btn-ghost {
  background: rgba(255,255,255,0.07);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
}

.btn-lg { padding: 13px 28px; font-size: 0.95rem; }
.btn-full { width: 100%; margin-top: 8px; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
}

.logo-img {
  flex-shrink: 0;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 1;
}

.nav-links a {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: all var(--transition);
}

.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.05); }

.nav-discord {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-cta { margin-left: auto; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.mobile-menu a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.mobile-menu .btn { margin-top: 8px; }

.mobile-menu.open { display: flex; }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  text-align: center;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container { position: relative; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--border-accent);
  background: rgba(99,102,241,0.08);
  font-size: 0.8rem;
  color: var(--accent-light);
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #818cf8, #6366f1, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat { padding: 0 40px; text-align: center; }
.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===== SECTION COMMON ===== */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 56px;
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== PRICING ===== */
.pricing {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.pricing-card.popular {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(99,102,241,0.1), var(--bg-card));
  box-shadow: 0 0 40px rgba(99,102,241,0.15);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
  white-space: nowrap;
}

.plan-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}

.price-amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plan-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: 48px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text-dim);
}

.plan-features .check {
  color: var(--accent-light);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-features .x {
  color: var(--text-muted);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.5;
}

.plan-features strong { color: var(--white); }

/* Feature card Premium+ badge */
.feature-badge-premium {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(99,102,241,0.15);
  color: var(--accent-light);
  border: 1px solid rgba(99,102,241,0.3);
  padding: 2px 7px;
  border-radius: 99px;
  vertical-align: middle;
  margin-left: 4px;
}

/* Mode card Premium+ badge */
.mode-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(34,197,94,0.1);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.25);
  padding: 2px 7px;
  border-radius: 99px;
  vertical-align: middle;
  margin-left: 4px;
}

.pricing-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pricing-note svg { flex-shrink: 0; color: var(--accent-light); }

/* ===== SESSION MODES ===== */
.modes {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
}

.mode-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.mode-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.mode-icon svg { width: 26px; height: 26px; }

.mode-standard { background: rgba(99,102,241,0.12); color: var(--accent-light); border: 1px solid rgba(99,102,241,0.2); }
.mode-timed    { background: rgba(234,179,8,0.1); color: #fbbf24; border: 1px solid rgba(234,179,8,0.2); }
.mode-keepfull { background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }

.mode-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.mode-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: 16px;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--white); }

.faq-arrow {
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: transform 0.25s ease;
  line-height: 1;
  flex-shrink: 0;
}

.faq-question.open .faq-arrow { transform: rotate(90deg); color: var(--accent-light); }

.faq-answer {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-bottom: 20px;
  display: none;
}

.faq-answer code {
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--accent-light);
}

.faq-answer.open { display: block; }

/* ===== CTA BANNER ===== */
.cta-banner {
  position: relative;
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 36px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-inner {
  display: flex;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand {
  flex: 1;
  max-width: 260px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-menu-btn { display: flex; }
  .pricing-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .modes-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 8px; }
  .stat { padding: 0 20px; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
}

@media (max-width: 480px) {
  .stat-divider { display: none; }
  .hero-stats { flex-direction: column; gap: 16px; }
}

/* ============================================================
   AUTH PAGES  (login.html / signup.html)
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 16px 40px;
  position: relative;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 1;
}

.auth-card.wide { max-width: 560px; }

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.auth-logo span {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
}

.auth-sub {
  color: var(--text-muted);
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 28px;
}

/* Form fields */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-size: 0.925rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.form-input::placeholder { color: var(--text-muted); }

/* Auth buttons */
.btn-auth {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-auth:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-auth:active { transform: translateY(0); }

.btn-auth-primary {
  background: var(--accent);
  color: #fff;
  margin-top: 8px;
}

.btn-discord {
  background: #5865F2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.discord-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Error / success messages */
.auth-error {
  background: rgba(231,76,60,0.12);
  border: 1px solid rgba(231,76,60,0.3);
  color: #e74c3c;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.875rem;
  margin-bottom: 16px;
  display: none;
}

.auth-error.visible { display: block; }

/* Footer link */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-footer a { color: var(--accent); }

/* Plan selector (signup) */
.plan-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.plan-option {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.plan-option:hover { border-color: var(--accent); }

.plan-option.selected {
  border-color: var(--accent);
  background: rgba(99,102,241,0.08);
}

.plan-option input[type="radio"] { display: none; }

.plan-option-name {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.plan-option-price {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.plan-option.selected .plan-option-name { color: var(--accent); }

/* ToS checkbox */
.tos-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tos-row input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.tos-row a { color: var(--accent); }

/* ============================================================
   DASHBOARD  (dashboard.html)
   ============================================================ */

.dashboard-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

/* Sidebar */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.sidebar-logo span {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  border: none;
  background: none;
  font-family: inherit;
  width: 100%;
  text-align: left;
}

.nav-item:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.nav-item.active { background: rgba(99,102,241,0.15); color: var(--accent); }
.nav-item .nav-icon { font-size: 1rem; width: 20px; text-align: center; }

.sidebar-bottom {
  padding: 16px 10px 0;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

/* Main content */
.dashboard-main {
  flex: 1;
  overflow-y: auto;
  padding: 32px 36px;
}

.dash-tab { display: none; }
.dash-tab.active { display: block; }

.dash-header {
  margin-bottom: 28px;
}

.dash-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.dash-header p { color: var(--text-muted); font-size: 0.9rem; }

/* Stat cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.stat-card-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Section card */
.dash-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}

.dash-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
}

/* Orders table */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.orders-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.orders-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary);
}

.orders-table tr:last-child td { border-bottom: none; }

.orders-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Status pills */
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pill-active   { background: rgba(46,204,113,0.15);  color: #2ecc71; }
.pill-queued   { background: rgba(243,156,18,0.15);  color: #f39c12; }
.pill-complete { background: rgba(99,102,241,0.15);  color: #818cf8; }
.pill-failed   { background: rgba(231,76,60,0.15);   color: #e74c3c; }

/* API key display */
.api-key-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 14px;
}

.api-key-value { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn-copy {
  padding: 6px 14px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 7px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  flex-shrink: 0;
}

.btn-copy:hover { background: rgba(99,102,241,0.25); }

/* Discord connect card */
.discord-connect {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(88,101,242,0.08);
  border: 1px solid rgba(88,101,242,0.25);
  border-radius: 12px;
  padding: 18px 20px;
}

.discord-connect-text { flex: 1; }
.discord-connect-text h4 { font-weight: 700; margin-bottom: 4px; }
.discord-connect-text p { font-size: 0.85rem; color: var(--text-muted); }

.btn-sm {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.btn-sm:hover { opacity: 0.85; }
.btn-sm-discord { background: #5865F2; color: #fff; }
.btn-sm-connected { background: rgba(46,204,113,0.15); color: #2ecc71; border: 1px solid rgba(46,204,113,0.3); cursor: default; }

/* Settings form */
.settings-form .form-group { max-width: 420px; }
.settings-save {
  padding: 10px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
  margin-top: 8px;
}
.settings-save:hover { opacity: 0.88; }
