/**
 * GapScore Design System v1.0
 * Sports Competition Management Platform
 * Mobile-First & Modern Sports UI
 */

:root {
  /* ==========================================================================
     GapScore Design System Tokens (SSOT: docs/GAPSCORE_DESIGN_SYSTEM.md)
     Phase UI-01 — Foundation Only
     ========================================================================== */

  /* --- 1. Primitive: Brand Navy --- */
  --gs-navy-950: #071827; /* Control Navy: shell konsol, kanvas gelap broadcast */
  --gs-navy-900: #0c2238; /* Match Navy: header, dark cards, navigasi utama */
  --gs-navy-800: #15334d; /* Panel Navy: surface elevasi gelap */

  /* --- 2. Primitive: Signal Blue --- */
  --gs-blue-700: #075db8; /* Pressed state, active link pada background terang */
  --gs-blue-600: #0b6fd3; /* Primary action / CTA utama, selected border */
  --gs-blue-500: #2589e8; /* Focus ring, chart highlight */

  /* --- 3. Primitive: Neutrals --- */
  --gs-white: #ffffff;
  --gs-neutral-50: #f6f9fc;  /* Page background default (Light) */
  --gs-neutral-100: #eaf0f5; /* Subtle card fill / striping */
  --gs-neutral-200: #d5dee7; /* Border & divider standar */
  --gs-neutral-300: #b8c6d3; /* Strong border */
  --gs-neutral-600: #526579; /* Secondary / placeholder text */
  --gs-neutral-900: #142333; /* Primary body text (Ink) */

  /* --- 4. Primitive: Accents --- */
  --gs-cyan-600: #159bb8;   /* Broadcast cyan: timeline, streaming badge */
  --gs-orange-600: #e97817; /* Match orange: momentum, highlight waktu */
  --gs-sky-400: #7cc5e8;    /* Field sky: secondary charts, infographics */

  /* --- 5. Semantic System Colors --- */
  /* SUCCESS: Mutasi sukses, tersimpan di DB. BUKAN hasil pertandingan */
  --gs-success: #147a55;
  --gs-success-soft: #e8f5ef;
  --gs-success-text: #0e5d40;
  --gs-success-dark: #5fd0a4;

  /* WARNING: Peringatan sistem, konflik jadwal, pending queue. BUKAN orange brand */
  --gs-warning: #a35c00;
  --gs-warning-soft: #fff2d5;
  --gs-warning-text: #744000;
  --gs-warning-dark: #f2c058;

  /* ERROR: Gagal validasi, koneksi putus, diskors. BUKAN kartu merah */
  --gs-error: #b42318;
  --gs-error-soft: #fdecea;
  --gs-error-text: #821b13;
  --gs-error-dark: #ff8178;

  /* INFO: Alur kerja, regulasi, pengumuman umum non-kritis */
  --gs-info: #075db8;
  --gs-info-soft: #e9f3fe;
  --gs-info-text: #064786;
  --gs-info-dark: #6cb5fa;

  /* OFFICIAL RESULT: Pengesahan hasil pertandingan resmi wasit/commissioner (Netral) */
  --gs-official: #294e78;
  --gs-official-soft: #eaf0f6;
  --gs-official-text: #1d3b5c;
  --gs-official-dark: #9ec5ed;

  /* --- 6. Live State Guard (Match Live vs Stream Live) --- */
  /* MATCH LIVE: Pertandingan sedang berjalan di lapangan */
  --gs-live: #c51645;
  --gs-live-soft: #fde8ee;
  --gs-live-text: #981035;
  --gs-live-dark: #ff5b87;
  --gs-match-live: #c51645;
  --gs-match-live-soft: #fde8ee;
  --gs-match-live-text: #981035;

  /* STREAM LIVE: Siaran video/audio aktif (terpisah dari status laga) */
  --gs-stream-live: #159bb8;
  --gs-stream-live-soft: #e0f7fa;
  --gs-stream-live-text: #006064;
  --gs-stream-offline: #526579;
  --gs-stream-offline-soft: #f1f5f9;

  /* --- 7. Sport Domain Colors (Disiplin Lapangan & Tim) --- */
  /* Kartu kuning wasit di lapangan (BUKAN system warning) */
  --gs-sport-card-yellow: #facc15;
  --gs-sport-card-yellow-bg: #fef9c3;
  --gs-sport-card-yellow-border: #ca8a04;
  --gs-sport-card-yellow-text: #713f12;

  /* Kartu merah wasit di lapangan (BUKAN system error) */
  --gs-sport-card-red: #ef4444;
  --gs-sport-card-red-bg: #fee2e2;
  --gs-sport-card-red-border: #b91c1c;
  --gs-sport-card-red-text: #ffffff;

  /* Warna tim (Home & Away fallback) */
  --gs-team-home-fallback: #0b6fd3;
  --gs-team-away-fallback: #e97817;

  /* --- 8. Typography Scale & Families --- */
  --gs-font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gs-font-score: "Barlow Condensed", "Arial Narrow", "Trebuchet MS", sans-serif;
  --gs-font-mono: "IBM Plex Mono", Consolas, "Liberation Mono", Menlo, monospace;

  --gs-text-xs: 0.75rem;   /* 12px */
  --gs-text-sm: 0.875rem;  /* 14px */
  --gs-text-base: 1rem;    /* 16px */
  --gs-text-lg: 1.125rem;  /* 18px */
  --gs-text-xl: 1.25rem;   /* 20px */
  --gs-text-2xl: 1.5rem;   /* 24px */
  --gs-text-3xl: 2rem;     /* 32px */
  --gs-score-xl: 4.5rem;   /* 72px (Scoreboard) */

  /* --- 9. Spacing Grid (4px Base) --- */
  --gs-space-1: 0.25rem; /* 4px */
  --gs-space-2: 0.5rem;  /* 8px */
  --gs-space-3: 0.75rem; /* 12px */
  --gs-space-4: 1rem;    /* 16px */
  --gs-space-5: 1.25rem; /* 20px */
  --gs-space-6: 1.5rem;  /* 24px */
  --gs-space-8: 2rem;    /* 32px */
  --gs-space-12: 3rem;   /* 48px */

  /* --- 10. Radius --- */
  --gs-radius-xs: 4px;     /* Tag kecil, sub-tabel */
  --gs-radius-sm: 8px;     /* Input fields, select, tombol compact */
  --gs-radius-md: 12px;    /* Tombol standar, dropdown menu */
  --gs-radius-lg: 16px;    /* Kartu utama, dialog modal */
  --gs-radius-full: 9999px; /* Status pill / avatar bulat */

  /* --- 11. Surfaces, Borders & Focus --- */
  --gs-surface-page: var(--gs-neutral-50);
  --gs-surface-card: var(--gs-white);
  --gs-surface-inverse: var(--gs-navy-950);
  --gs-surface-raised-dark: var(--gs-navy-900);

  --gs-text-primary: var(--gs-neutral-900);
  --gs-text-secondary: var(--gs-neutral-600);
  --gs-text-inverse: var(--gs-white);

  --gs-border-default: var(--gs-neutral-200);
  --gs-action-primary: var(--gs-blue-600);
  --gs-action-primary-hover: var(--gs-blue-700);
  --gs-focus-ring: var(--gs-blue-500);

  /* --- 12. Touch Targets & Motion --- */
  --gs-touch-target-min: 44px;
  --gs-touch-target-operator: 56px;

  --gs-transition-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
  --gs-transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --gs-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  /* --- 13. Backward-Compatibility Aliases (Legacy Preserved) --- */
  --gs-primary: var(--gs-blue-600);
  --gs-primary-hover: var(--gs-blue-700);
  --gs-primary-light: #dbeafe;
  --gs-primary-dark: #075db8;
  --gs-accent: var(--gs-cyan-600);
  --gs-accent-hover: #0891b2;
  --gs-accent-light: #cffafe;
  --gs-success-light: var(--gs-success-soft);
  --gs-warning-light: var(--gs-warning-soft);
  --gs-danger: var(--gs-error);
  --gs-danger-light: var(--gs-error-soft);
  --gs-bg-dark: var(--gs-navy-950);
  --gs-surface-dark: var(--gs-navy-900);
  --gs-surface-hover: var(--gs-navy-800);
  --gs-border-dark: #243e56;
  --gs-border-light: var(--gs-neutral-200);
  --gs-bg-light: var(--gs-neutral-50);
  --gs-surface-white: var(--gs-white);
  --gs-text-main: var(--gs-neutral-900);
  --gs-text-muted: var(--gs-neutral-600);
  --gs-text-light: var(--gs-neutral-300);
  --gs-font-sans: var(--gs-font-ui);

  /* Minimalist authentication palette (Preserved) */
  --gs-auth-canvas: #f7f6f3;
  --gs-auth-surface: #fbfbfa;
  --gs-auth-ink: #2f3437;
  --gs-auth-muted: #787774;
  --gs-auth-border: #eaeaea;

  /* --- 14. Bootstrap 5 Bridge Mapping (Safe Coexistence) --- */
  --bs-primary: var(--gs-blue-600);
  --bs-primary-rgb: 11, 111, 211;
  --bs-success: var(--gs-success);
  --bs-success-rgb: 20, 122, 85;
  --bs-warning: var(--gs-warning);
  --bs-warning-rgb: 163, 92, 0;
  --bs-danger: var(--gs-error);
  --bs-danger-rgb: 180, 35, 24;
  --bs-info: var(--gs-info);
  --bs-info-rgb: 7, 93, 184;
  --bs-body-font-family: var(--gs-font-ui);
}

