/*
 * Kings Land RolePlay - Tebex FiveM Store Theme CSS (Enhanced)
 * Auto-generated production-ready stylesheet with Wasabi-style dark luxury design.
 * 
 * TABLE OF CONTENTS:
 * 1. CSS Reset & Custom Properties
 * 2. Background Noise Overlay
 * 3. Google Fonts Import
 * 4. Base Typography & Micro-interactions
 * 5. Layout System
 * 6. Top Announcement Bar
 * 7. Navigation (.navbar)
 * 8. Hero Section (.hero)
 * 9. Ornate Divider (.ornate-divider)
 * 10. Package Cards (.package-card)
 * 11. Category Cards (.category-card)
 * 12. Buttons
 * 13. Forms
 * 14. Modules & Badges
 * 15. Sidebar
 * 16. Modal
 * 17. Footer (.footer)
 * 18. Cart Page Styles
 * 19. Username/Login Page
 * 20. Loading Screen
 * 21. Keyframe Animations
 * 22. Scroll Reveal
 * 23. Responsive Design
 * 24. Scrollbar Styling
 */

/* ==========================================================================
   3. Google Fonts Import
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

/* ==========================================================================
   1. CSS Reset & Custom Properties
   ========================================================================== */
:root {
  /* Background Colors */
  --bg-primary: #05070a; /* Darker for better contrast with glows */
  --bg-secondary: #0a0e16;
  --bg-tertiary: #111622;
  --bg-card: rgba(10, 14, 22, 0.65);

  /* Gold Colors */
  --gold-primary: #d4a853;
  --gold-light: #f0d48a;
  --gold-dark: #a07830;
  
  /* New Tokens */
  --gold-glow: rgba(212, 168, 83, 0.5);
  --accent-warm: #e8a635;
  --gradient-hero: linear-gradient(135deg, rgba(212, 168, 83, 0.15) 0%, transparent 50%, rgba(160, 120, 48, 0.1) 100%);
  --gold-gradient: linear-gradient(135deg, var(--gold-light), var(--gold-primary), var(--gold-dark));
  
  /* Text Colors */
  --text-primary: #f4efe6;
  --text-secondary: #a39cae;
  --text-gold: #d4a853;

  /* Status Colors */
  --danger: #ff4757;
  --success: #2ed573;

  /* Borders & Shadows */
  --border-gold: rgba(212, 168, 83, 0.15);
  --border-gold-hover: rgba(212, 168, 83, 0.4);
  --shadow-gold: 0 0 25px rgba(212, 168, 83, 0.2);

  /* Typography */
  --font-heading: 'Cinzel', serif;
  --font-subheading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Radius & Transitions */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Smoother micro-interactions */

  /* Tebex Legal Footer Integration */
  --tebex-legal-footer-background-color: var(--bg-primary);
  --tebex-legal-footer-text-color: var(--text-secondary);
  --tebex-legal-footer-border-color: var(--border-gold);
  --tebex-legal-footer-max-width: 1280px;
  --tebex-legal-footer-logo-color: var(--gold-primary);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================================
   2. Background Noise Overlay
   ========================================================================== */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   4. Base Typography & Micro-interactions
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--gold-primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

.subheading {
  font-family: var(--font-subheading);
  font-style: italic;
  color: var(--text-secondary);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

/* Underline animation for inline links */
p a, .footer-links a {
  background-image: linear-gradient(var(--gold-primary), var(--gold-primary));
  background-position: 50% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

p a:hover, .footer-links a:hover {
  color: var(--gold-primary);
  background-size: 100% 1px;
}

/* Focus states */
*:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 4px;
  box-shadow: 0 0 15px var(--gold-glow);
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

::selection {
  background-color: rgba(212, 168, 83, 0.3);
  color: var(--gold-light);
  text-shadow: 0 0 10px var(--gold-glow);
}

::-moz-selection {
  background-color: rgba(212, 168, 83, 0.3);
  color: var(--gold-light);
  text-shadow: 0 0 10px var(--gold-glow);
}

/* ==========================================================================
   5. Layout System
   ========================================================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.section {
  padding: 100px 0;
  position: relative;
}

.grid {
  display: grid;
  gap: 32px;
}

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

.flex {
  display: flex;
}

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

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

/* ==========================================================================
   6. Top Announcement Bar
   ========================================================================== */
.announcement-bar {
    background: linear-gradient(90deg, var(--bg-secondary), rgba(212, 168, 83, 0.1), var(--bg-secondary));
    border-bottom: 1px solid rgba(212, 168, 83, 0.2);
    padding: 10px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gold-light);
    position: relative;
    z-index: 1001;
    overflow: hidden;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.announcement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.15), transparent);
    animation: announcement-shimmer 3s infinite linear;
}

