/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  /* Brand Colors */
  --brand-primary: #53AC58;      /* Primary Brand Color */
  --brand-action: #29D62F;       /* Action Color */
  --brand-accent: #FFFE00;       /* Accent Yellow */

  /* Background Colors */
  --bg-dark: #070f0b;
  --bg-dark-gradient: linear-gradient(135deg, #040906 0%, #0d1e13 100%);
  --bg-dark-blend: #040905;      /* Deep black-green for scroll canvas blending */
  --bg-white: #0a110d;           /* Deep dark forest-green */
  --bg-offwhite: #040906;        /* Deeper forest black-green */
  --bg-light-accent: rgba(83, 172, 88, 0.05); /* Subtle transparent green highlight */

  /* Map Existing Variables to Brand Colors */
  --gold-primary: var(--brand-primary);
  --gold-hover: var(--brand-action);
  --gold-glow: rgba(83, 172, 88, 0.15);
  --green-accent: var(--brand-action);
  --green-glow: rgba(41, 214, 47, 0.2);
  
  /* Text Colors (Original values restored for Homepage Scroll & Navigation) */
  --text-white: #ffffff;
  --text-gray: #b2c0b6;
  --text-muted: #647a6d;

  /* Readability Text Colors (Used in dark sections) */
  --text-dark: #ffffff;          /* White primary text */
  --text-gray-dark: #b2c0b6;     /* Clean light green-gray supporting text */
  --text-muted-dark: #647a6d;    /* Muted green label text */
  --text-light-only: #ffffff;    /* White text on dark elements */
  
  /* Fonts */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Outfit', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-white);
  overflow-x: clip;
}

body {
  overflow-x: clip;
  min-height: 100vh;
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* ==========================================================================
   PREMIUM PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.brand-logo-preload {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

.brand-logo-preload .gold-text {
  color: #53AC58 !important;
}

.progress-bar-wrapper {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-primary), var(--green-accent));
  transition: width 0.1s ease;
}

.progress-status {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   GLOBAL HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #318617; /* Premium appealing Kelly Green */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85); /* Clean white for contrast on Kelly Green */
}

.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active {
  color: #ffffff; /* Bright white hover */
}

.site-header.scrolled .nav-link::after {
  background-color: #ffffff;
}

.site-header.scrolled .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

.site-header.scrolled .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.site-header.scrolled .hamburger-bar {
  background-color: #ffffff;
}

.header-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  height: 70px; /* Clearly and largely visible on navigation bar */
  width: auto;
  display: block;
}

/* Footer Logo Styling */
.footer-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.footer-logo-wrap .logo {
  padding: 0;
}

.footer-logo-wrap .logo img {
  height: 110px; /* Very very big and clear in the footer */
  width: auto;
}

.main-nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--gold-primary);
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-white);
}

.nav-link.active::after {
  width: 100%;
}

/* Mobile menu elements hidden by default on desktop */
.header-nav-toggle {
  display: none;
}
.mobile-nav-cta {
  display: none !important;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--brand-action);
  color: var(--text-light-only);
  border: 1px solid var(--brand-action);
}

.btn-primary:hover {
  background: #1cb522;
  border-color: #1cb522;
  color: var(--text-light-only);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(41, 214, 47, 0.25);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  margin-left: 1rem;
}

.btn-secondary:hover {
  background: var(--bg-light-accent);
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(83, 172, 88, 0.15);
}

.btn-outline {
  background: transparent;
  color: var(--brand-primary);
  border: 1px solid rgba(83, 172, 88, 0.4);
}

.btn-outline:hover {
  border-color: var(--brand-primary);
  background: var(--bg-light-accent);
  box-shadow: 0 4px 15px rgba(83, 172, 88, 0.15);
}

.btn.full-width {
  width: 100%;
}

/* ==========================================================================
   SCROLL STICKY HERO CONTAINER
   ========================================================================== */
.scroll-container {
  position: relative;
  width: 100%;
  height: 600vh; /* 6 stages, each 100vh of scrolling */
}

/* Sticky Container that wraps the canvas and active text display */
.sticky-visual-wrapper {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  background: var(--bg-dark-blend);
}

/* Ambient glow in background for premium product lighting */
.ambient-glow {
  position: absolute;
  width: 80vw;
  height: 80vw;
  max-width: 1000px;
  max-height: 1000px;
  background: radial-gradient(circle, var(--gold-glow) 0%, rgba(5,13,9,0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(100px);
  z-index: 2;
  transition: opacity 1.5s ease;
}

/* Cinematic film grain noise overlay */
.noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 3;
}

/* Dynamic Left Vignette - softened and narrowed to remove heavy black blur */
.sticky-visual-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, rgba(4, 8, 5, 0.45) 0%, rgba(4, 8, 5, 0.25) 40%, rgba(4, 8, 5, 0) 100%);
  z-index: 4;
  pointer-events: none;
}

.canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
}

#animation-canvas {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   TEXT CONTENT SCROLL OVERLAYS
   ========================================================================== */
.content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none; /* Let scrolls pass to the container */
}

.stage-section {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  padding-left: 8vw;
  pointer-events: none;
}

/* Text Content Panels styled as floating premium glassmorphic cards */
.text-content {
  width: 38vw;
  max-width: 520px;
  pointer-events: auto; /* Let scrolls pass to the container */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Glassmorphism panel for premium feel and text readability */
  background: rgba(5, 12, 8, 0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2.8rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Active Class trigger for fade & slide transitions */
.stage-section.active .text-content {
  opacity: 1;
  transform: translateY(0);
}

.stage-num {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
  display: inline-block;
  border-left: 2px solid var(--gold-primary);
  padding-left: 12px;
}

.headline {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.highlight-gold {
  color: var(--gold-primary);
  position: relative;
  display: inline-block;
}

.supporting-text {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
  font-weight: 350;
}

.action-buttons {
  margin-top: 2rem;
  display: flex;
}

/* Product Specs Grid (Stage 5) */
.product-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.spec-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: var(--transition-smooth);
}

.spec-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(83, 172, 88, 0.1);
}

.spec-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
}

/* Kernel Profile Box (Stage 6) */
.kernel-details-box {
  background: rgba(83, 172, 88, 0.03);
  border-left: 3px solid var(--brand-primary);
  border-radius: 0 6px 6px 0;
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.details-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-white);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.details-list li {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.4;
  position: relative;
  padding-left: 1.2rem;
}

.details-list li::before {
  content: '•';
  color: var(--gold-primary);
  position: absolute;
  left: 0;
  top: -1px;
  font-size: 1.1rem;
}

/* ==========================================================================
   SCROLL INDICATOR
   ========================================================================== */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 8vw;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 1rem;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.scroll-indicator.hide {
  opacity: 0;
}

.mouse-icon {
  width: 20px;
  height: 35px;
  border: 2px solid var(--text-muted);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: var(--gold-primary);
  border-radius: 2px;
  animation: scrollWheel 1.5s infinite;
}

.scroll-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.5; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   CONTACT / CTA FOOTER SECTION
   ========================================================================== */
.contact-section {
  position: relative;
  background-color: var(--bg-offwhite);
  padding: 8rem 0 3rem 0;
  z-index: 10;
  border-top: 1px solid rgba(83, 172, 88, 0.15);
}

.contact-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6rem;
  margin-bottom: 6rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--text-white);
}

.contact-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-item {
  border-bottom: 1px solid rgba(83, 172, 88, 0.15);
  padding-bottom: 1rem;
}

.detail-item .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.detail-item .value {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--brand-primary);
}

.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(83, 172, 88, 0.15);
  border-radius: 8px;
  padding: 3rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-gray);
  letter-spacing: 1px;
}

.form-group input, .form-group textarea {
  background: var(--bg-white);
  border: 1px solid rgba(83, 172, 88, 0.2);
  border-radius: 4px;
  padding: 1rem;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--brand-primary);
  outline: none;
  background: var(--bg-white);
  box-shadow: 0 0 15px rgba(83, 172, 88, 0.15);
}

.site-footer {
  border: none;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 5rem 2rem 4rem 2rem;
  background-color: #318617; /* Premium appealing Kelly Green background */
  color: #ffffff; /* White text for contrast */
}

/* Footer Grid Layout */
.footer-container-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-left-col {
  display: flex;
  justify-content: flex-start;
}