/* Base Reset & Setup */
body {
  font-family: var(--gs-font-sans);
  background-color: var(--gs-bg-light);
  color: var(--gs-text-main);
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Dark Theme Variant (Console & Broadcast Contexts) */
[data-theme="dark"],
.theme-dark,
.match-console-shell {
  --gs-surface-page: var(--gs-navy-950);
  --gs-surface-card: var(--gs-navy-900);
  --gs-text-primary: #f5f8fb;
  --gs-text-secondary: #b8c6d3;
  --gs-border-default: #243e56;
  --gs-action-primary: #2589e8;
  --gs-action-primary-hover: #3b95e8;
  --gs-focus-ring: #6cb5fa;
  background-color: var(--gs-bg-dark);
  color: #f1f5f9;
}

[data-theme="dark"] .card,
.theme-dark .card,
.match-console-shell .card {
  background-color: var(--gs-surface-dark);
  border-color: var(--gs-border-dark);
  color: #f1f5f9;
}

/* Branding */
.gs-brand-text {
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gs-badge-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--gs-radius-md);
  background: linear-gradient(135deg, var(--gs-primary), var(--gs-accent));
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Modern Clean Authentication UI/UX */
body.gs-auth-page {
  min-height: 100svh;
  padding: 36px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  background-image: 
    radial-gradient(at 0% 0%, rgba(2, 132, 199, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.07) 0px, transparent 50%);
  color: #0f172a;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.gs-auth-page-demo {
  align-items: flex-start;
}

.gs-auth-shell {
  width: min(100%, 480px);
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 20px 45px -15px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.02);
}

