/**
 * CoinRush Lottery v2 - Dramatic Redesign
 * Split-hero, 2-col dashboard, premium checkmark btn
 */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

:root {
  --lt-font: 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --lt-body: 'Inter', -apple-system, sans-serif;
  --lt-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --lt-bg: #050510;
  --lt-glass: rgba(14, 10, 40, 0.55);
  --lt-border: rgba(139, 92, 246, 0.1);
  --lt-r: 16px; --lt-r-sm: 10px; --lt-r-xs: 6px;
  --lt-accent: #8b5cf6; --lt-accent-light: #a78bfa;
  --lt-accent-glow: rgba(139, 92, 246, 0.45);
  --lt-accent-dim: rgba(139, 92, 246, 0.08);
  --lt-accent-border: rgba(139, 92, 246, 0.2);
  --lt-green: #00ffa3; --lt-green-light: #4fffb0;
  --lt-green-glow: rgba(0, 255, 163, 0.45);
  --lt-green-bg: rgba(0, 255, 163, 0.08);
  --lt-gold: #fbbf24; --lt-gold-glow: rgba(251, 191, 36, 0.4);
  --lt-text: #e2e8f0; --lt-text-dim: rgba(255,255,255,0.55); --lt-text-muted: rgba(255,255,255,0.3);
  --lt-shadow: 0 8px 32px rgba(0,0,0,0.4); --lt-shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
  --lt-ease: 0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--lt-bg) !important; margin: 0; padding: 0; min-height: 100vh; overflow-x: hidden; }
body { font-family: var(--lt-body); color: var(--lt-text); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* App shell */
.lt-app { position: relative; min-height: 100vh; background: var(--lt-bg); color: var(--lt-text); font-family: var(--lt-font); overflow-x: hidden; padding-top: 72px; }
.lt-app::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(139,92,246,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(139,92,246,0.02) 1px, transparent 1px);
  background-size: 60px 60px; }

/* Orbs */
.lt-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.lt-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.5; animation: lt-drift 20s ease-in-out infinite alternate; will-change: transform; }
.lt-orb-1 { width: 450px; height: 450px; top: -10%; left: -5%; background: rgba(139,92,246,0.18); animation-duration: 22s; }
.lt-orb-2 { width: 380px; height: 380px; top: 25%; right: -8%; background: rgba(0,255,163,0.10); animation-duration: 26s; animation-delay: -4s; }
.lt-orb-3 { width: 320px; height: 320px; bottom: -5%; left: 25%; background: rgba(251,191,36,0.06); animation-duration: 28s; animation-delay: -8s; }
.lt-orb-4 { width: 280px; height: 280px; top: 60%; left: 10%; background: rgba(139,92,246,0.10); animation-duration: 30s; animation-delay: -12s; }
.lt-orb-5 { width: 220px; height: 220px; top: 15%; right: 20%; background: rgba(34,211,238,0.07); animation-duration: 24s; animation-delay: -6s; }
.lt-orb-6 { width: 200px; height: 200px; bottom: 20%; right: 15%; background: rgba(0,255,163,0.05); animation-duration: 32s; animation-delay: -16s; }
@keyframes lt-drift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(30px,-20px) scale(1.1); } }

/* Particles */
.lt-particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.lt-particle { position: absolute; width: var(--size,3px); height: var(--size,3px); left: var(--x,50%); bottom: -10px; background: var(--lt-accent); border-radius: 50%; opacity: 0; animation: lt-rise var(--duration,6s) var(--delay,0s) infinite; }
.lt-particle:nth-child(odd) { background: var(--lt-green); }
.lt-particle:nth-child(3n) { background: var(--lt-gold); }
@keyframes lt-rise { 0% { transform: translateY(0) scale(0); opacity: 0; } 10% { opacity: 0.6; transform: scale(1); } 90% { opacity: 0.3; } 100% { transform: translateY(-100vh) scale(0.5); opacity: 0; } }

