/* ========================================
   ELITE X — Premium Design System
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ── Design Tokens ── */
:root {
  /* Colors */
  --bg-primary: #FAFBFF;
  --bg-secondary: #F0F2FA;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.92);
  --bg-glass: rgba(255, 255, 255, 0.6);
  --bg-glass-strong: rgba(255, 255, 255, 0.85);
  --bg-modal-overlay: rgba(15, 18, 40, 0.65);
  --bg-hero-start: #0F1228;
  --bg-hero-mid: #1A1F4A;
  --bg-hero-end: #2A1F5A;

  /* Gold Palette */
  --gold-50: #FFF9E6;
  --gold-100: #FFF0BF;
  --gold-200: #FFE699;
  --gold-300: #FFD966;
  --gold-400: #FFCC33;
  --gold-500: #C8A04A;
  --gold-600: #B8912E;
  --gold-700: #9A7824;
  --gold-800: #7C601D;
  --gold-900: #5E4815;

  /* Navy Palette */
  --navy-50: #E8EAF6;
  --navy-100: #C5CAE9;
  --navy-200: #9FA8DA;
  --navy-300: #7986CB;
  --navy-400: #5C6BC0;
  --navy-500: #1A1F3A;
  --navy-600: #151A32;
  --navy-700: #10142A;
  --navy-800: #0B0F22;
  --navy-900: #06091A;

  /* Accent Colors */
  --accent-emerald: #10B981;
  --accent-emerald-light: #D1FAE5;
  --accent-red: #EF4444;
  --accent-red-light: #FEE2E2;
  --accent-amber: #F59E0B;
  --accent-blue: #3B82F6;

  /* Text */
  --text-primary: #1E1E2E;
  --text-secondary: #5A5E78;
  --text-muted: #9CA3AF;
  --text-on-dark: #FFFFFF;
  --text-on-gold: #1A1F3A;
  --text-gold: #C8A04A;

  /* Borders */
  --border-light: rgba(200, 160, 74, 0.15);
  --border-medium: rgba(200, 160, 74, 0.3);
  --border-gold: rgba(200, 160, 74, 0.5);
  --border-card: rgba(200, 200, 220, 0.4);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26, 31, 58, 0.06);
  --shadow-md: 0 4px 14px rgba(26, 31, 58, 0.08);
  --shadow-lg: 0 10px 40px rgba(26, 31, 58, 0.12);
  --shadow-xl: 0 20px 60px rgba(26, 31, 58, 0.15);
  --shadow-gold: 0 4px 20px rgba(200, 160, 74, 0.25);
  --shadow-gold-lg: 0 8px 40px rgba(200, 160, 74, 0.35);
  --shadow-card-hover: 0 20px 50px rgba(200, 160, 74, 0.2);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Blur */
  --blur-sm: 8px;
  --blur-md: 16px;
  --blur-lg: 24px;
  --blur-xl: 40px;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  outline: none;
}

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

input {
  font-family: var(--font-body);
  outline: none;
  border: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-500);
  border-radius: var(--radius-full);
}

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

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-base);
}

.navbar.scrolled {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 2rem;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.navbar-brand .elite {
  color: var(--text-on-dark);
  transition: var(--transition-base);
}

.navbar.scrolled .navbar-brand .elite {
  color: var(--navy-500);
}

.navbar-brand .x-letter {
  color: var(--gold-500);
  font-size: 2rem;
}

.navbar-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-nav {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-orders {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--text-on-dark);
  box-shadow: var(--shadow-gold);
}

.btn-orders:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-lg);
}

.btn-contact {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur-sm));
  color: var(--text-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar.scrolled .btn-contact {
  color: var(--navy-500);
  border-color: var(--border-medium);
  background: var(--bg-glass);
}

.btn-contact:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.navbar.scrolled .btn-contact:hover {
  background: var(--gold-50);
  border-color: var(--gold-500);
  color: var(--gold-700);
}

.btn-nav .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-hero-start) 0%, var(--bg-hero-mid) 40%, var(--bg-hero-end) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Animated background shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(200, 160, 74, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 30%, rgba(100, 80, 200, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(200, 160, 74, 0.05) 0%, transparent 50%);
  animation: hero-bg-drift 20s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes hero-bg-drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-5%, 3%) rotate(5deg); }
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(200, 160, 74, 0.12);
  top: 10%;
  left: -5%;
  animation: float-orb 15s ease-in-out infinite;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(100, 80, 200, 0.1);
  top: 60%;
  right: -5%;
  animation: float-orb 18s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(200, 160, 74, 0.08);
  bottom: 10%;
  left: 30%;
  animation: float-orb 12s ease-in-out infinite 3s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(200, 160, 74, 0.15);
  border: 1px solid rgba(200, 160, 74, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-400);
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease;
  position: relative;
  z-index: 1;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
  animation: pulse-dot 2s ease infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-on-dark);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .brand-name {
  display: block;
  margin-bottom: 0.5rem;
}

