@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-page:       #0b0f1a;
  --bg-surface:    #111827;
  --bg-surface-2:  #1a2233;
  --bg-hover:      #1f2d42;

  /* Borders */
  --border:        #1e2d42;
  --border-focus:  #2563eb;
  --border-error:  #dc2626;

  /* Brand */
  --blue:          #2563eb;
  --blue-light:    #3b82f6;
  --blue-muted:    rgba(37,99,235,0.12);
  --blue-glow:     rgba(59,130,246,0.25);

  /* Text */
  --text-primary:   #f1f5f9;
  --text-secondary: #8a9bb5;
  --text-muted:     #4b5e78;
  --text-link:      #3b82f6;

  /* Status */
  --success:       #16a34a;
  --success-muted: rgba(22,163,74,0.1);
  --success-border:rgba(22,163,74,0.3);
  --warning:       #b45309;
  --warning-muted: rgba(180,83,9,0.1);
  --warning-border:rgba(180,83,9,0.3);
  --error:         #dc2626;
  --error-muted:   rgba(220,38,38,0.08);
  --error-border:  rgba(220,38,38,0.3);

  /* Grade colours */
  --grade-a-bg:    rgba(16,185,129,0.08);
  --grade-a-border:rgba(16,185,129,0.25);
  --grade-a-text:  #34d399;
  --grade-b-bg:    rgba(37,99,235,0.08);
  --grade-b-border:rgba(37,99,235,0.25);
  --grade-b-text:  #60a5fa;
  --grade-c-bg:    rgba(180,83,9,0.08);
  --grade-c-border:rgba(180,83,9,0.25);
  --grade-c-text:  #fbbf24;
  --grade-d-bg:    rgba(220,38,38,0.08);
  --grade-d-border:rgba(220,38,38,0.25);
  --grade-d-text:  #f87171;

  /* Spacing / shape */
  --radius:    12px;
  --radius-sm:  8px;
  --radius-lg: 16px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.app-wrapper { min-height: 100vh; }

.screen {
  display: none;
  min-height: 100vh;
  padding: 2.5rem 1.25rem 5rem;
}

.screen.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.screen-inner {
  max-width: 1536px;
  margin: 0 auto;
  width: 100%;
}

/* ── App Logo ───────────────────────────────────────────────────────────────── */
.app-logo {
  height: 130px;
  max-width: 100%;
  width: auto;
  margin-bottom: 1.5rem;
  display: block;
}

/* ── Landing Screen ─────────────────────────────────────────────────────────── */
.landing-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
}

.landing-content {
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.landing-content header { margin-bottom: 0; text-align: center; }

.landing-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.landing-content .subtitle {
  margin: 0 auto;
}

/* ── Questionnaire Header ───────────────────────────────────────────────────── */
.q-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.q-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

.btn-back-sm {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-back-sm:hover {
  color: var(--text-primary);
  border-color: var(--border-focus);
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
header { margin-bottom: 2rem; }

h1 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
}

.subtitle strong { color: var(--text-primary); font-weight: 600; }

/* ── Mode Card ──────────────────────────────────────────────────────────────── */
.mode-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.mode-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mode-icon-wrap {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-muted);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius-sm);
  color: var(--blue-light);
  flex-shrink: 0;
}

.mode-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mode-desc {
  display: block;
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.mode-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.mode-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Toggle Switch ──────────────────────────────────────────────────────────── */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}
.switch input { opacity: 0; width: 0; height: 0; }

.slider-toggle {
  position: absolute;
  inset: 0;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: 34px;
  cursor: pointer;
  transition: var(--transition);
}
.slider-toggle::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: var(--transition);
}
input:checked + .slider-toggle { background: var(--blue); border-color: var(--blue); }
input:checked + .slider-toggle::before { transform: translateX(22px); background: #fff; }

/* ── Validation Banner ──────────────────────────────────────────────────────── */
.validation-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--error-muted);
  border: 1px solid var(--error-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fca5a5;
  animation: slideDown 0.2s ease-out;
}

.validation-banner svg { stroke: #f87171; flex-shrink: 0; }

/* ── Question Form ──────────────────────────────────────────────────────────── */
.question-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.q-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  transition: border-color var(--transition);
  animation: slideUp 0.3s ease-out both;
}

.q-card:focus-within,
.q-card:hover {
  border-color: var(--border-focus);
}

.q-card.q-card-error {
  border-color: var(--border-error);
  background: var(--error-muted);
}

.q-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.q-num {
  min-width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.q-card-error .q-num {
  background: var(--error-muted);
  border-color: var(--error-border);
  color: #f87171;
}

.q-label-group { flex: 1; }

.q-icon-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.q-icon-label svg { stroke: var(--blue-light); flex-shrink: 0; margin-top: 0.15rem; }

.q-label {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  cursor: pointer;
}

.q-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  padding-left: 1.5rem;
}

/* ── Choice Buttons ─────────────────────────────────────────────────────────── */
.q-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.q-option {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 500;
  transition: var(--transition);
  line-height: 1.4;
  text-align: left;
}

.q-option:hover {
  border-color: var(--blue-light);
  color: var(--text-primary);
  background: var(--bg-hover);
}

.q-option.selected {
  background: var(--blue-muted);
  border-color: var(--blue-light);
  color: #93c5fd;
  font-weight: 600;
}

/* ── Stress Slider ──────────────────────────────────────────────────────────── */
.q-range-wrap { padding-top: 0.25rem; }

.range-value-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.range-current {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-light);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.range-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-surface-2);
  height: 5px;
  border-radius: 3px;
  outline: none;
  border: 1px solid var(--border);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-light);
  border: 2px solid var(--bg-surface);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
  transition: box-shadow var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 5px rgba(59,130,246,0.3);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.range-labels span:nth-child(2) { text-align: center; }