/* Loading */
.lt-loading-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; gap: 20px; color: var(--lt-text-dim); }
.lt-loading-spinner { width: 48px; height: 48px; color: var(--lt-accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   HERO BANNER — Split immersive
   ============================================ */
.lt-hero-banner {
  position: relative; z-index: 2; overflow: hidden;
  background: var(--lt-glass);
  border-bottom: 1px solid var(--lt-border);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.lt-hero-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(139,92,246,0.14) 0%, transparent 60%); pointer-events: none; }
.lt-hero-banner::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--lt-accent), transparent); opacity: 0.3; }
.lt-hero-glow { position: absolute; width: 600px; height: 600px; top: -300px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%); pointer-events: none; }
.lt-hero-content { max-width: 1100px; margin: 0 auto; padding: 20px 24px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; position: relative; z-index: 1; }
.lt-hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; background: var(--lt-accent-dim); border: 1px solid var(--lt-accent-border); border-radius: 50px; font-size: 0.72rem; font-weight: 700; color: var(--lt-accent-light); }
.lt-hero-badge svg { width: 12px; height: 12px; }
.lt-hero-amount { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 0; }
.lt-hero-dollar { font-size: clamp(1.4rem,2.5vw,1.8rem); font-weight: 800; color: var(--lt-accent-light); line-height: 1; }
.lt-hero-value { font-size: clamp(2.4rem,5vw,3.6rem); font-weight: 900; background: linear-gradient(135deg,#a78bfa 0%,#c084fc 50%,#8b5cf6 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -0.03em; font-family: var(--lt-font); line-height: 1; filter: drop-shadow(0 0 30px rgba(139,92,246,0.3)); }
.lt-hero-stats { display: flex; align-items: center; justify-content: center; gap: 12px; }
.lt-hero-stat { display: flex; align-items: center; gap: 6px; font-size: 0.76rem; color: var(--lt-text-dim); font-weight: 500; }
.lt-hero-stat svg { width: 13px; height: 13px; color: var(--lt-accent-light); opacity: 0.7; }
.lt-hero-stat-sep { width: 1px; height: 16px; background: rgba(255,255,255,0.1); }

/* Timer row — centered below stats */
.lt-hero-timer-row { display: flex; align-items: center; gap: 12px; }
.lt-hero-timer-label { display: flex; align-items: center; gap: 6px; font-size: 0.68rem; font-weight: 600; color: var(--lt-text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.lt-hero-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lt-green); box-shadow: 0 0 10px var(--lt-green-glow); animation: lt-pulse 2s ease-in-out infinite; }
.lt-hero-dot.drawing { background: var(--lt-gold); box-shadow: 0 0 10px var(--lt-gold-glow); }
@keyframes lt-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }
.lt-hero-countdown { display: flex; align-items: center; gap: 4px; }
.lt-hero-cd-unit { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 40px; padding: 6px 6px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--lt-r-sm); }
.lt-hero-cd-num { font-size: 1.2rem; font-weight: 900; font-family: var(--lt-mono); color: var(--lt-text); line-height: 1; }
.lt-hero-cd-num.accent { color: var(--lt-accent-light); }
.lt-hero-cd-txt { font-size: 0.52rem; font-weight: 700; color: var(--lt-text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.lt-hero-cd-sep { font-size: 1rem; font-weight: 700; color: var(--lt-text-muted); opacity: 0.3; margin: 0 1px; padding-bottom: 10px; }
.lt-hero-status { font-size: 0.58rem; font-weight: 800; padding: 3px 10px; border-radius: 50px; letter-spacing: 0.1em; text-transform: uppercase; }
.lt-hero-status.open { background: var(--lt-green-bg); color: var(--lt-green); border: 1px solid rgba(0,255,163,0.2); }
.lt-hero-status.drawing { background: rgba(251,191,36,0.1); color: var(--lt-gold); border: 1px solid rgba(251,191,36,0.2); animation: lt-badge-pulse 2s ease-in-out infinite; }
@keyframes lt-badge-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }

/* ============================================
   MAIN + DASHBOARD
   ============================================ */
.lt-main { max-width: 1100px; margin: 0 auto; padding: 14px 20px 120px; position: relative; z-index: 2; }
.lt-dashboard { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 40px; }
.lt-col-left { display: flex; flex-direction: column; gap: 14px; }
.lt-col-right { display: flex; flex-direction: column; gap: 14px; }

/* Panel (glass card) */
.lt-panel { background: var(--lt-glass); border: 1px solid var(--lt-border); border-radius: var(--lt-r); padding: 18px; position: relative; overflow: hidden; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: border-color var(--lt-ease); display: flex; flex-direction: column; }
.lt-panel:hover { border-color: rgba(139,92,246,0.2); }
.lt-panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.lt-panel-ico { width: 34px; height: 34px; padding: 7px; border-radius: var(--lt-r-xs); background: var(--lt-accent-dim); border: 1px solid var(--lt-accent-border); color: var(--lt-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lt-panel-ico svg { width: 100%; height: 100%; }
.lt-panel-ico.green { background: var(--lt-green-bg); border-color: rgba(0,255,163,0.2); color: var(--lt-green); }
.lt-panel-title { font-size: 0.92rem; font-weight: 700; color: var(--lt-text); font-family: var(--lt-font); flex: 1; }
.lt-panel-empty { text-align: center; padding: 32px 16px; }
.lt-panel-empty-ico { width: 48px; height: 48px; margin: 0 auto 14px; padding: 10px; border-radius: var(--lt-r-sm); background: var(--lt-accent-dim); border: 1px solid var(--lt-accent-border); color: var(--lt-accent); display: flex; align-items: center; justify-content: center; }
.lt-panel-empty-ico svg { width: 100%; height: 100%; }
.lt-panel-empty h3 { font-size: 1.05rem; margin-bottom: 6px; font-family: var(--lt-font); color: var(--lt-text); }
.lt-panel-empty p { color: var(--lt-text-dim); font-size: 0.85rem; }

/* Tickets */
.lt-tickets-hero { text-align: center; margin-bottom: 16px; }
.lt-tickets-num { font-size: clamp(2.2rem,4vw,3.2rem); font-weight: 900; background: linear-gradient(135deg,var(--lt-accent-light),var(--lt-accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-family: var(--lt-font); line-height: 1; }
.lt-tickets-label { font-size: 0.72rem; color: var(--lt-text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 5px; }
.lt-chance-bar { margin-bottom: 16px; }
.lt-chance-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.lt-chance-text { font-size: 0.78rem; color: var(--lt-text-muted); font-weight: 600; }
.lt-chance-pct { font-size: 0.88rem; font-weight: 800; color: var(--lt-accent-light); font-family: var(--lt-mono); }
.lt-chance-track { width: 100%; height: 8px; background: rgba(255,255,255,0.04); border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); }
.lt-chance-fill { height: 100%; background: linear-gradient(90deg,var(--lt-accent),var(--lt-accent-light)); border-radius: 8px; transition: width 0.6s cubic-bezier(0.4,0,0.2,1); box-shadow: 0 0 12px var(--lt-accent-glow); }
.lt-tickets-split { display: flex; gap: 10px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06); margin-top: auto; }
.lt-split-box { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--lt-r-xs); }
.lt-split-ico { width: 28px; height: 28px; padding: 5px; border-radius: var(--lt-r-xs); background: var(--lt-accent-dim); border: 1px solid var(--lt-accent-border); color: var(--lt-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lt-split-ico svg { width: 100%; height: 100%; }
.lt-split-data { display: flex; flex-direction: column; gap: 2px; }
.lt-split-val { font-size: 1.15rem; font-weight: 800; color: var(--lt-text); font-family: var(--lt-font); line-height: 1; }
.lt-split-lbl { font-size: 0.68rem; color: var(--lt-text-dim); font-weight: 500; }

/* Wager */
.lt-wager-desc { font-size: 0.85rem; color: var(--lt-text-dim); margin-bottom: 16px; line-height: 1.6; }
.lt-wager-desc strong { color: var(--lt-text); font-weight: 700; }
.lt-wager-bar { display: flex; flex-direction: column; gap: 8px; }
.lt-wager-track { width: 100%; height: 10px; background: rgba(255,255,255,0.04); border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); }
.lt-wager-fill { height: 100%; background: linear-gradient(90deg,var(--lt-green),var(--lt-green-light)); border-radius: 10px; transition: width 0.6s cubic-bezier(0.4,0,0.2,1); box-shadow: 0 0 14px var(--lt-green-glow); }
.lt-wager-nums { display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 600; }
.lt-wager-current { color: var(--lt-green); font-family: var(--lt-mono); }
.lt-wager-target { color: var(--lt-text-dim); }

/* ============================================
   BUY TICKETS
   ============================================ */
.lt-panel-buy { flex: 1; }
.lt-buy-body { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.lt-qty-row { display: flex; align-items: center; justify-content: space-between; }
.lt-qty-label { font-size: 0.82rem; font-weight: 600; color: var(--lt-text-dim); }
.lt-qty-controls { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--lt-r-sm); padding: 4px; }
.lt-qty-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; border-radius: var(--lt-r-xs); color: var(--lt-text); cursor: pointer; transition: all var(--lt-ease); padding: 0; }
.lt-qty-btn svg { width: 16px; height: 16px; }
.lt-qty-btn:hover:not(:disabled) { background: var(--lt-accent-dim); color: var(--lt-accent-light); }
.lt-qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.lt-qty-input { width: 56px; padding: 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--lt-r-xs); color: var(--lt-text); font-size: 1rem; font-weight: 700; font-family: var(--lt-mono); text-align: center; appearance: textfield; -moz-appearance: textfield; }
.lt-qty-input::-webkit-outer-spin-button, .lt-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lt-qty-input:focus { outline: none; border-color: var(--lt-accent-border); box-shadow: 0 0 0 2px var(--lt-accent-dim); }
.lt-total-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--lt-accent-dim); border: 1px solid var(--lt-accent-border); border-radius: var(--lt-r-xs); }
.lt-total-label { font-size: 0.82rem; font-weight: 600; color: var(--lt-text-dim); }
.lt-total-value { font-size: 1.2rem; font-weight: 900; color: var(--lt-accent-light); font-family: var(--lt-font); }
.lt-price-tag { font-size: 0.72rem; font-weight: 600; padding: 4px 10px; background: var(--lt-accent-dim); border: 1px solid var(--lt-accent-border); border-radius: 50px; color: var(--lt-accent-light); white-space: nowrap; }