.hero-title .brand-name .x-gold {
  color: var(--gold-400);
  text-shadow: 0 0 40px rgba(200, 160, 74, 0.4);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400), var(--gold-500));
  background-size: 200% auto;
  color: var(--text-on-gold);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-gold-lg);
  transition: var(--transition-base);
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease 0.6s both;
  overflow: hidden;
}

.btn-explore::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s;
}

.btn-explore:hover::before {
  left: 100%;
}

.btn-explore:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 50px rgba(200, 160, 74, 0.5);
  background-position: right center;
}

.btn-explore .arrow {
  transition: var(--transition-base);
}

.btn-explore:hover .arrow {
  transform: translateX(4px);
}

/* Shimmer line separator */
.hero-divider {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-500), var(--gold-300), var(--gold-500), transparent);
  position: relative;
}

.hero-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: shimmer-line 3s ease-in-out infinite;
}

@keyframes shimmer-line {
  0% { left: -50%; }
  100% { left: 150%; }
}

/* ── Trust Badges Section ── */
.trust-section {
  padding: 4rem 2rem;
  background: var(--bg-primary);
  position: relative;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.trust-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--blur-sm));
  transition: var(--transition-base);
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-gold);
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.trust-icon.verified {
  background: linear-gradient(135deg, var(--gold-50), var(--gold-100));
  color: var(--gold-600);
}

.trust-icon.encrypted {
  background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
  color: #7C3AED;
}

.trust-icon.instant {
  background: linear-gradient(135deg, var(--accent-emerald-light), #A7F3D0);
  color: var(--accent-emerald);
}

.trust-text h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.trust-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ── Marketplace Section ── */
.marketplace {
  padding: 4rem 2rem 6rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-600);
  margin-bottom: 0.75rem;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--gold-500);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--navy-500);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Category Filters */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  opacity: 0;
  transition: var(--transition-base);
  border-radius: var(--radius-full);
}

.filter-btn:hover {
  border-color: var(--gold-500);
  color: var(--gold-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.filter-btn.active {
  color: var(--text-on-dark);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-gold);
}

.filter-btn.active::before {
  opacity: 1;
}

.filter-btn span {
  position: relative;
  z-index: 1;
}

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

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(var(--blur-sm));
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-500), var(--gold-400));
  opacity: 0;
  transition: var(--transition-base);
}

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

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

.product-card.popular {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-gold);
}

.product-card.popular::before {
  opacity: 1;
}

/* Popular Badge */
.popular-badge {
  position: absolute;
  top: -1px;
  right: 24px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--text-on-gold);
  padding: 0.35rem 1rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-gold);
}

/* Availability Badge */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-emerald);
  margin-bottom: 1rem;
}

.availability-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: pulse-dot 2s ease infinite;
}

/* Virtual Card Visual */
.card-visual {
  width: 100%;
  aspect-ratio: 1.586 / 1;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-slow);
  perspective: 800px;
}

