/* Light theme (default) - Modern Design */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --accent: #f59e0b;
  --bg: #fafbfc;
  --bg-light: #ffffff;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --border-color: rgba(15, 23, 42, 0.08);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 12px rgba(99, 102, 241, 0.15), 0 20px 40px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Dark theme */
[data-theme="dark"] {
  --primary: #0088cc;
  --primary-dark: #006ba3;
  --accent: #ff6b35;
  --bg: #0a0e27;
  --bg-light: #14182e;
  --text: #e8eaf6;
  --text-muted: #9ca3af;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Loading animation - spinning star with neon glow */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-star {
  font-size: 4rem;
  animation: spin-star 2s linear infinite;
  filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.8)) 
          drop-shadow(0 0 40px rgba(102, 126, 234, 0.6))
          drop-shadow(0 0 60px rgba(102, 126, 234, 0.4));
  color: #667eea;
}

@keyframes spin-star {
  0% {
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.8)) 
            drop-shadow(0 0 40px rgba(102, 126, 234, 0.6))
            drop-shadow(0 0 60px rgba(102, 126, 234, 0.4));
  }
  50% {
    transform: rotate(180deg) scale(1.1);
    filter: drop-shadow(0 0 30px rgba(102, 126, 234, 1)) 
            drop-shadow(0 0 50px rgba(102, 126, 234, 0.8))
            drop-shadow(0 0 70px rgba(102, 126, 234, 0.6));
  }
  100% {
    transform: rotate(360deg) scale(1);
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.8)) 
            drop-shadow(0 0 40px rgba(102, 126, 234, 0.6))
            drop-shadow(0 0 60px rgba(102, 126, 234, 0.4));
  }
}

/* Controls container - Theme and Language toggle */
.controls-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 1000;
  align-items: center;
}

/* Control buttons - Theme and Language toggle */
.control-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-light);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0;
}

.control-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-hover);
  background: var(--gradient-primary);
}

.control-btn:hover span {
  transform: rotate(15deg) scale(1.1);
}

.control-btn:active {
  transform: translateY(0) scale(0.98);
}

.control-btn span {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  line-height: 1;
}

.control-btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Theme toggle specific styles */
.theme-toggle {
  /* Inherits from .control-btn */
}


