@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400..700;1,9..40,400..700&family=Manrope:wght@500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  /* Brand Palette: High-Trust Academic & Administrative */
  --navy-950: #071526;
  --navy-900: #0b1f38;
  --navy-800: #112a4a;
  --navy-700: #1a3c66;
  --navy-600: #255185;
  
  --blue-600: #1d68bd;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  --emerald-700: #065f46;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;

  --amber-700: #92400e;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --amber-50:  #fffbeb;

  --red-700: #991b1b;
  --red-600: #dc2626;
  --red-500: #ef4444;
  --red-100: #fee2e2;
  --red-50:  #fef2f2;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  /* Theme mappings */
  --bg-page:   #f8fafc;
  --bg-surface: #ffffff;
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Form & Component Metrics */
  --input-height: 46px;
  --input-height-sm: 38px;
  --button-height: 46px;
  --button-height-sm: 38px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 5px -1px rgba(15, 23, 42, 0.08), 0 1px 3px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 40px -8px rgba(11, 31, 56, 0.15);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;
  
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  vertical-align: middle;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--navy-900);
}

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 74px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 0.2s ease;
}

.site-header:has(+ * :hover), .site-header {
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--slate-900);
  transition: transform 0.15s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(11, 31, 56, 0.25);
  flex-shrink: 0;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  line-height: 1.2;
}

.brand small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-600);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 1px;
}

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

.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--slate-600);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav a:hover {
  color: var(--navy-900);
  background: var(--slate-100);
}

.nav a.active {
  color: var(--navy-900);
  background: var(--slate-100);
}

.mobile-menu {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  padding: 8px;
  color: var(--slate-700);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-menu svg {
  width: 20px;
  height: 20px;
}

/* Flash alerts */
.flash-wrap {
  padding-top: 16px;
  padding-bottom: 4px;
  animation: slideDown 0.25s ease-out;
}

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

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: var(--shadow-xs);
}

.notice.success {
  background-color: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-100);
}

.notice.warning {
  background-color: var(--amber-50);
  color: var(--amber-700);
  border: 1px solid var(--amber-100);
}

.notice.error {
  background-color: var(--red-50);
  color: var(--red-700);
  border: 1px solid var(--red-100);
}

.notice-icon-svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--button-height);
  min-height: var(--button-height);
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background-color: var(--navy-900);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(11, 31, 56, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.16s ease;
}

.button:hover {
  background-color: var(--navy-800);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.button-small {
  height: var(--button-height-sm);
  min-height: var(--button-height-sm);
  padding: 0 14px;
  font-size: 12.5px;
  border-radius: var(--radius-sm);
}

.button-quiet {
  background-color: var(--white);
  color: var(--slate-700);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.button-quiet:hover {
  background-color: var(--slate-50);
  color: var(--navy-900);
  border-color: var(--slate-400);
}

.button-success {
  background-color: var(--emerald-600);
  color: var(--white);
}

.button-success:hover {
  background-color: var(--emerald-700);
  color: var(--white);
}

.button-danger {
  background-color: var(--white);
  color: var(--red-600);
  border: 1px solid var(--red-200, #fecaca);
}

.button-danger:hover {
  background-color: var(--red-50);
  color: var(--red-700);
  border-color: var(--red-300, #fca5a5);
}

.button-light {
  background-color: var(--white);
  color: var(--navy-900);
  box-shadow: var(--shadow-md);
}

.button-light:hover {
  background-color: var(--slate-50);
  color: var(--navy-950);
}

.button-wide {
  width: 100%;
}

.button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   Input with Icon (Form Controls)
   ========================================================================== */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-with-icon svg.field-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--slate-400);
  pointer-events: none;
  transition: color 0.15s ease;
  z-index: 2;
}

.input-with-icon:focus-within svg.field-icon {
  color: var(--blue-600);
}

/* Ensure padding-left is ALWAYS preserved even inside .auth-form */
.input-with-icon input,
.auth-form .input-with-icon input,
.report-form .input-with-icon input,
.lookup-form .input-with-icon input {
  width: 100%;
  height: var(--input-height);
  padding: 0 14px 0 42px !important;
  background: var(--slate-50);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--slate-900);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: all 0.15s ease;
}

.input-with-icon input:focus,
.auth-form .input-with-icon input:focus,
.report-form .input-with-icon input:focus,
.lookup-form .input-with-icon input:focus {
  background: var(--white);
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Standalone inputs & selects without icons */
.auth-form input:not([type="hidden"]), 
.auth-form select, 
.report-form input:not([type="hidden"]), 
.report-form select, 
.report-form textarea {
  width: 100%;
  height: var(--input-height);
  padding: 0 14px;
  background: var(--slate-50);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--slate-900);
  font-size: 14px;
  outline: none;
  transition: all 0.15s ease;
}

/* Custom dropdown chevron for styled selects */
.auth-form select, .report-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 38px;
}