/* ============================================
   PREMIUM PURCHASE BUTTON — Sleek glassmorphism
   ============================================ */
.lt-purchase-wrap {
  display: flex; justify-content: center; align-items: center; margin-top: auto; min-height: 52px;
}
.lt-purchase-btn {
  position: relative; width: 100%; height: 50px; border: none;
  border-radius: 12px; background: transparent; cursor: pointer;
  font-family: var(--lt-font); font-size: 0.88rem; font-weight: 700; color: #fff;
  overflow: hidden; isolation: isolate;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1), height 0.5s cubic-bezier(0.4,0,0.2,1), border-radius 0.5s cubic-bezier(0.4,0,0.2,1), transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s ease;
}
/* Glowing border via pseudo */
.lt-purchase-btn::before {
  content: ''; position: absolute; inset: 0; border-radius: 12px; padding: 1.5px;
  background: linear-gradient(135deg, #a78bfa, #8b5cf6, #00ffa3, #8b5cf6);
  background-size: 300% 300%; animation: lt-border-shift 4s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: 1;
}
@keyframes lt-border-shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.lt-purchase-bg {
  position: absolute; inset: 1.5px; border-radius: 10.5px; z-index: 0;
  background: linear-gradient(135deg, rgba(139,92,246,0.35) 0%, rgba(88,60,180,0.25) 40%, rgba(14,10,40,0.95) 100%);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.lt-purchase-shimmer {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.04) 45%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 55%, transparent 60%);
  background-size: 200% 100%;
  animation: lt-shimmer 3s ease-in-out infinite;
}
@keyframes lt-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Hover */
.lt-purchase-btn.idle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(139,92,246,0.35), 0 0 60px rgba(139,92,246,0.12);
}
.lt-purchase-btn.idle:hover .lt-purchase-bg { background: linear-gradient(135deg, rgba(139,92,246,0.45) 0%, rgba(88,60,180,0.35) 40%, rgba(14,10,40,0.95) 100%); }
.lt-purchase-btn.idle:active { transform: translateY(0) scale(0.985); }

