/* =============================================
   bigtip.me — Black + Gold, mobile-first
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --gold: #FFD700;
  --gold-dim: #c9a800;
  --gold-glow: rgba(255, 215, 0, 0.35);
  --accent: #8B5CF6;
  --accent-dim: #6D28D9;
  --accent-light: #C4B5FD;
  --accent-glow: rgba(139, 92, 246, 0.4);
  --coral: #FF6B8A;
  --bg: #0a0a0a;
  --bg2: #111111;
  --white: #f5f5f5;
  --grey: #888;
  --font: 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --radius: 6px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Dark purple vignette from top */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% -5%, rgba(38, 16, 72, 0.55) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Film grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* =============================================
   AURORA BACKGROUND
   ============================================= */

.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.aurora-blob:nth-child(1) {
  width: 80vmax;
  height: 80vmax;
  background: radial-gradient(circle at center, rgba(88, 28, 220, 0.5) 0%, transparent 65%);
  top: -35%;
  left: -20%;
  animation: aurora-1 26s ease-in-out infinite;
}

.aurora-blob:nth-child(2) {
  width: 50vmax;
  height: 50vmax;
  background: radial-gradient(circle at center, rgba(255, 107, 138, 0.16) 0%, transparent 65%);
  top: 5%;
  right: -15%;
  animation: aurora-2 32s ease-in-out infinite;
}

.aurora-blob:nth-child(3) {
  width: 60vmax;
  height: 60vmax;
  background: radial-gradient(circle at center, rgba(20, 184, 166, 0.1) 0%, transparent 65%);
  bottom: -25%;
  left: 15%;
  animation: aurora-3 38s ease-in-out infinite;
}

@keyframes aurora-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  35%       { transform: translate(5vw, 4vh) scale(1.1); }
  70%       { transform: translate(-3vw, 6vh) scale(0.93); }
}

@keyframes aurora-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(-6vw, 3vh) scale(1.08); }
  75%       { transform: translate(4vw, -4vh) scale(1.12); }
}

@keyframes aurora-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  30%       { transform: translate(4vw, -5vh) scale(0.9); }
  65%       { transform: translate(-5vw, -2vh) scale(1.05); }
}

@media (max-width: 768px) {
  .aurora-blob { filter: blur(60px); }
  .aurora-blob:nth-child(3) { display: none; }
}


/* =============================================
   SCROLL REVEAL
   ============================================= */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* RTL support */
[dir="rtl"] { font-family: 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, 'Noto Sans Arabic', sans-serif; }


/* =============================================
   TOP BAR
   ============================================= */

.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

[dir="rtl"] .top-bar { flex-direction: row-reverse; }


/* =============================================
   SHARE BUTTON
   ============================================= */

.share-fab {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background var(--transition), border-color var(--transition), transform 0.15s;
  flex-shrink: 0;
}

.share-fab:hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.25); }
.share-fab:active { transform: scale(0.96); }

.share-icon { font-size: 15px; line-height: 1; }

.share-fab.copied {
  background: rgba(139, 92, 246, 0.18);
  border-color: var(--accent);
  color: var(--accent-light);
}


/* =============================================
   LANGUAGE SWITCHER
   ============================================= */

.lang-switcher {
  position: relative;
  flex-shrink: 0;
}

.lang-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition), border-color var(--transition);
}

.lang-btn:hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.25); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: var(--radius);
  padding: 6px 0;
  display: none;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

[dir="rtl"] .lang-dropdown { right: auto; left: 0; }

.lang-dropdown.open { display: block; }

.lang-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--white);
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: background var(--transition);
}

[dir="rtl"] .lang-dropdown button { text-align: right; }

.lang-dropdown button:hover { background: rgba(139, 92, 246, 0.12); color: var(--accent-light); }


/* =============================================
   HERO
   ============================================= */

.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 48px;
  position: relative;
  overflow: hidden;
}

/* subtle radial glow behind counter */
.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 100vw);
  height: min(600px, 100vw);
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite;
}

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

.hero-inner {
  width: 100%;
  max-width: 700px;
  text-align: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Record badge */
.record-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-light);
  padding: 7px 18px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: badge-glow 3s ease-in-out infinite;
}

.badge-trophy { font-size: 16px; }

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(139, 92, 246, 0); }
  50% { box-shadow: 0 0 18px rgba(139, 92, 246, 0.3); }
}

