/* ============================================================
   1. CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
  /* U of T official brand colors (source: brand.utoronto.ca) */
  --color-navy:        #25355A;   /* U of T Blue (primary) */
  --color-navy-light:  #2E4575;   /* lighter variant */
  --color-navy-dark:   #1B2A47;   /* darker variant */
  --color-gold:        #007FA3;   /* Boundless Blue (U of T secondary) */
  --color-gold-light:  #009BBD;   /* lighter Boundless Blue */
  --color-gold-dark:   #006685;   /* darker Boundless Blue */

  --color-bg:          #F2F4F7;   /* U of T Light Grey */
  --color-surface:     #ffffff;
  --color-border:      #dde2ea;
  --color-text:        #1a1a1a;
  --color-text-muted:  #5a6275;

  /* Status colors */
  --status-not-started-bg:     rgba(156, 163, 175, 0.15);
  --status-not-started-text:   #9ca3af;
  --status-not-started-border: #9ca3af;
  --status-in-progress-bg:     rgba(245, 158, 11, 0.15);
  --status-in-progress-text:   #f59e0b;
  --status-in-progress-border: #f59e0b;
  --status-completed-bg:       rgba(16, 185, 129, 0.15);
  --status-completed-text:     #10b981;
  --status-completed-border:   #10b981;
  --status-blocked-bg:         rgba(239, 68, 68, 0.15);
  --status-blocked-text:       #ef4444;
  --status-blocked-border:     #ef4444;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  --shadow-sm:    0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md:    0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg:    0 8px 32px rgba(0, 0, 0, 0.14);
  --shadow-gold:  0 4px 20px rgba(0, 127, 163, 0.25);

  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;

  --header-height: 72px;
}

/* ============================================================
   2. CSS Reset / Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

ol, ul {
  list-style: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

/* ============================================================
   3. Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

/* ============================================================
   4. Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: var(--color-navy-dark);
  border-bottom: 1px solid rgba(0, 127, 163, 0.3);
  /* Subtle gold shimmer line at bottom */
  box-shadow: 0 1px 0 var(--color-gold-dark), 0 4px 24px rgba(0,0,0,0.4);
}

.header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Decorative vertical rule between name and meta */
.header-divider {
  width: 1px;
  height: 32px;
  background: rgba(0, 127, 163, 0.3);
  flex-shrink: 0;
}

.header-name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.header-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.header-position {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-slogan {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.header-nav a {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition), background var(--transition);
}

.header-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.live-badge {
  margin-left: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6ee7b7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  /* Ripple animation */
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: live-ripple 2s ease-out infinite;
}

@keyframes live-ripple {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ============================================================
   5. Main Split Layout
   ============================================================ */
.main-layout {
  display: grid;
  grid-template-columns: 40fr 60fr;
  min-height: calc(100vh - var(--header-height));
  align-items: start;
}

/* ============================================================
   6. Panel Base
   ============================================================ */
.panel {
  padding: 2.5rem 2rem;
}

.panel-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  position: relative;
}

/* Gold underline accent on panel headers */
.panel-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
  border-radius: var(--radius-pill);
}

.panel-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.panel-subhead {
  font-size: 0.825rem;
  opacity: 0.55;
  line-height: 1.5;
}

/* ============================================================
   7. Left Panel — Live Tracker
   ============================================================ */
.panel--tracker {
  background: var(--color-navy);
  color: #fff;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
  /* Subtle dot-grid texture */
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 22px 22px;
}

.panel--tracker::-webkit-scrollbar { width: 4px; }
.panel--tracker::-webkit-scrollbar-track { background: transparent; }
.panel--tracker::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
}

.panel--tracker .panel-header h2 { color: #fff; }

.panel--tracker .panel-header::after {
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

/* Stats bar */
.tracker-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.4rem;
  text-align: center;
  transition: background var(--transition);
}

.stat:hover {
  background: rgba(255, 255, 255, 0.09);
}

.stat-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  font-family: var(--font-heading);
}

.stat-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
}

/* Progress bar */
.progress-wrap {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 0.45rem;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold-light));
  border-radius: var(--radius-pill);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  /* Shimmer effect */
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { left: -60%; }
  100% { left: 160%; }
}

.progress-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.5rem;
}

/* Tracker cards */
.tracker-cards {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tracker-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.8rem 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: background var(--transition), transform var(--transition);
  cursor: default;
}

.tracker-card:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateX(2px);
}