/* Faces (stacked states) */
.lt-purchase-face {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transform: translateY(10px) scale(0.92); pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1), transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.lt-purchase-face.active { opacity: 1; transform: translateY(0) scale(1); }

/* Default face */
.lt-purchase-ticket-ico { width: 16px; height: 16px; color: rgba(255,255,255,0.85); }
.lt-purchase-ticket-ico svg { width: 100%; height: 100%; }

/* Loading face */
.lt-pf-loading { color: rgba(255,255,255,0.7); }
.lt-purchase-spin { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.lt-purchase-spin svg { width: 100%; height: 100%; animation: spin 1s linear infinite; }

/* Success state — morphs into glowing green circle */
.lt-purchase-btn.loading { cursor: wait; }
.lt-purchase-btn.success {
  width: 52px; height: 52px; border-radius: 50%;
  box-shadow: 0 0 40px rgba(0,255,163,0.35), 0 0 80px rgba(0,255,163,0.15), 0 0 120px rgba(0,255,163,0.06);
  transform: none;
}
.lt-purchase-btn.success::before {
  background: linear-gradient(135deg, #00ffa3, #4fffb0, #00ffa3);
  background-size: 100% 100%; animation: none; opacity: 0.9;
}
.lt-purchase-btn.success .lt-purchase-bg {
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,255,163,0.22), rgba(0,200,130,0.15));
}
.lt-purchase-btn.success .lt-purchase-shimmer { opacity: 0; }

