/* ── Google Fonts ──────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

/* ── CSS Variables ─────────────────────────────────────────────────────── */
:root {
  --bg-primary:   #0a0c10;
  --bg-secondary: #0f1117;
  --bg-card:      #13161e;
  --bg-hover:     #1a1f2e;
  --border:       #1e2433;
  --border-light: #252d3d;

  --text-primary:   #e2e8f0;
  --text-secondary: #8892a4;
  --text-muted:     #4a5568;

  --accent:       #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow:  rgba(59,130,246,0.15);

  --success: #10b981;
  --warning: #f59e0b;
  --danger:  #ef4444;
  --info:    #06b6d4;

  --sidebar-w: 240px;
  --topbar-h:  60px;

  --radius:   8px;
  --radius-lg: 12px;
  --shadow:   0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.2s ease;
}

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

html, body {
  height: 100%;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

input, textarea, select, button { font-family: inherit; font-size: inherit; }

/* ── Educational Banner ─────────────────────────────────────────────────── */
.edu-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 9999;
  background: rgba(239,68,68,0.15);
  border: 1px solid var(--danger);
  color: #fca5a5;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
}

/* ── Toast ──────────────────────────────────────────────────────────────── */
#toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
#toast.show { opacity: 1; transform: translateY(0); }
#toast.success { background: rgba(16,185,129,0.2); border: 1px solid var(--success); color: #6ee7b7; }
#toast.error   { background: rgba(239,68,68,0.2);  border: 1px solid var(--danger);  color: #fca5a5; }
#toast.info    { background: rgba(59,130,246,0.2); border: 1px solid var(--accent);  color: #93c5fd; }

/* ════════════════════════════════════════════════════════════════════════════
   LOGIN PAGE
   ════════════════════════════════════════════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.04) 0%, transparent 50%),
    var(--bg-primary);
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  animation: cardFadeIn 0.5s ease forwards;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.login-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.login-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.login-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.sso-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  font-weight: 500;
}
.sso-btn:hover { background: var(--bg-hover); border-color: var(--border-light); color: var(--text-primary); }
.sso-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider span { color: var(--text-muted); font-size: 12px; white-space: nowrap; }

.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-input::placeholder { color: var(--text-muted); }

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  width: 100%;
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 50%, var(--accent) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.error-msg {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.error-msg.show { display: block; }

.mfa-step { display: none; }
.mfa-step.show { display: block; }

.mfa-header {
  text-align: center;
  margin-bottom: 24px;
}
.mfa-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.mfa-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.mfa-desc  { font-size: 13px; color: var(--text-secondary); }

.otp-input {
  text-align: center;
  letter-spacing: 8px;
  font-size: 22px;
  font-family: 'DM Mono', monospace;
}

.security-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
  justify-content: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid;
}
.badge-green { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: #6ee7b7; }
.badge-blue  { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); color: #93c5fd; }

.demo-creds {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 11px;
  color: var(--text-muted);
  max-width: 200px;
  z-index: 100;
}
.demo-creds strong { color: var(--text-secondary); font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.demo-creds code {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  background: rgba(59,130,246,0.1);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ════════════════════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT
   ════════════════════════════════════════════════════════════════════════════ */
.app-layout { display: flex; height: 100vh; overflow: hidden; }

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.sidebar-logo-text { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.sidebar-logo-version { font-size: 9px; color: var(--text-muted); margin-top: 1px; }

.sidebar-section { padding: 12px 8px; }
.sidebar-section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0 8px;
  margin-bottom: 4px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text-secondary);
  transition: var(--transition);
  margin-bottom: 2px;
  cursor: pointer;
}
.nav-link:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-link.active { background: rgba(59,130,246,0.12); color: var(--accent); }
.nav-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
}
.nav-admin { color: #fbbf24 !important; }
.nav-admin.hidden-link { display: none; }

.sidebar-bottom {
  margin-top: auto;
  padding: 12px 8px;
  border-top: 1px solid var(--border);
}
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}
.user-info:hover { background: var(--bg-hover); }
.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.user-name  { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.user-role  { font-size: 11px; color: var(--text-muted); }

/* ── Main area ──────────────────────────────────────────────────────────── */
.main-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.topbar {
  height: var(--topbar-h);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  flex-shrink: 0;
}
.topbar-title { font-size: 16px; font-weight: 700; color: var(--text-primary); flex: 1; }
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 12px;
  width: 240px;
  color: var(--text-muted);
  font-size: 13px;
}
.search-bar svg { width: 14px; height: 14px; flex-shrink: 0; }
.search-bar input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  width: 100%;
}
.search-bar input::placeholder { color: var(--text-muted); }
.topbar-icon-btn {
  width: 34px;
  height: 34px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  position: relative;
  transition: var(--transition);
}
.topbar-icon-btn:hover { border-color: var(--border-light); color: var(--text-primary); }
.notif-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  background: var(--danger);
  border-radius: 50%;
  border: 1px solid var(--bg-secondary);
}