@keyframes announcement-shimmer {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

.announcement-bar .dismiss-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.announcement-bar .dismiss-btn:hover {
    color: var(--gold-primary);
    transform: translateY(-50%) scale(1.1) rotate(90deg);
}

/* ==========================================================================
   7. Navigation (.navbar)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 7, 10, 0.7);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--border-gold);
  padding: 16px 0;
  transition: var(--transition);
}

/* Animated bottom border shimmer effect */
.navbar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  animation: navbar-shimmer 4s infinite linear;
  opacity: 0.5;
}

@keyframes navbar-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.nav-brand img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(212, 168, 83, 0.3));
}

.nav-brand span {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--gold-primary);
  letter-spacing: 0.1em;
  font-weight: 800;
  text-shadow: 0 0 15px var(--gold-glow);
  transition: var(--transition);
}

.nav-brand:hover span {
  text-shadow: 0 0 25px var(--gold-primary);
}

.nav-links {
  display: flex;
  gap: 8px; /* Adjusted gap for pills */
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-item {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  position: relative;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 30px;
  transition: var(--transition);
  background: transparent;
}

/* Pill-shaped hover */
.nav-item:hover, .nav-item.active {
  color: var(--gold-primary);
  background: rgba(212, 168, 83, 0.1);
  box-shadow: inset 0 0 0 1px rgba(212, 168, 83, 0.2);
}

.nav-item::after {
  display: none; /* Removing old underline effect for the new pill style */
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.95);
  background-color: rgba(10, 14, 22, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-gold);
  border-top: 3px solid var(--gold-primary);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), var(--shadow-gold);
  min-width: 220px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1001;
  list-style: none;
  transform-origin: top center;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.nav-dropdown-menu a {
  display: block;
  padding: 12px 24px;
  color: var(--text-primary);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(212, 168, 83, 0.05);
  transition: var(--transition);
}

.nav-dropdown-menu li:last-child a {
  border-bottom: none;
}

.nav-dropdown-menu a:hover {
  background-color: rgba(212, 168, 83, 0.15);
  color: var(--gold-primary);
  padding-left: 30px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.02);
}

.nav-cart:hover {
  border-color: var(--gold-primary);
  color: var(--bg-primary);
  background: var(--gold-gradient);
  box-shadow: 0 0 15px var(--gold-glow);
  transform: translateY(-2px);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--danger);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid var(--bg-secondary);
  animation: pulse 2s infinite;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-toggle:hover {
  color: var(--gold-primary);
}

/* ==========================================================================
   8. Hero Section (.hero)
   ========================================================================== */
.hero {
  min-height: 85vh;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Layered radial gradients for depth */
  background-image: 
    radial-gradient(circle at 50% 50%, transparent 0%, var(--bg-primary) 100%),
    radial-gradient(circle at top right, rgba(212, 168, 83, 0.15) 0%, transparent 60%),
    radial-gradient(circle at bottom left, rgba(212, 168, 83, 0.1) 0%, transparent 60%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,7,10,0.5) 0%, var(--bg-primary) 100%);
  z-index: 1;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 20px;
  max-width: 900px;
}

