/*
 * BHSA Online Application — Design System
 * ----------------------------------------
 * Institutional blue identity, calm editorial character.
 * No excessive gradients, blobs, or generic SaaS styling.
 *
 * Color note: #003087 is used as the institutional blue placeholder.
 * BHSA must confirm the exact brand hex from their logo assets before launch.
 */

/* ─── Imports ────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');


/* ─── Custom Properties (Design Tokens) ─────────────────────────────────── */
:root {
  /* Brand — BHSA Institutional Blue & Gold
   * TODO: Confirm exact brand hex with BHSA before launch */
  --color-primary:        #003087;
  --color-primary-hover:  #002270;
  --color-primary-active: #001855;
  --color-primary-subtle: #e8edf6;
  --color-primary-border: #b3c2e0;

  /* Modern Prestigious Gold Accents */
  --color-gold:           #d4af37;
  --color-gold-hover:     #bfa030;
  --color-gold-light:     #fef3c7;
  --color-gold-glow:      rgba(212, 175, 55, 0.4);

  /* Deep Midnight Academic Palette */
  --color-navy-dark:      #050e24;
  --color-navy-deep:      #091b40;
  --color-navy-rich:      #0e265c;
  --color-navy-card:      rgba(255, 255, 255, 0.05);
  --color-navy-border:    rgba(255, 255, 255, 0.12);

  /* Emil Kowalski Spring Easing */
  --ease-spring:          cubic-bezier(0.16, 1, 0.3, 1);


  /* Surface */
  --color-surface:        #ffffff;
  --color-surface-muted:  #f7f8fa;
  --color-surface-inset:  #f0f2f5;

  /* Text */
  --color-text:           #111827;
  --color-text-secondary: #4b5563;
  --color-text-muted:     #9ca3af;
  --color-text-on-primary: #ffffff;

  /* Border */
  --color-border:         #e5e7eb;
  --color-border-strong:  #d1d5db;

  /* Semantic */
  --color-success:        #166534;
  --color-success-bg:     #dcfce7;
  --color-success-border: #86efac;
  --color-warning:        #92400e;
  --color-warning-bg:     #fef3c7;
  --color-warning-border: #fcd34d;
  --color-danger:         #991b1b;
  --color-danger-bg:      #fee2e2;
  --color-danger-border:  #fca5a5;
  --color-info:           #1e40af;
  --color-info-bg:        #dbeafe;
  --color-info-border:    #93c5fd;
  --color-neutral:        #374151;
  --color-neutral-bg:     #f3f4f6;
  --color-neutral-border: #d1d5db;

  /* Focus ring */
  --color-focus:          #003087;
  --focus-ring:           0 0 0 3px rgba(0, 48, 135, 0.35);

  /* Typography */
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --font-mono:  'Fira Code', 'Courier New', monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;

  --leading-tight:  1.25;
  --leading-snug:   1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --content-width:        680px;   /* Narrow readable width for forms */
  --admin-sidebar-width:  256px;
  --header-height:        64px;

  /* Radius */
  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   8px;
  --radius-xl:   12px;
  --radius-full: 9999px;

  /* Shadow */
  --shadow-xs:  0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-sm:  0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);

  /* Motion — 120–220ms per spec; respect prefers-reduced-motion */
  --duration-fast:   120ms;
  --duration-normal: 180ms;
  --duration-slow:   220ms;
  --ease-default:    cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in:         cubic-bezier(0.4, 0, 1, 1);
  --ease-out:        cubic-bezier(0, 0, 0.2, 1);
}

/* ─── Reduced Motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-surface-muted);
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-primary-border);
  transition: color var(--duration-fast) var(--ease-default);
}

a:hover {
  color: var(--color-primary-hover);
}

a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* ─── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-text);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { line-height: var(--leading-relaxed); }

.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }

/* ─── Layout Containers ───────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ─── Site Header ─────────────────────────────────────────────────────────── */
.site-header {
  background-color: var(--color-primary);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__logo {
  height: 40px;
  width: auto;
}

.site-header__name {
  font-size: clamp(0.875rem, 1.25vw, 1.05rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  max-width: none;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-header__nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: background-color var(--duration-fast) var(--ease-default),
              color var(--duration-fast) var(--ease-default);
}

.site-header__nav-link:hover {
  background-color: rgba(255,255,255,0.12);
  color: white;
}

/* ─── Application Step Nav ────────────────────────────────────────────────── */
.step-nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) 0;
}

.step-nav__list {
  display: flex;
  gap: 0;
  list-style: none;
  overflow-x: auto;
  padding: 0 var(--space-6);
  max-width: var(--content-width);
  margin: 0 auto;
  scrollbar-width: none;
}

