:root {
  --font-body: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-brand: 'Cinzel', serif;

  /* Dark Luxury Theme Tokens (Default) */
  --bg-primary: #070709;
  --bg-secondary: #0f0f14;
  --bg-card: #15151c;
  --bg-glass: rgba(21, 21, 28, 0.8);
  --bg-input: #1d1d26;
  
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-dark: #aa820a;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f5e4a8 50%, #aa820a 100%);
  
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-inverse: #070709;
  
  --border-subtle: rgba(212, 175, 55, 0.2);
  --border-gold: rgba(212, 175, 55, 0.5);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.15);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] {
  --bg-primary: #faf9f6;
  --bg-secondary: #f3f0e8;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-input: #f2ece0;
  
  --gold-primary: #b8860b;
  --gold-light: #d4af37;
  --gold-dark: #8b6508;
  --gold-gradient: linear-gradient(135deg, #b8860b 0%, #d4af37 50%, #8b6508 100%);
  
  --text-primary: #18181f;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  --border-subtle: rgba(184, 134, 11, 0.25);
  --border-gold: rgba(184, 134, 11, 0.6);
  
  --shadow-gold: 0 4px 20px rgba(184, 134, 11, 0.12);
  --shadow-card: 0 8px 25px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  padding-bottom: 2.2rem;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Helpers */
.brand-font {
  font-family: var(--font-brand);
  letter-spacing: 0.05em;
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.mobile-menu-btn {
  display: inline-flex;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--gold-primary);
  width: 34px;
  height: 34px;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s ease;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-symbol {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-item:hover, .nav-item.active {
  color: var(--gold-primary);
}

.nav-cart-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  padding: 0.35rem 0.6rem;
  font-size: 1.25rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.nav-cart-item:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
}

.cart-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -9px;
  background: var(--gold-gradient);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 2px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

#userAuthBtn {
  padding: 0.45rem 0.95rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 20px;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

/* Mobile Sidebar Drawer */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-gold);
  transform: translateX(-100%);
  z-index: 9999;
  transition: transform 0.3s ease;
}

.sidebar-nav.active {
  transform: translateX(0);
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link {
  padding: 0.7rem 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

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

/* Hero Section & Counter Dashboard */
.hero-section {
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at top, rgba(212, 175, 55, 0.1) 0%, transparent 75%);
}

.hero-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-primary);
  margin-bottom: 0.4rem;
}

.hero-title {
  font-family: var(--font-brand);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.hero-desc {
  max-width: 680px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Counter Bar */
.stats-counter-bar {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  padding: 0.5rem 1.5rem;
  box-shadow: var(--shadow-card);
}

.counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.counter-number {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.counter-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

.counter-divider {
  width: 1px;
  height: 24px;
  background: var(--border-subtle);
}

/* Filter Section & Breadcrumb Bar */
.filter-section {
  max-width: 1440px;
  margin: 0.5rem auto 0;
  padding: 0 0.75rem;
}

.filter-bar {
  max-width: 1440px;
  margin: 0 auto 1rem;
  padding: 0 0.75rem;
}

.filter-controls-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  position: relative;
  flex: 1 1 300px;
}

.search-box input.form-control {
  padding-left: 2.4rem;
  height: 36px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.82rem;
  box-shadow: var(--shadow-card);
  width: 100%;
}

.search-box input.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.22);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-primary);
  font-size: 0.85rem;
  pointer-events: none;
}

.weight-filter-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 0.25rem 0.5rem 0.25rem 0.9rem;
  box-shadow: var(--shadow-card);
  height: 36px;
}

.weight-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-primary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.weight-inputs {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.weight-inputs input.form-control {
  width: 65px;
  height: 26px;
  padding: 0.1rem 0.4rem;
  text-align: center;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.78rem;
}

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

.category-pills {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
}

.cat-pill:hover, .cat-pill.active {
  background: var(--gold-gradient);
  color: var(--text-inverse);
  border-color: transparent;
  font-weight: 600;
}

.breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.6rem;
  margin-top: 0.6rem;
}

#bcCategorySpan,
#bcItemSpan,
.breadcrumb-node {
  align-items: center;
  gap: 0.55rem;
}

