@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&family=Cinzel:wght@400;500;600&display=swap');

/* CSS Variables */
:root {
  --background: hsl(210, 57%, 8%);
  --foreground: hsl(0, 0%, 100%);
  --card: hsl(0, 0%, 10%);
  --card-foreground: hsl(0, 0%, 91%);
  --popover: hsl(210, 57%, 8%);
  --popover-foreground: hsl(0, 0%, 100%);
  --primary: hsl(45, 69%, 59%);
  --primary-foreground: hsl(0, 0%, 10%);
  --secondary: hsl(0, 0%, 10%);
  --secondary-foreground: hsl(0, 0%, 91%);
  --muted: hsl(0, 0%, 9%);
  --muted-foreground: hsl(0, 0%, 46%);
  --accent: hsl(45, 69%, 59%);
  --accent-foreground: hsl(0, 0%, 10%);
  --destructive: hsl(0, 84%, 60%);
  --destructive-foreground: hsl(0, 0%, 98%);
  --border: hsl(45, 69%, 59%);
  --input: hsl(0, 0%, 18%);
  --ring: hsl(45, 69%, 59%);
  --chart-1: hsl(45, 69%, 59%);
  --chart-2: hsl(160, 100%, 36%);
  --chart-3: hsl(42, 93%, 56%);
  --chart-4: hsl(147, 79%, 42%);
  --chart-5: hsl(341, 75%, 51%);
  
  /* Luxury Colors */
  --luxury-navy: hsl(214, 53%, 8%);
  --rich-black: hsl(0, 0%, 10%);
  --luxury-gold: hsl(45, 69%, 59%);
  --bright-gold: hsl(45, 84%, 76%);
  --text-light: hsl(0, 0%, 91%);
  --success: hsl(142, 76%, 36%);
  --warning: hsl(38, 92%, 50%);
  --error: hsl(0, 84%, 60%);

  /* Shadows */
  --shadow-gold: 0 0 20px hsla(45, 69%, 59%, 0.3);
  --shadow-dark: 0 8px 32px hsla(0, 0%, 0%, 0.3);

  /* Fonts */
  --font-luxury: 'Playfair Display', serif;
  --font-ornate: 'Cinzel', serif;
  --font-sans: 'Inter', sans-serif;

  --radius: 0.75rem;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(135deg, var(--luxury-navy) 0%, var(--rich-black) 100%);
  color: var(--foreground);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-luxury);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Utility Classes */
