/* ═══════════════════════════════════════════════════════════════
   COINRUSH DAILY REWARDS + VIP — Premium Redesign v8
   Emerald-gold crypto theme · Sora + Inter typography
   Glassmorphism · Pure SVG icons · Zero emojis
   ═══════════════════════════════════════════════════════════════ */

/* ── Backdrop ── */
.dr-backdrop {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  display: flex; align-items: center; justify-content: center;
  animation: drFadeIn 0.25s ease-out;
  padding: 16px;
}
@keyframes drFadeIn { from { opacity: 0 } to { opacity: 1 } }

/* ── Modal Shell ── */
.dr-modal {
  position: relative;
  width: 100%; max-width: 440px;
  background: #080c12;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(79, 255, 176, 0.04),
    0 0 80px -20px rgba(79, 255, 176, 0.06),
    0 32px 80px rgba(0, 0, 0, 0.65);
  animation: drSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column;
  max-height: 92vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
@keyframes drSlideUp {
  from { opacity: 0; transform: translateY(28px) scale(0.96) }
  to   { opacity: 1; transform: translateY(0) scale(1) }
}

/* ── Close Button ── */
.dr-close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.dr-close svg { width: 14px; height: 14px; }
.dr-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ── Kill old elements ── */
.dr-confetti, .dr-particles, .dr-banner,
.dr-streak-badge, .dr-streak-fire, .dr-streak-num,
.dr-banner-status { display: none !important; }

/* ── Loading ── */
.dr-loading {
  padding: 56px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.dr-loading-spinner {
  width: 28px; height: 28px;
  border: 2.5px solid rgba(79, 255, 176, 0.08);
  border-top-color: #4fffb0;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: drSpin 0.7s linear infinite;
}
@keyframes drSpin { to { transform: rotate(360deg) } }

/* ══════════════════════════════════════════════
   HERO SECTION — Streak counter with emerald accent
   ══════════════════════════════════════════════ */
.dr-hero {
  position: relative;
  padding: 36px 24px 28px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(79, 255, 176, 0.04) 0%, transparent 70%),
    linear-gradient(180deg, rgba(79, 255, 176, 0.02) 0%, transparent 100%);
  overflow: hidden;
}
.dr-hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 255, 176, 0.2), transparent);
}
.dr-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.dr-hero-icon {
  width: 44px; height: 44px;
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 2px 12px currentColor);
  opacity: 0.9;
  animation: drFloat 4s ease-in-out infinite;
}
.dr-hero-icon svg { width: 100%; height: 100%; }

@keyframes drFloat {
  0%, 100% { transform: translateY(0) }
  50%      { transform: translateY(-5px) }
}

.dr-hero-title {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 4px;
}

.dr-hero-streak {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #4fffb0 0%, #00d4aa 40%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -3px;
  font-variant-numeric: tabular-nums;
}

.dr-hero-label {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.2);
  margin-top: -2px;
  letter-spacing: 0.8px;
}

.dr-hero-status {
  display: inline-flex;
  align-items: center; gap: 7px;
  margin-top: 16px;
  padding: 6px 16px;
  border-radius: 100px;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.dr-hero-status.ready {
  background: rgba(79, 255, 176, 0.08);
  border: 1px solid rgba(79, 255, 176, 0.18);
  color: #4fffb0;
}
.dr-hero-status.claimed {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.2);
}
.dr-hero-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dr-hero-status.ready .dr-hero-status-dot {
  background: #4fffb0;
  box-shadow: 0 0 8px rgba(79, 255, 176, 0.5);
  animation: drPulse 2s ease-in-out infinite;
}
.dr-hero-status.claimed .dr-hero-status-dot {
  background: rgba(255, 255, 255, 0.15);
}
@keyframes drPulse {
  0%, 100% { opacity: 1; transform: scale(1) }
  50%      { opacity: 0.4; transform: scale(0.85) }
}

/* ══════════════════════════════════════════════
   DIVIDER
   ══════════════════════════════════════════════ */
.dr-divider {
  height: 1px;
  margin: 0 24px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

/* ══════════════════════════════════════════════
   REWARD CARD — Premium glassmorphism
   ══════════════════════════════════════════════ */
.dr-reward-card {
  margin: 18px 20px 0;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79, 255, 176, 0.03), rgba(251, 191, 36, 0.02));
  border: 1px solid rgba(79, 255, 176, 0.08);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dr-reward-card:hover {
  border-color: rgba(79, 255, 176, 0.15);
  box-shadow: 0 0 24px -8px rgba(79, 255, 176, 0.06);
}

.dr-reward-icon-wrap {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid;
  position: relative;
  overflow: hidden;
}
.dr-reward-icon-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(255,255,255,0.04) 100%);
  border-radius: inherit;
}
.dr-reward-icon-wrap svg {
  width: 24px; height: 24px;
  position: relative; z-index: 1;
}