/* Status-colored left border on tracker cards */
.tracker-card[data-status="completed"]   { border-left-color: #10b981; }
.tracker-card[data-status="in_progress"] { border-left-color: #f59e0b; }
.tracker-card[data-status="blocked"]     { border-left-color: #ef4444; }
.tracker-card[data-status="not_started"] { border-left-color: rgba(255,255,255,0.15); }

.tracker-card-body {
  flex: 1;
  min-width: 0;
}

.tracker-card-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

.tracker-card-note {
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.2rem;
  font-style: italic;
}

/* Skeleton loading state */
.skeleton-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  height: 52px;
  animation: skeleton-pulse 1.6s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 0.2; }
}

/* ============================================================
   8. Status Badge (shared across panels)
   ============================================================ */
.status-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Icon character before the label */
.status-badge::before {
  font-style: normal;
  font-size: 0.75em;
}

.status-badge--not_started  { background: var(--status-not-started-bg);  color: var(--status-not-started-text);  }
.status-badge--in_progress  { background: var(--status-in-progress-bg);  color: var(--status-in-progress-text);  }
.status-badge--completed    { background: var(--status-completed-bg);    color: var(--status-completed-text);    }
.status-badge--blocked      { background: var(--status-blocked-bg);      color: var(--status-blocked-text);      }

.status-badge--not_started::before  { content: '○'; }
.status-badge--in_progress::before  { content: '◑'; }
.status-badge--completed::before    { content: '✓'; }
.status-badge--blocked::before      { content: '✕'; }

/* Darker text on light backgrounds */
.panel--promises .status-badge--not_started { color: #6b7280; }
.panel--promises .status-badge--in_progress { color: #d97706; }
.panel--promises .status-badge--completed   { color: #059669; }
.panel--promises .status-badge--blocked     { color: #dc2626; }

/* ============================================================
   9. Right Panel — Campaign Promises
   ============================================================ */
.panel--promises {
  background: var(--color-bg);
}

.panel--promises .panel-header h2 {
  color: var(--color-navy);
}

.panel--promises .panel-header::after {
  background: linear-gradient(90deg, var(--color-navy), transparent);
}

.promises-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.promise-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

/* Subtle sheen in top-right corner */
.promise-item::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at top right, rgba(0,127,163,0.04), transparent 70%);
  pointer-events: none;
}

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

/* Status-colored left border on promise cards */
.promise-item[data-status="completed"]   { border-left-color: #10b981; }
.promise-item[data-status="in_progress"] { border-left-color: #f59e0b; }
.promise-item[data-status="blocked"]     { border-left-color: #ef4444; }
.promise-item[data-status="not_started"] { border-left-color: var(--color-border); }

.promise-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.promise-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex: 1;
}

.promise-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.7;
}

.promise-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.3;
}

.promise-description {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  padding-left: 2.25rem;
}

.promise-note {
  margin-top: 0.75rem;
  margin-left: 2.25rem;
  padding: 0.55rem 0.875rem;
  background: rgba(0, 127, 163, 0.07);
  border-left: 3px solid var(--color-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.promise-note strong {
  color: var(--color-gold-dark);
}

/* ============================================================
   10. Personal Commitments (inside right panel)
   ============================================================ */
.personal-commitments {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.pc-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  position: relative;
}

.pc-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-navy), transparent);
  border-radius: var(--radius-pill);
}

.pc-header h2 {
  font-size: 1.5rem;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

.pc-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.pc-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.pc-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.pc-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0, 127, 163, 0.3);
}

.pc-body {
  flex: 1;
  min-width: 0;
}

.pc-body strong {
  display: block;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.pc-body p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   11. About Section
   ============================================================ */
.about-section {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,0.85);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
  /* Background dot texture */
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  border-top: 1px solid rgba(0, 127, 163, 0.2);
}

/* Large decorative "I" monogram watermark */
.about-section::before {
  content: 'I';
  position: absolute;
  right: -0.1em;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: 28rem;
  font-weight: 700;
  color: rgba(255,255,255,0.018);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Identity column */
.about-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.about-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--color-gold);
  box-shadow: var(--shadow-gold), 0 0 0 6px rgba(0, 127, 163, 0.1);
  overflow: hidden;
  flex-shrink: 0;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.about-name {
  font-size: 1.75rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.about-name-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.about-role {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-school {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

/* Content column */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-quote-wrap {
  position: relative;
  padding-left: 2rem;
  border-left: 3px solid var(--color-gold);
}

.about-quote-mark {
  position: absolute;
  top: -0.75rem;
  left: -0.05em;
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-gold);
  opacity: 0.35;
}

.about-quote {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.8);
  font-style: italic;
}

/* Two-column about grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.about-col h3 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,127,163,0.2);
}

.about-col p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.875rem;
}

.about-col p:last-child { margin-bottom: 0; }

.about-col strong {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

/* Why Me list */
.why-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(0,127,163,0.12);
  border: 1px solid rgba(0,127,163,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-gold);
  letter-spacing: 0.02em;
}

.why-item strong {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.25rem;
}

.why-item p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 0;
}