.z-50 { z-index: 50; }
.z-10 { z-index: 10; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.break-all { word-break: break-all; }
.uppercase { text-transform: uppercase; }
.font-bold { font-weight: bold; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.tracking-wide { letter-spacing: 0.025em; }
.leading-relaxed { line-height: 1.625; }
.overflow-hidden { overflow: hidden; }
.cursor-pointer { cursor: pointer; }

/* Spacing */
.p-0 { padding: 0; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-16 { padding-top: 4rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pl-16 { padding-left: 4rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }

/* Text Sizes */
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }

/* Grid */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Flex */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Colors */
.text-gold { color: var(--luxury-gold); }
.text-luxury-gold { color: var(--luxury-gold); }
.text-bright-gold { color: var(--bright-gold); }
.text-text-light { color: var(--text-light); }
.text-green-400 { color: #4ade80; }
.text-green-500 { color: #22c55e; }
.text-yellow-500 { color: #eab308; }
.text-white { color: white; }
.text-rich-black { color: var(--rich-black); }
.bg-rich-black { background-color: var(--rich-black); }
.bg-input { background-color: var(--input); }
.bg-green-500\/25 { background-color: rgba(34, 197, 94, 0.25); }
.border-luxury-gold { border-color: var(--luxury-gold); }
.border-green-500 { border-color: #22c55e; }
.border-yellow-500 { border-color: #eab308; }
.border-luxury-gold\/30 { border-color: hsla(45, 69%, 59%, 0.3); }

/* Borders */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* Custom Luxury Components */
.luxury-bg {
  background: linear-gradient(135deg, var(--luxury-navy) 0%, var(--rich-black) 100%);
  position: relative;
}

.luxury-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, hsla(45, 69%, 59%, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, hsla(45, 84%, 76%, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.ornate-title {
  font-family: var(--font-ornate);
  font-weight: 600;
  color: var(--luxury-gold);
}

.luxury-card {
  background: hsla(0, 0%, 10%, 0.8);
  border: 2px solid hsla(45, 69%, 59%, 0.3);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-dark);
}

.luxury-card:hover {
  border-color: var(--luxury-gold);
  box-shadow: var(--shadow-gold), var(--shadow-dark);
  transform: translateY(-5px);
}

.btn-luxury {
  background: linear-gradient(135deg, hsl(51, 100%, 50%), hsl(45, 100%, 35%));
  border: 2px solid var(--luxury-gold);
  color: var(--rich-black);
  font-weight: 600;
  padding: 0.75rem 1.875rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-sans);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-luxury:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  color: var(--rich-black);
}

.btn-luxury:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-outline-luxury {
  background: transparent;
  border: 2px solid var(--luxury-gold);
  color: var(--luxury-gold);
  font-weight: 600;
  padding: 0.75rem 1.875rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-luxury:hover {
  background: linear-gradient(135deg, hsl(51, 100%, 50%), hsl(45, 100%, 35%));
  color: var(--rich-black);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.text-gradient-gold {
  background: linear-gradient(135deg, hsl(51, 100%, 50%), hsl(45, 100%, 35%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.luxury-progress {
  height: 30px;
  border-radius: 15px;
  background: hsla(0, 0%, 10%, 0.8);
  border: 2px solid var(--luxury-gold);
  overflow: hidden;
  position: relative;
}

.luxury-progress-bar {
  background: linear-gradient(135deg, hsl(51, 100%, 50%), hsl(45, 100%, 35%));
  height: 100%;
  border-radius: 13px;
  transition: width 0.6s ease;
  position: relative;
  overflow: hidden;
}

.luxury-progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, hsla(0, 0%, 100%, 0.4), transparent);
  animation: shimmer 2s infinite;
}

.blc-logo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid var(--luxury-gold);
  box-shadow: var(--shadow-gold);
  animation: logoGlow 3s ease-in-out infinite alternate;
}

.countdown-timer {
  background: linear-gradient(135deg, hsl(51, 100%, 50%), hsl(45, 100%, 35%));
  color: var(--rich-black) !important;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-gold);
}

.countdown-timer h3 {
  color: var(--rich-black) !important;
  font-weight: 600 !important;
}

.timer-unit {
  display: inline-block;
  margin: 0 1rem;
  text-align: center;
}

.timer-number {
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--font-luxury);
  display: block;
}

.timer-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.loading-spinner {
  border: 3px solid hsla(45, 69%, 59%, 0.3);
  border-top: 3px solid var(--luxury-gold);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

.wallet-button {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  background: hsla(45, 69%, 59%, 0.1);
  border: 2px solid var(--luxury-gold);
  border-radius: 0.75rem;
  color: var(--foreground);
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  cursor: pointer;
}

.wallet-button:hover {
  background: linear-gradient(135deg, hsl(51, 100%, 50%), hsl(45, 100%, 35%));
  color: var(--rich-black);
  transform: translateY(-2px);
}

.wallet-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.balance-card {
  background: hsla(142, 76%, 36%, 0.1);
  border: 2px solid var(--success);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.balance-amount {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-luxury);
  color: var(--success);
}

.navbar-custom {
  background: hsla(214, 53%, 8%, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--luxury-gold);
  padding: 1rem 0;
}

.navbar-custom button {
  background: transparent !important;
  color: var(--text-light) !important;
}

.navbar-custom .ornate-title {
  background: transparent !important;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="m 60 0 l -60 0 l 0 60 l 60 0 z" fill="none" stroke="rgba(212,175,55,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

/* Form Styles */
input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--luxury-gold);
  border-radius: 0.5rem;
  background: var(--input);
  color: white;
  font-family: var(--font-sans);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--bright-gold);
  box-shadow: 0 0 0 3px hsla(45, 69%, 59%, 0.3);
}

/* FAQ Styles */
.faq-item {
  background: hsla(0, 0%, 10%, 0.8);
  border: 2px solid hsla(45, 69%, 59%, 0.3);
  border-radius: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  color: var(--foreground);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: hsla(45, 69%, 59%, 0.1);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-light);
  line-height: 1.625;
}

/* Animations */
@keyframes logoGlow {
  from { box-shadow: 0 0 20px hsla(45, 69%, 59%, 0.5); }
  to { box-shadow: 0 0 40px hsla(45, 69%, 59%, 0.8); }
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:text-right { text-align: right; }
  .md\:text-left { text-align: left; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:text-6xl { font-size: 3.75rem; }
  .lg\:text-left { text-align: left; }
  .lg\:justify-start { justify-content: flex-start; }
}

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

@media (max-width: 768px) {
  .blc-logo {
    width: 150px;
    height: 150px;
  }
  
  .timer-number {
    font-size: 2rem;
  }
  
  .timer-unit {
    margin: 0 0.5rem;
  }
  
  .balance-amount {
    font-size: 1.2rem;
    word-break: break-all;
    overflow-wrap: break-word;
  }

  .text-5xl {
    font-size: 2.5rem;
  }

  .text-6xl {
    font-size: 3rem;
  }

  .container {
    padding: 0 1rem;
  }

  .px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Fix balance card overflow on mobile */
  .balance-card {
    padding: 1rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .balance-card .balance-amount {
    font-size: 1.1rem;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .balance-card .text-text-light {
    font-size: 0.8rem;
    word-break: break-word;
  }

  /* Improve mobile wallet button spacing */
  .wallet-button {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  /* Fix mobile input sizing */
  input[type="number"] {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* Transition Classes */
.transition-colors { transition: color 0.3s ease; }
.transition-all { transition: all 0.3s ease; }

/* Hover States */
.hover\:text-bright-gold:hover { color: var(--bright-gold); }
.hover\:bg-luxury-gold\/10:hover { background-color: hsla(45, 69%, 59%, 0.1); }

/* Height Classes */
.h-16 { height: 4rem; }
.h-full { height: 100%; }
.h-20 { height: 5rem; }
.w-0\.5 { width: 0.125rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }

/* Last Child */
.last\:mb-0:last-child { margin-bottom: 0; }

/* Flex Utilities */
.items-start { align-items: flex-start; }

/* Footer Styles */
footer button {
  background: transparent !important;
  color: var(--text-light) !important;
  border: none !important;
}

footer button:hover {
  color: var(--bright-gold) !important;
}

/* Mobile Menu Fixes */
#mobileMenu {
  background: var(--rich-black) !important;
}

#mobileMenu button {
  background: transparent !important;
  color: var(--text-light) !important;
  /* ===== HEADER / NAVBAR & LOGO FIX ===== */

/* Navbar background & depth */
.navbar-custom {
  background: hsla(214, 53%, 8%, 0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--luxury-gold) !important;
  box-shadow: var(--shadow-dark);
}

/* Brand text in nav */
.navbar-custom .ornate-title {
  font-family: var(--font-ornate);
  font-weight: 600 !important;
  color: var(--luxury-gold) !important;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* Nav buttons styling */
.navbar-custom button {
  position: relative;
  padding: 0.5rem 0 !important;
  color: var(--text-light) !important;
  background: transparent !important;
  border: none !important;
}
.navbar-custom button::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--bright-gold);
  transition: width 0.3s ease;
}
.navbar-custom button:hover {
  color: var(--bright-gold) !important;
}
.navbar-custom button:hover::after {
  width: 100%;
}

/* Logo (wherever it appears) */
.blc-logo {
  width: 50px !important;
  height: 50px !important;
  border: 2px solid var(--luxury-gold) !important;
  box-shadow: var(--shadow-gold) !important;
  border-radius: 50%;
  transition: transform 0.3s ease;
}
.blc-logo:hover {
  transform: rotate(5deg) scale(1.1);
}

  /* phae-1 sold out: Data Cards */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid;
}

.stat-card.completed {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.stat-card.live {
    border-color: #FF9800;
    background: rgba(255, 152, 0, 0.1);
}

.stat-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
}

.stat-value {
    font-size: 1.2em;
    font-weight: bold;
    margin: 5px 0;
}

.stat-details {
    font-size: 12px;
    opacity: 0.8;
}