.footer-logo-link {
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-logo-link:hover {
  transform: scale(1.05);
}

.footer-logo-img {
  height: 250px; /* Large layout size, occupies left side of footer fully */
  width: auto;
  display: block;
}

.footer-right-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-links-group {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-link {
  color: #ffffff; /* Clean white text */
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #ffffff;
  transition: all 0.25s ease;
}

.footer-link:hover {
  color: #ffffff;
  opacity: 0.8;
}

.footer-link:hover::after {
  width: 100%;
}

.site-footer p.footer-copyright {
  color: #ffffff !important;
  opacity: 0.8;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}

/* Responsive Footer rules */
@media (max-width: 768px) {
  .footer-container-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .footer-left-col {
    justify-content: center;
  }
  
  .footer-links-group {
    justify-content: center;
    gap: 1.5rem;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (RESPONSIVE ALIGNMENT)
   ========================================================================== */
@media (max-width: 1200px) {
  .header-container {
    padding: 0 2rem;
  }
  .stage-section {
    padding-left: 4vw;
  }
  .text-content {
    width: 45vw;
  }
  .contact-container {
    padding: 0 2rem;
  }
  .contact-grid {
    gap: 3rem;
  }
  .headline {
    font-size: 2.8rem;
  }
  .section-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 900px) {
  /* Mobile Navigation Styles */
  .header-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 150; /* Above the navigation panel */
    position: relative;
  }

  .hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Hamburger transform when menu is open */
  .site-header.nav-open .header-nav-toggle .hamburger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--gold-primary);
  }

  .site-header.nav-open .header-nav-toggle .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .site-header.nav-open .header-nav-toggle .hamburger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--gold-primary);
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    width: 320px;
    max-width: 80%;
    height: 100vh;
    background: rgba(4, 9, 6, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(83, 172, 88, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 140;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 3rem 2rem;
  }

  .site-header.nav-open .main-nav {
    right: 0;
  }

  .nav-link {
    font-size: 1.2rem;
    letter-spacing: 2px;
    padding: 0.5rem 0;
  }

  /* Mobile CTA inside menu */
  .mobile-nav-cta {
    display: inline-flex !important;
    margin-top: 1.5rem;
    width: 100%;
    border-color: var(--brand-primary) !important;
    color: var(--brand-primary) !important;
  }

  .mobile-nav-cta:hover {
    color: var(--text-light-only) !important;
    background: var(--bg-light-accent) !important;
  }

  .header-cta {
    display: none; /* Hide header bar CTA on mobile */
  }

  /* Lock scroll on body */
  body.nav-lock {
    overflow: hidden;
  }
  
  .sticky-visual-wrapper::before {
    width: 100%;
    background: linear-gradient(180deg, rgba(4, 8, 5, 0.15) 0%, rgba(4, 8, 5, 0.3) 40%, rgba(4, 8, 5, 0.7) 70%, rgba(4, 8, 5, 0.95) 100%);
  }

  .stage-section {
    padding: 0 2rem;
    align-items: flex-end;
    padding-bottom: 12vh;
  }

  .text-content {
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 1.8rem 1.5rem; /* slightly less padding on mobile */
  }

  .action-buttons {
    justify-content: center;
  }

  .scroll-indicator {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  /* Responsive Product Modal Layout */
  .product-modal-container {
    max-height: 90vh;
  }

  .product-modal-content {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }

  .product-modal-image-pane {
    min-height: 240px;
    height: 240px;
    padding: 1.5rem;
    border-right: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  }

  .product-modal-image-pane img {
    object-fit: contain;
    height: 100%;
    width: auto;
    margin: 0 auto;
  }

  .product-modal-info-pane {
    padding: 2rem 1.5rem;
    overflow-y: visible;
  }
}

/* ==========================================================================
   ABOUT PAGE STYLES
   ========================================================================== */
.about-hero {
  padding: 180px 0 80px 0;
  background: var(--bg-dark-gradient);
  text-align: center;
  position: relative;
  /* border-bottom replaced by animated divider ::after */
}

.about-hero-container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

.about-title {
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1.15;
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

.about-subtitle {
  font-size: 1.25rem;
  color: var(--text-gray);
  font-weight: 350;
}

.about-detail-section {
  padding: 100px 0;
  background-color: #050c08; /* Deep dark black-green for alternating background */
}

.about-content-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6rem;
  align-items: center;
}

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

.section-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gold-primary);
  letter-spacing: 3px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
  border-left: 2px solid var(--gold-primary);
  padding-left: 10px;
}

.editorial-headline {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--text-white);
}

.editorial-paragraph {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  font-weight: 350;
}

.editorial-paragraph.highlight {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--text-white);
  font-weight: 300;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding-bottom: 1.5rem;
}

.about-milestones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.milestone-card {
  background: #1b3a24;
  border: 1px solid var(--brand-primary);
  padding: 1.5rem 1rem;
  border-radius: 6px;
  text-align: center;
  transition: var(--transition-smooth);
}

.milestone-card:hover {
  background: #132b1a;
  border-color: var(--brand-action);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(41, 214, 47, 0.25);
}

.milestone-number {
  font-size: 2rem;
  font-family: var(--font-serif);
  color: var(--brand-accent);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.milestone-desc {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #e2ede5;
  letter-spacing: 1px;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-image-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
}

.about-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.about-image-card:hover .about-img {
  transform: scale(1.03);
}

.glow-effect {
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(0,0,0,0) 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(0deg, rgba(4, 9, 6, 0.95) 0%, rgba(4, 9, 6, 0.6) 60%, rgba(4, 9, 6, 0) 100%);
  padding: 3rem 1.8rem 1.8rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  z-index: 2;
}

.caption-title {
  font-size: 1.05rem;
  color: var(--text-white);
  font-weight: 600;
}

.caption-sub {
  font-size: 0.8rem;
  color: var(--text-gray);
  opacity: 0.8;
}

/* Technology Focus Section */
.about-tech-section {
  padding: 100px 0;
  background-color: #0c2014; /* Rich deep forest green for alternating background */
  /* border-top replaced by animated divider ::after */
}

.tech-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 6rem;
  align-items: flex-start;
}

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

.tech-headline {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--text-white);
}

.tech-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  font-weight: 350;
}

.tech-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tech-card {
  background: #050c08; /* Darker than the tech section background (#0c2014) to stand out */
  border: 1px solid rgba(83, 172, 88, 0.15);
  border-radius: 8px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.tech-card:hover {
  background: var(--bg-light-accent);
  border-color: var(--brand-primary);
  transform: translateX(5px);
}

.tech-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background-color: var(--gold-primary);
}

.tech-icon {
  width: 40px;
  height: 40px;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-icon svg {
  width: 100%;
  height: 100%;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-white);
  font-weight: 600;
}

.card-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-gray);
  font-weight: 350;
}

/* ==========================================================================
   ABOUT PAGE RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
  .about-content-container, .tech-container {
    padding: 0 2rem;
  }
  .about-grid, .tech-grid {
    gap: 4rem;
  }
  .about-title {
    font-size: 3.2rem;
  }
  .editorial-headline, .tech-headline {
    font-size: 2.4rem;
  }
}

@media (max-width: 900px) {
  .about-hero {
    padding: 140px 0 60px 0;
  }
  .about-title {
    font-size: 2.5rem;
  }
  .about-grid, .tech-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .about-milestones {
    grid-template-columns: repeat(3, 1fr);
  }
  .tech-card {
    padding: 2rem;
  }
}

@media (max-width: 600px) {
  .about-milestones {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ==========================================================================
   PRODUCTS PAGE STYLES
   ========================================================================== */
.products-page-wrapper {
  background-color: var(--bg-dark);
}

.products-hero {
  padding: 180px 0 80px 0;
  background: var(--bg-dark-gradient);
  text-align: center;
  position: relative;
  /* border-bottom replaced by animated divider ::after */
}

.products-hero-container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

.products-main-title {
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1.15;
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

.products-subtitle {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text-gray);
  margin-bottom: 3rem;
  font-weight: 350;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-gray);
  padding: 0.8rem 1.8rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  border-color: var(--gold-primary);
  color: var(--text-white);
}

.filter-btn.active {
  background-color: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #000;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

/* Catalog Section */
.catalog-section {
  padding: 80px 0;
  background-color: #0c2014; /* Rich deep forest green for alternating background */
}

.catalog-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

.products-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.product-item-card {
  background: #050c08; /* Darker than catalog background (#0c2014) to stand out */
  border: 1px solid rgba(83, 172, 88, 0.15);
  border-radius: 8px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.product-item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-action));
  opacity: 0;
  transition: var(--transition-smooth);
}

.product-item-card:hover {
  background: var(--bg-light-accent);
  border-color: var(--brand-primary);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(83, 172, 88, 0.12);
}

.product-item-card:hover::before {
  opacity: 1;
}

.product-card-header {
  margin-bottom: 1.5rem;
}

