/* ==========================================================================
   DAYCARE OS ENTERPRISE CONSOLE - LUXURY DESIGN SYSTEM
   Theme: Obsidian Deep Cosmic Slate with Radiant Cyan, Indigo & Violet Accents
   ========================================================================== */

:root {
  /* Surfaces & Backgrounds */
  --bg-deep: #07090f;
  --bg-surface: #0e1320;
  --bg-surface-elevated: #151c2e;
  --bg-surface-card: rgba(19, 26, 43, 0.75);
  --bg-surface-hover: rgba(30, 41, 67, 0.85);

  /* Borders & Highlights */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-light: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(99, 102, 241, 0.4);
  --border-glow-cyan: rgba(56, 189, 248, 0.35);

  /* Typography Colors */
  --text-pure: #ffffff;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #38bdf8;

  /* Radiant Accents & Brand Gradients */
  --accent-cyan: #38bdf8;
  --accent-indigo: #6366f1;
  --accent-violet: #a855f7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Button Gradients */
  --grad-primary: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #8b5cf6 100%);
  --grad-primary-hover: linear-gradient(135deg, #38bdf8 0%, #4f46e5 50%, #7c3aed 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
  --grad-gold-shield: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.05) 50%, rgba(30, 58, 138, 0.15) 100%);

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.65), 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-glow-cyan: 0 0 24px rgba(56, 189, 248, 0.25);
  --shadow-glow-indigo: 0 0 24px rgba(99, 102, 241, 0.25);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  /* Fonts */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  box-sizing: border-box;
}

#view-corporate-site {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   AMBIENT LIGHTING & MESH BACKGROUND
   ========================================================================== */
.ambient-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  contain: strict;
  transform: translateZ(0);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  animation: floatOrb 22s ease-in-out infinite alternate;
}

.orb-indigo {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: -120px;
  left: 10%;
}

.orb-cyan {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
  bottom: -150px;
  right: 5%;
  animation-delay: -7s;
}

.orb-violet {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  top: 35%;
  right: 25%;
  animation-delay: -14s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, -40px) scale(0.95); }
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.02;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ==========================================================================
   EXECUTIVE TOP COMMAND HEADER
   ========================================================================== */
.executive-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.header-inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand & Logo - SDBiometrix Luxury Master Branding */
.brand-block {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.brand-logo-link:hover {
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.45));
}

.brand-badge-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-badge-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 2px 10px rgba(0, 80, 164, 0.55));
  transition: transform var(--transition-smooth);
}

.brand-logo-link:hover .brand-badge-img {
  transform: scale(1.06) rotate(2deg);
}

.brand-badge-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: pulseBrandGlow 3.5s ease-in-out infinite alternate;
}

@keyframes pulseBrandGlow {
  0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.35; }
  100% { transform: translate(-50%, -50%) scale(1.18); opacity: 0.75; }
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-pure);
}

.brand-accent {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-version {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
}

.brand-sub {
  font-size: 0.725rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Modal Brand Displays */
.modal-logo-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.modal-brand-logo {
  height: 48px;
  width: auto;
  max-width: 85%;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(56, 189, 248, 0.25));
  margin: 0 auto 0.5rem;
  display: block;
}

/* System Cloud Status Chip */
.system-status-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: #34d399;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #34d399; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.latency-tag {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #a7f3d0;
}

/* Header Role Switcher Bar */
.header-role-switcher {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  padding: 0.28rem 0.45rem;
  border-radius: var(--radius-full);
}

.switcher-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-left: 0.4rem;
}

.role-pill-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.role-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.role-pill-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-pure);
  transform: translateY(-1px);
}

.role-pill-btn.active {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.35);
}

.role-pill-btn:disabled,
.role-pill-btn.loading {
  opacity: 0.85;
  cursor: wait;
}