.about-contact {
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
}

.about-contact a {
  color: var(--color-gold);
}

/* ============================================================
   11. Footer
   ============================================================ */
.site-footer {
  background: var(--color-navy-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 2rem;
}

.footer-disclaimer {
  max-width: 860px;
  margin: 0 auto 1rem;
  padding: 0.875rem 1.125rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.65;
}

.footer-disclaimer strong {
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

.footer-legal {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
}

/* ============================================================
   12. Admin Styles
   ============================================================ */
.admin-body {
  background: #efefed;
  min-height: 100vh;
}

.auth-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.auth-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.auth-card h1 {
  font-size: 1.5rem;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.auth-card > p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-error {
  font-size: 0.8rem;
  color: #dc2626;
  min-height: 1.2em;
}

input[type="password"],
input[type="text"],
select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-surface);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input[type="password"]:focus,
input[type="text"]:focus,
select:focus {
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--transition), opacity var(--transition), transform var(--transition);
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn--primary { background: var(--color-navy); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--color-navy-light); }

.btn--outline { background: transparent; color: var(--color-navy); border: 1px solid var(--color-border); }
.btn--outline:hover:not(:disabled) { background: var(--color-border); }

.btn--sm { padding: 0.4rem 0.875rem; font-size: 0.8rem; }

.btn--save {
  background: var(--color-navy);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  white-space: nowrap;
  min-width: 72px;
}

.btn--save:hover:not(:disabled) { background: var(--color-navy-light); }
.btn--saved { background: #059669 !important; }

.admin-header {
  background: var(--color-navy);
  color: #fff;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid var(--color-gold-dark);
}

.admin-header h1 { font-size: 1.25rem; color: var(--color-gold); }
.admin-header p { font-size: 0.825rem; color: rgba(255,255,255,0.6); flex: 1; }

.admin-main { max-width: 860px; margin: 0 auto; padding: 2rem; }
.admin-loading { text-align: center; color: var(--color-text-muted); padding: 2rem; }

.admin-row {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.admin-row-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }

.admin-row-number {
  width: 28px; height: 28px;
  background: var(--color-navy);
  color: var(--color-gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.admin-row-title { font-size: 1rem; font-weight: 600; color: var(--color-navy); }
.admin-row-controls { display: flex; align-items: flex-end; gap: 0.75rem; }
.admin-field { display: flex; flex-direction: column; gap: 0.3rem; }

.admin-field label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-select { width: auto; min-width: 150px; }
.admin-field--wide { flex: 1; }

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #065f46;
  color: #d1fae5;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  animation: slide-up 0.2s ease;
}

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

.error-msg { color: #dc2626; font-size: 0.875rem; text-align: center; padding: 1rem; }

/* ============================================================
   13. Responsive Overrides
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 900px) {
  .tracker-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-identity {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }

  .about-section::before {
    font-size: 16rem;
  }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; }

  .main-layout { grid-template-columns: 1fr; }

  .panel--tracker {
    position: static;
    height: auto;
    overflow-y: visible;
  }

  .site-header .header-inner { padding: 0 1rem; }
  .header-name { font-size: 1.35rem; }
  .header-slogan { display: none; }
  .header-divider { display: none; }
  .header-position { display: none; }
  .header-nav a { padding: 0.3rem 0.55rem; font-size: 0.68rem; }

  .panel { padding: 1.75rem 1.25rem; }

  .about-section { padding: 3rem 1.25rem; }
  .about-section::before { display: none; }

  .about-identity { flex-direction: column; text-align: center; }

  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .promise-description, .promise-note { padding-left: 0; margin-left: 0; }
  .promise-number { display: none; }

  .admin-row-controls { flex-direction: column; align-items: stretch; }
  .admin-select { min-width: unset; width: 100%; }
}

@media (max-width: 480px) {
  .tracker-stats { grid-template-columns: repeat(2, 1fr); }
  .live-badge span:last-child { display: none; }
  .about-quote { font-size: 1rem; }
  .about-avatar { width: 90px; height: 90px; font-size: 2.25rem; }
}

/* ── Site lock overlay ───────────────────────────────────────────────────── */
#site-lock-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.lock-card {
  background: var(--color-navy);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 3px solid var(--color-gold);
  border-radius: var(--radius-card);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.lock-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}
.lock-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}
.lock-msg {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
}
.lock-form {
  display: flex;
  gap: 0.5rem;
}
.lock-form input {
  flex: 1;
  padding: 0.6rem 0.875rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}
.lock-form input:focus { border-color: var(--color-gold); }
.lock-form button {
  padding: 0.6rem 1.25rem;
  background: var(--color-gold);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.lock-error {
  color: #f87171;
  font-size: 0.8rem;
  margin-top: 0.75rem;
  min-height: 1.2em;
}