.card-visual.visa {
  background: linear-gradient(135deg, #1A1F3A 0%, #2A2F5A 50%, #1A1F3A 100%);
}

.card-visual.mastercard {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
}

.card-visual.rupay {
  background: linear-gradient(135deg, #1A1F3A 0%, #2D1B4E 50%, #1A1F3A 100%);
}

.product-card:hover .card-visual {
  transform: rotateY(-3deg) rotateX(2deg) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Card shimmer */
.card-visual::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 60%
  );
  animation: card-shimmer 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes card-shimmer {
  0%, 100% { transform: translateX(-30%) translateY(-30%); }
  50% { transform: translateX(30%) translateY(30%); }
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-chip {
  width: 36px;
  height: 28px;
  border-radius: 5px;
  background: linear-gradient(135deg, #FFD700, #DAA520, #FFD700);
  position: relative;
  overflow: hidden;
}

.card-chip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 3px;
  right: 3px;
  height: 1px;
  background: rgba(0, 0, 0, 0.15);
}

.card-chip::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: rgba(0, 0, 0, 0.15);
}

.card-network {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 1px;
}

.card-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.card-number {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 3px;
}

.card-expiry-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-expiry-label {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-expiry-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.card-network-bottom {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
}

/* Card Details */
.card-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.detail-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.detail-value {
  font-weight: 700;
  color: var(--text-primary);
}

.detail-value.highlight {
  color: var(--gold-600);
}

/* Stock indicator */
.stock-bar {
  height: 4px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.stock-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-emerald), #34D399);
  transition: width 1s ease;
}

.stock-fill.low {
  background: linear-gradient(90deg, var(--accent-amber), #FBBF24);
}

.stock-fill.critical {
  background: linear-gradient(90deg, var(--accent-red), #F87171);
}

.stock-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  margin-bottom: 1.25rem;
  margin-top: -0.75rem;
}

.stock-label {
  color: var(--text-muted);
}

.stock-count {
  font-weight: 600;
  color: var(--text-secondary);
}

/* Buy Button */
.btn-buy {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--navy-500), var(--navy-600));
  color: var(--text-on-dark);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-buy::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(200, 160, 74, 0.2), transparent);
  transition: 0.5s;
}

.btn-buy:hover::before {
  left: 100%;
}

.btn-buy:hover {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-buy .price-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* ── Modal Overlay ── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-modal-overlay);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

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

.modal {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(var(--blur-xl));
  -webkit-backdrop-filter: blur(var(--blur-xl));
  border: 1px solid var(--border-card);
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition-spring);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

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

.modal-step {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.step-badge {
  padding: 0.3rem 0.75rem;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--text-on-gold);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-500);
}

.btn-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.btn-modal-close:hover {
  background: var(--accent-red-light);
  color: var(--accent-red);
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

/* ── Checkout Step 1 ── */
.settlement-amount {
  text-align: center;
  margin-bottom: 1.5rem;
}

.settlement-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.settlement-price {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--navy-500);
}

.settlement-price.discounted {
  color: var(--accent-emerald);
}

.settlement-original {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-top: 0.25rem;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  background: var(--accent-emerald-light);
  color: var(--accent-emerald);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-top: 0.5rem;
}

/* Coupon Section */
.coupon-section {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.coupon-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.coupon-input-group {
  display: flex;
  gap: 0.5rem;
}

.coupon-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.coupon-input:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(200, 160, 74, 0.15);
}

.coupon-input::placeholder {
  color: var(--text-muted);
  font-family: var(--font-body);
}

.btn-apply {
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--text-on-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  white-space: nowrap;
}

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

.coupon-message {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  display: none;
}

.coupon-message.success {
  color: var(--accent-emerald);
  display: block;
}

.coupon-message.error {
  color: var(--accent-red);
  display: block;
}

/* Payment Method */
.payment-method {
  margin-bottom: 1.5rem;
}

.btn-scan-pay {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--text-on-gold);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-gold);
  transition: var(--transition-base);
}

.btn-scan-pay:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-lg);
}

/* QR Code Display */
.qr-section {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  margin-bottom: 1.5rem;
}

.qr-image {
  max-width: 220px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.qr-upi-id {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.4rem 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* Timer */
.timer-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--accent-red-light);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.timer-icon {
  font-size: 1rem;
}

.timer-text {
  font-size: 0.8rem;
  color: var(--accent-red);
  font-weight: 600;
}

.timer-value {
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Proceed Button */
.btn-proceed {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--navy-500), var(--navy-600));
  color: var(--text-on-dark);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-proceed:hover {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-proceed:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-proceed:disabled:hover {
  background: linear-gradient(135deg, var(--navy-500), var(--navy-600));
  box-shadow: none;
  transform: none;
}

/* ── Checkout Step 2 ── */
.verification-section {
  margin-bottom: 1.5rem;
}

.input-group {
  margin-bottom: 1.25rem;
}

.input-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.input-field {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.input-field:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(200, 160, 74, 0.15);
  background: white;
}

.input-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-medium);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
  margin-top: 1px;
}

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