.role-pill-btn .pill-spinner {
  display: none;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.role-pill-btn.loading .pill-spinner {
  display: inline-block;
}

.role-pill-btn.loading .pill-icon {
  display: none;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.select-glow-box {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.3rem 0.65rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select-glow-box:hover, .select-glow-box:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.select-icon {
  font-size: 0.85rem;
  margin-right: 0.4rem;
}

.select-glow-box select {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.select-glow-box select option {
  background: var(--bg-surface);
  color: #fff;
}

.luxury-input-date {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.38rem 0.65rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
  color-scheme: dark;
}

.luxury-input-date:hover, .luxury-input-date:focus {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

/* User Profile Badge */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 0.3rem 0.75rem 0.3rem 0.4rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-profile-badge:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

.avatar-ring {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #0ea5e9, #a855f7);
}

.avatar-face {
  width: 100%;
  height: 100%;
  background: #0f172a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
}

.user-meta-block {
  display: flex;
  flex-direction: column;
}

.user-fullname {
  font-size: 0.825rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.user-role-chip {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.role-chip-super   { color: #38bdf8; }
.role-chip-admin   { color: #a855f7; }
.role-chip-sup     { color: #818cf8; }
.role-chip-payroll { color: #34d399; }
.role-chip-staff   { color: #fbbf24; }

.btn-ghost-logout {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ghost-logout:hover {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.3);
}

/* Sub-Nav Bar with Luxury Sliding Pill */
.sub-nav-bar {
  background: rgba(8, 12, 20, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 0.35rem 0;
}

.nav-container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tabs-slider-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-tab-pill {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nav-tab-pill:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.03);
}

.nav-tab-pill.active {
  color: #ffffff;
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tab-counter {
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-full);
}

.badge-glow {
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  animation: pulseGlow 2s infinite;
}

.date-clock {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mobile-nav-footer {
  display: none;
}

/* ==========================================================================
   CONSOLE BODY & HERO SECTION
   ========================================================================== */
.console-body {
  position: relative;
  z-index: 2;
  max-width: 1560px;
  margin: 0 auto;
  padding: 2.25rem 1.75rem 4rem 1.75rem;
}

.view-panel {
  display: none;
  opacity: 0;
}

.view-panel.active {
  display: block;
  opacity: 1;
  animation: panelSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: opacity, transform;
}

@keyframes panelSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Banners */
.hero-banner {
  background: linear-gradient(135deg, rgba(14, 20, 35, 0.85) 0%, rgba(20, 29, 50, 0.65) 100%);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background: radial-gradient(circle at right top, rgba(56, 189, 248, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-text {
  max-width: 820px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-pure);
  line-height: 1.2;
}

.hero-sub {
  font-size: 0.925rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

/* ==========================================================================
   ADVANCED LUXURY KPI CARDS WITH GLOW
   ========================================================================== */
.kpi-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.35rem;
  margin-bottom: 2rem;
}

.luxury-card {
  background: var(--bg-surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-lg);
}

.kpi-card-glow {
  padding: 1.4rem 1.6rem;
}

.card-glow-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.25;
  pointer-events: none;
}

.glow-blue    { background: #0ea5e9; }
.glow-emerald { background: #10b981; }
.glow-amber   { background: #f59e0b; }
.glow-purple  { background: #a855f7; }

.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.kpi-title {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.box-blue    { background: rgba(14, 165, 233, 0.15); border: 1px solid rgba(14, 165, 233, 0.3); }
.box-emerald { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); }
.box-amber   { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); }
.box-purple  { background: rgba(168, 85, 247, 0.15); border: 1px solid rgba(168, 85, 247, 0.3); }

.kpi-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.kpi-trend {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.775rem;
  margin-top: 0.45rem;
}

.kpi-trend.positive { color: #34d399; font-weight: 600; }
.kpi-trend.neutral  { color: var(--text-muted); }
.trend-delta { font-family: var(--font-mono); font-size: 0.72rem; }

/* ==========================================================================
   TABLE CARDS & HIGH-DENSITY LUXURY DATA TABLES
   ========================================================================== */
.table-card {
  padding: 0;
}

.card-header-bar {
  padding: 1.35rem 1.75rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.015);
  gap: 1.5rem;
}

.header-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-title-group h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-pure);
}

.count-pill {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.badge-warning-glow {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.badge-emerald-glow {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.badge-role-info {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.glass-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(11, 15, 25, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.75rem;
  min-width: 280px;
  transition: all 0.2s ease;
}

.glass-search-box:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.glass-search-box input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  width: 100%;
}

.kbd-shortcut {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 0.1rem 0.35rem;
}

.table-frame,
.table-responsive-luxury {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.luxury-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.885rem;
  text-align: left;
}

.luxury-table th {
  background: rgba(8, 12, 20, 0.6);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.95rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
}

.luxury-table td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-primary);
  vertical-align: middle;
}

.luxury-table tbody tr {
  transition: background-color 0.15s ease;
}

.luxury-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.025);
}

.text-right { text-align: right; }
.py-6 { padding-top: 2.5rem; padding-bottom: 2.5rem; }

/* Status Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.badge-pill-success {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-pill-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-pill-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.badge-pill-info {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-pill-purple {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */
.btn-luxury-primary {
  background: var(--grad-primary);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-luxury-primary:hover {
  background: var(--grad-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.btn-luxury-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass-light);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: all 0.2s ease;
}

.btn-luxury-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-luxury-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  transition: all 0.2s ease;
}

.btn-luxury-danger:hover {
  background: linear-gradient(135deg, #f87171, #b91c1c);
  transform: translateY(-1px);
}

.btn-refresh {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-refresh:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-table-action {
  font-family: var(--font-body);
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  transition: all 0.15s ease;
}

.btn-table-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-table-danger {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}

.btn-table-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

.btn-table-success {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.btn-table-success:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
}

/* ==========================================================================
   PENDING ENROLLMENT QUEUE DECK
   ========================================================================== */
.pending-grid-luxury {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 1.5rem;
  padding: 1.75rem;
}

@media (min-width: 1500px) {
  .pending-grid-luxury {
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  }
}

.pending-card-luxury {
  background: rgba(15, 22, 38, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
  overflow: visible;
  word-break: break-word;
  will-change: transform, opacity, max-height;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              max-height 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
}

.pending-card-luxury:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.6);
}

.pending-card-luxury.card-dismissing {
  opacity: 0 !important;
  transform: scale(0.92) translateY(-14px) !important;
  max-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-top-width: 0 !important;
  border-bottom-width: 0 !important;
  border-left-width: 0 !important;
  border-right-width: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

@keyframes fadeInLuxury {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pending-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.pending-avatar-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex: 1 1 240px;
  min-width: 0;
}

.child-avatar-initials {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.pending-child-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.35;
  display: block;
}

.pending-timestamp {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  word-break: break-word;
}

.pending-notes-quote {
  background: rgba(0, 0, 0, 0.45);
  border-left: 3px solid var(--accent-cyan);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #cbd5e1;
  font-style: normal;
  word-break: break-word;
  white-space: normal;
}

.pending-actions-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.empty-state-luxury {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 2rem;
  color: var(--text-secondary);
}

.empty-icon-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
}

.empty-state-luxury h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.empty-state-luxury p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   OFFICIAL POLICY SHIELD BANNER (PAYROLL)
   ========================================================================== */
.luxury-policy-shield {
  background: var(--grad-gold-shield);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 5px solid #f59e0b;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.85rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.shield-icon-ring {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shield-content h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fde68a;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}

.shield-content p {
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.55;
}

/* Payroll Control Bar */
.filter-control-card {
  padding: 1.25rem 1.75rem;
}

.control-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) auto;
  gap: 1.5rem;
  align-items: flex-end;
}

.control-cell {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.control-cell label {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Multi-Center Supervisor Comparison Deck */
.centers-compare-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 1.75rem;
}

.center-card-luxury {
  background: rgba(14, 20, 35, 0.9);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.center-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.center-facility-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.center-facility-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.center-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.metric-datum {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
}

.metric-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

/* ==========================================================================
   LUXURY MODALS & POPUPS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-backdrop.active {
  display: flex;
}

.modal-glass-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 540px;
  box-shadow: var(--shadow-lg), var(--shadow-glow-cyan);
  padding: 2.25rem;
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  margin: auto;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-glass-container.modal-wide {
  max-width: 820px;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header-luxury {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
}

.modal-header-luxury h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s ease;
}

.modal-close-btn:hover { color: #fff; }

.modal-btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* Role Simulation Quick Login Cards & Modal */
.login-glass-modal {
  max-width: 820px;
  width: 100%;
  padding: 2.25rem 2.25rem 2rem;
  position: relative;
}

.login-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}

.login-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.login-modal-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.logo-circle-glow {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem auto;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.3);
}

.login-modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.modal-subtext {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.quick-role-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

#card-sim-super {
  grid-column: 1 / -1;
}

.role-sim-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
  min-height: 82px;
  justify-content: center;
}

.role-sim-card:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.15);
}

.role-card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
  margin-bottom: 0.1rem;
}

.role-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.role-card-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.role-card-scope {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.badge-super   { color: #38bdf8; }
.badge-admin   { color: #a855f7; }
.badge-sup     { color: #818cf8; }
.badge-payroll { color: #34d399; }
.badge-mobile  { color: #38bdf8; }

.role-sim-mobile-card {
  border: 1px dashed rgba(56, 189, 248, 0.35) !important;
  background: rgba(56, 189, 248, 0.04) !important;
  cursor: default !important;
}
.role-sim-mobile-card:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
}

.mobile-kiosk-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 600;
  color: #38bdf8;
  letter-spacing: 0.01em;
}
.mobile-kiosk-chip .mobile-kiosk-icon {
  font-size: 1rem;
}

.role-card-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.role-card-email {
  font-size: 0.785rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.role-card-scope {
  font-size: 0.725rem;
  color: var(--text-muted);
}

.modal-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 1.5rem 0;
}
.modal-divider::before, .modal-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-glass);
}
.modal-divider span { padding: 0 0.85rem; }

/* Luxury Form Inputs */
.luxury-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group-luxury {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group-luxury label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-group-luxury input, .form-group-luxury select, .form-group-luxury textarea,
.inline-admin-form input {
  background: rgba(8, 12, 20, 0.75);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-md);
  color: #fff;
  padding: 0.75rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.885rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-group-luxury input:focus, .form-group-luxury select:focus, .form-group-luxury textarea:focus,
.inline-admin-form input:focus {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.w-full { width: 100%; }

.inline-admin-form {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr auto;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

/* ==========================================================================
   TOAST NOTIFICATION DECK
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  pointer-events: none;
}

.luxury-toast {
  background: rgba(14, 20, 35, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass-light);
  border-left: 4px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.45rem;
  color: #fff;
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: toastPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 320px;
  max-width: 460px;
}

.toast-success { border-left-color: #10b981; }
.toast-error   { border-left-color: #ef4444; }
.toast-info    { border-left-color: #38bdf8; }

@keyframes toastPop {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Utility Helpers */
.mb-4 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1.5rem; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.text-white { color: #fff; }
.label-dim { font-size: 0.8rem; color: var(--text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* Institution Profile Grid */
.center-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
}

.profile-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Modal sizing helpers */
.modal-register-container {
  max-width: 520px;
}

.modal-forgot-container {
  max-width: 480px;
}

/* Payroll date inputs & separator */
.payroll-date-inputs {
  display: flex;
  gap: 8px;
  align-items: center;
}

.date-separator {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* Daycare Admin Guided Onboarding & Persistent Reminder Banner */
.luxury-banner-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.5rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.06) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 5px solid #f59e0b;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: pulseWarning 4s ease-in-out infinite;
}

@keyframes pulseWarning {
  0%, 100% { border-color: rgba(245, 158, 11, 0.35); box-shadow: 0 4px 20px rgba(245, 158, 11, 0.12); }
  50% { border-color: rgba(245, 158, 11, 0.65); box-shadow: 0 4px 28px rgba(245, 158, 11, 0.25); }
}

.luxury-banner-warning .banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.luxury-banner-warning .banner-icon {
  font-size: 1.75rem;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5));
}

.luxury-banner-warning strong {
  display: block;
  font-size: 0.95rem;
  color: #fbbf24;
  font-family: var(--font-display);
  margin-bottom: 0.15rem;
}

.luxury-banner-warning span {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.btn-sm {
  padding: 0.5rem 1rem !important;
  font-size: 0.825rem !important;
  white-space: nowrap;
}

/* Modal Onboarding Styles */
.modal-onboarding-wide {
  max-width: 860px !important;
  width: 95% !important;
}

.onboarding-role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.onboarding-role-card {
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-glass-light);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.onboarding-role-card:hover {
  border-color: var(--accent-indigo);
  background: rgba(30, 41, 67, 0.6);
  transform: translateY(-2px);
}

.onboarding-role-card.selected {
  border-color: var(--accent-cyan);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(99, 102, 241, 0.12) 100%);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.onboarding-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.onboarding-role-icon {
  font-size: 1.6rem;
}

.onboarding-role-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pill-mobile { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.pill-supervisor { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }
.pill-payroll { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }

.onboarding-role-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.onboarding-role-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.onboarding-roster-preview {
  margin-top: 1.5rem;
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(10, 15, 29, 0.6);
  border: 1px solid var(--border-glass);
}

.onboarding-roster-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.onboarding-roster-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.onboarding-roster-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.onboarding-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(30, 41, 67, 0.8);
  border: 1px solid var(--border-glass-light);
  font-size: 0.8rem;
  color: #fff;
}

.onboarding-chip-role {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   MOBILE HAMBURGER MENU BUTTON
   ========================================================================== */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-cyan);
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   RESPONSIVE: LARGE DESKTOP (1440px+)
   ========================================================================== */
@media (min-width: 1441px) {
  .header-inner, .nav-container, .console-body {
    max-width: 1680px;
  }
}

/* ==========================================================================
   RESPONSIVE: TABLET LANDSCAPE / SMALL DESKTOP (1024px - 1280px)
   ========================================================================== */
@media (max-width: 1280px) {
  .header-inner {
    padding: 0.75rem 1.25rem;
  }

  .nav-container {
    padding: 0 1.25rem;
  }

  .console-body {
    padding: 1.75rem 1.25rem 3rem;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-sub {
    font-size: 0.68rem;
  }

  .hero-heading {
    font-size: 1.75rem;
  }

  .hero-banner {
    padding: 1.65rem 1.75rem;
  }

  .kpi-deck {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .luxury-table th {
    padding: 0.85rem 1rem;
    font-size: 0.7rem;
  }

  .luxury-table td {
    padding: 0.95rem 1rem;
    font-size: 0.84rem;
  }
}

/* ==========================================================================
   RESPONSIVE: TABLET (768px - 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  /* Ambient lighting constrained for tablet screens */
  .ambient-mesh {
    overflow: hidden;
    max-width: 100vw;
    contain: strict;
  }

  /* Disable CPU/GPU heavy animated blur orbs on tablets and mobile to ensure 60fps & zero overflow */
  .glow-orb {
    display: none !important;
  }

  .center-profile-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
  }

  .header-role-switcher {
    display: none;
  }

  .system-status-chip .status-text {
    display: none;
  }

  .system-status-chip .latency-tag {
    display: none;
  }

  .control-grid-layout {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }

  .hero-heading {
    font-size: 1.55rem;
  }

  .hero-sub {
    font-size: 0.85rem;
  }

  .hero-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .onboarding-role-grid {
    grid-template-columns: 1fr;
  }

  .kpi-deck {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .kpi-number {
    font-size: 1.85rem;
  }

  .pending-grid-luxury {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }

  .centers-compare-deck {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .card-header-bar {
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.85rem;
  }

  .glass-search-box {
    min-width: 200px;
    width: 100%;
    order: 10;
  }

  .modal-glass-container.modal-wide {
    max-width: 95%;
  }

  .login-glass-modal {
    max-width: 720px;
    padding: 2rem 1.75rem;
  }

  .nav-tab-pill .tab-label {
    font-size: 0.78rem;
  }

  .nav-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tabs-slider-wrap {
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .tabs-slider-wrap::-webkit-scrollbar {
    display: none;
  }

  .luxury-policy-shield {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
  }

  .luxury-banner-warning {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .filter-control-card {
    padding: 1rem 1.25rem;
  }

  .inline-admin-form {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
}

/* ==========================================================================
   RESPONSIVE: MOBILE / SMALL TABLET (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Ambient mesh & glow orbs constrained for mobile screens to eliminate overflow */
  .ambient-mesh {
    overflow: hidden;
    max-width: 100vw;
    contain: strict;
  }

  .glow-orb {
    display: none !important;
  }

  /* Show hamburger menu button */
  .mobile-menu-toggle {
    display: flex;
  }

  /* Header layout: horizontal row on mobile */
  .header-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    padding: 0.6rem 0.85rem;
    gap: 0.5rem;
  }

  /* Hide elements not needed on mobile header row */
  .system-status-chip {
    display: none;
  }

  .header-role-switcher {
    display: none;
  }

  /* Compact brand */
  .brand-logo-hex {
    width: 36px;
    height: 36px;
  }

  .brand-logo-hex .hex-svg {
    width: 26px;
    height: 26px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .badge-version {
    font-size: 0.58rem;
    padding: 0.1rem 0.35rem;
  }

  .brand-sub {
    display: none;
  }

  .brand-block {
    gap: 0.6rem;
  }

  /* User profile badge compact */
  .user-meta-block {
    display: none;
  }

  .user-profile-badge {
    padding: 0.2rem;
    border: none;
    background: none;
  }

  .avatar-ring {
    width: 30px;
    height: 30px;
  }

  .btn-ghost-logout {
    width: 32px;
    height: 32px;
  }

  /* Header actions compact */
  .header-actions {
    gap: 0.45rem;
    margin-left: auto;
  }

  .scope-dropdown-wrap .select-glow-box {
    padding: 0.2rem 0.45rem;
  }

  .scope-dropdown-wrap .select-glow-box select {
    font-size: 0.72rem;
    max-width: 100px;
  }

  /* Sub navigation: collapsible on mobile */
  .sub-nav-bar {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
    padding: 0;
    border-top: none;
  }

  .sub-nav-bar.mobile-open {
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-container {
    flex-direction: column;
    align-items: stretch;
    padding: 0 0.85rem;
    gap: 0.35rem;
  }

  .tabs-slider-wrap {
    flex-direction: column;
    gap: 0.2rem;
  }

  .nav-tab-pill {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    justify-content: flex-start;
  }

  .nav-tab-pill.active {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
  }

  .nav-right-info {
    display: none;
  }

  /* Mobile Drawer Footer & Role Quick Switcher */
  .mobile-nav-footer {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.85rem 0.5rem 0.35rem;
    margin-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-role-switcher-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .mobile-role-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .mobile-role-btn {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 0.55rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-role-btn:active {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--accent-cyan);
    transform: scale(0.97);
  }

  .mobile-nav-clock {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-align: center;
    padding-top: 0.25rem;
  }

  /* Console body mobile padding */
  .console-body {
    padding: 1.15rem 0.75rem 3rem;
  }

  /* Hero banners mobile */
  .hero-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .hero-heading {
    font-size: 1.3rem;
    line-height: 1.25;
  }

  .hero-sub {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .hero-eyebrow {
    font-size: 0.7rem;
  }

  .hero-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .hero-actions .btn-luxury-primary,
  .hero-actions .btn-luxury-secondary {
    flex: 1;
    min-width: 140px;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.55rem 0.85rem;
  }

  /* KPI Cards mobile: 2 columns */
  .kpi-deck {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .kpi-card-glow {
    padding: 1rem 1.1rem;
  }

  .kpi-number {
    font-size: 1.65rem;
  }

  .kpi-title {
    font-size: 0.72rem;
  }

  .kpi-icon-box {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .kpi-trend {
    font-size: 0.7rem;
  }

  /* Table cards mobile */
  .card-header-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.75rem;
  }

  .header-title-group h3 {
    font-size: 1.05rem;
  }

  .glass-search-box {
    min-width: unset;
    width: 100%;
  }

  /* Tables: horizontal scroll with minimum widths */
  .table-frame,
  .table-responsive-luxury {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .luxury-table {
    min-width: 600px;
    font-size: 0.82rem;
  }

  .luxury-table th {
    padding: 0.75rem 0.85rem;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .luxury-table td {
    padding: 0.85rem 0.85rem;
    font-size: 0.82rem;
  }

  /* Enrollment cards mobile */
  .pending-grid-luxury {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0.85rem;
  }

  .pending-card-luxury {
    padding: 1.1rem;
  }

  .pending-child-title {
    font-size: 1rem;
  }

  .pending-actions-row {
    flex-wrap: wrap;
  }

  .pending-actions-row .btn-luxury-primary,
  .pending-actions-row .btn-luxury-danger {
    flex: 1;
    min-width: 100px;
    justify-content: center;
    font-size: 0.78rem;
    padding: 0.5rem 0.75rem;
  }

  /* Center profile grid mobile */
  .center-profile-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0.85rem;
  }

  /* Supervisor cards mobile */
  .centers-compare-deck {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0.85rem;
  }

  .center-card-luxury {
    padding: 1.15rem;
  }

  .center-facility-title {
    font-size: 1.05rem;
  }

  .center-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .metric-val {
    font-size: 1.2rem;
  }

  /* Policy shield mobile */
  .luxury-policy-shield {
    flex-direction: column;
    padding: 1rem 1.15rem;
    gap: 0.85rem;
  }

  .shield-icon-ring {
    width: 40px;
    height: 40px;
  }

  .shield-content h4 {
    font-size: 0.88rem;
  }

  .shield-content p {
    font-size: 0.8rem;
  }

  /* Payroll controls mobile */
  .filter-control-card {
    padding: 0.85rem;
  }

  .control-grid-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .control-cell-action,
  .control-cell-action button {
    width: 100%;
    justify-content: center;
  }

  /* Modals on tablets (up to 768px) */
  .modal-backdrop {
    padding: 1rem;
    align-items: center;
  }

  .modal-glass-container {
    max-width: 600px;
    border-radius: var(--radius-xl);
    padding: 1.75rem 1.5rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: auto;
  }

  .modal-glass-container.modal-wide {
    max-width: 95%;
  }

  .modal-header-luxury {
    margin-bottom: 1.25rem;
  }

  .modal-header-luxury h3 {
    font-size: 1.2rem;
  }

  .modal-btn-row {
    flex-direction: row;
    gap: 0.75rem;
  }

  .modal-btn-row button {
    width: auto;
  }

  /* Login modal on tablets */
  .login-glass-modal {
    max-width: 680px;
    border-radius: var(--radius-xl);
    padding: 1.75rem 1.5rem 2rem;
    max-height: calc(100vh - 2rem);
    margin: auto;
  }

  .login-modal-close {
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
  }

  .login-modal-header h2 {
    font-size: 1.35rem;
  }

  .quick-role-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .role-sim-card {
    padding: 0.65rem 0.85rem;
    min-height: auto;
  }

  .role-card-name {
    font-size: 0.88rem;
  }

  .role-card-email {
    font-size: 0.72rem;
  }

  .role-card-scope {
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   RESPONSIVE: MOBILE PHONES (max-width: 640px)
   ========================================================================== */
@media (max-width: 640px) {
  /* Modals mobile bottom sheet (phones) */
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .modal-glass-container {
    max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 1.35rem 1rem 1.75rem;
    max-height: 90vh;
    margin: 0;
  }

  .modal-glass-container.modal-wide {
    max-width: 100%;
  }

  .modal-btn-row {
    flex-direction: column;
    gap: 0.65rem;
  }

  .modal-btn-row button {
    width: 100%;
    justify-content: center;
  }

  .login-glass-modal {
    max-width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 1.35rem 1rem 2rem;
    max-height: 90vh;
    margin: 0;
  }

  .quick-role-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  /* Forms mobile */
  .form-row-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .inline-admin-form {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .form-group-luxury input,
  .form-group-luxury select,
  .form-group-luxury textarea,
  .inline-admin-form input,
  .glass-search-box input,
  .luxury-input-date {
    padding: 0.75rem 0.85rem;
    font-size: 16px; /* 16px prevents iOS Safari auto-zoom */
  }

  /* Buttons touch-friendly sizes */
  .btn-luxury-primary,
  .btn-luxury-secondary,
  .btn-luxury-danger {
    padding: 0.6rem 1.15rem;
    font-size: 0.82rem;
    min-height: 44px;
  }

  .btn-refresh {
    min-height: 40px;
  }

  .btn-table-action {
    min-height: 38px;
    padding: 0.4rem 0.75rem;
  }

  /* Warning banner mobile */
  .luxury-banner-warning {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.85rem;
  }

  .luxury-banner-warning .banner-icon {
    font-size: 1.35rem;
  }

  .luxury-banner-warning strong {
    font-size: 0.88rem;
  }

  .luxury-banner-warning span {
    font-size: 0.8rem;
  }

  .btn-sm {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.78rem !important;
    min-height: 40px;
  }

  /* Onboarding grid mobile */
  .modal-onboarding-wide {
    max-width: 100% !important;
    width: 100% !important;
  }

  .onboarding-role-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .onboarding-role-card {
    padding: 1rem;
  }

  .onboarding-role-title {
    font-size: 0.95rem;
  }

  .onboarding-role-desc {
    font-size: 0.78rem;
  }

  /* Toast on mobile */
  .toast-container {
    bottom: 1rem;
    right: 0.75rem;
    left: 0.75rem;
  }

  .luxury-toast {
    min-width: unset;
    max-width: 100%;
    font-size: 0.82rem;
    padding: 0.75rem 1rem;
  }

  /* Audit trail badge adjustments */
  .badge-pill {
    font-size: 0.68rem;
    padding: 0.22rem 0.5rem;
  }

  /* Status badges */
  .badge-status {
    font-size: 0.68rem;
    padding: 0.2rem 0.5rem;
  }

  /* Scrollbar styling for horizontal scroll */
  .table-frame::-webkit-scrollbar,
  .table-responsive-luxury::-webkit-scrollbar {
    height: 4px;
  }

  .table-frame::-webkit-scrollbar-track,
  .table-responsive-luxury::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
  }

  .table-frame::-webkit-scrollbar-thumb,
  .table-responsive-luxury::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.25);
    border-radius: 4px;
  }
}

/* ==========================================================================
   RESPONSIVE: SMALL MOBILE (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .header-inner {
    padding: 0.5rem 0.65rem;
    gap: 0.35rem;
  }

  .brand-logo-hex {
    width: 32px;
    height: 32px;
  }

  .brand-logo-hex .hex-svg {
    width: 22px;
    height: 22px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .badge-version {
    display: none;
  }

  .brand-block {
    gap: 0.45rem;
  }

  .avatar-ring {
    width: 28px;
    height: 28px;
  }

  .avatar-face {
    font-size: 0.65rem;
  }

  .mobile-menu-toggle {
    width: 36px;
    height: 36px;
  }

  .btn-ghost-logout {
    width: 30px;
    height: 30px;
  }

  .console-body {
    padding: 0.85rem 0.55rem 2.5rem;
  }

  /* KPI cards: single column on very small screens */
  .kpi-deck {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .kpi-card-glow {
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .kpi-header {
    margin-bottom: 0;
    flex-direction: row-reverse;
    gap: 0.75rem;
  }

  .kpi-number {
    font-size: 1.5rem;
  }

  /* Hero compact */
  .hero-banner {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
  }

  .hero-heading {
    font-size: 1.15rem;
  }

  .hero-sub {
    font-size: 0.78rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-actions .btn-luxury-primary,
  .hero-actions .btn-luxury-secondary {
    width: 100%;
    min-width: unset;
  }

  /* Cards compact */
  .card-header-bar {
    padding: 0.85rem;
  }

  .header-title-group h3 {
    font-size: 0.95rem;
  }

  .center-profile-grid {
    grid-template-columns: 1fr !important;
    padding: 0.75rem !important;
    gap: 0.75rem !important;
  }

  /* Tables smaller min-width */
  .luxury-table {
    min-width: 520px;
  }

  .luxury-table th {
    padding: 0.65rem 0.7rem;
    font-size: 0.65rem;
  }

  .luxury-table td {
    padding: 0.7rem 0.7rem;
    font-size: 0.78rem;
  }

  /* Modal adjustments */
  .modal-backdrop {
    padding: 0;
  }

  .modal-glass-container {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding: 1.25rem 0.85rem;
    max-height: 92vh;
  }

  .modal-header-luxury h3 {
    font-size: 1.1rem;
  }

  /* Login modal compact */
  .login-glass-modal {
    padding: 1.25rem 0.85rem 1.75rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 92vh;
  }

  .logo-circle-glow {
    width: 42px;
    height: 42px;
    margin-bottom: 0.5rem;
  }

  .login-modal-header h2 {
    font-size: 1.22rem;
  }

  .modal-subtext {
    font-size: 0.78rem;
  }

  .role-sim-card {
    padding: 0.6rem 0.75rem;
  }

  .role-card-badge {
    font-size: 0.65rem;
  }

  .role-card-name {
    font-size: 0.82rem;
  }

  .role-card-email {
    font-size: 0.7rem;
  }

  .role-card-scope {
    font-size: 0.68rem;
  }

  .modal-divider {
    margin: 0.75rem 0;
    font-size: 0.68rem;
  }

  /* Enrollment card actions stack */
  .pending-card-top {
    flex-direction: column;
    gap: 0.65rem;
  }

  .pending-actions-row {
    flex-direction: column;
  }

  .pending-actions-row .btn-luxury-primary,
  .pending-actions-row .btn-luxury-danger {
    width: 100%;
  }

  /* Supervisor center cards */
  .center-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.65rem;
  }

  .metric-val {
    font-size: 1.1rem;
  }

  .metric-lbl {
    font-size: 0.68rem;
  }

  /* Form inputs compact */
  .form-group-luxury input,
  .form-group-luxury select,
  .form-group-luxury textarea {
    padding: 0.65rem 0.75rem;
    font-size: 16px; /* Prevent iOS zoom on focus */
  }

  /* Toast full-width */
  .toast-container {
    bottom: 0.65rem;
    right: 0.5rem;
    left: 0.5rem;
  }

  .luxury-toast {
    font-size: 0.78rem;
    padding: 0.65rem 0.85rem;
  }

  /* Onboarding compact */
  .onboarding-role-card {
    padding: 0.85rem;
  }

  .onboarding-role-icon {
    font-size: 1.35rem;
  }

  .onboarding-role-title {
    font-size: 0.88rem;
  }

  .onboarding-member-chip {
    font-size: 0.72rem;
    padding: 0.3rem 0.6rem;
  }

  /* Payroll control compact */
  .luxury-input-date {
    width: 100%;
    padding: 0.55rem;
    font-size: 0.78rem;
  }

  .select-glow-box select {
    font-size: 0.75rem;
  }

  .payroll-date-inputs {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .date-separator {
    text-align: center;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   RESPONSIVE: ULTRA-SMALL MOBILE (max-width: 360px)
   ========================================================================== */
@media (max-width: 360px) {
  .brand-name {
    font-size: 0.85rem;
  }

  .brand-block {
    gap: 0.35rem;
  }

  .brand-logo-hex {
    width: 28px;
    height: 28px;
  }

  .header-actions {
    gap: 0.3rem;
  }

  .console-body {
    padding: 0.65rem 0.4rem 2rem;
  }

  .hero-heading {
    font-size: 1.05rem;
  }

  .kpi-number {
    font-size: 1.35rem;
  }

  .kpi-title {
    font-size: 0.65rem;
  }

  .card-header-bar {
    padding: 0.65rem;
  }

  .header-title-group h3 {
    font-size: 0.88rem;
  }

  .pending-grid-luxury,
  .centers-compare-deck {
    padding: 0.65rem;
  }
}

/* ==========================================================================
   TOUCH DEVICE OPTIMIZATIONS
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover transform effects on touch devices */
  .luxury-card:hover {
    transform: none;
  }

  .btn-luxury-primary:hover,
  .btn-luxury-secondary:hover,
  .btn-luxury-danger:hover {
    transform: none;
  }

  .role-pill-btn:hover {
    transform: none;
  }

  .pending-card-luxury:hover {
    transform: none;
  }

  .role-sim-card:hover {
    transform: none;
  }

  /* Ensure touch targets are at least 44px */
  .nav-tab-pill {
    min-height: 44px;
  }

  .btn-table-action {
    min-height: 44px;
    padding: 0.5rem 0.85rem;
  }

  .role-pill-btn {
    min-height: 44px;
    padding: 0.45rem 0.75rem;
  }
}

/* ==========================================================================
   LANDSCAPE MOBILE (short height, wide viewport)
   ========================================================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .modal-backdrop {
    align-items: center;
    padding: 0.5rem;
  }

  .modal-glass-container {
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-md);
    padding: 1rem;
  }

  .login-modal-header {
    margin-bottom: 0.85rem;
  }

  .logo-circle-glow {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
  }

  .quick-role-cards-grid {
    margin-bottom: 0.75rem;
  }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
  .ambient-mesh,
  .noise-overlay,
  .executive-header,
  .toast-container,
  .modal-backdrop,
  .mobile-menu-toggle,
  .table-pagination-footer,
  .hero-actions,
  .btn-luxury-primary,
  .btn-luxury-secondary,
  .btn-luxury-danger,
  .btn-refresh,
  .btn-table-action,
  .btn-ghost-logout {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .console-body {
    padding: 0;
    max-width: 100%;
  }

  .luxury-card {
    border: 1px solid #ccc;
    box-shadow: none;
    background: #fff;
  }

  .luxury-table th {
    background: #f5f5f5;
    color: #333;
  }

  .luxury-table td {
    color: #333;
    border-bottom-color: #ddd;
  }
}

/* =========================================================================
   LUXURY TABLE PAGINATION & 50-ROW DATA CHUNKING ENGINE
   ========================================================================= */
.table-pagination-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.75rem;
  background: rgba(8, 12, 22, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-glass);
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.825rem;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  user-select: none;
}

.pagination-summary {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  letter-spacing: -0.01em;
}

.pagination-summary strong,
.pagination-summary span.page-num-highlight {
  color: var(--text-pure);
  font-weight: 700;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pagination-controls-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.pagination-size-wrapper {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pagination-size-select {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glass);
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-md);
  outline: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-size-select:hover,
.pagination-size-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
  background: rgba(15, 23, 42, 1);
}

.pagination-nav-group {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-page-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 32px;
  padding: 0 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-page-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.btn-page-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
  border-color: transparent;
}

.btn-page-nav.active {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.45);
  font-weight: 700;
}

.btn-page-nav.btn-nav-prev,
.btn-page-nav.btn-nav-next {
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0 0.75rem;
  gap: 0.3rem;
}

.pagination-ellipsis {
  color: var(--text-muted);
  padding: 0 0.35rem;
  font-size: 0.85rem;
  user-select: none;
}

/* Micro-animation when table rows update */
.table-fade-refresh {
  animation: tableFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes tableFadeIn {
  from {
    opacity: 0.4;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Luxury Segmented Table Filter Switcher */
.table-filter-segmented {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.7);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  gap: 3px;
}

.table-filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.38rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
}

.table-filter-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.table-filter-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.4);
}

/* ==========================================================================
   CORPORATE LANDING — SDBIOMETRIX ULTRA-PREMIUM ENTERPRISE AESTHETIC
   Zero-Persistence Biometric Attendance & Cryptographic Ledger
   ========================================================================== */

/* Corporate Standalone Mode */
body.viewing-corporate-site .executive-header,
body.viewing-corporate-site .sub-nav-bar {
  display: none !important;
}
body.viewing-corporate-site {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}
body.viewing-corporate-site .console-body {
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  overflow-x: hidden !important;
}
body.viewing-corporate-site #view-corporate-site {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

/* ── Design Tokens ── */
#view-corporate-site {
  --s-bg: #07090e;
  --s-bg-elevated: #0d121c;
  --s-bg-surface: #131a29;
  --s-bg-card: rgba(15, 23, 42, 0.7);
  --s-border: rgba(255, 255, 255, 0.08);
  --s-border-hover: rgba(56, 189, 248, 0.35);
  --s-border-emerald: rgba(16, 185, 129, 0.35);
  --s-text-primary: #f8fafc;
  --s-text-secondary: #94a3b8;
  --s-text-muted: #64748b;
  --s-accent: #38bdf8;
  --s-accent-glow: rgba(56, 189, 248, 0.2);
  --s-emerald: #10b981;
  --s-emerald-glow: rgba(16, 185, 129, 0.25);
  --s-amber: #f59e0b;
  --s-rose: #f43f5e;
  --s-radius: 14px;
  --s-radius-sm: 8px;
  --s-radius-lg: 20px;
  --s-radius-full: 9999px;
  --s-font: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --s-font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --s-transition: 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--s-bg);
  color: var(--s-text-primary);
  font-family: var(--s-font);
  position: relative;
}

/* ── Navigation ── */
.s-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--s-border);
  padding: 0 1.75rem;
  width: 100%;
  transition: all 0.3s ease;
}

.s-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.25rem;
}

.s-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.s-nav__logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0d1526;
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
  padding: 0;
  flex-shrink: 0;
}

.s-nav__logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transform: scale(1.16);
  display: block;
}

.s-nav__brand-titles {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.s-nav__wordmark {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--s-text-primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.s-nav__build-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: var(--s-radius-full);
  font-family: var(--s-font-mono);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.s-nav__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 1;
}

.s-nav__link {
  color: var(--s-text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--s-transition);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap !important;
  padding: 0.35rem 0.2rem;
}

.s-nav__link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.s-nav__link--highlight {
  color: #34d399;
}
.s-nav__link--highlight:hover {
  color: #6ee7b7;
}

.s-nav__pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: sPulse 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes sPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.s-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.s-btn--apk-nav {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.s-btn--apk-nav:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  color: #ffffff;
}

/* Mobile Toggle Hamburger */
.s-nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: var(--s-bg-surface);
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius-sm);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.s-nav__toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--s-text-primary);
  border-radius: 1px;
  transition: all 0.2s ease;
}
.s-nav__toggle.active .s-nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.s-nav__toggle.active .s-nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.s-nav__toggle.active .s-nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Menu */
.s-nav__drawer {
  display: none;
  background: #0b0f19;
  border-top: 1px solid var(--s-border);
  border-bottom: 1px solid var(--s-border);
  padding: 1.25rem 1rem;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  box-sizing: border-box;
  width: 100%;
}
.s-nav__drawer.open {
  display: flex;
}
.s-nav__drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.s-nav__drawer-link {
  color: var(--s-text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.65rem 0.85rem;
  border-radius: var(--s-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.s-nav__drawer-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}
.s-nav__drawer-link--special {
  color: #34d399;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.s-nav__drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--s-border);
}

/* ── Buttons ── */
.s-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--s-font);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.55rem 1.35rem;
  border-radius: var(--s-radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--s-transition);
  text-decoration: none;
  line-height: 1.4;
  letter-spacing: -0.01em;
  white-space: nowrap !important;
}

/* Primary White Button: ALWAYS deep dark text, NEVER white text on hover */
.s-btn--primary {
  background: #f8fafc !important;
  color: #07090e !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 16px rgba(255, 255, 255, 0.15);
}
.s-btn--primary:hover,
.s-btn--primary:focus,
.s-btn--primary:active {
  background: #ffffff !important;
  color: #07090e !important;
  border-color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 22px rgba(255, 255, 255, 0.4);
}
.s-btn--primary svg {
  stroke: #07090e !important;
}

/* Vibrant Emerald Cyber Button */
.s-btn--glow {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}
.s-btn--glow:hover,
.s-btn--glow:focus {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 0 32px rgba(16, 185, 129, 0.65);
  transform: translateY(-2px);
}
.s-btn--glow svg {
  stroke: #ffffff !important;
}

.s-pill-tag {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  padding: 0.15rem 0.5rem;
  border-radius: var(--s-radius-full);
  letter-spacing: 0.04em;
  font-family: var(--s-font-mono);
}

.s-btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--s-text-secondary) !important;
  border: 1px solid var(--s-border) !important;
}
.s-btn--ghost:hover,
.s-btn--ghost:focus {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}
.s-btn--ghost svg {
  stroke: currentColor;
}

.s-btn--outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--s-text-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}
.s-btn--outline:hover,
.s-btn--outline:focus {
  border-color: rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Sizing Modifiers ONLY - Do NOT set color or background that overrides variants */
.s-btn--lg {
  padding: 0.8rem 1.85rem;
  font-size: 0.95rem;
}

.s-btn--sm {
  padding: 0.38rem 0.95rem;
  font-size: 0.8rem;
}

.s-btn--full {
  width: 100%;
}

/* ── Badges ── */
.s-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--s-text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius-full);
}

.s-badge--emerald {
  color: #34d399;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.s-badge--cyan {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
}

.s-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: sPulse 2s infinite ease-in-out;
}

.s-badge-mini {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--s-radius-full);
  border: 1px solid;
}
.s-badge-mini--green {
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}
.s-badge-mini--cyan {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
}
.s-badge-mini--amber {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}

/* ── Hero Section ── */
.s-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5.5rem 2.5rem 3.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.s-hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.s-hero__title {
  font-family: var(--s-font);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--s-text-primary);
  margin: 0;
}

.s-hero__desc {
  font-size: 1.1rem;
  line-height: 1.68;
  color: var(--s-text-secondary);
  max-width: 560px;
  margin: 0;
}

.s-hero__ctas {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

/* Telemetry Strip */
.s-hero__telemetry {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius);
  max-width: 560px;
}
.s-telemetry-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.s-telemetry-num {
  font-family: var(--s-font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
}
.s-telemetry-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--s-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.s-telemetry-sep {
  width: 1px;
  height: 28px;
  background: var(--s-border);
}

.s-hero__visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Hardware Hero Showcase Card */
.s-hardware-hero-card {
  position: relative;
  border-radius: var(--s-radius-lg);
  background: #0f1624;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.6), 0 0 24px rgba(56, 189, 248, 0.1);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.s-hardware-hero-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 24px 56px -10px rgba(0, 0, 0, 0.7), 0 0 36px rgba(56, 189, 248, 0.2);
}
.s-hardware-hero-card__media {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #000000;
}
.s-hardware-hero-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.s-hardware-hero-card:hover .s-hardware-hero-card__img {
  transform: scale(1.03);
}

/* HUD Overlay on Hardware Photo */
.s-hud-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.3) 0%, rgba(7, 9, 14, 0.75) 100%);
  pointer-events: none;
}
.s-hud-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130px;
  height: 130px;
  border-radius: 12px;
}
.s-hud-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #10b981;
}
.s-hud-corner--tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.s-hud-corner--tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.s-hud-corner--bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.s-hud-corner--br { bottom: 0; right: 0; border-left: none; border-top: none; }

.s-hud-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #10b981, transparent);
  box-shadow: 0 0 10px #10b981;
  animation: sScan 2.5s infinite ease-in-out;
}
@keyframes sScan {
  0% { top: 5%; opacity: 0.3; }
  50% { top: 95%; opacity: 1; }
  100% { top: 5%; opacity: 0.3; }
}

.s-hud-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.75rem;
  border-radius: var(--s-radius-full);
  border: 1px solid rgba(16, 185, 129, 0.4);
  width: fit-content;
}
.s-hud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}
.s-hud-badge {
  font-family: var(--s-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(15, 23, 42, 0.85);
  padding: 0.3rem 0.7rem;
  border-radius: var(--s-radius-full);
  border: 1px solid rgba(56, 189, 248, 0.3);
  width: fit-content;
  align-self: flex-end;
}

.s-hardware-hero-card__footer {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--s-bg-elevated);
}
.s-hardware-hero-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.s-hardware-hero-card__device {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}
.s-hardware-hero-card__sub {
  font-size: 0.76rem;
  color: var(--s-text-muted);
}

/* ── Spec Cards (Hero) ── */
.s-spec-card {
  background: var(--s-bg-elevated);
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius);
  padding: 1.5rem;
  transition: border-color var(--s-transition);
}
.s-spec-card:hover {
  border-color: var(--s-border-hover);
}
.s-spec-card__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.s-spec-card__indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--s-text-muted);
}
.s-spec-card__indicator--active {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}
.s-spec-card__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--s-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.s-spec-card__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.s-spec-card__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.s-spec-card__key {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--s-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.s-spec-card__value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--s-text-primary);
  font-family: var(--s-font-mono);
  letter-spacing: -0.01em;
}

