/* =============================================
   PSC-Promo.de — Base Styles
   Modern dark theme with glassmorphism
   ============================================= */

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

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-hover: rgba(255, 255, 255, 0.12);
  --text-primary: #f0f0f5;
  --text-secondary: #8b8b9e;
  --text-muted: #5a5a6e;
  --accent-blue: #6366f1;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-cyan: #06b6d4;
  --accent-red: #f43f5e;
  --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-blue: linear-gradient(135deg, #3b82f6, #6366f1);
  --gradient-green: linear-gradient(135deg, #10b981, #06b6d4);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* --- Glass Card --- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.glass-card:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-color-hover);
}

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

.btn-outline:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.btn-green {
  background: var(--gradient-green);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-green:hover {
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 15px;
  border-radius: var(--radius-lg);
}

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

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition);
}

.header.scrolled {
  padding: 12px 0;
  background: rgba(10, 10, 15, 0.95);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

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

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

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 450;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.header-event-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav.open { display: flex; }

/* --- Hero --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
  top: -200px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent 70%);
  top: 40%;
  left: 50%;
  animation: float 12s ease-in-out infinite;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-blue);
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

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

.hero-subtitle {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* --- Referral Card --- */
.referral-card {
  width: 100%;
  max-width: 560px;
  padding: 24px;
}

.referral-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.referral-link-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.referral-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-secondary);
  overflow: hidden;
}

.referral-input svg {
  flex-shrink: 0;
  color: var(--accent-blue);
}

.referral-input span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy {
  padding: 12px 20px;
  flex-shrink: 0;
}

.btn-copy.copied {
  background: var(--accent-green);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.share-label {
  font-size: 13px;
  color: var(--text-muted);
}

.share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.share-btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-color-hover);
}

.share-btn.whatsapp:hover {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.3);
}

.share-btn.facebook:hover {
  background: rgba(24, 119, 242, 0.15);
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.3);
}

.share-btn.discord:hover {
  background: rgba(88, 101, 242, 0.15);
  color: #5865f2;
  border-color: rgba(88, 101, 242, 0.3);
}

.share-btn.snapchat:hover {
  background: rgba(255, 252, 0, 0.1);
  color: #fffc00;
  border-color: rgba(255, 252, 0, 0.2);
}

.share-btn.twitter:hover {
  background: rgba(29, 161, 242, 0.15);
  color: #1da1f2;
  border-color: rgba(29, 161, 242, 0.3);
}

/* --- Stats --- */
.stat-card-single {
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  max-width: 560px;
  width: 100%;
}

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

.stat-icon.blue {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-blue);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Section --- */
.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-blue);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 auto;
}

/* --- Progress Bar (shared) --- */
.progress-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--gradient-primary);
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

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

/* --- Legal Pages --- */
.legal-page {
  padding: 120px 0 60px;
}

.legal-page h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 24px;
}

.legal-content {
  padding: 32px;
  line-height: 1.8;
}

.legal-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text-primary);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
}

.legal-content ul {
  color: var(--text-secondary);
  font-size: 14px;
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content code {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-blue);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 18, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  padding: 16px 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-banner-text a {
  color: var(--accent-blue);
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Footer --- */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border-color);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand { max-width: 320px; }
.footer-brand .logo { margin-bottom: 16px; }

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Animations --- */
.animate-fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Click Counter --- */
.click-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 32px;
}

.click-counter-value {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  transition: transform 0.3s ease;
}

.click-counter-value.counter-pulse {
  animation: counterPulse 0.8s ease;
}

@keyframes counterPulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.2); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.click-counter-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Gift Cards Section --- */
.giftcards-section {
  padding: 80px 0;
  position: relative;
}

.giftcards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.giftcard {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.giftcard:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.giftcard.locked {
  opacity: 0.55;
  filter: grayscale(0.3);
}

.giftcard.locked:hover {
  transform: none;
  box-shadow: none;
}

.giftcard.sold-out {
  opacity: 0.4;
  filter: grayscale(0.6);
}

.giftcard-visual {
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.giftcard-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.08));
  pointer-events: none;
}