/* Animated golden ring/halo */
.hero-content::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 150%;
  border-radius: 50%;
  border: 1px dashed rgba(212, 168, 83, 0.2);
  z-index: -1;
  animation: borderRotate 30s linear infinite;
  pointer-events: none;
  box-shadow: inset 0 0 50px rgba(212, 168, 83, 0.05);
}

.hero-logo {
  max-width: 280px;
  margin: 0 auto 32px auto;
  filter: drop-shadow(0 0 40px rgba(212,168,83,0.6));
  animation: float 6s ease-in-out infinite, goldPulse 3s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-heading);
  /* clamp for smooth scaling */
  font-size: clamp(2.5rem, 5vw + 1rem, 5rem);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
  text-transform: uppercase;
  font-weight: 800;
  filter: drop-shadow(0 0 15px rgba(212, 168, 83, 0.3));
  animation: letterSpacing 1.2s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.hero-subtitle {
  font-family: var(--font-subheading);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw + 0.5rem, 1.8rem);
  color: var(--text-primary);
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-tagline {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--gold-light);
  font-size: 0.95rem;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 10px var(--gold-glow);
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
  animation: fadeInUp 1s ease-out 0.8s both;
}

/* ==========================================================================
   9. Ornate Divider (.ornate-divider)
   ========================================================================== */
.ornate-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 60px auto;
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.ornate-divider::before,
.ornate-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.8));
}

.ornate-divider::after {
  background: linear-gradient(90deg, rgba(212, 168, 83, 0.8), transparent);
}

.ornate-divider-icon {
  margin: 0 24px;
  color: var(--gold-primary);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px var(--gold-glow));
  animation: float 4s ease-in-out infinite;
}

/* ==========================================================================
   10. Package Cards (.package-card) - Wasabi Style
   ========================================================================== */
.package-card {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Inner glow on top edge */
  box-shadow: inset 0 2px 0 0 rgba(212, 168, 83, 0.3), 0 10px 30px rgba(0,0,0,0.5);
}

.package-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--gold-primary);
  box-shadow: inset 0 2px 0 0 var(--gold-primary), 0 20px 40px rgba(0,0,0,0.6), var(--shadow-gold);
  z-index: 10;
}

.package-image-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 220px;
  background-color: var(--bg-tertiary);
}

/* Gradient overlay from bottom */
.package-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card) 0%, transparent 60%);
  z-index: 2;
}

/* Media grid pattern overlay */
.package-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(212, 168, 83, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(212, 168, 83, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 3;
  opacity: 0.5;
  transition: var(--transition);
}

.package-card:hover .package-image-wrapper::after {
  opacity: 1;
  background-size: 22px 22px; /* Slight scale of grid */
}

.package-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
  position: relative;
}

.package-card:hover .package-image {
  transform: scale(1.1) rotate(1deg);
}

.package-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 4;
}

.package-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
  font-weight: 700;
  transition: var(--transition);
}

.package-card:hover .package-name {
  color: var(--gold-primary);
  text-shadow: 0 0 10px rgba(212, 168, 83, 0.3);
}

.package-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 20px;
  flex: 1;
}

.package-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px dashed rgba(212, 168, 83, 0.2);
}

.package-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-gold);
  font-weight: 800;
  text-shadow: 0 0 10px rgba(212, 168, 83, 0.4); /* Glow effect */
}

.package-price-original {
  text-decoration: line-through;
  color: var(--danger);
  font-size: 0.9rem;
  margin-left: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  opacity: 0.8;
}

.package-sale-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--danger), #ff6b81);
  color: white;
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.5);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

/* ==========================================================================
   11. Category Cards (.category-card)
   ========================================================================== */
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* Animated gradient border on hover using pseudo-element */
.category-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--gold-primary), transparent, var(--gold-light), transparent);
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: gradientShift 4s ease infinite;
  border-radius: inherit;
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 1px; /* Inner background to cover gradient */
  background: var(--bg-card);
  border-radius: calc(var(--radius-lg) - 1px);
  z-index: -1;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-gold);
}