/* ── Trust Strip ── */
.s-trust-strip {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.25rem 2.5rem 3.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid var(--s-border);
}
.s-trust-strip__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--s-text-muted);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.s-trust-strip__items {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.s-trust-strip__item {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--s-text-secondary);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.s-trust-strip__item:hover {
  color: #38bdf8;
}
.s-trust-strip__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--s-text-muted);
  opacity: 0.5;
}

/* ── Sections Common ── */
.s-section {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 5.5rem 2rem;
  border-top: 1px solid var(--s-border);
  box-sizing: border-box;
  overflow-x: hidden;
}
.s-section__header {
  max-width: 720px;
  margin-bottom: 3.5rem;
}
.s-section__title {
  font-family: var(--s-font);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--s-text-primary);
  margin: 0.85rem 0 0;
}
.s-section__desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--s-text-secondary);
  margin: 1.15rem 0 0;
}

/* ═══════════════════════════════════════════════════════════════════
   THE DOWNLOAD HUB SECTION
   ═══════════════════════════════════════════════════════════════════ */
.s-section--download {
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.06) 0%, transparent 60%);
}

/* Universal Form Factor Strip: 3 Cards Side-by-Side */
.s-form-factor-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0 0 2.5rem 0;
  width: 100%;
}
.s-ff-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 1.25rem;
  background: var(--s-bg-elevated);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: var(--s-radius);
  transition: all var(--s-transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.s-ff-item:hover {
  border-color: rgba(16, 185, 129, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}
.s-ff-item--active {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(13, 20, 36, 0.9) 100%);
}
.s-ff-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.s-ff-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.s-ff-text strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
}
.s-ff-text small {
  font-size: 0.74rem;
  color: var(--s-text-muted);
}
.s-apk-download-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
  font-size: 0.75rem;
}
.s-apk-sep {
  color: var(--s-text-muted);
}
.s-apk-mirror-link {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.75rem;
  transition: color var(--s-transition);
}
.s-apk-mirror-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}
.s-ff-text small {
  font-size: 0.72rem;
  color: var(--s-text-muted);
}
.s-ff-sep {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--s-text-muted);
  opacity: 0.6;
}