.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* ── Stats row ──────────────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-light); }
.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}
.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'DM Mono', monospace;
  line-height: 1;
}
.stat-change {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ── Grid layout ────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 360px; gap: 20px; }
.grid-full { grid-column: 1 / -1; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title svg { width: 15px; height: 15px; color: var(--accent); }
.cve-tag {
  font-size: 9px;
  font-family: 'DM Mono', monospace;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  padding: 2px 6px;
  border-radius: 3px;
}
.card-body { padding: 16px 18px; }

/* ── Announcements feed ─────────────────────────────────────────────────── */
.announcement-list { display: flex; flex-direction: column; gap: 12px; }
.announcement-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.announcement-item:hover { border-color: var(--border-light); }
.ann-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.ann-body { flex: 1; min-width: 0; }
.ann-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.ann-author { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.ann-time   { font-size: 11px; color: var(--text-muted); }
.ann-pinned {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  color: #fbbf24;
  padding: 1px 5px;
  border-radius: 3px;
}
.ann-content { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.ann-content a { color: var(--accent); }

/* ── Post form ──────────────────────────────────────────────────────────── */
.post-textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text-primary);
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: var(--transition);
  margin-bottom: 10px;
}
.post-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.post-textarea::placeholder { color: var(--text-muted); }

.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
}

/* ── Profile panel ──────────────────────────────────────────────────────── */
.profile-grid { display: flex; flex-direction: column; gap: 10px; }
.profile-row  { display: flex; justify-content: space-between; align-items: flex-start; }
.profile-key  { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
.profile-val  { font-size: 12px; color: var(--text-primary); text-align: right; word-break: break-all; }

.token-display {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin: 10px 0;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}
.token-display:hover { border-color: var(--accent); }
.token-text {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  word-break: break-all;
  line-height: 1.4;
}
.token-hint {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.token-hint svg { width: 10px; height: 10px; }

.jwt-payload {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: #a5f3fc;
  overflow-x: auto;
  line-height: 1.6;
}

.token-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

/* ── Online users ───────────────────────────────────────────────────────── */
.online-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  transition: var(--transition);
  margin-bottom: 4px;
}
.online-user:hover { background: var(--bg-hover); }
.online-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--success);
}
.online-name { font-size: 13px; color: var(--text-primary); }
.online-dept { font-size: 11px; color: var(--text-muted); margin-left: auto; }

/* ── Forms in sidebar panels ────────────────────────────────────────────── */
.change-pw-form { display: flex; flex-direction: column; gap: 10px; }

/* ════════════════════════════════════════════════════════════════════════════
   ADMIN PAGE
   ════════════════════════════════════════════════════════════════════════════ */
.admin-restricted-header {
  background: linear-gradient(90deg, rgba(239,68,68,0.12), rgba(239,68,68,0.06));
  border-bottom: 2px solid var(--danger);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-restricted-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--danger);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-restricted-badge {
  font-size: 11px;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.4);
  color: #fca5a5;
  padding: 4px 10px;
  border-radius: var(--radius);
  font-family: 'DM Mono', monospace;
}

.admin-banner {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin: 16px 24px 0;
  font-size: 12px;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-content { padding: 16px 24px; }

/* ── Table ──────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
thead th {
  padding: 8px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg-hover); }

.role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.role-admin    { background: rgba(239,68,68,0.15);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }
.role-manager  { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3); color: #fbbf24; }
.role-employee { background: rgba(59,130,246,0.1);  border: 1px solid rgba(59,130,246,0.25); color: #93c5fd; }

/* ── Server info / secret leak ──────────────────────────────────────────── */
.secret-box {
  background: var(--bg-secondary);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: #fca5a5;
  line-height: 2;
}
.secret-key { color: var(--text-muted); }
.secret-val { color: #f87171; font-weight: 600; }

/* ════════════════════════════════════════════════════════════════════════════
   ATTACKER PAGE
   ════════════════════════════════════════════════════════════════════════════ */
.attacker-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d1117 0%, #0a0c10 100%);
  padding: 24px;
}
.prize-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.prize-emoji  { font-size: 64px; margin-bottom: 16px; }
.prize-title  { font-size: 26px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.prize-subtitle { font-size: 15px; color: var(--text-secondary); margin-bottom: 24px; }
.prize-form-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}
.prize-form-section label {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}
.prize-form-section input[type="text"] {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  outline: none;
  margin-bottom: 12px;
}
.prize-btn {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-bottom: 24px;
}
.csrf-explanation {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius);
  padding: 16px;
  text-align: left;
  font-size: 12px;
  color: var(--text-secondary);
}
.csrf-explanation h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--danger);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.csrf-explanation p { margin-bottom: 6px; }
.csrf-explanation code {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  background: rgba(239,68,68,0.1);
  padding: 1px 4px;
  border-radius: 3px;
  color: #fca5a5;
}

/* ── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