/* SVG Check animation */
.lt-check-svg { width: 28px; height: 28px; }
.lt-check-ring {
  fill: none; stroke: #00ffa3; stroke-width: 2;
  stroke-dasharray: 151; stroke-dashoffset: 151;
  opacity: 0; filter: drop-shadow(0 0 6px rgba(0,255,163,0.6));
}
.lt-check-mark {
  fill: none; stroke: #00ffa3; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  filter: drop-shadow(0 0 8px rgba(0,255,163,0.8));
}
.lt-purchase-btn.success .lt-check-ring {
  animation: lt-ring-draw 0.5s 0.12s cubic-bezier(0.22,0.61,0.36,1) forwards;
}
.lt-purchase-btn.success .lt-check-mark {
  animation: lt-check-draw 0.35s 0.45s cubic-bezier(0.22,0.61,0.36,1) forwards;
}
.lt-purchase-btn.success .lt-pf-success.active {
  animation: lt-check-pop 0.4s 0.7s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes lt-ring-draw { to { stroke-dashoffset: 0; opacity: 0.5; } }
@keyframes lt-check-draw { to { stroke-dashoffset: 0; } }
@keyframes lt-check-pop { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(0) scale(1.18); } 100% { transform: translateY(0) scale(1); } }

/* ============================================
   SECTIONS (How It Works, Winners)
   ============================================ */
.lt-section { margin-bottom: 40px; }
.lt-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.lt-section-ico { width: 36px; height: 36px; padding: 8px; border-radius: var(--lt-r-xs); background: var(--lt-accent-dim); border: 1px solid var(--lt-accent-border); color: var(--lt-accent); display: flex; align-items: center; justify-content: center; }
.lt-section-ico svg { width: 100%; height: 100%; }
.lt-section-title { font-size: 1.3rem; font-weight: 800; color: var(--lt-text); font-family: var(--lt-font); }