.category-card:hover::before {
  opacity: 1;
}

.category-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px auto;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Circular gradient background */
  background: radial-gradient(circle, rgba(212, 168, 83, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  box-shadow: inset 0 0 20px rgba(212, 168, 83, 0.05);
}

.category-card:hover .category-icon {
  transform: scale(1.15) rotate(5deg);
  background: radial-gradient(circle, rgba(212, 168, 83, 0.25) 0%, transparent 70%);
  color: var(--gold-light);
  filter: drop-shadow(0 0 10px var(--gold-glow));
}

.category-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.category-count {
  color: var(--text-secondary);
  font-size: 0.9rem;
  background: rgba(255,255,255,0.05);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
}

/* ==========================================================================
   12. Dramatically Better Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 30px; /* More modern rounded buttons */
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Active state squish */
.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--gold-gradient);
  background-size: 200% auto;
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(212, 168, 83, 0.3);
}

/* Shimmer sweep animation */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  z-index: 2;
  transition: var(--transition);
}

.btn-primary:hover {
  background-position: right center;
  color: var(--bg-primary);
  box-shadow: 0 8px 25px rgba(212, 168, 83, 0.6);
  transform: translateY(-3px);
}

.btn-primary:hover::before {
  animation: sweep 1.5s ease;
}

@keyframes sweep {
  0% { left: -100%; }
  100% { left: 200%; }
}

.btn-secondary, .btn-outline {
  background: transparent;
  color: var(--gold-primary);
  /* Gradient border via background-clip trick */
  border: 2px solid transparent;
  background-image: linear-gradient(var(--bg-primary), var(--bg-primary)), var(--gold-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.btn-secondary:hover, .btn-outline:hover {
  color: var(--bg-primary);
  background-image: var(--gold-gradient), var(--gold-gradient);
  box-shadow: 0 8px 20px rgba(212, 168, 83, 0.4);
  transform: translateY(-3px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #ff6b81);
  background-size: 200% auto;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.btn-danger:hover {
  background-position: right center;
  box-shadow: 0 8px 25px rgba(255, 71, 87, 0.6);
  transform: translateY(-3px);
  color: white;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.15rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   13. Forms
   ========================================================================== */
.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  background: rgba(10, 14, 22, 0.8);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(10, 14, 22, 1);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 0 15px rgba(212, 168, 83, 0.2);
}

.form-control::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

/* ==========================================================================
   14. Modules & Badges
   ========================================================================== */

.checkout-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cart-summary {
    position: static;
  }
}

.module {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
}

.module-header {
  border-bottom: 1px solid rgba(212, 168, 83, 0.2);
  padding-bottom: 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.module-header i {
  color: var(--gold-primary);
  font-size: 1.5rem;
  filter: drop-shadow(0 0 5px var(--gold-glow));
}

.module-title {
  font-size: 1.25rem;
  margin-bottom: 0;
  text-transform: uppercase;
}

.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-success { background: rgba(46, 213, 115, 0.15); color: var(--success); border: 1px solid rgba(46, 213, 115, 0.3); }
.badge-danger { background: rgba(255, 71, 87, 0.15); color: var(--danger); border: 1px solid rgba(255, 71, 87, 0.3); }
.badge-gold { background: rgba(212, 168, 83, 0.15); color: var(--gold-primary); border: 1px solid rgba(212, 168, 83, 0.3); }

/* Page Headers */
.page-header {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  padding: 80px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border-gold);
  margin-bottom: 40px;
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: var(--gold-gradient);
  box-shadow: 0 0 10px var(--gold-primary);
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 0 15px rgba(212, 168, 83, 0.3);
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  list-style: none;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  font-size: 0.9rem;
}

.breadcrumb li {
  margin: 0;
  display: flex;
  align-items: center;
}

.breadcrumb li::after {
  content: '›';
  margin-left: 12px;
  color: var(--text-secondary);
}

.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--gold-primary); }
.breadcrumb li.active { color: var(--gold-primary); font-weight: 600; }

/* ==========================================================================
   15. Sidebar
   ========================================================================== */
.content-with-sidebar {
  display: flex;
  gap: 40px;
  position: relative;
}

.main-content {
  flex: 1;
  min-width: 0; /* Prevent flex blowout */
}

.sidebar {
  width: 320px;
  flex-shrink: 0;
}

.sidebar .module {
  position: sticky;
  top: 100px;
}

.server-status {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.05);
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulse 2s infinite;
}