.report-form textarea {
  height: auto;
  min-height: 100px;
  padding: 12px 14px;
  resize: vertical;
}

.auth-form input:focus, .auth-form select:focus, 
.report-form input:focus, .report-form select:focus, .report-form textarea:focus {
  background: var(--white);
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Disabled Form States */
input:disabled, select:disabled, textarea:disabled {
  background-color: var(--slate-100) !important;
  color: var(--slate-500) !important;
  cursor: not-allowed;
  border-color: var(--slate-200) !important;
  box-shadow: none !important;
}

/* ==========================================================================
   Landing Page (index.php)
   ========================================================================== */
.hero {
  position: relative;
  background: radial-gradient(120% 80% at 50% 0%, #f1f6fb 0%, #ffffff 70%);
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background-color: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-600);
  margin-bottom: 20px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--emerald-500);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--navy-950);
  margin: 0 0 20px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue-600) 0%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--slate-600);
  margin: 0 0 32px;
  max-width: 580px;
}

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

.trust-row {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  color: var(--slate-600);
  font-size: 12.5px;
  font-weight: 600;
  flex-wrap: wrap;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-chip svg {
  width: 16px;
  height: 16px;
  color: var(--blue-600);
  flex-shrink: 0;
}

/* Quick Lookup Card */
.lookup-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lookup-card:hover {
  box-shadow: var(--shadow-xl);
}

.lookup-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.section-kicker {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-600);
  margin-bottom: 4px;
}

.lookup-card h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy-950);
  margin: 0;
}

.lookup-icon {
  width: 42px;
  height: 42px;
  background-color: var(--blue-50);
  color: var(--blue-600);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.lookup-icon svg {
  width: 20px;
  height: 20px;
}

.lookup-card p {
  color: var(--slate-600);
  font-size: 13.5px;
  margin: 6px 0 20px;
}

.lookup-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lookup-form .input-with-icon {
  flex: 1;
}

.lookup-form .button {
  flex-shrink: 0;
}

.lookup-result {
  margin-top: 18px;
  padding: 16px;
  background: linear-gradient(135deg, var(--emerald-50) 0%, #f0fdf4 100%);
  border: 1px solid var(--emerald-100);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-xs);
  animation: fadeIn 0.2s ease;
}

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

.result-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald-700);
}

.lookup-result strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-900);
  margin-top: 2px;
}

.lookup-note {
  font-size: 12px;
  color: var(--slate-500);
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Live Ticker Marquee */
.ticker {
  background-color: var(--navy-950);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.ticker-inner {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-400);
  background: rgba(37, 99, 235, 0.15);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-viewport {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 30px, black calc(100% - 30px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 30px, black calc(100% - 30px), transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  will-change: transform;
  animation: tickerScroll 28s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--slate-300);
}

.ticker-item b {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--emerald-500);
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.ticker-item small {
  color: var(--slate-500);
  font-size: 11px;
}

/* Sections */
.section {
  padding: 92px 0;
}

.section-soft {
  background-color: var(--slate-50);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-heading {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-heading.compact {
  margin-bottom: 36px;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--navy-950);
  margin: 8px 0 14px;
  line-height: 1.15;
}

.section-heading p {
  color: var(--slate-600);
  font-size: 16px;
  margin: 0;
  line-height: 1.65;
}

/* How It Works Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.step-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--blue-50);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 20px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-950);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.step-card p {
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-grid h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--navy-950);
  margin: 8px 0 16px;
  line-height: 1.15;
}

.about-grid p {
  color: var(--slate-600);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 16px;
}

.about-features {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.about-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--slate-700);
}

.about-feat-item svg {
  width: 18px;
  height: 18px;
  color: var(--emerald-600);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.quote-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: all 0.2s ease;
}

.quote-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
  margin-bottom: 14px;
}

.stars svg {
  width: 15px;
  height: 15px;
}

.quote-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--slate-700);
  margin: 0 0 24px;
}

.quote-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.quote-person strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-950);
}

.quote-person small {
  display: block;
  font-size: 11px;
  color: var(--slate-500);
  font-family: var(--font-mono);
}

/* CTA Band */
.cta-band {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 50%, var(--navy-800) 100%);
  color: var(--white);
  padding: 68px 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin: 6px 0 10px;
}

.cta-inner p {
  color: var(--slate-300);
  font-size: 15px;
  margin: 0;
}

.cta-inner .section-kicker {
  color: var(--blue-400);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--white);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer p {
  font-size: 13.5px;
  color: var(--slate-600);
  line-height: 1.65;
  margin: 0 0 14px;
}

.footer h4 {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-800);
  margin: 0 0 16px;
}

.footer-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--slate-600);
}