.checkbox-group.checked .checkbox-custom::after {
  content: '✓';
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.checkbox-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Checkout Step 3 — Processing ── */
.processing-section {
  text-align: center;
  padding: 2rem 0;
}

.processing-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  border: 3px solid var(--bg-secondary);
  border-top-color: var(--gold-500);
  animation: spin 1s linear infinite;
}

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

.processing-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-500);
  margin-bottom: 0.5rem;
}

.processing-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400), var(--gold-300));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
  border-radius: var(--radius-full);
}

.progress-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-600);
}

.processing-steps {
  margin-top: 1.5rem;
  text-align: left;
}

.proc-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.proc-step.active {
  color: var(--gold-600);
  font-weight: 600;
}

.proc-step.done {
  color: var(--accent-emerald);
}

.proc-step-icon {
  width: 20px;
  text-align: center;
}

/* ── Checkout Step 4 — Success ── */
.success-section {
  text-align: center;
}

.success-icon-container {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--accent-emerald-light), #A7F3D0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  animation: success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes success-pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-emerald);
  margin-bottom: 0.5rem;
}

.success-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.order-details {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.order-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border-light);
}

.order-detail-row:last-child {
  border-bottom: none;
}

.order-detail-label {
  color: var(--text-secondary);
}

.order-detail-value {
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.btn-telegram {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, #0088cc, #00a2e8);
  color: var(--text-on-dark);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-base);
  margin-bottom: 0.75rem;
}

.btn-telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 136, 204, 0.3);
}

.btn-close-success {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.btn-close-success:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* ── Orders Modal ── */
.orders-empty {
  text-align: center;
  padding: 3rem 1rem;
}

.orders-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.orders-empty-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.order-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-card);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.order-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.order-status {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-status.completed {
  background: var(--accent-emerald-light);
  color: var(--accent-emerald);
}

.order-status.refunded {
  background: #E0E7FF;
  color: #4F46E5;
}

.order-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.order-product-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.order-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold-600);
}

.btn-refund {
  width: 100%;
  padding: 0.65rem;
  background: transparent;
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.btn-refund:hover {
  background: var(--accent-red);
  color: white;
}

/* ── Refund Modal ── */
.refund-info {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.refund-info-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: #92400E;
  margin-bottom: 0.35rem;
}

.refund-info-text {
  font-size: 0.8rem;
  color: #A16207;
  line-height: 1.6;
}

.refund-amount {
  text-align: center;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

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

.refund-amount-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-500);
}

/* ── Confetti ── */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3000;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  opacity: 0;
  animation: confetti-fall 3s ease-in forwards;
}

@keyframes confetti-fall {
  0% { opacity: 1; transform: translateY(0) rotateZ(0deg); }
  100% { opacity: 0; transform: translateY(100vh) rotateZ(720deg); }
}

/* ── Footer ── */
.footer {
  background: var(--navy-500);
  padding: 3rem 2rem 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
}

.footer-brand .x-gold {
  color: var(--gold-400);
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 350px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-400);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links li a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links li a:hover {
  color: var(--gold-400);
  transform: translateX(4px);
}