.dr-reward-info { flex: 1; min-width: 0; }

.dr-reward-type {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 3px;
}

.dr-reward-value {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.dr-reward-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
  line-height: 1.45;
}

/* ══════════════════════════════════════════════
   VIP BONUS CARD — Gold accent for VIP daily bonus
   ══════════════════════════════════════════════ */
.dr-vip-bonus {
  margin: 10px 20px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.06), rgba(245, 158, 11, 0.03));
  border: 1px solid rgba(251, 191, 36, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
}
.dr-vip-bonus-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.15);
  display: flex; align-items: center; justify-content: center;
  color: #fbbf24;
}
.dr-vip-bonus-icon svg { width: 18px; height: 18px; }
.dr-vip-bonus-info { flex: 1; }
.dr-vip-bonus-label {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(251, 191, 36, 0.6);
}
.dr-vip-bonus-value {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fbbf24;
}

/* ══════════════════════════════════════════════
   CLAIM BUTTON — Emerald gradient
   ══════════════════════════════════════════════ */
.dr-claim-area { padding: 16px 20px 0; }

.dr-claim-btn {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-radius: 12px;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}

.dr-claim-btn.ready {
  background: linear-gradient(135deg, #4fffb0, #00d4aa);
  color: #080c12;
  box-shadow:
    0 0 0 1px rgba(79, 255, 176, 0.2),
    0 4px 20px rgba(79, 255, 176, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.dr-claim-btn.ready:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(79, 255, 176, 0.3),
    0 8px 32px rgba(79, 255, 176, 0.25);
}
.dr-claim-btn.ready:active {
  transform: translateY(0) scale(0.99);
}

.dr-claim-btn.claiming {
  background: linear-gradient(135deg, #4fffb0, #00d4aa);
  color: transparent;
  pointer-events: none;
}
.dr-claim-btn.claiming::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  border: 2.5px solid rgba(8, 12, 18, 0.15);
  border-top-color: #080c12;
  border-radius: 50%;
  animation: drSpin 0.6s linear infinite;
}

.dr-claim-btn.claimed {
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.2);
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.dr-claim-btn.success {
  background: rgba(79, 255, 176, 0.08);
  color: #4fffb0;
  pointer-events: none;
  border: 1px solid rgba(79, 255, 176, 0.12);
}

.dr-btn-icon {
  display: inline-flex;
  width: 16px; height: 16px;
}
.dr-btn-icon svg { width: 100%; height: 100%; }

/* ══════════════════════════════════════════════
   WEEK GRID — 7-day progress strip
   ══════════════════════════════════════════════ */
.dr-week { padding: 18px 20px 14px; }

.dr-week-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dr-week-title {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.2);
}

.dr-week-progress-text {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.2);
  font-variant-numeric: tabular-nums;
}

.dr-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.dr-week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 0 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s;
}

.dr-week-day.claimed {
  background: rgba(79, 255, 176, 0.04);
  border-color: rgba(79, 255, 176, 0.1);
}

.dr-week-day.today {
  background: linear-gradient(135deg, rgba(79, 255, 176, 0.06), rgba(251, 191, 36, 0.04));
  border-color: rgba(79, 255, 176, 0.2);
}
.dr-week-day.today.unclaimed {
  animation: drGlowPulse 2.5s ease-in-out infinite;
}
@keyframes drGlowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 255, 176, 0.06) }
  50%      { box-shadow: 0 0 0 4px rgba(79, 255, 176, 0.08) }
}

.dr-week-day.future { opacity: 0.25; }

.dr-week-day-num {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
}
.dr-week-day.today .dr-week-day-num { color: #4fffb0; }
.dr-week-day.claimed .dr-week-day-num { color: rgba(79, 255, 176, 0.5); }

.dr-week-day-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  color: rgba(255, 255, 255, 0.2);
}
.dr-week-day-icon svg { width: 100%; height: 100%; }
.dr-week-day.claimed .dr-week-day-icon { color: #4fffb0; }
.dr-week-day.future .dr-week-day-icon { color: rgba(255, 255, 255, 0.08); }
.dr-week-day.future .dr-week-day-icon svg { width: 15px; height: 15px; }

.dr-week-day-check { display: none; }

/* Progress bar */
.dr-week-progress-bar {
  margin-top: 12px;
  height: 3px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}
.dr-week-progress-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #4fffb0, #00d4aa);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(79, 255, 176, 0.3);
}

/* ══════════════════════════════════════════════
   VIP TIER SECTION — Premium card
   ══════════════════════════════════════════════ */
.dr-vip { padding: 18px 20px 14px; }