/* Skip to main content link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  border-radius: 0 0 4px 0;
  opacity: 0;
  pointer-events: none;
  transition: top 0.3s ease, opacity 0.3s ease;
}

.skip-link:focus {
  top: 0;
  opacity: 1;
  pointer-events: auto;
}

.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  contain: layout style paint;
}

.falling-star {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.6;
  animation: fall linear infinite;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
  will-change: transform, opacity;
  transform: translateZ(0);
}

.falling-star.small {
  font-size: 1rem;
  opacity: 0.4;
}

.falling-star.medium {
  font-size: 1.5rem;
  opacity: 0.5;
}

.falling-star.large {
  font-size: 2rem;
  opacity: 0.7;
}

@keyframes fall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 100px)) rotate(360deg);
    opacity: 0;
  }
}

.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .bg-pattern {
  opacity: 0.03;
  background-image: 
    radial-gradient(circle at 20% 50%, #667eea 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, #764ba2 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, #f5576c 0%, transparent 50%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
  flex: 1;
}

header {
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 2rem;
}

.logo {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.logo-star {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4)) 
          drop-shadow(0 0 16px rgba(99, 102, 241, 0.3))
          drop-shadow(0 0 24px rgba(99, 102, 241, 0.2));
  animation: starGlow 2s ease-in-out infinite alternate;
  display: inline-block;
}

.logo-star-left {
  animation-delay: 0s;
}

.logo-star-right {
  animation-delay: 0.3s;
}

@keyframes starGlow {
  0% {
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4)) 
            drop-shadow(0 0 16px rgba(99, 102, 241, 0.3))
            drop-shadow(0 0 24px rgba(99, 102, 241, 0.2));
    transform: scale(1);
  }
  100% {
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.6)) 
            drop-shadow(0 0 20px rgba(99, 102, 241, 0.4))
            drop-shadow(0 0 30px rgba(99, 102, 241, 0.3));
    transform: scale(1.05);
  }
}

[data-theme="dark"] .logo-star {
  filter: drop-shadow(0 0 10px rgba(0, 136, 204, 0.5)) 
          drop-shadow(0 0 20px rgba(0, 136, 204, 0.4))
          drop-shadow(0 0 30px rgba(0, 136, 204, 0.3));
}

@keyframes starGlowDark {
  0% {
    filter: drop-shadow(0 0 10px rgba(0, 136, 204, 0.5)) 
            drop-shadow(0 0 20px rgba(0, 136, 204, 0.4))
            drop-shadow(0 0 30px rgba(0, 136, 204, 0.3));
    transform: scale(1);
  }
  100% {
    filter: drop-shadow(0 0 15px rgba(0, 136, 204, 0.7)) 
            drop-shadow(0 0 25px rgba(0, 136, 204, 0.5))
            drop-shadow(0 0 35px rgba(0, 136, 204, 0.4));
    transform: scale(1.05);
  }
}

[data-theme="dark"] .logo-star {
  animation-name: starGlowDark;
}

.tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero {
  background: var(--bg-light);
  border-radius: 24px;
  padding: 3rem 2rem;
  margin-bottom: 3rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.welcome {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1.5rem;
  text-align: center;
}

.welcome .rocket-emoji,
.welcome span .rocket-emoji,
[data-i18n="welcome"] .rocket-emoji,
.rocket-emoji {
  display: inline-block !important;
}

.welcome a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border-bottom: 2px solid transparent;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome a:hover {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-bottom-color: var(--primary);
}

.welcome-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.description {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.feature-card {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(99, 102, 241, 0.2);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: featureIconFloat 3s ease-in-out infinite;
}

.feature-card:nth-child(1) .feature-icon {
  animation-delay: 0s;
}

.feature-card:nth-child(2) .feature-icon {
  animation-delay: 0.5s;
}

.feature-card:nth-child(3) .feature-icon {
  animation-delay: 1s;
}

@keyframes featureIconFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.05);
  }
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.cta-section {
  text-align: center;
  margin: 3rem 0;
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.btn-secondary {
  background: var(--bg-light);
  color: var(--text);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.payment-methods {
  background: var(--bg-light);
  border-radius: 24px;
  padding: 2.5rem;
  margin: 3rem 0;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.payment-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--text);
}

.payment-title .payment-title-emoji,
[data-i18n="paymentTitle"] .payment-title-emoji,
.payment-title-emoji {
  display: inline-block !important;
  color: inherit !important;
  filter: none !important;
  background: none !important;
  -webkit-text-fill-color: inherit !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.payment-grid-centered {
  grid-template-columns: repeat(2, 1fr);
  max-width: 600px;
  margin: 2rem auto 0;
}

.payment-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.ym-noscript {
  position: absolute;
  left: -9999px;
}

.payment-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.payment-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(99, 102, 241, 0.2);
}

.payment-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.3));
}

.payment-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.nft-banner {
  background: var(--gradient-accent);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
  box-shadow: 0 10px 40px rgba(245, 87, 108, 0.3);
}

.nft-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.nft-title .gift-emoji,
[data-i18n="nftTitle"] .gift-emoji,
.gift-emoji {
  display: inline-block !important;
  color: inherit !important;
  filter: none !important;
  text-shadow: none !important;
  background: none !important;
  -webkit-text-fill-color: inherit !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}

.nft-text {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
}

footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4rem;
}

.footer-disclaimer {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.8;
  line-height: 1.5;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copyright {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.channel-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border-bottom: 1px solid transparent;
}

.channel-link:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
}

.channel-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
  z-index: 100;
  opacity: 0;
  transform: translateY(20px);
}

.back-to-top.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* FAQ Section */
.faq-section {
  background: var(--bg-light);
  border-radius: 24px;
  padding: 2.5rem;
  margin: 3rem 0;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.faq-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
}

.faq-item {
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0;
  transition: background-color 0.2s ease;
  border-radius: 8px;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}

.faq-item:hover {
  background-color: rgba(99, 102, 241, 0.03);
}

[data-theme="dark"] .faq-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0;
}

.faq-question {
  width: 100%;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0;
  padding: 1rem 0;
  color: var(--text);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
  font-family: inherit;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 4px;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0;
}