.s-download-switcher {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  background: var(--s-bg-elevated);
  padding: 0.4rem;
  border-radius: var(--s-radius-lg);
  border: 1px solid var(--s-border);
  max-width: 820px;
}
.s-download-tab {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: var(--s-radius);
  cursor: pointer;
  text-align: left;
  transition: all var(--s-transition);
}
.s-download-tab:hover {
  background: rgba(255, 255, 255, 0.03);
}
.s-download-tab--active {
  background: var(--s-bg-surface);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.s-download-tab__icon {
  font-size: 1.5rem;
}
.s-download-tab__label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.s-download-tab__label strong {
  font-size: 0.88rem;
  color: #f8fafc;
}
.s-download-tab__label small {
  font-size: 0.72rem;
  color: var(--s-text-muted);
}

.s-download-deck {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.s-card--download {
  background: var(--s-bg-elevated);
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  transition: transform var(--s-transition), border-color var(--s-transition), box-shadow var(--s-transition);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}
.s-card--download:hover {
  border-color: var(--s-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5);
}

.s-card__eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.s-card__tag-arch {
  font-family: var(--s-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--s-text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.55rem;
  border-radius: var(--s-radius-sm);
  border: 1px solid var(--s-border);
}
.s-card__tag-live {
  font-family: var(--s-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: var(--s-radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.s-card__tag-status {
  font-family: var(--s-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: var(--s-radius-sm);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Card 1: APK Specifics */
.s-apk-brand-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.s-apk-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.s-apk-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}
.s-apk-version {
  font-size: 0.78rem;
  color: #10b981;
  font-weight: 700;
  font-family: var(--s-font-mono);
}
.s-apk-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--s-text-secondary);
  margin: 0;
}
.s-apk-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--s-bg-surface);
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius);
}
.s-apk-spec {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.s-apk-spec__k {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--s-text-muted);
}
.s-apk-spec__v {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--s-font-mono);
}

/* Checksum Bar */
.s-checksum-box {
  background: #090e18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--s-radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.s-checksum-box__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.s-checksum-box__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--s-text-muted);
}
.s-btn-copy-hash {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--s-radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}
.s-btn-copy-hash:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #ffffff;
}
.s-checksum-box__hash {
  font-family: var(--s-font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
  word-break: break-all;
  line-height: 1.4;
}

.s-apk-action-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.s-apk-hint {
  font-size: 0.72rem;
  color: var(--s-text-muted);
  text-align: center;
}

/* Card 2: QR Scanner Station */
.s-qr-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}
.s-qr-sub {
  font-size: 0.88rem;
  color: var(--s-text-secondary);
  line-height: 1.5;
  margin: 0;
}
.s-qr-frame {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  padding: 14px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.s-qr-radar-sweep {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #10b981, transparent);
  box-shadow: 0 0 12px #10b981;
  animation: sScanQr 3s infinite ease-in-out;
  z-index: 5;
}
@keyframes sScanQr {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}
.s-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.s-qr-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  background: #090d16;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.s-qr-badge__icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.s-qr-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--s-bg-surface);
  padding: 0.75rem 1rem;
  border-radius: var(--s-radius);
  border: 1px solid var(--s-border);
}
.s-qr-dest-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--s-text-muted);
  text-transform: uppercase;
}
.s-qr-url-text {
  font-family: var(--s-font-mono);
  font-size: 0.72rem;
  color: #38bdf8;
  word-break: break-all;
}
.s-qr-device-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}
.s-tag-pill {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--s-text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem 0.6rem;
  border-radius: var(--s-radius-full);
  border: 1px solid var(--s-border);
}