.dr-vip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.dr-vip-title {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.2);
}
.dr-vip-tier-name {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid;
}

.dr-vip-card {
  border-radius: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.dr-vip-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.dr-vip-perk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
}
.dr-vip-perk-icon {
  width: 12px; height: 12px;
  display: inline-flex;
  color: inherit;
  opacity: 0.7;
}
.dr-vip-perk-icon svg { width: 100%; height: 100%; }

/* VIP Progress to next tier */
.dr-vip-progress {
  margin-top: 14px;
}
.dr-vip-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.dr-vip-progress-label {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.5px;
}
.dr-vip-progress-value {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
}
.dr-vip-progress-bar {
  height: 4px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.dr-vip-progress-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ══════════════════════════════════════════════
   POWER-UPS / BUFFS
   ══════════════════════════════════════════════ */
.dr-powerups { padding: 16px 20px 20px; }

.dr-powerups-title {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 10px;
}

.dr-powerup-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dr-powerup-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(79, 255, 176, 0.04);
  border: 1px solid rgba(79, 255, 176, 0.08);
  color: rgba(79, 255, 176, 0.7);
  transition: border-color 0.15s;
}
.dr-powerup-pill:hover {
  border-color: rgba(79, 255, 176, 0.15);
}

.dr-pu-icon {
  display: inline-flex;
  width: 14px; height: 14px;
}
.dr-pu-icon svg { width: 100%; height: 100%; }

/* ══════════════════════════════════════════════
   MILESTONE BADGES
   ══════════════════════════════════════════════ */
.dr-milestones { padding: 0 20px 16px; }
.dr-milestone-row {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.dr-milestone {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.2);
}
.dr-milestone.reached {
  background: rgba(79, 255, 176, 0.06);
  border-color: rgba(79, 255, 176, 0.12);
  color: #4fffb0;
}
.dr-milestone.next {
  background: rgba(251, 191, 36, 0.04);
  border-color: rgba(251, 191, 36, 0.12);
  color: rgba(251, 191, 36, 0.7);
}
.dr-milestone-icon {
  width: 12px; height: 12px;
  display: inline-flex;
}
.dr-milestone-icon svg { width: 100%; height: 100%; }

/* ══════════════════════════════════════════════
   SCROLLABLE BODY
   ══════════════════════════════════════════════ */
.dr-modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(79, 255, 176, 0.06) transparent;
}
.dr-modal-body::-webkit-scrollbar { width: 3px; }
.dr-modal-body::-webkit-scrollbar-track { background: transparent; }
.dr-modal-body::-webkit-scrollbar-thumb { background: rgba(79, 255, 176, 0.08); border-radius: 100px; }

/* ══════════════════════════════════════════════
   CLAIM ANIMATION
   ══════════════════════════════════════════════ */
@keyframes drClaimed {
  0%   { transform: scale(1) }
  12%  { transform: scale(1.02) }
  100% { transform: scale(1) }
}
.dr-modal.just-claimed {
  animation: drClaimed 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 0 0 1px rgba(79, 255, 176, 0.15),
    0 0 60px -10px rgba(79, 255, 176, 0.15),
    0 32px 80px rgba(0, 0, 0, 0.65);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 460px) {
  .dr-modal { max-width: 100%; border-radius: 16px; }
  .dr-hero { padding: 28px 20px 22px; }
  .dr-hero-streak { font-size: 52px; }
  .dr-hero-icon { width: 38px; height: 38px; }
  .dr-reward-card { margin: 14px 16px 0; padding: 16px; gap: 14px; }
  .dr-reward-icon-wrap { width: 46px; height: 46px; }
  .dr-reward-icon-wrap svg { width: 20px; height: 20px; }
  .dr-reward-value { font-size: 16px; }
  .dr-claim-area { padding: 14px 16px 0; }
  .dr-week { padding: 16px 16px 12px; }
  .dr-vip { padding: 16px 16px 12px; }
  .dr-powerups { padding: 14px 16px 18px; }
  .dr-week-grid { gap: 4px; }
  .dr-week-day { padding: 8px 0 6px; }
  .dr-week-day-icon { width: 16px; height: 16px; }
  .dr-divider { margin: 0 16px; }
  .dr-vip-bonus { margin: 10px 16px 0; }
}

@media (max-width: 360px) {
  .dr-hero-streak { font-size: 42px; }
  .dr-reward-value { font-size: 15px; }
  .dr-reward-icon-wrap { width: 40px; height: 40px; border-radius: 11px; }
  .dr-week-day-num { font-size: 8px; }
  .dr-week-day-icon { width: 14px; height: 14px; }
  .dr-week-day { padding: 6px 0 5px; gap: 3px; border-radius: 8px; }
  .dr-vip-perk { font-size: 10px; padding: 4px 8px; }
}