.status-info { flex: 1; }
.status-label { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; }
.status-value { font-weight: 700; font-size: 1.1rem; color: var(--text-primary); }

/* ==========================================================================
   16. Modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 30px rgba(212, 168, 83, 0.15);
  transform: scale(0.95) translateY(20px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.modal-backdrop.show .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 24px 30px;
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(212, 168, 83, 0.05) 0%, transparent 100%);
}

.modal-title { margin: 0; font-size: 1.5rem; }

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--danger);
  transform: rotate(90deg);
}

.modal-body { padding: 30px; }
.modal-footer {
  padding: 24px 30px;
  border-top: 1px solid var(--border-gold);
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  background: rgba(0,0,0,0.2);
}

/* ==========================================================================
   17. Footer (.footer)
   ========================================================================== */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-gold);
  padding: 80px 0 40px;
  margin-top: 80px;
  position: relative;
}

/* Top edge glow */
.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: radial-gradient(ellipse at center, var(--gold-primary) 0%, transparent 70%);
  opacity: 0.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 50px;
}

.footer-section h3 {
  font-family: var(--font-heading);
  color: var(--gold-light);
  font-size: 1.1rem;
  margin-bottom: 24px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

/* Small gold underline accent */
.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold-primary);
  box-shadow: 0 0 5px var(--gold-glow);
}

.footer-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.footer-links a::before {
  content: '›';
  margin-right: 10px;
  color: var(--gold-primary);
  font-weight: bold;
  font-size: 1.2rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
  transform: translateX(8px);
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.footer-social a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition);
  font-size: 1.3rem;
  background: rgba(10, 14, 26, 0.5);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Animated background fill on hover */
.footer-social a::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold-gradient);
  transition: top 0.3s ease;
  z-index: -1;
}

.footer-social a:hover {
  border-color: var(--gold-primary);
  color: var(--bg-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(212, 168, 83, 0.3);
}

.footer-social a:hover::before {
  top: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 60px;
  padding-top: 30px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ==========================================================================
   18. Cart Page Styles
   ========================================================================== */
.cart-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px; /* Adds space between rows */
  margin-bottom: 30px;
}

.cart-table th {
  font-family: var(--font-heading);
  color: var(--text-gold);
  text-align: left;
  padding: 0 16px 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(212, 168, 83, 0.2);
}

.cart-table td {
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.02);
  vertical-align: middle;
}

.cart-table tr td:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.cart-table tr td:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }

.cart-item-image {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-gold);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-item-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.cart-item-price {
  color: var(--text-gold);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(212, 168, 83, 0.2);
}

.cart-summary {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-gold);
  /* Gradient top border */
  border-top: 3px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 0;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  position: sticky;
  top: 100px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.cart-summary-row.total {
  border-top: 1px dashed rgba(212, 168, 83, 0.3);
  padding-top: 20px;
  margin-top: 20px;
  color: var(--text-primary);
}

.cart-total {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--gold-primary);
  font-weight: 800;
  text-shadow: 0 0 15px var(--gold-glow);
}

.coupon-form {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

/* ==========================================================================
   19. Username/Login Page
   ========================================================================== */
.auth-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 100px 20px;
}

.auth-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 40px rgba(212, 168, 83, 0.1);
  position: relative;
  overflow: visible; /* To allow crown to pop out if needed */
}