.product-badge {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--green-accent);
  border: 1px solid rgba(169, 209, 23, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.product-badge.frozen {
  color: #4da6ff;
  border-color: rgba(77, 166, 255, 0.3);
}

.product-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--text-white);
}

.product-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.2rem;
}

.product-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-gray);
  margin-bottom: 2rem;
  font-weight: 350;
  flex-grow: 1;
}

.product-specs-list {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.spec-row .label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-row .val {
  color: var(--text-white);
  font-weight: 500;
}

/* Calculator Section */
.calculator-section {
  padding: 100px 0;
  background: #050c08; /* Deep dark black-green for alternating background */
  border-top: 1px solid rgba(83, 172, 88, 0.1);
}

.calculator-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

.calculator-header {
  text-align: center;
  margin-bottom: 4rem;
}

.calculator-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1.2;
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

.calculator-desc {
  font-size: 1.1rem;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 350;
  line-height: 1.6;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

.calc-input-panel {
  background: #0c2014; /* Rich deep forest green to stand out against calculator section background */
  border: 1px solid rgba(83, 172, 88, 0.15);
  border-radius: 8px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.calc-select {
  background: #050c08; /* Darker than panel to have high contrast */
  border: 1px solid rgba(83, 172, 88, 0.2);
  border-radius: 4px;
  padding: 1rem;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  width: 100%;
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.calc-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 15px rgba(83, 172, 88, 0.15);
}

.calc-select optgroup {
  background-color: #050c08; /* Darker background for option group */
  color: var(--text-white);
  font-family: var(--font-sans);
  padding: 0.5rem;
}

.calc-select option {
  background-color: #050c08; /* Darker background for options */
  color: var(--text-white);
}

.checkbox-group {
  margin-top: 1rem;
}

.toggle-container {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.toggle-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.toggle-slider {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  background-color: rgba(83, 172, 88, 0.15);
  border-radius: 20px;
  transition: 0.3s;
  margin-right: 12px;
  border: 1px solid rgba(83, 172, 88, 0.2);
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--brand-primary);
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-container input:checked + .toggle-slider {
  background-color: var(--brand-action);
}

.toggle-container input:checked + .toggle-slider::before {
  transform: translateX(22px);
  background-color: #fff;
}

.toggle-label {
  font-size: 0.9rem;
  color: var(--text-white);
}

.calc-output-panel {
  background: #0c2014; /* Rich deep forest green to stand out against calculator section background */
  border: 1px solid rgba(83, 172, 88, 0.15);
  border-radius: 8px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.output-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  height: 100%;
}

.output-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.output-item.span-2 {
  grid-column: span 2;
}

.output-item.highlight {
  background: var(--bg-light-accent);
  border-left: 3px solid var(--brand-primary);
  padding: 1.2rem 1.5rem;
  border-radius: 0 6px 6px 0;
}

.out-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.out-value {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-white);
}

.output-item.highlight .out-value {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--gold-primary);
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.3rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-primary), var(--green-accent));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.container-status {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

#out-container-text {
  color: var(--text-gray);
}

.limit-status {
  font-weight: 600;
}

/* ==========================================================================
   PRODUCTS PAGE RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
  .catalog-container, .calculator-container {
    padding: 0 2rem;
  }
  .products-grid-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .calc-grid {
    gap: 2.5rem;
  }
  .products-main-title {
    font-size: 3.2rem;
  }
  .calculator-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 900px) {
  .products-hero {
    padding: 140px 0 60px 0;
  }
  .products-main-title {
    font-size: 2.5rem;
  }
  .products-grid-wrapper {
    grid-template-columns: 1fr;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .calc-input-panel, .calc-output-panel {
    padding: 2rem;
  }
}

/* ==========================================================================
   ADMIN DASHBOARD STYLES
   ========================================================================== */

/* ---------- Login Page ---------- */
.admin-login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  overflow: hidden;
  position: relative;
}

.admin-login-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.login-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.login-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(83, 172, 88, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.login-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(41, 214, 47, 0.08) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
}

.admin-login-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 2rem;
}

.admin-login-card {
  background: var(--bg-white);
  border: 1px solid rgba(83, 172, 88, 0.15);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 15px 35px rgba(83, 172, 88, 0.08);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.admin-login-card.login-success {
  transform: scale(0.95);
  opacity: 0;
}

.admin-login-card.shake {
  animation: shakeCard 0.5s ease;
}

@keyframes shakeCard {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-12px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-8px); }
  80% { transform: translateX(6px); }
}

.login-brand {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-logo {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.login-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 0.5rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.login-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.login-form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-gray);
  letter-spacing: 1px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  background: var(--bg-white);
  border: 1px solid rgba(83, 172, 88, 0.2);
  border-radius: 6px;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.input-wrapper input:focus {
  border-color: var(--brand-primary);
  outline: none;
  background: var(--bg-white);
  box-shadow: 0 0 20px rgba(83, 172, 88, 0.15);
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.password-toggle:hover {
  color: var(--text-white);
}

.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1rem;
  background: rgba(244, 67, 54, 0.08);
  border: 1px solid rgba(244, 67, 54, 0.2);
  border-radius: 6px;
  color: #ff6b6b;
  font-size: 0.85rem;
}

.login-btn {
  margin-top: 0.5rem;
  padding: 1rem;
  font-size: 0.95rem;
}

.btn-loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.login-footer-text {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2rem;
  letter-spacing: 0.5px;
}

/* ---------- Admin Dashboard Layout ---------- */
.admin-body {
  display: flex;
  min-height: 100vh;
  background: var(--bg-dark);
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: var(--bg-offwhite);
  border-right: 1px solid rgba(83, 172, 88, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 100;
  backdrop-filter: blur(20px);
}

.sidebar-header {
  padding: 1.8rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 1px;
}

.sidebar-badge {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-primary);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  color: var(--text-gray);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
  width: 100%;
  position: relative;
}

.sidebar-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-white);
}

.sidebar-link.active {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-primary);
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--gold-primary);
  border-radius: 0 2px 2px 0;
}

.nav-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--gold-primary);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 10px;
  margin-left: auto;
}

.sidebar-footer {
  padding: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.logout-btn:hover {
  background: rgba(244, 67, 54, 0.08) !important;
  color: #ff6b6b !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  background: var(--bg-white);
  border: 1px solid rgba(83, 172, 88, 0.15);
  border-radius: 8px;
  padding: 0.6rem;
  color: var(--text-white);
  cursor: pointer;
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* ---------- Main Content Area ---------- */
.admin-main {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  border-bottom: 1px solid rgba(83, 172, 88, 0.15);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-white);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.admin-greeting {
  font-size: 0.85rem;
  color: var(--text-gray);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
}

/* ---------- Admin Panels ---------- */
.admin-panel {
  display: none;
  padding: 2rem;
  flex: 1;
}

.admin-panel.active {
  display: block;
}

/* ---------- Stats Grid (Overview) ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--bg-white);
  border: 1px solid rgba(83, 172, 88, 0.15);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.stat-card:hover {
  background: var(--bg-light-accent);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(83, 172, 88, 0.1);
}

.stat-card.stat-highlight {
  background: var(--bg-light-accent);
  border-color: var(--brand-primary);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.messages-icon { background: rgba(212, 175, 55, 0.1); color: var(--gold-primary); }
.unread-icon { background: rgba(244, 67, 54, 0.1); color: #ff6b6b; }
.products-icon { background: rgba(169, 209, 23, 0.1); color: var(--green-accent); }
.views-icon { background: rgba(77, 166, 255, 0.1); color: #4da6ff; }

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-white);
  font-family: var(--font-serif);
}

.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ---------- Overview Sections ---------- */
.overview-section {
  background: var(--bg-white);
  border: 1px solid rgba(83, 172, 88, 0.15);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.section-header h3 {
  font-size: 1.1rem;
  color: var(--text-white);
  font-weight: 600;
}

/* Recent Messages */
.recent-message-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.recent-message-item:hover {
  background: var(--bg-light-accent);
}

.recent-message-item.unread {
  border-left: 3px solid var(--gold-primary);
  padding-left: calc(1rem - 3px);
}

.rm-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
  min-width: 0;
}

.rm-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(83, 172, 88, 0.1);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.rm-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rm-name {
  font-size: 0.9rem;
  color: var(--text-white);
}

.rm-preview {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rm-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 1rem;
}

/* Bar Chart */
.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 180px;
  gap: 8px;
  padding: 0 1rem;
}

.bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}

.bar {
  width: 100%;
  max-width: 50px;
  background: linear-gradient(180deg, var(--gold-primary), rgba(212, 175, 55, 0.3));
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
}