.breadcrumb-item {
  cursor: pointer;
  color: var(--gold-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
}

.breadcrumb-item:hover {
  text-decoration: underline;
}

.breadcrumb-item.current {
  color: var(--text-primary);
  cursor: default;
}

.breadcrumb-separator {
  font-size: 0.68rem;
  color: var(--gold-primary);
  opacity: 0.75;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.1rem;
}

/* =========================================
   STRICT PRODUCT SKU RESPONSIVE COLUMNS 
   Mobile: 2 cols | Tablet: 4 cols | Desktop: 5 cols
   ========================================= */

/* 1. Desktop (> 1024px): 6 SKU Columns */
.product-grid,
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 0.5rem !important;
  max-width: 1440px;
  margin: 0 auto 2rem;
  padding: 0 0.75rem;
}

.product-grid.hidden-grid {
  display: none !important;
}

/* 2. Tablet (601px - 1024px): 4 SKU Columns */
@media (max-width: 1024px) {
  .product-grid,
  .catalogue-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.45rem !important;
    padding: 0 0.5rem;
  }
}

/* 3. Mobile (<= 600px): 2 Compact SKU Columns */
@media (max-width: 600px) {
  .product-grid,
  .catalogue-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.35rem !important;
    padding: 0 0.35rem;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .stats-counter-bar {
    gap: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  .counter-number {
    font-size: 0.95rem;
  }
  .counter-label {
    font-size: 0.6rem;
  }
}

/* Compact Micro Product Card Styling */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 150px;
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.product-card:hover .card-img {
  transform: scale(1.04);
}

.badge-stock {
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  font-size: 0.55rem;
  padding: 0.08rem 0.25rem;
  border-radius: 3px;
  font-weight: 600;
  z-index: 2;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.badge-stock.in-stock { background: rgba(74, 222, 128, 0.2); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.4); }
.badge-stock.available-for-order, .badge-stock.booked { background: rgba(96, 165, 250, 0.2); color: #60a5fa; border: 1px solid rgba(96, 165, 250, 0.4); }
.badge-stock.reserved { background: rgba(250, 204, 21, 0.2); color: #facc15; border: 1px solid rgba(250, 204, 21, 0.4); }

.card-wishlist-btn {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--text-muted);
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s ease;
}

.card-wishlist-btn.active, .card-wishlist-btn:hover {
  background: var(--gold-primary);
  color: #0a0a0c;
  border-color: var(--gold-primary);
}

.card-body {
  padding: 0.35rem 0.45rem 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.card-category {
  font-size: 0.6rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-title {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.18;
  color: var(--text-primary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem;
  padding: 0.15rem 0 0.2rem;
}

.weight-tag {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.code-tag {
  font-family: monospace;
  color: var(--gold-primary);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.card-footer {
  display: flex;
  gap: 0.2rem;
  margin-top: 0.25rem;
}

.card-footer .btn {
  flex: 1;
  padding: 0 0.2rem;
  font-size: 0.62rem;
  border-radius: 3px;
  height: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

/* Category & Item Master Block Cards (Levels 1 & 2) */
.category-block-card,
.item-master-block-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.category-block-card:hover,
.item-master-block-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.category-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.category-card-title,
.item-master-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.category-card-badge,
.item-master-card-badge {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.category-card-desc,
.item-master-card-desc {
  font-size: 0.62rem;
  color: var(--text-muted);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.category-card-action,
.item-master-card-action {
  font-size: 0.62rem;
  color: var(--gold-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.35rem;
  margin-top: auto;
}

.img-locked {
  filter: blur(14px) brightness(0.6);
  pointer-events: none;
}

.locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 12, 0.75);
  backdrop-filter: blur(3px);
  color: var(--text-primary);
  padding: 0.3rem;
  text-align: center;
  cursor: pointer;
}

.locked-icon-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 0.75rem;
  margin-bottom: 0.15rem;
}

.locked-title {
  font-weight: 600;
  font-size: 0.65rem;
  line-height: 1;
}

.locked-desc {
  font-size: 0.55rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
  line-height: 1.1;
}

/* Button UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.2s ease;
}

.btn-gold {
  background: var(--gold-gradient);
  color: var(--text-inverse);
}

.btn-gold:hover {
  opacity: 0.92;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-outline-gold {
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
}

.btn-outline-gold:hover {
  background: var(--gold-gradient);
  color: var(--text-inverse);
  border-color: transparent;
}

.btn-glass {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-glass:hover {
  border-color: var(--gold-primary);
}

.btn-sm {
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  height: 28px;
}

/* Form Inputs */
.form-control {
  width: 100%;
  padding: 0.55rem 0.85rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  font-weight: 500;
}

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

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#userBookingsModal {
  z-index: 10000;
}

#productModal {
  z-index: 10050;
}

#bookingModal {
  z-index: 10100;
}

#authModal {
  z-index: 10150;
}

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

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-card);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  color: var(--gold-primary);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

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

.modal-body {
  padding: 1.25rem;
}

/* Drawer Component */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 420px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-gold);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.drawer-overlay.open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}

/* Admin Dashboard Components */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-card);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
}