/* Main hero headline */
.hero-headline {
  font-size: clamp(32px, 8vw, 66px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  text-align: center;
  background: linear-gradient(150deg, #ffffff 20%, #ede9fe 65%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(196, 181, 253, 0.22));
}

/* Hero subtitle */
.hero-sub {
  font-size: clamp(14px, 3vw, 19px);
  font-weight: 500;
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.04em;
  font-style: italic;
  margin-top: -10px;
  text-shadow: 0 0 24px rgba(255, 215, 0, 0.35);
}

/* Provocative tagline */
.hero-tagline {
  font-size: clamp(15px, 4vw, 21px);
  font-weight: 600;
  color: #FF8A65;
  text-align: center;
  max-width: 440px;
  line-height: 1.45;
  font-style: italic;
  letter-spacing: 0.01em;
  text-shadow: 0 0 40px rgba(255, 138, 101, 0.35);
}

.hero-headline br { display: block; }

/* Not list */
.not-list {
  max-width: 540px;
  text-align: center;
}

.not-list p {
  font-size: clamp(12px, 2.8vw, 15px);
  color: var(--grey);
  line-height: 2;
  letter-spacing: 0.01em;
}

.not-tag {
  display: inline-block;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 4px;
  padding: 1px 7px;
  margin: 2px 1px;
  font-size: 0.95em;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.not-tag:hover {
  border-color: rgba(255,215,0,0.25);
  color: var(--white);
}

.counter-block { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }

.counter-label {
  letter-spacing: 0.25em;
  font-size: 11px;
  color: var(--grey);
  text-transform: uppercase;
}

.counter-value {
  font-size: clamp(36px, 9vw, 58px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
  user-select: none;
}

/* Counter peek button */
.counter-peek {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}
.counter-peek:hover { opacity: 0.8; }

.peek-dots {
  font-size: clamp(22px, 6vw, 32px);
  font-weight: 700;
  color: var(--grey);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.peek-hint {
  font-size: 11px;
  color: var(--grey);
  opacity: 0.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Counter full reveal */
.counter-full {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: reveal-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes reveal-in {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.currency-hint {
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-top: -4px;
  cursor: pointer;
}

.counter-already {
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 0.06em;
  margin-top: 4px;
  opacity: 0.6;
}

/* ── Progress bar ─────────────────────────────────── */
.progress-wrap {
  width: 100%;
  max-width: 420px;
  margin: 10px auto 0;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-pct {
  font-size: 13px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;
}

.progress-target {
  font-size: 10px;
  color: var(--grey);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.progress-track {
  height: 10px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0%,
      transparent calc(25% - 0.5px),
      rgba(255,255,255,0.08) calc(25% - 0.5px),
      rgba(255,255,255,0.08) 25%
    ),
    rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: visible;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #7C3AED 0%, #a855f7 40%, #ec4899 75%, #FFD700 100%);
  background-size: 500% 100%;
  background-position: left center;
  width: 0%;
  transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.6), 0 0 22px rgba(139, 92, 246, 0.25);
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer-bar 2.2s ease-in-out infinite;
  border-radius: 99px;
}

.progress-dot {
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, #fff 0%, #C4B5FD 40%, #8B5CF6 100%);
  border-radius: 50%;
  box-shadow: 0 0 8px 3px rgba(139, 92, 246, 0.9), 0 0 20px 6px rgba(139, 92, 246, 0.4);
  animation: dot-pulse 1.6s ease-in-out infinite;
  z-index: 2;
}

.ms-tick {
  position: absolute;
  left: var(--pos);
  top: -4px;
  bottom: -4px;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

.progress-milestones {
  position: relative;
  height: 16px;
  margin-top: 7px;
}

.ms-label {
  position: absolute;
  left: var(--pos);
  top: 0;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  color: var(--grey);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.35;
  transition: color 0.6s ease, opacity 0.6s ease;
  white-space: nowrap;
  user-select: none;
}

.ms-label.reached {
  color: var(--gold);
  opacity: 0.9;
}

.progress-remaining {
  font-size: 10px;
  color: var(--grey);
  text-align: right;
  margin-top: 5px;
  opacity: 0.6;
  letter-spacing: 0.05em;
}

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

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 8px 3px rgba(139, 92, 246, 0.9), 0 0 20px 6px rgba(139, 92, 246, 0.4); }
  50%       { box-shadow: 0 0 14px 6px rgba(196, 181, 253, 1),  0 0 30px 10px rgba(139, 92, 246, 0.6); }
}

.counter-challenge {
  font-size: 14px;
  color: var(--white);
  opacity: 0.75;
  text-align: center;
  max-width: 380px;
  line-height: 1.5;
  margin-top: 4px;
}

/* Mini recent badges */
.mini-tips-wrap {
  margin-top: 14px;
  overflow: hidden;
  max-width: 420px;
  width: 100%;
  position: relative;
}

.mini-tips-wrap::before,
.mini-tips-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 32px;
  z-index: 1;
  pointer-events: none;
}
.mini-tips-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.mini-tips-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

.mini-tips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 4px;
  scroll-behavior: smooth;
}
.mini-tips::-webkit-scrollbar { display: none; }

.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,215,0,0.07);
  border: 1px solid rgba(255,215,0,0.18);
  border-radius: 20px;
  padding: 3px 10px 3px 7px;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--white);
  opacity: 0.75;
  animation: badge-pop 0.3s ease;
}
.mini-badge .mb-icon { font-size: 10px; }
.mini-badge .mb-name { color: var(--grey); }
.mini-badge .mb-amount { color: var(--gold); font-weight: 700; }

@keyframes badge-pop {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 0.75; transform: scale(1); }
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.hero-copy { display: flex; flex-direction: column; gap: 6px; }

.hero-line-1 {
  font-size: clamp(18px, 4.5vw, 28px);
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.01em;
}

.hero-line-2 {
  font-size: clamp(14px, 3.5vw, 20px);
  color: var(--white);
  opacity: 0.75;
}

.cta-question {
  font-size: clamp(17px, 4.5vw, 24px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  max-width: 380px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.cta-joke {
  font-size: 14px;
  color: var(--white);
  opacity: 0.8;
  text-align: center;
  max-width: 400px;
  line-height: 1.6;
}

.scroll-hint {
  font-size: 12px;
  color: var(--grey);
  text-decoration: none;
  opacity: 0.6;
  animation: float 3s ease-in-out infinite;
}

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


/* =============================================
   CTA BUTTON
   ============================================= */

.cta-btn-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  display: flex;
  justify-content: center;
}

.cta-btn-wrap::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(139, 92, 246, 0.4);
  animation: ring-pulse 2.8s ease-in-out infinite;
  pointer-events: none;
}

.cta-btn-wrap::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: calc(var(--radius) + 14px);
  border: 1px solid rgba(139, 92, 246, 0.18);
  animation: ring-pulse 2.8s ease-in-out infinite 0.4s;
  pointer-events: none;
}

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

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 20px 32px;
  background: linear-gradient(135deg, #5B21B6 0%, #7C3AED 50%, #8B5CF6 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 32px var(--accent-glow), 0 4px 16px rgba(0,0,0,0.5);
  animation: cta-pulse 2.5s ease-in-out infinite;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}

.cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.28) 50%, transparent 65%);
  background-size: 250% 100%;
  background-position: 200% 0;
  animation: btn-shimmer 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btn-shimmer {
  0%, 55% { background-position: 200% 0; }
  85%, 100% { background-position: -200% 0; }
}