/* Animated golden ring decoration for auth card */
.auth-card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(45deg, var(--gold-primary), transparent 40%, transparent 60%, var(--gold-light));
  z-index: -1;
  animation: borderRotate 10s linear infinite;
  opacity: 0.5;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-gradient);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.auth-crown {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--gold-primary);
  display: inline-block;
  animation: float 4s ease-in-out infinite, goldPulse 2s infinite;
}

.auth-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--gold-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  text-shadow: 0 0 15px var(--gold-glow);
}

.auth-subtitle {
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 1rem;
  line-height: 1.5;
}

/* ==========================================================================
   20a. Announcement Bar
   ========================================================================== */
.announcement-bar {
    background: linear-gradient(90deg, var(--bg-secondary), rgba(212, 168, 83, 0.08), var(--bg-secondary));
    border-bottom: 1px solid rgba(212, 168, 83, 0.2);
    padding: 10px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gold-light);
    position: relative;
    z-index: 1001;
    overflow: hidden;
}

.announcement-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.announcement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.08), transparent);
    animation: announcementShimmer 4s infinite linear;
}

@keyframes announcementShimmer {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

.announcement-bar .dismiss-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 4px;
}

.announcement-bar .dismiss-btn:hover {
    color: var(--gold-primary);
    transform: translateY(-50%) scale(1.2);
}

/* ==========================================================================
   20b. Noise Overlay
   ========================================================================== */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* ==========================================================================
   20c. Eye-Catching Custom Royal Cursor System
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  *, html, body {
    cursor: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='3' fill='%23f0d48a'/%3E%3Ccircle cx='12' cy='12' r='1.2' fill='%2305070a'/%3E%3Cpath d='M12 2v4M12 18v4M2 12h4M18 12h4' stroke='%23d4a853' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpolygon points='12,6 18,12 12,18 6,12' stroke='%23d4a853' stroke-width='0.75' fill='none' opacity='0.7'/%3E%3C/svg%3E") 12 12, auto;
  }

  a, button, .btn, .package-card, .category-card, .nav-item, .nav-cart, .dismiss-btn, [role="button"], input, select, textarea, .nav-brand, .thumb {
    cursor: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 22h20l-2-12-4 4-4-8-4 8-4-4-2 12z' fill='%23d4a853' stroke='%23f0d48a' stroke-width='1'/%3E%3Ccircle cx='14' cy='6' r='2' fill='%23f0d48a'/%3E%3Ccircle cx='5' cy='11' r='1.5' fill='%23f0d48a'/%3E%3Ccircle cx='23' cy='11' r='1.5' fill='%23f0d48a'/%3E%3Ccircle cx='14' cy='16' r='2' fill='%2305070a' stroke='%23f0d48a' stroke-width='1'/%3E%3C/svg%3E") 14 14, pointer !important;
  }
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--gold-light, #f0d48a);
  border-radius: 50%;
  pointer-events: none;
  z-index: 100001;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(240, 212, 138, 0.9), 0 0 16px rgba(212, 168, 83, 0.7);
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, opacity 0.3s ease;
  opacity: 0;
  will-change: left, top;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(212, 168, 83, 0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 100000;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px rgba(212, 168, 83, 0.3), inset 0 0 8px rgba(212, 168, 83, 0.15);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.25s ease, 
              background-color 0.25s ease,
              opacity 0.3s ease;
  opacity: 0;
  will-change: left, top;
}

/* Hover state on interactive elements */
.cursor-ring.cursor-hover {
  width: 54px;
  height: 54px;
  border-color: rgba(240, 212, 138, 0.95);
  background-color: rgba(212, 168, 83, 0.1);
  box-shadow: 0 0 25px rgba(212, 168, 83, 0.55), inset 0 0 12px rgba(212, 168, 83, 0.25);
}

.cursor-dot.cursor-hover {
  width: 10px;
  height: 10px;
  background: #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 1), 0 0 25px rgba(212, 168, 83, 0.9);
}

