/**
 * ==============================================================================
 * GIA NGUYEN HOME - UNIFIED GLOBAL DESIGN SYSTEM & COMPONENT LIBRARY
 * ==============================================================================
 * Single Source of Truth for Design Tokens, Typography, Container, Spacing,
 * and Standardized UI Components across all 11+ pages.
 * ==============================================================================
 */
/* Note: Google Fonts Inter is loaded via <link> with display=swap in base layout */

/* ==============================================================================
   1. DESIGN TOKENS & CSS VARIABLES
   ============================================================================== */
:root {
  /* Brand Color Palette */
  --primary: #c5a880;                   /* Gia Nguyen Luxury Gold */
  --primary-hover: #b5956a;             /* Deeper Gold */
  --primary-light: rgba(197, 168, 128, 0.15);
  --primary-glow: rgba(197, 168, 128, 0.35);
  --secondary: #0b1320;                 /* Architectural Deep Navy */
  --secondary-light: #111c2e;           /* Elevated Navy */
  --accent: #d4b58a;                    /* Light Gold Accent */
  --accent-gold: #c5a880;

  /* Text Colors */
  --text-primary: #ffffff;              /* Crisp White */
  --text-secondary: #94a3b8;            /* Slate 400 for subtext */
  --text-muted: #64748b;                /* Slate 500 for meta/caption */
  --text-gold: #c5a880;                 /* Gold text */
  --text-dark: #070d17;                 /* Dark text on light components */

  /* Background Colors */
  --background: #070d17;                /* Master Dark Canvas */
  --background-secondary: #0c1524;      /* Secondary Section / Card */
  --background-card: #0e1726;           /* Elevated Card */
  --background-card-hover: #132034;     /* Card Hover State */
  --background-glass: rgba(14, 23, 38, 0.75);

  /* Borders */
  --border: rgba(255, 255, 255, 0.1);    /* Standard clean border */
  --border-light: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(197, 168, 128, 0.35);
  --border-gold-strong: #c5a880;

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Box Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 30px rgba(197, 168, 128, 0.2);

  /* Global Container System */
  --container-width: 1280px;
  --container-padding-desktop: 20px;
  --container-padding-tablet: 24px;
  --container-padding-mobile: 16px;

  /* Spacing Scale */
  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-section-desktop: 76px;        /* Recommended 72px–80px */
  --space-section-tablet: 60px;         /* Recommended 56px–64px */
  --space-section-mobile: 44px;         /* Recommended 40px–48px */
  --section-spacing: var(--space-section-desktop);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Core Brand Utility Classes */
.bg-brand-dark {
  background-color: #070d17 !important;
}
.bg-brand-navy {
  background-color: #0b1320 !important;
}
.text-brand-gold {
  color: #c5a880 !important;
}
.text-brand-goldDark {
  color: #9a7b56 !important;
}
.text-brand-dark {
  color: #070d17 !important;
}
.bg-brand-gold {
  background-color: #c5a880 !important;
}
.border-brand-gold {
  border-color: #c5a880 !important;
}

/* ==============================================================================
   2. GLOBAL RESET & BASE TYPOGRAPHY (Inter)
   ============================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  box-sizing: border-box;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

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

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--background);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* Selection */
::selection {
  background: var(--primary);
  color: var(--secondary);
}

/* Typography Hierarchy */
h1, .gn-h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem); /* 32px - 48px */
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: inherit;
  margin-top: 0;
  margin-bottom: var(--space-md);
}

h2, .gn-h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem); /* 24px - 36px */
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: inherit;
  margin-top: 0;
  margin-bottom: var(--space-md);
}

h3, .gn-h3 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem); /* 20px - 24px */
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: inherit;
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

h4, .gn-h4 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.25rem); /* 16px - 20px */
  font-weight: 700;
  line-height: 1.4;
  color: inherit;
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

p, .gn-body {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem; /* ~15.2px */
  line-height: 1.7;
  color: var(--text-secondary);
  margin-top: 0;
  margin-bottom: var(--space-md);
}

.gn-lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #e2e8f0;
  font-weight: 500;
}

small, .gn-small {
  font-size: 0.775rem; /* ~12.4px */
  line-height: 1.5;
  color: var(--text-muted);
}