.cta-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 52px rgba(139, 92, 246, 0.65), 0 4px 20px rgba(0,0,0,0.5);
  animation: none;
}

.cta-btn:active { transform: scale(0.98); }

.cta-secondary {
  background: transparent;
  color: var(--accent-light);
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  margin-top: 16px;
  animation: none;
}

.cta-secondary::after { display: none; }

.cta-secondary:hover {
  background: var(--accent);
  color: #fff;
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 32px var(--accent-glow), 0 4px 16px rgba(0,0,0,0.5); }
  50% { box-shadow: 0 0 56px rgba(139, 92, 246, 0.65), 0 4px 20px rgba(0,0,0,0.5); }
}


/* =============================================
   DRAWER
   ============================================= */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.drawer-overlay.open { opacity: 1; pointer-events: all; }

.drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #1c1428 0%, #161216 20%, #141414 50%);
  border-top: 2px solid rgba(139, 92, 246, 0.35);
  border-radius: 20px 20px 0 0;
  padding: 44px 24px 40px;
  z-index: 300;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 92dvh;
  overflow-y: auto;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 -8px 40px rgba(88, 28, 220, 0.2), 0 -2px 0 rgba(139, 92, 246, 0.25);
}

.drawer.open { transform: translateY(0); }

/* drag handle */
.drawer::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
}

.drawer-close {
  position: absolute;
  top: 14px;
  right: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  color: var(--grey);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.drawer-close:hover { background: rgba(255,255,255,0.12); color: var(--white); }

[dir="rtl"] .drawer-close { right: auto; left: 20px; }

.drawer-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--grey);
  margin-bottom: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

@media (max-width: 380px) { .amount-grid { grid-template-columns: repeat(3, 1fr); } }

.value-question {
  font-size: 12px;
  font-style: italic;
  color: var(--gold);
  opacity: 0.65;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.amount-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--white);
  padding: 12px 6px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}

.amount-btn:hover {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 12px rgba(139, 92, 246, 0.15);
}

.amount-btn.selected {
  background: linear-gradient(145deg, #6D28D9 0%, #7C3AED 50%, #8B5CF6 100%);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.45), inset 0 1px 0 rgba(255,255,255,0.2);
}

.amount-btn.selected::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.25) 50%, transparent 65%);
  background-size: 250% 100%;
  background-position: -200% 0;
  animation: btn-shimmer 2.5s ease-in-out infinite;
  pointer-events: none;
}

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

.custom-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-light);
  border-color: rgba(139, 92, 246, 0.3);
  letter-spacing: 0.03em;
}

.custom-btn.selected, .custom-btn:hover {
  background: linear-gradient(145deg, #6D28D9 0%, #8B5CF6 100%);
  border-color: var(--accent);
  color: #fff;
}

.custom-input-wrap {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.currency-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--grey);
}

.cur-btn {
  background: #1e1e1e;
  border: 1px solid #333;
  color: var(--white);
  padding: 7px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.cur-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.name-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.input-label {
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 0.04em;
}

input[type="text"], input[type="number"], textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  font-family: var(--font);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

textarea {
  resize: none;
  line-height: 1.5;
  box-sizing: border-box;
}

input[type="text"]:focus, input[type="number"]:focus, textarea:focus {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.04);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3), 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.submit-btn {
  width: 100%;
  padding: 20px;
  background: linear-gradient(135deg, #5B21B6 0%, #7C3AED 50%, #8B5CF6 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.35), 0 4px 16px rgba(0,0,0,0.5);
}

.submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.3) 50%, transparent 65%);
  background-size: 250% 100%;
  background-position: 200% 0;
  animation: btn-shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