.footer-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--blue-600);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  margin-top: 48px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--slate-500);
  font-size: 12px;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--emerald-700);
  font-weight: 600;
  font-size: 11.5px;
}

.status-dot-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--emerald-500);
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

/* ==========================================================================
   Authentication Pages (login.php & signup.php)
   ========================================================================== */
.auth-page {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background-color: var(--white);
}

.auth-panel {
  padding: 48px 40px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-brand {
  margin-bottom: 32px;
}

.auth-copy h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy-950);
  margin: 6px 0 8px;
  line-height: 1.15;
}

.auth-copy p {
  color: var(--slate-600);
  font-size: 14.5px;
  margin: 0 0 24px;
}

.auth-form {
  display: grid;
  gap: 16px;
  width: 100%;
}

.auth-form label, .report-form label {
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slate-700);
}

.form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Interactive Role Picker */
.role-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 20px;
  width: 100%;
}

.role-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--slate-50);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: all 0.18s ease;
}

.role-button:hover {
  background: var(--white);
  border-color: var(--border-strong);
}

.role-button.selected {
  background: var(--blue-50);
  border-color: var(--blue-500);
  box-shadow: 0 0 0 1px var(--blue-500);
}

.role-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--slate-600);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
  transition: all 0.18s ease;
}

.role-button.selected .role-btn-icon {
  background: var(--blue-600);
  color: var(--white);
}

.role-btn-icon svg {
  width: 18px;
  height: 18px;
}

.role-button strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.2;
}

.role-button small {
  display: block;
  font-size: 11px;
  color: var(--slate-500);
  margin-top: 2px;
}

.switch-auth {
  font-size: 13px;
  color: var(--slate-600);
  margin-top: 22px;
}

.switch-auth a, .auth-foot a {
  color: var(--blue-600);
  font-weight: 700;
  text-decoration: none;
}

.switch-auth a:hover, .auth-foot a:hover {
  text-decoration: underline;
}

.auth-foot {
  margin-top: 28px;
  font-size: 12.5px;
}

.auth-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--slate-500);
}

.auth-foot a:hover {
  color: var(--slate-800);
}

/* Auth Aside */
.auth-aside {
  background: linear-gradient(145deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-800) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 60px;
  color: var(--white);
}

.auth-aside::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  top: -100px;
  right: -100px;
}

.auth-aside::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
  bottom: 50px;
  left: 20px;
}

.aside-content {
  position: relative;
  z-index: 1;
  max-width: 440px;
}

.aside-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--blue-400);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.aside-content h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--white);
  margin: 0 0 16px;
}

.aside-content p {
  color: var(--slate-300);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 28px;
}

.aside-list {
  display: grid;
  gap: 14px;
}

.aside-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate-200);
}

.aside-list svg {
  width: 16px;
  height: 16px;
  color: var(--emerald-500);
  flex-shrink: 0;
}

/* ==========================================================================
   Dashboard Common (Student & Admin)
   ========================================================================== */
.dashboard-page {
  background-color: var(--slate-50);
  min-height: calc(100vh - 74px);
  padding: 44px 0 80px;
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}

.dashboard-head h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--navy-950);
  margin: 6px 0;
  line-height: 1.15;
}

.dashboard-head p {
  color: var(--slate-600);
  font-size: 14.5px;
  margin: 0;
}

.identity-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 10px;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.identity-chip strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.2;
}

.identity-chip small {
  display: block;
  font-size: 11px;
  color: var(--slate-500);
  font-family: var(--font-mono);
}

.signout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--slate-100);
  color: var(--slate-600);
  border: none;
  flex-shrink: 0;
  transition: all 0.15s ease;
  margin-left: 4px;
}

.signout-btn:hover {
  background: var(--red-50);
  color: var(--red-600);
}

.signout-btn svg {
  width: 16px;
  height: 16px;
}

/* Card & Section Headings */
.dash-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.dash-card:hover {
  box-shadow: var(--shadow-md);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.dash-card h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy-950);
  margin: 3px 0 0;
}