/* Card 3: Apple iOS Hub */
.s-apple-brand-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.s-apple-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.s-apple-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}
.s-apple-sub {
  font-size: 0.78rem;
  color: #fbbf24;
  font-weight: 700;
}
.s-apple-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--s-text-secondary);
  margin: 0;
}
.s-apple-features {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--s-bg-surface);
  padding: 1rem;
  border-radius: var(--s-radius);
  border: 1px solid var(--s-border);
}
.s-apple-feat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--s-text-secondary);
}
.s-apple-feat__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
}
.s-apple-action-box {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.s-apple-status-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: var(--s-radius-full);
}
.s-pulse-dot--amber {
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
}

/* ═══════════════════════════════════════════════════════════════════
   BIOMETRIC VECTOR & LIVENESS LAB
   ═══════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════
   BIOMETRIC VECTOR & LIVENESS LAB (TELEMETRY CONSOLE)
   ═══════════════════════════════════════════════════════════════════ */
.s-vector-lab-panel,
.s-vector-lab-console {
  background: linear-gradient(180deg, rgba(13, 20, 36, 0.85) 0%, rgba(8, 12, 22, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--s-radius-lg, 16px);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.05);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.s-vector-lab-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #10b981, transparent);
  opacity: 0.8;
}

.s-vector-lab-panel__top,
.s-vector-lab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  box-sizing: border-box;
}

.s-vector-lab-panel__title-group,
.s-vector-lab-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.s-sim-live-indicator,
.s-live-radar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
  animation: sPulse 1.8s infinite;
  display: inline-block;
  flex-shrink: 0;
}

.s-sim-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.s-vector-lab-panel__actions,
.s-vector-lab-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.s-vector-stages-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.s-vector-stage {
  background: rgba(13, 20, 36, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}

.s-vector-stage:hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

.s-vector-stage.active {
  border-color: #10b981;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(13, 20, 36, 0.9) 100%);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.25), inset 0 0 15px rgba(16, 185, 129, 0.05);
  transform: translateY(-3px);
}

.s-vector-stage.completed {
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.06) 0%, rgba(13, 20, 36, 0.85) 100%);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

.s-vector-stage__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
}

.s-vector-stage__num {
  font-family: var(--s-font-mono, 'JetBrains Mono', monospace);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1.2;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.s-vector-stage.active .s-vector-stage__num {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.s-vector-stage.completed .s-vector-stage__num {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

.s-vector-stage__status {
  font-family: var(--s-font-mono, 'JetBrains Mono', monospace);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
}

.s-vector-stage.active .s-vector-stage__status {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
  animation: sPulse 1.5s infinite;
}

.s-vector-stage.completed .s-vector-stage__status {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.45);
}

.s-vector-stage__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  letter-spacing: -0.01em;
}

.s-vector-stage__desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
  min-height: 54px;
}

.s-vector-stage__meter {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin-top: auto;
}

.s-vector-stage__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #38bdf8);
  border-radius: 999px;
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.s-vector-stage.active .s-vector-stage__bar {
  width: 100%;
  box-shadow: 0 0 10px #10b981;
}

.s-vector-stage.completed .s-vector-stage__bar {
  width: 100%;
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.s-vector-stage__metric {
  font-family: var(--s-font-mono, 'JetBrains Mono', monospace);
  font-size: 0.72rem;
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  letter-spacing: 0.02em;
  min-width: 0;
  line-height: 1.35;
}

.s-vector-stage.active .s-vector-stage__metric {
  border-color: rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.08);
}

.s-vector-stage.completed .s-vector-stage__metric {
  border-color: rgba(56, 189, 248, 0.3);
  color: #bae6fd;
}

/* Stage 1 Face Mesh */
.s-sim-face-box {
  position: relative;
  width: 70px;
  height: 80px;
  border: 1px dashed rgba(16, 185, 129, 0.5);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s-sim-mesh-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(16, 185, 129, 0.4) 1px, transparent 1px);
  background-size: 10px 10px;
}
.s-sim-face-landmarks {
  display: flex;
  gap: 12px;
}
.s-sim-face-landmarks i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}
.s-sim-tag {
  position: absolute;
  bottom: 4px;
  font-family: var(--s-font-mono);
  font-size: 0.62rem;
  color: #10b981;
  background: rgba(0, 0, 0, 0.8);
  padding: 0.1rem 0.4rem;
  border-radius: var(--s-radius-full);
}

/* Stage 2 Vector Graph */
.s-vector-graph {
  width: 100%;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.s-vector-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 55px;
  gap: 4px;
}
.s-vector-bars span {
  flex: 1;
  background: linear-gradient(180deg, #38bdf8 0%, rgba(56, 189, 248, 0.2) 100%);
  border-radius: 2px;
  transition: height 0.3s ease;
}
.s-vector-metric {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--s-text-muted);
}
.s-vector-metric strong {
  color: #38bdf8;
  font-family: var(--s-font-mono);
}

/* Stage 3 Shredder */
.s-shred-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: #f43f5e;
}
.s-shred-timer {
  font-family: var(--s-font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}
.s-shred-confirm {
  font-size: 0.68rem;
  color: #10b981;
  font-weight: 700;
}

/* Stage 4 Ledger Block Preview */
.s-ledger-block-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
  padding: 0.5rem;
}
.s-block-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: #38bdf8;
  font-family: var(--s-font-mono);
}
.s-block-hash {
  font-family: var(--s-font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.s-block-stat {
  font-size: 0.65rem;
  color: #10b981;
  font-weight: 700;
  text-transform: uppercase;
}

/* ── Interactive Audit Ledger ── */
.s-ledger-preview-box {
  background: #090d16;
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.s-ledger-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.s-ledger-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #38bdf8;
}
.s-ledger-chain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.s-ledger-card {
  flex: 1;
  min-width: 260px;
  background: var(--s-bg-surface);
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: all 0.2s ease;
}
.s-ledger-card.verified {
  border-color: #10b981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}
.s-ledger-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.s-ledger-badge {
  font-family: var(--s-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
}
.s-ledger-time {
  font-family: var(--s-font-mono);
  font-size: 0.68rem;
  color: var(--s-text-muted);
}
.s-ledger-card__event {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
}
.s-ledger-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.75rem;
  color: var(--s-text-secondary);
}
.s-ledger-card__hash {
  font-family: var(--s-font-mono);
  font-size: 0.68rem;
  color: #64748b;
  background: #07090e;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.s-ledger-arrow {
  color: var(--s-text-muted);
  font-size: 1.5rem;
  font-weight: 300;
}

/* ── Grid Layouts ── */
.s-grid {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.s-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.s-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.s-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.s-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* ── Cards ── */
.s-card {
  background: var(--s-bg-elevated);
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius);
  padding: 2rem;
  transition: all var(--s-transition);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}
.s-card:hover {
  border-color: var(--s-border-hover);
  transform: translateY(-2px);
}
.s-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--s-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #38bdf8;
}
.s-card__title {
  font-family: var(--s-font);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--s-text-primary);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.s-card__title--lg {
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}
.s-card__desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--s-text-secondary);
  margin: 0;
}
.s-card__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--s-text-muted);
  margin-bottom: 0.75rem;
}
.s-card__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.s-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--s-text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius-full);
}