.gn-caption {
  font-size: 0.7rem; /* ~11.2px */
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #fcefdc 0%, #d4b58a 45%, #aa8149 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==============================================================================
   3. GLOBAL CONTAINER SYSTEM (1280px Grid)
   ============================================================================== */
.gn-container,
.site-container,
.max-w-7xl {
  width: 100% !important;
  max-width: var(--container-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--container-padding-desktop) !important;
  padding-right: var(--container-padding-desktop) !important;
  box-sizing: border-box !important;
}

@media (max-width: 991px) {
  .gn-container,
  .site-container,
  .max-w-7xl {
    padding-left: var(--container-padding-tablet) !important;
    padding-right: var(--container-padding-tablet) !important;
  }
}

@media (max-width: 767px) {
  .gn-container,
  .site-container,
  .max-w-7xl {
    padding-left: var(--container-padding-mobile) !important;
    padding-right: var(--container-padding-mobile) !important;
  }
}

/* Global Section Spacing */
.gn-section {
  padding-top: var(--space-section-desktop);
  padding-bottom: var(--space-section-desktop);
  position: relative;
  width: 100%;
}

@media (max-width: 991px) {
  .gn-section {
    padding-top: var(--space-section-tablet);
    padding-bottom: var(--space-section-tablet);
  }
}

@media (max-width: 767px) {
  .gn-section {
    padding-top: var(--space-section-mobile);
    padding-bottom: var(--space-section-mobile);
  }
}

/* ==============================================================================
   4. REUSABLE COMPONENT: BUTTONS (.gn-btn)
   ============================================================================== */
.gn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem; /* 13px */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
  line-height: 1.2;
  white-space: nowrap;
  user-select: none;
}

.gn-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Button Primary (Gold Luxury) */
.gn-btn-primary {
  background: linear-gradient(135deg, #d4b58a 0%, #c5a880 50%, #b39368 100%);
  color: var(--secondary);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(197, 168, 128, 0.25);
}
.gn-btn-primary:hover {
  background: linear-gradient(135deg, #e0c59e 0%, #d4b58a 50%, #c5a880 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(197, 168, 128, 0.4);
}
.gn-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(197, 168, 128, 0.3);
}

/* Button Secondary (Dark Architectural) */
.gn-btn-secondary {
  background: var(--secondary-light);
  color: var(--text-primary);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.gn-btn-secondary:hover {
  background: #19273f;
  border-color: var(--primary-glow);
  color: var(--primary);
  transform: translateY(-1px);
}

/* Button Outline */
.gn-btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-gold);
}
.gn-btn-outline:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Button Zalo & Hotline Specific */
.gn-btn-zalo {
  background: #0068ff;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 104, 255, 0.3);
}
.gn-btn-zalo:hover {
  background: #0056d6;
  box-shadow: 0 6px 20px rgba(0, 104, 255, 0.45);
  transform: translateY(-1px);
}