.bar-value {
  font-size: 0.75rem;
  color: var(--text-white);
  font-weight: 600;
}

.bar-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Panel Toolbar ---------- */
.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.toolbar-title {
  font-size: 1.1rem;
  color: var(--text-white);
  font-weight: 600;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
}

.search-input {
  background: none;
  border: none;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  width: 200px;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.filter-select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.55rem 1rem;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
}

.filter-select:focus {
  border-color: var(--gold-primary);
}

.results-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Data Table ---------- */
.data-table-wrapper {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.01);
  font-weight: 600;
}

.data-table td {
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  color: var(--text-gray);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

.data-table tr.row-unread td {
  color: var(--text-white);
  font-weight: 500;
}

.msg-preview {
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-unread {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-primary);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.status-read {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-archived {
  background: rgba(255, 255, 255, 0.02);
  color: rgba(100, 122, 109, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Action Buttons in Table */
.actions-cell {
  display: flex;
  gap: 6px;
}

.action-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 5px 7px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

.action-btn.delete-btn:hover {
  border-color: #ff6b6b;
  color: #ff6b6b;
  background: rgba(244, 67, 54, 0.05);
}

/* ---------- Message Detail Panel ---------- */
.detail-panel {
  position: fixed;
  top: 0;
  right: -450px;
  width: 420px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid rgba(83, 172, 88, 0.15);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
}

.detail-panel.open {
  right: 0;
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(83, 172, 88, 0.15);
}

.detail-header h3 {
  font-size: 1.1rem;
  color: var(--text-white);
}

.detail-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

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

.detail-body {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.detail-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.detail-value {
  font-size: 0.95rem;
  color: var(--text-white);
}

.detail-message {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-gray);
  background: var(--bg-light-accent);
  padding: 1rem;
  border-radius: 6px;
  border-left: 3px solid var(--brand-primary);
}

.detail-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 1.5rem;
}

.page-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-gray);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: var(--transition-fast);
}

.page-btn:hover {
  border-color: var(--gold-primary);
  color: var(--text-white);
}

.page-btn.active {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #000;
  font-weight: 600;
}

.page-dots {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0 4px;
}

/* ---------- Admin Products Grid ---------- */
.admin-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.admin-product-card {
  background: var(--bg-white);
  border: 1px solid rgba(83, 172, 88, 0.15);
  border-radius: 10px;
  padding: 1.5rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.admin-product-card:hover {
  border-color: var(--brand-primary);
  background: var(--bg-light-accent);
}

.admin-product-card.product-hidden {
  opacity: 0.5;
  border-style: dashed;
}

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

.apc-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-white);
}

.apc-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.apc-desc {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.5;
}

.apc-specs {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.apc-spec {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.apc-spec span:first-child {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.apc-spec span:last-child {
  color: var(--text-white);
  font-weight: 500;
}

.apc-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

/* Visibility Toggle Mini */
.visibility-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.visibility-toggle input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.toggle-slider-mini {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: 0.3s;
}

.toggle-slider-mini::before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-gray);
  border-radius: 50%;
  transition: 0.3s;
}

.visibility-toggle input:checked + .toggle-slider-mini {
  background-color: var(--gold-primary);
}

.visibility-toggle input:checked + .toggle-slider-mini::before {
  transform: translateX(16px);
  background-color: #000;
}

/* ---------- Content Editor ---------- */
.content-section-group {
  margin-bottom: 2rem;
}

.content-section-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.content-entries {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-entry {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.content-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  font-weight: 600;
}

.content-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  resize: vertical;
}

.content-input:focus {
  border-color: var(--brand-primary);
  outline: none;
  box-shadow: 0 0 12px rgba(83, 172, 88, 0.15);
}

.content-save-btn {
  align-self: flex-start;
}

/* ---------- Settings ---------- */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
}

.settings-card {
  background: var(--bg-white);
  border: 1px solid rgba(83, 172, 88, 0.15);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.settings-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.settings-card-title svg {
  color: var(--gold-primary);
}

.settings-desc {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.settings-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.settings-form input:focus {
  border-color: var(--gold-primary);
  outline: none;
}

.account-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.info-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 0.9rem;
  color: var(--gold-primary);
  font-weight: 500;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 2rem;
}

.modal-card {
  background: var(--bg-white);
  border: 1px solid rgba(83, 172, 88, 0.15);
  border-radius: 12px;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.8rem;
  border-bottom: 1px solid rgba(83, 172, 88, 0.15);
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-white);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

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

.modal-form {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.modal-form input,
.modal-form textarea,
.modal-form select {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-white);
  border: 1px solid rgba(83, 172, 88, 0.2);
  border-radius: 5px;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus {
  border-color: var(--brand-primary);
  outline: none;
  box-shadow: 0 0 12px rgba(83, 172, 88, 0.15);
}

.modal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Spec Row Editor */
.specs-editor {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.specs-editor > label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-gray);
  letter-spacing: 1px;
}

.specs-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spec-row-editor {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.spec-label-input,
.spec-value-input {
  padding: 0.5rem 0.8rem !important;
  font-size: 0.85rem !important;
}

.spec-remove-btn {
  background: none;
  border: 1px solid rgba(244, 67, 54, 0.2);
  color: #ff6b6b;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.spec-remove-btn:hover {
  background: rgba(244, 67, 54, 0.1);
}

/* ---------- Toast Notifications ---------- */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  backdrop-filter: blur(10px);
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 280px;
  max-width: 420px;
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #81c784;
}

.toast-error {
  background: rgba(244, 67, 54, 0.12);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #ff6b6b;
}

.toast-info {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-primary);
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 2rem;
}

/* ---------- Helper Classes ---------- */
.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: 3px; }
.font-semibold { font-weight: 600; }
.block { display: block; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.gold-text { color: var(--gold-primary); }

/* ==========================================================================
   ADMIN RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .admin-sidebar.mobile-open {
    transform: translateX(0);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-topbar {
    padding-left: 4rem;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-panel {
    padding: 1.2rem;
  }

  .admin-products-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    width: 100%;
    right: -100%;
  }

  .topbar-right {
    gap: 0.8rem;
  }

  .admin-greeting {
    display: none;
  }

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

  .modal-card {
    max-height: 90vh;
  }

  .search-input {
    width: 140px;
  }
}

/* ==========================================================================
   LIGHT THEME OVERRIDES FOR SPECIFIC SECTIONS & PAGES
   ========================================================================== */

/* --- 1. Homepage Contact Section --- */
.contact-section {
  color: var(--text-dark);
  background-color: var(--bg-offwhite);
  border-top: 1px solid rgba(83, 172, 88, 0.15);
}
.contact-section .section-title {
  color: var(--text-dark);
}
.contact-section .contact-desc {
  color: var(--text-gray-dark);
}
.contact-section .detail-item {
  border-bottom-color: rgba(83, 172, 88, 0.15);
}
.contact-section .detail-item .label {
  color: var(--text-muted-dark);
}
.contact-section .detail-item .value {
  color: var(--brand-primary);
}
.contact-section .contact-form-wrapper {
  background: var(--bg-white);
  border-color: rgba(83, 172, 88, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.contact-section .form-group label {
  color: var(--text-gray-dark);
}
.contact-section .form-group input,
.contact-section .form-group textarea {
  color: var(--text-dark);
  border-color: rgba(83, 172, 88, 0.2);
  background: var(--bg-white);
}
.contact-section .form-group input:focus,
.contact-section .form-group textarea:focus {
  border-color: var(--brand-primary);
  background: var(--bg-white);
  box-shadow: 0 0 15px rgba(83, 172, 88, 0.15);
}

/* --- 2. About Page --- */
.about-hero {
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-offwhite) 100%) !important;
  border-bottom: 1px solid rgba(83, 172, 88, 0.1);
}
.about-title {
  color: var(--text-dark);
}
.about-subtitle {
  color: var(--text-gray-dark);
}
.about-detail-section {
  background-color: var(--bg-white) !important;
  color: var(--text-gray-dark);
}
.section-tag {
  color: var(--brand-primary) !important;
  border-left-color: var(--brand-primary) !important;
}
.editorial-headline {
  color: var(--text-dark);
}
.editorial-paragraph {
  color: var(--text-gray-dark);
}
.editorial-paragraph.highlight {
  color: var(--text-dark) !important;
  border-bottom-color: rgba(83, 172, 88, 0.2);
}
.about-tech-section {
  background-color: var(--bg-offwhite) !important;
  border-top: 1px solid rgba(83, 172, 88, 0.1);
}
.tech-headline {
  color: var(--text-dark);
}
.tech-desc {
  color: var(--text-gray-dark);
}
.tech-card {
  background: var(--bg-white) !important;
  border-color: rgba(83, 172, 88, 0.15) !important;
}
.tech-card:hover {
  background: var(--bg-light-accent) !important;
  border-color: var(--brand-primary) !important;
}
.card-title {
  color: var(--text-dark);
}
.card-text {
  color: var(--text-gray-dark);
}
.tech-icon {
  color: var(--brand-primary);
}
.tech-card::before {
  background-color: var(--brand-primary);
}

/* --- 3. Products Page --- */
.products-page-wrapper {
  background-color: var(--bg-white) !important;
}
.products-hero {
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-offwhite) 100%) !important;
  border-bottom: 1px solid rgba(83, 172, 88, 0.1);
}
.products-main-title {
  color: var(--text-dark);
}
.products-subtitle {
  color: var(--text-gray-dark);
}
.filter-btn {
  border-color: rgba(83, 172, 88, 0.2) !important;
  color: var(--text-gray-dark) !important;
}
.filter-btn:hover {
  border-color: var(--brand-primary) !important;
  color: var(--text-dark) !important;
}
.filter-btn.active {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: var(--text-light-only) !important;
}
.catalog-section {
  background-color: var(--bg-white) !important;
}
.product-item-card {
  background: var(--bg-white) !important;
  border-color: rgba(83, 172, 88, 0.15) !important;
}
.product-item-card:hover {
  background: var(--bg-light-accent) !important;
  border-color: var(--brand-primary) !important;
  box-shadow: 0 15px 35px rgba(83, 172, 88, 0.1);
}
.product-title {
  color: var(--text-dark);
}
.product-subtext {
  color: var(--text-muted-dark);
}
.product-description {
  color: var(--text-gray-dark);
}
.product-specs-list {
  border-top-color: rgba(83, 172, 88, 0.15);
}
.spec-row .label {
  color: var(--text-muted-dark);
}
.spec-row .val {
  color: var(--text-dark) !important;
}
.calculator-section {
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-offwhite) 100%) !important;
  border-top: 1px solid rgba(83, 172, 88, 0.1);
}
.calculator-title {
  color: var(--text-dark);
}
.calculator-desc {
  color: var(--text-gray-dark);
}
.calc-select option {
  background-color: var(--bg-white);
  color: var(--text-white);
}

