/* ==========================================================================
   YOUBROADBAND ENTERPRISE FRONTEND FRAMEWORK
   Design Language: Safaricom Business / Liquid Intelligent Technologies / Starlink / Stripe / Linear
   Pure CSS Grid, Flexbox & Design Tokens. Zero external build dependencies.
   ========================================================================== */

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

/* ==========================================================================
   DESIGN TOKENS & SPACING SYSTEM
   ========================================================================== */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Mathematical 8-Point Spacing Scale */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-20: 20px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-40: 40px;
  --sp-48: 48px;
  --sp-64: 64px;
  --sp-80: 80px;
  --sp-96: 96px;
  --sp-128: 128px;

  /* Color Palette */
  --bg-dark: #060b18;
  --bg-dark-surface: #0c1427;
  --bg-dark-elevated: #111d38;
  --bg-dark-border: rgba(255, 255, 255, 0.08);

  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-light-surface: #ffffff;
  --bg-light-border: #e2e8f0;

  --brand-primary: #e61c6b;
  --brand-primary-hover: #cc145b;
  --brand-primary-light: rgba(230, 28, 107, 0.1);
  --brand-primary-glow: rgba(230, 28, 107, 0.45);
  --brand-gradient: linear-gradient(135deg, #e61c6b 0%, #ff4b8b 50%, #06b6d4 100%);
  --brand-gradient-dark: linear-gradient(135deg, #060b18 0%, #0c1427 60%, #152244 100%);

  --color-cyan: #06b6d4;
  --color-cyan-glow: rgba(6, 182, 212, 0.35);
  --color-emerald: #10b981;
  --color-emerald-glow: rgba(16, 185, 129, 0.35);
  --color-amber: #f59e0b;

  --text-dark-main: #ffffff;
  --text-dark-muted: #94a3b8;
  --text-dark-subtle: #64748b;

  --text-light-main: #0f172a;
  --text-light-muted: #475569;
  --text-light-subtle: #94a3b8;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 12px 36px -4px var(--brand-primary-glow);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-white);
  color: var(--text-light-main);
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  background-color: var(--bg-white);
  color: var(--text-light-main);
}

a {
  color: inherit;
  text-decoration: none;
}

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

svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* SVG dimension utility constraints */
svg.w-2, .w-2 { width: 8px !important; height: 8px !important; max-width: 8px !important; max-height: 8px !important; }
svg.w-2\.5, .w-2\.5 { width: 10px !important; height: 10px !important; max-width: 10px !important; max-height: 10px !important; }
svg.w-3, .w-3 { width: 12px !important; height: 12px !important; max-width: 12px !important; max-height: 12px !important; }
svg.w-3\.5, .w-3\.5 { width: 14px !important; height: 14px !important; max-width: 14px !important; max-height: 14px !important; }
svg.w-4, .w-4 { width: 16px !important; height: 16px !important; max-width: 16px !important; max-height: 16px !important; }
svg.w-5, .w-5 { width: 20px !important; height: 20px !important; max-width: 20px !important; max-height: 20px !important; }
svg.w-6, .w-6 { width: 24px !important; height: 24px !important; max-width: 24px !important; max-height: 24px !important; }
svg.w-7, .w-7 { width: 28px !important; height: 28px !important; max-width: 28px !important; max-height: 28px !important; }
svg.w-8, .w-8 { width: 32px !important; height: 32px !important; max-width: 32px !important; max-height: 32px !important; }
svg.w-9, .w-9 { width: 36px !important; height: 36px !important; max-width: 36px !important; max-height: 36px !important; }
svg.w-10, .w-10 { width: 40px !important; height: 40px !important; max-width: 40px !important; max-height: 40px !important; }
svg.w-12, .w-12 { width: 48px !important; height: 48px !important; max-width: 48px !important; max-height: 48px !important; }
svg.w-16, .w-16 { width: 64px !important; height: 64px !important; max-width: 64px !important; max-height: 64px !important; }

.hidden {
  display: none !important;
}

/* ==========================================================================
   GLOBAL LAYOUT & CONTAINER SYSTEM
   Width Rules:
   Mobile: 100%
   Tablet: 100%
   Laptop: 1280px max
   Desktop: 1440px max
   Large Screens: 1600px max
   ========================================================================== */
.wrapper {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sp-16);
  padding-right: var(--sp-16);
}

