/* ============================================================
   BTAB — Patriot Bistro Shop
   CSS Architecture: Design Tokens → Reset → Layout → Components → Sections → Pages → Responsive
   ============================================================ */

/* ----------------------------------------
   DESIGN TOKENS (CSS Variables)
   ---------------------------------------- */
:root {
  /* Primary Colors */
  --color-navy: #1b2a4a;
  --color-navy-dark: #0f1a2e;
  --color-navy-light: #2a3f6a;
  --color-red: #8b1a1a;
  --color-red-bright: #c0392b;
  --color-red-dark: #6b1010;
  --color-red-accent: #d4343f;
  
  /* Secondary Colors */
  --color-gold: #c5a55a;
  --color-gold-light: #dbc07a;
  --color-gold-dark: #a08030;
  
  /* Neutrals */
  --color-white: #ffffff;
  --color-off-white: #f5f0e8;
  --color-cream: #ede4d3;
  --color-gray-100: #f7f7f7;
  --color-gray-200: #e8e8e8;
  --color-gray-300: #d0d0d0;
  --color-gray-400: #a0a0a0;
  --color-gray-500: #6b6b6b;
  --color-gray-700: #3a3a3a;
  --color-gray-900: #1a1a1a;
  
  /* Status Colors */
  --color-success: #2d7a2d;
  --color-warning: #d4a017;
  --color-pending: #e6a817;
  
  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-heading: 'Merriweather', 'Georgia', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --font-mono: 'Source Code Pro', monospace;
  
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3rem;
  
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;
  
  --lh-tight: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-max: 1400px;
  --sidebar-width: 180px;
  
  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-full: 50%;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.2);
  --shadow-inset: inset 0 2px 6px rgba(0,0,0,0.15);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: var(--lh-normal);
  color: var(--color-gray-900);
  background-color: var(--color-off-white);
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
}

/* ----------------------------------------
   LAYOUT UTILITIES
   ---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container--narrow {
  max-width: var(--container-md);
}

.container--wide {
  max-width: var(--container-max);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.grid {
  display: grid;
}

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

/* ----------------------------------------
   PATRIOTIC BACKGROUND TEXTURE
   ---------------------------------------- */
.bg-patriotic {
  background: 
    radial-gradient(ellipse at bottom left, rgba(27,42,74,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(139,26,26,0.15) 0%, transparent 60%),
    var(--color-off-white);
  position: relative;
}

.bg-patriotic::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(27,42,74,0.12), transparent);
  pointer-events: none;
  z-index: 0;
}

.bg-patriotic > * {
  position: relative;
  z-index: 1;
}

/* ----------------------------------------
   PATRIOTIC HEADER BANNER
   ---------------------------------------- */
.patriotic-banner {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 50%, var(--color-navy-dark) 100%);
  position: relative;
  overflow: hidden;
}

.patriotic-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-red), var(--color-red-bright), var(--color-red));
}

.patriotic-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-red), var(--color-red-bright), var(--color-red));
}

/* Stars decoration (legacy) */

.stars-divider {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: var(--space-sm) 0;
  color: var(--color-navy);
  font-size: var(--fs-xs);
}

/* ----------------------------------------
   SITE HEADER (unified nav + banner)
   ---------------------------------------- */