/* Feature Card (Hardware Photos) */
.s-card--feature {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.s-card__media {
  width: 100%;
  height: 200px;
  border-radius: var(--s-radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--s-border);
  background: #000000;
}
.s-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.s-card--feature:hover .s-card__img {
  transform: scale(1.04);
}

/* Role Card (5-Tier RBAC) */
.s-card--role {
  padding: 1.5rem;
}
.s-card__role-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.s-card__tier {
  font-family: var(--s-font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--s-text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--s-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.s-card__scope {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--s-radius-full);
  border: 1px solid;
}
.s-card__scope--blue {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(96, 165, 250, 0.08);
}
.s-card__scope--green {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.08);
}
.s-card__scope--amber {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
}
.s-card__scope--purple {
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.3);
  background: rgba(192, 132, 252, 0.08);
}
.s-card__scope--rose {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.3);
  background: rgba(251, 113, 133, 0.08);
}

/* ── Compliance Bar ── */
.s-compliance-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 1.35rem 1.85rem;
  background: var(--s-bg-elevated);
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius);
}
.s-compliance-bar__left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--s-text-secondary);
  font-size: 0.88rem;
}
.s-compliance-bar__left svg {
  color: #38bdf8;
  flex-shrink: 0;
}
.s-compliance-bar__left a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}
.s-compliance-bar__left a:hover {
  text-decoration: underline;
}

/* ── Contact Section ── */
.s-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2rem;
  align-items: stretch;
  max-width: 1180px;
}
.s-card--contact-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.s-card--contact-form {
  padding: 2.5rem;
}
.s-email-box {
  background: var(--s-bg-surface);
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius-sm);
  padding: 1.15rem 1.35rem;
}
.s-email-box__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--s-text-muted);
  display: block;
  margin-bottom: 0.5rem;
}
.s-email-box__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.s-email-box__addr {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--s-font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: none;
}
.s-email-box__addr:hover {
  text-decoration: underline;
}
.s-contact-meta {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1rem;
}
.s-contact-meta__item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: var(--s-text-secondary);
}
.s-contact-meta__label {
  font-weight: 700;
  color: var(--s-text-primary);
  font-size: 0.88rem;
  white-space: nowrap;
}
.s-contact-meta__value {
  color: #cbd5e1;
  font-size: 0.9rem;
}
.s-contact-meta__item svg {
  color: var(--s-text-muted);
  flex-shrink: 0;
}

.s-contact-email-row {
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
}
.s-contact-email-link {
  font-family: var(--s-font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color var(--s-transition);
}
.s-contact-email-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}
.s-contact-email-row .s-btn {
  padding: 0.35rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--s-radius-full);
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--s-transition);
}
.s-contact-email-row .s-btn:hover {
  background: #38bdf8;
  color: #07090e;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

.s-purpose-toggle,
.s-form-toggle {
  display: flex;
  gap: 0.45rem;
  background: rgba(15, 23, 42, 0.88);
  padding: 0.35rem;
  border-radius: var(--s-radius-full);
  margin-bottom: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}
.s-purpose-btn,
.s-form-toggle__btn {
  flex: 1;
  padding: 0.7rem 1.25rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-family: var(--s-font);
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--s-radius-full);
  cursor: pointer;
  transition: all var(--s-transition);
  text-align: center;
}
.s-purpose-btn:hover,
.s-form-toggle__btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}
.s-purpose-btn.active,
.s-purpose-btn--active,
.s-form-toggle__btn.active,
.s-form-toggle__btn--active {
  background: #ffffff;
  color: #07090e;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  font-weight: 800;
}

.s-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.s-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.s-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.s-form__group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--s-text-secondary);
  letter-spacing: 0.01em;
}
.s-form__group input,
.s-form__group select,
.s-form__group textarea {
  background: var(--s-bg);
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius-sm);
  padding: 0.7rem 0.95rem;
  color: var(--s-text-primary);
  font-family: var(--s-font);
  font-size: 0.9rem;
  transition: border-color var(--s-transition);
  outline: none;
}
.s-form__group input:focus,
.s-form__group select:focus,
.s-form__group textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}
.s-form__group input::placeholder,
.s-form__group textarea::placeholder {
  color: var(--s-text-muted);
}
.s-form__group select option {
  background: var(--s-bg-elevated);
  color: var(--s-text-primary);
}
.s-form__footnote {
  font-size: 0.78rem;
  color: var(--s-text-muted);
  text-align: center;
  margin: 0;
}
.s-form__footnote a {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: none;
}
.s-form__footnote a:hover {
  text-decoration: underline;
}

/* ── Footer ── */
.s-footer {
  border-top: 1px solid var(--s-border);
  margin-top: 3rem;
  padding: 0 2.5rem;
  background: #04060a;
}
.s-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4.5rem 0 3.5rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3.5rem;
}
.s-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.s-footer__logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.s-footer__logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
}
.s-footer__wordmark {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--s-text-primary);
}
.s-footer__desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--s-text-muted);
  margin: 0;
  max-width: 340px;
}
.s-footer__email {
  font-family: var(--s-font-mono);
  font-size: 0.88rem;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}