.footer-divider {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

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

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

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Card animation on load */
.product-card {
  animation: fadeInUp 0.6s ease both;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* ── Responsive Design ── */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1rem;
  }

  .navbar-brand {
    font-size: 1.35rem;
  }

  .navbar-brand .x-letter {
    font-size: 1.5rem;
  }

  .btn-nav {
    padding: 0.5rem 0.9rem;
    font-size: 0.7rem;
  }

  .hero {
    padding: 5rem 1.5rem 3rem;
    min-height: 85vh;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .marketplace {
    padding: 3rem 1rem 4rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .filter-bar {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .modal {
    max-width: 100%;
    max-height: 95vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    margin-top: auto;
  }

  .modal-overlay {
    align-items: flex-end;
  }

  .settlement-price {
    font-size: 2.25rem;
  }
}

@media (max-width: 480px) {
  .navbar-actions {
    gap: 0.5rem;
  }

  .btn-nav {
    padding: 0.45rem 0.7rem;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .btn-explore {
    padding: 0.85rem 2rem;
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* ── Utility Classes ── */
.text-gold { color: var(--gold-500); }
.text-navy { color: var(--navy-500); }
.text-emerald { color: var(--accent-emerald); }
.text-muted { color: var(--text-muted); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ── Surprise Modal (Easter Egg) ── */
.surprise-content {
  text-align: center;
  padding: 2rem 1rem;
}

.surprise-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: surprise-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes surprise-bounce {
  0% { transform: scale(0) rotate(-180deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.surprise-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.surprise-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

/* Hide scrollbar on modals for mobile */
.modal-body::-webkit-scrollbar {
  width: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-full);
}

/* ═══════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-hero-start) 0%, var(--bg-hero-mid) 40%, var(--bg-hero-end) 100%);
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.login-page .hero-orb { pointer-events: none; }

.login-card {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(var(--blur-xl));
  -webkit-backdrop-filter: blur(var(--blur-xl));
  border: 1px solid var(--border-card);
  border-radius: var(--radius-2xl);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 440px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: fadeInUp 0.7s ease;
  position: relative;
  z-index: 1;
}

.login-brand {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: var(--navy-500);
}

.login-brand .x-gold {
  color: var(--gold-500);
}

.login-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-card);
}

.login-divider span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.btn-google-signin {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: white;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn-google-signin:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-500);
}

.btn-google-signin:active {
  transform: translateY(0);
}

.btn-google-signin .google-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-google-signin.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-google-signin.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(200, 160, 74, 0.1), transparent);
  animation: shimmer-line 1.5s ease infinite;
}

.login-error {
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  background: var(--accent-red-light);
  color: var(--accent-red);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  display: none;
}

.login-error.visible {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.login-footer {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.login-footer a {
  color: var(--gold-600);
  font-weight: 600;
}

.login-features {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.login-feature {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.login-feature span:first-child {
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════
   NAVBAR — USER PROFILE
   ═══════════════════════════════════════ */
.user-profile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur-sm));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  cursor: default;
}

.navbar.scrolled .user-profile {
  background: var(--bg-glass);
  border-color: var(--border-card);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-400);
}

.user-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-on-dark);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar.scrolled .user-name {
  color: var(--navy-500);
}

.btn-logout {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(239, 68, 68, 0.15);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.2);
  transition: var(--transition-base);
  cursor: pointer;
}

.navbar.scrolled .btn-logout {
  color: var(--accent-red);
  background: var(--accent-red-light);
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-logout:hover {
  background: var(--accent-red);
  color: white;
  border-color: var(--accent-red);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════
   DELETE ORDER BUTTON
   ═══════════════════════════════════════ */
.order-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.order-actions .btn-refund {
  flex: 1;
}

.btn-delete-order {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  font-size: 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  cursor: pointer;
}

.btn-delete-order:hover {
  background: var(--accent-red-light);
  border-color: var(--accent-red);
  color: var(--accent-red);
  transform: scale(1.05);
}

/* ═══════════════════════════════════════
   CONFIRM DIALOG
   ═══════════════════════════════════════ */
.confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 18, 40, 0.5);
  backdrop-filter: blur(var(--blur-sm));
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

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

.confirm-dialog {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.95);
  transition: var(--transition-spring);
}

.confirm-overlay.active .confirm-dialog {
  transform: translateY(0) scale(1);
}

.confirm-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--accent-red-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.confirm-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-500);
  margin-bottom: 0.5rem;
}

.confirm-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.confirm-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-confirm-cancel {
  flex: 1;
  padding: 0.75rem;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-confirm-cancel:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.btn-confirm-delete {
  flex: 1;
  padding: 0.75rem;
  background: var(--accent-red);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-confirm-delete:hover {
  background: #DC2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* ═══════════════════════════════════════
   PAGE VISIBILITY STATES
   ═══════════════════════════════════════ */
.page-hidden {
  display: none !important;
}

.page-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
}

.page-loading .loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--bg-secondary);
  border-top-color: var(--gold-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Mobile adjustments for login */
@media (max-width: 480px) {
  .login-card {
    padding: 2rem 1.5rem;
  }

  .login-brand {
    font-size: 2rem;
  }

  .user-name {
    display: none;
  }

  .user-profile {
    padding: 0.25rem;
  }

  .btn-logout {
    padding: 0.4rem 0.7rem;
    font-size: 0.65rem;
  }
}

@media (max-width: 768px) {
  .navbar-actions {
    gap: 0.35rem;
  }

  .user-name {
    max-width: 60px;
  }
}