.site-header {
  background:
    linear-gradient(180deg,
      rgba(13,27,51,0.88) 0%,
      rgba(21,38,68,0.85) 40%,
      rgba(27,42,74,0.87) 70%,
      rgba(15,26,46,0.92) 100%),
    url("/assets/images/us-flag-subtle-texture.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-color: #0d1b33;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  will-change: transform;
  transform: translateZ(0);        /* GPU-promote to own compositing layer */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.main-nav {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  position: relative;
  transition: padding var(--transition-base);
}

.main-nav::after {
  display: none;
}

/* White decorative line removed per design update */
.main-nav::before {
  display: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.nav-brand .brand-icon {
  width: 40px;
  height: 40px;
  background: var(--color-gold);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  color: var(--color-navy-dark);
  font-weight: var(--fw-black);
  border: 2px solid var(--color-gold-light);
}

.nav-logo {
  height: 204px;
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  transition: height var(--transition-base);
}

/* Header Red Accent Line — bright line above (from .main-nav border-bottom), red stripe, dark line below */
.header-red-line {
  height: 5px;
  transition: height var(--transition-base);
  background: linear-gradient(90deg, transparent 2%, var(--color-red) 15%, var(--color-red-bright) 50%, var(--color-red) 85%, transparent 98%);
  border-bottom: 1px solid rgba(0,0,0,0.5);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Header Veterans Banner */
.header-banner {
  padding: var(--space-sm) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  position: relative;
  transition: padding var(--transition-base);
}

/* Red divider line below veterans text */
.header-banner::after {
  content: '';
  display: block;
  height: 5px;
  margin-top: var(--space-sm);
  background: linear-gradient(90deg, transparent 2%, var(--color-red) 15%, var(--color-red-bright) 50%, var(--color-red) 85%, transparent 98%);
  border-bottom: 1px solid rgba(0,0,0,0.5);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}

.header-banner-text {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--color-cream);
  font-style: italic;
  letter-spacing: 2px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  transition: font-size var(--transition-base);
}

.header-banner-subtext {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
  margin-top: 2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: font-size var(--transition-base), opacity var(--transition-base);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 2;
  align-self: center;
}

.nav-links a {
  color: var(--color-gray-200);
  padding: 0;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-links a:hover {
  color: var(--color-white);
  background: rgba(255,255,255,0.1);
}

.nav-links a.active {
  color: var(--color-white);
  background: transparent;
}

.nav-links a .nav-icon {
  font-size: var(--fs-base);
}

/* Nav Button Images */
.nav-btn {
  padding: 0;
  display: flex;
  align-items: center;
  transition: all var(--transition-base);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.nav-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

/* Active nav button glow (Start button in mockup) */
.nav-btn.active {
  position: relative;
}

.nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(140, 200, 255, 0.6), rgba(180, 220, 255, 0.8), rgba(140, 200, 255, 0.6), transparent);
  border-radius: 2px;
  filter: blur(3px);
  pointer-events: none;
}

.nav-btn-img {
  height: 77px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: height var(--transition-base);
}

/* ====== Shrinking Header on Scroll ====== */
.header-scrolled .main-nav {
  padding: 4px 0;
}

.header-scrolled .nav-logo {
  height: 90px;
}

.header-scrolled .nav-btn-img {
  height: 45px;
}

.header-scrolled .header-red-line {
  height: 3px;
}

.header-scrolled .header-banner {
  padding: var(--space-xs) 0;
}

.header-scrolled .header-banner::after {
  height: 3px;
  margin-top: var(--space-xs);
}

.header-scrolled .header-banner-text {
  font-size: var(--fs-sm);
}

.header-scrolled .header-banner-subtext {
  font-size: var(--fs-xs);
  opacity: 0.7;
}

.header-scrolled .nav-btn.active::after {
  opacity: 0;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Category nav bar */
.category-nav {
  background: linear-gradient(90deg, var(--color-red-dark), var(--color-red), var(--color-red-dark));
  padding: 0;
  border-top: 2px solid var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
}

.category-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
}

.category-nav li {
  flex: 1;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.category-nav li:last-child {
  border-right: none;
}

.category-nav a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background var(--transition-fast);
}

.category-nav a:hover,
.category-nav a.active {
  background: rgba(255,255,255,0.15);
}

/* ----------------------------------------
   HERO SLIDER SECTION
   ---------------------------------------- */
.hero-slider-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(15, 26, 46, 0.7) 0%,
    rgba(15, 26, 46, 0.55) 40%,
    rgba(15, 26, 46, 0.65) 70%,
    rgba(15, 26, 46, 0.8) 100%
  );
  z-index: 1;
}

.hero-slider-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
}

.hero-slider-content .hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  color: var(--color-white);
  margin-bottom: var(--space-md);
  font-weight: var(--fw-black);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-slider-content .hero-subtitle {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--color-cream);
  font-weight: var(--fw-bold);
  font-style: italic;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

/* Org grid inside slider */
.org-section-inner {
  position: relative;
  z-index: 2;
  padding: 0 var(--space-lg) var(--space-2xl);
  width: 100%;
}

.org-section-inner .org-badge span {
  color: var(--color-white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Slider Arrow Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.3);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.slider-arrow:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow-left {
  left: var(--space-lg);
}

.slider-arrow-right {
  right: var(--space-lg);
}

/* Organization Section (standalone fallback) */
.org-section {
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  text-align: center;
}

/* ----------------------------------------
   HERO SECTIONS (legacy/other pages)
   ---------------------------------------- */
.hero {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  position: relative;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  color: var(--color-navy-dark);
  margin-bottom: var(--space-md);
  font-weight: var(--fw-black);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--color-gray-700);
  font-weight: var(--fw-bold);
  font-style: italic;
  margin-bottom: var(--space-xl);
}

.hero-tagline {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-dark));
  color: var(--color-white);
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  position: relative;
}

.hero-tagline::before,
.hero-tagline::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--color-red);
}

.hero-tagline::before { top: -3px; left: 0; }
.hero-tagline::after { bottom: -3px; top: auto; left: 0; }

/* ----------------------------------------
   BUTTONS
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-base);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-red-dark), var(--color-red));
  color: var(--color-white);
  border-color: var(--color-red-dark);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-red), var(--color-red-bright));
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-navy {
  background: linear-gradient(135deg, var(--color-navy-dark), var(--color-navy));
  color: var(--color-white);
  border-color: var(--color-navy-dark);
}

.btn-navy:hover {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  color: var(--color-navy-dark);
  border-color: var(--color-gold-dark);
}

.btn-lg {
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--fs-base);
}

/* ----------------------------------------
   CARDS
   ---------------------------------------- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid var(--color-gray-200);
}

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

.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card-body {
  padding: var(--space-md) var(--space-lg);
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-gray-900);
  margin-bottom: var(--space-xs);
  font-style: italic;
}

.card-text {
  font-size: var(--fs-sm);
  color: var(--color-gray-500);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-md);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-lg) var(--space-lg);
}

.card-price {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-black);
  color: var(--color-red-dark);
}

.card-price .price-unit {
  font-size: var(--fs-sm);
  font-weight: var(--fw-normal);
  color: var(--color-gray-400);
  margin-left: var(--space-xs);
}

/* ----------------------------------------
   ORGANIZATION BADGE GRID (Main Page)
   ---------------------------------------- */