.step-nav__list::-webkit-scrollbar { display: none; }

.step-nav__item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.step-nav__item::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-border);
  margin: 0 var(--space-2);
}

.step-nav__item:last-child::after { display: none; }

.step-nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-1) 0;
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-default);
}

.step-nav__link--active { color: var(--color-primary); }
.step-nav__link--completed { color: var(--color-text-secondary); }
.step-nav__link--disabled { pointer-events: none; opacity: 0.5; }

.step-nav__num {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-nav__link--active .step-nav__num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.step-nav__link--completed .step-nav__num {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary-border);
  color: var(--color-primary);
}

/* ─── Form Components ─────────────────────────────────────────────────────── */
.form-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.form-section__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.form-section__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-label--required::after {
  content: ' *';
  color: var(--color-danger);
}

.form-control {
  display: block;
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-base);
  font-family: var(--font-sans);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) var(--ease-default),
              box-shadow var(--duration-fast) var(--ease-default);
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}

.form-control::placeholder { color: var(--color-text-muted); }

.form-control--error {
  border-color: var(--color-danger);
}

.form-control--error:focus {
  box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.25);
}

.form-hint {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-1);
}

.form-error {
  font-size: var(--text-sm);
  color: var(--color-danger);
  margin-top: var(--space-1);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5) var(--space-6);
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* Textarea */
textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Select */
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-10);
  cursor: pointer;
}

/* Checkbox / Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.form-check__input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-check__label {
  font-size: var(--text-sm);
  color: var(--color-text);
  cursor: pointer;
  line-height: var(--leading-normal);
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-default),
              border-color var(--duration-fast) var(--ease-default),
              color var(--duration-fast) var(--ease-default),
              box-shadow var(--duration-fast) var(--ease-default);
  white-space: nowrap;
  line-height: 1.5;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.btn--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: white;
}

.btn--primary:active {
  background: var(--color-primary-active);
}

.btn--secondary {
  background: var(--color-surface);
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-surface-inset);
  color: var(--color-text);
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--color-primary);
}

.btn--ghost:hover {
  background: var(--color-primary-subtle);
  color: var(--color-primary-hover);
}

.btn--danger {
  background: var(--color-danger-bg);
  border-color: var(--color-danger-border);
  color: var(--color-danger);
}

.btn--danger:hover {
  background: var(--color-danger-border);
}

.btn--sm {
  padding: 0.25rem 0.75rem;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 0.75rem 1.75rem;
  font-size: var(--text-base);
}

/* Loading state */
.btn--loading {
  position: relative;
  color: transparent !important;
}

.btn--loading::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Institutional Admin Data Tables ─────────────────────────────────────── */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.table,
.table {
  width: 100% !important;
  border-collapse: collapse;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: #1e293b;
  letter-spacing: normal;
  margin: 0;
}

table.table th,
.table th {
  padding: 0.75rem 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1.2;
}

table.table th.text-center,
.table th.text-center {
  text-align: center;
}

table.table th.text-right,
.table th.text-right {
  text-align: right;
}

table.table td,
.table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

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

table.table tbody tr:hover,
.table tbody tr:hover {
  background-color: #f8fafc;
}

.table-applicant-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.table-applicant-sub {
  font-size: 0.75rem;
  color: #64748b;
  font-family: inherit;
  margin-top: 2px;
}

/* ─── Status Badges ───────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.2rem 0.65rem;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  letter-spacing: 0.01em;
}

.badge--success  { background: var(--color-success-bg);  border-color: var(--color-success-border);  color: var(--color-success); }
.badge--warning  { background: var(--color-warning-bg);  border-color: var(--color-warning-border);  color: var(--color-warning); }
.badge--danger   { background: var(--color-danger-bg);   border-color: var(--color-danger-border);   color: var(--color-danger); }
.badge--info     { background: var(--color-info-bg);     border-color: var(--color-info-border);     color: var(--color-info); }
.badge--neutral  { background: var(--color-neutral-bg);  border-color: var(--color-neutral-border);  color: var(--color-neutral); }

/* ─── Alert / Flash Messages ──────────────────────────────────────────────── */
.alert {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.alert--success { background: var(--color-success-bg); border-color: var(--color-success-border); color: var(--color-success); }
.alert--warning { background: var(--color-warning-bg); border-color: var(--color-warning-border); color: var(--color-warning); }
.alert--danger  { background: var(--color-danger-bg);  border-color: var(--color-danger-border);  color: var(--color-danger); }
.alert--info    { background: var(--color-info-bg);    border-color: var(--color-info-border);    color: var(--color-info); }

/* ─── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card__header {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.card__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.card__body {
  padding: var(--space-6);
}

/* ─── Admin Sidebar Layout ────────────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: calc(100vh - var(--header-height));
}

.admin-sidebar {
  width: var(--admin-sidebar-width);
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  flex-shrink: 0;
}

.admin-sidebar__nav {
  padding: var(--space-4) 0;
}

.admin-sidebar__section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-4) var(--space-5) var(--space-1);
}

.admin-sidebar__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-radius: 0;
  transition: background-color var(--duration-fast) var(--ease-default),
              color var(--duration-fast) var(--ease-default);
}

.admin-sidebar__link:hover {
  background: var(--color-surface-muted);
  color: var(--color-text);
}

.admin-sidebar__link--active {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  font-weight: 600;
  border-right: 2px solid var(--color-primary);
}

.admin-main {
  flex: 1;
  min-width: 0;
  padding: var(--space-8);
}

/* ─── Data Table ──────────────────────────────────────────────────────────── */
.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.data-table thead {
  background: var(--color-surface-muted);
  border-bottom: 1px solid var(--color-border);
}

.data-table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.data-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: middle;
}

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

