/* ══════════════════════ RESET & BASE ══════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #090d1c;
  --card-bg:   #0e1325;
  --primary:   #00d4ff;
  --secondary: #8b5cf6;
  --amber:     #fbbf24;
  --green:     #22c55e;
  --sky:       #38bdf8;
  --violet:    #a78bfa;
  --muted:     #64748b;
  --text:      #f1f5f9;
  --border:    rgba(255,255,255,0.08);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1, h2, h3, h4 { font-family: 'Orbitron', sans-serif; }

.hidden { display: none !important; }

/* ══════════════════════ HERO SECTION ══════════════════════ */
.hero {
  position: relative;
  width: 100%;
  padding: 80px 16px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hero-bg-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(0,212,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.22;
}

.particle {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background: rgba(0,212,255,0.55);
  animation: float-up 10s linear infinite;
}

@keyframes float-up {
  0%   { transform: translateY(0) scale(0); opacity: 0; }
  10%  { opacity: 1; transform: translateY(-10vh) scale(1); }
  90%  { opacity: 1; }
  100% { transform: translateY(-110vh) scale(0); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 720px;
  width: 100%;
}

/* ── Check icon ── */
.hero-icon {
  position: relative;
  width: 96px; height: 96px;
  margin-bottom: 8px;
}

.check-svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}

.check-circle-anim {
  animation: draw-circle 1.5s ease-out forwards;
}

@keyframes draw-circle {
  to { stroke-dashoffset: 0; }
}

.check-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  animation: pop-in 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards 1s;
  filter: drop-shadow(0 0 12px rgba(0,212,255,0.8));
}

.check-mark svg { width: 48px; height: 48px; }

@keyframes pop-in {
  to { opacity: 1; transform: scale(1); }
}

/* ── Title ── */
.hero-title {
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
  animation: fade-up 0.6s ease both 0.3s;
  opacity: 0;
}

.neon-text {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0,212,255,0.7), 0 0 30px rgba(0,212,255,0.4), 0 0 60px rgba(0,212,255,0.2);
}