.org-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  max-width: 900px;
  margin: 0 auto;
}

.org-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
}

.org-badge:hover {
  transform: scale(1.08);
}

.org-badge .badge-circle {
  width: 6.25rem;
  height: 6.25rem;
  border-radius: 50%;
  border: 3px solid var(--color-gold);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  flex-shrink: 0;
  transition: all var(--transition-base);
  background: #000;
}

.org-badge:hover .badge-circle {
  border-color: var(--color-red);
  box-shadow: var(--shadow-md);
}

.org-badge .badge-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-base);
}

.org-badge:hover .badge-circle img {
  transform: scale(1.2);
}

.org-badge span {
  font-size: var(--fs-xs);
  color: var(--color-gray-700);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
}

/* ----------------------------------------
   PRODUCT GRID (Store Page)
   ---------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-base);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.product-card .product-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-bottom: 3px solid var(--color-red);
}

.product-card .product-info {
  padding: var(--space-md) var(--space-lg);
}

.product-card .product-name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-gray-900);
  font-style: italic;
  margin-bottom: var(--space-xs);
}

.product-card .product-desc {
  font-size: var(--fs-sm);
  color: var(--color-gray-500);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-md);
}

.product-card .product-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-lg) var(--space-lg);
}

.product-card .product-price {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-black);
  color: var(--color-red-dark);
}

.product-card .product-weight {
  font-size: var(--fs-sm);
  color: var(--color-gray-400);
  font-weight: var(--fw-normal);
  margin-left: var(--space-xs);
}

/* ----------------------------------------
   CHECKOUT / ORDER PAGE
   ---------------------------------------- */
.checkout-page {
  max-width: var(--container-md);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.checkout-header {
  background: linear-gradient(135deg, var(--color-navy-dark), var(--color-navy));
  color: var(--color-white);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-style: italic;
  position: relative;
}

.checkout-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-red);
}

.checkout-body {
  background: var(--color-white);
  padding: var(--space-xl);
  border: 1px solid var(--color-gray-200);
  border-top: none;
}

.checkout-items {
  margin-bottom: var(--space-xl);
}

.checkout-item {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-gray-200);
}

.checkout-item img {
  width: 60px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.checkout-item .item-name {
  font-weight: var(--fw-semibold);
}

.checkout-item .item-price {
  font-weight: var(--fw-bold);
  font-family: var(--font-heading);
}

.checkout-item .item-check {
  width: 20px;
  height: 20px;
  accent-color: var(--color-navy);
}

/* Summary rows */
.checkout-summary {
  border-top: 2px solid var(--color-gray-300);
  padding-top: var(--space-md);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  font-size: var(--fs-base);
}

.summary-row.subtotal {
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
}

.summary-row.donation {
  color: var(--color-navy);
  font-style: italic;
}

.summary-row.total {
  font-weight: var(--fw-black);
  font-size: var(--fs-2xl);
  font-family: var(--font-heading);
  border-top: 3px double var(--color-navy);
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  color: var(--color-red-dark);
}

.checkout-shipping {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 2px solid var(--color-gray-300);
}

.checkout-shipping h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-md);
}

.checkout-actions {
  text-align: center;
  padding: var(--space-xl) 0 var(--space-md);
}

.checkout-actions .confirm-msg {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-red-dark);
  margin-bottom: var(--space-lg);
  font-size: var(--fs-md);
}

/* ----------------------------------------
   PURCHASE ORDER PAGE
   ---------------------------------------- */
.po-page {
  max-width: var(--container-md);
  margin: var(--space-xl) auto;
  padding: 0 var(--space-lg);
}

.po-document {
  background: var(--color-white);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.po-header {
  background: linear-gradient(135deg, var(--color-navy-dark), var(--color-navy));
  padding: var(--space-xl);
  text-align: center;
  position: relative;
}

.po-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-red);
}

.po-brand {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: var(--color-white);
  font-style: italic;
}

.po-title {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-top: var(--space-sm);
}

.po-body {
  padding: var(--space-xl);
}

.po-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.po-company-info p,
.po-order-info p {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

.po-order-info {
  background: var(--color-gray-100);
  padding: var(--space-md);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
}

.po-order-info .po-number {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-black);
}

.po-addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.po-address-box {
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.po-address-box h4 {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.po-address-box .address-content {
  padding: var(--space-md);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

/* PO Table */
.po-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-xl);
}

.po-table thead {
  background: linear-gradient(135deg, var(--color-navy-dark), var(--color-navy));
}

.po-table th {
  color: var(--color-white);
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.po-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-gray-200);
  font-size: var(--fs-sm);
}

.po-table .text-right {
  text-align: right;
}

.po-table .text-center {
  text-align: center;
}

/* PO Totals */
.po-totals {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-xl);
}

.po-totals-table {
  width: 50%;
}

.po-totals-table .total-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-sm);
}

.po-totals-table .total-row.highlight {
  background: var(--color-red);
  color: var(--color-white);
  font-weight: var(--fw-black);
  font-size: var(--fs-lg);
  border-radius: var(--radius-sm);
  margin-top: var(--space-sm);
}