.gn-btn-hotline {
  background: linear-gradient(135deg, #d4b58a 0%, #c5a880 100%);
  color: var(--secondary);
  font-weight: 900;
}

/* Button Sizes */
.gn-btn-sm {
  padding: 8px 16px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}
.gn-btn-lg {
  padding: 16px 32px;
  font-size: 0.9rem;
  border-radius: var(--radius-lg);
}

/* Disabled State */
.gn-btn:disabled,
.gn-btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

/* ==============================================================================
   5. REUSABLE COMPONENT: CARDS (.gn-card)
   ============================================================================== */
.gn-card {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.gn-card:hover {
  border-color: rgba(197, 168, 128, 0.45);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.gn-card-elevated {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.07), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.gn-card-glass {
  background: rgba(11, 19, 32, 0.85);
  color: #ffffff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
}

.bg-brand-dark .gn-card,
.gn-card-dark {
  background: var(--background-secondary);
  color: #ffffff;
  border: 1px solid var(--border);
}

.gn-card-interactive {
  cursor: pointer;
}
.gn-card-interactive:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

@media (max-width: 767px) {
  .gn-card {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
  }
}

/* ==============================================================================
   6. REUSABLE COMPONENT: SECTION HEADERS (.gn-section-header)
   ============================================================================== */
.gn-section-header {
  margin-bottom: var(--space-2xl);
}
.gn-section-header.text-center {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.gn-section-subtitle,
.gn-section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(197, 168, 128, 0.12);
  border: 1px solid rgba(197, 168, 128, 0.35);
  color: #9a7b56;
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.gn-section-title {
  color: #0b1320;
  font-weight: 800;
  margin-bottom: var(--space-xs);
}

.bg-brand-dark .gn-section-title,
.dark .gn-section-title {
  color: #ffffff;
}

.gn-section-divider {
  width: 48px;
  height: 3px;
  background: #c5a880;
  border-radius: 2px;
  margin-top: 6px;
  margin-bottom: 12px;
}

.gn-section-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
}

/* ==============================================================================
   7. REUSABLE COMPONENT: BREADCRUMBS (.gn-breadcrumb)
   ============================================================================== */
.gn-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  background: var(--background-glass);
  border: 1px solid var(--border);
  font-size: 0.775rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.gn-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.gn-breadcrumb a:hover {
  color: var(--primary);
}

.gn-breadcrumb-sep {
  color: var(--text-muted);
}

.gn-breadcrumb-active {
  color: var(--primary);
  font-weight: 700;
}

/* ==============================================================================
   8. REUSABLE COMPONENT: FORM CONTROLS (.gn-input, .gn-select, etc.)
   ============================================================================== */
.gn-form-group {
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gn-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.gn-label-required::after {
  content: " *";
  color: #ef4444;
}

.gn-input,
.gn-select,
.gn-textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  outline: none;
}

.gn-input::placeholder,
.gn-textarea::placeholder {
  color: var(--text-muted);
}

.gn-input:focus,
.gn-select:focus,
.gn-textarea:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.gn-select {
  cursor: pointer;
  background-color: var(--secondary);
}

.gn-select option {
  background-color: var(--secondary);
  color: #ffffff;
  padding: 10px;
}

.gn-textarea {
  resize: vertical;
  min-height: 90px;
}

/* Checkbox & Radio */
.gn-checkbox-group,
.gn-radio-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  user-select: none;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.gn-checkbox,
.gn-radio {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* ==============================================================================
   9. REUSABLE COMPONENT: BADGES (.gn-badge)
   ============================================================================== */
.gn-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.gn-badge-gold {
  background: var(--primary-light);
  border: 1px solid var(--border-gold);
  color: var(--primary);
}

.gn-badge-hot {
  background: #dc2626;
  color: #ffffff;
}

.gn-badge-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.gn-badge-slate {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ==============================================================================
   10. REUSABLE COMPONENT: CTA BANNER (.gn-cta-banner)
   ============================================================================== */
.gn-cta-banner {
  background: linear-gradient(135deg, #111c2e 0%, #0c1524 50%, #080f1a 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.gn-cta-banner::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: var(--primary-glow);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

/* ==============================================================================
   11. REUSABLE COMPONENT: ALERTS (.gn-alert)
   ============================================================================== */
.gn-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  font-size: 0.875rem;
  line-height: 1.6;
}

.gn-alert-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.gn-alert-warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.gn-alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.gn-alert-info {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #334155;
}

/* ==============================================================================
   12. REUSABLE COMPONENT: TABLES (.gn-table)
   ============================================================================== */
.gn-table-container,
.gn-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.gn-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
  color: #334155;
}

.gn-table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.725rem;
  letter-spacing: 0.06em;
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.gn-table td {
  padding: 14px 18px;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}

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

.gn-table tr:hover td {
  background: #f8fafc;
}

.bg-brand-dark .gn-table-container,
.bg-brand-dark .gn-table-wrapper {
  border-color: var(--border);
  background: var(--background-secondary);
}
.bg-brand-dark .gn-table th {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border-bottom-color: var(--border);
}
.bg-brand-dark .gn-table td {
  color: var(--text-secondary);
  border-bottom-color: var(--border-light);
}
.bg-brand-dark .gn-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: #ffffff;
}

/* ==============================================================================
   13. REUSABLE COMPONENT: TABS (.gn-tabs)
   ============================================================================== */
.gn-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.gn-tabs::-webkit-scrollbar {
  display: none;
}

.gn-tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.gn-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.gn-tab-btn.active,
.gn-tab-btn[aria-selected="true"] {
  background: var(--primary);
  color: var(--secondary);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(197, 168, 128, 0.3);
}

/* ==============================================================================
   14. REUSABLE COMPONENT: MODAL (.gn-modal)
   ============================================================================== */
.gn-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.gn-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gn-modal {
  background: var(--secondary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-normal);
  max-height: 90vh;
  overflow-y: auto;
}

.gn-modal-backdrop.is-open .gn-modal {
  transform: translateY(0) scale(1);
}

.gn-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.gn-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}
.gn-modal-close:hover {
  color: #ffffff;
}

/* ==============================================================================
   15. REUSABLE COMPONENT: LOADING & EMPTY STATES
   ============================================================================== */
.gn-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  color: var(--text-secondary);
}

.gn-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(197, 168, 128, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: gn-spin 0.8s linear infinite;
  margin-bottom: var(--space-md);
}

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

.gn-empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  max-width: 480px;
  margin: 0 auto;
}
.gn-empty-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
  opacity: 0.8;
}

/* ==============================================================================
   16. MASTER HEADER & TOPBAR ZERO-CONFLICT OVERRIDES
   ============================================================================== */
header {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04) !important;
}

/* Active navigation indicators */
header nav a.active {
  color: var(--primary) !important;
  position: relative !important;
}
header nav a.active::after {
  content: "" !important;
  position: absolute !important;
  bottom: -4px !important;
  left: 0 !important;
  width: 100% !important;
  height: 2px !important;
  background: var(--primary) !important;
  border-radius: 2px !important;
}

/* Responsive utilities */
@media (max-width: 1023px) {
  .site-nav {
    display: none !important;
  }
}

/* Accessible focus rings for keyboard navigation (WCAG AA Compliance) */
:focus-visible {
  outline: 2px solid var(--primary, #c5a880);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary, #c5a880);
  outline-offset: 2px;
}