@media (min-width: 640px) {
  .container {
    padding-left: var(--sp-24);
    padding-right: var(--sp-24);
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1280px; /* Laptop */
    padding-left: var(--sp-32);
    padding-right: var(--sp-32);
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1440px; /* Desktop */
    padding-left: var(--sp-40);
    padding-right: var(--sp-40);
  }
}

@media (min-width: 1680px) {
  .container {
    max-width: 1600px; /* Large Screens */
    padding-left: var(--sp-48);
    padding-right: var(--sp-48);
  }
}

.container-fluid {
  width: 100%;
  padding-left: var(--sp-20);
  padding-right: var(--sp-20);
}

@media (min-width: 1024px) {
  .container-fluid {
    padding-left: var(--sp-48);
    padding-right: var(--sp-48);
  }
}

/* Standard Section Padding */
.section {
  width: 100%;
  padding-top: var(--sp-64);
  padding-bottom: var(--sp-64);
  position: relative;
}

@media (min-width: 1024px) {
  .section {
    padding-top: var(--sp-80);
    padding-bottom: var(--sp-80);
  }
}

.section-lg {
  width: 100%;
  padding-top: var(--sp-80);
  padding-bottom: var(--sp-80);
  position: relative;
}

@media (min-width: 1024px) {
  .section-lg {
    padding-top: var(--sp-96);
    padding-bottom: var(--sp-96);
  }
}

.section-sm {
  width: 100%;
  padding-top: var(--sp-32);
  padding-bottom: var(--sp-32);
  position: relative;
}

/* Section Background Themes */
.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-dark-main);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(230, 28, 107, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.07) 0%, transparent 40%);
}

.section-light {
  background-color: var(--bg-light);
  color: var(--text-light-main);
}

.section-white {
  background-color: var(--bg-white);
  color: var(--text-light-main);
}

/* Vertical Stacks */
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

.stack-lg {
  display: flex;
  flex-direction: column;
  gap: var(--sp-32);
}

/* ==========================================================================
   CSS GRID FRAMEWORK (No collapse into narrow columns)
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-24);
  width: 100%;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-32);
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-24);
  width: 100%;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-32);
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-20);
  width: 100%;
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-24);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-24);
  }
}

@media (min-width: 1440px) {
  .grid-4 {
    gap: var(--sp-32);
  }
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-24);
  width: 100%;
}

/* Hero 50/50 Balanced Grid */
.grid-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-40);
  width: 100%;
  align-items: center;
}

@media (min-width: 1024px) {
  .grid-hero {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-64);
    align-items: center;
  }
}

/* ==========================================================================
   TYPOGRAPHY SCALE (Inter)
   ========================================================================== */
.display-2xl {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 7.5vw, 2.75rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (min-width: 768px) {
  .display-2xl {
    font-size: 3.5rem;
  }
}

@media (min-width: 1280px) {
  .display-2xl {
    font-size: 4rem;
  }
}

.display-xl {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (min-width: 768px) {
  .display-xl {
    font-size: 3rem;
  }
}

@media (min-width: 1280px) {
  .display-xl {
    font-size: 3.35rem;
  }
}

.display-l {
  font-family: var(--font-sans);
  font-size: 1.85rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .display-l {
    font-size: 2.25rem;
  }
}

.h1 {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .h1 {
    font-size: 2rem;
  }
}

.h2 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
}

@media (min-width: 768px) {
  .h2 {
    font-size: 1.625rem;
  }
}

.h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .h3 {
    font-size: 1.25rem;
  }
}

.h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
}

.body-l {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
}

.body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
}

.body-sm {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.55;
  font-weight: 400;
}