.po-totals-table .total-row.discount {
  color: var(--color-success);
}

.po-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: var(--space-xl);
  border-top: 2px solid var(--color-gray-200);
}

.po-payment-terms h4 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

.po-signature {
  text-align: center;
}

.po-signature .sig-line {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-style: italic;
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-gray-400);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.po-signature .sig-name {
  font-size: var(--fs-xs);
  color: var(--color-gray-500);
}

.po-thank-you {
  text-align: center;
  padding: var(--space-lg);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-red-dark);
  font-size: var(--fs-md);
}

/* ----------------------------------------
   DASHBOARD (Mission Control)
   ---------------------------------------- */
.dashboard-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: calc(100vh - 60px);
}

/* Sidebar */
.sidebar {
  background: linear-gradient(180deg, var(--color-off-white), var(--color-cream));
  border-right: 1px solid var(--color-gray-200);
  padding: var(--space-md) 0;
  position: relative;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background:
    radial-gradient(ellipse at bottom left, rgba(27,42,74,0.08), transparent 70%);
  pointer-events: none;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  color: var(--color-gray-700);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  transition: all var(--transition-fast);
  position: relative;
}

.sidebar-nav a:hover {
  background: rgba(27,42,74,0.08);
  color: var(--color-navy);
}

.sidebar-nav a.active {
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: var(--fw-bold);
}

.sidebar-nav a .sidebar-icon {
  width: 20px;
  text-align: center;
}

/* Dashboard Main Content */
.dashboard-main {
  padding: var(--space-lg);
  overflow-y: auto;
  background: var(--color-off-white);
}

/* Stat Cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  border: 1px solid var(--color-gray-200);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-navy);
}

.stat-card.red::before { background: var(--color-red); }
.stat-card.gold::before { background: var(--color-gold); }
.stat-card.green::before { background: var(--color-success); }

.stat-card .stat-label {
  font-size: var(--fs-xs);
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-xs);
}

.stat-card .stat-value {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-black);
  color: var(--color-navy-dark);
}

.stat-card .stat-change {
  font-size: var(--fs-xs);
  margin-top: var(--space-xs);
}

.stat-card .stat-change.positive {
  color: var(--color-success);
}

.stat-card .stat-change.negative {
  color: var(--color-red);
}

/* Dashboard Panels */
.dashboard-panel {
  background: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
}

.panel-header {
  background: linear-gradient(135deg, var(--color-navy-dark), var(--color-navy));
  color: var(--color-white);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-style: italic;
  position: relative;
}

.panel-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-red);
}

.panel-body {
  padding: var(--space-lg);
}

/* Chart placeholder */
.chart-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-gray-100), var(--color-white));
  border: 1px dashed var(--color-gray-300);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-400);
  font-size: var(--fs-sm);
}

/* Dashboard two-column layout */
.dashboard-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-navy);
  color: var(--color-white);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: var(--fw-bold);
}

.data-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-gray-200);
  font-size: var(--fs-sm);
}

.data-table tr:hover td {
  background: var(--color-gray-100);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}

.status-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-pending);
}

.status-badge.completed::before {
  background: var(--color-success);
}

/* Top Products list */
.top-products-list {
  list-style: none;
}

.top-products-list li {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-gray-100);
  font-size: var(--fs-sm);
}

.top-products-list li:last-child {
  border-bottom: none;
}

.top-products-list .product-revenue {
  font-weight: var(--fw-bold);
  color: var(--color-navy);
}

/* Map placeholder */
.map-placeholder {
  width: 100%;
  height: 200px;
  background: 
    linear-gradient(rgba(27,42,74,0.05), rgba(27,42,74,0.05)),
    var(--color-gray-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-400);
  font-size: var(--fs-sm);
  border: 1px dashed var(--color-gray-300);
}

/* ----------------------------------------
   FOOTER
   ---------------------------------------- */
.site-footer {
  background: var(--color-gray-900);
  color: var(--color-gray-300);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-red), var(--color-red-bright), var(--color-red));
}

/* Footer Top: Newsletter + Nav Columns */
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-3xl);
  padding: var(--space-3xl) 0 var(--space-2xl);
}

/* Newsletter */
.footer-newsletter-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: var(--lh-normal);
  margin-bottom: var(--space-lg);
}

.footer-newsletter-form {
  display: flex;
  gap: 0;
}

.footer-email-input {
  flex: 1;
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--color-gray-500);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: var(--color-gray-700);
  color: var(--color-white);
  font-size: var(--fs-base);
}

.footer-email-input::placeholder {
  color: var(--color-gray-400);
}

.footer-email-input:focus {
  border-color: var(--color-gold);
  background: var(--color-gray-700);
  outline: none;
}

.btn-join {
  padding: var(--space-sm) var(--space-xl);
  background: #e87400;
  color: var(--color-white);
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.btn-join:hover {
  background: #ff8800;
}

/* Nav Columns */
.footer-nav-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-xl);
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-nav-col a {
  color: var(--color-gray-400);
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
}

.footer-nav-col a:hover {
  color: var(--color-gold);
}

.footer-nav-col a.footer-nav-top {
  color: var(--color-white);
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  margin-bottom: var(--space-xs);
}