/* Click squish */
.cursor-ring.cursor-click {
  width: 22px;
  height: 22px;
  border-color: #ffffff;
  background-color: rgba(212, 168, 83, 0.3);
  transform: translate(-50%, -50%) scale(0.85);
}

.cursor-click-ripple {
  position: fixed;
  border-radius: 50%;
  border: 1.5px solid var(--gold-light, #f0d48a);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  animation: cursor-ripple-expand 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cursor-ripple-expand {
  0% {
    width: 18px;
    height: 18px;
    opacity: 0.95;
    box-shadow: 0 0 12px rgba(212, 168, 83, 0.9);
  }
  100% {
    width: 90px;
    height: 90px;
    opacity: 0;
    box-shadow: 0 0 30px rgba(212, 168, 83, 0);
  }
}

.cursor-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
  will-change: left, top;
}

@media (max-width: 1024px), (hover: none) {
  .cursor-dot, .cursor-ring, .cursor-glow, .cursor-click-ripple {
    display: none !important;
  }
}

/* ==========================================================================
   20d. Hamburger Menu Toggle
   ========================================================================== */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 1051;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gold-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   20. Loading Screen
   ========================================================================== */
.loader-screen {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
}

.loader-crown {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite, goldPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px var(--gold-glow));
    color: var(--gold-primary);
}

.loader-ring {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(212, 168, 83, 0.15);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    font-family: var(--font-heading);
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.85rem;
    animation: pulse 2s ease-in-out infinite;
}

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

/* ==========================================================================
   21. Keyframe Animations
   ========================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes goldGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(212,168,83,0.2); }
  50% { box-shadow: 0 0 20px rgba(212,168,83,0.5); }
}

@keyframes goldPulse {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(212, 168, 83, 0.3)); }
    50% { filter: drop-shadow(0 0 30px rgba(212, 168, 83, 0.7)); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes letterSpacing {
    from { letter-spacing: 0.3em; opacity: 0; }
    to { letter-spacing: 0.1em; opacity: 1; }
}

/* ==========================================================================
   22. Scroll Reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ==========================================================================
   23. Responsive Design
   ========================================================================== */
@media (max-width: 1280px) {
  .container { padding: 0 20px; }
}

@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  
  .content-with-sidebar { flex-direction: column; }
  
  .sidebar {
    width: 100%;
    position: static;
    order: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .main-content { order: 1; width: 100%; }
  
  /* Slide-in mobile menu adaptation */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(10, 14, 22, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1050;
    border-left: 1px solid var(--border-gold);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }
  
  .nav-links.active {
    right: 0;
  }

  .nav-item {
    font-size: 1.2rem;
    padding: 15px 30px;
    width: 100%;
    text-align: center;
  }
  
  .mobile-toggle { display: block; z-index: 1051; position: relative; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  
  .hero { min-height: 70vh; }
  .hero-content { padding: 40px 15px; }
  
  .section { padding: 60px 0; }
  .footer { padding: 50px 0 30px; margin-top: 50px; }
  
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { margin-bottom: 20px; border: 1px solid var(--border-gold); border-radius: var(--radius-md); }
  .cart-table td { padding: 15px; text-align: right; position: relative; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .cart-table td::before { 
    content: attr(data-label); 
    position: absolute; 
    left: 15px; 
    top: 50%; 
    transform: translateY(-50%); 
    font-weight: bold; 
    color: var(--text-gold);
    text-transform: uppercase;
    font-size: 0.8rem;
  }
  .cart-table tr td:first-child, .cart-table tr td:last-child { border-radius: 0; }
  .cart-item-info { justify-content: flex-end; }
}

/* ==========================================================================
   24. Scrollbar Styling
   ========================================================================== */
::-webkit-scrollbar {
  width: 10px;
  background-color: var(--bg-primary);
}

::-webkit-scrollbar-track {
  background-color: var(--bg-primary);
  border-left: 1px solid rgba(255,255,255,0.05);
}

::-webkit-scrollbar-thumb {
  background-color: rgba(212, 168, 83, 0.3);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--gold-primary);
}