.caption {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* ==========================================================================
   SECTION HEADER STANDARDS
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--sp-48);
}

@media (min-width: 1024px) {
  .section-header {
    margin-bottom: var(--sp-64);
  }
}

.section-header-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-16);
}

.section-badge-dark {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.section-badge-light {
  background: rgba(230, 28, 107, 0.08);
  border: 1px solid rgba(230, 28, 107, 0.2);
  color: var(--brand-primary);
}

.section-title {
  margin-bottom: var(--sp-12);
  color: var(--text-light-main);
}

.section-dark .section-title {
  color: #ffffff;
}

.hero-search-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  width: 100%;
}

@media (min-width: 580px) {
  .hero-search-form {
    flex-direction: row;
  }
}

.section-desc {
  color: var(--text-light-muted);
}

.section-dark .section-desc {
  color: var(--text-dark-muted);
}

/* ==========================================================================
   CARD SYSTEM
   ========================================================================== */
.card-light {
  background-color: var(--bg-white);
  border: 1px solid var(--bg-light-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-20);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .card-light {
    padding: var(--sp-32);
  }
}

.card-light:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.card-dark {
  background-color: var(--bg-dark-surface);
  border: 1px solid var(--bg-dark-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-20);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .card-dark {
    padding: var(--sp-32);
  }
}

.card-dark:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

.card-telemetry {
  background: linear-gradient(145deg, #0d162d 0%, #060b18 100%);
  border: 1px solid rgba(6, 182, 212, 0.25);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 40px -10px rgba(6, 182, 212, 0.15);
  border-radius: var(--radius-xl);
  padding: var(--sp-16);
}

@media (min-width: 640px) {
  .card-telemetry {
    padding: var(--sp-32);
  }
}

/* ==========================================================================
   BUTTON SYSTEM
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius-full);
  padding: 13px 26px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius-full);
  padding: 13px 26px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  border: 1px solid transparent;
  background-color: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 8px 24px -4px var(--brand-primary-glow);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background-color: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(230, 28, 107, 0.65);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius-full);
  padding: 13px 26px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius-full);
  padding: 13px 26px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  background: transparent;
  color: var(--text-light-main);
  border: 1px solid var(--bg-light-border);
  transition: all var(--transition-fast);
}

.btn-outline-dark:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: rgba(230, 28, 107, 0.04);
}

/* Indicators */
.pulse-indicator {
  position: relative;
  display: inline-flex;
  height: 10px;
  width: 10px;
}

.pulse-indicator::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background-color: var(--color-emerald);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.pulse-indicator::after {
  content: '';
  position: relative;
  display: inline-flex;
  border-radius: var(--radius-full);
  height: 10px;
  width: 10px;
  background-color: var(--color-emerald);
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

/* ==========================================================================
   IMAGE & MEDIA SYSTEM
   ========================================================================== */
.media-box {
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: #0f172a;
}

.media-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.media-box:hover .media-fill {
  transform: scale(1.05);
}

.aspect-16-9 {
  aspect-ratio: 16 / 9;
}

.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-21-9 {
  aspect-ratio: 21 / 9;
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 11, 24, 0.85) 100%);
  pointer-events: none;
}

/* ==========================================================================
   BADGE SYSTEM
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: var(--brand-primary);
  color: #ffffff;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #0891b2;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light-muted);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-light-border);
  font-family: inherit;
  font-size: 0.9375rem;
  background: #ffffff;
  color: var(--text-light-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(230, 28, 107, 0.15);
}

/* ==========================================================================
   SITE CHROME: Sticky Header, Navigation, Dropdown, Footer, Modal
   ========================================================================== */
#header-topbar {
  display: block;
  overflow: hidden;
  transition: all var(--transition-normal);
}

@media (max-width: 900px) {
  #header-topbar {
    display: none !important;
  }
}

#main-header.shadow-md {
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-24);
  height: 76px;
  transition: height var(--transition-normal);
}