/* --- 4. Admin Pages --- */
.admin-login-body {
  background: var(--bg-offwhite) !important;
}
.admin-login-card {
  background: var(--bg-white) !important;
  border-color: rgba(83, 172, 88, 0.15) !important;
  box-shadow: 0 15px 35px rgba(83, 172, 88, 0.08) !important;
}
.login-logo {
  color: var(--text-dark);
}
.login-logo .logo-white {
  color: var(--text-dark);
}
.login-form-group label {
  color: var(--text-gray-dark);
}
.input-wrapper input {
  background: var(--bg-white) !important;
  border-color: rgba(83, 172, 88, 0.2) !important;
  color: var(--text-dark) !important;
}
.input-wrapper input:focus {
  border-color: var(--brand-primary) !important;
  background: var(--bg-white) !important;
  box-shadow: 0 0 20px rgba(83, 172, 88, 0.15) !important;
}
.admin-body {
  background: var(--bg-offwhite) !important;
  color: var(--text-dark) !important;
}
.admin-sidebar {
  background: var(--bg-white) !important;
  border-right-color: rgba(83, 172, 88, 0.15) !important;
}
.sidebar-logo {
  color: var(--text-dark);
}
.sidebar-logo .logo-white {
  color: var(--text-dark);
}
.sidebar-link {
  color: var(--text-gray-dark) !important;
}
.sidebar-link:hover {
  background: var(--bg-offwhite) !important;
  color: var(--text-dark) !important;
}
.sidebar-link.active {
  background: var(--bg-light-accent) !important;
  color: var(--brand-primary) !important;
}
.sidebar-link.active::before {
  background: var(--brand-primary) !important;
}
.admin-topbar {
  border-bottom-color: rgba(83, 172, 88, 0.15) !important;
  background: rgba(4, 9, 6, 0.85) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}
.topbar-title {
  color: var(--text-dark) !important;
}
.admin-greeting {
  color: var(--text-gray-dark);
}
.stat-card {
  background: var(--bg-white) !important;
  border-color: rgba(83, 172, 88, 0.15) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}
.stat-card:hover {
  background: var(--bg-light-accent) !important;
  border-color: var(--brand-primary) !important;
  box-shadow: 0 4px 15px rgba(83, 172, 88, 0.1) !important;
}
.stat-card.stat-highlight {
  background: var(--bg-light-accent) !important;
  border-color: var(--brand-primary) !important;
}
.stat-number {
  color: var(--text-dark);
}
.stat-label {
  color: var(--text-muted-dark);
}
.overview-section {
  background: var(--bg-white) !important;
  border-color: rgba(83, 172, 88, 0.15) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}
.section-header h3 {
  color: var(--text-dark) !important;
}
.recent-message-item:hover {
  background: var(--bg-light-accent) !important;
}
.rm-name {
  color: var(--text-dark);
}
.rm-preview {
  color: var(--text-muted-dark);
}
.rm-time {
  color: var(--text-muted-dark);
}
.bar-value {
  color: var(--text-dark);
}
.bar-label {
  color: var(--text-muted-dark);
}
.search-box {
  background: var(--bg-white) !important;
  border-color: rgba(83, 172, 88, 0.2) !important;
  color: var(--text-muted-dark) !important;
}
.search-input {
  color: var(--text-dark) !important;
}
.search-input::placeholder {
  color: var(--text-muted-dark) !important;
}
.filter-select {
  background: var(--bg-white) !important;
  border-color: rgba(83, 172, 88, 0.2) !important;
  color: var(--text-dark) !important;
}
.filter-select:focus {
  border-color: var(--brand-primary) !important;
}
.results-count {
  color: var(--text-muted-dark);
}
.data-table-wrapper {
  border-color: rgba(83, 172, 88, 0.15) !important;
}
.data-table th {
  color: var(--text-muted-dark) !important;
  border-bottom-color: rgba(83, 172, 88, 0.15) !important;
  background: var(--bg-offwhite) !important;
}
.data-table td {
  color: var(--text-gray-dark) !important;
  border-bottom-color: rgba(83, 172, 88, 0.1) !important;
}
.data-table tr:hover td {
  background: var(--bg-offwhite) !important;
}
.data-table tr.row-unread td {
  color: var(--text-dark) !important;
}
.msg-preview {
  color: var(--text-muted-dark) !important;
}
.status-read {
  background: var(--bg-offwhite) !important;
  color: var(--text-muted-dark) !important;
  border-color: rgba(83, 172, 88, 0.2) !important;
}
.status-archived {
  background: var(--bg-offwhite) !important;
  color: rgba(92, 112, 101, 0.6) !important;
  border-color: rgba(83, 172, 88, 0.1) !important;
}
.action-btn {
  border-color: rgba(83, 172, 88, 0.2) !important;
  color: var(--text-muted-dark) !important;
}
.action-btn:hover {
  border-color: var(--brand-primary) !important;
  color: var(--brand-primary) !important;
  background: var(--bg-light-accent) !important;
}
.detail-panel {
  background: rgba(10, 17, 13, 0.98) !important;
  border-left-color: rgba(83, 172, 88, 0.15) !important;
}
.detail-header {
  border-bottom-color: rgba(83, 172, 88, 0.15) !important;
}
.detail-header h3 {
  color: var(--text-dark) !important;
}
.detail-close:hover {
  color: var(--text-dark) !important;
}
.detail-label {
  color: var(--text-muted-dark) !important;
}
.detail-value {
  color: var(--text-dark) !important;
}
.detail-message {
  color: var(--text-gray-dark) !important;
  background: var(--bg-light-accent) !important;
  border-left-color: var(--brand-primary) !important;
}
.detail-actions {
  border-top-color: rgba(83, 172, 88, 0.15) !important;
}
.page-btn {
  background: var(--bg-white) !important;
  border-color: rgba(83, 172, 88, 0.2) !important;
  color: var(--text-gray-dark) !important;
}
.page-btn:hover {
  border-color: var(--brand-primary) !important;
  color: var(--text-dark) !important;
}
.page-btn.active {
  background: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: var(--text-light-only) !important;
}
.page-dots {
  color: var(--text-muted-dark) !important;
}
.admin-products-grid {
  background: var(--bg-offwhite) !important;
}
.admin-product-card {
  background: var(--bg-white) !important;
  border-color: rgba(83, 172, 88, 0.15) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}