.gs-auth-shell-wide {
  width: min(100%, 1080px);
}

.gs-auth-brandbar,
.gs-auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
}

.gs-auth-brandbar {
  background: #fbfcfd;
  border-bottom: 1px solid #f1f5f9;
}

.gs-auth-brand,
.gs-auth-backlink {
  color: inherit;
  text-decoration: none;
}

.gs-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.gs-auth-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.gs-auth-wordmark strong {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gs-auth-wordmark span {
  margin-top: 2px;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.gs-auth-environment,
.gs-demo-note {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f0fdf4;
  color: #15803d;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 4px 10px;
}

.gs-auth-content {
  padding: 28px 32px;
}

.gs-login-layout-demo {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
  gap: 36px;
}

.gs-login-layout-demo .gs-login-panel {
  padding-right: 32px;
  border-right: 1px solid #f1f5f9;
}

.gs-auth-eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 10px;
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gs-auth-title,
.gs-demo-heading h2 {
  margin: 0;
  color: #0f172a;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.gs-auth-title {
  max-width: 340px;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  line-height: 1.1;
}

.gs-auth-intro,
.gs-demo-lead {
  color: #64748b;
  line-height: 1.55;
}

.gs-auth-intro {
  margin: 10px 0 24px;
  font-size: 0.9rem;
}

.gs-login-form {
  max-width: 440px;
}

.gs-auth-field + .gs-auth-field {
  margin-top: 18px;
}

.gs-auth-field label {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
}

.gs-auth-field .form-control {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.92rem;
  transition: all 180ms ease;
}

.gs-auth-field .form-control::placeholder {
  color: #94a3b8;
}

.gs-auth-field .form-control:focus {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
  outline: none;
}

/* Password with eye toggle */
.gs-password-wrapper {
  position: relative;
}

.gs-password-wrapper .form-control {
  padding-right: 44px;
}

.gs-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}

.gs-password-toggle:hover {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
}

.gs-auth-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 20px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.gs-auth-submit:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
  transform: translateY(-1px);
  color: #ffffff;
}

.gs-auth-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.gs-auth-submit:focus-visible,
.gs-demo-account:focus-visible,
.gs-auth-backlink:focus-visible,
.gs-auth-brand:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 3px;
}

.gs-demo-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.gs-demo-heading h2 {
  font-size: 1.4rem;
  line-height: 1.2;
}

.gs-demo-lead {
  max-width: 520px;
  margin: 6px 0 16px;
  font-size: 0.82rem;
}

.gs-demo-account-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 10px;
}

.gs-demo-account-list form {
  min-width: 0;
}

.gs-demo-account {
  width: 100%;
  min-height: 64px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  transition: all 180ms ease;
  position: relative;
  cursor: pointer;
}

.gs-demo-account:hover {
  border-color: #38bdf8;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -4px rgba(2, 132, 199, 0.12);
}

.gs-demo-account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.gs-demo-account-title,
.gs-demo-role,
.gs-demo-credentials,
.gs-demo-enter {
  display: block;
}

