/* ════════════════════════════════════════════════════════════
   GRACE AWAKENING 2026 · GRACE ENCOUNTER 2026
   ██████  ULTRA-PREMIUM LIGHT THEME  ██████
   Strictly: White · Fire Orange · Electric Purple · Royal Blue
   ════════════════════════════════════════════════════════════ */

:root {
  --orange:        #FF5500;
  --orange2:       #FF7A00;
  --orange-deep:   #EA580C;
  --orange-light:  #FFF7ED;
  --og:            linear-gradient(135deg,#FF6A00,#FF3D00);

  --purple:        #7C3AED;
  --purple2:       #9D4EDD;
  --purple-light:  #F5F3FF;
  --pg:            linear-gradient(135deg,#A855F7,#6D28D9);

  --blue:          #2563EB;
  --blue-light:    #EFF6FF;
  --bg:            linear-gradient(135deg,#60A5FA,#1D4ED8);

  --gold:          #F59E0B;

  --fusion:        linear-gradient(135deg,#FF5500 0%,#A855F7 50%,#2563EB 100%);

  --green:         #25D366;
  --green-light:   #ECFDF5;

  --text:          #0F172A;
  --text2:         #1E293B;
  --muted:         #475569;
  --hint:          #94A3B8;
  --line:          #E2E8F0;

  --radius:        24px;
  --r-sm:          14px;
  --r-pill:        999px;

  --sha: 0 20px 50px -10px rgba(15,23,42,0.12), 0 4px 12px rgba(15,23,42,0.05);
  --sha2:0 30px 70px -14px rgba(15,23,42,0.18), 0 8px 20px rgba(15,23,42,0.07);
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }

/* ── BODY ─────────────────────────────────────────────────── */
body {
  min-height:100vh;
  background:#F8FAFF;
  font-family:'Space Grotesk','Montserrat',sans-serif;
  color:var(--text);
  display:flex; justify-content:center; align-items:flex-start;
  padding:0 0 60px;
  overflow-x:hidden;
}

/* ── HERO BANNER — LIGHT THEME ────────────────────────────── */
.hero-banner {
  width:100%;
  background: linear-gradient(160deg,#FFFFFF 0%,#FFF7ED 25%,#F5F3FF 50%,#EFF6FF 75%,#FFFFFF 100%);
  position:relative; overflow:hidden;
  padding:44px 24px 36px;
  text-align:center;
  border-bottom:3px solid transparent;
  border-image:linear-gradient(90deg,#FF5500,#7C3AED,#2563EB) 1;
}

/* Animated mesh grid — light version */
.hero-banner::before {
  content:'';
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,85,0,0.06) 1px, transparent 1px),
    linear-gradient(90deg,rgba(124,58,237,0.06) 1px, transparent 1px);
  background-size:44px 44px;
  animation:gridScroll 22s linear infinite;
}

@keyframes gridScroll {
  from { background-position:0 0; }
  to   { background-position:44px 44px; }
}

/* Vivid color flares in hero — light */
.hero-banner::after {
  content:'';
  position:absolute; top:-30%; left:-10%;
  width:120%; height:160%;
  background:
    radial-gradient(ellipse 40% 30% at 15% 50%, rgba(255,85,0,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 35% 28% at 85% 35%, rgba(124,58,237,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 30% 25% at 50% 85%, rgba(37,99,235,0.12) 0%, transparent 60%);
  pointer-events:none;
  animation:flareShift 10s ease-in-out infinite alternate;
}

@keyframes flareShift {
  from { transform:scale(1) rotate(0deg); }
  to   { transform:scale(1.05) rotate(1.5deg); }
}

/* ── PARTICLES — vivid colored dots floating up ───────────── */
.particles {
  position:absolute; inset:0; pointer-events:none; overflow:hidden;
}
.p { position:absolute; border-radius:50%; animation:floatUp linear infinite; }
.p:nth-child(1)  { width:5px;height:5px; background:#FF5500; left:8%;   bottom:-10px; animation-duration:7s;  animation-delay:0s; }
.p:nth-child(2)  { width:4px;height:4px; background:#A855F7; left:18%;  bottom:-10px; animation-duration:9s;  animation-delay:1s; }
.p:nth-child(3)  { width:6px;height:6px; background:#2563EB; left:32%;  bottom:-10px; animation-duration:6s;  animation-delay:2s; }
.p:nth-child(4)  { width:4px;height:4px; background:#FFD700; left:48%;  bottom:-10px; animation-duration:8s;  animation-delay:0.5s; }
.p:nth-child(5)  { width:5px;height:5px; background:#FF5500; left:62%;  bottom:-10px; animation-duration:10s; animation-delay:1.5s; }
.p:nth-child(6)  { width:3px;height:3px; background:#7C3AED; left:78%;  bottom:-10px; animation-duration:7s;  animation-delay:3s; }
.p:nth-child(7)  { width:5px;height:5px; background:#25D366; left:88%;  bottom:-10px; animation-duration:9s;  animation-delay:0.8s; }
.p:nth-child(8)  { width:3px;height:3px; background:#FF7A00; left:4%;   bottom:-10px; animation-duration:11s; animation-delay:2s; }
.p:nth-child(9)  { width:4px;height:4px; background:#6D28D9; left:42%;  bottom:-10px; animation-duration:8s;  animation-delay:4s; }
.p:nth-child(10) { width:5px;height:5px; background:#F59E0B; left:72%;  bottom:-10px; animation-duration:6.5s;animation-delay:1.2s; }

@keyframes floatUp {
  0%   { transform:translateY(0) scale(1);   opacity:0; }
  10%  { opacity:0.85; }
  90%  { opacity:0.6; }
  100% { transform:translateY(-420px) scale(0.3); opacity:0; }
}

/* ── GAM BADGE ────────────────────────────────────────────── */
.gam-badge {
  position:relative; z-index:2;
  display:inline-block;
  background:linear-gradient(135deg,#FFF7ED,#F5F3FF);
  border:2px solid rgba(255,85,0,0.40);
  color:var(--orange-deep);
  font-size:11px; font-weight:900; letter-spacing:3px; text-transform:uppercase;
  padding:7px 22px; border-radius:var(--r-pill);
  margin-bottom:16px;
  box-shadow:0 4px 18px rgba(255,85,0,0.18), inset 0 1px 0 rgba(255,255,255,0.8);
  animation:badgePop 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes badgePop {
  from { opacity:0; transform:scale(0.7); }
  to   { opacity:1; transform:scale(1); }
}

/* ── LOGO ─────────────────────────────────────────────────── */
.logo-text {
  position:relative; z-index:2;
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(52px,14vw,82px);
  letter-spacing:5px; line-height:0.9;
  color:var(--text);
  text-shadow:0 2px 12px rgba(15,23,42,0.08);
  animation:logoSlide 0.7s 0.15s cubic-bezier(0.4,0,0.2,1) both;
}

@keyframes logoSlide {
  from { opacity:0; transform:translateY(-30px) skewX(-2deg); }
  to   { opacity:1; transform:translateY(0) skewX(0deg); }
}

.logo-text .year {
  background:var(--og);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  filter:drop-shadow(0 0 14px rgba(255,85,0,0.50));
  animation:yearFlame 2.5s ease-in-out infinite alternate;
}

@keyframes yearFlame {
  from { filter:drop-shadow(0 0 10px rgba(255,85,0,0.40)); }
  to   { filter:drop-shadow(0 0 24px rgba(255,85,0,0.80)); }
}

/* ── SUBTITLE ─────────────────────────────────────────────── */
.app-header .subtitle {
  position:relative; z-index:2;
  font-size:14px; font-weight:700; letter-spacing:0.3px;
  color:var(--muted);
  margin-top:10px;
  animation:fadeUp 0.6s 0.3s both;
}

/* ── EVENT DATE PILLS ─────────────────────────────────────── */
.event-tagline-badges {
  position:relative; z-index:2;
  display:flex; justify-content:center;
  gap:10px; flex-wrap:wrap; margin-top:18px;
  animation:fadeUp 0.6s 0.4s both;
}

.event-tag-pill {
  font-size:12.5px; font-weight:800;
  padding:8px 18px; border-radius:var(--r-pill);
  display:inline-flex; align-items:center; gap:6px;
  transition:all 0.25s ease;
  cursor:default;
}

.event-tag-pill.encounter {
  background:linear-gradient(135deg,#F5F3FF,#EDE9FE);
  border:2px solid #C4B5FD;
  color:#5B21B6;
  box-shadow:0 4px 18px rgba(109,40,217,0.18);
}

.event-tag-pill.encounter:hover {
  transform:translateY(-3px);
  box-shadow:0 8px 28px rgba(109,40,217,0.30);
}

.event-tag-pill.awakening {
  background:linear-gradient(135deg,#FFF7ED,#FFEDD5);
  border:2px solid #FDBA74;
  color:#C2410C;
  box-shadow:0 4px 18px rgba(255,85,0,0.18);
}

.event-tag-pill.awakening:hover {
  transform:translateY(-3px);
  box-shadow:0 8px 28px rgba(255,85,0,0.30);
}

/* ── WHATSAPP HEADER BTN ──────────────────────────────────── */
.header-whatsapp-group-btn {
  position:relative; z-index:2;
  animation:fadeUp 0.6s 0.5s both;
}

.header-whatsapp-group-btn:hover {
  background:rgba(37,211,102,0.22) !important;
  transform:translateY(-3px);
  box-shadow:0 10px 28px rgba(37,211,102,0.30) !important;
}

/* ── PAGE LAYOUT ──────────────────────────────────────────── */
.app-container {
  width:100%; max-width:680px;
  padding:0;
  display:flex; flex-direction:column; gap:0;
}

.glow-container { display:none; }

/* ── NAV TABS — white, sticky, vivid active ───────────────── */
.app-nav {
  display:flex;
  background:#FFFFFF;
  border-bottom:3px solid var(--line);
  padding:0;
  box-shadow:0 4px 24px rgba(15,23,42,0.08);
  position:sticky; top:0; z-index:100;
}

.nav-btn {
  flex:1; background:transparent; border:none;
  color:var(--muted);
  padding:16px 10px;
  border-radius:0; cursor:pointer;
  font-size:14px; font-weight:800;
  transition:all 0.22s ease;
  display:flex; align-items:center; justify-content:center; gap:8px;
  border-bottom:3px solid transparent;
  margin-bottom:-3px;
  position:relative; overflow:hidden;
}

.nav-btn::after {
  content:'';
  position:absolute; bottom:0; left:50%; width:0; height:3px;
  background:var(--og);
  transition:all 0.3s cubic-bezier(0.4,0,0.2,1);
  transform:translateX(-50%);
  border-radius:3px 3px 0 0;
}

.nav-btn:hover { color:var(--text); background:#FFF7ED; }
.nav-btn:hover::after { width:60%; }

.nav-btn.active {
  color:var(--orange);
  background:#FFF7ED;
  border-bottom-color:var(--orange);
  font-weight:900;
}

.nav-btn.active::after { width:100%; }

/* ── MAIN CONTENT ─────────────────────────────────────────── */
.app-main { padding:24px 20px; background:#F8FAFF; min-height:60vh; }

/* ── VIEWS ────────────────────────────────────────────────── */
.view-section { display:none; }

.view-section.active-view {
  display:block;
  animation:viewIn 0.4s cubic-bezier(0.4,0,0.2,1) both;
}

@keyframes viewIn {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── CARDS — crisp white ──────────────────────────────────── */
.card {
  border-radius:var(--radius);
  padding:28px 26px;
  position:relative; overflow:hidden;
  margin-bottom:20px;
  transition:all 0.3s ease;
}

.glass-card {
  background:#FFFFFF;
  border:1.5px solid var(--line);
  box-shadow:var(--sha);
}

.glass-card:hover {
  transform:translateY(-3px);
  box-shadow:var(--sha2);
  border-color:rgba(255,85,0,0.20);
}

/* Left vivid accent bar */
.glass-card::before {
  content:'';
  position:absolute; top:20px; left:0;
  width:5px; height:calc(100% - 40px);
  background:var(--og);
  border-radius:0 4px 4px 0;
}

/* ── GRACE ENCOUNTER SPOTLIGHT — light vivid ──────────────── */
.grace-encounter-card {
  background:linear-gradient(145deg,#FEFBFF 0%,#F5F3FF 40%,#EFF6FF 100%) !important;
  border:2.5px solid #A78BFA !important;
  box-shadow:
    0 0 0 1px rgba(255,85,0,0.08),
    0 20px 50px rgba(124,58,237,0.14),
    0 8px 20px rgba(15,23,42,0.06) !important;
}

.grace-encounter-card::before {
  background:var(--pg) !important;
}

.grace-encounter-card::after {
  content:'';
  position:absolute; top:-20%; right:-15%;
  width:280px; height:280px; border-radius:50%;
  background:radial-gradient(circle,rgba(124,58,237,0.10) 0%,transparent 70%);
  pointer-events:none;
}

/* ── CARD HEADER ─────────────────────────────────────────── */
.card-header { margin-bottom:24px; }

.card-header h2 {
  font-family:'Bebas Neue',sans-serif;
  font-size:34px; letter-spacing:2px; color:var(--text);
  margin-bottom:5px;
}

.card-header p { font-size:14px; font-weight:600; color:var(--muted); }

.card-divider {
  border:0; height:2px;
  background:linear-gradient(90deg,transparent,rgba(255,85,0,0.25),rgba(124,58,237,0.25),transparent);
  margin:24px 0;
}

/* ── FORM ELEMENTS ───────────────────────────────────────── */
.form-group { margin-bottom:20px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

@media(max-width:480px) { .form-row { grid-template-columns:1fr; gap:0; } }

label {
  display:block;
  font-size:11.5px; font-weight:900;
  text-transform:uppercase; letter-spacing:1.3px;
  color:var(--muted);
  margin-bottom:8px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
select {
  width:100%;
  background:#FFFFFF;
  border:2px solid var(--line);
  border-radius:13px;
  padding:14px 17px;
  font-family:'Space Grotesk',sans-serif;
  font-size:15px; font-weight:700; color:var(--text);
  outline:none;
  transition:all 0.25s ease;
  box-shadow:inset 0 2px 4px rgba(15,23,42,0.03);
}

input::placeholder { color:var(--hint); font-weight:500; }

input:focus, select:focus {
  border-color:var(--orange);
  background:#FFFFFF;
  box-shadow:0 0 0 4px rgba(255,85,0,0.14), inset 0 2px 4px rgba(255,85,0,0.03);
  transform:translateY(-1px);
}

select {
  cursor:pointer; appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%23475569'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  padding-right:42px;
}

select option { background:#FFF; color:var(--text); }

.input-hint { font-size:12px; font-weight:600; color:var(--hint); margin-top:6px; display:block; }
.hide { display:none !important; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  border:none; border-radius:14px;
  padding:15px 30px;
  font-family:'Space Grotesk',sans-serif;
  font-size:15.5px; font-weight:900;
  cursor:pointer; text-decoration:none; color:#FFFFFF;
  position:relative; overflow:hidden;
  letter-spacing:0.3px;
  transition:all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* Shine sweep */
.btn::before {
  content:'';
  position:absolute; top:0; left:-100%; width:70%; height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,0.30),transparent);
  transform:skewX(-20deg);
  transition:left 0.5s ease;
}

.btn:hover::before { left:140%; }

.btn-primary {
  background:var(--og);
  box-shadow:0 6px 24px rgba(255,85,0,0.40), 0 2px 6px rgba(255,60,0,0.25);
}

.btn-primary:hover {
  transform:translateY(-4px) scale(1.02);
  box-shadow:0 14px 36px rgba(255,85,0,0.50), 0 4px 12px rgba(255,60,0,0.30);
}

.btn-primary:active { transform:scale(0.97); }

.btn-secondary {
  background:#F1F5F9;
  border:2px solid var(--line);
  color:var(--text2);
  font-weight:800;
  box-shadow:0 2px 8px rgba(15,23,42,0.05);
}

.btn-secondary:hover {
  background:#E2E8F0; border-color:#94A3B8;
  color:var(--text);
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(15,23,42,0.10);
}

.btn-whatsapp {
  background:linear-gradient(135deg,#25D366,#128C7E);
  box-shadow:0 6px 24px rgba(37,211,102,0.38);
}

.btn-whatsapp:hover {
  transform:translateY(-4px);
  box-shadow:0 14px 36px rgba(37,211,102,0.50);
}

.btn-icon-only { padding:14px; }
.btn-block { display:flex; width:100%; }

/* ── SPINNER ─────────────────────────────────────────────── */
.spinner {
  width:20px; height:20px;
  border:3px solid rgba(255,255,255,0.3);
  border-radius:50%; border-top-color:#FFF;
  animation:spin 0.8s ease-in-out infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }

/* ── ALERTS ──────────────────────────────────────────────── */
.alert-box {
  border-radius:14px; padding:14px 18px;
  font-size:14px; font-weight:700;
  margin-bottom:18px; line-height:1.55;
  animation:alertIn 0.3s ease both;
}

@keyframes alertIn {
  from { opacity:0; transform:translateY(-8px) scale(0.97); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

.alert-box.success {
  background:linear-gradient(135deg,#ECFDF5,#D1FAE5);
  border:2px solid #6EE7B7; color:#065F46;
  box-shadow:0 4px 16px rgba(16,185,129,0.15);
}

.alert-box.error {
  background:linear-gradient(135deg,#FEF2F2,#FEE2E2);
  border:2px solid #FCA5A5; color:#991B1B;
  box-shadow:0 4px 16px rgba(239,68,68,0.12);
}

.alert-box.info {
  background:linear-gradient(135deg,#EFF6FF,#DBEAFE);
  border:2px solid #93C5FD; color:#1E40AF;
  box-shadow:0 4px 16px rgba(37,99,235,0.12);
}

/* ── SUCCESS CARD ────────────────────────────────────────── */
.success-card {
  text-align:center;
  background:linear-gradient(145deg,#FFFBF5,#F9F5FF,#F0F7FF) !important;
  border:2px solid rgba(255,85,0,0.18) !important;
}

.success-card::before { background:var(--fusion) !important; }

.success-card h2 {
  font-family:'Bebas Neue',sans-serif;
  font-size:38px; color:var(--text); margin-bottom:6px;
}

.success-message {
  font-size:15px; font-weight:600; color:var(--text2);
  line-height:1.65; margin-top:10px;
}

/* Checkmark */
.success-icon-wrapper { margin:8px auto 20px; display:block; }

.checkmark__circle {
  stroke-dasharray:166; stroke-dashoffset:166;
  stroke-width:2; stroke:#10B981; fill:none;
  animation:stroke 0.6s cubic-bezier(0.65,0,0.45,1) forwards;
}

.checkmark {
  width:72px; height:72px; border-radius:50%; display:block;
  stroke-width:3; stroke:#FFF; stroke-miterlimit:10;
  box-shadow:inset 0 0 0 #10B981;
  animation:fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
  margin:0 auto;
}

.checkmark__check {
  transform-origin:50% 50%;
  stroke-dasharray:48; stroke-dashoffset:48;
  animation:stroke 0.3s cubic-bezier(0.65,0,0.45,1) 0.8s forwards;
}

@keyframes stroke  { 100% { stroke-dashoffset:0; } }
@keyframes scale   { 0%,100%{transform:none;} 50%{transform:scale3d(1.12,1.12,1);} }
@keyframes fill    { 100% { box-shadow:inset 0 0 0 42px #10B981; } }

/* ── REFERRAL BOX ────────────────────────────────────────── */
.referral-box {
  background:linear-gradient(145deg,#FFF7ED,#FFEDD5);
  border:2px solid rgba(255,85,0,0.25);
  border-radius:20px; padding:22px;
  margin-bottom:24px;
  position:relative; overflow:hidden;
  box-shadow:0 8px 28px rgba(255,85,0,0.10);
}

.referral-box::before {
  content:'🎟️';
  position:absolute; right:-14px; bottom:-18px;
  font-size:88px; opacity:0.06; pointer-events:none;
  transform:rotate(-18deg);
}

.referral-box h3 {
  font-family:'Montserrat',sans-serif;
  font-size:18px; font-weight:900; color:var(--orange-deep);
  margin-bottom:7px;
}

.referral-box .box-desc {
  font-size:13.5px; font-weight:600; color:var(--text2);
  line-height:1.6; margin-bottom:18px;
}

.referral-code-display {
  display:flex; align-items:center; justify-content:space-between;
  background:#FFFFFF; padding:14px 18px;
  border-radius:13px; border:2px dashed var(--orange);
  margin-bottom:14px;
  box-shadow:0 2px 10px rgba(255,85,0,0.08);
  position:relative; overflow:hidden;
}

/* Shimmer on code box */
.referral-code-display::after {
  content:'';
  position:absolute; top:0; left:-60%; width:40%; height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,85,0,0.08),transparent);
  animation:codeSweep 3.5s ease-in-out infinite;
  transform:skewX(-12deg);
}

@keyframes codeSweep {
  0%  { left:-60%; }
  60% { left:120%; }
  100%{ left:120%; }
}

.referral-code-display .label {
  font-size:11px; color:var(--muted);
  text-transform:uppercase; font-weight:900; letter-spacing:1.2px;
}

.code-badge {
  font-size:20px; font-weight:900; color:var(--orange);
  letter-spacing:2px;
  text-shadow:0 0 18px rgba(255,85,0,0.25);
  animation:codeGlow 2s ease-in-out infinite alternate;
}

@keyframes codeGlow {
  from { text-shadow:0 0 10px rgba(255,85,0,0.18); }
  to   { text-shadow:0 0 22px rgba(255,85,0,0.48); }
}

.link-copy-container { display:flex; gap:8px; margin-bottom:18px; }

.link-copy-container input {
  flex:1; background:#FFF; border:2px solid var(--line);
  padding:12px 14px; border-radius:12px;
  font-family:monospace; font-size:13.5px; font-weight:700;
  color:var(--text); outline:none; transition:all 0.2s;
}

.link-copy-container input:focus {
  border-color:var(--orange);
  box-shadow:0 0 0 3px rgba(255,85,0,0.12);
}

/* ── PROGRESS BAR ────────────────────────────────────────── */
.user-stats-container { text-align:left; margin-top:16px; }

.stats-label-row {
  display:flex; justify-content:space-between;
  font-size:13.5px; font-weight:900; color:var(--text); margin-bottom:10px;
}

.progress-track {
  height:16px; background:#E2E8F0; border-radius:50px;
  overflow:hidden;
  box-shadow:inset 0 3px 6px rgba(15,23,42,0.08);
}

.progress-fill {
  height:100%;
  background:var(--fusion);
  border-radius:50px;
  transition:width 1.2s cubic-bezier(0.4,0,0.2,1);
  box-shadow:0 0 16px rgba(255,85,0,0.40), 0 0 8px rgba(124,58,237,0.35);
  position:relative; overflow:hidden;
}

.progress-fill::after {
  content:'';
  position:absolute; top:0; left:-100%; width:60%; height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,0.35),transparent);
  animation:progSweep 2s ease-in-out infinite;
}

@keyframes progSweep { from{left:-80%;} to{left:140%;} }

.stats-target-row {
  display:flex; justify-content:space-between;
  font-size:12px; font-weight:700; color:var(--hint); margin-top:8px;
}

/* ── LEADERBOARD STATS ───────────────────────────────────── */
.leaderboard-stats-summary {
  display:grid; grid-template-columns:1fr 1fr;
  gap:18px; margin-bottom:26px;
}

@media(max-width:480px) { .leaderboard-stats-summary { grid-template-columns:1fr; } }

.stat-pill {
  background:#FFFFFF;
  border-radius:20px; padding:22px;
  text-align:center;
  display:flex; flex-direction:column; gap:6px;
  position:relative; overflow:hidden;
  transition:all 0.3s ease;
}

.stat-pill::before {
  content:'';
  position:absolute; top:0; left:0; right:0; height:5px;
  border-radius:20px 20px 0 0;
}

.stat-pill.orange-glow {
  border:2px solid rgba(255,85,0,0.22);
  box-shadow:0 8px 28px rgba(255,85,0,0.10);
}
.stat-pill.orange-glow::before { background:var(--og); }
.stat-pill.orange-glow:hover {
  transform:translateY(-5px) scale(1.02);
  box-shadow:0 18px 40px rgba(255,85,0,0.18);
  border-color:rgba(255,85,0,0.45);
}

.stat-pill.purple-glow {
  border:2px solid rgba(124,58,237,0.22);
  box-shadow:0 8px 28px rgba(124,58,237,0.10);
}
.stat-pill.purple-glow::before { background:var(--pg); }
.stat-pill.purple-glow:hover {
  transform:translateY(-5px) scale(1.02);
  box-shadow:0 18px 40px rgba(124,58,237,0.18);
  border-color:rgba(124,58,237,0.45);
}

.stat-num {
  font-family:'Bebas Neue',sans-serif;
  font-size:50px; line-height:1;
}

.stat-pill.orange-glow .stat-num { color:var(--orange); text-shadow:0 0 22px rgba(255,85,0,0.28); }
.stat-pill.purple-glow .stat-num { color:var(--purple); text-shadow:0 0 22px rgba(124,58,237,0.28); }

.stat-lbl {
  font-size:11px; font-weight:900;
  text-transform:uppercase; letter-spacing:1.5px; color:var(--muted);
}

/* ── TABLE ───────────────────────────────────────────────── */
.table-container {
  overflow-x:auto; border-radius:18px;
  border:2px solid var(--line);
  background:#FFF;
  box-shadow:0 6px 24px rgba(15,23,42,0.06);
}

table { width:100%; border-collapse:collapse; text-align:left; }
th,td { padding:14px 16px; border-bottom:1px solid #F1F5F9; }

th {
  background:linear-gradient(135deg,#1E1B4B,#312E81);
  font-size:11px; font-weight:900;
  text-transform:uppercase; letter-spacing:1.2px; color:#FFF;
}

th:first-child { border-radius:16px 0 0 0; }
th:last-child  { border-radius:0 16px 0 0; }

td { font-size:14px; color:var(--text2); font-weight:700; }

.leader-table tbody tr { transition:all 0.2s ease; }

.leader-table tbody tr:hover {
  background:linear-gradient(90deg,#FFF7ED,#FFF);
  transform:translateX(4px);
}

/* Rank badges */
.rank-badge {
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:50%;
  font-size:14px; font-weight:900;
  transition:all 0.2s;
}

.rank-1 {
  background:linear-gradient(135deg,#F59E0B,#D97706);
  color:#FFF;
  box-shadow:0 4px 16px rgba(245,158,11,0.55);
  animation:goldenPulse 2s ease-in-out infinite alternate;
}

@keyframes goldenPulse {
  from { box-shadow:0 4px 16px rgba(245,158,11,0.45); }
  to   { box-shadow:0 4px 28px rgba(245,158,11,0.80); transform:scale(1.08); }
}

.rank-2 { background:linear-gradient(135deg,#94A3B8,#64748B); color:#FFF; }
.rank-3 { background:linear-gradient(135deg,#CD853F,#92400E); color:#FFF; }
.rank-other { color:var(--muted); border:2px solid var(--line); background:#F8FAFC; }

/* VIP pill */
.vip-badge-pill {
  display:inline-block; font-size:11px; font-weight:900;
  padding:5px 14px; border-radius:var(--r-pill);
  text-transform:uppercase; text-align:center;
}

.vip-badge-pill.unlocked {
  background:linear-gradient(135deg,#ECFDF5,#D1FAE5);
  border:2px solid #6EE7B7; color:#065F46;
  box-shadow:0 0 12px rgba(16,185,129,0.30);
  animation:vipPulse 2s ease-in-out infinite alternate;
}

@keyframes vipPulse {
  from { box-shadow:0 0 10px rgba(16,185,129,0.25); }
  to   { box-shadow:0 0 22px rgba(16,185,129,0.55); }
}

.vip-badge-pill.locked {
  background:#F1F5F9; border:2px solid var(--line); color:var(--hint);
}

/* ── ADMIN ───────────────────────────────────────────────── */
.admin-panel-header {
  display:flex; justify-content:space-between; align-items:flex-start;
  margin-bottom:24px; gap:16px;
}

@media(max-width:580px) { .admin-panel-header { flex-direction:column; align-items:stretch; } }

.admin-panel-header h2 {
  font-family:'Bebas Neue',sans-serif; font-size:36px; color:var(--text);
}

.admin-panel-header p { font-size:14px; color:var(--muted); }

.admin-filters {
  display:grid; grid-template-columns:2fr 1fr;
  gap:12px; margin-bottom:20px;
}

@media(max-width:480px) { .admin-filters { grid-template-columns:1fr; } }

.admin-table {
  width: 100% !important;
  min-width: 1250px !important;
  border-collapse: collapse !important;
  display: table !important;
}

.admin-table thead {
  display: table-header-group !important;
}

.admin-table tbody {
  display: table-row-group !important;
}

.admin-table tr {
  display: table-row !important;
}

.admin-table th,
.admin-table td {
  display: table-cell !important;
  padding: 12px 14px;
  font-size: 13px;
  white-space: nowrap !important;
  vertical-align: middle;
}

.admin-table thead th {
  background: linear-gradient(135deg, #1E1B4B, #312E81);
  color: #FFF;
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-table tbody tr:hover {
  background: linear-gradient(90deg, #FFF7ED, #FFF);
}

/* ── HORIZONTAL SCROLL WRAPPER FOR ADMIN TABLE ── */
.admin-table-scroll-wrapper {
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  border: 2px solid #CBD5E1;
  border-radius: 14px;
  background: #FFF;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

/* High-visibility horizontal scrollbar for admin table */
.admin-table-scroll-wrapper::-webkit-scrollbar {
  height: 11px !important;
}

.admin-table-scroll-wrapper::-webkit-scrollbar-track {
  background: #EEF2F6 !important;
  border-radius: 8px;
}

.admin-table-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #94A3B8 !important;
  border-radius: 8px;
  border: 2px solid #EEF2F6;
}

.admin-table-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: #64748B !important;
}

/* ── WIDE CONTAINER WHEN ADMIN OR VAN VIEW IS ACTIVE ── */
body:has(#view-admin.active-view) .app-container,
body:has(#view-van.active-view) .app-container,
.app-container.admin-wide {
  max-width: 1400px !important;
  width: 96% !important;
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── VIP VAN PORTAL SUB-TABS & PASS STYLING ── */
.btn-van-subtab {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-van-subtab:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.btn-van-subtab.active {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

/* ── FOOTER ─────────────────────────────────────────────── */
.app-footer {
  text-align:center; padding:28px 20px 10px;
  border-top:2px solid var(--line);
  color:var(--muted); font-size:13px; font-weight:600;
  background:#F8FAFF;
}

.pastor-credit {
  font-size:12px; font-weight:900;
  text-transform:uppercase; letter-spacing:2.5px;
  color:var(--orange); margin-top:8px;
  text-shadow:0 0 10px rgba(255,85,0,0.20);
}

/* ── MOBILE ADMIN TABLE ─────────────────────────────────── */
@media(max-width:640px) {
  .app-main { padding:16px 14px; }
  .card { padding:20px 18px; border-radius:18px; }

  /* Keep admin table in horizontal scrolling mode so user can swipe sideways to see all columns */
  .admin-table-scroll-wrapper .admin-table {
    display: table !important;
    width: 100% !important;
    min-width: 1250px !important;
  }
  .admin-table-scroll-wrapper .admin-table thead {
    display: table-header-group !important;
  }
  .admin-table-scroll-wrapper .admin-table tbody {
    display: table-row-group !important;
  }
  .admin-table-scroll-wrapper .admin-table tr {
    display: table-row !important;
  }
  .admin-table-scroll-wrapper .admin-table th,
  .admin-table-scroll-wrapper .admin-table td {
    display: table-cell !important;
    white-space: nowrap !important;
    padding: 10px 12px;
  }
}

/* ── UTILITY ANIMATIONS ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}

.table-loading-row { text-align:center; padding:40px; color:var(--muted); }

.event-checkin-notice {
  background:linear-gradient(135deg,#FFF7ED,#FFEDD5);
  border:2px solid rgba(255,85,0,0.22);
  border-radius:14px;
  padding:14px 18px;
  margin-bottom:20px;
  font-size:13px; line-height:1.55;
  color:var(--text2);
}

.whatsapp-community-card { transition:all 0.3s ease; }
.whatsapp-community-card:hover {
  transform:translateY(-3px);
  box-shadow:0 14px 32px rgba(37,211,102,0.22) !important;
}

/* ── MODAL ANIMATIONS ────────────────────────────────────── */
@keyframes modalFadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}

@keyframes modalPopUp {
  from { opacity:0; transform:scale(0.85) translateY(30px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}

/* ── GAMING APP-STYLE FLOATING TUTORIAL HUD ──────────────── */
.gaming-spotlight-active {
  position: relative !important;
  z-index: 100 !important;
  outline: 3px solid #FF5500 !important;
  box-shadow: 0 0 35px rgba(255, 85, 0, 0.45), 0 0 15px rgba(124, 58, 237, 0.35) !important;
  animation: spotlightPulse 1.8s ease-in-out infinite alternate !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes spotlightPulse {
  from { box-shadow: 0 0 20px rgba(255, 85, 0, 0.35), 0 0 10px rgba(124, 58, 237, 0.25); outline-color: #FF5500; }
  to   { box-shadow: 0 0 45px rgba(255, 85, 0, 0.65), 0 0 25px rgba(124, 58, 237, 0.50); outline-color: #7C3AED; }
}

.gaming-guide-dock {
  position: fixed;
  bottom: 24px;
  right: 20px;
  max-width: 360px;
  width: calc(100% - 40px);
  background: rgba(255, 255, 255, 0.98);
  border: 2px solid #FF5500;
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 85, 0, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  animation: gameHudSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@keyframes gameHudSlide {
  from { opacity: 0; transform: translateY(50px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.gaming-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.gaming-guide-badge {
  background: linear-gradient(135deg, #FF5500, #EA580C);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(255, 85, 0, 0.3);
}

.gaming-guide-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.45;
  margin-bottom: 12px;
}

.gaming-guide-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.gaming-guide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E2E8F0;
  transition: all 0.25s ease;
}

.gaming-guide-dot.active {
  background: #FF5500;
  width: 22px;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.5);
}

/* ── 3. FLYER FLOAT ANIMATION & STACKING HIERARCHY ── */
.flyer-left {
  position: relative !important;
  z-index: 15 !important;
  isolation: isolate;
  animation: flyerFloat 4s ease-in-out infinite;
}
.flyer-right {
  position: relative !important;
  z-index: 2 !important;
  animation: flyerFloatR 4s ease-in-out infinite 0.7s;
}

@keyframes flyerFloat {
  0%, 100% { transform: rotate(-2deg) translateX(10px) translateY(0px); }
  50%       { transform: rotate(-2deg) translateX(10px) translateY(-7px); }
}
@keyframes flyerFloatR {
  0%, 100% { transform: rotate(3deg) translateX(-14px) translateY(0px); }
  50%       { transform: rotate(3deg) translateX(-14px) translateY(-7px); }
}

/* Mobile Screen: Ensure Grace Encounter is distinctly centered & in front */
@media (max-width: 640px) {
  .hero-animate-flyers {
    padding: 10px 4px 0 !important;
    max-width: 100% !important;
  }
  .flyer-left {
    flex: 1.15 !important;
    z-index: 20 !important;
  }
  .flyer-left img {
    max-width: 100% !important;
    box-shadow: 0 16px 45px rgba(245, 130, 32, 0.65), 0 0 0 2.5px rgba(245, 130, 32, 0.6) !important;
  }
  .flyer-right {
    flex: 0.85 !important;
    z-index: 1 !important;
    opacity: 0.85;
  }
  .flyer-right img {
    max-width: 100% !important;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.35) !important;
  }
}

.gaming-guide-btn {
  background: linear-gradient(135deg, #FF5500, #EA580C);
  color: #FFFFFF;
  border: none;
  font-size: 12.5px;
  font-weight: 900;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(255, 85, 0, 0.3);
}

.gaming-guide-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 85, 0, 0.45);
}

.gaming-guide-close-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.gaming-guide-close-btn:hover {
  color: #0F172A;
}

/* Floating Tour trigger button */
.gaming-tour-trigger {
  position: fixed;
  bottom: 24px;
  left: 20px;
  background: #FFFFFF;
  border: 2px solid #FF5500;
  color: #FF5500;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(255, 85, 0, 0.25);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 9999;
  transition: all 0.25s ease;
}

.gaming-tour-trigger:hover {
  background: #FF5500;
  color: #FFFFFF;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 28px rgba(255, 85, 0, 0.4);
}


/* ═══════════════════════════════════════════════════════════════
   ██  GRACE AWAKENING & GRACE ENCOUNTER — ANIMATIONS & SPEED  ██
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. ENTRANCE ANIMATIONS ────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(48px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Apply to hero after page load */
.hero-animate-badge   { animation: fadeInDown 0.6s ease 0.1s both; }
.hero-animate-flyers  { animation: zoomIn 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.3s both; }
.hero-animate-title   { animation: fadeInUp 0.7s ease 0.55s both; }
.hero-animate-pills   { animation: fadeInUp 0.6s ease 0.75s both; }
.hero-animate-wa      { animation: fadeInUp 0.6s ease 0.9s both; }

/* ── 5. BUTTON GLOW PULSE ──────────────────────────────────── */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 8px 25px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 12px 40px rgba(37,211,102,0.75), 0 0 0 6px rgba(37,211,102,0.12); }
}
@keyframes orangePulse {
  0%, 100% { box-shadow: 0 8px 25px rgba(245,130,32,0.4); }
  50%       { box-shadow: 0 12px 40px rgba(245,130,32,0.75), 0 0 0 6px rgba(245,130,32,0.12); }
}
@keyframes purplePulse {
  0%, 100% { box-shadow: 0 8px 25px rgba(124,58,237,0.4); }
  50%       { box-shadow: 0 12px 40px rgba(124,58,237,0.75), 0 0 0 6px rgba(124,58,237,0.12); }
}
.btn-whatsapp  { animation: glowPulse  2.5s ease-in-out infinite; }
.btn-primary   { animation: orangePulse 2.8s ease-in-out infinite; }
.btn-secondary { animation: purplePulse 2.8s ease-in-out infinite; }

/* ── 6. CARD HOVER LIFT ────────────────────────────────────── */
.card {
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.28s ease !important;
}
.card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 24px 60px -8px rgba(15,23,42,0.18) !important;
}

/* ── 7. SHIMMER TEXT on title ──────────────────────────────── */
@keyframes textShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.shimmer-text {
  background: linear-gradient(90deg, #F58220 20%, #FFD700 40%, #FFFFFF 50%, #FFD700 60%, #F58220 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 3s linear infinite;
}

/* ── 8. FLYER GLOW PULSE ───────────────────────────────────── */
@keyframes orangeGlow {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(245,130,32,0.5)); }
  50%       { filter: drop-shadow(0 0 28px rgba(245,130,32,0.9)); }
}
@keyframes purpleGlow {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(124,58,237,0.5)); }
  50%       { filter: drop-shadow(0 0 28px rgba(124,58,237,0.9)); }
}
.flyer-left  img { animation: orangeGlow 3s ease-in-out infinite; }
.flyer-right img { animation: purpleGlow 3s ease-in-out infinite 1s; }

/* ── 9. NAV BUTTON ACTIVE INDICATOR ───────────────────────── */
.nav-btn {
  position: relative;
  overflow: hidden;
}
.nav-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s ease;
}
.nav-btn:hover::after {
  background: rgba(255,255,255,0.08);
}
.nav-btn.active {
  animation: navActivePop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes navActivePop {
  0%   { transform: scale(0.95); }
  60%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ── 10. INPUT FOCUS ANIMATION ─────────────────────────────── */
input, select, textarea {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease !important;
}
input:focus, select:focus, textarea:focus {
  transform: scale(1.005) !important;
}

/* ── 11. REGISTRATION SUCCESS BURST ───────────────────────── */
@keyframes confettiBurst {
  0%   { opacity: 1; transform: translate(0,0) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.5) rotate(var(--rot)); }
}
.confetti-dot {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 99998;
  animation: confettiBurst 1.2s ease-out forwards;
}

/* ── 12. PERFORMANCE: image lazy-load fade-in ──────────────── */
img {
  transition: opacity 0.4s ease;
}
img.lazy-hidden { opacity: 0; }
img.lazy-loaded { opacity: 1; }

/* ── 13. SMOOTH PAGE TRANSITION ────────────────────────────── */
.app-container {
  animation: zoomIn 0.5s ease both;
}

/* ── 14. LEADERBOARD ROW STAGGER ───────────────────────────── */
@keyframes rowSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.lb-row { animation: rowSlideIn 0.4s ease both; }
.lb-row:nth-child(1)  { animation-delay: 0.05s; }
.lb-row:nth-child(2)  { animation-delay: 0.10s; }
.lb-row:nth-child(3)  { animation-delay: 0.15s; }
.lb-row:nth-child(4)  { animation-delay: 0.20s; }
.lb-row:nth-child(5)  { animation-delay: 0.25s; }
.lb-row:nth-child(n+6) { animation-delay: 0.3s; }

/* ── 15. REDUCED MOTION RESPECT ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── 16. HERO IMAGE PRELOAD HINT ───────────────────────────── */
.flyer-left img, .flyer-right img {
  will-change: transform, filter;
  image-rendering: -webkit-optimize-contrast;
}
