/* assets/css/donations.css */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #080818;
  color: white;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(78,205,196,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,205,196,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none; z-index: 0;
}

.orb { position: fixed; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.orb-1 { width: 600px; height: 600px; background: rgba(255,215,0,0.07); top: -200px; right: -100px; }
.orb-2 { width: 400px; height: 400px; background: rgba(78,205,196,0.07); bottom: 100px; left: -100px; }
.orb-3 { width: 300px; height: 300px; background: rgba(255,69,0,0.05); top: 40%; right: 10%; }

/* Floating particles */
.particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: 0.2; }
.particle { position: absolute; bottom: -40px; animation: floatUp linear infinite; }
@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

.container { max-width: 1000px; margin: auto; padding: 28px 20px 80px; position: relative; z-index: 1; }

/* Back */
.top-bar { margin-bottom: 40px; }
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: rgba(255,255,255,0.45); font-size: 13px; font-weight: 500;
  padding: 9px 16px; border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04);
  transition: all 0.2s;
}
.back-btn:hover { color: white; border-color: rgba(255,255,255,0.22); }

/* ── HERO ── */
.hero { margin-bottom: 72px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: #FFD700; opacity: 0.65; margin-bottom: 14px; }
h1 { font-size: clamp(4rem, 14vw, 9rem); font-weight: 900; line-height: 0.88; letter-spacing: -4px; margin-bottom: 24px; }
.line-white { display: block; color: white; }
.line-grad {
  display: block;
  background: linear-gradient(90deg, #FFD700, #FF6B6B, #4ECDC4);
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% auto; animation: gradMove 4s linear infinite;
}
@keyframes gradMove { to { background-position: -200% center; } }
.hero-sub { font-size: clamp(0.95rem, 2.5vw, 1.2rem); opacity: 0.5; max-width: 480px; line-height: 1.7; margin-bottom: 28px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-size: 12px; font-weight: 700; padding: 7px 16px; border-radius: 24px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65); transition: all 0.2s;
}
.pill:hover { background: rgba(255,215,0,0.1); border-color: rgba(255,215,0,0.3); color: #FFD700; }

/* ── HOW IT WORKS ── */
.how-section { margin-bottom: 64px; }
.how-label { font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; opacity: 0.3; margin-bottom: 20px; }
.how-flow {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center; gap: 0;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px; overflow: hidden;
}
.how-step {
  padding: 28px 20px; text-align: center;
  transition: background 0.2s;
}
.how-step:hover { background: rgba(255,255,255,0.05); }
.how-icon  { font-size: 1.8rem; margin-bottom: 8px; }
.how-num   { font-size: 10px; font-weight: 700; letter-spacing: 2px; opacity: 0.25; margin-bottom: 8px; }
.how-title { font-size: 0.88rem; font-weight: 800; margin-bottom: 6px; }
.how-desc  { font-size: 0.76rem; opacity: 0.45; line-height: 1.5; }
.how-connector { width: 1px; height: 60px; background: rgba(255,255,255,0.07); }

/* ── TIERS ── */
.tiers-section { margin-bottom: 48px; }
.tiers-label { font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; opacity: 0.3; margin-bottom: 12px; }

.tier-row {
  display: flex; align-items: center; gap: 0;
  border-radius: 18px; overflow: hidden; margin-bottom: 8px;
  border: 1px solid transparent; transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.tier-row:hover { transform: translateX(4px); }

.tier-shine   { background: rgba(50,205,50,0.06);  border-color: rgba(50,205,50,0.2); }
.tier-diamond { background: rgba(0,191,255,0.06);  border-color: rgba(0,191,255,0.2); }
.tier-flame   { background: rgba(255,69,0,0.07);   border-color: rgba(255,69,0,0.25); }
.tier-king    { background: rgba(255,215,0,0.07);  border-color: rgba(255,215,0,0.3);  box-shadow: 0 0 30px rgba(255,215,0,0.08); }

.tier-shine:hover   { box-shadow: 0 4px 20px rgba(50,205,50,0.15); }
.tier-diamond:hover { box-shadow: 0 4px 20px rgba(0,191,255,0.15); }
.tier-flame:hover   { box-shadow: 0 4px 20px rgba(255,69,0,0.15); }
.tier-king:hover    { box-shadow: 0 4px 28px rgba(255,215,0,0.2); }

.crown-float { position: absolute; top: -12px; right: 14px; font-size: 1.6rem; animation: crownBob 3s ease-in-out infinite alternate; }
@keyframes crownBob { 0%{transform:translateY(0) rotate(-5deg)} 100%{transform:translateY(-6px) rotate(5deg)} }

.tier-left {
  padding: 24px 28px; flex-shrink: 0; min-width: 200px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.tier-badge { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; opacity: 0.7; margin-bottom: 4px; }
.shine-badge   { color: #81c784; }
.diamond-badge { color: #64b5f6; }
.flame-badge   { color: #ff8a65; }
.king-badge    { color: #FFD700; }

.tier-mult { font-size: 3.5rem; font-weight: 900; line-height: 1; letter-spacing: -2px; }
.shine-mult   { color: #32CD32; text-shadow: 0 0 20px rgba(50,205,50,0.4); }
.diamond-mult { color: #00BFFF; text-shadow: 0 0 20px rgba(0,191,255,0.4); }
.flame-mult   { color: #FF6B35; text-shadow: 0 0 20px rgba(255,100,0,0.4); }
.king-mult    { color: #FFD700; text-shadow: 0 0 24px rgba(255,215,0,0.6); }

.tier-coins { font-size: 12px; opacity: 0.4; font-weight: 600; }

.tier-divider { width: 1px; height: 80px; background: rgba(255,255,255,0.07); flex-shrink: 0; }

.tier-right {
  padding: 24px 28px; flex: 1;
  display: flex; flex-direction: column; gap: 8px;
}
.tier-perk {
  font-size: 0.88rem; opacity: 0.7; padding-left: 16px; position: relative; line-height: 1.4;
}
.tier-perk::before { content: '→'; position: absolute; left: 0; opacity: 0.4; }

/* ── STATS ── */
.stats-section { margin-bottom: 40px; }
.stats-label { font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; opacity: 0.3; margin-bottom: 16px; }
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
}
.stat-item {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  padding: 22px 16px; text-align: center;
  transition: background 0.2s;
}
.stat-item:first-child { border-radius: 16px 0 0 16px; }
.stat-item:last-child  { border-radius: 0 16px 16px 0; }
.stat-item:hover { background: rgba(255,255,255,0.07); }
.stat-num { font-size: 2rem; font-weight: 900; color: #4ECDC4; margin-bottom: 4px; line-height: 1; }
.stat-num.gold { color: #FFD700; }
.stat-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.35; }

/* ── SUPPORTERS ── */
.supporters-section { }
.supporters-label { font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; opacity: 0.3; margin-bottom: 16px; }
.supporters-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }

.supporter-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 16px 14px; cursor: pointer; position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.supporter-card:hover { transform: translateY(-4px); }
.sc-king    { border-color: rgba(255,215,0,0.35);  background: rgba(255,215,0,0.05); }
.sc-king:hover    { box-shadow: 0 8px 24px rgba(255,215,0,0.15); }
.sc-flame   { border-color: rgba(255,69,0,0.3);   background: rgba(255,69,0,0.04); }
.sc-flame:hover   { box-shadow: 0 8px 24px rgba(255,69,0,0.12); }
.sc-diamond { border-color: rgba(0,191,255,0.3);  background: rgba(0,191,255,0.04); }
.sc-diamond:hover { box-shadow: 0 8px 24px rgba(0,191,255,0.12); }
.sc-shine   { border-color: rgba(50,205,50,0.3);  background: rgba(50,205,50,0.04); }
.sc-shine:hover   { box-shadow: 0 8px 24px rgba(50,205,50,0.12); }

.sc-rank {
  position: absolute; top: -8px; left: -8px;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; color: #000;
  background: rgba(80,80,100,0.8); color: white;
}
.rank-1 .sc-rank { background: linear-gradient(45deg,#FFD700,#FFA500); color: #000; }
.rank-2 .sc-rank { background: linear-gradient(45deg,#C0C0C0,#E8E8E8); color: #333; }
.rank-3 .sc-rank { background: linear-gradient(45deg,#CD7F32,#DAA520); }

.sc-name   { font-size: 0.95rem; font-weight: 800; margin-bottom: 4px; }
.sc-amount { font-size: 1.2rem; font-weight: 900; color: #FFD700; margin-bottom: 4px; }
.sc-tier   { font-size: 10px; font-weight: 700; opacity: 0.45; text-transform: uppercase; letter-spacing: 0.5px; }

/* Tier name animations */
.cn-name { display: inline-block; font-weight: 900; background-size: 200% auto; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shine 3s linear infinite; }
.cn-king  { background-image: linear-gradient(90deg,#ffd700,#fff,#ffd700); }
.cn-flame { background-image: linear-gradient(90deg,#ff4444,#fff,#ff4444); }
.cn-diamond{ background-image: linear-gradient(90deg,#00bfff,#fff,#00bfff); }
.cn-shine { background-image: linear-gradient(90deg,#32cd32,#fff,#32cd32); }
@keyframes shine { to { background-position: -200% center; } }

/* Loading / empty */
.loading-state { display: flex; align-items: center; gap: 12px; padding: 32px; opacity: 0.4; font-size: 13px; }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.15); border-top-color: #FFD700; border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.no-donors { padding: 32px; text-align: center; opacity: 0.4; font-size: 13px; grid-column: 1/-1; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
  .how-flow { grid-template-columns: 1fr; }
  .how-connector { width: 100%; height: 1px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-item:first-child { border-radius: 16px 16px 0 0; }
  .stat-item:last-child  { border-radius: 0 0 16px 16px; }
  .stat-item:nth-child(2) { border-radius: 0; }
  .tier-row { flex-direction: column; }
  .tier-left { min-width: unset; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .tier-divider { display: none; }
  h1 { letter-spacing: -2px; }
}
@media (max-width: 480px) {
  h1 { font-size: clamp(3rem, 15vw, 5rem); letter-spacing: -1px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}