.giftcard-visual::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
  top: -60px;
  right: -40px;
  pointer-events: none;
}

.giftcard-bg {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.01) 20px,
    rgba(255, 255, 255, 0.01) 40px
  );
}

.giftcard-amount {
  position: relative;
  z-index: 1;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.giftcard-brand {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 8px;
}

.giftcard-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.giftcard-clicks {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.giftcard-stock {
  font-size: 12px;
  color: var(--accent-green);
  font-weight: 500;
}

.giftcard-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sold-out-badge {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.claimed-badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.giftcard-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.giftcard-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}

.giftcard-progress-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--gradient-primary);
  transition: width 1s ease;
}

.giftcard-progress-text {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.btn-giftcard {
  width: 100%;
  justify-content: center;
}

/* --- How It Works --- */
.how-it-works-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}

.how-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.how-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.how-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.how-step-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.how-step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.how-step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.how-step-connector {
  width: 60px;
  height: 2px;
  background: var(--border-color);
  margin-top: 42px;
  flex-shrink: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav, .header-actions { display: none; }
  .header-event-text { display: none; }
  .header-countdown {
    font-size: 10px;
    padding: 2px 8px;
  }
  .hero { padding: 100px 0 60px; }
  .hero-title { font-size: 28px; }
  .section { padding: 60px 0; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { gap: 32px; flex-wrap: wrap; }
  .giftcards-grid { grid-template-columns: 1fr; }
  .giftcards-section { padding: 60px 0; }
  .how-it-works-section { padding: 60px 0; }
  .how-steps { flex-direction: column; gap: 32px; align-items: center; }
  .how-step { max-width: 300px; }
  .how-step-connector { width: 2px; height: 32px; margin-top: 0; }
  .click-counter-value { font-size: 40px; }
}

@media (max-width: 480px) {
  .referral-link-row { flex-direction: column; }
  .btn-copy { width: 100%; justify-content: center; }
  .container { padding: 0 16px; }
}

/* --- Scroll to Top Button --- */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  color: var(--text-primary);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

/* --- Glow Effect for Claimable Cards --- */
.giftcard:not(.locked):not(.sold-out):not(.claimed) {
  animation: cardGlow 3s ease-in-out infinite;
}

@keyframes cardGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(99, 102, 241, 0); }
  50%      { box-shadow: 0 0 24px rgba(99, 102, 241, 0.15), 0 0 48px rgba(139, 92, 246, 0.08); }
}

/* --- Skeleton Loading --- */
.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  animation: skeletonShimmer 1.5s infinite;
}

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

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  width: 80%;
}

.skeleton-title {
  height: 28px;
  margin-bottom: 12px;
  width: 60%;
}

.skeleton-card {
  height: 280px;
}

/* --- Social Proof Toast --- */
.social-proof {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(15, 15, 25, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(16, 185, 129, 0.05);
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
  pointer-events: none;
  max-width: 360px;
}

.social-proof.visible {
  transform: translateX(0);
  opacity: 1;
}

.social-proof-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-proof-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.social-proof-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-proof-text strong {
  color: var(--accent-green);
  font-weight: 700;
}

.social-proof-time {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

@media (max-width: 480px) {
  .social-proof {
    left: 12px;
    right: 12px;
    bottom: 16px;
    max-width: none;
  }
}

/* --- Staggered Card Animation --- */
.stagger-card {
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-card.stagger-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.giftcard.locked.stagger-card.stagger-visible {
  opacity: 0.55;
}

.giftcard.sold-out.stagger-card.stagger-visible {
  opacity: 0.4;
}

/* --- Lazy Load Sections --- */
.giftcards-section,
.how-it-works-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.giftcards-section.section-loaded,
.how-it-works-section.section-loaded {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hero Particles Canvas --- */
.hero-particles {
  opacity: 0.7;
}

/* --- Progress to Next Reward --- */
.next-reward-bar {
  width: 100%;
  max-width: 560px;
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
}

.next-reward-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.next-reward-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.next-reward-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
}

.next-reward-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 6px;
}

.next-reward-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--gradient-primary);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.next-reward-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: shimmer 2s infinite;
}

