/* ============================================================================
   AI7 Silicon Intelligence × KLS GIT Belagavi
   Aesthetic: Obsidian Silicon Lab — Precision Semiconductor Engineering UI
   ============================================================================ */

:root {
  --bg-canvas: #05080f;
  --bg-surface: #0b111e;
  --bg-elevated: #111a2c;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-input: #070c16;
  --bg-code: #04070e;

  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --border-cyan: rgba(0, 229, 255, 0.45);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --cyan: #00e5ff;
  --cyan-soft: rgba(0, 229, 255, 0.12);
  --cyan-glow: 0 0 24px rgba(0, 229, 255, 0.22);

  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.14);

  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);

  --rose: #f43f5e;
  --rose-soft: rgba(244, 63, 94, 0.14);

  --violet: #a855f7;
  --violet-soft: rgba(168, 85, 247, 0.14);

  --nvidia: #76b900;

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  min-height: 100%;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(ellipse 75% 50% at 12% 0%, rgba(0, 229, 255, 0.08), transparent 60%),
    radial-gradient(ellipse 65% 45% at 88% 100%, rgba(16, 185, 129, 0.06), transparent 60%),
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  background-attachment: fixed;
}

:not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(0, 229, 255, 0.09);
  color: #7dd3fc;
  padding: 0.12em 0.42em;
  border-radius: 5px;
  border: 1px solid rgba(0, 229, 255, 0.18);
}

pre code {
  font-family: var(--font-mono);
  background: transparent;
  color: inherit;
  padding: 0;
  border: none;
  border-radius: 0;
  font-size: inherit;
}

/* Utilities */
.hidden { display: none !important; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-secondary); }
.text-cyan { color: var(--cyan); }
.text-emerald { color: var(--emerald); }
.text-amber { color: var(--amber); }
.text-rose { color: var(--rose); }

/* ============================================================================
   TOP HEADER BAR
   ============================================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 8, 15, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00e5ff 0%, #0284c7 100%);
  color: #030712;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  padding: 0.42rem 0.72rem;
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-secondary);
}

.pill-badge.nvidia {
  color: #a3e635;
  border-color: rgba(118, 185, 0, 0.4);
  background: rgba(118, 185, 0, 0.1);
}

.pill-badge.live {
  color: var(--emerald);
  border-color: rgba(16, 185, 129, 0.4);
  background: var(--emerald-soft);
}

.pill-badge.static-mode {
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.35);
  background: var(--cyan-soft);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, #00e5ff 0%, #0ea5e9 100%);
  color: #030712;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 229, 255, 0.28);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 26px rgba(0, 229, 255, 0.42);
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #022c22;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.26);
}

.btn-emerald:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.65);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(30, 41, 59, 0.85);
  border-color: var(--border-strong);
}

.btn-danger {
  background: var(--rose-soft);
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.35);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(244, 63, 94, 0.24);
}

.btn-sm {
  font-size: 0.79rem;
  padding: 0.44rem 0.85rem;
  border-radius: 8px;
}

.btn-lg {
  font-size: 0.98rem;
  padding: 0.88rem 1.75rem;
  border-radius: 12px;
}

/* ============================================================================
   LANDING & REGISTRATION SCREEN
   ============================================================================ */
.landing-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.4rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2.2rem;
  align-items: start;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid rgba(0, 229, 255, 0.28);
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.15rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.3vw, 2.85rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.hero-title span {
  background: linear-gradient(90deg, #00e5ff, #38bdf8, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  max-width: 58ch;
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.spec-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  backdrop-filter: blur(8px);
}

.spec-tile-val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.spec-tile-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.blueprint-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
}

.blueprint-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.9rem;
}

.section-roadmap {
  display: grid;
  gap: 0.65rem;
}

.roadmap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.68rem 0.85rem;
  background: rgba(5, 8, 15, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 10px;
}