.range-labels span:last-child   { text-align: right; }

/* ── Predict Button ─────────────────────────────────────────────────────────── */
.btn-predict {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.95rem 1.5rem;
  background: var(--blue);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: var(--transition);
  box-shadow: 0 1px 0 rgba(0,0,0,0.3), 0 4px 16px rgba(37,99,235,0.3);
}

.btn-predict:hover {
  background: var(--blue-light);
  box-shadow: 0 4px 24px rgba(59,130,246,0.4);
  transform: translateY(-1px);
}
.btn-predict:active { transform: translateY(0); }
.btn-predict svg { stroke: #fff; }

/* ── Result Screen ──────────────────────────────────────────────────────────── */
.result-screen { padding-top: 1.5rem; }

/* ── GPA Card ───────────────────────────────────────────────────────────────── */
.gpa-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.gpa-meter {
  position: relative;
  width: 190px;
  height: 190px;
  margin-bottom: 1.25rem;
}

.gpa-meter svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.gpa-meter circle { fill: none; stroke-width: 10; }

.gpa-bg-circle    { stroke: var(--bg-surface-2); }

.gpa-value-circle {
  stroke: url(#gpaGradient);
  stroke-linecap: round;
  stroke-dasharray: 502.65;
  stroke-dashoffset: 502.65;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.gpa-text-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gpa-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.gpa-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
  font-weight: 500;
}

/* ── Grade Badge ────────────────────────────────────────────────────────────── */
.grade-badge {
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}

.grade-a { background: var(--grade-a-bg); border-color: var(--grade-a-border); color: var(--grade-a-text); }
.grade-b { background: var(--grade-b-bg); border-color: var(--grade-b-border); color: var(--grade-b-text); }
.grade-c { background: var(--grade-c-bg); border-color: var(--grade-c-border); color: var(--grade-c-text); }
.grade-d { background: var(--grade-d-bg); border-color: var(--grade-d-border); color: var(--grade-d-text); }

/* ── Scale Bar ──────────────────────────────────────────────────────────────── */
.gpa-scale {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 340px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.scale-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  position: relative;
  overflow: visible;
}

.scale-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), #6366f1);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue-light);
  transition: left 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Recommendations Card ───────────────────────────────────────────────────── */
.recommendations-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.rec-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
}

.rec-header svg { stroke: var(--text-muted); }

.divider {
  height: 1px;
  background: var(--border);
  margin: 1.25rem 0;
}

/* ── Advice Card ────────────────────────────────────────────────────────────── */
.advice-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--success-muted);
  border: 1px solid var(--success-border);
  animation: slideUp 0.3s ease-out;
}

.advice-card.improvement {
  background: var(--warning-muted);
  border-color: var(--warning-border);
}

.advice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.advice-icon svg { stroke: var(--blue-light); }
.advice-card.improvement .advice-icon svg { stroke: #fbbf24; }
.advice-card.success     .advice-icon svg { stroke: var(--grade-a-text); }

.advice-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.advice-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Habit Summary ──────────────────────────────────────────────────────────── */
.habit-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
}

.habit-chip {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
}

.chip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.chip-icon svg { stroke: var(--text-muted); }

.chip-content { display: flex; flex-direction: column; gap: 0.1rem; overflow: hidden; }

.chip-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-val {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Back Button ────────────────────────────────────────────────────────────── */
.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-back:hover {
  background: var(--bg-hover);
  border-color: var(--border-focus);
  color: var(--text-primary);
}

.btn-back svg { stroke: currentColor; }

/* ── Loading / Error Overlay ────────────────────────────────────────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,15,26,0.92);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 200;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem;
}

/* ── Spinner ────────────────────────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--blue-light);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── Animations ─────────────────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Global Header & Footer ─────────────────────────────────────────────────── */
.global-header {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.25rem 1.25rem;
}

.header-inner {
  max-width: 1536px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.header-logo-img {
  height: 56px;
  width: auto;
}

.beta-badge {
  font-size: 0.65rem;
  background: var(--blue-muted);
  color: var(--blue-light);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,0.2);
  margin-left: 0.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  gap: 1.5rem;
}

.header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.header-nav a:hover {
  color: var(--blue-light);
}

.global-footer {
  background: var(--bg-surface-2);
  border-top: 1px solid var(--border);
  padding: 3rem 1.25rem 1.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1536px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-content {
  max-width: 320px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 28px;
  width: auto;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--blue-light);
}

.footer-bottom {
  max-width: 1536px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

/* Desktop / Tablet Grid Layout */
@media (min-width: 900px) {
  /* Screen 1: Questionnaire */
  #screen-1 .screen-inner {
    max-width: 900px;
  }

  #screen-1 #question-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Make the stress range card span both columns for cleaner alignment */
  #screen-1 #q-card-stress {
    grid-column: span 2;
  }

  /* Screen 2: Results Screen */
  #screen-2 .results-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2rem;
    align-items: start;
  }

  #screen-2 .results-sidebar {
    position: sticky;
    top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  #screen-2 .results-sidebar > * {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
  }

  #screen-2 .gpa-card {
    margin-bottom: 0;
  }

  #screen-2 .recommendations-card {
    margin-bottom: 0;
  }
}

/* Mobile optimizations */
@media (max-width: 899px) {
  .results-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .mode-card       { flex-direction: column; align-items: flex-start; }
  .q-option        { width: 100%; }
  .habit-summary   { grid-template-columns: 1fr 1fr; }
  .gpa-meter       { width: 160px; height: 160px; }
  .gpa-num         { font-size: 2.5rem; }
}