/* Contact Grid: 2x2 layout matching mockup */
.footer-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md) var(--space-3xl);
  padding: var(--space-xl) 0;
  max-width: 420px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.fci-icon {
  font-size: var(--fs-lg);
  line-height: 1;
}

.fci-icon-svg {
  flex-shrink: 0;
}

.footer-contact-item a {
  color: var(--color-gray-300);
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
}

.footer-contact-item a:hover {
  color: var(--color-gold);
}

.footer-contact-item a strong {
  color: var(--color-white);
  font-weight: var(--fw-bold);
}

/* Divider */
.footer-divider {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: var(--space-md) 0;
}

/* Bottom Row: 3-column — Badges | Copyright | Payment */
.footer-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
  padding: var(--space-xl) 0 var(--space-2xl);
}

/* Trust Badges (left) */
.footer-trust-badges {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.trust-badge svg {
  display: block;
}

.trust-badge-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Center: Copyright + Powered By */
.footer-center {
  text-align: center;
}

.footer-copyright-text {
  font-size: var(--fs-sm);
  color: var(--color-gray-400);
  margin-bottom: var(--space-md);
}

.footer-center .footer-powered-by {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--space-sm);
}

.footer-center .powered-label {
  font-size: var(--fs-sm);
  color: var(--color-gray-400);
  font-style: italic;
  margin-bottom: var(--space-xs);
}

.footer-center .powered-by-logo {
  max-width: 180px;
  height: auto;
  opacity: 0.85;
}

/* Payment Icons: 2x2 grid (right) */
.footer-payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  justify-self: end;
}

.footer-payment-grid .payment-icon svg {
  display: block;
}

/* ----------------------------------------
   BRANDED POWERED-BY SECTION
   ---------------------------------------- */
.powered-by {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) 0;
  text-align: center;
}

.powered-by .powered-label {
  font-size: var(--fs-md);
  color: var(--color-gray-500);
  margin-bottom: var(--space-sm);
  font-style: italic;
}

.powered-by .brand-name {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  color: var(--color-navy-dark);
  font-style: italic;
}

.powered-by .brand-tagline {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-dark));
  color: var(--color-white);
  padding: var(--space-xs) var(--space-xl);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  margin-top: var(--space-sm);
  position: relative;
}

.powered-by-logo {
  max-width: 294px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* ----------------------------------------
   FORM STYLES
   ---------------------------------------- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-gray-700);
  margin-bottom: var(--space-xs);
}

.form-input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  font-size: var(--fs-base);
  transition: border-color var(--transition-fast);
  background: var(--color-white);
}

.form-input:focus {
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(27,42,74,0.1);
}

.form-input.error {
  border-color: var(--color-red);
}

.form-error {
  font-size: var(--fs-xs);
  color: var(--color-red);
  margin-top: var(--space-xs);
  display: none;
}

.form-error.visible {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* ----------------------------------------
   PAGE HEADER (Store)
   ---------------------------------------- */
.store-header {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: linear-gradient(135deg, var(--color-navy-dark), var(--color-navy));
  position: relative;
}

.store-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-red);
}

.store-emblem {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  border: 3px solid var(--color-gold);
  margin: 0 auto var(--space-md);
  background: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xl);
  color: var(--color-navy-dark);
  font-weight: var(--fw-black);
}

.store-emblem-img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  border: 3px solid var(--color-gold);
  margin: 0 auto var(--space-md);
  object-fit: cover;
  background: rgba(255,255,255,0.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.store-title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  color: var(--color-white);
  font-style: italic;
}

.store-title .store-org {
  color: var(--color-gold-light);
}

/* ----------------------------------------
   SHIPPING FORM
   ---------------------------------------- */
.shipping-form {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-200);
  margin-top: var(--space-xl);
}

.shipping-form h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-navy);
}

/* ----------------------------------------
   ABOUT MODAL
   ---------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  background: linear-gradient(160deg, #152644, var(--color-navy-dark));
  border: 1px solid rgba(197, 165, 90, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-2xl) var(--space-xl);
  transform: scale(0.9);
  opacity: 0;
  transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--color-cream);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.modal-close:hover,
.modal-close:focus {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-gold);
}

.modal-logo {
  display: block;
  height: 80px;
  width: auto;
  margin: 0 auto var(--space-md);
}

.modal-title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-gold);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.modal-body {
  padding-right: var(--space-sm);
}

.modal-body p {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--color-cream);
  margin-bottom: var(--space-md);
  text-align: justify;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-scroll-indicator {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(197, 165, 90, 0.2);
  border: 1px solid rgba(197, 165, 90, 0.4);
  color: var(--color-gold);
  font-size: var(--fs-sm);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  animation: modalScrollPulse 2s ease-in-out infinite;
}

.modal-scroll-indicator[hidden] {
  display: none;
}

.modal-scroll-indicator:hover {
  background: rgba(197, 165, 90, 0.4);
}

.modal-scroll-down {
  bottom: var(--space-sm);
}

.modal-scroll-up {
  top: var(--space-sm);
}

@keyframes modalScrollPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@media (max-width: 480px) {
  .modal-content {
    width: calc(100% - 32px);
    padding: var(--space-xl) var(--space-md);
  }

  .modal-title {
    font-size: var(--fs-xl);
  }

  .modal-logo {
    height: 56px;
  }
}

/* ----------------------------------------
   CONTACT MODAL FORM
   ---------------------------------------- */