.hero-sub {
  color: var(--muted);
  font-size: 1.1rem;
  animation: fade-up 0.6s ease both 0.5s;
  opacity: 0;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Badge ── */
.badge-wrap {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-up 0.5s ease both 0.6s;
  opacity: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge-verifying {
  background: rgba(30,41,59,0.6);
  border: 1px solid rgba(100,116,139,0.4);
  color: #94a3b8;
}

.badge-granted {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--green);
  position: relative;
  overflow: hidden;
}

.badge-pulse {
  position: absolute;
  inset: 0;
  background: rgba(34,197,94,0.18);
  animation: badge-pulse 2s ease infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* ── Hero progress bars ── */
.hero-bars {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fade-up 0.6s ease both 0.7s;
  opacity: 0;
}

.bar-row { display: flex; flex-direction: column; gap: 6px; }

.bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.bar-complete {
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.bar-complete.show { opacity: 1; }

.bar-track {
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 99px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 99px;
  animation: bar-grow 1s ease-out forwards;
}

@keyframes bar-grow {
  to { width: 100%; }
}

/* ══════════════════════ PROGRESS SECTION ══════════════════════ */
.progress-section {
  width: 100%;
  max-width: 960px;
  padding: 40px 24px;
}

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

.progress-title {
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
}

.all-claimed-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  animation: pop-in 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer-sweep 2s linear infinite;
}

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

.stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.chip {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip-cyan {
  border-color: rgba(0,212,255,0.3);
  background: rgba(0,212,255,0.08);
  color: var(--primary);
}

.chip-green {
  border-color: rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.08);
  color: var(--green);
}

.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: dot-pulse 1.5s ease infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ══════════════════════ CARDS GRID ══════════════════════ */
.cards-section {
  width: 100%;
  max-width: 1200px;
  padding: 0 24px 64px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Card base ── */
.card {
  position: relative;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: fade-up 0.5s ease both;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }

.card.rare    { border-color: rgba(56,189,248,0.25); box-shadow: 0 0 18px rgba(56,189,248,0.18); }
.card.epic    { border-color: rgba(167,139,250,0.3); box-shadow: 0 0 22px rgba(167,139,250,0.22); }
.card.legendary { border-color: rgba(251,191,36,0.35); box-shadow: 0 0 28px rgba(251,191,36,0.25); }

.card.rare:hover    { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(56,189,248,0.28); border-color: rgba(56,189,248,0.45); }
.card.epic:hover    { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(167,139,250,0.32); border-color: rgba(167,139,250,0.5); }
.card.legendary:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(251,191,36,0.3); border-color: rgba(251,191,36,0.55); }

.card.claimed-card  { border-color: rgba(34,197,94,0.45) !important; box-shadow: 0 0 30px rgba(34,197,94,0.35) !important; }
.card.claimed-card:hover { box-shadow: 0 16px 48px rgba(34,197,94,0.3) !important; }

/* ── Card top area ── */
.card-top {
  position: relative;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.emerald-top { background: linear-gradient(180deg, rgba(2,44,34,0.75) 0%, #0d1117 100%); }
.violet-top  { background: linear-gradient(180deg, rgba(23,7,50,0.75) 0%, #0d1117 100%); }
.amber-top   { background: linear-gradient(180deg, rgba(42,24,2,0.75) 0%, #0d1117 100%); }
.blue-top    { background: linear-gradient(180deg, rgba(8,19,48,0.75) 0%, #0d1117 100%); }
.pink-top    { background: linear-gradient(180deg, rgba(46,7,29,0.75) 0%, #0d1117 100%); }
.cyan-top    { background: linear-gradient(180deg, rgba(4,38,45,0.75) 0%, #0d1117 100%); }

.card-top-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
}

.card-icon-blur {
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.55;
}
.legendary-blur { background: #fbbf24; }
.epic-blur      { background: #a78bfa; }
.rare-blur      { background: #38bdf8; }

.card-icon-wrap {
  position: relative;
  z-index: 2;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease;
}

.card.claimed-card .card-icon-wrap {
  animation: icon-bounce 0.5s ease;
}

@keyframes icon-bounce {
  0%   { transform: scale(1) rotate(0deg); }
  30%  { transform: scale(1.2) rotate(-10deg); }
  60%  { transform: scale(1.2) rotate(10deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.card-icon { width: 40px; height: 40px; }
.legendary-icon { stroke: #fbbf24; filter: drop-shadow(0 0 8px rgba(251,191,36,0.5)); }
.epic-icon      { stroke: #a78bfa; filter: drop-shadow(0 0 8px rgba(167,139,250,0.5)); }
.rare-icon      { stroke: #38bdf8; filter: drop-shadow(0 0 8px rgba(56,189,248,0.5)); }

/* Rarity badge */
.rarity-badge {
  position: absolute;
  top: 12px; right: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 3;
}
.legendary-badge { background: rgba(251,191,36,0.15); border: 1px solid rgba(251,191,36,0.4); color: #fbbf24; }
.epic-badge      { background: rgba(167,139,250,0.15); border: 1px solid rgba(167,139,250,0.4); color: #c084fc; }
.rare-badge      { background: rgba(56,189,248,0.12);  border: 1px solid rgba(56,189,248,0.35); color: #38bdf8; }

/* ── Card body ── */
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 20px;
}

/* ── Claim button ── */
.btn-claim {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-claim:hover:not(:disabled) {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.2);
}

.btn-claim:active:not(:disabled) { transform: scale(0.97); }
.btn-claim:disabled { cursor: not-allowed; }

.btn-claim.processing {
  background: rgba(255,255,255,0.04);
  border-color: rgba(0,212,255,0.3);
  color: var(--primary);
}

.btn-claim.claimed-btn {
  background: rgba(34,197,94,0.8);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 20px rgba(34,197,94,0.4);
}

/* Spinner inside button */
.btn-spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(0,212,255,0.3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

/* Check icon inside claimed button */
.btn-check { flex-shrink: 0; }

/* ── Visit link ── */
.visit-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.07);
  color: #4ade80;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  animation: fade-up 0.4s ease both;
}

.visit-link:hover {
  background: rgba(34,197,94,0.14);
  border-color: rgba(34,197,94,0.5);
  color: #86efac;
}

/* ── Confetti ── */
.confetti-container {
  position: absolute;
  left: 50%; top: 60%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 50;
}

.confetti-piece {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--c, #00d4ff);
  opacity: 0;
  animation: confetti-pop 1s cubic-bezier(0.25,1,0.5,1) forwards;
}

@keyframes confetti-pop {
  0%   { transform: translate(-50%,-50%) scale(0); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx,0px)), calc(-50% + var(--ty,0px))) scale(1) rotate(var(--r,0deg)); opacity: 0; }
}

/* ══════════════════════ DAILY BONUS ══════════════════════ */
.daily-section {
  width: 100%;
  max-width: 960px;
  padding: 0 24px 80px;
}

.daily-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(251,191,36,0.28);
  background: linear-gradient(135deg, rgba(42,24,2,0.45) 0%, var(--card-bg) 100%);
  padding: 40px 32px;
  transition: border-color 0.5s, background 0.5s;
}

.daily-card.claimed-daily {
  border-color: rgba(34,197,94,0.38);
  background: linear-gradient(135deg, rgba(5,30,10,0.55) 0%, var(--card-bg) 100%);
}

.daily-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 300px;
  border-radius: 50%;
  background: rgba(251,191,36,0.1);
  filter: blur(90px);
  pointer-events: none;
  transition: background 0.5s;
}

.daily-card.claimed-daily .daily-glow { background: rgba(34,197,94,0.08); }

.daily-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

@media (min-width: 640px) {
  .daily-inner {
    flex-direction: row;
    text-align: left;
  }
}

.daily-icon-wrap {
  width: 80px; height: 80px;
  flex-shrink: 0;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(251,191,36,0.4);
  background: rgba(251,191,36,0.18);
  color: #fbbf24;
  transition: background 0.5s, border-color 0.5s, color 0.5s;
}

.daily-card.claimed-daily .daily-icon-wrap {
  border-color: rgba(34,197,94,0.4);
  background: rgba(34,197,94,0.18);
  color: var(--green);
}

.daily-icon { width: 40px; height: 40px; }

.daily-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.daily-title {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 900;
  color: #fff;
}

.daily-sub { color: var(--muted); font-size: 0.9rem; }

.daily-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  margin-top: 4px;
  transition: color 0.2s;
  animation: fade-up 0.4s ease both;
}

.daily-link:hover { color: #fde68a; text-decoration: underline; }

.btn-daily {
  flex-shrink: 0;
  width: 100%;
  padding: 16px 32px;
  border-radius: 12px;
  border: none;
  background: #f59e0b;
  color: #000;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 20px rgba(245,158,11,0.3);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  min-width: 220px;
}

@media (min-width: 640px) { .btn-daily { width: auto; } }

.btn-daily:hover:not(:disabled) { background: #fbbf24; }
.btn-daily:disabled { cursor: not-allowed; }

.btn-daily.claimed-daily-btn {
  background: rgba(34,197,94,0.85);
  color: #fff;
  box-shadow: 0 0 20px rgba(34,197,94,0.4);
}

/* ══════════════════════ LOCKER CTA ══════════════════════ */
.locker-section {
  width: 100%;
  max-width: 960px;
  padding: 0 24px 48px;
}

.locker-card {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(0,212,255,0.3);
  background: rgba(0,212,255,0.04);
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  overflow: hidden;
}

.locker-glow-strip {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,212,255,0.08) 0%, transparent 50%, rgba(0,212,255,0.08) 100%);
  pointer-events: none;
}

.locker-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.btn-locker {
  position: relative;
  z-index: 1;
  padding: 18px 44px;
  border-radius: 16px;
  border: none;
  background: var(--primary);
  color: #090d1c;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 0 40px rgba(0,212,255,0.5);
  transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-locker:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 60px rgba(0,212,255,0.7);
}

.btn-locker:active { transform: scale(0.96); }

.locker-note {
  font-size: 0.75rem;
  color: #475569;
  position: relative;
  z-index: 1;
}

/* ══════════════════════ FOOTER ══════════════════════ */
.site-footer {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-copy { font-size: 0.72rem; color: #334155; }

/* ══════════════════════ LEGENDARY SHIMMER ══════════════════════ */
.card.legendary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(139,92,246,0.12) 50%, rgba(216,180,254,0.08) 55%, transparent 65%);
  background-size: 200% 100%;
  animation: shimmer-sweep 3s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .daily-card { padding: 28px 20px; }
}
