/* Glass Card Architecture */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 40px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(0, 102, 255, 0.3);
    transform: translateY(-5px);
}

/* Luxury Buttons */
.btn-primary {
    background: var(--white);
    color: var(--bg-main);
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border);
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: width 0.3s, height 0.3s, transform 0.1s ease;
}

@media(pointer: coarse) {
    .cursor-dot, .cursor-outline { display: none; }
}

/* Header & Nav base defined below with dynamic scroll shrink */

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5vw;
}

.site-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.site-logo .logo-sub {
    color: var(--primary);
    margin-left: 4px;
}

.site-nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--gray);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: 0.3s;
}

/* Loader Screen */
.loader-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-main);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.loader-progress-bar {
    width: 200px;
    height: 2px;
    background: var(--border);
    margin: 0 auto 15px auto;
    overflow: hidden;
}

.loader-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: width 0.2s ease;
}

.loader-counter {
    font-size: 0.9rem;
    color: var(--gray);
}

/* ==========================================================================
   UNIFIED DRAWERS, HAMBURGER, CLIENT PORTAL BUTTON & BACK-TO-TOP
   ========================================================================== */
.eco-hamburger-btn {
  background: rgba(24, 32, 27, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  padding: 9px 11px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-right: 15px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.eco-hamburger-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: #d4af37;
}
.eco-hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #d4af37;
  border-radius: 2px;
}
.vip-reward-pill-btn {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  padding: 8px 16px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s;
  text-decoration: none;
}
.vip-reward-pill-btn:hover {
  background: #d4af37;
  color: #00472a !important;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}
.ecosystem-side-drawer,
.profile-side-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 350px;
  max-width: 86vw;
  background: #0d120f;
  z-index: 10002;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 50px rgba(0,0,0,0.85);
  box-sizing: border-box;
}
.ecosystem-side-drawer {
  left: 0;
  transform: translateX(-100%);
  border-right: 1px solid rgba(212, 175, 55, 0.25);
}
.ecosystem-side-drawer.active {
  transform: translateX(0);
}
.profile-side-drawer {
  right: 0;
  transform: translateX(100%);
  border-left: 1px solid rgba(212, 175, 55, 0.25);
}
.profile-side-drawer.active {
  transform: translateX(0);
}
.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #141b16;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px 14px;
  text-decoration: none;
  transition: all 0.2s;
}
.drawer-link:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: #d4af37;
  transform: translateX(4px);
}
.drawer-link.active {
  border-color: #d4af37;
  background: rgba(212, 175, 55, 0.15);
}
.back-to-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #111513;
  border: 2px solid #d4af37;
  color: #d4af37;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 15px rgba(212,175,55,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
}
.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top-btn:hover {
  background: #d4af37;
  color: #00472a;
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.8), 0 0 25px rgba(212,175,55,0.5);
}


/* ==========================================================================
   ENHANCED HEADER NAVBAR & ACTIVE PAGE INDICATOR
   ========================================================================== */
html {
  scroll-behavior: smooth;
}
/* Top Dynamic Scroll Progress Rail */
.scroll-rail {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #AD8A3E 0%, #D4AF37 50%, #FDFCF8 80%, #D4AF37 100%);
  z-index: 9999;
  transition: width 0.08s linear;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
  pointer-events: none;
}

/* Modal Backdrops & Overlays (Hidden by default, shown when .active) */
.booking-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 5, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.booking-modal-backdrop.active {
  display: flex !important;
}
.booking-modal-card {
  background: #0d120f;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 35px 30px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

/* Luxury Editorial Navbar - Initially Transparent & Spacious */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  padding: 18px 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scrolled state: Luxury Rolex Deep Emerald Frosted Glass & Shrink */
.site-header.scrolled {
  background: rgba(6, 39, 32, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding: 9px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}
.header-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-logo:hover {
  transform: scale(1.06);
}
.site-logo img {
  height: 44px;
  width: 44px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.35));
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav .nav-link {
  position: relative;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 999px;
  transition: all 0.25s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.site-nav .nav-link:hover {
  color: #ffffff;
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.25);
}
/* Active Selected Page Indicator */
.site-nav .nav-link.active {
  color: #d4af37 !important;
  background: rgba(212, 175, 55, 0.18) !important;
  border: 1px solid rgba(212, 175, 55, 0.5) !important;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
  font-weight: 700;
}
.site-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, #ffe082);
  border-radius: 999px;
  box-shadow: 0 0 10px #d4af37;
}
.nav-shop-pill {
  background: rgba(212, 175, 55, 0.15) !important;
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  color: #f3e5ab !important;
  border-radius: 999px;
  padding: 8px 18px !important;
  font-weight: 700;
  transition: all 0.25s ease;
}
.nav-shop-pill:hover {
  background: #d4af37 !important;
  color: #00472a !important;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.vip-reward-pill-btn {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  padding: 8px 18px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s;
  text-decoration: none;
}
.vip-reward-pill-btn:hover {
  background: #d4af37;
  color: #00472a !important;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   H1 TYPING ANIMATION (TYPEWRITER & BLINKING GOLD CARET)
   ========================================================================== */
.type-wrap { display: inline; }
.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.25em);
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.type-wrap.is-typed .char {
  opacity: 1;
  transform: translateY(0);
}
.type-caret {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin-left: 4px;
  background: #d4af37;
  vertical-align: -0.05em;
  opacity: 0;
  box-shadow: 0 0 10px #d4af37;
  animation: caretBlink 0.85s steps(1) infinite;
}
.type-wrap.is-typing .type-caret { opacity: 1; }
@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}


/* ==========================================================================
   MOBILE NAV DRAWER & RESPONSIVE TOGGLES
   ========================================================================== */
.mobile-nav-drawer {
  display: none !important;
}
@media (max-width: 900px) {
  .site-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
  .mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background: rgba(6, 9, 7, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding: 24px;
    flex-direction: column;
    gap: 14px;
    z-index: 999;
    box-shadow: 0 15px 35px rgba(0,0,0,0.85);
  }
  .mobile-nav-drawer.active {
    display: flex !important;
  }
  .mobile-nav-link {
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.2s;
  }
  .mobile-nav-link:hover,
  .mobile-nav-link.active {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37 !important;
  }
}

/* ==========================================================================
   TYPEWRITER SUPPORT FOR GOLD GRADIENT HEADINGS
   ========================================================================== */
.gold-gradient-title {
  display: inline-block;
}
.gold-gradient-title .char,
.gold-text .char,
.gold-gradient .char {
  background: linear-gradient(135deg, #d4af37 0%, #fffdf5 50%, #d4af37 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block !important;
}


/* ==========================================================================
   SMART CALCULATOR MODAL & SUITE STYLES (Hidden by default, shown when .active)
   ========================================================================== */
.calculator-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 14, 11, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.calculator-modal-backdrop.active {
  display: flex !important;
}

.calc-suite-container {
  background: linear-gradient(145deg, #072a22 0%, #031410 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(212, 175, 55, 0.15);
  position: relative;
  padding: 35px 30px;
  color: #fff;
}

.item-select-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}
.item-select-card:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
}
.item-select-card.selected {
  background: rgba(212, 175, 55, 0.15);
  border-color: #d4af37;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}
.item-check-indicator {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  transition: all 0.2s;
  color: transparent;
}
.item-select-card.selected .item-check-indicator {
  background: #d4af37;
  border-color: #d4af37;
  color: #031410;
}
.budget-summary-panel {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 20px;
}
.gift-card-option {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.gift-card-option.active, .gift-card-option:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: #d4af37;
  border-style: solid;
}