.modal-content--wide {
  max-width: 680px;
}

.modal-content--wide .modal-body {
  /* Scroll handled by parent .modal-content */
}

.contact-modal-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.contact-label {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-gold-light);
  letter-spacing: 0.02em;
}

.contact-required {
  color: var(--color-red-bright);
}

.contact-input {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(197, 165, 90, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.contact-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.contact-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.15);
}

.contact-input.error {
  border-color: var(--color-red-bright);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

.contact-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23c5a55a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.contact-select option {
  background: var(--color-navy-dark);
  color: var(--color-white);
}

.contact-textarea {
  resize: vertical;
  min-height: 100px;
  max-height: 220px;
}

.contact-error {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--color-red-bright);
  display: none;
}

.contact-error.visible {
  display: block;
}

.contact-submit-btn {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  border: 2px solid var(--color-red);
  border-radius: var(--radius-md);
  padding: 12px 32px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  align-self: center;
  margin-top: var(--space-sm);
}

.contact-submit-btn:hover {
  background: linear-gradient(135deg, var(--color-red-bright), var(--color-red));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.4);
}

.contact-submit-btn:active {
  transform: translateY(0);
}

.contact-submit-btn.success {
  background: linear-gradient(135deg, var(--color-success), #3a9a3a);
  border-color: var(--color-success);
  pointer-events: none;
}

@media (max-width: 480px) {
  .modal-content--wide {
    max-width: 100%;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------
   LOGIN MODAL FORM
   ---------------------------------------- */
.modal-content--login {
  max-width: 440px;
  overflow-y: auto;
  max-height: 85vh;
}

/* View switching */
.login-view[hidden] {
  display: none;
}

.login-view-desc {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--color-cream);
  text-align: center;
  margin-bottom: var(--space-lg);
  line-height: var(--lh-relaxed);
  opacity: 0.8;
}

.login-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.login-optional {
  color: var(--color-gray-400);
  font-weight: var(--fw-normal);
  font-size: var(--fs-xs);
}

/* Recovery method tabs */
.login-recovery-tabs {
  display: flex;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(197, 165, 90, 0.25);
}

.login-recovery-tab {
  flex: 1;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  padding: 10px 16px;
  cursor: pointer;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-cream);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.login-recovery-tab:hover {
  background: rgba(255, 255, 255, 0.08);
}

.login-recovery-tab.active {
  background: rgba(197, 165, 90, 0.2);
  color: var(--color-gold);
}

/* Back link (reuses register-link styles) */
.login-back-link {
  color: var(--color-gold);
  text-decoration: none;
  font-weight: var(--fw-semibold);
  transition: color var(--transition-fast);
}

.login-back-link:hover,
.login-back-link:focus {
  color: var(--color-gold-light);
  text-decoration: underline;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.login-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.login-label {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-gold-light);
  letter-spacing: 0.02em;
}

.login-required {
  color: var(--color-red-bright);
}

.login-input {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(197, 165, 90, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  width: 100%;
}

.login-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.login-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.15);
}

.login-input.error {
  border-color: var(--color-red-bright);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

.login-error {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--color-red-bright);
  display: none;
}

.login-error.visible {
  display: block;
}

/* Password field with toggle */
.login-password-wrap {
  position: relative;
}

.login-password-wrap .login-input {
  padding-right: 48px;
}

.login-toggle-pw {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(197, 165, 90, 0.6);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.login-toggle-pw:hover,
.login-toggle-pw:focus {
  color: var(--color-gold);
  outline: none;
}

.login-eye-icon {
  display: block;
}

/* Remember me / Forgot password row */
.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: calc(-1 * var(--space-xs));
}

.login-remember {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.login-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--color-gold);
  cursor: pointer;
}

.login-remember-text {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--color-cream);
}

.login-forgot {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.login-forgot:hover,
.login-forgot:focus {
  color: var(--color-gold-light);
  text-decoration: underline;
}

/* Submit button */
.login-submit-btn {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  border: 2px solid var(--color-red);
  border-radius: var(--radius-md);
  padding: 14px 32px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.login-submit-btn:hover {
  background: linear-gradient(135deg, var(--color-red-bright), var(--color-red));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.4);
}

.login-submit-btn:active {
  transform: translateY(0);
}

.login-submit-btn.success {
  background: linear-gradient(135deg, var(--color-success), #3a9a3a);
  border-color: var(--color-success);
  pointer-events: none;
}

/* Divider */
.login-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.login-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(197, 165, 90, 0.2);
}

.login-divider-text {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--color-gray-400);
  text-transform: lowercase;
}

/* Register link */
.login-register {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--color-cream);
  text-align: center;
  margin: 0;
}

.login-register-link {
  color: var(--color-gold);
  text-decoration: none;
  font-weight: var(--fw-semibold);
  transition: color var(--transition-fast);
}

.login-register-link:hover,
.login-register-link:focus {
  color: var(--color-gold-light);
  text-decoration: underline;
}