.s-footer__email:hover {
  text-decoration: underline;
}
.s-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.s-footer__col-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--s-text-muted);
  margin: 0 0 0.35rem;
}
.s-footer__link {
  font-size: 0.88rem;
  color: var(--s-text-secondary);
  text-decoration: none;
  transition: color var(--s-transition);
}
.s-footer__link:hover {
  color: #ffffff;
}
.s-footer__location {
  font-size: 0.82rem;
  color: var(--s-text-muted);
  margin-top: 0.25rem;
}
.s-footer__bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.75rem 0;
  border-top: 1px solid var(--s-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.s-footer__bottom p {
  font-size: 0.82rem;
  color: var(--s-text-muted);
  margin: 0;
}
.s-footer__legal {
  display: flex;
  gap: 1.5rem;
}
.s-footer__legal a {
  font-size: 0.82rem;
  color: var(--s-text-muted);
  text-decoration: none;
  transition: color var(--s-transition);
}
.s-footer__legal a:hover {
  color: var(--s-text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN SYSTEM
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1300px) {
  .s-vector-stages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.15rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .s-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .s-grid--5 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1100px) {
  .s-download-deck {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .s-ledger-chain {
    flex-direction: column !important;
    gap: 0.85rem !important;
  }
  .s-ledger-card {
    width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
  }
  .s-ledger-arrow {
    transform: rotate(90deg) !important;
    margin: -0.25rem 0 !important;
  }
}

/* Responsive Nav & Screen Architecture */
@media (max-width: 1180px) {
  .s-nav__links {
    display: none !important;
  }
  .s-nav__toggle {
    display: flex !important;
  }
  .s-nav__actions .s-btn--apk-nav,
  .s-nav__actions .s-nav__btn-district {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .s-hero {
    grid-template-columns: 1fr !important;
    gap: 2.75rem !important;
    padding: 3.5rem 1.75rem 2.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .s-hero__title {
    font-size: 2.5rem !important;
  }
  .s-download-deck {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .s-vector-stages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .s-hardware-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  .s-grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .s-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .s-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .s-footer__inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }
  .s-contact-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 900px) {
  .s-form-factor-strip {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 1.75rem 0 !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .s-nav {
    padding: 0 1rem !important;
  }
  .s-nav__inner {
    height: 60px !important;
    gap: 0.5rem !important;
  }
  .s-nav__build-tag {
    display: none !important;
  }
  .s-nav__wordmark {
    font-size: 1.05rem !important;
  }
  .s-nav__btn-console {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.78rem !important;
    gap: 0.35rem !important;
  }

  /* Core Layout & Sections */
  .s-section {
    padding: 3rem 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .s-section--download {
    padding: 3rem 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .s-section__header {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 2rem !important;
  }
  .s-section__title {
    font-size: 1.95rem !important;
    line-height: 1.18 !important;
  }
  .s-section__desc {
    font-size: 0.95rem !important;
    line-height: 1.58 !important;
  }

  /* Hero */
  .s-hero {
    grid-template-columns: 1fr !important;
    padding: 2.5rem 1rem 2rem !important;
    gap: 2rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .s-hero__title {
    font-size: 2.15rem !important;
    line-height: 1.15 !important;
  }
  .s-hero__desc {
    font-size: 0.98rem !important;
    line-height: 1.6 !important;
  }
  .s-hero__telemetry {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.85rem !important;
    max-width: 100% !important;
  }
  .s-telemetry-sep {
    display: none !important;
  }
  .s-hero__ctas {
    flex-direction: column !important;
    width: 100% !important;
  }
  .s-hero__ctas .s-btn {
    width: 100% !important;
  }

  /* Form Factor Strip (Mobile Stack) */
  .s-form-factor-strip {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1.75rem !important;
    box-sizing: border-box !important;
  }
  .s-ff-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.85rem 1rem !important;
  }

  /* Common Grids */
  .s-grid--2,
  .s-grid--3,
  .s-grid--4,
  .s-grid--5 {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 1.15rem !important;
    box-sizing: border-box !important;
  }
  .s-card {
    padding: 1.25rem 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* SECTION: Universal APK & Download Deck */
  .s-download-deck {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    gap: 1.5rem !important;
    box-sizing: border-box !important;
  }
  .s-card--download {
    padding: 1.5rem 1.15rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
    margin: 0 !important;
  }
  .s-card__eyebrow-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }
  .s-card__tag-live,
  .s-card__tag-arch,
  .s-card__tag-status,
  .s-badge-mini {
    font-size: 0.68rem !important;
    padding: 0.2rem 0.5rem !important;
    max-width: 100% !important;
  }
  .s-checksum-box {
    padding: 0.75rem 0.85rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .s-checksum-box__top {
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
  }
  .s-checksum-box__hash,
  .s-checksum-hash {
    font-size: 0.64rem !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
  }
  .s-qr-frame {
    width: 180px !important;
    height: 180px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  .s-qr-meta {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.75rem !important;
  }
  .s-qr-url-text {
    font-size: 0.7rem !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
  }
  .s-qr-device-tags {
    gap: 0.35rem !important;
    width: 100% !important;
  }
  #btn-main-download-apk {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.95rem 1rem !important;
    text-align: center !important;
    font-size: 0.95rem !important;
  }
  .s-apple-brand-row {
    gap: 0.75rem !important;
  }
  .s-apple-title {
    font-size: 1.2rem !important;
  }
  .s-apple-desc {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }

  /* SECTION: Live Biometric Pipeline Telemetry */
  .s-vector-lab-panel {
    padding: 1.35rem 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
    gap: 1.25rem !important;
  }
  .s-vector-lab-panel__top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.85rem !important;
    padding-bottom: 0.85rem !important;
    width: 100% !important;
  }
  .s-vector-lab-panel__title-group {
    width: 100% !important;
  }
  .s-sim-title {
    font-size: 1.02rem !important;
    line-height: 1.3 !important;
  }
  .s-vector-lab-panel__actions {
    width: 100% !important;
    display: flex !important;
    gap: 0.5rem !important;
  }
  .s-vector-lab-panel__actions .s-btn {
    flex: 1 !important;
    justify-content: center !important;
    padding: 0.55rem 0.65rem !important;
    font-size: 0.8rem !important;
  }
  .s-vector-stages-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
    width: 100% !important;
  }
  .s-vector-stage {
    padding: 1.15rem 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 0.65rem !important;
  }
  .s-vector-stage__header {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .s-vector-stage__title {
    font-size: 1.05rem !important;
  }
  .s-vector-stage__desc {
    font-size: 0.84rem !important;
    line-height: 1.45 !important;
  }
  .s-vector-stage__metric {
    font-size: 0.74rem !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  /* SECTION: Ledger & Trust Strip */
  .s-ledger-chain {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }
  .s-ledger-card {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .s-ledger-arrow {
    transform: rotate(90deg) !important;
    text-align: center !important;
  }
  .s-trust-strip {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 1.5rem 1rem !important;
    gap: 0.85rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .s-trust-strip__items {
    gap: 0.65rem !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }

  /* SECTION: Contact & Pilot Request Form */
  .s-contact-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .s-contact-info,
  .s-contact-form-wrapper,
  .s-contact-form-card,
  .s-card--contact-info,
  .s-card--contact-form {
    padding: 1.35rem 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .s-purpose-toggle {
    display: flex !important;
    flex-direction: row !important;
    padding: 0.25rem !important;
    gap: 0.25rem !important;
    margin-bottom: 1.35rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .s-purpose-btn {
    flex: 1 !important;
    padding: 0.65rem 0.45rem !important;
    font-size: 0.78rem !important;
    letter-spacing: -0.01em !important;
    text-align: center !important;
    line-height: 1.25 !important;
  }
  .s-form {
    width: 100% !important;
  }
  .s-form__row {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
    width: 100% !important;
  }
  .s-form__group input,
  .s-form__group select,
  .s-form__group textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 0.88rem !important;
    padding: 0.65rem 0.8rem !important;
  }
  .s-contact-email-row {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }
  .s-contact-email-link {
    font-size: 0.88rem !important;
    word-break: break-all !important;
  }

  /* Compliance Bar & Footer */
  .s-compliance-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    padding: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .s-footer__inner {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .s-footer__bottom {
    flex-direction: column !important;
    gap: 0.75rem !important;
    text-align: center !important;
    width: 100% !important;
  }
  .s-footer__legal {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1rem !important;
  }
  .s-spec-card__grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  /* Mobile Navigation Tightening */
  .s-nav {
    padding: 0 0.85rem !important;
  }
  .s-nav__inner {
    height: 56px !important;
    gap: 0.35rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .s-nav__brand {
    gap: 0.45rem !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }
  .s-nav__logo {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
  }
  .s-nav__wordmark {
    font-size: 0.96rem !important;
    letter-spacing: -0.01em !important;
  }
  .s-nav__actions {
    gap: 0.4rem !important;
    flex-shrink: 0 !important;
  }
  .s-btn-console-word-full {
    display: none !important;
  }
  .s-nav__btn-console {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.76rem !important;
    gap: 0.28rem !important;
    white-space: nowrap !important;
    border-radius: 999px !important;
  }
  .s-nav__toggle {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .s-section {
    padding: 2.25rem 0.85rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .s-section--download {
    padding: 2.25rem 0.85rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  #btn-main-download-apk {
    font-size: 0.88rem !important;
    padding: 0.85rem 0.65rem !important;
    white-space: normal !important;
    text-align: center !important;
    gap: 0.45rem !important;
    line-height: 1.25 !important;
  }
  .s-download-deck {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    gap: 1.25rem !important;
    box-sizing: border-box !important;
  }
  .s-section__title {
    font-size: 1.65rem !important;
  }
  .s-hero {
    padding: 2rem 0.85rem 1.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .s-hero__title {
    font-size: 1.78rem !important;
    line-height: 1.18 !important;
  }
  .s-card {
    padding: 1.15rem 0.85rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .s-card--download {
    padding: 1.25rem 0.85rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
    margin: 0 !important;
  }
  .s-vector-lab-panel {
    padding: 1.15rem 0.75rem !important;
  }
  .s-vector-stage {
    padding: 0.95rem 0.75rem !important;
  }
  .s-contact-info,
  .s-contact-form-card {
    padding: 1.15rem 0.75rem !important;
  }
  .s-purpose-btn {
    padding: 0.6rem 0.35rem !important;
    font-size: 0.74rem !important;
  }
  .s-qr-frame {
    width: 160px !important;
    height: 160px !important;
  }
  .s-apk-specs-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    padding: 0.65rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 380px) {
  .s-nav {
    padding: 0 0.65rem !important;
  }
  .s-nav__inner {
    height: 52px !important;
    gap: 0.3rem !important;
  }
  .s-nav__logo {
    width: 28px !important;
    height: 28px !important;
  }
  .s-nav__wordmark {
    font-size: 0.88rem !important;
  }
  .s-nav__btn-console {
    padding: 0.28rem 0.5rem !important;
    font-size: 0.72rem !important;
  }
  .s-nav__toggle {
    width: 32px !important;
    height: 32px !important;
  }

  .s-purpose-toggle {
    flex-direction: column !important;
    border-radius: 12px !important;
    gap: 0.35rem !important;
  }
  .s-purpose-btn {
    width: 100% !important;
    border-radius: 8px !important;
    padding: 0.6rem !important;
  }
  .s-hero__telemetry {
    grid-template-columns: 1fr !important;
  }
  .s-vector-lab-panel__actions {
    flex-direction: column !important;
  }
  .s-qr-frame {
    width: 155px !important;
    height: 155px !important;
  }
}


/* ── Legacy & Modal Button Classes (Modernized for Apple/Stripe Aesthetic) ── */
.btn-corp-portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--s-font, 'Plus Jakarta Sans', sans-serif);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #fafafa;
  color: #09090b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  text-decoration: none;
  line-height: 1.4;
}

.btn-corp-portal:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.btn-corp-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--s-font, 'Plus Jakarta Sans', sans-serif);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fafafa;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  text-decoration: none;
  line-height: 1.4;
}

.btn-corp-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ==========================================================================
   DISTRICT 4 PORTAL (EXACT MATCH TO CLIENT SKETCH)
   ========================================================================== */

.district-sketch-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding: 0.5rem 0.25rem;
}

.district-sketch-titles {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.district-sketch-name {
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 2.75rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.district-sketch-county {
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.district-sketch-state {
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
}

.district-sketch-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.district-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.88rem;
  color: #cbd5e1;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.15);
}

.district-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  display: inline-block;
  animation: pulse-ring 2s infinite;
}

.district-sketch-search-wrap {
  position: relative;
  width: 270px;
}

.district-sketch-search-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full, 9999px);
  padding: 0.58rem 1rem 0.58rem 2.4rem;
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.district-sketch-search-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.sketch-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.btn-sketch-refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  padding: 0.58rem 1.15rem;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sketch-refresh:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.district-header-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.12);
  padding: 0.52rem 1.15rem;
  border-radius: var(--radius-full, 9999px);
  color: #e2e8f0;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.pulse-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-ring 2s infinite;
}

.badge-accent-in {
  color: #34d399;
  font-weight: 700;
}

.badge-accent-out {
  color: #38bdf8;
  font-weight: 700;
}

.badge-sep {
  color: rgba(255, 255, 255, 0.25);
  font-weight: 400;
}

/* District Attendance Telemetry Deck (The "More Things") */
.district-metric-deck {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.district-metric-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.district-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
}

.metric-card--in {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.metric-card--out {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.metric-card--total {
  border-color: rgba(168, 85, 247, 0.35);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.metric-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-badge-live {
  display: inline-flex;
  align-items: center;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.metric-num {
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.text-emerald {
  color: #34d399 !important;
}

.text-cyan {
  color: #38bdf8 !important;
}

.text-purple {
  color: #c084fc !important;
}

.metric-sub {
  font-size: 0.78rem;
  color: #64748b;
}

/* Master District Card */
.district-sketch-card {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
}

/* Table Toolbar */
.district-table-toolbar {
  padding: 1rem 1.75rem;
  background: rgba(10, 15, 26, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.table-legend-pills {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.legend-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.legend-in {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
}

.legend-out {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
}

.district-sketch-table-wrap {
  width: 100%;
  max-height: 560px;
  overflow-y: auto;
  position: relative;
}

.district-sketch-table-wrap::-webkit-scrollbar {
  width: 8px;
}

.district-sketch-table-wrap::-webkit-scrollbar-track {
  background: rgba(10, 15, 26, 0.6);
}

.district-sketch-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.district-sketch-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.45);
}

.district-sketch-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.district-sketch-table th {
  background: rgba(10, 15, 26, 0.96);
  padding: 1.15rem 1.75rem;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.district-sketch-table th.col-daycare {
  width: 32%;
  text-align: left;
}

.district-sketch-table th.col-carein {
  width: 15%;
  text-align: center;
  color: #34d399;
}

.district-sketch-table th.col-need {
  width: 15%;
  text-align: center;
  color: #38bdf8;
}

.district-sketch-table th.col-total {
  width: 14%;
  text-align: center;
  color: #c084fc;
}

.district-sketch-table th.col-status {
  width: 14%;
  text-align: center;
}

.district-sketch-table th.col-action {
  width: 10%;
  text-align: right;
}

.district-sketch-table td {
  padding: 1.1rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.district-table-row {
  cursor: pointer;
  transition: background 0.16s ease;
}

.district-table-row:hover {
  background: rgba(56, 189, 248, 0.07);
}

.district-table-row:hover .daycare-primary-title {
  color: #38bdf8;
}

.daycare-name-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.daycare-primary-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  transition: color 0.16s ease;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.daycare-meta-tag {
  font-size: 0.78rem;
  color: #64748b;
  font-family: var(--font-mono, monospace);
}

.col-carein,
.col-need,
.col-total,
.col-status {
  text-align: center;
}

.col-action {
  text-align: right;
}

.badge-num-care {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full, 9999px);
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

.badge-in-live {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.badge-in-zero {
  background: rgba(100, 116, 139, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.badge-num-out {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full, 9999px);
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.badge-num-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #f1f5f9;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pill-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-pill-out {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.btn-row-inspect {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-row-inspect:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateX(2px);
}

.table-loading-row {
  text-align: center;
  padding: 3.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

@media (max-width: 1024px) {
  .district-metric-deck {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 3 Bottom Action Controls (Exact Match to Client Sketch: [ reports ] [ Print ] [ Custom ]) */
.district-sketch-actions-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1.6rem 2.5rem;
  background: rgba(10, 15, 26, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.btn-sketch-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 175px;
  padding: 1rem 2.3rem;
  border-radius: 10px;
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 1.12rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-action-reports {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.45);
}

.btn-action-reports:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  box-shadow: 0 8px 28px rgba(2, 132, 199, 0.7);
}

.btn-action-print {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.btn-action-print:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.btn-action-custom {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.45);
}

.btn-action-custom:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #8b5cf6 0%, #4f46e5 100%);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.7);
}

@media (max-width: 768px) {
  .district-sketch-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .district-sketch-header-right {
    width: 100%;
    justify-content: space-between;
  }
  .district-sketch-search-wrap {
    width: 100%;
  }
  .district-sketch-actions-row {
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.25rem 1.5rem;
  }
  .btn-sketch-action {
    width: 100%;
    min-width: unset;
  }
  .district-sketch-table th,
  .district-sketch-table td {
    padding: 0.9rem 1.25rem;
  }
}

/* Single Center Drill-Down Inspector Modal */
.drilldown-modal-content {
  max-width: 900px !important;
  max-height: 85vh;
  overflow-y: auto;
}

.center-inspector-deck {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.center-kpi-summary-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .center-kpi-summary-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.center-kpi-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.center-kpi-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.center-kpi-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
}


/* Interactive Form & Button Controls */
.form-toggle-btn {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-toggle-btn:hover:not(.active) {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.btn-copy-email {
  transition: all 0.2s ease;
}

.btn-copy-email:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.5);
}

.btn-copy-email:active {
  transform: scale(0.97);
}

#modal-corp-privacy .modal-glass-container {
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(2, 132, 199, 0.2);
}

/* ==========================================================================
   OFFICIAL DISTRICT 4 PRINT STYLESHEET
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 10pt;
  }

  .ambient-mesh,
  .noise-overlay,
  .executive-header,
  .district-footer-action-bar,
  .district-sketch-actions-row,
  .district-sketch-header-right,
  .district-search-box,
  .table-filter-segmented,
  .btn-district-action,
  .btn-sketch-action,
  .modal-backdrop-luxury,
  .toast-container {
    display: none !important;
  }

  .console-body {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .district-sketch-header {
    margin-bottom: 1.5rem !important;
    border-bottom: 2px solid #000000 !important;
    padding-bottom: 1rem !important;
  }

  .district-sketch-name,
  .district-sketch-county,
  .district-sketch-state {
    color: #000000 !important;
    text-shadow: none !important;
  }

  .district-sketch-card {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .district-sketch-table-wrap {
    max-height: none !important;
    overflow: visible !important;
  }

  .district-sketch-table {
    border: 1px solid #000000 !important;
    width: 100% !important;
  }

  .district-sketch-table th {
    background: #f1f5f9 !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    font-size: 9pt !important;
  }

  .district-sketch-table td {
    color: #000000 !important;
    border: 1px solid #cccccc !important;
    padding: 0.4rem 0.6rem !important;
    font-size: 9pt !important;
  }

  .daycare-primary-title,
  .daycare-meta-tag,
  .badge-num-care,
  .badge-num-out,
  .badge-num-total,
  .status-pill {
    color: #000000 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  }

  .col-action {
    display: none !important;
  }

  .print-inspector-signature-block {
    display: block !important;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #000000;
  }
}

/* ==========================================================================
   COMPLETE MOBILE RESPONSIVENESS & TOUCH OPTIMIZATIONS (< 768px & < 480px)
   ========================================================================== */
@media screen and (max-width: 768px) {
  /* Executive Header & Brand */
  .top-navbar, .executive-header, .header-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0.75rem 1rem !important;
    gap: 0.75rem !important;
  }

  .nav-brand-group, .header-left {
    justify-content: space-between !important;
    width: 100% !important;
  }

  .nav-tools-group, .header-right {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .switch-role-bar, .role-simulation-pills {
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 0.25rem !important;
    width: 100% !important;
  }

  /* Navigation Tabs: Horizontal Swipeable Rail */
  .main-nav-tabs, .console-tabs-bar, .sub-nav-tabs {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    padding: 0.5rem 0.75rem !important;
    gap: 0.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .main-nav-tabs::-webkit-scrollbar,
  .console-tabs-bar::-webkit-scrollbar {
    display: none !important;
  }

  .nav-tab-btn, .console-tab {
    flex-shrink: 0 !important;
    padding: 0.55rem 0.95rem !important;
    font-size: 0.82rem !important;
  }

  /* Main View Container */
  .console-body, .main-content-container, .view-section {
    padding: 1rem 0.75rem !important;
    max-width: 100% !important;
  }

  /* Stat & KPI Cards */
  .kpi-grid, .kpi-grid-luxury, .payroll-kpi-grid, .overview-metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  .kpi-card, .metric-card {
    padding: 1rem 0.85rem !important;
  }

  .kpi-value, .metric-value {
    font-size: 1.5rem !important;
  }

  /* Tables: Smooth Horizontal Scroll */
  .table-frame, .table-responsive-luxury, .table-card {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 10px !important;
  }

  .luxury-table {
    min-width: 680px !important;
    font-size: 0.82rem !important;
  }

  .luxury-table th, .luxury-table td {
    padding: 0.65rem 0.75rem !important;
  }

  /* Card Header Bars & Filters */
  .card-header-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .header-tools {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }

  .glass-search-box, .owner-user-search-input {
    width: 100% !important;
    max-width: 100% !important;
  }

  .pagination-size-select, .btn-refresh {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Pagination Bar on Mobile */
  .table-pagination-footer {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.85rem 0.5rem !important;
    text-align: center !important;
  }

  .pagination-summary {
    font-size: 0.8rem !important;
  }

  .pagination-controls-group {
    flex-direction: column !important;
    width: 100% !important;
    align-items: center !important;
    gap: 0.65rem !important;
  }

  .pagination-nav-group {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.35rem !important;
  }

  .btn-page-nav {
    padding: 0.4rem 0.65rem !important;
    font-size: 0.78rem !important;
  }

  /* Modals on Mobile */
  .modal-backdrop {
    padding: 0.5rem !important;
    align-items: flex-end !important;
  }

  .modal-glass-container {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 90vh !important;
    padding: 1.25rem 1rem !important;
    border-radius: 16px 16px 0 0 !important;
  }

  .modal-btn-row {
    flex-direction: column !important;
    gap: 0.5rem !important;
    align-items: stretch !important;
  }

  .modal-btn-row button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Area Supervisor Cards Deck on Mobile */
  .centers-compare-deck {
    grid-template-columns: 1fr !important;
    padding: 0.85rem !important;
    gap: 0.85rem !important;
  }

  .center-card-luxury {
    padding: 1.15rem 1rem !important;
    gap: 0.85rem !important;
  }

  .center-metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  .center-facility-title {
    font-size: 1.05rem !important;
  }
}

@media screen and (max-width: 480px) {
  .kpi-grid, .kpi-grid-luxury, .payroll-kpi-grid, .overview-metrics-grid {
    grid-template-columns: 1fr !important;
  }

  .center-metrics-grid {
    grid-template-columns: 1fr !important;
  }

  .modal-header-luxury h3 {
    font-size: 1.15rem !important;
  }

  .user-avatar-mini {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.7rem !important;
  }
}

/* ==========================================================================
   CONTROL CONSOLE & SEPARATE ROLE PORTALS (SDBIOMETRIX LTS)
   ========================================================================== */

/* Standalone Full-Page Mode (Hides Internal Backoffice Executive Header) */
body.viewing-corporate-site .executive-header,
body.viewing-control-console .executive-header,
body.viewing-portal .executive-header,
body.viewing-district-portal .executive-header {
  display: none !important;
}

body.viewing-control-console .console-body,
body.viewing-portal .console-body,
body.viewing-district-portal .console-body {
  padding: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  min-height: 100vh;
}

/* Control Console Container */
.control-console-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 2.5rem 1.75rem 5rem 1.75rem;
}

.control-console-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 3rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.console-brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.console-brand-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}

.console-brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.console-brand-sub {
  font-size: 0.825rem;
  color: #94a3b8;
  margin-top: 2px;
}

.btn-return-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-return-home:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  transform: translateX(-2px);
}

.control-console-hero {
  text-align: center;
  margin-bottom: 3.25rem;
}

.console-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.control-console-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.control-console-desc {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 4 Gateway Cards Grid */
.control-portals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

@media screen and (max-width: 1200px) {
  .control-portals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 640px) {
  .control-portals-grid {
    grid-template-columns: 1fr;
  }
}

.control-portal-card {
  position: relative;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.85) 0%, rgba(10, 15, 29, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
}

.control-portal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), 0 0 35px rgba(56, 189, 248, 0.15);
}

.card-district:hover { border-color: rgba(56, 189, 248, 0.5); }
.card-admin:hover { border-color: rgba(139, 92, 246, 0.5); }
.card-supervisor:hover { border-color: rgba(245, 158, 11, 0.5); }
.card-payroll:hover { border-color: rgba(16, 185, 129, 0.5); }

.portal-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.portal-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
}

.icon-district { background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.3); }
.icon-admin { background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.3); }
.icon-supervisor { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3); }
.icon-payroll { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); }

.portal-category-tag {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.portal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.portal-subtitle {
  font-size: 0.85rem;
  color: #38bdf8;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.card-admin .portal-subtitle { color: #a78bfa; }
.card-supervisor .portal-subtitle { color: #fbbf24; }
.card-payroll .portal-subtitle { color: #34d399; }

.portal-description {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.portal-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 2rem;
  flex: 1;
}

.portal-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  color: #cbd5e1;
}

.portal-feature-item span {
  color: #38bdf8;
  font-size: 0.75rem;
}

.card-admin .portal-feature-item span { color: #a78bfa; }
.card-supervisor .portal-feature-item span { color: #fbbf24; }
.card-payroll .portal-feature-item span { color: #34d399; }

.btn-portal-launch {
  height: 3.25rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-launch-district {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
}
.btn-launch-district:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.45);
}

.btn-launch-admin {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}
.btn-launch-admin:hover {
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.45);
}

.btn-launch-supervisor {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.35);
}
.btn-launch-supervisor:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
}

.btn-launch-payroll {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35);
}
.btn-launch-payroll:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}

/* Staff Mobile App Notice Banner */
.control-console-staff-banner {
  background: linear-gradient(135deg, rgba(14, 23, 42, 0.85) 0%, rgba(20, 30, 55, 0.75) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 18px;
  padding: 1.75rem 2.25rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

@media screen and (max-width: 768px) {
  .control-console-staff-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
}

.staff-banner-icon {
  font-size: 2.25rem;
  flex-shrink: 0;
}

.staff-banner-body {
  flex: 1;
}

.staff-banner-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.35rem;
}

.staff-banner-text {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
}

.staff-banner-text strong {
  color: #38bdf8;
}

.staff-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.staff-banner-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
}

/* ==========================================================================
   SEPARATE ROLE PORTAL SCREENS (ADMIN, SUPERVISOR, PAYROLL)
   ========================================================================== */

.role-portal-screen {
  min-height: 100vh;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1.25rem 5rem 1.25rem;
}

.role-portal-screen.active,
.view-panel.active.role-portal-screen {
  display: flex !important;
  opacity: 1 !important;
}

.role-portal-wrapper {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.portal-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.btn-back-to-console {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back-to-console:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  transform: translateX(-2px);
}

.portal-badge-chip {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
}

.badge-district-chip { background: rgba(6, 182, 212, 0.15); border: 1px solid rgba(6, 182, 212, 0.35); color: #38bdf8; }
.badge-admin-chip { background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.35); color: #c4b5fd; }
.badge-sup-chip { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.35); color: #fde68a; }
.badge-payroll-chip { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.35); color: #a7f3d0; }

.role-portal-card {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.92) 0%, rgba(10, 14, 26, 0.97) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 2.75rem 2.25rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(24px);
}

@media screen and (max-width: 500px) {
  .role-portal-card {
    padding: 2rem 1.35rem;
  }
}

.role-portal-logo-header {
  text-align: center;
  margin-bottom: 2rem;
}

.portal-avatar-ring {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.15rem auto;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.portal-main-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.portal-main-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 0;
}

.portal-subpanel {
  display: none;
}

.portal-subpanel.active {
  display: block;
  animation: panelSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.portal-link-text {
  font-size: 0.8rem;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}
.portal-link-text:hover {
  text-decoration: underline;
  color: #7dd3fc;
}

.portal-form-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portal-footer-links {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.825rem;
  color: #94a3b8;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.portal-action-link {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}
.portal-action-link:hover {
  text-decoration: underline;
  color: #7dd3fc;
}

.portal-policy-box {
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.825rem;
  color: #94a3b8;
  line-height: 1.55;
}

.policy-box-title {
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.portal-policy-box p {
  margin: 0 0 0.75rem 0;
}

.subpanel-header {
  text-align: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.subpanel-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.35rem;
}

.subpanel-header p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}

.portal-alert-info {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
  line-height: 1.5;
  text-align: center;
}

.btn-ghost-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-ghost-secondary:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  transform: translateY(-1px);
}

.portal-otp-secondary-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  width: 100%;
}


.provisioning-details-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.detail-block h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.35rem;
}

.detail-block p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.contact-pill-box {
  margin-top: 0.65rem;
  padding: 0.75rem 1rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  font-size: 0.825rem;
  color: #cbd5e1;
}

/* ==========================================================================
   DISTRICT 4 STANDALONE TOP BAR (SDBIOMETRIX REGIONAL LTS)
   ========================================================================== */

.district-standalone-top-bar {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 1.75rem 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.district-brand-wrapper {
  display: flex;
  align-items: center;
}

.district-brand-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.district-badge-wrapper {
  position: relative;
  width: 42px;
  height: 42px;
}

.district-badge-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.district-badge-glow {
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.district-brand-titles {
  display: flex;
  flex-direction: column;
}

.district-brand-main-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.district-brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.district-badge-pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
}

.district-brand-sub {
  font-size: 0.8rem;
  color: #94a3b8;
}

.district-top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-return-console-luxury {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-return-console-luxury:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.district-session-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.district-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
}

.district-user-avatar {
  font-size: 1rem;
}

.district-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.district-user-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f1f5f9;
}

.district-user-role {
  font-size: 0.65rem;
  font-weight: 600;
  color: #38bdf8;
}

.btn-goto-backoffice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  padding: 0.48rem 0.95rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-goto-backoffice:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.35), rgba(59, 130, 246, 0.35));
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-district-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-district-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.btn-district-signin-luxury {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
  transition: all 0.2s ease;
}

.btn-district-signin-luxury:hover {
  background: linear-gradient(135deg, #0369a1, #1d4ed8);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
  transform: translateY(-1px);
}

.district-portal-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.75rem 4rem 1.75rem;
}

/* Fast Gateway Navigators in Back-Office Header */
.btn-hdr-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 0.42rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-hdr-nav-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

@media (max-width: 900px) {
  .btn-hdr-nav-pill .btn-hdr-text {
    display: none;
  }
  .btn-hdr-nav-pill {
    padding: 0.42rem 0.5rem;
  }
  .district-standalone-top-bar {
    padding: 1rem 1rem 0.85rem 1rem;
  }
  .district-portal-inner {
    padding: 0 1rem 3rem 1rem;
  }
}

/* ========================================================================= */
/* ROLE PORTAL ACCESS APPLICATION, OTP VERIFY & PENDING APPROVAL STYLES      */
/* ========================================================================= */
.access-success-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  animation: panelSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-icon-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.05) 70%);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.25);
}

.success-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.success-card-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.status-pill-pending {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.status-pill-pending .pulsing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.success-details-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

.detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-label {
  color: #94a3b8;
}

.detail-value {
  color: #e2e8f0;
  font-weight: 600;
  font-family: monospace;
}

.success-footer-note {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
}