.admin-product-card:hover {
  border-color: var(--brand-primary) !important;
  background: var(--bg-light-accent) !important;
}
.apc-title {
  color: var(--text-dark) !important;
}
.apc-subtitle {
  color: var(--text-muted-dark) !important;
}
.apc-desc {
  color: var(--text-gray-dark) !important;
}
.apc-specs {
  border-top-color: rgba(83, 172, 88, 0.15) !important;
}
.apc-spec span:first-child {
  color: var(--text-muted-dark) !important;
}
.apc-spec span:last-child {
  color: var(--text-dark) !important;
}
.visibility-toggle .toggle-slider-mini {
  background-color: rgba(83, 172, 88, 0.15) !important;
}
.visibility-toggle .toggle-slider-mini::before {
  background-color: var(--brand-primary) !important;
}
.visibility-toggle input:checked + .toggle-slider-mini {
  background-color: var(--brand-action) !important;
}
.visibility-toggle input:checked + .toggle-slider-mini::before {
  background-color: #fff !important;
}
.content-section-title {
  color: var(--brand-primary) !important;
  border-bottom-color: rgba(83, 172, 88, 0.15) !important;
}
.content-entry {
  background: var(--bg-white) !important;
  border-color: rgba(83, 172, 88, 0.15) !important;
}
.content-label {
  color: var(--text-muted-dark) !important;
}
.content-input {
  background: var(--bg-white) !important;
  border-color: rgba(83, 172, 88, 0.2) !important;
  color: var(--text-dark) !important;
}
.content-input:focus {
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 12px rgba(83, 172, 88, 0.15) !important;
}
.settings-card {
  background: var(--bg-white) !important;
  border-color: rgba(83, 172, 88, 0.15) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}
.settings-card-title {
  color: var(--text-dark) !important;
}
.settings-card-title svg {
  color: var(--brand-primary) !important;
}
.settings-desc {
  color: var(--text-gray-dark) !important;
}
.settings-form input {
  background: var(--bg-white) !important;
  border-color: rgba(83, 172, 88, 0.2) !important;
  color: var(--text-dark) !important;
}
.settings-form input:focus {
  border-color: var(--brand-primary) !important;
}
.info-row {
  border-bottom-color: rgba(83, 172, 88, 0.15) !important;
}
.info-label {
  color: var(--text-muted-dark) !important;
}
.info-value {
  color: var(--brand-primary) !important;
}
.modal-card {
  background: var(--bg-white) !important;
  border-color: rgba(83, 172, 88, 0.15) !important;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15) !important;
}
.modal-header {
  border-bottom-color: rgba(83, 172, 88, 0.15) !important;
}
.modal-header h3 {
  color: var(--text-dark) !important;
}
.modal-close {
  color: var(--text-muted-dark) !important;
}
.modal-close:hover {
  color: var(--text-dark) !important;
}
.modal-form input,
.modal-form textarea,
.modal-form select {
  background: var(--bg-white) !important;
  border-color: rgba(83, 172, 88, 0.2) !important;
  color: var(--text-dark) !important;
}
.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus {
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 12px rgba(83, 172, 88, 0.15) !important;
}
.specs-editor > label {
  color: var(--text-gray-dark) !important;
}
.spec-remove-btn {
  border-color: rgba(244, 67, 54, 0.2) !important;
  color: #ff6b6b !important;
}
.spec-remove-btn:hover {
  background: rgba(244, 67, 54, 0.1) !important;
}
.toast-info {
  background: var(--bg-light-accent) !important;
  border-color: rgba(83, 172, 88, 0.3) !important;
  color: var(--brand-primary) !important;
}
.empty-state {
  color: var(--text-muted-dark) !important;
}
.gold-text {
  color: var(--brand-primary) !important;
}

/* ==========================================================================
   HOMEPAGE (DARK GOLD THEME) RESTORATION
   ========================================================================== */
.home-page {
  /* Restore original background colors */
  --bg-dark: #070f0b;
  --bg-dark-gradient: linear-gradient(135deg, #040906 0%, #0d1e13 100%);
  --bg-dark-blend: #040905;
  --bg-white: #070f0b; /* Keep main content area backgrounds dark on homepage */
  
  /* Restore original gold palette */
  --gold-primary: #d4af37;
  --gold-hover: #f3c614;
  --gold-glow: rgba(212, 175, 55, 0.15);
  --green-accent: #a9d117;
  --green-glow: rgba(169, 209, 23, 0.2);
  
  /* Map brand colors to original gold palette on the homepage hero scroll */
  --brand-primary: #d4af37;
  --brand-action: #d4af37;
  --brand-accent: #a9d117;
  
  /* Restore original text colors */
  --text-white: #ffffff;
  --text-gray: #b2c0b6;
  --text-muted: #647a6d;
}

/* Specific button style overrides for homepage hero to match gold theme */
.home-page .btn-primary {
  color: #050d09 !important;
  font-weight: 700 !important;
}

.home-page .btn-primary:hover {
  background: #f3c614 !important;
  border-color: #f3c614 !important;
  color: #050d09 !important;
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.25) !important;
}

.home-page .btn-secondary {
  background: transparent !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.home-page .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1) !important;
}

.home-page .btn-outline {
  border-color: rgba(212, 175, 55, 0.4) !important;
  color: #d4af37 !important;
  background: transparent !important;
}

.home-page .btn-outline:hover {
  border-color: #d4af37 !important;
  background: rgba(212, 175, 55, 0.08) !important;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15) !important;
}

/* Scoping contact section on homepage to use new brand green palette */
.home-page .contact-section {
  --brand-primary: #53AC58;      /* Primary Brand Green */
  --brand-action: #29D62F;       /* Action Green */
  --brand-accent: #FFFE00;       /* Accent Yellow */
  --gold-primary: #53AC58;
  --gold-hover: #29D62F;
  --bg-white: #0a110d;
  --bg-offwhite: #040906;
  --text-white: #ffffff;
}

.home-page .contact-section .btn-primary {
  color: var(--text-light-only) !important;
  font-weight: 600 !important;
}

.home-page .contact-section .btn-primary:hover {
  background: #1cb522 !important;
  border-color: #1cb522 !important;
  color: var(--text-light-only) !important;
  box-shadow: 0 10px 20px rgba(41, 214, 47, 0.25) !important;
}



/* Scrollbar — brand green instead of old gold for non-homepage pages */
::-webkit-scrollbar-thumb {
  background: rgba(83, 172, 88, 0.3);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary);
}

/* Homepage scrollbar — restore gold accent */
.home-page ::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3) !important;
}
.home-page ::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary) !important;
}

/* ==========================================================================
   LOGO CONSISTENCY — IZI always green, EAT always white
   ========================================================================== */
/* Force logo-gold to always be brand green on ALL pages, including homepage */
.logo-gold {
  color: #53AC58 !important;
}

/* On homepage dark background, EAT stays white (already default) */
/* On about/products pages with dark hero, EAT stays white (already default) */

/* ==========================================================================
   HOMEPAGE SPACER — Gap between hero scroll and contact section
   ========================================================================== */
.home-page .contact-section {
  margin-top: 0;
}

/* ==========================================================================
   SECTION DIVIDERS — Animated gradient lines between every section
   Applies to all pages via ::after pseudo-element on major sections
   ========================================================================== */
@keyframes dividerShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}



/* Divider before the contact section on all pages */
.contact-section::before {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(83, 172, 88, 0.05) 10%,
    rgba(83, 172, 88, 0.4) 30%,
    #53AC58 50%,
    rgba(83, 172, 88, 0.4) 70%,
    rgba(83, 172, 88, 0.05) 90%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: dividerShimmer 4s ease-in-out infinite;
  z-index: 20;
}

/* Remove the old static border-top on contact-section since we use animated divider */
.contact-section {
  border-top: none !important;
}

/* Stage 6 Compact Floating Style */
#stage-6 {
  padding-bottom: 5vh;
}
#stage-6 .text-content {
  padding: 2.2rem;
}
#stage-6 .supporting-text {
  margin-bottom: 1.2rem;
}
#stage-6 .kernel-details-box {
  margin-bottom: 1.2rem;
  padding: 1rem 1.2rem;
}

/* ==========================================================================
   INTERACTIVE SECTION ALTERNATING BACKGROUNDS (About & Products Pages)
   ========================================================================== */

/* About Page */
.about-page-wrapper .about-detail-section {
  background-color: #0d1a13 !important; /* Rich forest green */
}
.about-page-wrapper .about-tech-section {
  background-color: #040906 !important; /* Deepest dark green-black */
}
.about-page-wrapper .tech-card {
  background: rgba(255, 255, 255, 0.01) !important;
}
.about-page-wrapper .tech-card:hover {
  background: rgba(83, 172, 88, 0.04) !important;
}