/* Steps */
.lt-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.lt-step { background: var(--lt-glass); border: 1px solid var(--lt-border); border-radius: var(--lt-r); padding: 20px 16px; position: relative; overflow: hidden; transition: border-color var(--lt-ease); }
.lt-step:hover { border-color: rgba(139,92,246,0.2); }
.lt-step-num { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; background: var(--lt-accent-dim); border: 1px solid var(--lt-accent-border); border-radius: 50%; font-size: 0.72rem; font-weight: 800; color: var(--lt-accent-light); font-family: var(--lt-font); }
.lt-step-icon { width: 36px; height: 36px; padding: 8px; border-radius: var(--lt-r-xs); background: var(--lt-accent-dim); border: 1px solid var(--lt-accent-border); color: var(--lt-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.lt-step-icon svg { width: 100%; height: 100%; }
.lt-step-title { font-size: 0.88rem; font-weight: 700; margin: 0 0 6px; color: var(--lt-text); font-family: var(--lt-font); }
.lt-step-desc { font-size: 0.78rem; color: var(--lt-text-dim); line-height: 1.5; margin: 0; }

/* Winners */
.lt-winners-list { display: flex; flex-direction: column; gap: 10px; }
.lt-winner-row { background: var(--lt-glass); border: 1px solid var(--lt-border); border-radius: var(--lt-r-sm); padding: 14px 18px; display: flex; align-items: center; gap: 14px; transition: border-color var(--lt-ease); }
.lt-winner-row:hover { border-color: rgba(139,92,246,0.2); }
.lt-winner-rank { font-size: 0.78rem; font-weight: 800; color: var(--lt-accent-light); font-family: var(--lt-mono); min-width: 28px; }
.lt-winner-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.lt-winner-name { font-size: 0.9rem; font-weight: 700; color: var(--lt-text); font-family: var(--lt-font); }
.lt-winner-period { font-size: 0.7rem; color: var(--lt-text-muted); font-weight: 500; }
.lt-winner-prize { text-align: right; }
.lt-winner-prize-label { font-size: 0.6rem; color: var(--lt-text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.lt-winner-prize-value { font-size: 1rem; font-weight: 900; color: var(--lt-green); font-family: var(--lt-font); }
.lt-winner-ticket { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--lt-text-dim); padding: 4px 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 50px; }
.lt-winner-ticket svg { width: 12px; height: 12px; color: var(--lt-accent-light); }
.lt-ticket-num { font-family: var(--lt-mono); color: var(--lt-accent-light); }
.lt-empty { text-align: center; padding: 48px 20px; color: var(--lt-text-muted); }
.lt-empty-icon { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--lt-accent); opacity: 0.4; }
.lt-empty p { font-size: 0.88rem; }

/* Toast */
.lt-toast { position: fixed; top: 90px; right: 20px; z-index: 10000; display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: var(--lt-glass); border: 1px solid var(--lt-border); border-radius: var(--lt-r-sm); box-shadow: var(--lt-shadow-lg); min-width: 280px; animation: lt-toast-in 0.3s ease-out; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
@keyframes lt-toast-in { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.lt-toast-success { border-color: rgba(0,255,163,0.2); }
.lt-toast-error { border-color: rgba(244,63,94,0.2); }
.lt-toast-icon { width: 20px; height: 20px; flex-shrink: 0; }
.lt-toast-success .lt-toast-icon { color: var(--lt-green); }
.lt-toast-error .lt-toast-icon { color: #f43f5e; }
.lt-toast-message { flex: 1; font-size: 0.85rem; font-weight: 500; color: var(--lt-text); }
.lt-toast-close { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; color: var(--lt-text-muted); cursor: pointer; padding: 0; transition: all var(--lt-ease); border-radius: 6px; }
.lt-toast-close:hover { background: rgba(255,255,255,0.08); color: var(--lt-text); }
.lt-toast-close svg { width: 16px; height: 16px; }

/* Modal */
.lt-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; animation: lt-fade-in 0.2s ease-out; }
@keyframes lt-fade-in { from { opacity: 0; } to { opacity: 1; } }
.lt-modal { background: rgba(14,10,40,0.95); border: 1px solid var(--lt-border); border-radius: var(--lt-r); max-width: 480px; width: 100%; max-height: 80vh; overflow: hidden; box-shadow: var(--lt-shadow-lg), 0 0 60px rgba(139,92,246,0.15); animation: lt-modal-up 0.3s cubic-bezier(0.4,0,0.2,1); position: relative; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
@keyframes lt-modal-up { from { transform: translateY(30px) scale(0.97); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.lt-modal::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--lt-accent), transparent); opacity: 0.5; }
.lt-modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 50%; color: var(--lt-text-dim); cursor: pointer; transition: all var(--lt-ease); z-index: 10; padding: 0; }
.lt-modal-close:hover { background: rgba(244,63,94,0.15); border-color: rgba(244,63,94,0.3); color: #f43f5e; transform: rotate(90deg); }
.lt-modal-close svg { width: 18px; height: 18px; }
.lt-modal-header { padding: 20px 20px 0; text-align: center; }
.lt-modal-icon { width: 40px; height: 40px; margin: 0 auto 10px; padding: 8px; border-radius: var(--lt-r-sm); background: var(--lt-accent-dim); border: 1px solid var(--lt-accent-border); color: var(--lt-accent); display: flex; align-items: center; justify-content: center; }
.lt-modal-icon svg { width: 100%; height: 100%; }
.lt-modal-title { font-size: 1.15rem; font-weight: 800; margin: 0; color: var(--lt-text); font-family: var(--lt-font); }
.lt-modal-content { padding: 16px 20px 20px; max-height: 58vh; overflow-y: auto; }
.lt-modal-content::-webkit-scrollbar { width: 4px; }
.lt-modal-content::-webkit-scrollbar-track { background: transparent; }
.lt-modal-content::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.3); border-radius: 4px; }
.lt-rules-community { background: var(--lt-accent-dim); border: 1px solid var(--lt-accent-border); border-radius: var(--lt-r-sm); padding: 12px; margin-bottom: 14px; }
.lt-rules-community p { margin: 0; color: var(--lt-text-dim); line-height: 1.5; font-size: 0.82rem; }
.lt-rules-community strong { color: var(--lt-accent-light); font-weight: 700; }
.lt-rules-section { margin-bottom: 20px; }
.lt-rules-section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lt-rules-section-icon { width: 28px; height: 28px; padding: 6px; border-radius: var(--lt-r-xs); background: var(--lt-accent-dim); border: 1px solid var(--lt-accent-border); color: var(--lt-accent); display: flex; align-items: center; justify-content: center; }
.lt-rules-section-icon svg { width: 100%; height: 100%; }
.lt-rules-section-header h3 { font-size: 0.95rem; font-weight: 700; margin: 0; color: var(--lt-text); font-family: var(--lt-font); }
.lt-rules-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.lt-rules-list li { padding-left: 20px; position: relative; color: var(--lt-text-dim); line-height: 1.5; font-size: 0.82rem; }
.lt-rules-list li::before { content: '\25B8'; position: absolute; left: 0; color: var(--lt-accent); font-weight: 900; font-size: 0.85rem; }
.lt-rules-list li strong { color: var(--lt-text); font-weight: 700; }
.lt-modal-footer { padding: 12px 20px 20px; border-top: 1px solid rgba(255,255,255,0.06); }
.lt-modal-btn { width: 100%; padding: 12px 16px; font-size: 0.88rem; font-weight: 700; font-family: var(--lt-font); background: linear-gradient(135deg, var(--lt-accent), var(--lt-accent-light)); border: none; border-radius: var(--lt-r-sm); color: #fff; cursor: pointer; transition: all var(--lt-ease); box-shadow: 0 4px 20px rgba(139,92,246,0.3); }
.lt-modal-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(139,92,246,0.4); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .lt-hero-content { padding: 18px 16px 16px; gap: 10px; }
  .lt-hero-timer-row { flex-direction: column; gap: 8px; }
  .lt-dashboard { grid-template-columns: 1fr; }
  .lt-steps { grid-template-columns: repeat(2,1fr); gap: 12px; }
}
@media (max-width: 640px) {
  .lt-main { padding: 12px 14px 100px; }
  .lt-hero-content { padding: 14px 14px 14px; gap: 8px; }
  .lt-hero-value { font-size: 2.4rem; }
  .lt-hero-dollar { font-size: 1.3rem; }
  .lt-hero-cd-unit { min-width: 36px; padding: 5px 5px; }
  .lt-hero-cd-num { font-size: 1.1rem; }
  .lt-hero-stats { flex-direction: column; gap: 6px; }
  .lt-hero-stat-sep { width: 40px; height: 1px; }
  .lt-panel { padding: 16px; }
  .lt-steps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lt-toast { right: 12px; left: 12px; min-width: auto; }
  .lt-modal { margin: 12px; max-height: 85vh; }
  .lt-winner-row { flex-wrap: wrap; gap: 10px; }
  .lt-winner-prize { text-align: left; }
}
@media (max-width: 400px) {
  .lt-steps { grid-template-columns: 1fr; }
  .lt-hero-value { font-size: 2.2rem; }
  .lt-hero-dollar { font-size: 1.4rem; }
  .lt-tickets-num { font-size: 2rem; }
}