.next-reward-info {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

.next-reward-info strong {
  color: var(--text-primary);
}

/* --- Event Countdown --- */
.header-countdown {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 0.05em;
  background: rgba(99, 102, 241, 0.1);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Mini How-It-Works Steps --- */
.mini-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.mini-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.mini-step-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--accent-blue);
}
.mini-step-arrow {
  color: var(--text-muted);
  display: flex;
  align-items: center;
}
@media (max-width: 600px) {
  .mini-steps {
    gap: 8px;
  }
  .mini-step span {
    display: none;
  }
}

/* --- Rewards Teaser (no reflink yet) --- */
.rewards-teaser-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  margin-bottom: 24px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  color: var(--accent-blue);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}
.rewards-teaser-hint:hover {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}
/* Next reward highlight */
.giftcard-next {
  border-color: rgba(99, 102, 241, 0.35) !important;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.12), 0 0 40px rgba(139, 92, 246, 0.06);
  position: relative;
}
.giftcard-next::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(99, 102, 241, 0.3);
  pointer-events: none;
  animation: nextRewardPulse 3s ease-in-out infinite;
}
@keyframes nextRewardPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.1); }
  50% { box-shadow: 0 0 25px rgba(99, 102, 241, 0.2); }
}

/* Motivation hint under click counter */
.click-counter-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 16px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 20px;
  font-size: 13px;
  color: var(--accent-blue);
  font-weight: 500;
  animation: hintFadeIn 0.5s ease 0.8s both;
}
.click-counter-hint svg {
  flex-shrink: 0;
  color: var(--accent-blue);
}
@keyframes hintFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.giftcard-teaser {
  opacity: 0.6;
  pointer-events: none;
  filter: grayscale(0.3);
}
.giftcard-teaser-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border-color-hover);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

/* --- Reflink Activation CTA --- */
.reflink-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: ctaPulseGlow 3s ease-in-out infinite;
}
.reflink-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.08), transparent);
  animation: ctaShimmer 3s ease-in-out infinite;
}
.reflink-cta:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 32px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}
.reflink-cta-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}
.reflink-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  position: relative;
}
.reflink-cta-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.reflink-cta-sub {
  font-size: 13px;
  color: var(--text-secondary);
}
.reflink-cta-btn {
  flex-shrink: 0;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  position: relative;
  animation: ctaBtnPulse 2s ease-in-out infinite;
}
@keyframes ctaPulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
  50% { box-shadow: 0 0 30px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
}
@keyframes ctaShimmer {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}
@keyframes ctaBtnPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3); }
  50% { box-shadow: 0 4px 24px rgba(99, 102, 241, 0.5); }
}

/* --- Reflink Activation Popup --- */
.reflink-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: popupFadeIn 0.25s ease;
  padding: 20px;
}
.reflink-popup {
  background: var(--bg-secondary);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-xl);
  padding: 40px 36px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.15), 0 0 60px rgba(139, 92, 246, 0.08);
  animation: popupScaleIn 0.3s ease;
}
.reflink-popup-icon {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
  animation: popupIconBounce 2s ease-in-out infinite;
}
@keyframes popupIconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.reflink-popup-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.reflink-popup-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Reward preview chips in popup */
.reflink-popup-rewards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.reflink-popup-reward-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  white-space: nowrap;
}
.reflink-popup-reward-chip::before {
  content: '🎁';
  font-size: 13px;
}
.reflink-popup-confirm {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  position: relative;
}
.reflink-popup-confirm:disabled {
  opacity: 0.7;
  cursor: wait;
}
.reflink-popup-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
.reflink-popup-cancel {
  display: inline-block;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 8px 16px;
  transition: var(--transition);
  font-family: var(--font);
}
.reflink-popup-cancel:hover {
  color: var(--text-secondary);
}

@keyframes popupFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes popupScaleIn {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mobile adjustments for CTA + Popup */
@media (max-width: 600px) {
  .reflink-cta {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
    gap: 12px;
  }
  .reflink-cta-text {
    align-items: center;
  }
  .reflink-popup {
    padding: 32px 24px 24px;
  }
  .reflink-popup-title {
    font-size: 19px;
  }
}