/* Products Page */
.products-page-wrapper .catalog-section {
  background-color: #040906 !important; /* Deepest dark green-black */
}
.products-page-wrapper .product-item-card {
  background: rgba(255, 255, 255, 0.015) !important;
}
.products-page-wrapper .product-item-card:hover {
  background: rgba(83, 172, 88, 0.04) !important;
}
.products-page-wrapper .calculator-section {
  background: linear-gradient(180deg, #040906 0%, #0d1a13 100%) !important; /* Transition from black to forest green */
}
.products-page-wrapper .calc-input-panel,
.products-page-wrapper .calc-output-panel {
  background: rgba(255, 255, 255, 0.01) !important;
}

/* Shared Contact/Footer Section on Non-Homepage Pages */
body:not(.home-page) .contact-section {
  background-color: var(--bg-offwhite) !important;
}
body:not(.home-page) .contact-form-wrapper {
  background: rgba(255, 255, 255, 0.015) !important;
  border: 1px solid rgba(83, 172, 88, 0.15) !important;
}

/* Force solid navigation bar background on all inner/non-homepage pages */
body:not(.home-page) .site-header {
  background: #318617 !important; /* Kelly Green */
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================================================
   INTERACTIVE CONTACT PAGE STYLES
   ========================================================================== */

.contact-page-wrapper {
  background-color: var(--bg-offwhite);
  min-height: 100vh;
}

.contact-hero {
  padding: 180px 0 80px 0;
  background: var(--bg-dark-gradient);
  text-align: center;
  position: relative;
}

.contact-hero-container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

.contact-main-title {
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1.15;
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

.contact-subtitle {
  font-size: 1.25rem;
  color: var(--text-gray);
  font-weight: 350;
}

.contact-form-section {
  padding: 60px 0 100px 0;
  background-color: #050c08; /* Dark base matching about details */
}

.contact-page-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: start;
}

/* Left Panel: Stepper Configurator */
.interactive-form-panel {
  background: #0c2014; /* Richer green for depth */
  border: 1px solid rgba(83, 172, 88, 0.15);
  border-radius: 12px;
  padding: 3.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  position: relative;
}

/* Stepper Progress bar */
.stepper-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  margin-bottom: 4rem;
  border-radius: 2px;
}

.progress-track-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-action));
  width: 0%;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.step-indicators {
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.step-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #050c08;
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.step-bubble.active {
  background: var(--brand-action);
  border-color: var(--brand-action);
  color: var(--text-light-only);
  box-shadow: 0 0 15px rgba(41, 214, 47, 0.4);
}

/* Stepper content panes */
.step-pane {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.step-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.pane-title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  line-height: 1.25;
  color: var(--text-white);
  margin-bottom: 0.6rem;
}

.pane-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* Custom Interactive Radio/Checkbox Cards Grid */
.option-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.option-card {
  cursor: pointer;
  display: block;
  user-select: none;
}

.option-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-card-content {
  background: #050c08; /* Darker than container #0c2014 for pop */
  border: 1px solid rgba(83, 172, 88, 0.15);
  border-radius: 8px;
  padding: 2rem 1.8rem;
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.option-card:hover .option-card-content {
  border-color: var(--brand-primary);
  background: rgba(83, 172, 88, 0.02);
  transform: translateY(-3px);
}

.option-card input:checked + .option-card-content {
  border-color: var(--brand-action);
  background: rgba(83, 172, 88, 0.08);
  box-shadow: 0 10px 25px rgba(41, 214, 47, 0.1);
}

.option-card .icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(83, 172, 88, 0.1);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
}

.option-card .icon-circle svg {
  width: 22px;
  height: 22px;
}

.option-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-white);
  font-weight: 600;
}

.option-card p {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.5;
  font-weight: 350;
}

/* Badges for Product Checks */
.badge-vacuum, .badge-frozen, .badge-custom {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  display: inline-block;
  align-self: flex-start;
}

.badge-vacuum {
  color: var(--brand-primary);
  background: rgba(83, 172, 88, 0.1);
  border: 1px solid rgba(83, 172, 88, 0.2);
}

.badge-frozen {
  color: #4da6ff;
  background: rgba(77, 166, 255, 0.1);
  border: 1px solid rgba(77, 166, 255, 0.2);
}

.badge-custom {
  color: var(--brand-accent);
  background: rgba(255, 254, 0, 0.1);
  border: 1px solid rgba(255, 254, 0, 0.2);
}

/* User Form Step 3 Styling */
.details-form-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stepper-actions {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  margin-top: 2.5rem;
}

.status-msg {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border-radius: 6px;
  font-size: 0.95rem;
  text-align: center;
}

.status-msg.success {
  background: rgba(129, 199, 132, 0.1);
  border: 1px solid rgba(129, 199, 132, 0.3);
  color: #81c784;
}

.status-msg.error {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
}

/* Right Panel: Information Sidebar */
.info-sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hub-locations-card, .faq-accordion-card {
  background: #0c2014;
  border: 1px solid rgba(83, 172, 88, 0.15);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.sidebar-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-white);
  margin-bottom: 1.8rem;
  line-height: 1.25;
}

/* Hub location Tabs & Panes */
.hub-tabs {
  display: flex;
  gap: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
  margin-bottom: 1.8rem;
}

.hub-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 1px;
  transition: var(--transition-fast);
  position: relative;
  padding-bottom: 0.5rem;
}

.hub-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-action);
  transition: var(--transition-fast);
}

.hub-tab-btn.active {
  color: var(--text-white);
}

.hub-tab-btn.active::after {
  width: 100%;
}

.hub-pane {
  display: none;
  animation: tabFadeIn 0.4s ease-out;
}

.hub-pane.active {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hub-meta-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 1.2rem;
}

.hub-meta-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hub-meta-item .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.hub-meta-item .value {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.5;
}

.hub-meta-item .value.text-green {
  color: var(--brand-primary);
  font-weight: 500;
}

/* FAQ Accordion Styles */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-item {
  background: #050c08;
  border: 1px solid rgba(83, 172, 88, 0.15);
  border-radius: 6px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-white);
  transition: var(--transition-fast);
}

.faq-trigger:hover {
  background: rgba(83, 172, 88, 0.03);
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--brand-primary);
  font-weight: 600;
  transition: var(--transition-fast);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.6;
  font-weight: 350;
}

.faq-item.open {
  border-color: var(--brand-primary);
  box-shadow: 0 4px 15px rgba(83, 172, 88, 0.05);
}

/* ==========================================================================
   CONTACT PAGE RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
  .contact-page-container {
    padding: 0 2rem;
  }
  .contact-main-grid {
    gap: 2.5rem;
  }
  .contact-main-title {
    font-size: 3.2rem;
  }
  .interactive-form-panel {
    padding: 2.5rem;
  }
  .hub-locations-card, .faq-accordion-card {
    padding: 2rem;
  }
}

@media (max-width: 900px) {
  .contact-hero {
    padding: 140px 0 60px 0;
  }
  .contact-main-title {
    font-size: 2.5rem;
  }
  .contact-main-grid {
    grid-template-columns: 1fr;
  }
  .option-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

@media (max-width: 600px) {
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ==========================================================================
   LIGHT MIXED BACKGROUND OVERRIDES (About, Products, & Contact Pages)
   ========================================================================== */

/* --- ABOUT PAGE DETAIL SECTION OVERRIDES --- */
.about-page-wrapper .about-detail-section {
  background-color: #f4f8f5 !important;
}
.about-page-wrapper .about-detail-section .editorial-headline {
  color: #0b1d12 !important;
}
.about-page-wrapper .about-detail-section .editorial-paragraph {
  color: #2c4435 !important;
}
.about-page-wrapper .about-detail-section .editorial-paragraph.highlight {
  color: #0b1d12 !important;
  border-bottom: 1px dashed rgba(11, 29, 18, 0.15) !important;
}
.about-page-wrapper .about-detail-section .milestone-card {
  background: #ffffff !important;
  border: 1px solid rgba(83, 172, 88, 0.25) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}
.about-page-wrapper .about-detail-section .milestone-card:hover {
  background: #eaf1eb !important;
  border-color: var(--brand-action) !important;
  box-shadow: 0 6px 20px rgba(83, 172, 88, 0.15) !important;
}
.about-page-wrapper .about-detail-section .milestone-number {
  color: var(--brand-primary) !important;
}
.about-page-wrapper .about-detail-section .milestone-desc {
  color: #2c4435 !important;
}