.roadmap-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.roadmap-num {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.roadmap-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.roadmap-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.roadmap-pts {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.rules-note {
  display: flex;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 0.82rem;
  color: #fde68a;
}

/* Registration Card */
.reg-card {
  background: rgba(11, 17, 30, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: var(--radius-xl);
  padding: 1.85rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
}

.reg-header {
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.reg-header h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.reg-header p {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.form-input, .form-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.68rem 0.85rem;
  border-radius: 9px;
  outline: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.form-input:focus, .form-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14);
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin-top: 0.15rem;
}

.skill-chip {
  position: relative;
}

.skill-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.skill-chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s var(--ease);
  user-select: none;
}

.skill-chip input:checked + span {
  background: var(--cyan-soft);
  border-color: var(--cyan);
  color: var(--cyan);
}

.pledge-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.82rem;
  background: rgba(5, 8, 15, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.pledge-row input {
  margin-top: 0.2rem;
  accent-color: var(--cyan);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.form-error {
  font-size: 0.82rem;
  color: #fda4af;
  background: var(--rose-soft);
  border: 1px solid rgba(244, 63, 94, 0.35);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
}

/* ============================================================================
   TEST ARENA WORKSPACE
   ============================================================================ */
.arena-telemetry {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(6, 10, 18, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.arena-telemetry-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.72rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.candidate-pill {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.candidate-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(16, 185, 129, 0.22));
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.86rem;
}

.section-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.sec-tab {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 0.42rem 0.78rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.16s var(--ease);
}

.sec-tab:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.sec-tab.active {
  background: var(--cyan-soft);
  border-color: var(--cyan);
  color: var(--cyan);
}

.telemetry-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.timer-box {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 700;
  padding: 0.42rem 0.85rem;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--cyan);
}

.timer-box.warn {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-soft);
}

.timer-box.danger {
  border-color: var(--rose);
  color: #fb7185;
  background: var(--rose-soft);
  animation: pulseTimer 1s infinite;
}

@keyframes pulseTimer {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(244, 63, 94, 0); }
}

.integrity-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.32rem 0.62rem;
  border-radius: 7px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: var(--emerald-soft);
  color: var(--emerald);
}

.integrity-pill.flagged {
  border-color: rgba(245, 158, 11, 0.45);
  background: var(--amber-soft);
  color: var(--amber);
}

.arena-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 1.4rem 3.5rem;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Left Navigator Rail */
.nav-rail {
  position: sticky;
  top: 76px;
  background: rgba(11, 17, 30, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  backdrop-filter: blur(10px);
}

.rail-progress-wrap {
  margin-bottom: 1.1rem;
}

.rail-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.progress-track {
  height: 6px;
  background: rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00e5ff, #10b981);
  border-radius: 999px;
  transition: width 0.25s var(--ease);
}

.rail-section {
  margin-bottom: 1rem;
}

.rail-sec-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.q-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.38rem;
}

.q-dot {
  height: 34px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  background: rgba(5, 8, 15, 0.6);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.14s var(--ease);
}

.q-dot:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.q-dot.answered {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.q-dot.current {
  background: var(--cyan-soft);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.28);
}

.q-dot.flagged::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.rail-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.legend-swatch {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

/* Question Canvas */
.question-card {
  background: rgba(11, 17, 30, 0.88);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.85rem 2rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.q-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.q-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.q-num-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #030712;
  background: var(--cyan);
  padding: 0.22rem 0.62rem;
  border-radius: 6px;
}

.q-topic-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid var(--border-subtle);
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
}

.q-pts-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-soft);
  padding: 0.22rem 0.58rem;
  border-radius: 6px;
}

.q-prompt {
  font-size: 1.07rem;
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: 1.3rem;
}

/* Diagrams & Code Blocks */
.diagram-box {
  background: #040812;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 12px;
  padding: 0.85rem 1rem 0.65rem;
  margin-bottom: 1.35rem;
}

.diagram-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.diagram-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.06em;
}

.diagram-meta {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: var(--text-muted);
}

.tech-svg {
  width: 100%;
  height: auto;
  display: block;
}

.code-snippet {
  background: var(--bg-code);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.35rem;
}

.code-snippet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.9rem;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.code-snippet pre {
  padding: 1rem 1.15rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.62;
  color: #e2e8f0;
}