.data-table tbody tr {
  transition: background-color var(--duration-fast) var(--ease-default);
}

.data-table tbody tr:hover { background: var(--color-surface-muted); }

/* ─── Progress Bar ────────────────────────────────────────────────────────── */
.progress {
  width: 100%;
  height: 6px;
  background: var(--color-surface-inset);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) var(--ease-out);
}

/* ─── Upload component ────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-default),
              background-color var(--duration-fast) var(--ease-default);
}

.upload-zone:hover, .upload-zone--dragover {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
}

.upload-zone__icon {
  margin: 0 auto var(--space-3);
  width: 40px;
  height: 40px;
  color: var(--color-text-muted);
}

.upload-zone__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
}

.upload-zone__hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ─── Word Counter ────────────────────────────────────────────────────────── */
.word-counter {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.word-counter__count { font-weight: 600; color: var(--color-text-secondary); }
.word-counter__count--ok { color: var(--color-success); }
.word-counter__count--over { color: var(--color-danger); }

/* ─── Timeline / Status history ───────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--color-border);
}

.timeline__item {
  position: relative;
  margin-bottom: var(--space-6);
}

.timeline__dot {
  position: absolute;
  left: calc(-1 * var(--space-8) + 4px);
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline__dot--completed { background: var(--color-success); box-shadow: 0 0 0 2px var(--color-success); }
.timeline__dot--pending { background: var(--color-surface); box-shadow: 0 0 0 2px var(--color-border-strong); }

.timeline__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.timeline__meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ─── Empty / Loading / Error States ─────────────────────────────────────── */
.state-empty, .state-loading, .state-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16);
  text-align: center;
  gap: var(--space-3);
}

.state-empty__icon, .state-error__icon {
  width: 48px;
  height: 48px;
  color: var(--color-text-muted);
}

.state-empty__title, .state-error__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-secondary);
}

.state-empty__desc, .state-error__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 320px;
}

/* Loading spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ─── Utility ─────────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.flex { display: flex; }
.flex--between { display: flex; justify-content: space-between; align-items: center; }
.flex--center  { display: flex; align-items: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

.w-full { width: 100%; }
.font-semibold { font-weight: 600; }
.text-sm { font-size: var(--text-sm); }

/* Page header */
.page-header {
  margin-bottom: var(--space-8);
}

.page-header__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
}

.page-header__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-top: var(--space-1);
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .admin-sidebar {
    display: none; /* Mobile menu handled by JS in Phase 2 */
  }

  .admin-main {
    padding: var(--space-4);
  }

  .container, .container--narrow {
    padding: 0 var(--space-4);
  }

  .card__body { padding: var(--space-4); }
  .form-section { padding: var(--space-4); }
}

/* ══════════════════════════════════════════════════════════════════════════
 * MODERN LANDING PAGE & TACTILE MICRO-ANIMATION SUITE
 * ══════════════════════════════════════════════════════════════════════════ */