@media (max-width: 480px) {
  .modal-content--login {
    max-width: 100%;
  }

  .login-options {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .login-form-row {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------
   MODAL BODY — HEADINGS, DATES, FAQ
   ---------------------------------------- */
.modal-body-heading {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-gold);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.modal-body-date {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--color-gray-400);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.faq-item {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(197, 165, 90, 0.12);
}

.faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.faq-question {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--color-gold-light);
  margin-bottom: var(--space-sm);
}

/* ----------------------------------------
   UTILITY CLASSES
   ---------------------------------------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-navy { color: var(--color-navy); }
.text-red { color: var(--color-red-dark); }
.text-gold { color: var(--color-gold); }
.text-white { color: var(--color-white); }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.fw-bold { font-weight: var(--fw-bold); }
.fw-black { font-weight: var(--fw-black); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }

/* ----------------------------------------
   RESPONSIVE — TABLET (max-width: 768px)
   ---------------------------------------- */
@media (max-width: 768px) {
  /* Disable shrinking header on mobile — already compact */
  .header-scrolled .main-nav { padding: 8px 0; }
  .header-scrolled .nav-logo { height: 80px; }
  .header-scrolled .nav-btn-img { height: 58px; }
  .header-scrolled .header-red-line { height: 5px; }
  .header-scrolled .header-banner { padding: var(--space-sm) 0; }
  .header-scrolled .header-banner::after { height: 5px; margin-top: var(--space-sm); }
  .header-scrolled .header-banner-text { font-size: var(--fs-sm); }

  :root {
    --fs-4xl: 2.25rem;
    --fs-3xl: 1.75rem;
    --fs-2xl: 1.5rem;
  }
  
  .hero-slider-section {
    /* auto height based on content */
  }
  
  .hero-slider-content {
    padding: var(--space-2xl) var(--space-md) var(--space-lg);
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: var(--fs-lg);
  }

  .slider-arrow-left { left: var(--space-sm); }
  .slider-arrow-right { right: var(--space-sm); }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-navy-dark);
    flex-direction: column;
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-links a {
    padding: var(--space-md);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav-btn-img {
    height: 58px;
  }

  .nav-logo {
    height: 80px;
  }

  .header-banner-text {
    font-size: var(--fs-sm);
  }
  
  .hamburger {
    display: flex;
  }
  
  .org-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-nav-columns {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-bottom-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-lg);
  }

  .footer-trust-badges {
    justify-content: center;
  }

  .footer-center {
    text-align: center;
  }

  .footer-payment-grid {
    justify-self: center;
  }

  .footer-contact-grid {
    max-width: 100%;
  }
  
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    display: none;
  }
  
  .sidebar.open {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
  }
  
  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dashboard-grid-2 {
    grid-template-columns: 1fr;
  }
  
  .po-meta,
  .po-addresses {
    grid-template-columns: 1fr;
  }
  
  .po-totals-table {
    width: 100%;
  }
  
  .po-footer {
    flex-direction: column;
    gap: var(--space-lg);
    align-items: flex-start;
  }
  
  .category-nav ul {
    flex-wrap: wrap;
  }
  
  .category-nav li {
    flex: 1 1 33%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .checkout-item {
    grid-template-columns: 50px 1fr auto;
  }
  
  .checkout-item .item-check {
    display: none;
  }
}

/* ----------------------------------------
   RESPONSIVE — MOBILE (max-width: 480px)
   ---------------------------------------- */
@media (max-width: 480px) {
  :root {
    --fs-4xl: 1.75rem;
    --fs-3xl: 1.5rem;
    --fs-2xl: 1.25rem;
  }
  
  .hero-slider-section {
    /* auto height */
  }
  
  .hero-slider-content {
    padding: var(--space-xl) var(--space-md) var(--space-md);
  }

  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: var(--fs-base);
  }
  
  .container {
    padding-inline: var(--space-md);
  }
  
  .org-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }
  
  .org-badge .badge-circle {
    width: 4.5rem;
    height: 4.5rem;
  }
  
  .hero {
    padding: var(--space-xl) var(--space-md);
  }
  
  .footer-nav-columns {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .footer-payment-grid {
    justify-self: center;
  }
  
  .stat-cards {
    grid-template-columns: 1fr;
  }
  
  .category-nav li {
    flex: 1 1 50%;
  }
  
  .checkout-body {
    padding: var(--space-md);
  }
  
  .po-body {
    padding: var(--space-md);
  }
  
  .po-table {
    font-size: var(--fs-xs);
  }
  
  .po-table th,
  .po-table td {
    padding: var(--space-xs) var(--space-sm);
  }
}

/* ----------------------------------------
   PRINT STYLES (for PO page)
   ---------------------------------------- */
@media print {
  body {
    background: white;
  }
  
  .main-nav,
  .site-footer,
  .no-print {
    display: none !important;
  }
  
  .po-document {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ----------------------------------------
   ANIMATIONS
   ---------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ========================================
   TOAST NOTIFICATION SYSTEM
   ======================================== */
.toast-container {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  min-width: 280px;
  max-width: 420px;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--color-gray-900);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  border-left: 4px solid var(--color-gray-400);
  transform: translateX(120%);
  opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
  overflow: hidden;
  position: relative;
}

.toast.visible {
  transform: translateX(0);
  opacity: 1;
}

.toast.hiding {
  transform: translateX(120%);
  opacity: 0;
}

.toast--success { border-left-color: var(--color-success); }
.toast--error   { border-left-color: var(--color-red-bright); }
.toast--warning { border-left-color: var(--color-warning); }
.toast--info    { border-left-color: var(--color-navy-light); }

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: var(--fs-base);
}