/* Mobile Dashboard Stats Cards (Strict 2-Column Grid Layout) */
@media (max-width: 600px) {
  .admin-header-title {
    padding: 0 0.75rem !important;
    margin-top: 0.6rem !important;
  }
  .admin-header-title h1 {
    font-size: 1.35rem !important;
  }
  .admin-header-title p {
    font-size: 0.78rem !important;
  }

  .admin-stats-wrapper {
    padding: 0 0.5rem !important;
    margin-top: 0.6rem !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem !important;
    margin-bottom: 1rem;
  }

  .stat-card {
    padding: 0.6rem 0.55rem;
    gap: 0.45rem;
    border-radius: 8px;
    align-items: center;
  }

  .stat-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 0.85rem;
  }

  .stat-number {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
  }

  .stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.01em;
    line-height: 1.1;
    margin-top: 0.1rem;
  }
}

.admin-layout {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.25rem;
  transition: grid-template-columns 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-layout.sidebar-collapsed,
.admin-layout:has(#sidebarNav.collapsed) {
  grid-template-columns: 60px minmax(0, 1fr);
}

.admin-main-content {
  width: 100%;
  min-width: 0;
}

/* Executive Admin Sidebar Styling */
.admin-layout #sidebarNav {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  height: fit-content !important;
  z-index: 1 !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  padding: 1rem 0.8rem !important;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.admin-layout #sidebarNav.collapsed {
  width: 60px !important;
  padding: 0.8rem 0.3rem !important;
}

.admin-layout #sidebarNav.collapsed .sidebar-item-text,
.admin-layout #sidebarNav.collapsed .sidebar-head-title,
.admin-layout #sidebarNav.collapsed .sidebar-collapse-text {
  display: none !important;
}

.admin-layout #sidebarNav.collapsed .sidebar-link {
  justify-content: center;
  padding: 0.6rem 0.3rem;
}

.admin-layout #sidebarNav.collapsed .sidebar-collapse-btn {
  justify-content: center;
  padding: 0.45rem 0.3rem;
}

.sidebar-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.78rem;
  width: 100%;
  margin-bottom: 1rem;
}

.sidebar-collapse-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.sidebar-head {
  padding: 0.4rem 0.5rem;
  margin-top: 0.4rem;
  margin-bottom: 0.2rem;
}

.sidebar-head-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-primary);
  font-weight: 600;
}

/* Unified Action Status Button System */
.btn-status-action {
  min-width: 82px;
  height: 28px;
  padding: 0 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  line-height: 1;
}

.btn-status-approve {
  background: var(--gold-gradient);
  color: var(--text-inverse);
  border: 1px solid var(--gold-primary);
}

.btn-status-approve:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn-status-block {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-status-block:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.sidebar-link i {
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
}

@media (max-width: 992px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-layout #sidebarNav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 100vh !important;
    width: 280px !important;
    max-width: 82vw !important;
    z-index: 10060 !important;
    background: var(--bg-secondary) !important;
    transform: translateX(-100%) !important;
    border-radius: 0 !important;
    border-right: 1px solid var(--border-gold) !important;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.8) !important;
    overflow-y: auto !important;
  }
  
  .admin-layout #sidebarNav.mobile-open,
  .admin-layout #sidebarNav.open,
  .admin-layout #sidebarNav.active {
    transform: translateX(0) !important;
  }
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.admin-table th, .admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-table th {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-primary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Mobile Sidebar Drawer Navigation */
.mobile-menu-btn {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 10050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-backdrop.active,
.sidebar-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 82vw;
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-gold);
  z-index: 10060;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.7);
}

.sidebar-nav.active,
.sidebar-nav.open {
  transform: translateX(0) !important;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
}

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

/* Fixed Footer */
.app-fixed-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.76rem;
  text-align: center;
  padding: 0.4rem 1rem;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.app-fixed-footer span.footer-highlight {
  color: var(--gold-primary);
  font-weight: 600;
}

/* Mobile Fullscreen Floating Banner */
.mobile-fs-banner {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-gradient);
  color: #0b0b0e;
  font-weight: bold;
  font-size: 0.8rem;
  padding: 0.45rem 1.2rem;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  animation: pulseFsBanner 2s infinite;
}

@keyframes pulseFsBanner {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.04); }
  100% { transform: translateX(-50%) scale(1); }
}