.submit-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 44px rgba(139, 92, 246, 0.55), 0 6px 20px rgba(0,0,0,0.5);
}
.submit-btn:active { transform: scale(0.98); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; animation: none; }

.submit-arrow { font-size: 22px; }

.drawer-permanent {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,215,0,0.7);
  text-align: center;
  padding: 10px 14px;
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 10px;
  background: rgba(255,215,0,0.04);
  line-height: 1.6;
}

.drawer-clarification {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  line-height: 1.6;
}

.drawer-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--grey);
  text-align: center;
  opacity: 0.75;
  line-height: 1.6;
}
.drawer-note strong { color: var(--white); opacity: 1; }

.drawer-no-value {
  margin-top: 14px;
  font-size: 12px;
  color: var(--gold-dim);
  text-align: center;
  opacity: 0.6;
  line-height: 1.5;
}


/* =============================================
   STORY
   ============================================= */

.story {
  background: var(--bg2);
  padding: 80px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.story-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.anon-icon {
  font-size: 64px;
  opacity: 0.25;
  filter: grayscale(1);
}

.story-lines {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.story-lines p {
  font-size: clamp(16px, 4vw, 22px);
  line-height: 1.5;
  color: var(--white);
  opacity: 0.9;
}

.story-lines em { font-style: italic; color: var(--gold); }
.story-lines strong { color: var(--gold); font-weight: 800; }

.story-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #2a2a2a;
  padding-top: 32px;
  width: 100%;
}

.story-footer p {
  font-size: clamp(13px, 3vw, 16px);
  color: var(--grey);
  line-height: 1.6;
}


/* =============================================
   TOP 10
   ============================================= */

.top-section {
  background: var(--bg2);
  padding: 60px 24px;
}

.top-inner {
  max-width: 480px;
  margin: 0 auto;
}

/* Messages button */
.messages-btn {
  display: block;
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 24px;
  background: rgba(255, 215, 0, 0.09);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.08);
}
.messages-btn:hover {
  background: rgba(255, 215, 0, 0.16);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.18);
}

/* Messages overlay + panel */
.messages-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 400;
}
.messages-overlay.open { display: block; }

.messages-panel {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: min(520px, 100vw);
  background: #141414;
  border-top: 2px solid var(--gold-dim);
  border-radius: 20px 20px 0 0;
  padding: 28px 20px 40px;
  z-index: 500;
  max-height: 75dvh;
  overflow-y: auto;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.messages-panel.open { transform: translateX(-50%) translateY(0); }

.messages-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none; border: none;
  color: var(--grey); font-size: 20px;
  cursor: pointer; padding: 4px 8px;
}

.messages-panel-title {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--grey);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.messages-search-wrap { margin-bottom: 16px; }

.messages-search {
  width: 100%;
  padding: 9px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.messages-search::placeholder { color: rgba(255,255,255,0.25); }
.messages-search:focus { border-color: rgba(255,215,0,0.3); }

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.message-item {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  padding: 12px 14px;
}

.message-text {
  font-size: 15px;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 6px;
}

.message-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.message-name {
  font-size: 12px;
  color: var(--gold);
  opacity: 0.7;
}

.msg-eye-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--grey);
  font-size: 14px;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.msg-eye-btn:hover { color: var(--white); border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.06); }

/* Messages CTA (above story) */
.messages-cta-wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 24px 16px;
}

/* Dedication preview modal */
.ded-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ded-modal-overlay.open { opacity: 1; pointer-events: auto; }

.ded-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.94);
  z-index: 601;
  width: min(480px, calc(100vw - 32px));
  max-height: 90dvh;
  overflow-y: auto;
  background: linear-gradient(160deg, rgba(88,28,220,0.12) 0%, rgba(10,10,18,0.98) 60%);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 24px;
  padding: 44px 32px 36px;
  text-align: center;
  box-shadow: 0 0 80px rgba(139,92,246,0.18), 0 32px 64px rgba(0,0,0,0.7);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.3s;
}
.ded-modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.ded-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--grey);
  font-size: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.ded-modal-close:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.ded-modal-icon { font-size: 52px; line-height: 1; animation: icon-float 3.5s ease-in-out infinite; filter: drop-shadow(0 0 20px rgba(255,107,138,0.45)); }
@keyframes icon-float {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-8px) rotate(3deg); }
}