/* Badges / Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pill.verified, .pill.duplicate-issued, .pill.dispatched {
  background-color: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-100);
}

.pill.reported {
  background-color: var(--amber-50);
  color: var(--amber-700);
  border: 1px solid var(--amber-100);
}

.pill.rejected {
  background-color: var(--red-50);
  color: var(--red-700);
  border: 1px solid var(--red-100);
}

.pill.neutral, .pill.none {
  background-color: var(--slate-100);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
}

/* ==========================================================================
   Student Dashboard Specifics (student.php)
   ========================================================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
}

.digital-pass {
  grid-column: 1;
  background: radial-gradient(100% 120% at 90% 10%, #f8fbfd 0%, #ffffff 100%);
  border: 1px solid #d5e2ec;
  position: relative;
  overflow: hidden;
}

.digital-pass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-900), var(--blue-600), var(--emerald-500));
}

.pass-body {
  margin-top: 22px;
  padding: 24px;
  background: var(--white);
  border: 1px solid #e1ebf2;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(11, 31, 56, 0.04);
  display: grid;
  grid-template-columns: 88px 1fr 1fr;
  gap: 24px;
  align-items: start;
  position: relative;
}

.pass-body::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 100%;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(37, 99, 235, 0.02) 10px, rgba(37, 99, 235, 0.02) 20px);
  pointer-events: none;
}

.pass-photo {
  width: 84px;
  height: 98px;
  background: linear-gradient(135deg, var(--slate-100) 0%, var(--slate-200) 100%);
  border: 2px solid var(--white);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.pass-field {
  margin-bottom: 12px;
}

.pass-field:last-child {
  margin-bottom: 0;
}

.pass-field span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  margin-bottom: 2px;
}

.pass-field strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-950);
}

.pass-field strong.mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.pass-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--slate-200);
  color: var(--slate-500);
  font-size: 11.5px;
  flex-wrap: wrap;
  gap: 8px;
}

.pass-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Stepper Component */
.status-card {
  grid-column: 2;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 28px 0 24px;
  position: relative;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 12%;
  right: 12%;
  height: 2px;
  background-color: var(--slate-200);
  z-index: 0;
}

.track-step {
  position: relative;
  text-align: center;
  z-index: 1;
}

.track-step span {
  margin: 0 auto 10px;
  width: 32px;
  height: 32px;
  background: var(--white);
  border: 2px solid var(--slate-300);
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.track-step.done span {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(11, 31, 56, 0.2);
}

.track-step.current span {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.track-step small {
  display: block;
  font-size: 11px;
  color: var(--slate-500);
  font-weight: 600;
  line-height: 1.25;
}

.track-step.done small {
  color: var(--navy-900);
  font-weight: 700;
}

.track-step.current small {
  color: var(--blue-600);
  font-weight: 700;
}

.muted {
  font-size: 12.5px;
  color: var(--slate-600);
  line-height: 1.6;
  margin: 0;
}

.form-card {
  grid-column: 1;
}

.alerts-card {
  grid-column: 2;
}

.notice-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.notice-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.notice-icon {
  width: 32px;
  height: 32px;
  background: var(--slate-100);
  color: var(--slate-600);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.notice-icon svg {
  width: 16px;
  height: 16px;
}

.notice-row strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slate-900);
  font-family: var(--font-mono);
}

.notice-row p {
  font-size: 12px;
  color: var(--slate-600);
  margin: 2px 0 0;
  line-height: 1.5;
}

.notice-row small {
  font-size: 11px;
  color: var(--slate-400);
  white-space: nowrap;
}

/* ==========================================================================
   Admin Control Desk (admin.php)
   ========================================================================== */
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.metric-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
}

.metric-card.navy::before { background-color: var(--navy-900); }
.metric-card.amber::before { background-color: var(--amber-500); }
.metric-card.red::before { background-color: var(--red-600); }

.metric-card span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
}

.metric-card strong {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: var(--navy-950);
  display: block;
  margin: 6px 0;
}

.metric-card small {
  font-size: 12px;
  color: var(--slate-500);
}

.metric-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.metric-card.navy .metric-icon-box { background: var(--blue-50); color: var(--blue-600); }
.metric-card.amber .metric-icon-box { background: var(--amber-50); color: var(--amber-600); }
.metric-card.red .metric-icon-box { background: var(--red-50); color: var(--red-600); }