.v-kw { color: #38bdf8; font-weight: 600; }
.v-type { color: #34d399; }
.v-num { color: #fbbf24; }
.v-cmt { color: #64748b; font-style: italic; }

/* MCQ Options */
.options-list {
  display: grid;
  gap: 0.72rem;
  margin-bottom: 1.6rem;
}

.opt-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.98rem 1.15rem;
  background: rgba(5, 8, 15, 0.62);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.16s var(--ease);
  text-align: left;
  width: 100%;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.opt-card:hover {
  border-color: rgba(0, 229, 255, 0.42);
  background: rgba(15, 23, 42, 0.72);
}

.opt-card.selected {
  background: rgba(0, 229, 255, 0.09);
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.35), 0 8px 24px rgba(0, 229, 255, 0.08);
}

.opt-key {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.opt-card.selected .opt-key {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #030712;
}

.opt-text {
  font-size: 0.94rem;
  line-height: 1.5;
}

/* Practical RTL Coding Workspace */
.rtl-spec-box {
  background: rgba(5, 8, 15, 0.62);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
}

.rtl-spec-box h4 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.65rem;
}

.rtl-spec-list {
  list-style: none;
  display: grid;
  gap: 0.48rem;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.rtl-spec-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.rtl-spec-list li::before {
  content: "▸";
  color: var(--cyan);
  font-weight: 700;
}

.editor-shell {
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-code);
  margin-bottom: 1rem;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.95rem;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.editor-file {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.rtl-textarea {
  width: 100%;
  min-height: 330px;
  background: var(--bg-code);
  color: #e2e8f0;
  border: none;
  outline: none;
  resize: vertical;
  padding: 1rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.62;
  tab-size: 4;
}

.lint-panel {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.4rem;
}

.lint-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  margin-bottom: 0.55rem;
}

.lint-checks {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.lint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.lint-pass { color: #34d399; }
.lint-fail { color: var(--text-muted); }
.lint-warn {
  margin-top: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  background: var(--amber-soft);
  color: #fde68a;
  font-size: 0.77rem;
}

.q-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

/* ============================================================================
   SUBMISSION COMPLETE SCREEN
   ============================================================================ */
.complete-shell {
  max-width: 760px;
  margin: 3rem auto;
  padding: 0 1.25rem;
}

.complete-card {
  background: rgba(11, 17, 30, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-xl);
  padding: 2.3rem;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.check-orb {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--emerald-soft);
  border: 2px solid var(--emerald);
  color: var(--emerald);
  font-size: 1.9rem;
  display: grid;
  place-items: center;
  margin: 0 auto 1.2rem;
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.3);
}

.receipt-id {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  margin: 0.9rem 0 1.4rem;
}

.sync-banner {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  margin-bottom: 1.4rem;
  font-size: 0.85rem;
  border: 1px solid var(--border-subtle);
  background: rgba(5, 8, 15, 0.7);
}

.summary-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1.35rem 0 1.65rem;
}

.mini-stat {
  background: rgba(5, 8, 15, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem;
}

.mini-stat-v {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.mini-stat-k {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ============================================================================
   ADMIN / FACULTY SHORTLISTING DASHBOARD
   ============================================================================ */
.admin-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 1.8rem 1.5rem 4rem;
}

.admin-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.admin-header-row h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

.kpi-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.toolbar-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.table-card {
  background: rgba(11, 17, 30, 0.88);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.data-table th {
  text-align: left;
  padding: 0.82rem 0.95rem;
  background: rgba(5, 8, 15, 0.75);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(0, 229, 255, 0.04);
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 700;
  padding: 0.22rem 0.58rem;
  border-radius: 6px;
  white-space: nowrap;
}

.tier-s { background: rgba(0, 229, 255, 0.16); color: #22d3ee; border: 1px solid rgba(0, 229, 255, 0.4); }
.tier-a { background: var(--emerald-soft); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.tier-b { background: var(--amber-soft); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.tier-c { background: rgba(148, 163, 184, 0.12); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.25); }

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(2, 6, 15, 0.8);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  overflow-y: auto;
}

.modal-box {
  width: 100%;
  max-width: 520px;
  background: var(--bg-surface);
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
}

.modal-box.modal-xl {
  max-width: 1120px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.code-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.85rem 0 1rem;
}

.rubric-card {
  background: rgba(11, 17, 30, 0.88);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.45rem 1.65rem;
  margin-bottom: 1.2rem;
}

.rubric-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
  color: var(--cyan);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: #0f172a;
  border: 1px solid var(--cyan);
  color: var(--text-primary);
  padding: 0.85rem 1.15rem;
  border-radius: 10px;
  font-size: 0.86rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  max-width: 400px;
}

/* Responsive */
@media (max-width: 1024px) {
  .landing-shell { grid-template-columns: 1fr; }
  .arena-layout { grid-template-columns: 1fr; }
  .nav-rail { position: static; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .code-compare-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .spec-strip { grid-template-columns: 1fr; }
  .summary-mini-grid { grid-template-columns: 1fr; }
  .question-card { padding: 1.25rem; }
}