/* --- PRODUCTS PAGE CATALOG OVERRIDES --- */
.products-page-wrapper .catalog-section {
  background-color: #f4f8f5 !important;
}
.products-page-wrapper .product-item-card {
  background: #ffffff !important;
  border: 1px solid rgba(83, 172, 88, 0.2) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02) !important;
}
.products-page-wrapper .product-item-card:hover {
  background: #ffffff !important;
  border-color: var(--brand-primary) !important;
  box-shadow: 0 15px 35px rgba(83, 172, 88, 0.15) !important;
}
.products-page-wrapper .product-title {
  color: #0b1d12 !important;
}
.products-page-wrapper .product-description {
  color: #2c4435 !important;
}
.products-page-wrapper .product-subtext {
  color: #647a6d !important;
}
.products-page-wrapper .spec-row {
  border-top-color: rgba(0, 0, 0, 0.05) !important;
}
.products-page-wrapper .spec-row .label {
  color: #647a6d !important;
}
.products-page-wrapper .spec-row .val {
  color: #0b1d12 !important;
}

/* --- CONTACT PAGE FORM & SIDEBAR OVERRIDES --- */
.contact-page-wrapper .contact-form-section {
  background-color: #f4f8f5 !important;
}
.contact-page-wrapper .interactive-form-panel {
  background: #ffffff !important;
  border: 1px solid rgba(83, 172, 88, 0.15) !important;
  box-shadow: 0 15px 35px rgba(83, 172, 88, 0.08) !important;
}
.contact-page-wrapper .pane-title {
  color: #0b1d12 !important;
}
.contact-page-wrapper .pane-subtitle {
  color: #4a6050 !important;
}
.contact-page-wrapper .form-group label {
  color: #2c4435 !important;
}
.contact-page-wrapper .form-group input,
.contact-page-wrapper .form-group textarea {
  background: #ffffff !important;
  color: #0b1d12 !important;
  border: 1px solid rgba(83, 172, 88, 0.25) !important;
}
.contact-page-wrapper .form-group input::placeholder,
.contact-page-wrapper .form-group textarea::placeholder {
  color: #8fa395 !important;
}
.contact-page-wrapper .form-group input:focus,
.contact-page-wrapper .form-group textarea:focus {
  border-color: var(--brand-primary) !important;
  background: #ffffff !important;
  box-shadow: 0 0 15px rgba(83, 172, 88, 0.1) !important;
}
.contact-page-wrapper .option-card-content {
  background: #f4f8f5 !important;
  border: 1px solid rgba(83, 172, 88, 0.15) !important;
}
.contact-page-wrapper .option-card:hover .option-card-content {
  background: #ffffff !important;
  border-color: var(--brand-primary) !important;
}
.contact-page-wrapper .option-card input:checked + .option-card-content {
  background: rgba(83, 172, 88, 0.08) !important;
  border-color: var(--brand-action) !important;
  box-shadow: 0 10px 25px rgba(41, 214, 47, 0.08) !important;
}
.contact-page-wrapper .option-card h3 {
  color: #0b1d12 !important;
}
.contact-page-wrapper .option-card p {
  color: #2c4435 !important;
}

/* Stepper progress in light mode */
.contact-page-wrapper .stepper-progress {
  background: rgba(0, 0, 0, 0.05) !important;
}
.contact-page-wrapper .step-bubble {
  background: #f4f8f5 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #647a6d !important;
}
.contact-page-wrapper .step-bubble.active {
  background: var(--brand-action) !important;
  border-color: var(--brand-action) !important;
  color: #ffffff !important;
}

/* Sidebar and Locations cards */
.contact-page-wrapper .hub-locations-card,
.contact-page-wrapper .faq-accordion-card {
  background: #ffffff !important;
  border: 1px solid rgba(83, 172, 88, 0.15) !important;
  box-shadow: 0 15px 35px rgba(83, 172, 88, 0.06) !important;
}
.contact-page-wrapper .sidebar-title {
  color: #0b1d12 !important;
}
.contact-page-wrapper .hub-tab-btn {
  color: #647a6d !important;
}
.contact-page-wrapper .hub-tab-btn.active {
  color: #0b1d12 !important;
}
.contact-page-wrapper .hub-meta-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}
.contact-page-wrapper .hub-meta-item .value {
  color: #2c4435 !important;
}

/* FAQ accordion cards in light mode */
.contact-page-wrapper .faq-item {
  background: #f4f8f5 !important;
  border: 1px solid rgba(83, 172, 88, 0.15) !important;
}
.contact-page-wrapper .faq-trigger {
  color: #0b1d12 !important;
}
.contact-page-wrapper .faq-trigger:hover {
  background: rgba(83, 172, 88, 0.03) !important;
}
.contact-page-wrapper .faq-answer p {
  color: #2c4435 !important;
}
.contact-page-wrapper .faq-item.open {
  border-color: var(--brand-primary) !important;
  box-shadow: 0 4px 15px rgba(83, 172, 88, 0.05) !important;
}

/* --- CUTE CORN COB PRELOADER DOODLE --- */
.corncob-loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.5rem;
  perspective: 1000px;
}

.corncob-doodle-wrapper {
  width: 120px;
  height: 120px;
  transform-style: preserve-3d;
  transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: corncob-float 2.5s ease-in-out infinite;
}

.corncob-doodle {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

@keyframes corncob-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* --- PREMIUM PRODUCT MODAL OVERLAY & CARD HOVER UPGRADES --- */
.product-item-card {
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.product-item-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.4) !important;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15) !important;
}

.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 9, 5, 0.88);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.product-modal-container {
  background: linear-gradient(135deg, rgba(14, 23, 15, 0.98) 0%, rgba(8, 14, 9, 0.99) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 20px;
  width: 92%;
  max-width: 960px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: scale(0.92) translateY(10px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.product-modal-overlay.show .product-modal-container {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
  line-height: 1;
}

.modal-close-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: rotate(90deg);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.product-modal-content {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  height: 100%;
  min-height: 480px;
}

.product-modal-image-pane {
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid rgba(212, 175, 55, 0.15);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 350px;
}

.product-modal-image-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s ease;
}

.product-modal-image-pane:hover img {
  transform: scale(1.03);
}

.product-modal-info-pane {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.product-modal-info-pane #modal-product-badge {
  align-self: flex-start;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.product-modal-info-pane h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 0.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.product-modal-info-pane #modal-product-subtext {
  font-size: 1rem;
  color: var(--gold-primary);
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: block;
}

.product-modal-info-pane p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.modal-specs-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.modal-specs-section h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.modal-specs-section .product-specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 0;
}

.modal-specs-section .spec-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.4rem;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.modal-specs-section .spec-row .label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.modal-specs-section .spec-row .val {
  font-size: 0.85rem;
  color: var(--white);
  font-weight: 500;
}

.modal-cta-buttons {
  display: flex;
  gap: 1rem;
}

.modal-cta-buttons .btn {
  flex: 1;
  padding: 1rem;
  font-size: 0.9rem;
  text-align: center;
  justify-content: center;
}

/* Modal Body Lock to prevent scrolling underneath */
body.modal-open {
  overflow: hidden !important;
}

/* Responsive adjustments */
@media (max-width: 868px) {
  .product-modal-content {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }
  .product-modal-image-pane {
    border-right: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    height: 260px;
    min-height: 260px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .product-modal-image-pane img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
  .product-modal-info-pane {
    padding: 2rem;
  }
  .product-modal-container {
    max-height: 90vh;
  }
}

@media (max-width: 576px) {
  .modal-specs-section .product-specs-list {
    grid-template-columns: 1fr;
  }
  .modal-cta-buttons {
    flex-direction: column;
  }
  .product-modal-info-pane h2 {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   LEGAL POLICY POPUP MODAL STYLES
   ========================================================================== */
.legal-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 9, 6, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.legal-modal-container {
  background: #0d2112;
  border: 1px solid rgba(83, 172, 88, 0.25);
  border-radius: 16px;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-modal-overlay.show .legal-modal-container {
  transform: scale(1);
}

.legal-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, color 0.2s ease;
  z-index: 10;
}

.legal-modal-close:hover {
  opacity: 1;
  color: var(--brand-action);
}

.legal-modal-content {
  padding: 3.5rem 3rem;
  overflow-y: auto;
  color: #ffffff;
}

.legal-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--brand-primary);
  padding-bottom: 0.5rem;
}

.legal-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-gray);
}

.legal-body p {
  margin-bottom: 1.2rem;
}

.legal-body h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin: 1.8rem 0 0.8rem 0;
  font-family: var(--font-sans);
  font-weight: 600;
}