.metric-icon-box svg {
  width: 24px;
  height: 24px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.admin-grid > .dash-card:first-child {
  grid-column: 1 / -1;
}

/* Verification Table */
.compact-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compact-input {
  width: 280px;
  height: var(--input-height-sm);
  background: var(--slate-50);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 13px;
  outline: none;
  transition: all 0.15s ease;
}

.compact-input:focus {
  background: var(--white);
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.clear-link {
  font-size: 12px;
  color: var(--slate-500);
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  text-align: left;
}

.table-wrap th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-600);
  background-color: var(--slate-100);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.table-wrap td {
  padding: 14px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

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

.table-wrap tr:hover td {
  background-color: var(--slate-50);
}

.table-wrap td strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--slate-900);
}

.table-wrap td small {
  display: block;
  font-size: 11.5px;
  color: var(--slate-500);
  margin-top: 1px;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-700);
  background: var(--slate-100);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  display: inline-block;
  white-space: nowrap;
}

/* Freeze Action Button */
.freeze-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.freeze-button.active {
  background-color: var(--emerald-50);
  color: var(--emerald-700);
  border-color: var(--emerald-100);
}

.freeze-button.active:hover {
  background-color: var(--emerald-100);
}

.freeze-button.frozen {
  background-color: var(--red-50);
  color: var(--red-700);
  border-color: var(--red-100);
}

.freeze-button.frozen:hover {
  background-color: var(--red-100);
}

.freeze-button svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Approval Desk */
.filter-tabs {
  display: flex;
  background: var(--slate-100);
  padding: 3px;
  border-radius: var(--radius-sm);
  gap: 3px;
}

.filter-tabs a {
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--slate-600);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.filter-tabs a.active {
  background: var(--white);
  color: var(--navy-950);
  box-shadow: var(--shadow-xs);
}

.request-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.request {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s ease;
}

.request:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.request-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.request-id {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

.request > strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-950);
}

.request-desc-box {
  margin: 12px 0;
  padding: 12px 16px;
  background: var(--slate-50);
  border-left: 3px solid var(--blue-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: var(--slate-700);
  line-height: 1.55;
}

.request-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--slate-500);
  flex-wrap: wrap;
}

.request-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.request-meta-row svg {
  width: 14px;
  height: 14px;
  color: var(--slate-400);
  flex-shrink: 0;
}

.request-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.decision {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald-700);
}

/* OCR Simulator Card */
.ocr-card {
  grid-column: 1 / -1;
}

.ocr-box {
  margin-top: 18px;
  padding: 24px;
  background: var(--slate-50);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.ocr-field {
  flex: 1;
}

.ocr-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.ocr-field input[type="file"] {
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12.5px;
  width: 100%;
  height: var(--input-height);
  display: flex;
  align-items: center;
  outline: none;
}

.ocr-field input[type="text"], .ocr-field input.compact-input {
  height: var(--input-height);
  width: 100%;
}

.ocr-result-banner {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ocr-result-banner.success {
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  color: var(--emerald-700);
}

.ocr-result-banner.error {
  background: var(--red-50);
  border: 1px solid var(--red-100);
  color: var(--red-700);
}

.ocr-result-info strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.ocr-result-info span {
  font-size: 12.5px;
  color: var(--slate-600);
}

.ocr-confidence-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.06);
}

.empty-cell {
  text-align: center;
  color: var(--slate-500);
  padding: 36px !important;
  font-size: 13.5px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    display: none;
  }

  .auth-panel {
    max-width: 520px;
    padding: 40px 24px;
  }

  .dashboard-grid, .admin-grid {
    grid-template-columns: 1fr;
  }

  .digital-pass, .status-card, .form-card, .alerts-card, .admin-grid > .dash-card:first-child {
    grid-column: auto;
  }

  .steps, .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .ocr-box {
    flex-direction: column;
    align-items: stretch;
  }

  .ocr-box .button {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 32px), 1160px);
  }

  .site-header {
    height: 68px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    background: var(--white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    z-index: 100;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
    font-size: 14px;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .trust-row {
    flex-direction: column;
    gap: 12px;
  }

  .lookup-form {
    flex-direction: column;
    align-items: stretch;
  }

  .lookup-form .button {
    width: 100%;
  }

  .pass-body {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 16px;
  }

  .pass-photo {
    margin: 0 0 8px 0;
  }

  .stepper {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stepper::before {
    display: none;
  }

  .form-two, .role-picker {
    grid-template-columns: 1fr;
  }

  .dashboard-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-tabs {
    width: 100%;
  }

  .filter-tabs a {
    flex: 1;
    text-align: center;
  }

  .compact-search-form {
    width: 100%;
    flex-wrap: wrap;
  }

  .compact-input {
    width: 100%;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}