.site-nav.h-16 {
  height: 64px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.site-brand-logo-img {
  height: 42px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px) {
  .site-brand-logo-img {
    height: 34px;
    max-width: 170px;
  }
}

.site-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -6px var(--brand-primary-glow);
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-brand-name {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-light-main);
  letter-spacing: -0.02em;
}

.site-brand-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-primary);
}

@media (max-width: 768px) {
  .site-brand-tag {
    display: none;
  }
}

.site-nav-links {
  display: none;
  align-items: center;
  gap: clamp(14px, 1.8vw, 32px);
}

.site-nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.site-nav-link:hover, .site-nav-link.is-active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

.site-nav-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

.site-nav-cta {
  padding: 11px 22px;
  font-size: 0.85rem;
}

.site-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: var(--radius-md);
  background: #f1f5f9;
  color: #1e293b;
  border: 0;
  cursor: pointer;
}

@media (min-width: 1100px) {
  .site-nav-links, .site-nav-actions {
    display: flex;
  }
  .site-burger {
    display: none;
  }
}

/* Customer Portal Dropdown */
.site-dropdown {
  position: relative;
}

.site-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-light-border);
  background: var(--bg-light);
  color: #1e293b;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.site-dropdown-btn svg:first-child {
  color: var(--brand-primary);
}

.site-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 280px;
  background: #fff;
  border: 1px solid var(--bg-light-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--transition-normal);
  z-index: 200;
}

.site-dropdown:hover .site-dropdown-menu,
.site-dropdown:focus-within .site-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.site-dropdown-item:hover {
  background: var(--bg-light);
}

.site-dropdown-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light-main);
}

.site-dropdown-item small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light-subtle);
}

.site-dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-dropdown-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding: 10px;
  border-top: 1px solid var(--bg-light-border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-primary);
}

/* Mobile Drawer */
.site-drawer {
  background: #ffffff;
  border-top: 1px solid var(--bg-light-border);
  max-height: 85vh;
  overflow-y: auto;
  padding: 16px 0 28px;
}

.site-drawer-link {
  display: block;
  padding: 12px 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-light-main);
  border-bottom: 1px solid #f1f5f9;
}

.site-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
}

.site-drawer-staff {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light-subtle);
}

@media (min-width: 1100px) {
  .site-drawer {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .topbar-extra {
    display: none;
  }
}

.site-main {
  flex: 1;
  width: 100%;
}

/* Modal */
.site-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(6, 11, 24, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.site-modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: var(--sp-40);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.4);
  max-height: 92vh;
  overflow-y: auto;
}

.site-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px;
  border-radius: 50%;
  border: 0;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
}

/* Footer */
.site-footer {
  background: #0a0e17;
  color: #ffffff;
  padding: var(--sp-96) 0 var(--sp-48);
  border-top: 1px solid var(--bg-dark-border);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-48);
  margin-bottom: var(--sp-64);
}

@media (min-width: 768px) {
  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .site-footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.6fr;
    gap: var(--sp-64);
  }
}

.site-footer-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--sp-24);
  color: #ffffff;
  letter-spacing: -0.01em;
}

.site-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-footer-links a {
  color: var(--text-dark-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.site-footer-links a:hover {
  color: var(--brand-primary);
}

.site-footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: var(--sp-32);
}

.site-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-dark-muted);
  font-size: 0.9rem;
}

.site-footer-contact svg {
  color: var(--brand-primary);
  margin-top: 2px;
}

.site-footer-contact a:hover {
  color: #ffffff;
}

.site-footer-support {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-dark-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-24);
}

.site-social {
  display: flex;
  gap: 10px;
}

.site-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-fast);
}

.site-social a:hover {
  background: var(--brand-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.site-footer-bottom {
  padding-top: var(--sp-32);
  border-top: 1px solid var(--bg-dark-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-16);
  font-size: 0.875rem;
  color: var(--text-dark-muted);
  text-align: center;
}

.site-footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-24);
}

.site-footer-bottom-links a:hover {
  color: #ffffff;
}

@media (min-width: 768px) {
  .site-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