.ded-modal-label {
  font-size: 10px; letter-spacing: 0.35em; color: var(--grey);
  text-transform: uppercase; opacity: 0.5; margin-top: 8px;
}
.ded-modal-message {
  font-family: 'Caveat', cursive;
  font-size: clamp(26px, 5.5vw, 40px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  word-break: break-word;
  margin: 12px 0;
}
.ded-modal-divider {
  width: 52px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,107,138,0.5), transparent);
  margin: 4px auto 12px;
}
.ded-modal-author { font-size: 15px; font-weight: 700; color: var(--gold); letter-spacing: 0.04em; }
.ded-modal-url {
  display: block;
  font-size: 11px; color: var(--gold); opacity: 0.6;
  font-family: monospace; margin: 10px 0 4px; word-break: break-all;
  text-decoration: none;
  transition: opacity .15s;
}
.ded-modal-url:hover { opacity: 1; text-decoration: underline; }
.ded-modal-share-btn {
  width: 100%;
  margin-top: 16px;
  padding: 13px 20px;
  background: rgba(255,107,138,0.1);
  border: 1px solid rgba(255,107,138,0.3);
  color: #ff8fa3;
  font-family: var(--font);
  font-size: 13px; font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.05em;
}
.ded-modal-share-btn:hover { background: rgba(255,107,138,0.2); transform: scale(1.02); }

.messages-empty {
  font-size: 14px;
  color: var(--grey);
  opacity: 0.5;
  text-align: center;
  padding: 20px 0;
  font-style: italic;
}

.top-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--grey);
  margin-bottom: 28px;
}

.top-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.top-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: #1a1a1a;
  border-radius: var(--radius);
  border: 1px solid #222;
  animation: badge-pop 0.4s ease;
}

.top-item { transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: default; }
.top-item:hover { transform: translateX(4px); box-shadow: 0 0 16px rgba(255,215,0,0.08); }

.top-item.gold-rank  { border-color: #c9a800; background: rgba(201,168,0,0.08); }
.top-item.silver-rank{ border-color: #888; background: rgba(136,136,136,0.06); }
.top-item.bronze-rank{ border-color: #7a4f2a; background: rgba(122,79,42,0.08); }

.top-item.gold-rank:hover  { box-shadow: 0 0 20px rgba(255,215,0,0.15); }
.top-item.silver-rank:hover { box-shadow: 0 0 20px rgba(180,180,180,0.1); }

.top-rank {
  font-size: 15px;
  min-width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.top-name {
  flex: 1;
  font-size: 13px;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-name.top-msg-excerpt {
  font-style: italic;
  opacity: 0.78;
}

.top-amount {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
}

.top-total-count {
  text-align: center;
  font-size: 12px;
  color: var(--grey);
  opacity: 0.6;
  letter-spacing: 0.05em;
}

.top-total-count strong {
  color: var(--gold);
  font-weight: 800;
}

.top-empty {
  text-align: center;
  color: var(--grey);
  font-size: 14px;
  opacity: 0.5;
  padding: 24px 0;
  font-style: italic;
}


/* =============================================
   DONORS
   ============================================= */

.donors {
  padding: 48px 0;
  overflow: hidden;
}

.donors-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--grey);
  margin-bottom: 20px;
}

.donors-track-wrap {
  overflow: hidden;
  position: relative;
}

/* fade edges */
.donors-track-wrap::before,
.donors-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.donors-track-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.donors-track-wrap::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

.donors-track {
  display: flex;
  gap: 12px;
  padding: 0 24px;
  animation: scroll-left 30s linear infinite;
  width: max-content;
}

.donors-track:hover { animation-play-state: paused; }

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

.donor-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 40px;
  padding: 8px 16px;
  white-space: nowrap;
  font-size: 14px;
  flex-shrink: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.donor-chip:hover {
  border-color: rgba(255, 215, 0, 0.25);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.08);
}

.donor-chip .chip-icon { color: var(--gold); }
.donor-chip .chip-name { color: var(--white); }
.donor-chip .chip-amount { color: var(--gold); font-weight: 700; }


/* =============================================
   FOOTER
   ============================================= */

.footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
  color: var(--grey);
  opacity: 0.5;
  border-top: 1px solid #1a1a1a;
}

.footer .contact-info {
  margin-top: 12px;
  opacity: 0.7;
  font-size: 12px;
}

.footer .contact-info a {
  color: var(--gold);
  text-decoration: none;
}

.footer-links {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  font-size: 12px;
  color: var(--grey);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--gold);
}

.footer .contact-info a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin-top: 16px;
  font-size: 11px;
  color: var(--grey);
  opacity: 0.4;
  letter-spacing: 0.06em;
}


/* =============================================
   CARD CUSTOMISATION (icon + font selectors)
   ============================================= */

.card-customize-section {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.customize-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gold);
  opacity: 0.55;
  text-transform: uppercase;
  font-weight: 700;
}

.icon-selector {
  display: flex;
  gap: 8px;
}

.icon-opt {
  width: 48px;
  height: 48px;
  font-size: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s, transform 0.12s, box-shadow 0.15s;
  outline: none;
  flex-shrink: 0;
}
.icon-opt:hover { background: rgba(255,255,255,0.08); transform: scale(1.1); }
.icon-opt.selected {
  border-color: var(--gold);
  background: rgba(255,215,0,0.12);
  box-shadow: 0 0 0 2px rgba(255,215,0,0.25);
  transform: scale(1.05);
}