/* ─── Hero Section ────────────────────────────────────────────────────────── */
.hero-modern {
  background: radial-gradient(circle at 85% 15%, rgba(212, 175, 55, 0.14) 0%, transparent 45%),
              radial-gradient(circle at 10% 85%, rgba(37, 99, 235, 0.18) 0%, transparent 50%),
              linear-gradient(135deg, #050e24 0%, #081a3d 50%, #0d2760 100%);
  color: white;
  padding: 5rem 0 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  pointer-events: none;
}

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

/* ─── Status Badge with Ambient Pulse ────────────────────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fbbf24;
  margin-bottom: 1.25rem;
}

.hero-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  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);
  }
}

/* ─── Typography & Gradients ─────────────────────────────────────────────── */
.hero-title {
  font-family: 'Plus Jakarta Sans', var(--font-sans);
  font-size: clamp(2.25rem, 4vw + 0.5rem, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #ffffff 40%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 540px;
}

/* ─── Modern Buttons (Tactile + Shimmer) ─────────────────────────────────── */
.btn--gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b 0%, #d4af37 100%);
  color: #061129 !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  border: none;
  text-decoration: none !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s var(--ease-spring);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.45);
}

.btn--gold:active {
  transform: scale(0.98);
}

/* Subtle Shimmer (Fires once every 6 seconds) */
.btn--gold::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(25deg);
  animation: button-shimmer 6s infinite;
}

@keyframes button-shimmer {
  0%, 75% { left: -100%; }
  100% { left: 200%; }
}

.btn__arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease-spring);
}

.btn--gold:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  text-decoration: none !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s var(--ease-spring);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-2px);
}

.btn--glass:active {
  transform: scale(0.98);
}

/* ─── Hero Floating Showcase Card (Gentle Micro-Float) ───────────────────── */
.hero-card-floating {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: micro-float 4.5s ease-in-out infinite;
}

@keyframes micro-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-perk-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-perk-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.hero-perk-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.hero-perk-sub {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* ─── Trust Badges ───────────────────────────────────────────────────────── */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-item svg {
  width: 16px;
  height: 16px;
  color: #10b981;
}

/* ─── Prestige Stats Ribbon ──────────────────────────────────────────────── */
.stats-ribbon {
  background: #050e24;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.25rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item__num {
  font-family: 'Plus Jakarta Sans', var(--font-sans);
  font-size: 2rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat-item__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

/* ─── Connected Timeline Journey ─────────────────────────────────────────── */
.journey-section {
  padding: 5rem 0;
  background: #ffffff;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d4af37;
  margin-bottom: 0.5rem;
}

.section-heading {
  font-family: 'Plus Jakarta Sans', var(--font-sans);
  font-size: 2.25rem;
  font-weight: 800;
  color: #050e24;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
}

.step-card-modern {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  position: relative;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring), border-color 0.25s ease;
}

.step-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(5, 14, 36, 0.08);
  border-color: #cbd5e1;
}

.step-num-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #003087;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 48, 135, 0.25);
}

.step-duration {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #059669;
  background: #d1fae5;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

/* ─── Specializations Grid ───────────────────────────────────────────────── */
.spec-section {
  padding: 5rem 0;
  background: #f8fafc;
}

.spec-grid, .spec-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
  align-items: start !important;
}

.spec-card, .spec-card-modern {
  align-self: start !important;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms var(--ease-spring);
  position: relative;
}

.spec-card:hover, .spec-card-modern:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(0, 48, 135, 0.08);
  transform: translateY(-2px);
}

.spec-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  transition: transform 0.25s var(--ease-spring);
}

.spec-card-modern:hover .spec-icon-box {
  transform: scale(1.1);
}

.spec-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary, #003087);
  background: rgba(0, 48, 135, 0.08);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.85rem;
  width: fit-content;
}

.spec-card-title {
  font-family: 'Plus Jakarta Sans', var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: #050e24;
  margin-bottom: 0.5rem;
}

.spec-card-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.spec-card-link {
  margin-top: auto;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #003087;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ─── Closer CTA Section ─────────────────────────────────────────────────── */
.closer-section {
  padding: 5rem 0;
  background: #050e24;
}

.closer-card-modern {
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.18) 0%, transparent 70%),
              linear-gradient(135deg, #071536 0%, #0d2760 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 24px;
  padding: 4.5rem 2rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/* ─── Responsive Media Queries ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-card-floating {
    max-width: 480px;
    margin: 0 auto;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .journey-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spec-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-modern {
    padding: 3.5rem 0 4rem 0;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .trust-strip {
    justify-content: center;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .journey-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .spec-grid-modern {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .closer-card-modern {
    padding: 3rem 1.5rem;
  }
  .mobile-bottom-bar {
    display: flex !important;
  }
  .site-header__nav {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* ─── Mobile Navigation Toggle & Drawer ──────────────────────────────────── */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-primary);
  z-index: 999;
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-drawer.is-open {
  display: flex !important;
}

.mobile-drawer-link {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.15s ease;
}

.mobile-drawer-link:hover, .mobile-drawer-link:active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}