.faq-answer-wrapper.active {
  max-height: 500px;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

.faq-answer {
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

/* NFT Countdown */
.nft-countdown {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.countdown-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.countdown-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: inline-block;
  min-width: 60px;
  text-align: center;
}

.countdown-value.updated {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
}

.countdown-label {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.25rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.countdown-separator {
  font-size: 1.5rem;
  font-weight: 700;
  opacity: 0.7;
  margin: 0 0.25rem;
}

@media (max-width: 768px) {
  .countdown-value {
    font-size: 1.5rem;
    padding: 0.5rem 0.75rem;
    min-width: 50px;
  }
  
  .countdown-label {
    font-size: 0.65rem;
  }
  
  .countdown-separator {
    font-size: 1.2rem;
  }
  
  .countdown-container {
    gap: 0.25rem;
  }
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card,
.payment-item,
.faq-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.feature-card.visible,
.payment-item.visible,
.faq-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delays */
.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.faq-item:nth-child(1) { transition-delay: 0.1s; }
.faq-item:nth-child(2) { transition-delay: 0.2s; }
.faq-item:nth-child(3) { transition-delay: 0.3s; }
.faq-item:nth-child(4) { transition-delay: 0.4s; }
.faq-item:nth-child(5) { transition-delay: 0.5s; }

/* Mobile optimizations */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  header {
    margin-bottom: 2rem;
    padding-top: 1rem;
  }

  .logo {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .hero {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }

  .welcome {
    font-size: 1.3rem;
  }

  .description {
    font-size: 1rem;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    -webkit-tap-highlight-color: transparent;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }

  .controls-container {
    top: 0.5rem;
    right: 0.5rem;
    gap: 0.4rem;
  }
  
  .control-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    border-radius: 10px;
  }

  .faq-section {
    padding: 1.5rem 1rem;
  }

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

  .faq-question {
    font-size: 1.1rem;
  }

  .payment-methods {
    padding: 1.5rem 1rem;
  }

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

  .payment-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nft-banner {
    padding: 1.5rem 1rem;
  }

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

  .nft-text {
    font-size: 1rem;
  }


  /* Touch-friendly spacing */
  .feature-card,
  .payment-item,
  .faq-item {
    -webkit-tap-highlight-color: transparent;
  }

  /* Reduce animations on mobile for better performance */
  .falling-star {
    font-size: 1rem;
  }

  .stars-container {
    --max-stars: 15;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.75rem;
  }

  .hero {
    padding: 1.25rem 0.75rem;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Calculator Section */
.calculator-section {
  background: var(--bg-light);
  border-radius: 28px;
  padding: 3rem;
  margin: 3rem 0;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.calculator-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0.6;
}

.calculator-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.calculator-title {
  /* font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; */
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--text);
}

.calculator-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
  font-weight: 400;
}

.calculator-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  background: var(--bg);
  padding: 0.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.calculator-tab {
  padding: 0.875rem 1.75rem;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.calculator-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.1;
  transition: left 0.3s ease;
}

.calculator-tab:hover::before {
  left: 0;
}

.calculator-tab:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.calculator-tab.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.calculator-tab.active::before {
  display: none;
}

.tab-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.tab-text {
  line-height: 1;
}

.calculator-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.calculator-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calculator-input-wrapper {
  margin-bottom: 2rem;
}

.calculator-input-group {
  position: relative;
}

.calculator-input-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.label-icon {
  font-size: 1.2rem;
}

.input-container,
.select-container {
  position: relative;
  display: flex;
  align-items: center;
}

.calculator-input {
  width: 100%;
  padding: 1rem 1.25rem;
  padding-right: 4rem;
  font-size: 1.15rem;
  border: 2px solid var(--border-color);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  transition: all 0.3s ease;
  font-family: inherit;
  font-weight: 600;
}

.calculator-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.input-suffix {
  position: absolute;
  right: 1.25rem;
  color: var(--primary);
  font-weight: 700;
  pointer-events: none;
  font-size: 1.1rem;
}

.quick-amounts {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.quick-amount-btn {
  padding: 0.5rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s ease;
  font-family: inherit;
}

.quick-amount-btn:hover {
  background: var(--bg-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.quick-amount-btn:active {
  transform: translateY(0);
}

.calculator-select {
  width: 100%;
  padding: 1rem 1.25rem;
  padding-right: 3rem;
  font-size: 1.15rem;
  border: 2px solid var(--border-color);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  transition: all 0.3s ease;
  font-family: inherit;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
}

.calculator-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.select-arrow {
  position: absolute;
  right: 1.25rem;
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.calculator-select:focus + .select-arrow {
  transform: rotate(180deg);
}

.calculator-results {
  background: var(--bg);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.calculator-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
  padding: 3rem 2rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.calculator-price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.calculator-price-item:hover {
  background: rgba(99, 102, 241, 0.03);
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 8px;
}

.calculator-price-item:last-child {
  border-bottom: none;
}

.calculator-price-label {
  color: var(--text);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.calculator-price-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: -0.01em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.calculator-price-value.highlight {
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}

.calculator-error {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.1) 0%, rgba(244, 67, 54, 0.05) 100%);
  border: 1px solid rgba(244, 67, 54, 0.3);
  border-radius: 14px;
  padding: 1.25rem;
  color: #f44336;
  text-align: center;
  font-weight: 600;
  font-size: 1.05rem;
}

.calculator-action {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.calculator-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.calculator-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.calculator-buy-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.calculator-buy-btn span:first-child {
  font-size: 1.3rem;
  line-height: 1;
}

.calculator-buy-btn span:last-child {
  line-height: 1;
}

@media (max-width: 768px) {
  .calculator-section {
    padding: 1.5rem 1rem;
    border-radius: 20px;
  }

  .calculator-header {
    margin-bottom: 1.5rem;
  }

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

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

  .calculator-tabs {
    gap: 0.5rem;
    padding: 0.375rem;
    margin-bottom: 1.5rem;
  }

  .calculator-tab {
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
  }

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

  .calculator-input,
  .calculator-select {
    padding: 0.875rem 1rem;
    padding-right: 3.5rem;
    font-size: 1rem;
  }

  .input-suffix {
    right: 1rem;
    font-size: 0.9rem;
  }

  .quick-amounts {
    gap: 0.375rem;
  }

  .quick-amount-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }

  .calculator-results {
    padding: 1.25rem;
  }

  .calculator-price-value {
    font-size: 1.1rem;
  }

  .calculator-price-value.highlight {
    font-size: 1.3rem;
  }
}