.font-selector {
  display: flex;
  gap: 8px;
}

.font-opt {
  flex: 1;
  padding: 10px 8px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  min-width: 0;
  overflow: hidden;
}
.font-opt:hover { background: rgba(255,255,255,0.07); }
.font-opt.selected {
  border-color: var(--gold);
  background: rgba(255,215,0,0.08);
  box-shadow: 0 0 0 2px rgba(255,215,0,0.18);
}

.font-tag {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  opacity: 0.55;
  font-style: normal;
  font-family: var(--font) !important;
  white-space: nowrap;
}
.font-opt.selected .font-tag { opacity: 1; color: var(--gold); }

.font-sample {
  font-size: 20px;
  color: var(--white);
  opacity: 0.7;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.font-opt.selected .font-sample { opacity: 1; }

/* =============================================
   CONFIRMATION MODAL
   ============================================= */

.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.confirm-overlay.open { opacity: 1; pointer-events: all; }

.confirm-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  width: min(400px, calc(100vw - 32px));
  background: #12121e;
  border: 1px solid rgba(255,215,0,0.22);
  border-radius: 20px;
  padding: 36px 28px 28px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.16,1,0.3,1), opacity 0.2s;
  box-shadow: 0 40px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.03);
}
.confirm-modal.open {
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: all;
}

.confirm-modal-icon { font-size: 38px; line-height: 1; }

.confirm-modal-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.confirm-modal-text {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.65;
  opacity: 0.85;
  max-width: 320px;
}

.confirm-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.confirm-primary-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  width: 100%;
}

.confirm-eye-btn {
  flex-shrink: 0;
  background: none;
  border: 1.5px solid rgba(255,215,0,0.45);
  border-radius: 12px;
  padding: 0 16px;
  cursor: pointer;
  font-size: 18px;
  color: var(--gold);
  transition: background .15s, border-color .15s;
}
.confirm-eye-btn:hover { background: rgba(255,215,0,.1); border-color: var(--gold); }

.confirm-preview {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,215,0,.18);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 2px;
  text-align: center;
}
.confirm-preview-icon { font-size: 22px; margin-bottom: 6px; }
.confirm-preview-msg {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg);
  white-space: pre-wrap;
  word-break: break-word;
}

.confirm-ok-btn {
  flex: 1;
  padding: 15px 20px;
  background: linear-gradient(135deg, #e6c200 0%, #FFD700 50%, #ffe566 100%);
  color: #000;
  font-family: var(--font);
  font-weight: 900;
  font-size: 15px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 20px rgba(255,215,0,0.28);
}
.confirm-ok-btn:hover { transform: scale(1.02); box-shadow: 0 0 32px rgba(255,215,0,0.42); }
.confirm-ok-btn:active { transform: scale(0.98); }

.confirm-cancel-btn {
  width: 100%;
  padding: 13px 20px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--grey);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.confirm-cancel-btn:hover { border-color: rgba(255,255,255,0.25); color: var(--white); }

/* =============================================
   COOKIE CONSENT BANNER
   ============================================= */

.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 600;
  background: #1a1a1a;
  border-top: 1px solid #2e2e2e;
  padding: 14px 24px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--grey);
}

.cookie-text { flex: 1; line-height: 1.5; }

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

.cookie-decline {
  background: none;
  border: 1px solid #444;
  color: var(--grey);
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  transition: border-color var(--transition);
}
.cookie-decline:hover { border-color: #666; color: var(--white); }

.cookie-accept {
  background: var(--gold);
  border: none;
  color: #000;
  padding: 7px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--transition);
}
.cookie-accept:hover { opacity: 0.85; }

@media (max-width: 480px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cookie-actions { align-self: flex-end; }
}


/* =============================================
   LOADING STATE
   ============================================= */

.counter-value.loading {
  opacity: 0.3;
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink { 0%,100% { opacity: 0.3; } 50% { opacity: 0.6; } }


/* =============================================
   RESPONSIVE TWEAKS
   ============================================= */

@media (min-width: 600px) {
  .drawer { left: 50%; right: auto; transform: translateX(-50%) translateY(100%); width: 560px; }
  .drawer.open { transform: translateX(-50%) translateY(0); }
}

@media (max-width: 480px) {
  .top-bar { padding: 8px 12px; }
  .hero { padding: 64px 20px 40px; }
  .hero-inner { gap: 20px; }
  .cta-btn { padding: 18px 24px; font-size: 18px; }
  .record-badge { font-size: 10px; padding: 5px 12px; letter-spacing: 0.1em; }
  .share-label { display: none; }
  .share-fab { padding: 6px 10px; }
  .lang-btn { padding: 6px 10px; }
  .progress-wrap { max-width: 100%; }
  .mini-tips-wrap { max-width: 100%; }
  .progress-target { display: none; }
  .amount-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 400px) {
  .counter-value { font-size: clamp(42px, 11vw, 52px); }
  .counter-challenge { font-size: 13px; }
  .record-badge { font-size: 9px; letter-spacing: 0.06em; }
  .lang-dropdown { min-width: 150px; font-size: 13px; }
}


/* =============================================
   FLOATING STICKERS
   ============================================= */

#stickerLayer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.sticker {
  position: absolute;
  background: #ffe566;
  color: #1a1a00;
  font-family: 'Caveat', cursive;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  padding: 14px 16px 12px;
  max-width: 200px;
  border-radius: 3px;
  box-shadow: 4px 6px 20px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.25);
  pointer-events: none;
  user-select: none;
  opacity: 0;
  animation: sticker-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             sticker-float 5s ease-in-out infinite;
}