.toast--success .toast-icon { color: var(--color-success); }
.toast--error .toast-icon   { color: var(--color-red-bright); }
.toast--warning .toast-icon { color: var(--color-warning); }
.toast--info .toast-icon    { color: var(--color-navy-light); }

.toast-message { flex: 1; }

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--color-gray-400);
  font-size: var(--fs-lg);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color var(--transition-fast);
}

.toast-close:hover { color: var(--color-white); }

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.3;
  animation: toastProgress linear forwards;
}

.toast--success .toast-progress { color: var(--color-success); }
.toast--error .toast-progress   { color: var(--color-red-bright); }
.toast--warning .toast-progress { color: var(--color-warning); }
.toast--info .toast-progress    { color: var(--color-navy-light); }

@keyframes toastProgress {
  from { width: 100%; }
  to   { width: 0; }
}

/* ========================================
   LOADING SPINNER & BUTTON STATES
   ======================================== */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--color-white);
  border-radius: var(--radius-full);
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

.spinner--dark {
  border-color: rgba(0,0,0,0.15);
  border-top-color: var(--color-navy);
}

.btn-loading {
  pointer-events: none;
  opacity: 0.8;
  position: relative;
}

.btn-loading .spinner {
  margin-right: var(--space-xs);
}

.btn-disabled,
button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ========================================
   PASSWORD STRENGTH INDICATOR
   ======================================== */
.password-strength {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
}

.password-strength-bars {
  display: flex;
  gap: 4px;
}

.password-strength-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  transition: background var(--transition-fast);
}

.password-strength[data-strength="1"] .password-strength-bar:nth-child(1) {
  background: var(--color-red-bright);
}

.password-strength[data-strength="2"] .password-strength-bar:nth-child(-n+2) {
  background: var(--color-warning);
}

.password-strength[data-strength="3"] .password-strength-bar:nth-child(-n+3) {
  background: var(--color-gold);
}

.password-strength[data-strength="4"] .password-strength-bar {
  background: var(--color-success);
}

.password-strength-label {
  font-size: var(--fs-xs);
  color: var(--color-gray-400);
  transition: color var(--transition-fast);
}

.password-strength[data-strength="1"] .password-strength-label { color: var(--color-red-bright); }
.password-strength[data-strength="2"] .password-strength-label { color: var(--color-warning); }
.password-strength[data-strength="3"] .password-strength-label { color: var(--color-gold); }
.password-strength[data-strength="4"] .password-strength-label { color: var(--color-success); }

/* ========================================
   REAL-TIME VALIDATION FEEDBACK
   ======================================== */
.form-input.valid,
.login-input.valid,
.contact-input.valid {
  border-color: var(--color-success);
}

.login-input.valid {
  box-shadow: 0 0 0 3px rgba(45,122,45,0.15);
}

.form-input,
.login-input,
.contact-input {
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* ========================================
   SKELETON LOADERS
   ======================================== */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-light {
  background: linear-gradient(90deg,
    var(--color-gray-200) 25%,
    var(--color-gray-100) 50%,
    var(--color-gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 1em;
  width: 80%;
  margin-bottom: var(--space-xs);
}

.skeleton-circle {
  border-radius: var(--radius-full);
}

.skeleton-card {
  height: 200px;
  width: 100%;
}

/* ========================================
   CUSTOM CHECKBOX STYLING
   ======================================== */
.login-checkbox,
.custom-checkbox {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(197,165,90,0.4);
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  position: relative;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  flex-shrink: 0;
}

.login-checkbox:checked,
.custom-checkbox:checked {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.login-checkbox:checked::after,
.custom-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--color-navy-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.login-checkbox:focus-visible,
.custom-checkbox:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.item-check {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-gray-300);
  border-radius: 3px;
  background: var(--color-white);
  cursor: pointer;
  position: relative;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  flex-shrink: 0;
}

.item-check:checked {
  background: var(--color-navy);
  border-color: var(--color-navy);
}

.item-check:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.item-check:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
}

/* ========================================
   EMPTY STATES
   ======================================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  color: var(--color-gray-400);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.empty-state-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-gray-500);
  margin-bottom: var(--space-xs);
}

.empty-state-desc {
  font-size: var(--fs-sm);
  max-width: 320px;
  line-height: var(--lh-relaxed);
}

/* ========================================
   ACCESSIBILITY: SKIP LINK & FOCUS
   ======================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-gold);
  color: var(--color-navy-dark);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  z-index: 9999;
  transition: top var(--transition-fast);
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

*:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Remove default outline for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Toast responsive */
@media (max-width: 480px) {
  .toast-container {
    top: var(--space-sm);
    right: var(--space-sm);
    left: var(--space-sm);
  }
  .toast {
    min-width: 0;
    max-width: none;
  }
}
