:root {
  --background: #050b11;
  --panel-bg: #0b141f;
  --teal: #008080;
  --teal-dim: rgba(0, 128, 128, 0.2);
  --gold: #d4af37;
  --gold-dim: rgba(212, 175, 55, 0.15);
  --text-white: #ffffff;
  --text-slate: #94a3b8;
  --border: #1a2736;
  --border-light: rgba(255, 255, 255, 0.05);
  --success: #10b981;
  --danger: #ef4444;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: #cbd5e1;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ── AMBIENT BACKGROUND GLOWS ── */
.hero-orbs {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
}

.orb-1 {
  width: 500px; height: 500px;
  background-color: var(--teal);
  top: -150px; left: -100px;
}

.orb-2 {
  width: 600px; height: 600px;
  background-color: var(--gold);
  bottom: -200px; right: -100px;
}

/* ── GRID BACKDROP ── */
body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(30, 41, 59, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 41, 59, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: -2;
  pointer-events: none;
}

/* ── CONTAINER ── */
.dashboard-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: relative;
  z-index: 10;
}

/* ── MAIN SECTION ── */
.main-section {
  flex: 1;
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 18px;
  margin-bottom: 25px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 8px rgba(0, 128, 128, 0.5));
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-sub {
  font-size: 9px;
  color: var(--text-slate);
  letter-spacing: 1.2px;
  font-weight: bold;
}

/* Workspace wrapper */
.workspace-card {
  flex: 1;
  background-color: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 45px rgba(0,0,0,0.5);
  padding: 30px;
  position: relative;
  overflow: hidden;
  max-height: 520px;
}

/* Screen manager */
.screen {
  display: none;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
}

.screen.active {
  display: flex;
}

.screen-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 4px;
}

.screen-desc {
  font-size: 12px;
  color: var(--text-slate);
  margin-bottom: 25px;
  line-height: 1.5;
}

/* ── SCREEN 1: INPUT CREDENTIALS ── */
.inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.input-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-slate);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
  background-color: #050b11;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 40px 12px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  color: var(--text-white);
  outline: none;
  transition: border-color 0.2s ease;
}

.input-wrapper input:focus {
  border-color: var(--teal);
}

.input-wrapper span {
  position: absolute;
  right: 15px;
  font-size: 12px;
  font-weight: bold;
  color: var(--text-slate);
}

.input-group select {
  width: 100%;
  background-color: #050b11;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text-white);
  outline: none;
}

/* Buttons */
.btn-primary {
  background-color: var(--teal);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 28px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  align-self: flex-start;
}

.btn-primary:hover:not(:disabled) {
  background-color: #006666;
  box-shadow: 0 0 15px rgba(0, 128, 128, 0.4);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background-color: var(--border);
  color: var(--text-slate);
  cursor: not-allowed;
  box-shadow: none;
}

/* ── SCREEN 2: TEST SYSTEM ── */
.test-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.q-progress {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1px;
}

.test-timer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-slate);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 4px;
}

.progress-bar-bg {
  width: 100%;
  height: 5px;
  background-color: #050b11;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-bar-fill {
  height: 100%;
  width: 10%;
  background-color: var(--teal);
  transition: width 0.3s ease;
}

.question-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.q-subject {
  font-size: 8px;
  font-weight: 700;
  color: var(--text-slate);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.q-text {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.4;
  margin-bottom: 20px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.option-btn {
  width: 100%;
  background-color: #050b11;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--text-slate);
  font-family: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-btn:hover {
  border-color: var(--teal);
  color: var(--text-white);
}

.option-btn.selected {
  border-color: var(--teal);
  background-color: var(--teal-dim);
  color: var(--text-white);
  font-weight: 600;
}

/* ── SCREEN 3: RESULTS & METRICS ── */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 20px;
}

/* Gauge styling */
.gauge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-wrapper {
  position: relative;
  width: 160px;
  height: 90px;
}

.gauge-svg {
  width: 100%;
  height: 100%;
}

.gauge-track {
  stroke: var(--border);
  stroke-linecap: round;
}

.gauge-fill {
  stroke: var(--gold);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease-out;
}

.gauge-text {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 900;
  color: var(--text-white);
  line-height: 1;
}

.gauge-lbl {
  font-size: 7px;
  color: var(--text-slate);
  letter-spacing: 1px;
  margin-top: 2px;
}

.probability-status {
  margin-top: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 3px 12px;
  border-radius: 12px;
}

.prob-high {
  background-color: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border: 1px solid var(--success);
}

.prob-mod {
  background-color: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  border: 1px solid var(--gold);
}

.prob-low {
  background-color: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  border: 1px solid var(--danger);
}

/* Score list */
.score-card-list {
  background-color: #050b11;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 15px;
}

.score-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-slate);
  margin-bottom: 8px;
}

.score-row strong {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-white);
}

.score-row.total {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-bottom: 0;
  font-weight: bold;
  color: var(--text-white);
}

.score-row.total strong {
  color: var(--gold);
  font-size: 13px;
}

/* Career recommendation */
.career-box {
  background-color: #050b11;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.career-box h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-slate);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.rec-major {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 2px;
}

.rec-reason {
  font-size: 11px;
  color: var(--text-slate);
  line-height: 1.5;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-slate);
  padding: 10px 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--text-white);
}

/* ── RIGHT PANEL: CONTROL PANEL ── */
.control-panel {
  width: 380px;
  background-color: var(--panel-bg);
  border-left: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  flex-shrink: 0;
}

.divider {
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

/* Architect Box */
.architect-card {
  background: rgba(0, 128, 128, 0.05);
  border: 1px solid var(--teal-dim);
  border-radius: 6px;
  padding: 15px;
  position: relative;
}

.architect-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 3px; height: 100%;
  background-color: var(--teal);
}

.arch-lbl {
  font-size: 8px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.arch-name {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-white);
  margin-top: 2px;
}

.arch-meta {
  font-size: 10px;
  color: var(--text-slate);
  margin-bottom: 10px;
}

.arch-purpose {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.5;
  text-align: justify;
}

.arch-purpose strong {
  color: var(--text-white);
}

/* Criteria Facts & Eligibility */
.quick-facts h3, .eligibility-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-slate);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  margin-bottom: 6px;
}

.fact-row strong {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-white);
}

.eligibility-list {
  list-style: none;
}

.eligibility-list li {
  font-size: 11px;
  padding-left: 12px;
  position: relative;
  margin-bottom: 5px;
  line-height: 1.4;
}

.eligibility-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 4px; height: 4px;
  background-color: var(--gold);
  border-radius: 50%;
}