/* tape strip at top */
.sticker::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 14px;
  background: rgba(255, 230, 80, 0.6);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* color variants */
.sticker.color-pink { background: #ffb7e0; color: #2a0020; }
.sticker.color-pink::before { background: rgba(255, 160, 210, 0.6); }
.sticker.color-pink .sticker-tip { color: #7a0050; border-top-color: rgba(0,0,0,0.12); }

.sticker.color-blue { background: #b3d9ff; color: #001a3a; }
.sticker.color-blue::before { background: rgba(140, 195, 255, 0.6); }
.sticker.color-blue .sticker-tip { color: #003a7a; border-top-color: rgba(0,0,0,0.12); }

.sticker.color-mint { background: #aff0d4; color: #003020; }
.sticker.color-mint::before { background: rgba(140, 225, 185, 0.6); }
.sticker.color-mint .sticker-tip { color: #005030; border-top-color: rgba(0,0,0,0.12); }

.sticker.color-lavender { background: #dab3ff; color: #1a003a; }
.sticker.color-lavender::before { background: rgba(195, 150, 255, 0.6); }
.sticker.color-lavender .sticker-tip { color: #40007a; border-top-color: rgba(0,0,0,0.12); }

.sticker-tip {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  color: #7a5f00;
  border-top: 1px dashed rgba(0,0,0,0.15);
  padding-top: 5px;
}

@keyframes sticker-in {
  0%   { opacity: 0; transform: var(--rot) scale(0); }
  60%  { opacity: 1; transform: var(--rot) scale(1.15); }
  80%  { transform: var(--rot) scale(0.95); }
  100% { opacity: 0.92; transform: var(--rot) scale(1); }
}

@keyframes sticker-float {
  0%, 100% { transform: var(--rot) translateY(0px); }
  50%       { transform: var(--rot) translateY(-8px); }
}

/* hide all stickers on small screens where they'd cover content */
@media (max-width: 768px) {
  #stickerLayer { display: none; }
}


/* =============================================
   INTRO ANIMATION
   ============================================= */

#introOverlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #04040a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#introOverlay.intro-exit {
  animation: intro-out 0.75s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes intro-out {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

.intro-bg-orb {
  position: absolute;
  width: 75vmax;
  height: 75vmax;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(255, 215, 0, 0.2) 0%,
    rgba(88, 28, 220, 0.28) 38%,
    transparent 68%
  );
  filter: blur(70px);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1.6s ease;
  pointer-events: none;
  animation: intro-orb-breathe 7s ease-in-out infinite;
}
.intro-bg-orb.visible { opacity: 1; }

@keyframes intro-orb-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%       { transform: translate(-50%, -50%) scale(1.12); }
}

.intro-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.intro-object {
  position: relative;
  width: 170px;
  height: 210px;
}

/* SVG silhouette */
.intro-silhouette {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 170px;
  opacity: 0;
}

.sil-head {
  fill: none;
  stroke: rgba(255, 215, 0, 0.6);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.sil-body {
  fill: none;
  stroke: rgba(255, 215, 0, 0.4);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.35));
}

/* Tip group — coin above + hand below */
.intro-tip-group {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
}

.intro-tip-group.visible { opacity: 1; }

.intro-tip-group.bobbing {
  animation: tip-bob 4s ease-in-out infinite;
}

@keyframes tip-bob {
  0%, 100% { transform: translate(-50%, -50%) rotate(-1deg); }
  50%       { transform: translate(-50%, calc(-50% - 10px)) rotate(1.5deg); }
}

/* Coin wrapper */
.intro-coin-wrap {
  width: 108px;
  height: 108px;
}

/* Coin itself — handles the 3D flip reveal */
.intro-coin {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, #fff9c8 0%, #FFD700 42%, #d4a500 68%, #8a6400 100%);
  box-shadow:
    0 0 0 3px rgba(255, 215, 0, 0.22),
    0 0 55px rgba(255, 215, 0, 0.6),
    0 0 110px rgba(255, 215, 0, 0.22),
    inset 0 4px 8px rgba(255, 255, 255, 0.5),
    inset 0 -4px 8px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: perspective(500px) rotateY(90deg);
  opacity: 0;
  overflow: hidden;
  position: relative;
}

.intro-coin span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 52px;
  font-weight: 900;
  color: rgba(80, 52, 0, 0.72);
  line-height: 1;
  position: relative;
  z-index: 1;
  user-select: none;
  letter-spacing: -0.03em;
}

/* Glint sweep on coin */
.intro-coin::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -35%;
  width: 70%;
  height: 200%;
  background: linear-gradient(
    112deg,
    transparent 30%,
    rgba(255, 255, 255, 0.52) 50%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translateX(-100%);
  pointer-events: none;
}

.intro-coin.visible {
  animation: coin-flip-in 0.95s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.intro-coin.visible::before {
  animation: coin-glint 3.5s ease-in-out 1.1s infinite;
}

@keyframes coin-flip-in {
  0%   { opacity: 0; transform: perspective(500px) rotateY(90deg) scale(0.55); }
  55%  { opacity: 1; transform: perspective(500px) rotateY(-10deg) scale(1.1); }
  78%  { transform: perspective(500px) rotateY(5deg) scale(1.02); }
  100% { opacity: 1; transform: perspective(500px) rotateY(0deg) scale(1); }
}

@keyframes coin-glint {
  0%, 50%, 100% { transform: translateX(-150%); }
  68%            { transform: translateX(300%); }
}

/* Hand SVG below coin */
.intro-tip-hand {
  width: 108px;
  height: 86px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.75s ease, transform 0.75s ease;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
  overflow: visible;
}

.intro-tip-hand.visible {
  opacity: 1;
  transform: translateY(0);
}

.hand-s {
  fill: none;
  stroke: rgba(255, 215, 0, 0.58);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}


/* Text lines */
.intro-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(18px, 4.2vw, 30px);
  font-weight: 700;
  color: rgba(245, 245, 245, 0.88);
  text-align: center;
  padding: 0 36px;
  max-width: 520px;
  letter-spacing: -0.025em;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  min-height: 2.2em;
}

.intro-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.intro-text.gold {
  background: linear-gradient(150deg, #ffffff 10%, #FFE566 55%, #FFD700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(20px, 5vw, 34px);
}

.intro-text.wink {
  font-size: clamp(15px, 3.2vw, 22px);
  font-weight: 500;
  font-style: italic;
  color: rgba(245, 245, 245, 0.6);
  max-width: 460px;
}

/* Skip button */
.intro-skip {
  position: absolute;
  bottom: 28px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.18);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 12px;
  transition: color 0.25s;
}
.intro-skip:hover { color: rgba(255, 255, 255, 0.55); }

/* =============================================
   INTRO — icon row
   ============================================= */

.intro-icon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 56px;
}

.intro-icon-item {
  font-size: 36px;
  line-height: 1;
  display: inline-block;
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* Float-up: single icon rises gently */
.anim-float-up .intro-icon-item {
  animation:
    icon-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    icon-float 3.2s ease-in-out 0.65s infinite;
}

/* Stagger: icons appear one by one then bob */
.anim-stagger .intro-icon-item {
  animation:
    icon-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i) * 180ms) both,
    icon-bob 2.8s ease-in-out calc(var(--i) * 180ms + 0.55s) infinite;
}

/* Stagger-small: like stagger but 20% smaller, italic feel */
.anim-stagger-small .intro-icon-item {
  font-size: 28px;
  animation:
    icon-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i) * 200ms) both,
    icon-bob 3s ease-in-out calc(var(--i) * 200ms + 0.5s) infinite;
}

/* Grow-pop: single icon pops with elastic scale */
.anim-grow-pop .intro-icon-item {
  font-size: 48px;
  animation:
    icon-pop 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    icon-pulse 2.4s ease-in-out 0.85s infinite;
}

/* Exit fade */
.intro-icon-item.icon-out {
  opacity: 0 !important;
  transform: translateY(-8px) scale(0.75) !important;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
  animation: none !important;
}

@keyframes icon-in {
  from { opacity: 0; transform: translateY(18px) scale(0.6); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes icon-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  45%       { transform: translateY(-7px) rotate(-4deg); }
  65%       { transform: translateY(-5px) rotate(3deg); }
}

@keyframes icon-pop {
  0%   { opacity: 0; transform: scale(0) rotate(-15deg); }
  55%  { opacity: 1; transform: scale(1.35) rotate(6deg); }
  75%  { transform: scale(0.9) rotate(-3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes icon-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)); }
  50%       { transform: scale(1.1); filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.9)); }
}

/* =============================================
   INTRO — particle burst
   ============================================= */

.intro-particles {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 2;
}

.intro-particle {
  position: absolute;
  font-size: 20px;
  line-height: 1;
  transform: translate(-50%, -50%);
  animation: particle-fly 1.8s cubic-bezier(0.2, 0, 0.8, 1) forwards;
  pointer-events: none;
}

@keyframes particle-fly {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  60%  { opacity: 0.8; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.3); }
}

/* =============================================
   INTRO — orb color phases
   ============================================= */

.intro-bg-orb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 180, 60, 0.5) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 1.8s ease;
}

.intro-bg-orb.phase-warm::after {
  opacity: 0.55;
}

.intro-bg-orb.phase-gold::after {
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.55) 0%, transparent 65%);
  opacity: 0.9;
}