.gs-demo-account-title {
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

.gs-demo-role {
  margin-top: 3px;
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 4px;
}

/* Dynamic role tags */
.role-badge-super-admin {
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
}

.role-badge-organizer {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
}

.role-badge-team-manager {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.role-badge-player {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.gs-demo-enter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  transition: color 150ms ease, transform 150ms ease;
}

.gs-demo-account:hover .gs-demo-enter {
  color: #0284c7;
  transform: translateX(2px);
}

.gs-demo-credentials {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  color: #64748b;
  font-size: 0.7rem;
}

.gs-demo-credentials > span {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.gs-demo-credentials b {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.gs-demo-credentials code {
  min-width: 0;
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.gs-auth-footer {
  justify-content: center;
  background: #fbfcfd;
  border-top: 1px solid #f1f5f9;
}

.gs-auth-backlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gs-auth-muted);
  font-size: 0.72rem;
}

.gs-auth-backlink:hover {
  color: #111111;
}

@media (min-width: 680px) and (max-width: 859.98px) {
  .gs-auth-shell-wide {
    width: min(100%, 720px);
  }

  .gs-demo-account-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gs-demo-credentials {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 859.98px) {
  .gs-login-layout-demo {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gs-login-layout-demo .gs-login-panel {
    padding: 0 0 32px;
    border-right: 0;
    border-bottom: 1px solid #f1f5f9;
  }
}

@media (max-width: 575.98px) {
  .gs-demo-account-list {
    grid-template-columns: 1fr;
  }

  .gs-demo-credentials {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 479.98px) {
  body.gs-auth-page {
    padding: 16px 12px;
  }

  .gs-auth-shell {
    border-radius: 14px;
  }

  .gs-auth-brandbar,
  .gs-auth-footer {
    padding: 14px 18px;
  }

  .gs-auth-content {
    padding: 24px 18px;
  }

  .gs-auth-title {
    font-size: 2.1rem;
  }

  .gs-demo-heading {
    display: block;
  }

  .gs-demo-note {
    margin-top: 10px;
  }

  .gs-demo-credentials {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* Sports App Components */
.gs-card {
  background: #ffffff;
  border: 1px solid var(--gs-border-light);
  border-radius: var(--gs-radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: var(--gs-transition);
  position: relative;
}

.gs-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

.theme-dark .gs-card {
  background: var(--gs-surface-card);
  border-color: var(--gs-border-dark);
}

/* Status Badges */
.gs-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-family: var(--gs-font-ui);
  font-size: var(--gs-text-xs);
  font-weight: 600;
  border-radius: var(--gs-radius-full);
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.35;
  border: 1px solid transparent;
}

/* Match Live: khusus pertandingan berjalan di lapangan */
.gs-badge-live,
.gs-match-live {
  background-color: var(--gs-live-soft);
  color: var(--gs-live-text);
  border-color: rgba(197, 22, 69, 0.25);
}

/* Stream Live: khusus siaran video aktif (terpisah dari status laga) */
.gs-badge-stream-live,
.gs-stream-live {
  background-color: var(--gs-stream-live-soft);
  color: var(--gs-stream-live-text);
  border-color: rgba(21, 155, 184, 0.3);
}

.gs-badge-stream-offline,
.gs-stream-offline {
  background-color: var(--gs-stream-offline-soft);
  color: var(--gs-stream-offline);
  border-color: var(--gs-neutral-200);
}

/* Official Result: pengesahan hasil wasit/commissioner (Netral, bukan success) */
.gs-badge-official {
  background-color: var(--gs-official-soft);
  color: var(--gs-official-text);
  border-color: rgba(41, 78, 120, 0.25);
  font-weight: 700;
}

.gs-border-official {
  border-color: var(--gs-official) !important;
}

.gs-bg-official-soft {
  background-color: var(--gs-official-soft) !important;
}

.gs-text-official {
  color: var(--gs-official-text) !important;
}

/* System State Badges */
.gs-badge-scheduled {
  background-color: var(--gs-info-soft);
  color: var(--gs-info-text);
  border-color: rgba(7, 93, 184, 0.2);
}

.gs-badge-finished {
  background-color: var(--gs-neutral-100);
  color: var(--gs-text-secondary);
  border-color: var(--gs-neutral-200);
}

.gs-badge-active {
  background-color: var(--gs-success-soft);
  color: var(--gs-success-text);
  border-color: rgba(20, 122, 85, 0.2);
}

.gs-badge-success {
  background-color: var(--gs-success-soft);
  color: var(--gs-success-text);
  border-color: rgba(20, 122, 85, 0.2);
}

.gs-badge-warning {
  background-color: var(--gs-warning-soft);
  color: var(--gs-warning-text);
  border-color: rgba(163, 92, 0, 0.2);
}

.gs-badge-error {
  background-color: var(--gs-error-soft);
  color: var(--gs-error-text);
  border-color: rgba(180, 35, 24, 0.2);
}

.gs-badge-info {
  background-color: var(--gs-info-soft);
  color: var(--gs-info-text);
  border-color: rgba(7, 93, 184, 0.2);
}

/* Streaming Provider Badges */
.gs-badge-provider-camera {
  background: linear-gradient(135deg, var(--gs-live), var(--gs-error));
  color: var(--gs-white);
}

.gs-badge-provider-youtube {
  background-color: #ef4444;
  color: var(--gs-white);
}

.gs-badge-provider-facebook {
  background-color: #1877f2;
  color: var(--gs-white);
}

.gs-badge-provider-twitch {
  background-color: #9146ff;
  color: var(--gs-white);
}

/* Indicator Dots */
.gs-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gs-dot-live {
  background-color: var(--gs-live);
  animation: gsLivePulse 1.5s infinite;
}

.gs-dot-stream {
  background-color: var(--gs-stream-live);
  animation: gsStreamPulse 1.5s infinite;
}

@keyframes gsLivePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(197, 22, 69, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(197, 22, 69, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(197, 22, 69, 0); }
}

@keyframes gsStreamPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(21, 155, 184, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(21, 155, 184, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(21, 155, 184, 0); }
}

/* Live Blink Indicator (Legacy compatibility) */
.gs-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gs-live);
  animation: gsPulse 1.5s infinite;
}

@keyframes gsPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(197, 22, 69, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(197, 22, 69, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(197, 22, 69, 0); }
}

/* --- Sport Domain Disciplinary Cards (Referees) --- */
/* Disciplinary Yellow Card (BUKAN System Warning) */
.gs-card-yellow {
  display: inline-block;
  width: 14px;
  height: 18px;
  background-color: var(--gs-sport-card-yellow);
  border: 1px solid var(--gs-sport-card-yellow-border);
  border-radius: 2px;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Disciplinary Red Card (BUKAN System Error) */
.gs-card-red {
  display: inline-block;
  width: 14px;
  height: 18px;
  background-color: var(--gs-sport-card-red);
  border: 1px solid var(--gs-sport-card-red-border);
  border-radius: 2px;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.gs-badge-card-yellow {
  background-color: var(--gs-sport-card-yellow-bg);
  color: var(--gs-sport-card-yellow-text);
  border-color: var(--gs-sport-card-yellow-border);
}

.gs-badge-card-red {
  background-color: var(--gs-sport-card-red-bg);
  color: var(--gs-sport-card-red);
  border-color: var(--gs-sport-card-red-border);
}

/* --- GapScore Standard Component Buttons --- */
.gs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--gs-touch-target-min);
  padding: 10px 18px;
  font-family: var(--gs-font-ui);
  font-size: var(--gs-text-sm);
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--gs-radius-md);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: var(--gs-transition-base);
  user-select: none;
  -webkit-user-select: none;
}

.gs-btn:focus-visible {
  outline: 3px solid var(--gs-focus-ring);
  outline-offset: 2px;
}

.gs-btn-primary {
  background-color: var(--gs-action-primary);
  border-color: var(--gs-action-primary);
  color: var(--gs-white) !important;
}

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

.gs-btn-secondary {
  background-color: var(--gs-white);
  border-color: var(--gs-border-default);
  color: var(--gs-text-primary) !important;
}

.gs-btn-secondary:hover {
  background-color: var(--gs-neutral-50);
  border-color: var(--gs-neutral-300);
  color: var(--gs-text-primary) !important;
}

.gs-btn-danger {
  background-color: var(--gs-error);
  border-color: var(--gs-error);
  color: var(--gs-white) !important;
}

.gs-btn-danger:hover {
  background-color: #991b1b;
  border-color: #991b1b;
  color: var(--gs-white) !important;
}

/* Operator Console Touch Target Action Button (56px - 64px) */
.gs-btn-operator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--gs-touch-target-operator);
  padding: 12px 20px;
  font-family: var(--gs-font-ui);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--gs-radius-md);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--gs-transition-fast), background-color var(--gs-transition-fast);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.gs-btn-operator:active {
  transform: scale(0.97);
}

/* --- Typography Utilities --- */
.gs-score-num {
  font-family: var(--gs-font-score);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
}

.gs-timer-display {
  font-family: var(--gs-font-score);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.gs-tech-id {
  font-family: var(--gs-font-mono);
  font-size: 0.85em;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.gs-tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* --- Accessibility Focus Ring & Reduced Motion --- */
:focus-visible {
  outline: 3px solid var(--gs-focus-ring);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Touch-Friendly Form & Inputs */
.form-control, .form-select {
  border-radius: var(--gs-radius-md);
  border: 1px solid var(--gs-border-light);
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: var(--gs-transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--gs-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* -------------------------------------------------------------------------
   Touch-Friendly & Standardized Button System (Admin & Management UI)
   Unified shape, padding hierarchy, icon alignment, and micro-interactions
   ------------------------------------------------------------------------- */
.btn {
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  vertical-align: middle;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

/* Button Sizing Hierarchy */
.btn-sm,
.btn.btn-sm {
  min-height: 30px !important;
  padding: 4px 12px !important;
  font-size: 0.8125rem !important;
  border-radius: 6px !important;
  gap: 5px !important;
  font-weight: 500 !important;
}

.btn-lg,
.btn.btn-lg {
  min-height: 46px !important;
  padding: 12px 22px !important;
  font-size: 0.95rem !important;
  border-radius: 10px !important;
  gap: 8px !important;
}

/* Shape Variations */
.btn.rounded-pill,
.btn-pill {
  border-radius: 9999px !important;
}

.btn.rounded-3 {
  border-radius: 10px !important;
}

/* Standardized Icon Action Button (Square) */
.btn-icon,
.btn.btn-icon {
  width: 36px;
  height: 36px;
  min-height: 36px !important;
  min-width: 36px;
  padding: 0 !important;
  border-radius: 8px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
}

.btn-icon.btn-sm,
.btn-sm.btn-icon {
  width: 28px;
  height: 28px;
  min-height: 28px !important;
  min-width: 28px;
  padding: 0 !important;
  border-radius: 6px !important;
}

/* Standardized Button Icons (SVG, i, img, emoji) */
.btn svg,
.btn i,
.btn .icon,
.btn img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  pointer-events: none;
  vertical-align: middle;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

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

.btn-sm svg {
  width: 14px !important;
  height: 14px !important;
  stroke-width: 2;
}

.btn-lg svg {
  width: 18px !important;
  height: 18px !important;
}

/* Button Micro-Interactions */
.btn:hover:not(:disabled) svg {
  transform: translateY(-0.5px);
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

/* Standardized Button Variants */
.btn-primary {
  background: var(--gs-action-primary);
  border-color: var(--gs-action-primary);
  color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  background: var(--gs-action-primary-hover);
  border-color: var(--gs-action-primary-hover);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(11, 111, 211, 0.25);
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--gs-action-primary);
  border-color: #cbd5e1;
  background: #ffffff;
}

.btn-outline-primary:hover {
  background: #eff6ff;
  border-color: var(--gs-action-primary);
  color: var(--gs-action-primary-hover);
  transform: translateY(-1px);
}

.btn-light {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #334155;
}

.btn-light:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn-outline-secondary {
  border-color: #cbd5e1;
  color: #475569;
  background: #ffffff;
}

.btn-outline-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

/* -------------------------------------------------------------------------
   Unified Typography for Secondary & Small Text in Management Pages
   Ensures consistent font size, line height, and color across all modules
   ------------------------------------------------------------------------- */
small,
.small {
  font-size: 0.8125rem !important; /* 13px */
  line-height: 1.45 !important;
  color: #64748b;
  font-weight: 400;
}

.text-muted {
  color: #64748b !important;
}

/* Micro-metadata & stat labels */
.text-xs,
.stat-label,
small.text-uppercase {
  font-size: 0.70rem !important;
  letter-spacing: 0.05em !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  color: #64748b;
}

/* Card & Section Subtitles in Management */
.card-subtitle,
.gs-page-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.45;
}

/* Form Helper Text */
.form-text {
  font-size: 0.80rem;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.4;
}

/* Table Sub-labels */
.table td small:not(.badge),
.table td .small:not(.badge) {
  display: block;
  font-size: 0.76rem !important;
  color: #475569;
  margin-top: 2px;
  line-height: 1.35;
}

/* Management Badges Consistency & WCAG AA Contrast */
.badge {
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge.rounded-pill {
  padding: 4px 10px;
  border-radius: 9999px !important;
}

/* Enforce High Contrast on Solid Badges */
.badge.bg-success,
.badge.bg-primary,
.badge.bg-danger,
.badge.bg-dark,
.badge.bg-secondary {
  color: #ffffff !important;
}

.badge.bg-warning,
.badge.bg-light {
  color: #0f172a !important;
}

/* Accessible High-Contrast Tinted / Soft Badges */
.badge.bg-primary.bg-opacity-10,
.badge.bg-primary-subtle {
  background-color: var(--gs-info-soft) !important;
  color: var(--gs-info-text) !important;
  border: 1px solid rgba(7, 93, 184, 0.25) !important;
}

.badge.bg-success.bg-opacity-10,
.badge.bg-success-subtle {
  background-color: var(--gs-success-soft) !important;
  color: var(--gs-success-text) !important;
  border: 1px solid rgba(20, 122, 85, 0.25) !important;
}

.badge.bg-warning.bg-opacity-10,
.badge.bg-warning-subtle {
  background-color: var(--gs-warning-soft) !important;
  color: var(--gs-warning-text) !important;
  border: 1px solid rgba(163, 92, 0, 0.25) !important;
}

.badge.bg-danger.bg-opacity-10,
.badge.bg-danger-subtle {
  background-color: var(--gs-error-soft) !important;
  color: var(--gs-error-text) !important;
  border: 1px solid rgba(180, 35, 24, 0.25) !important;
}

.badge.bg-info.bg-opacity-10,
.badge.bg-info-subtle {
  background-color: var(--gs-info-soft) !important;
  color: var(--gs-info-text) !important;
  border: 1px solid rgba(7, 93, 184, 0.25) !important;
}

/* Admin Shell Container: Fixed Viewport Architecture */
html:has(.gs-admin-body),
body.gs-admin-body {
  height: 100%;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden !important;
}

.gs-admin-wrapper {
  display: flex;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.gs-sidebar {
  width: 260px;
  height: 100%;
  max-height: 100%;
  background-color: #0C2238; /* brand.navy.900 Match Navy */
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid #15334D; /* brand.navy.800 Panel Navy */
  transition: margin-left 0.28s cubic-bezier(0.16, 1, 0.3, 1), var(--gs-transition);
  position: relative;
  top: auto;
  z-index: 1020;
  overflow: hidden;
}

@media (min-width: 992px) {
  .gs-admin-wrapper.sidebar-collapsed .gs-sidebar {
    margin-left: -260px;
  }
}

.gs-sidebar-header {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.gs-sidebar-menu {
  padding: 16px 12px;
  list-style: none;
  margin: 0;
  flex: 1 1 0px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.gs-sidebar-menu::-webkit-scrollbar {
  width: 5px;
}

.gs-sidebar-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.gs-sidebar-footer {
  background-color: #0C2238;
  border-top: 1px solid #15334D;
  margin-top: auto;
  flex-shrink: 0;
  z-index: 10;
  position: relative;
}

.gs-sidebar-heading {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 14px 12px 6px;
}

.gs-sidebar a.text-secondary {
  color: #94a3b8 !important;
}

.gs-sidebar a.text-secondary:hover {
  color: #ffffff !important;
}

.gs-sidebar small.text-secondary {
  color: #64748b !important;
}

.gs-menu-item {
  margin-bottom: 3px;
}

.gs-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  color: #94a3b8;
  text-decoration: none;
  border-radius: var(--gs-radius-md);
  font-weight: 500;
  font-size: 0.86rem;
  transition: all 0.15s ease-in-out;
  border-left: 3px solid transparent;
}

.gs-menu-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
  border-left-color: rgba(255, 255, 255, 0.25);
}

.gs-menu-link.active {
  color: #ffffff;
  background-color: #0B6FD3; /* brand.blue.600 Signal Blue */
  border-left-color: #7CC5E8; /* accent.sky */
  box-shadow: 0 2px 8px rgba(11, 111, 211, 0.35);
  font-weight: 600;
}

.gs-sub-menu-item {
  margin-bottom: 2px;
}

.gs-sub-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

.gs-sub-menu-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
}

.gs-sub-menu-link.active {
  color: #ffffff !important;
  background-color: rgba(11, 111, 211, 0.3) !important;
  font-weight: 600;
}

.gs-main-content {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.gs-topbar {
  height: 64px;
  min-height: 64px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--gs-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.theme-dark .gs-topbar {
  background-color: var(--gs-surface-dark);
  border-bottom-color: var(--gs-border-dark);
}

.gs-content-body {
  padding: 24px;
  flex: 1 0 auto;
}

/* User Avatar & Profile */
.gs-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gs-primary), var(--gs-accent));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.gs-sidebar-backdrop {
  display: none;
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
  .gs-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100%;
    height: 100dvh;
    max-height: 100%;
    max-height: 100dvh;
    width: min(290px, 84vw);
    max-width: 320px;
    z-index: 1060;
    transform: translateX(-105%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.55);
    visibility: hidden;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  .gs-sidebar.show {
    transform: translateX(0);
    visibility: visible;
  }

  .gs-sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 15, 30, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1055;
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .gs-sidebar-backdrop.show {
    display: block;
    opacity: 1;
  }

  body.sidebar-open {
    overflow: hidden !important;
  }

  .gs-sidebar-footer {
    flex-shrink: 0;
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 1rem));
  }
  
  .gs-content-body {
    padding: 16px;
    padding-bottom: 84px;
  }
  
  .gs-topbar {
    padding: 0 16px;
  }
}

/* Mobile Bottom Navigation (for Operators / Mobile Users) */
.gs-bottom-nav {
  display: none;
}

@media (max-width: 767.98px) {
  .gs-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #0f172a;
    border-top: 1px solid var(--gs-border-dark);
    z-index: 1040;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
  }
  
  .gs-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    gap: 3px;
    flex: 1;
    height: 100%;
  }
  
  .gs-bottom-nav-item.active {
    color: #38bdf8;
  }
  
  body.has-bottom-nav {
    padding-bottom: 64px;
  }
}

/* Utilities */
.gs-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.theme-dark .gs-glass {
  background: rgba(30, 41, 59, 0.8);
}

/* Dropdown Engine Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  z-index: 1050;
  display: none;
  min-width: 14rem;
  padding: 6px 0;
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: #1e293b;
  text-align: left;
  list-style: none;
  background-color: #ffffff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--gs-radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.dropdown-menu.show {
  display: block !important;
}

.dropdown-menu-end {
  right: 0 !important;
  left: auto !important;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 16px;
  clear: both;
  font-weight: 500;
  color: #334155;
  text-align: inherit;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  cursor: pointer;
  transition: var(--gs-transition);
}

.dropdown-item:hover, .dropdown-item:focus {
  color: #0f172a;
  background-color: #f1f5f9;
}

.dropdown-item.active, .dropdown-item:active {
  color: #ffffff;
  text-decoration: none;
  background-color: #2563eb;
}

/* ============================================================
   Public Landing Page
   ============================================================ */

/* Page shell: sticky footer via min-height + flex on body */
.gs-public-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.gs-public-page .container {
  flex-shrink: 0;
}

/* Brand badge for public header */
.gs-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--gs-radius-md);
  background: linear-gradient(135deg, var(--gs-primary), var(--gs-accent));
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Hero section */
.gs-hero {
  background: linear-gradient(135deg, var(--gs-primary-dark) 0%, var(--gs-primary) 55%, var(--gs-accent) 100%);
  position: relative;
  overflow: hidden;
}

.gs-hero .display-4 {
  letter-spacing: -0.02em;
}

.gs-hero .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Micro-interaction: search focus */
.gs-hero .form-control:focus {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* Inside-hero featured card */
.gs-hero .gs-card {
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.35);
}

/* Live pulsing dot inside featured score card (red on white bg) */
.gs-hero .gs-pulse {
  background-color: #ef4444;
}

/* Mobile bottom nav for public header */
.gs-public-header .nav-link {
  min-height: 44px;
  align-items: center;
}

.gs-public-header .nav-link span {
  font-size: 0.72rem;
}

.gs-public-header .nav-link:hover {
  color: var(--gs-primary) !important;
}

/* Touch target minimums for public CTAs & nav links */
.gs-public-page .btn,
.gs-public-page .nav-link {
  min-height: 44px;
}

/* Secondary section spacing scale */
.py-6 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-7 { padding-top: 4.5rem; padding-bottom: 4.5rem; }

/* Small helper text */
.fs-7 { font-size: 0.85rem; }
.ls-1 { letter-spacing: 0.08em; }

/* PWA install banner: push to bottom area above footer */
.gs-pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
}

.gs-app-mockup {
  border: 1px solid var(--gs-border-dark);
}

/* Responsive tweaks for small screens */
@media (max-width: 575.98px) {
  .gs-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .gs-hero .display-4 {
    font-size: 2.1rem;
  }

  .gs-hero .input-group {
    flex-wrap: nowrap;
  }
}

/* ==========================================================================
   GapScore Data Tables & Admin Modal UI System
   ========================================================================== */
.gs-table-scroll-container {
  width: 100%;
  position: relative;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 992px) {
  .gs-table-scroll-container {
    max-height: calc(100vh - 290px);
    min-height: 400px;
  }
}

.gs-table-scroll-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.gs-table-scroll-container::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.gs-table-scroll-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
.gs-table-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.gs-inquiry-table thead th {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
  box-shadow: 0 1px 0 #e2e8f0;
}

.gs-inquiry-table thead th.col-actions {
  position: sticky;
  right: 0;
  z-index: 25;
  background: #f8fafc;
  box-shadow: -6px 0 12px rgba(15, 23, 42, 0.05);
}
.gs-inquiry-table tbody td.col-actions {
  position: sticky;
  right: 0;
  z-index: 10;
  background: #ffffff;
  box-shadow: -6px 0 12px rgba(15, 23, 42, 0.05);
}
.gs-inquiry-table tbody tr:hover td.col-actions {
  background: #f8fafc;
}
.gs-inquiry-table tbody tr.table-danger td.col-actions {
  background: #fef2f2;
}

.gs-info-tile {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  height: 100%;
  transition: all 0.2s ease;
}
.gs-info-tile:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}
.gs-info-tile-label {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gs-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff !important;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gs-btn-wa:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.4);
}
.gs-price-hero {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0284c7;
  letter-spacing: -0.02em;
  font-family: 'Inter', monospace;
}
.gs-notes-card {
  background: #ffffff;
  border-left: 4px solid #0284c7;
  border-radius: 4px 10px 10px 4px;
  padding: 14px 18px;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.6;
  border-top: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.gs-admin-status-box {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

