/* 🔥 MOBILE ZOOM, STRETCH & LAYOUT FIX - SABSE UPAR 🔥 */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: #f8f7ff;
  color: #1a1a2e;
  font-family: 'Poppins', sans-serif;
  line-height: 1.8;
  padding-bottom: 85px !important;
}

/* 🔥 IMAGE PREVIEW AUR RESULT IMAGE KO STRICTLY CONTROL KARNA */
#previewContainer img,
#resultImage {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 20px auto !important;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  object-fit: contain;
  background: #000;
}

#cameraFeed {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 15px;
}

.camera-container {
  max-width: 100%;
  overflow: hidden;
  text-align: center;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* =============================================
   🔥 NEW WHITE HEADER
   ============================================= */
/* =============================================
   MAIN HEADER — 2 ROW CLEAN DESIGN
   ============================================= */
.main-header {
  background: #ffffff;
  width: 100%;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(124,58,237,0.10);
}

/* ROW 1: Branding */
.hdr-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 8px;
  border-bottom: 1px solid #f3f0ff;
}
.hdr-brand-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hdr-brand-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.header-tagline {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 400;
  letter-spacing: 0.2px;
}
.hdr-brand-right {
  display: flex;
  align-items: center;
}
.hdr-auth {
  display: flex;
  align-items: center;
}

/* ROW 2: Action Bar */
.hdr-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 20px 9px;
  background: linear-gradient(135deg, #faf5ff, #fce7f3);
  gap: 10px;
}
.hdr-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hdr-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s;
  border: 1.5px solid transparent;
}
.hdr-pill:hover { transform: scale(1.05); }
.hdr-pill-label { font-size: 11px; font-weight: 600; }

.hdr-pill--credit {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  border-color: #c4b5fd;
  color: #5b21b6;
}
.hdr-pill--credit .credit-count { color: #5b21b6; font-family: 'Syne', sans-serif; }
.hdr-pill--credit .hdr-pill-label { color: #7c3aed; }

.hdr-pill--streak {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border-color: #fbbf24;
  color: #d97706;
}
.hdr-pill--streak .streak-count { color: #d97706; font-family: 'Syne', sans-serif; }
.hdr-pill--streak .hdr-pill-label { color: #b45309; }
.hdr-pill--streak.on-fire { animation: streakGlow 1.2s ease-in-out infinite; }

.hdr-analyze-btn {
  padding: 8px 20px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124,58,237,0.3);
  transition: all 0.25s;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.2px;
}
.hdr-analyze-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(124,58,237,0.5);
}
.hdr-start-btn { display: none; } /* legacy — hidden */
.hdr-auth { display: flex; align-items: center; }

.header-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 3px 14px rgba(142,45,226,0.25);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.header-logo:hover {
  transform: rotate(10deg) scale(1.1);
}

.header-title {
  font-family: 'Syne', 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

/* =============================================
   LOGIN BUTTON (inside header)
   ============================================= */
.login-btn {
  padding: 9px 24px;
  background: linear-gradient(45deg, #4a00e0, #8e2de2);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(142,45,226,0.35);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(142,45,226,0.55);
}

/* =============================================
   PROFILE SECTION
   ============================================= */
.profile-section {
  position: relative;
}

.profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #8e2de2;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(142,45,226,0.7);
}

/* Profile Dropdown */
.profile-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 55px;
  width: 280px;
  background: rgba(25,15,65,0.97);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(142,45,226,0.5);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
  padding: 20px;
  z-index: 1000;
  animation: dropdownPop 0.4s ease;
}

.profile-dropdown.show {
  display: block;
}

@keyframes dropdownPop {
  from { opacity: 0; transform: translateY(-15px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-header img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 3px solid #8e2de2;
}

.user-name {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.user-email {
  font-size: 13px;
  color: #b0b0ff;
}

.dropdown-item {
  width: 100%;
  padding: 13px 18px;
  margin: 8px 0;
  background: rgba(142,45,226,0.2);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
}

.dropdown-item:hover {
  background: rgba(142,45,226,0.4);
  transform: translateX(6px);
}

.dropdown-item.logout:hover {
  background: rgba(255,51,102,0.4);
}

.dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 12px 0;
}

.dropdown-link {
  display: block;
  padding: 10px 0;
  color: #cfd9ff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.dropdown-link:hover {
  color: #8e2de2;
  padding-left: 8px;
}

/* =============================================
   MODAL STYLES
   ============================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.show {
  display: flex;
}

.modal-compact {
  background: rgba(30,20,80,0.95);
  backdrop-filter: blur(25px);
  width: 90%;
  max-width: 380px;
  border-radius: 24px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(142,45,226,0.6);
  box-shadow: 0 25px 60px rgba(0,0,0,0.7);
  animation: modalPopGajab 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

@keyframes modalPopGajab {
  from { transform: scale(0.8) rotate(-5deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

.close-modal, .close-modal-credit {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  color: #ccc;
  cursor: pointer;
  transition: all 0.3s;
}

.close-modal:hover, .close-modal-credit:hover {
  color: white;
  transform: rotate(90deg);
}

.modal-small-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.modal-compact h3 {
  font-size: 26px;
  color: white;
  margin: 10px 0;
}

.modal-subtitle {
  color: #b0b0ff;
  font-size: 16px;
  margin-bottom: 25px;
}

.auth-tabs {
  display: flex;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0;
}

.tab-btn {
  flex: 1;
  padding: 14px;
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active {
  background: linear-gradient(45deg, #4a00e0, #8e2de2);
  color: white;
}

.auth-form input {
  width: 100%;
  padding: 16px 20px;
  margin: 12px 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  color: white;
  font-size: 16px;
}

.auth-form input::placeholder { color: #888; }

.auth-form input:focus {
  outline: none;
  border-color: #8e2de2;
  box-shadow: 0 0 15px rgba(142,45,226,0.3);
}

.email-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(45deg, #4a00e0, #8e2de2);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  margin: 20px 0 10px;
  box-shadow: 0 8px 25px rgba(142,45,226,0.4);
  transition: all 0.3s;
}

.email-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(142,45,226,0.6);
}

.or-divider {
  margin: 25px 0;
  color: #777;
  position: relative;
}

.or-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 20px;
  right: 20px;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.or-divider span {
  background: rgba(30,20,80,0.95);
  padding: 0 20px;
}

.google-btn-gajab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  padding: 16px;
  background: white;
  color: #333;
  border: 1px solid #dadce0;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.google-btn-gajab:hover {
  background: #f8f9fa;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}

.error-text {
  color: #ff6b6b;
  margin-top: 15px;
  font-size: 14px;
  min-height: 20px;
}

/* Edit Profile */
.edit-form { margin-top: 20px; }

.pic-section { margin-bottom: 25px; }

.edit-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #8e2de2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.change-pic-label {
  display: block;
  margin-top: 15px;
  padding: 10px 20px;
  background: rgba(142,45,226,0.3);
  color: white;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
}

.change-pic-label:hover { background: rgba(142,45,226,0.5); }

.name-input {
  width: 100%;
  padding: 16px 20px;
  margin: 15px 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  color: white;
  font-size: 16px;
}

.save-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(45deg, #4a00e0, #8e2de2);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(142,45,226,0.4);
  transition: all 0.3s;
}

.save-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(142,45,226,0.6);
}

/* =============================================
   MAIN CONTAINER
   ============================================= */
.logo-container img {
  width: 80px;
  height: 80px;
  display: block;
  margin: 20px auto;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.container {
  max-width: 480px;
  margin: 28px auto;
  background: transparent;
  padding: 0;
  border-radius: 28px;
  text-align: center;
  color: #222;
  position: relative;
  overflow: visible;
}

.screen { display: none; }
.screen.active { display: block; animation: screenIn 0.45s cubic-bezier(0.34,1.56,0.64,1); }

@keyframes screenIn {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── WELCOME SCREEN — see UNIFIED FINAL section at bottom ── */
#welcomeScreen {
  background: linear-gradient(155deg, #f5f3ff, #ede9fe);
  border-radius: 24px;
  padding: 28px 20px 22px;
  position: relative;
  overflow: visible;
  border: 1.5px solid #c4b5fd;
  box-shadow: none;
}

.welcome-bg-orbs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: orbFloat 6s ease-in-out infinite;
}
.orb1 { width: 200px; height: 200px; background: #8e2de2; top: -60px; right: -60px; animation-delay: 0s; }
.orb2 { width: 160px; height: 160px; background: #ec4899; bottom: -40px; left: -40px; animation-delay: 2s; }
.orb3 { width: 120px; height: 120px; background: #4a00e0; top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: 4s; }

@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.08); }
}

.welcome-inner { position: relative; z-index: 1; }

.welcome-icon-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(#8e2de2, #ec4899, #4a00e0, #8e2de2);
  animation: spin 3s linear infinite;
}

.welcome-icon-ring::before {
  content: '';
  position: absolute;
  inset: 4px;
  background: #1e1256;
  border-radius: 50%;
}

.welcome-icon-emoji {
  font-size: 38px;
  position: relative;
  z-index: 2;
  line-height: 1;
}

.welcome-title {
  font-size: 30px !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin: 0 0 12px !important;
  background: linear-gradient(120deg, #fff 30%, #c4b5fd) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  letter-spacing: -0.5px;
}

.welcome-desc {
  font-size: 15px !important;
  color: #c4b5fd !important;
  margin: 0 0 22px !important;
  line-height: 1.6 !important;
}

.welcome-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  color: #e0d9ff;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.get-started-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 16px 36px !important;
  background: linear-gradient(135deg, #8e2de2, #4a00e0) !important;
  color: white !important;
  border: none !important;
  border-radius: 60px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 8px 30px rgba(142,45,226,0.55) !important;
  transition: all 0.3s ease !important;
  margin: 0 !important;
}

.get-started-btn:hover {
  transform: translateY(-4px) scale(1.03) !important;
  box-shadow: 0 16px 40px rgba(142,45,226,0.7) !important;
  background: linear-gradient(135deg, #a040f0, #6020f0) !important;
}

.welcome-note {
  margin-top: 18px !important;
  font-size: 12px !important;
  color: rgba(196,181,253,0.6) !important;
}

/* ── INFO SCREEN ── */
#infoScreen {
  background: linear-gradient(160deg, #0f0c2e, #1e1256);
  border-radius: 28px;
  padding: 36px 24px 32px;
  border: 1px solid rgba(142,45,226,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.info-header { margin-bottom: 24px; }
.info-title { font-size: 24px !important; color: #fff !important; margin: 0 0 6px !important; font-weight: 700 !important; }
.info-sub { font-size: 14px !important; color: #a78bfa !important; margin: 0 !important; }

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.step-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(142,45,226,0.25);
  border-radius: 18px;
  padding: 18px 12px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}

.step-card:hover {
  background: rgba(142,45,226,0.2);
  transform: translateY(-4px);
  border-color: rgba(142,45,226,0.6);
}

.step-num {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon { font-size: 28px; margin-bottom: 8px; }

.step-card p {
  font-size: 13px !important;
  color: #c4b5fd !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

.info-note-box {
  background: rgba(255,100,100,0.1);
  border: 1px solid rgba(255,100,100,0.25);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13px;
  color: #fca5a5;
  margin-bottom: 24px;
}

/* ── UPLOAD SCREEN ── */
#uploadScreen {
  background: linear-gradient(160deg, #0f0c2e, #1e1256);
  border-radius: 28px;
  padding: 36px 24px 32px;
  border: 1px solid rgba(142,45,226,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.upload-header { margin-bottom: 24px; }
.upload-title { font-size: 24px !important; color: #fff !important; margin: 0 0 6px !important; font-weight: 700 !important; }
.upload-sub { font-size: 14px !important; color: #a78bfa !important; margin: 0 !important; }

.upload-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.upload-card {
  background: rgba(255,255,255,0.06);
  border: 2px dashed rgba(142,45,226,0.4);
  border-radius: 20px;
  padding: 24px 14px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.upload-card:hover {
  background: rgba(142,45,226,0.18);
  border-color: #8e2de2;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(142,45,226,0.3);
}

.upload-card-icon { font-size: 32px; }

.upload-card-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.upload-card-text strong {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.upload-card-text span {
  color: #a78bfa;
  font-size: 12px;
}

.camera-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 14px;
}

/* ── SHARED SCREEN ACTIONS ── */
.screen-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.btn-primary {
  padding: 14px 40px !important;
  background: linear-gradient(135deg, #8e2de2, #4a00e0) !important;
  color: white !important;
  border: none !important;
  border-radius: 60px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 6px 22px rgba(142,45,226,0.45) !important;
  transition: all 0.3s !important;
  margin: 0 !important;
}

.btn-primary:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 30px rgba(142,45,226,0.6) !important;
}

.btn-ghost {
  padding: 12px 28px !important;
  background: transparent !important;
  color: #a78bfa !important;
  border: 1px solid rgba(167,139,250,0.3) !important;
  border-radius: 60px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  margin: 0 !important;
}

.btn-ghost:hover {
  background: rgba(167,139,250,0.1) !important;
  border-color: #a78bfa !important;
  transform: none !important;
}

.btn-analyze {
  width: 100% !important;
  max-width: 320px !important;
  padding: 16px 28px !important;
  background: linear-gradient(135deg, #ec4899, #8e2de2) !important;
  color: white !important;
  border: none !important;
  border-radius: 60px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 8px 28px rgba(236,72,153,0.45) !important;
  transition: all 0.3s !important;
  margin: 0 !important;
}

.btn-analyze:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 14px 38px rgba(236,72,153,0.6) !important;
}

/* ── LOADING SCREEN ── */
#loadingScreen {
  background: linear-gradient(160deg, #0f0c2e, #1e1256);
  border-radius: 28px;
  padding: 48px 24px 44px;
  border: 1px solid rgba(142,45,226,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.loading-inner { text-align: center; }

.ai-scan-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-face-icon {
  font-size: 44px;
  position: relative;
  z-index: 3;
  animation: facePulse 2s ease-in-out infinite;
}

@keyframes facePulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.scan-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: ringExpand 2.4s ease-out infinite;
}

.ring1 {
  width: 70px; height: 70px;
  border-color: rgba(142,45,226,0.8);
  animation-delay: 0s;
}
.ring2 {
  width: 95px; height: 95px;
  border-color: rgba(236,72,153,0.5);
  animation-delay: 0.6s;
}
.ring3 {
  width: 120px; height: 120px;
  border-color: rgba(74,0,224,0.3);
  animation-delay: 1.2s;
}

@keyframes ringExpand {
  0% { opacity: 1; transform: scale(0.7); }
  100% { opacity: 0; transform: scale(1.3); }
}

.loading-title {
  font-size: 20px !important;
  color: #fff !important;
  margin: 0 0 24px !important;
  font-weight: 700 !important;
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  text-align: left;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.lstep {
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(167,139,250,0.5);
  transition: all 0.5s ease;
}

.lstep.active {
  background: rgba(142,45,226,0.2);
  border-color: rgba(142,45,226,0.5);
  color: #e0d9ff;
  box-shadow: 0 4px 14px rgba(142,45,226,0.2);
}

.lstep.done {
  background: rgba(52,211,153,0.1);
  border-color: rgba(52,211,153,0.35);
  color: #6ee7b7;
}

.loading-bar-wrap {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
  max-width: 280px;
  margin: 0 auto;
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #8e2de2, #ec4899);
  border-radius: 6px;
  transition: width 0.4s ease;
}

/* ── RESULT SCREEN ── */
.result-hero {
  background: linear-gradient(135deg, #1e1256, #2d1b69);
  border-radius: 24px;
  padding: 32px 24px;
  color: white;
  border: 1px solid rgba(142,45,226,0.4);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.result-hero-icon {
  font-size: 48px;
  margin-bottom: 14px;
  animation: bounce 1s ease infinite alternate;
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.result-hero h2 {
  font-size: 24px !important;
  margin: 0 0 10px !important;
  font-weight: 800 !important;
}

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

/* old loader fallback */
.loader {
  border: 8px solid rgba(255,255,255,0.1);
  border-top: 8px solid #8e2de2;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin: 32px auto;
}

.image-frame {
  position: relative;
  display: inline-block;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  max-width: 100%;
}

.scan-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #ff006e, #ff4d4d);
  border-radius: 22px;
  z-index: -1;
  opacity: 0.6;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.insights-grid li {
  background: #f0f8ff;
  padding: 15px;
  border-radius: 15px;
  color: #333;
  list-style: none;
}

.result-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.stat-card {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  padding: 20px;
  border-radius: 15px;
  color: white;
  min-width: 140px;
}

.direction-section {
  max-width: 900px;
  margin: 36px auto;
  padding: 40px;
  background: linear-gradient(135deg, #f3e8ff, #fce7f3);
  border-radius: 30px;
  text-align: center;
  border: 2px solid #e9d5ff;
  box-shadow: 0 8px 30px rgba(139,92,246,0.12);
}

.direction-section h2 {
  color: #6d28d9;
}

.direction-section p {
  color: #4c1d95;
}

.article, .extra-article {
  max-width: 950px;
  margin: 32px auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 30px;
  box-shadow: 0 4px 24px rgba(139,92,246,0.10);
  border: 1px solid #ede9fe;
}

.article h1, .extra-article h1 {
  font-size: 38px;
  text-align: center;
  background: linear-gradient(120deg, #6d28d9, #8e2de2, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.article h2, .extra-article h2 {
  font-size: 28px;
  color: #3b0764;
  margin: 30px 0 15px;
  text-align: center;
}

.article p, .article ul, .article ol, .extra-article p, .extra-article ul {
  font-size: 17px;
  color: #374151;
  margin: 16px 0;
}

.article li, .extra-article li {
  color: #374151;
}

.face-future-mid-card {
  max-width: 950px;
  margin: 36px auto;
  padding: 50px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(102,75,162,0.6);
  border: 3px solid rgba(255,255,255,0.2);
}

.mid-card-inner h2 {
  font-size: 40px;
  color: #fff;
}

.mid-future-btn {
  padding: 20px 50px;
  font-size: 22px;
  background: linear-gradient(45deg, #ff006e, #ff4d4d);
  border: none;
  border-radius: 60px;
  color: white;
  cursor: pointer;
  margin: 20px 0;
}

.future-hero {
  max-width: 950px;
  margin: 36px auto;
  padding: 60px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(102,75,162,0.6);
}

.future-content h2 {
  font-size: 42px;
  color: #fff;
}

.future-btn {
  padding: 20px 50px;
  font-size: 22px;
  background: linear-gradient(45deg, #ff006e, #ff4d4d);
  border: none;
  border-radius: 60px;
  color: white;
  cursor: pointer;
}

.faq-section {
  max-width: 950px;
  margin: 36px auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 30px;
  border: 1px solid #ede9fe;
  box-shadow: 0 4px 24px rgba(139,92,246,0.10);
}

.faq-section h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #3b0764;
}

.faq-accordion details {
  margin: 15px 0;
  background: #f5f3ff;
  border-radius: 15px;
  padding: 15px;
  cursor: pointer;
  border: 1px solid #ede9fe;
  transition: all 0.3s;
}

.faq-accordion details[open] {
  background: #ede9fe;
  border-color: #c4b5fd;
}

.faq-accordion summary {
  font-size: 18px;
  font-weight: 700;
  color: #5b21b6;
}

.faq-accordion p {
  margin-top: 14px;
  padding: 0 16px;
  color: #374151;
  font-size: 15px;
}

/* ADS SECTION */
.ad-section {
  max-width: 900px;
  margin: 32px auto;
  text-align: center;
  padding: 20px 10px;
  background: #f5f3ff;
  border-radius: 18px;
  min-height: 120px;
  display: block !important;
  position: relative;
  border: 1px solid #ede9fe;
  box-shadow: 0 4px 16px rgba(139,92,246,0.08);
  overflow: hidden;
}

.ad-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  color: #6d28d9;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  padding: 20px;
  opacity: 0.85;
  animation: fadeIn 0.8s ease;
  line-height: 1.7;
  pointer-events: none;
  z-index: 1;
}

.ad-placeholder small {
  font-size: 14px;
  color: #9333ea;
  margin-top: 8px;
  opacity: 0.75;
}

.ad-section ins {
  display: block !important;
  min-height: 90px !important;
  width: 100% !important;
  position: relative;
  z-index: 2;
}

.sidebar-ad {
  max-width: 400px;
  margin: 32px auto;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 0.9; transform: translateY(0); }
}

footer {
  text-align: center;
  padding: 50px;
  color: #6b7280;
  background: #f3f4f6;
  border-top: 1px solid #e5e7eb;
}

footer a {
  color: #7c3aed;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* 🔥 BOTTOM NAVIGATION */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 15, 50, 0.98);
  backdrop-filter: blur(25px);
  border-top: 1px solid rgba(142, 45, 226, 0.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  height: 70px;
  z-index: 9999;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.6);
}

.nav-btn {
  background: none;
  border: none;
  color: #999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 60px;
  flex: 1;
}

.nav-btn .nav-icon {
  font-size: 26px;
  transition: transform 0.25s ease;
}

.nav-btn .nav-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.nav-btn:hover {
  color: #c0b3ff;
  transform: translateY(-3px);
}

.nav-btn:hover .nav-icon { transform: scale(1.15); }

.nav-btn.active {
  color: #8e2de2;
  background: rgba(142, 45, 226, 0.25);
}

.nav-btn.active .nav-icon { transform: scale(1.2); }

/* SETTINGS OVERLAY */
#settingsOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  z-index: 9999;
  overflow-y: auto;
  padding: 20px 0 100px 0;
}

#settingsOverlay.show { display: block; }

.settings-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: rgba(30, 20, 80, 0.98);
  backdrop-filter: blur(30px);
  border-radius: 30px;
  padding: 50px 30px 60px;
  border: 1px solid rgba(142, 45, 226, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  min-height: calc(100vh - 40px);
  box-sizing: border-box;
}

.settings-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 35px;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.profile-card {
  background: rgba(142, 45, 226, 0.2);
  padding: 30px;
  border-radius: 28px;
  margin: 20px 0;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(142, 45, 226, 0.3);
}

.profile-card:hover {
  background: rgba(142, 45, 226, 0.35);
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(142, 45, 226, 0.3);
}

.profile-pic-big {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #8e2de2;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.user-name-big {
  font-size: 28px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: #fff;
}

.login-prompt-btn {
  width: 100%;
  padding: 22px;
  background: linear-gradient(45deg, #4a00e0, #8e2de2);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(142,45,226,0.5);
  transition: all 0.3s;
}

.login-prompt-btn:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(142,45,226,0.7);
}

.settings-section-title {
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: #8e2de2;
  margin: 50px 0 20px 25px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.9;
}

.settings-links { margin: 0 10px; }

.settings-link {
  display: block;
  padding: 24px 30px;
  background: rgba(255,255,255,0.06);
  margin: 14px 0;
  border-radius: 28px;
  color: #cfd9ff;
  text-decoration: none;
  font-size: 19px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(142,45,226,0.2);
  text-align: left;
}

.settings-link:hover {
  background: rgba(142,45,226,0.3);
  transform: translateX(18px);
  color: #fff;
  box-shadow: 0 12px 35px rgba(142,45,226,0.25);
}

.dark-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px;
  background: rgba(255,255,255,0.08);
  border-radius: 28px;
  margin: 50px 10px 40px;
  font-size: 20px;
  font-weight: 500;
  border: 1px solid rgba(142,45,226,0.2);
}

.toggle-switch {
  position: relative;
  width: 70px;
  height: 38px;
  background: #444;
  border-radius: 38px;
  cursor: pointer;
  transition: 0.4s;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: 0.4s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.toggle-switch.active { background: linear-gradient(45deg, #8e2de2, #4a00e0); }
.toggle-switch.active::after { left: 35px; }

.logout-btn {
  width: 100%;
  padding: 22px;
  background: linear-gradient(45deg, #ff3366, #ff006e);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  margin: 40px 10px 30px;
  box-shadow: 0 12px 35px rgba(255,51,102,0.5);
  transition: all 0.3s;
}

.logout-btn:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(255,51,102,0.7);
}

.app-info {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(142,45,226,0.3);
  text-align: center;
  color: #aaa;
  font-size: 16px;
  line-height: 1.8;
}

.app-info p:first-child {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 15px;
}

#settingsOverlay .close-modal {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 28px;
  color: white;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

#settingsOverlay .close-modal:hover {
  background: rgba(142,45,226,0.6);
  transform: scale(1.1);
}

/* LEADERBOARD */
#leaderboardOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  z-index: 9999;
  overflow-y: auto;
  padding: 20px 0 100px 0;
}

#leaderboardOverlay.show { display: block; }

.leaderboard-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: rgba(30, 20, 80, 0.98);
  backdrop-filter: blur(30px);
  border-radius: 30px;
  padding: 50px 30px 60px;
  border: 1px solid rgba(142, 45, 226, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  min-height: calc(100vh - 40px);
  box-sizing: border-box;
  position: relative;
}

.leaderboard-title {
  text-align: center;
  font-size: 36px;
  margin: 20px 0 10px;
  background: linear-gradient(120deg, #ffd700, #ff6b6b, #8e2de2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.leaderboard-date {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #ffd700;
  margin: 10px 0;
}

.leaderboard-time {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  color: #8e2de2;
  margin: 15px 0 30px;
}

.leaderboard-content { margin: 20px 0; }

.top-player {
  background: linear-gradient(135deg, #ffd700, #ff6b6b);
  color: #000;
  padding: 30px;
  border-radius: 30px;
  text-align: center;
  margin: 20px 10px;
  box-shadow: 0 15px 40px rgba(255,215,0,0.6);
  font-size: 24px;
  font-weight: bold;
}

.top-player .player-name { font-size: 32px; margin-bottom: 10px; }
.top-player .player-score { font-size: 42px; }

.podium-players {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.podium-card {
  background: linear-gradient(135deg, #c0c0c0, #808080);
  color: #fff;
  padding: 25px;
  border-radius: 25px;
  text-align: center;
  width: 45%;
  box-shadow: 0 10px 30px rgba(192,192,192,0.5);
}

.podium-card .player-name { font-size: 20px; margin-bottom: 8px; }
.podium-card .player-score { font-size: 32px; font-weight: bold; }

#secondPlace { background: linear-gradient(135deg, #c0c0c0, #a9a9a9); }
#thirdPlace { background: linear-gradient(135deg, #cd7f32, #a0522d); }

.leaderboard-list {
  list-style: none;
  padding: 0;
  margin: 20px 10px;
}

.leaderboard-list li {
  background: rgba(255,255,255,0.08);
  padding: 18px 25px;
  margin: 12px 0;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  border-left: 6px solid #8e2de2;
  cursor: pointer;
  transition: all 0.3s;
}

.leaderboard-list li:hover {
  background: rgba(142,45,226,0.3);
  transform: translateX(10px);
}

.leaderboard-list .rank { font-weight: bold; color: #ffd700; font-size: 20px; }
.leaderboard-list .player-name { flex: 1; margin-left: 15px; }
.leaderboard-list .player-score { font-weight: bold; color: #8e2de2; font-size: 22px; }

.reward-section {
  margin: 50px 10px 20px;
  padding: 30px;
  background: linear-gradient(135deg, #ff006e, #8e2de2);
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(255,0,110,0.5);
}

.reward-section h2 { font-size: 28px; margin-bottom: 15px; }
.reward-text { font-size: 24px; font-weight: bold; color: #ffd700; margin: 10px 0; }
.reward-desc { font-size: 18px; margin: 15px 0; }

.reward-btn {
  display: inline-block;
  padding: 18px 40px;
  background: #fff;
  color: #000;
  font-size: 20px;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  margin-top: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: all 0.3s;
}

.reward-btn:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* Fake Result Overlay */
#fakeResultOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(20px);
  z-index: 10000;
  overflow-y: auto;
  padding: 20px;
}

#fakeResultOverlay.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fake-result-container {
  width: 90%;
  max-width: 600px;
  background: rgba(30, 20, 80, 0.98);
  border-radius: 30px;
  padding: 40px 30px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.fake-result-inner { text-align: center; color: #e0e0ff; }
.fake-result-inner .highlight-msg { font-size: 28px; margin-bottom: 30px; }

.fake-result-inner .dynamic-photo-wrapper {
  position: relative;
  display: inline-block;
  margin: 20px 0;
}

.fake-result-inner .dynamic-photo-wrapper img {
  border-radius: 30px;
  filter: blur(20px) brightness(0.8);
}

.fake-result-inner .privacy-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  font-weight: bold;
  color: rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.6);
  padding: 20px 40px;
  border-radius: 20px;
}

/* =============================================
   DYNAMIC RESULT CARD
   ============================================= */
.dynamic-result-card {
  max-width: 620px;
  margin: 36px auto;
  padding: 20px;
  background: rgba(30, 15, 70, 0.5);
  border-radius: 40px;
  backdrop-filter: blur(20px);
  border: 3px solid rgba(142, 45, 226, 0.5);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  display: none;
  position: relative;
}

.dynamic-result-inner {
  background: rgba(25, 10, 60, 0.7);
  color: #e0e0ff;
  border-radius: 35px;
  padding: 35px 25px;
  text-align: center;
}

.result-logo {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  z-index: 10;
}

.highlight-msg {
  background: linear-gradient(90deg, #8e2de2, #ec4899, #4a00e0);
  color: white;
  padding: 18px;
  border-radius: 25px;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
  box-shadow: 0 0 30px rgba(142, 45, 226, 0.6);
  animation: glowHighlight 3s infinite alternate;
}

@keyframes glowHighlight {
  from { box-shadow: 0 0 20px rgba(142, 45, 226, 0.5); }
  to { box-shadow: 0 0 40px rgba(142, 45, 226, 0.8); }
}

.dynamic-photo-wrapper {
  position: relative;
  display: inline-block;
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.dynamic-photo-wrapper img {
  max-width: 100%;
  border-radius: 30px;
  filter: brightness(1.1) contrast(1.1) saturate(1.2) drop-shadow(0 0 20px rgba(142,45,226,0.6));
  image-rendering: -webkit-optimize-contrast;
}

.dynamic-glow {
  position: absolute;
  inset: -5px;
  background: linear-gradient(45deg, #ff006e, #8e2de2, #ff4d4d);
  border-radius: 35px;
  z-index: -1;
  opacity: 0.8;
  animation: pulse 4s infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.6; }
  to { opacity: 0.9; }
}

.dynamic-circle {
  width: 170px;
  height: 170px;
  background: conic-gradient(#4a90e2 var(--prog, 0%), rgba(255,255,255,0.15) 0%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 35px auto;
  font-size: 48px;
  font-weight: bold;
  position: relative;
  box-shadow: 0 0 30px rgba(74, 144, 226, 0.6);
}

.dynamic-circle::before {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  background: rgba(25, 10, 60, 0.9);
  border-radius: 50%;
}

.dynamic-circle span { z-index: 2; color: #fff; }

.face-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.stat-box {
  background: rgba(80, 40, 160, 0.4);
  padding: 20px;
  border-radius: 25px;
  border: 2px solid rgba(142, 45, 226, 0.6);
}

.stat-box h4 { margin: 0 0 10px; font-size: 18px; }
.stat-value { font-size: 32px; font-weight: bold; color: #8e2de2; }

.stat-bar {
  height: 12px;
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 8px;
}

.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a90e2, #8e2de2);
  border-radius: 6px;
  width: 0;
  transition: width 1.8s ease;
}

.best-day-box {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.5), rgba(236, 72, 153, 0.5));
  padding: 25px;
  border-radius: 30px;
  margin: 40px 0;
  font-size: 22px;
  border: 2px solid rgba(236, 72, 153, 0.7);
}

.dynamic-traits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 40px 0;
  list-style: none;
  padding: 0;
}

.dynamic-traits li {
  background: rgba(100, 50, 200, 0.4);
  padding: 20px;
  border-radius: 25px;
  border-left: 6px solid #8e2de2;
  font-size: 18px;
  transition: transform 0.3s;
}

.dynamic-traits li:hover { transform: translateY(-10px); }

.dynamic-actions {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.dynamic-actions button {
  padding: 16px 50px;
  font-size: 20px;
  border-radius: 60px;
  font-weight: bold;
}

.clear-result-btn { background: linear-gradient(45deg, #ff3366, #ff006e); }
.share-result-btn { background: linear-gradient(45deg, #4a00e0, #8e2de2); }

.dynamic-actions button:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.typing {
  border-right: 3px solid #8e2de2;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  from, to { border-color: transparent }
  50% { border-color: #8e2de2 }
}

.result-watermark-visible {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.5);
  padding: 10px 25px;
  border-radius: 30px;
  z-index: 10;
  font-weight: bold;
}

.invisible-watermark {
  position: absolute;
  font-size: 18px;
  color: rgba(255,255,255,0.05);
  font-weight: bold;
  pointer-events: none;
  z-index: 5;
  user-select: none;
}

.invisible-watermark:nth-child(1) { top: 20%; left: 10%; transform: rotate(-20deg); }
.invisible-watermark:nth-child(2) { top: 40%; right: 15%; transform: rotate(15deg); }
.invisible-watermark:nth-child(3) { bottom: 30%; left: 20%; transform: rotate(-10deg); }
.invisible-watermark:nth-child(4) { bottom: 50%; right: 10%; transform: rotate(20deg); }
.invisible-watermark:nth-child(5) { top: 60%; left: 50%; transform: translateX(-50%) rotate(-5deg); }

/* =============================================
   CREDIT DISPLAY (HEADER)
   ============================================= */
.credit-display {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: linear-gradient(135deg, #faf5ff, #f5f3ff);
  border: 1.5px solid #ddd6fe;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  user-select: none;
  flex-shrink: 0;
}
.credit-display:hover {
  background: linear-gradient(135deg, #ede9fe, #e0d7ff);
  border-color: #a78bfa;
  box-shadow: 0 4px 16px rgba(124,58,237,0.18);
}
.credit-icon { font-size: 13px; line-height: 1; }
.credit-count {
  font-weight: 800;
  font-size: 12px;
  color: #5b21b6;
  font-family: 'Syne', sans-serif;
  min-width: 28px;
  text-align: center;
}
.credit-label {
  font-size: 10px;
  color: #7c3aed;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* State variants */
.credit-display.credit-low   { border-color: #fbbf24; background: linear-gradient(135deg,#fffbeb,#fef3c7); }
.credit-display.credit-low .credit-count   { color: #d97706; }
.credit-display.credit-low .credit-label   { color: #d97706; }
.credit-display.credit-critical { border-color: #fca5a5; background: linear-gradient(135deg,#fff1f2,#ffe4e6); animation: creditPulse 1s ease-in-out infinite; }
.credit-display.credit-critical .credit-count { color: #dc2626; }
.credit-display.credit-critical .credit-label { color: #dc2626; }
.credit-display.credit-rich { border-color: #6ee7b7; background: linear-gradient(135deg,#f0fdf4,#d1fae5); }
.credit-display.credit-rich .credit-count { color: #059669; }

@keyframes creditPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(220,38,38,0); }
}

/* Floating deduction pop */
.credit-pop {
  position: absolute;
  top: -24px;
  right: 4px;
  font-size: 12px;
  font-weight: 800;
  color: #dc2626;
  pointer-events: none;
  animation: floatUp 1.2s ease forwards;
  z-index: 999;
}
@keyframes floatUp {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-28px); }
}

/* Shake animation */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-4px); }
  60%      { transform: translateX(4px); }
  80%      { transform: translateX(-2px); }
}
.credit-shake { animation: shake 0.4s ease; }

/* =============================================
   CREDIT PANEL MODAL
   ============================================= */
.credit-modal {
  background: #fff;
  border-radius: 28px;
  padding: 32px 28px;
  width: 92%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
  max-height: 90vh;
  overflow-y: auto;
  animation: modalPop 0.3s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.credit-modal .close-modal-credit {
  color: #9ca3af;
}
.credit-modal .close-modal-credit:hover {
  color: #374151;
}
  text-align: center;
  margin-bottom: 22px;
}
.credit-modal-icon {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 8px;
}
.credit-modal-header h3 {
  font-size: 22px;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0 0 4px;
}
.credit-modal-status {
  font-size: 13px;
  color: #7c3aed;
  font-weight: 600;
  margin: 0;
}

/* Balance card */
.credit-balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #4a00e0, #8e2de2, #ec4899);
  border-radius: 20px;
  padding: 22px 24px;
  margin-bottom: 20px;
  color: white;
}
.cbal-label { font-size: 12px; opacity: 0.8; font-weight: 500; margin-bottom: 4px; }
.cbal-amount { font-size: 34px; font-weight: 800; font-family: 'Syne', sans-serif; line-height: 1; }

/* Donut chart */
.credit-circle-wrap {
  position: relative;
  width: 72px;
  height: 72px;
}
.credit-donut {
  width: 72px;
  height: 72px;
  transform: rotate(-90deg);
}
.donut-pct {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 13px;
  font-weight: 800;
  color: white;
}

/* Info list */
.credit-info-list {
  background: #faf5ff;
  border-radius: 16px;
  padding: 4px 0;
  margin-bottom: 18px;
  border: 1px solid #ede9fe;
}
.ci-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid #ede9fe;
}
.ci-row:last-child { border-bottom: none; }
.ci-label { font-size: 13px; color: #374151; font-weight: 500; }
.ci-val   { font-size: 13px; color: #5b21b6; font-weight: 700; }

/* History */
.credit-history { margin-bottom: 18px; }
.ch-title { font-size: 13px; font-weight: 700; color: #5b21b6; margin-bottom: 10px; letter-spacing: 0.5px; text-transform: uppercase; }
.ch-list  { display: flex; flex-direction: column; gap: 8px; max-height: 200px; overflow-y: auto; }
.ch-empty { font-size: 13px; color: #9ca3af; text-align: center; padding: 16px 0; }
.ch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #faf5ff;
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid #ede9fe;
}
.ch-num        { font-size: 12px; color: #7c3aed; font-weight: 700; min-width: 24px; }
.ch-info       { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ch-date       { font-size: 11px; color: #9ca3af; }
.ch-cost       { font-size: 12px; font-weight: 700; color: #dc2626; }
.ch-remaining  { font-size: 12px; font-weight: 700; color: #059669; white-space: nowrap; }

/* Login promo in panel */
.credit-login-promo {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  border-radius: 18px;
  padding: 18px;
  color: white;
}
.clp-emoji { font-size: 28px; flex-shrink: 0; }
.clp-text  { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.clp-text strong { font-size: 13px; font-weight: 800; }
.clp-text span   { font-size: 11px; opacity: 0.8; }
.clp-btn {
  padding: 8px 14px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* =============================================
   OFFER TOAST
   ============================================= */
.offer-toast {
  display: none;
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  align-items: center;
  width: 90%;
  max-width: 420px;
  background: linear-gradient(135deg, #1e1b4b, #2d1b69);
  border-radius: 20px;
  padding: 16px 18px;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  animation: toastSlideUp 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
  color: white;
}
@keyframes toastSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(30px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.offer-toast-close {
  position: absolute;
  top: 8px; right: 12px;
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  background: none; border: none;
  line-height: 1;
}
.offer-toast-emoji { font-size: 28px; flex-shrink: 0; }
.offer-toast-content { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.offer-toast-content strong { font-size: 13px; font-weight: 800; }
.offer-toast-content span   { font-size: 11px; opacity: 0.8; }
.offer-toast-content em     { color: #fde68a; font-style: normal; font-weight: 700; }
.offer-toast-btn {
  padding: 8px 14px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* =============================================
   LOW CREDIT MODAL OPTIONS
   ============================================= */
.low-credit-options { display: flex; flex-direction: column; gap: 12px; }
.lco-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #faf5ff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #ede9fe;
}
.lco-icon { font-size: 24px; flex-shrink: 0; }
.lco-item > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.lco-item strong { font-size: 14px; color: #1e1b4b; font-weight: 700; }
.lco-item span   { font-size: 12px; color: #9ca3af; }
.lco-btn {
  padding: 8px 16px;
  border-radius: 30px;
  border: 1.5px solid #c4b5fd;
  background: white;
  color: #5b21b6;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.lco-btn--primary {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  border: none;
  color: white;
}

/* =============================================
   SHARED SECTION HELPERS
   ============================================= */
.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: #7c3aed;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.section-title {
  font-size: 32px !important;
  font-weight: 800 !important;
  color: #1e1b4b !important;
  margin: 0 0 10px !important;
  line-height: 1.25 !important;
  text-align: center;
}

.highlight-word {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-sub {
  text-align: center;
  color: #6b7280 !important;
  font-size: 15px !important;
  margin: 0 0 30px !important;
}

/* =============================================
   LIVE STATS
   ============================================= */
/* =============================================
   LIVE STATS
   ============================================= */

.stats-section {
  max-width: 780px;
  margin: 36px auto;
  padding: 0 20px;
}

.stats-inner {
  background: linear-gradient(145deg, #1a0533, #2d1458, #1a0533);
  border-radius: 24px;
  padding: 28px 30px 24px;
  box-shadow: 0 12px 48px rgba(124,58,237,0.35), inset 0 1px 0 rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Background glow orbs */
.stats-inner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.stats-inner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(236,72,153,0.15) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

/* ── ROW 1: Live badge ── */
.stats-live-row {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.stats-live-dot {
  width: 9px;
  height: 9px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
  animation: livePing 1.6s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.7);
}

@keyframes livePing {
  0%   { box-shadow: 0 0 0 0   rgba(74,222,128,0.7); }
  70%  { box-shadow: 0 0 0 9px rgba(74,222,128,0);   }
  100% { box-shadow: 0 0 0 0   rgba(74,222,128,0);   }
}

.stats-live-label {
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ── ROW 2: 3 stat numbers ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
  position: relative;
  padding: 0 8px;
}

/* Thin divider between items */
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8%;
  height: 84%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}

.stat-number {
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-family: 'Syne', 'Poppins', sans-serif;
  letter-spacing: -1.5px;
  position: relative;
  display: block;
  /* No decimal points — integers only */
}

.stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── INCREMENT ANIMATION ── */
/* When +N happens: number bounces up briefly */
@keyframes numBump {
  0%   { transform: translateY(0)   scale(1);    }
  30%  { transform: translateY(-6px) scale(1.12); }
  60%  { transform: translateY(2px)  scale(0.97); }
  100% { transform: translateY(0)   scale(1);    }
}

.stat-number.bumping {
  animation: numBump 0.45s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

/* +N floating particle */
.stat-plus-pop {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 900;
  color: #4ade80;
  pointer-events: none;
  z-index: 30;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(74,222,128,0.8);
  animation: plusFloat 1.2s cubic-bezier(0.22,1,0.36,1) forwards;
}

@keyframes plusFloat {
  0%   { opacity: 0;   transform: translateX(-50%) translateY(4px)  scale(0.6); }
  15%  { opacity: 1;   transform: translateX(-50%) translateY(-4px) scale(1.15); }
  70%  { opacity: 1;   transform: translateX(-50%) translateY(-22px) scale(1); }
  100% { opacity: 0;   transform: translateX(-50%) translateY(-34px) scale(0.8); }
}

/* ── ROW 3: CTA button ── */
.stats-cta-row {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.stats-cta-btn {
  display: inline-block;
  padding: 13px 30px;
  background: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899);
  background-size: 200% 200%;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 22px rgba(124,58,237,0.5);
  animation: btnGradShift 4s ease infinite;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}

@keyframes btnGradShift {
  0%,100% { background-position: 0% 50%;   }
  50%      { background-position: 100% 50%; }
}

.stats-cta-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  animation: btnSheen 3s ease-in-out infinite;
}

@keyframes btnSheen {
  0%   { left: -75%; }
  55%  { left: 130%;  }
  100% { left: 130%;  }
}

.stats-cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 32px rgba(124,58,237,0.65);
}

.stats-cta-btn:active {
  transform: translateY(0) scale(0.98);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(3,1fr); }
  .stat-number { font-size: 28px; letter-spacing: -0.5px; }
  .stats-inner { padding: 22px 16px 20px; gap: 18px; }
  .stats-cta-btn { font-size: 13px; padding: 12px 22px; }
}

/* =============================================
   HOW-TO STEPS
   ============================================= */
.howto-section {
  max-width: 950px;
  margin: 36px auto;
  padding: 0 20px;
  text-align: center;
}

.howto-inner { }

.howto-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 36px;
  flex-wrap: wrap;
}

.howto-step {
  flex: 1;
  min-width: 160px;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 14px;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #ede9fe;
  box-shadow: 0 4px 18px rgba(139,92,246,0.08);
  position: relative;
  transition: all 0.3s;
}

.howto-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(139,92,246,0.18);
  border-color: #c4b5fd;
}

.howto-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.howto-icon-wrap {
  width: 60px; height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 14px;
}

.howto-step h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1e1b4b;
  margin: 0 0 8px;
}

.howto-step p {
  font-size: 12px !important;
  color: #6b7280 !important;
  margin: 0 !important;
  line-height: 1.55 !important;
}

.howto-arrow {
  font-size: 22px;
  color: #c4b5fd;
  align-self: center;
  padding: 0 6px;
  font-weight: 700;
  flex-shrink: 0;
}

/* =============================================
   SAMPLE RESULTS GALLERY
   ============================================= */
.gallery-section {
  max-width: 950px;
  margin: 36px auto;
  padding: 0 20px;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.gallery-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px 20px 22px;
  border: 1px solid #ede9fe;
  box-shadow: 0 4px 20px rgba(139,92,246,0.08);
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.gallery-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(139,92,246,0.18);
}

.gallery-card--featured {
  border-color: #c4b5fd;
  background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
  transform: scale(1.03);
}

.gallery-card--featured:hover {
  transform: scale(1.03) translateY(-6px);
}

.gallery-featured-label {
  position: absolute;
  top: 14px; right: 14px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.gallery-avatar {
  font-size: 48px;
  margin-bottom: 12px;
  line-height: 1;
}

.gallery-badge {
  display: inline-block;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.gallery-card h4 {
  font-size: 16px;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0 0 14px;
}

.gallery-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
}

.gallery-traits span {
  background: #f5f3ff;
  color: #5b21b6;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #ede9fe;
}

.gallery-lucky {
  font-size: 13px;
  color: #6b7280;
  border-top: 1px solid #f3f4f6;
  padding-top: 12px;
}

.gallery-lucky strong { color: #7c3aed; }

.gallery-cta {
  margin-top: 30px;
}

.btn-gallery-try {
  padding: 14px 40px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: white;
  border: none;
  border-radius: 60px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(124,58,237,0.35);
  transition: all 0.3s;
}

.btn-gallery-try:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(124,58,237,0.5);
}

/* =============================================
   FEATURES COMPARISON TABLE
   ============================================= */
.features-section {
  max-width: 950px;
  margin: 36px auto;
  padding: 0 20px;
  text-align: center;
}

.compare-table-wrap {
  overflow-x: auto;
  margin-top: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(139,92,246,0.10);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  font-size: 15px;
}

.compare-table thead tr {
  background: linear-gradient(135deg, #4a00e0, #8e2de2);
}

.compare-table thead th {
  padding: 18px 20px;
  color: white;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
}

.compare-table thead th:first-child {
  text-align: left;
}

.compare-table .us-col {
  background: #faf5ff;
}

.compare-table thead .us-col {
  background: rgba(255,255,255,0.2);
}

.compare-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.2s;
}

.compare-table tbody tr:last-child {
  border-bottom: none;
}

.compare-table tbody tr:hover {
  background: #faf5ff;
}

.compare-table tbody td {
  padding: 15px 20px;
  text-align: center;
  color: #374151;
}

.compare-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: #1e1b4b;
}

.check { color: #059669; font-weight: 700; }
.cross { color: #dc2626; font-size: 13px; }
.half { color: #d97706; font-size: 13px; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-section {
  max-width: 950px;
  margin: 36px auto;
  padding: 0 20px;
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
  text-align: left;
}

.testimonial-card {
  background: #fff;
  border-radius: 22px;
  padding: 24px 22px;
  border: 1px solid #ede9fe;
  box-shadow: 0 4px 18px rgba(139,92,246,0.07);
  transition: all 0.3s;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px; right: 18px;
  font-size: 60px;
  color: #ede9fe;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(139,92,246,0.16);
}

.testimonial-card--purple {
  background: linear-gradient(135deg, #faf5ff, #f5f3ff);
  border-color: #c4b5fd;
}

.testimonial-card--pink {
  background: linear-gradient(135deg, #fff1f2, #fce7f3);
  border-color: #fbcfe8;
}

.testimonial-stars {
  font-size: 14px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.testimonial-card p {
  font-size: 14px !important;
  color: #374151 !important;
  line-height: 1.65 !important;
  margin: 0 0 18px !important;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #f3f4f6;
  padding-top: 14px;
}

.testimonial-avatar {
  font-size: 32px;
  line-height: 1;
}

.testimonial-author strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1e1b4b;
}

.testimonial-author span {
  font-size: 12px;
  color: #9ca3af;
}

/* =============================================
   PERSONALITY TYPES GRID
   ============================================= */
.ptypes-section {
  max-width: 950px;
  margin: 36px auto;
  padding: 0 20px;
  text-align: center;
}

.ptypes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.ptype-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 16px 20px;
  border: 1px solid #ede9fe;
  box-shadow: 0 4px 16px rgba(139,92,246,0.08);
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.ptype-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
}

.ptype-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(139,92,246,0.18);
  border-color: var(--c1);
}

.ptype-card--center {
  grid-column: auto;
}

.ptype-funfact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #faf5ff, #fce7f3);
  border-radius: 50px;
  border: 1.5px solid #e9d5ff;
  font-size: 14px;
  color: #5b21b6;
  transition: all 0.5s ease;
}
.ptype-funfact-icon { font-size: 18px; flex-shrink: 0; }
.ptype-funfact strong { color: #7c3aed; font-weight: 800; }

.ptype-emoji {
  font-size: 36px;
  margin-bottom: 10px;
  line-height: 1;
}

.ptype-name {
  font-size: 15px;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 6px;
}

.ptype-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

.ptypes-cta {
  margin-top: 30px;
}

.btn-ptypes {
  padding: 14px 40px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: white;
  border: none;
  border-radius: 60px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(124,58,237,0.35);
  transition: all 0.3s;
}

.btn-ptypes:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(124,58,237,0.5);
}

/* =============================================
   WORLD MAP
   ============================================= */
.worldmap-section {
  max-width: 950px;
  margin: 36px auto;
  padding: 0 20px;
  text-align: center;
}

.worldmap-wrap {
  background: #fff;
  border-radius: 24px;
  border: 1px solid #ede9fe;
  box-shadow: 0 4px 24px rgba(139,92,246,0.09);
  padding: 30px 28px;
  margin-top: 28px;
}

.worldmap-countries {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.wc-item {
  display: grid;
  grid-template-columns: 28px 120px 1fr 60px;
  align-items: center;
  gap: 12px;
}

.wc-flag { font-size: 22px; }

.wc-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e1b4b;
  text-align: left;
}

.wc-bar {
  height: 10px;
  background: #f3f4f6;
  border-radius: 20px;
  overflow: hidden;
}

.wc-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  border-radius: 20px;
  animation: barGrow 1.5s ease forwards;
  transform-origin: left;
}

@keyframes barGrow {
  from { width: 0 !important; }
}

.wc-count {
  font-size: 13px;
  font-weight: 700;
  color: #7c3aed;
  text-align: right;
}

.worldmap-live-feed {
  border-top: 1px solid #f3f4f6;
  padding-top: 18px;
  min-height: 40px;
}

.live-feed-item {
  font-size: 13px;
  color: #6b7280;
  padding: 5px 0;
  animation: feedIn 0.4s ease;
}

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

/* =============================================
   TIPS + RE-ANALYZE
   ============================================= */
.tips-section {
  max-width: 950px;
  margin: 36px auto;
  padding: 0 20px;
  text-align: center;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.tip-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 16px;
  border: 1px solid #ede9fe;
  box-shadow: 0 4px 14px rgba(139,92,246,0.07);
  transition: all 0.3s;
  text-align: center;
}

.tip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(139,92,246,0.15);
  border-color: #c4b5fd;
}

.tip-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.tip-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1e1b4b;
  margin: 0 0 8px;
}

.tip-card p {
  font-size: 12px !important;
  color: #6b7280 !important;
  margin: 0 !important;
  line-height: 1.55 !important;
}

.reanalyze-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #faf5ff, #fce7f3);
  border: 1px solid #e9d5ff;
  border-radius: 20px;
  padding: 20px 24px;
  margin-top: 24px;
  text-align: left;
}

.reanalyze-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.reanalyze-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.reanalyze-text strong {
  font-size: 15px;
  font-weight: 700;
  color: #1e1b4b;
}

.reanalyze-text span {
  font-size: 13px;
  color: #6b7280;
}

.btn-reanalyze {
  padding: 12px 28px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(124,58,237,0.3);
  flex-shrink: 0;
}

.btn-reanalyze:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(124,58,237,0.45);
}

/* =============================================
   SHARE / INVITE
   ============================================= */
.share-section {
  max-width: 950px;
  margin: 36px auto;
  padding: 0 20px;
}

.share-inner {
  background: linear-gradient(135deg, #1e1b4b, #3b0764, #1e1b4b);
  border-radius: 28px;
  padding: 50px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(30,27,75,0.3);
}

.share-inner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(124,58,237,0.3), transparent 70%);
  border-radius: 50%;
}

.share-inner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(236,72,153,0.25), transparent 70%);
  border-radius: 50%;
}

.share-emoji {
  font-size: 52px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  animation: flamePulse 1.5s ease-in-out infinite;
}

@keyframes flamePulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.share-title {
  font-size: 32px !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin: 0 0 10px !important;
  position: relative;
  z-index: 1;
}

.share-desc {
  font-size: 16px !important;
  color: rgba(255,255,255,0.7) !important;
  margin: 0 0 30px !important;
  position: relative;
  z-index: 1;
}

.share-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.share-btn--wa {
  background: #25D366;
  color: white;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

.share-btn--wa:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(37,211,102,0.55);
}

.share-btn--tw {
  background: #000;
  color: white;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.share-btn--tw:hover {
  transform: translateY(-3px);
  background: #111;
  box-shadow: 0 12px 30px rgba(0,0,0,0.55);
}

.share-btn--copy {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.share-btn--copy:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.25);
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}
/* staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:0s; }
.stagger-children.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:0.1s; }
.stagger-children.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:0.2s; }
.stagger-children.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:0.3s; }
.stagger-children.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay:0.4s; }
.stagger-children.visible > *:nth-child(6) { opacity:1; transform:none; transition-delay:0.5s; }

/* Live pulse dot on testimonials/worldmap heading */
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 6px;
  animation: livePulse 1.4s ease-in-out infinite;
  vertical-align: middle;
}

/* Testimonial slide-in animation */
@keyframes testimonialSlide {
  from { opacity:0; transform: translateX(30px) scale(0.97); }
  to   { opacity:1; transform: translateX(0) scale(1); }
}
.testimonial-entering {
  animation: testimonialSlide 0.5s ease forwards;
}

/* Country bar animated fill */
.wc-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg,#7c3aed,#ec4899);
  border-radius: 4px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* =============================================
   MEDIA QUERIES
   ============================================= */
@media (max-width: 768px) {
  .hdr-inner { padding: 8px 14px; gap: 8px; }
  .header-logo { width: 36px; height: 36px; }
  .header-title { font-size: 15px; }
  .hdr-center { gap: 6px; }
  .hdr-start-btn { padding: 7px 12px; font-size: 12px; }
  .hdr-start-btn span { display: none; }
  .login-btn { padding: 7px 14px; font-size: 13px; }
  .streak-label { display: none; }
  .credit-label { display: none; }
  .container { margin: 16px 14px; }
  #welcomeScreen, #infoScreen, #uploadScreen, #loadingScreen { padding: 28px 20px 22px; }
  .welcome-title { font-size: 26px !important; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .upload-options { grid-template-columns: 1fr 1fr; gap: 10px; }
  .upload-card { padding: 18px 10px; }
  .container, .article, .extra-article, .faq-section, .future-hero, .face-future-mid-card, .direction-section { margin: 16px 14px; padding: 20px; }
  h1 { font-size: 28px !important; }
  h2 { font-size: 22px !important; }
  #previewContainer img, #resultImage { margin: 15px auto !important; }
  .modal-compact { width: 95%; padding: 25px; }
  .profile-dropdown { width: 260px; right: 0; top: 55px; }
  .bottom-nav { padding: 6px 0; height: 65px; }
  .nav-btn .nav-icon { font-size: 24px; }
  .nav-btn .nav-label { font-size: 10.5px; }
  body { padding-bottom: 85px !important; }
  .settings-container, .leaderboard-container { padding: 40px 25px 80px; }
  .profile-pic-big { width: 100px; height: 100px; }
  .user-name-big { font-size: 26px; }
  .settings-link { padding: 22px 25px; font-size: 18px; }
  .dark-mode-toggle { padding: 22px 25px; font-size: 19px; }
  #settingsOverlay .close-modal, #leaderboardOverlay .close-modal { top: 15px; right: 15px; width: 45px; height: 45px; font-size: 26px; }
  .leaderboard-title { font-size: 30px; }
  .podium-players { flex-direction: column; align-items: center; }
  .podium-card { width: 80%; margin: 10px 0; }
  .top-player { padding: 25px; font-size: 20px; }
  .top-player .player-name { font-size: 26px; }
  .top-player .player-score { font-size: 36px; }
  .ad-section { margin: 30px 15px; padding: 15px 5px; min-height: 100px; border-radius: 15px; }
  .ad-placeholder { font-size: 18px; padding: 15px; }
  .ad-placeholder small { font-size: 14px; }
  .dynamic-result-card { margin: 40px 15px; padding: 15px; }
  .dynamic-result-inner { padding: 30px 20px; }
  .dynamic-circle { width: 140px; height: 140px; font-size: 40px; }
  .face-stats, .dynamic-traits { grid-template-columns: 1fr; }
  .result-logo { width: 40px; height: 40px; top: 10px; right: 15px; }
  .result-watermark-visible { font-size: 14px; padding: 8px 20px; }

  /* New sections mobile */
  /* stats mobile — handled inside stats block */
  .section-title { font-size: 24px !important; }
  .howto-steps { gap: 10px; }
  .howto-arrow { display: none; }
  .howto-step { min-width: 140px; max-width: 48%; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .compare-table { font-size: 13px; }
  .compare-table thead th, .compare-table tbody td { padding: 12px 10px; }
  .stats-section, .howto-section, .features-section, .testimonials-section, .ptypes-section, .worldmap-section, .tips-section, .share-section { padding: 0 14px; margin: 30px auto; }
  .ptypes-grid { grid-template-columns: repeat(2, 1fr); }
  .ptype-card--center { grid-column: auto; }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .reanalyze-box { flex-direction: column; text-align: center; gap: 14px; }
  .reanalyze-text { text-align: center; }
  .btn-reanalyze { width: 100%; }
  .wc-item { grid-template-columns: 28px 90px 1fr 52px; gap: 8px; }
  .share-btns { flex-direction: column; align-items: center; }
  .share-btn { width: 100%; max-width: 280px; justify-content: center; }
  .share-title { font-size: 24px !important; }
  /* Credit system mobile */
  .credit-display { padding: 6px 10px; gap: 4px; }
  .credit-count   { font-size: 12px; min-width: 24px; }
  .credit-label   { display: none; }
  .credit-modal   { padding: 24px 18px; }
  .cbal-amount    { font-size: 26px; }
  .offer-toast    { bottom: 80px; width: 94%; }
}

/* =============================================
   STREAK BADGE (header)
   ============================================= */

.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 1.5px solid #fbbf24;
  border-radius: 30px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.25s;
}
.streak-badge:hover { transform: scale(1.06); box-shadow: 0 4px 14px rgba(251,191,36,0.4); }
.streak-fire   { font-size: 14px; }
.streak-count  { font-size: 13px; font-weight: 800; color: #d97706; font-family: 'Syne', sans-serif; }
.streak-label  { font-size: 10px; color: #b45309; font-weight: 600; }
.streak-badge.on-fire { animation: streakGlow 1.2s ease-in-out infinite; }
@keyframes streakGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(251,191,36,0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(251,191,36,0); }
}

/* =============================================
   SPIN WHEEL MODAL
   ============================================= */
.spin-modal-box {
  background: #fff;
  border-radius: 28px;
  padding: 28px 24px 24px;
  width: 92%;
  max-width: 360px;
  position: relative;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
  animation: modalPop 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.spin-header h3 { font-size: 20px; font-weight: 800; color: #1e1b4b; margin: 0 0 4px; }
.spin-header p  { font-size: 13px; color: #9ca3af; margin: 0 0 16px; }
.spin-wheel-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}
.spin-pointer {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  color: #7c3aed;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(124,58,237,0.5));
}
#spinCanvas { border-radius: 50%; box-shadow: 0 8px 30px rgba(124,58,237,0.25); display: block; }
.spin-btn {
  padding: 12px 36px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(124,58,237,0.4);
  transition: all 0.25s;
  font-family: 'Poppins', sans-serif;
}
.spin-btn:hover   { transform: scale(1.05); }
.spin-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.spin-result {
  margin-top: 14px;
  min-height: 44px;
  font-size: 18px;
  font-weight: 700;
  color: #1e1b4b;
}
.btn-spin-trigger {
  padding: 10px 22px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #fbbf24;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 4px;
}
.btn-spin-trigger:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(251,191,36,0.4); }

/* =============================================
   STREAK PANEL MODAL
   ============================================= */
.streak-modal-box {
  background: #fff;
  border-radius: 28px;
  padding: 28px 24px;
  width: 92%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  max-height: 90vh;
  overflow-y: auto;
  animation: modalPop 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.streak-modal-header { text-align: center; margin-bottom: 20px; }
.streak-modal-fire   { font-size: 48px; line-height: 1; margin-bottom: 8px; animation: streakGlow 1.2s infinite; }
.streak-modal-header h3 { font-size: 22px; font-weight: 800; color: #1e1b4b; margin: 0 0 4px; }
.streak-modal-header p  { font-size: 13px; color: #6b7280; margin: 0; }

/* Calendar */
.streak-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 18px;
  background: #faf5ff;
  border-radius: 14px;
  padding: 12px;
}
.sc-day {
  aspect-ratio: 1;
  border-radius: 8px;
  background: #ede9fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 600;
}
.sc-day.done  { background: linear-gradient(135deg, #7c3aed, #ec4899); color: white; font-size: 14px; }
.sc-day.today { border: 2px solid #7c3aed; color: #7c3aed; }

/* Streak stats */
.streak-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.ss-item {
  background: #faf5ff;
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  border: 1px solid #ede9fe;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ss-icon   { font-size: 20px; }
.ss-item strong { font-size: 20px; font-weight: 800; color: #5b21b6; font-family: 'Syne', sans-serif; display: block; }
.ss-item span   { font-size: 11px; color: #9ca3af; }

/* Rewards */
.streak-rewards { background: #faf5ff; border-radius: 14px; padding: 14px; border: 1px solid #ede9fe; }
.sr-title { font-size: 13px; font-weight: 700; color: #5b21b6; margin-bottom: 10px; letter-spacing: 0.4px; }
.sr-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #ede9fe;
  font-size: 13px;
}
.sr-item:last-child { border-bottom: none; }
.sr-item > span:first-child { font-weight: 700; color: #374151; }
.sr-item > span:nth-child(2) { color: #059669; font-weight: 600; }
.sr-badge { font-size: 16px; }
.sr-item.claimed { opacity: 0.4; text-decoration: line-through; }
.sr-item.unlocked { background: #ecfdf5; border-radius: 8px; padding: 8px; }

/* =============================================
   LASER SCAN in LOADING SCREEN
   ============================================= */
.laser-line {
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff2d55, #ff6b9d, #ff2d55, transparent);
  box-shadow: 0 0 12px 4px rgba(255,45,85,0.7);
  animation: laserScan 1.2s ease-in-out infinite;
  top: 0;
  border-radius: 2px;
  z-index: 10;
}
@keyframes laserScan {
  0%   { top: 0%;   opacity: 1; }
  50%  { top: 100%; opacity: 1; }
  51%  { opacity: 0; }
  52%  { top: 0%;   opacity: 0; }
  53%  { opacity: 1; }
  100% { top: 0%;   opacity: 1; }
}

/* =============================================
   FACE SCAN OVERLAY (fullscreen)
   ============================================= */
.face-scan-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 50000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.face-scan-box {
  width: 220px;
  height: 280px;
  border-radius: 50% 50% 40% 40%;
  position: relative;
  border: 2px solid rgba(255,45,85,0.3);
  overflow: hidden;
}
.scan-laser {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff2d55, #ff9f0a, #ff2d55, transparent);
  box-shadow: 0 0 16px 6px rgba(255,45,85,0.6);
  animation: laserScan 0.9s ease-in-out infinite;
}
.scan-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: #ff2d55;
  border-style: solid;
}
.scan-corner.tl { top: 8px; left: 8px; border-width: 3px 0 0 3px; }
.scan-corner.tr { top: 8px; right: 8px; border-width: 3px 3px 0 0; }
.scan-corner.bl { bottom: 8px; left: 8px; border-width: 0 0 3px 3px; }
.scan-corner.br { bottom: 8px; right: 8px; border-width: 0 3px 3px 0; }
.scan-text {
  color: #ff2d55;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: scanTextBlink 0.8s ease-in-out infinite;
}
@keyframes scanTextBlink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* =============================================
   🎂 BIRTHDAY BANNER
   ============================================= */
.birthday-banner {
  width: 100%;
  background: linear-gradient(135deg, #fef3c7, #fce7f3, #ede9fe);
  border-bottom: 2px solid #fbbf24;
  animation: birthdayPulse 2s ease-in-out infinite;
  position: relative;
  z-index: 900;
}
@keyframes birthdayPulse {
  0%,100% { background: linear-gradient(135deg,#fef3c7,#fce7f3,#ede9fe); }
  50%      { background: linear-gradient(135deg,#ede9fe,#fce7f3,#fef3c7); }
}
.birthday-confetti-strip {
  font-size: 18px;
  text-align: center;
  padding: 4px 0;
  background: rgba(255,255,255,0.4);
  white-space: nowrap;
  overflow: hidden;
  animation: stripScroll 8s linear infinite;
}
@keyframes stripScroll {
  0%   { letter-spacing: 0px; }
  50%  { letter-spacing: 6px; }
  100% { letter-spacing: 0px; }
}
.birthday-banner-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
}
.birthday-emoji { font-size: 36px; animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.birthday-banner-inner strong { font-size: 16px; color: #1e1b4b; font-weight: 800; display: block; }
.birthday-banner-inner p    { font-size: 13px; color: #6b7280; margin: 0; }
.birthday-banner-inner button {
  margin-left: auto; background: none; border: none;
  font-size: 20px; cursor: pointer; color: #9ca3af; padding: 4px 8px;
}

/* =============================================
   📊 COMPARE MODAL
   ============================================= */
.compare-modal-box {
  background: #fff;
  border-radius: 28px;
  padding: 28px 24px;
  width: 94%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  max-height: 92vh;
  overflow-y: auto;
  animation: modalPop 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.compare-header { text-align: center; margin-bottom: 20px; }
.compare-header h3 { font-size: 20px; font-weight: 800; color: #1e1b4b; margin: 0 0 4px; }
.compare-header p  { font-size: 13px; color: #9ca3af; margin: 0; }

.compare-slots {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.compare-slot {
  flex: 1;
  aspect-ratio: 1;
  border: 2.5px dashed #c4b5fd;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  overflow: hidden;
  background: #faf5ff;
  position: relative;
}
.compare-slot:hover { border-color: #7c3aed; background: #ede9fe; }
.compare-slot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #7c3aed;
  font-size: 13px;
  font-weight: 600;
}
.compare-slot-icon { font-size: 36px; }
.compare-slot img  { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.compare-vs {
  font-size: 18px;
  font-weight: 900;
  color: #7c3aed;
  background: #ede9fe;
  border-radius: 50%;
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.compare-go-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 16px;
}
.compare-go-btn:hover:not(:disabled) { transform: scale(1.03); box-shadow: 0 8px 24px rgba(124,58,237,0.35); }
.compare-go-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.compare-result { animation: fadeInUp 0.5s ease; }
@keyframes fadeInUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }

.compare-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.cresult-card {
  background: #faf5ff;
  border-radius: 16px;
  padding: 14px 12px;
  text-align: center;
  border: 1.5px solid #ede9fe;
}
.cresult-avatar { font-size: 40px; margin-bottom: 6px; }
.cresult-type   { font-size: 13px; font-weight: 800; color: #1e1b4b; }
.cresult-emoji  { font-size: 22px; }

.compatibility-box {
  text-align: center;
  padding: 18px 16px;
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
  border-radius: 20px;
  border: 2px solid #c4b5fd;
}
.compat-score    { font-size: 52px; font-weight: 900; color: #7c3aed; font-family: 'Syne', sans-serif; line-height: 1; }
.compat-label    { font-size: 14px; color: #6b7280; margin: 4px 0 8px; }
.compat-verdict  { font-size: 15px; font-weight: 700; color: #1e1b4b; margin-bottom: 6px; }
.compat-desc     { font-size: 13px; color: #6b7280; line-height: 1.5; }
.compat-bars     { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.compat-bar-row  { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.compat-bar-row span:first-child { width: 80px; text-align: right; color: #6b7280; }
.compat-bar-track { flex:1; height: 8px; background: #e9d5ff; border-radius: 4px; overflow: hidden; }
.compat-bar-fill  { height: 100%; background: linear-gradient(90deg,#7c3aed,#ec4899); border-radius: 4px; transition: width 1s ease; width: 0%; }
.compat-bar-row span:last-child  { width: 36px; font-weight: 700; color: #7c3aed; }

/* 📅 DOB input */
.birthday-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg,#fef3c7,#fce7f3);
  border-radius: 16px;
  margin-bottom: 14px;
  font-size: 13px;
  flex-wrap: wrap;
}
.birthday-input-row label { color: #92400e; font-weight: 600; flex: 1; min-width: 140px; }
.dob-input {
  padding: 8px 12px;
  border: 2px solid #fbbf24;
  border-radius: 10px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  color: #1e1b4b;
  background: #fff;
  outline: none;
}
.dob-input:focus { border-color: #7c3aed; }

/* Compare trigger button */
.btn-compare-trigger {
  padding: 10px 22px;
  background: linear-gradient(135deg,#ede9fe,#fce7f3);
  border: 2px solid #c4b5fd;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  color: #5b21b6;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Poppins', sans-serif;
}
.btn-compare-trigger:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(124,58,237,0.25); }

/* Personality match box in result */
.personality-match-box {
  background: linear-gradient(135deg,#ede9fe,#fce7f3);
  border-radius: 20px;
  padding: 18px;
  margin: 16px 0;
  border: 2px solid #c4b5fd;
  text-align: center;
}
.pmatch-title  { font-size: 15px; font-weight: 800; color: #1e1b4b; margin-bottom: 10px; }
.pmatch-types  { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; flex-wrap: wrap; }
.pmatch-item   { text-align: center; }
.pmatch-emoji  { font-size: 28px; display: block; }
.pmatch-name   { font-size: 12px; font-weight: 700; color: #5b21b6; }
.pmatch-pct    { font-size: 30px; font-weight: 900; color: #7c3aed; font-family: 'Syne', sans-serif; }
.pmatch-label  { font-size: 13px; color: #6b7280; }
.pmatch-verdict { font-size: 14px; font-weight: 700; color: #1e1b4b; margin-top: 8px; }

/* =============================================
   🔔 NOTIFICATION BANNER
   ============================================= */
.notif-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 94%;
  max-width: 480px;
  background: #1e1b4b;
  color: white;
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  z-index: 98000;
  animation: slideUpNotif 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes slideUpNotif {
  from { transform: translateX(-50%) translateY(100px); opacity:0; }
  to   { transform: translateX(-50%) translateY(0);    opacity:1; }
}
.notif-icon  { font-size: 28px; flex-shrink: 0; }
.notif-text  { flex: 1; }
.notif-text strong { font-size: 14px; font-weight: 700; display: block; margin-bottom: 2px; }
.notif-text span   { font-size: 12px; opacity: 0.75; }
.notif-btns  { display: flex; gap: 8px; flex-shrink: 0; }
.notif-yes {
  padding: 8px 16px;
  background: linear-gradient(135deg,#7c3aed,#ec4899);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}
.notif-no {
  padding: 8px 12px;
  background: rgba(255,255,255,0.15);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

/* =============================================
   FUN FEATURES SECTION (Compare + Spin + Share)
   ============================================= */
.fun-features-section {
  max-width: 960px;
  margin: 32px auto;
  padding: 0 20px;
}
.fun-features-inner { text-align: center; }

.fun-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.fun-card {
  border-radius: 24px;
  padding: 28px 20px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1.5px solid transparent;
}
.fun-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(124,58,237,0.18);
}
.fun-card-glow {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  top: -30px; right: -30px;
  opacity: 0.18;
  filter: blur(30px);
}
.fun-card--compare {
  background: linear-gradient(155deg, #f5f3ff, #ede9fe);
  border-color: #c4b5fd;
}
.fun-card--compare .fun-card-glow { background: #7c3aed; }
.fun-card--spin {
  background: linear-gradient(155deg, #fff7ed, #fef3c7);
  border-color: #fbbf24;
}
.fun-card--spin .fun-card-glow { background: #f59e0b; }
.fun-card--share {
  background: linear-gradient(155deg, #fdf2f8, #fce7f3);
  border-color: #f9a8d4;
}
.fun-card--share .fun-card-glow { background: #ec4899; }

.fun-card-icon {
  font-size: 44px;
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}
.fun-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0 0 8px;
}
.fun-card p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.55;
  margin: 0 0 12px;
}
.fun-card-tags {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.fun-card-tags span {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.7);
  color: #5b21b6;
  border: 1px solid rgba(124,58,237,0.2);
}
.fun-card--spin .fun-card-tags span { color: #b45309; border-color: rgba(245,158,11,0.3); }
.fun-card--share .fun-card-tags span { color: #9d174d; border-color: rgba(236,72,153,0.3); }

.fun-card-btn {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.2px;
}
.fun-card--compare .fun-card-btn {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: white;
  box-shadow: 0 4px 14px rgba(124,58,237,0.3);
}
.fun-card--spin .fun-card-btn {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  box-shadow: 0 4px 14px rgba(245,158,11,0.3);
}
.fun-card-btn:hover { transform: scale(1.03); }

/* Share buttons inside fun card */
.fun-share-btns {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.fshare-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border: none;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Poppins', sans-serif;
}
.fshare-wa   { background: #25d366; color: white; }
.fshare-tw   { background: #1a1a2e; color: white; }
.fshare-copy { background: linear-gradient(135deg,#ede9fe,#ddd6fe); color: #5b21b6; }
.fshare-btn:hover { transform: translateY(-2px); opacity: 0.9; }

/* Mobile responsive */
@media (max-width: 640px) {
  .fun-cards-grid { grid-template-columns: 1fr; gap: 14px; }
  .hdr-brand-row { padding: 8px 14px 6px; }
  .hdr-action-row { padding: 6px 14px 8px; }
  .hdr-analyze-btn { padding: 7px 14px; font-size: 12px; }
  .header-tagline { display: none; }
  .hdr-pill-label { display: none; }
  .hdr-pill { padding: 5px 10px; }
}

/* DOB input improved */
.birthday-input-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg,#fef3c7,#fce7f3);
  border-radius: 16px; margin-bottom: 14px;
  font-size: 13px; flex-wrap: wrap;
}
.dob-text-wrap { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.dob-text-wrap label { color: #92400e; font-weight: 700; font-size: 13px; }
.dob-saved-label { font-size: 11px; color: #059669; font-weight: 600; }
.dob-input-wrap { display: flex; align-items: center; gap: 6px; }
.dob-input {
  padding: 7px 12px; border: 2px solid #fbbf24; border-radius: 10px;
  font-size: 13px; font-family: 'Poppins', sans-serif; color: #1e1b4b;
  background: #fff; outline: none;
}
.dob-input:focus { border-color: #7c3aed; }
.dob-clear-btn {
  background: rgba(255,255,255,0.6); border: 1.5px solid #fbbf24;
  border-radius: 8px; padding: 6px 9px; cursor: pointer; font-size: 13px;
  transition: all 0.2s;
}
.dob-clear-btn:hover { background: #fff; }

/* Reanalyze strip gap filler */
.reanalyze-strip {
  max-width: 600px; margin: 0 auto 28px; padding: 14px 24px;
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
  border-radius: 50px; border: 1.5px solid #c4b5fd;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: 14px; font-weight: 600; color: #5b21b6;
}
.reanalyze-strip button {
  padding: 8px 20px; background: linear-gradient(135deg,#7c3aed,#ec4899);
  color: white; border: none; border-radius: 30px; font-size: 13px;
  font-weight: 700; cursor: pointer; white-space: nowrap; transition: all 0.2s;
  font-family: 'Poppins', sans-serif;
}
.reanalyze-strip button:hover { transform: scale(1.04); }
@media (max-width: 640px) {
  .reanalyze-strip { border-radius: 20px; flex-direction: column; text-align: center; }
}

/* =============================================
   SMOOTH RESULT CARD — new styles
   ============================================= */
.dynamic-result-inner {
  animation: resultFadeIn 0.4s ease forwards;
}
@keyframes resultFadeIn {
  from { opacity:0; transform: translateY(12px); }
  to   { opacity:1; transform: none; }
}

.highlight-msg {
  font-size: 18px; font-weight: 800; color: #1e1b4b;
  text-align: center; padding: 10px 0; line-height: 1.4;
}
.accuracy-label {
  font-size: 16px; margin-top: -8px; text-align: center; color: #6b7280;
}

/* Traits — fade-in one by one via CSS */
.trait-item {
  display: flex; align-items: center; gap: 8px;
  opacity: 0; transform: translateX(-10px);
  animation: traitAppear 0.4s ease forwards;
  animation-play-state: paused;
}
.trait-item.trait-visible {
  animation-play-state: running;
}
@keyframes traitAppear {
  to { opacity:1; transform: none; }
}
.trait-check { color: #7c3aed; font-size: 12px; flex-shrink: 0; }

.stat-box-ready { animation: statPopIn 0.4s ease both; }
@keyframes statPopIn {
  from { opacity:0; transform: scale(0.94); }
  to   { opacity:1; transform: none; }
}

.bestday-label { font-size: 12px; color: #9ca3af; display: block; margin-bottom: 4px; }
.bestday-value { font-size: 22px; font-weight: 800; color: #5b21b6; font-family:'Syne',sans-serif; }
.bestday-emoji { font-size: 20px; }

/* =============================================
   SPIN CARD — countdown + prize
   ============================================= */
.spin-icon-anim { animation: spinWiggle 2s ease-in-out infinite; display: inline-block; }
@keyframes spinWiggle {
  0%,100% { transform: rotate(-5deg); }
  50%      { transform: rotate(5deg) scale(1.1); }
}
.spin-countdown { margin: 8px 0; min-height: 24px; }
.spin-cd-badge {
  font-size: 12px; font-weight: 700; padding: 4px 12px;
  border-radius: 20px; background: #fef3c7; color: #b45309; border: 1px solid #fbbf24;
  display: inline-block;
}
.spin-cd-ready { background: #dcfce7; color: #166534; border-color: #86efac; }

.spin-prize-card {
  background: #faf5ff; border: 2px solid; border-radius: 16px;
  padding: 16px; margin-top: 12px; text-align: center;
  animation: testimonialSlide 0.4s ease forwards;
}
.spin-prize-emoji  { font-size: 40px; margin-bottom: 6px; }
.spin-prize-label  { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.spin-reward-msg   { font-size: 14px; font-weight: 700; color: #059669; margin-bottom: 6px; }
.spin-next-hint    { font-size: 11px; color: #9ca3af; }

/* =============================================
   FUN CARD — badge + mini stats
   ============================================= */
.fun-card-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; background: #ede9fe; color: #5b21b6;
  border: 1px solid #c4b5fd;
}
.fun-card-badge--gold { background: #fef3c7; color: #b45309; border-color: #fbbf24; }

.fun-card-mini-stats {
  display: flex; justify-content: center; gap: 10px; margin-bottom: 12px;
}
.fms-item { text-align: center; }
.fms-num { font-size: 18px; font-weight: 900; color: #1e1b4b; font-family:'Syne',sans-serif; display: block; }
.fms-label { font-size: 10px; color: #9ca3af; font-weight: 600; }

/* =============================================
   STREAK REWARD TOAST
   ============================================= */
.streak-reward-toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg,#1e1b4b,#4c1d95);
  color: white; border-radius: 20px; padding: 14px 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  z-index: 99998; min-width: 280px; max-width: 360px;
  opacity: 0; transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.streak-reward-toast.srt-show { opacity:1; transform: translateX(-50%) translateY(0); }
.srt-icon { font-size: 32px; flex-shrink:0; }
.srt-text strong { display:block; font-size:15px; font-weight:800; margin-bottom:2px; }
.srt-text span   { font-size:12px; opacity:0.8; }

/* =============================================
   AD — natural style (not intrusive)
   ============================================= */
.ad-natural {
  max-width: 700px; margin: 0 auto 28px;
  border-radius: 16px; overflow: hidden;
  border: 1px solid #f3f0ff;
}


/* =============================================
   🤯 CRAZY SECTION — PAST LIFE + DARK SIDE + CELEB
   ============================================= */
.crazy-section-title {
  font-size: 22px; font-weight: 900; text-align: center;
  color: #1e1b4b; margin: 28px 0 16px;
  font-family: 'Syne', sans-serif; letter-spacing: -0.5px;
}

.crazy-cards-wrap {
  display: flex; flex-direction: column; gap: 18px;
  width: 100%; max-width: 540px; margin: 0 auto;
}

.crazy-card {
  border-radius: 24px; padding: 24px 22px;
  position: relative; overflow: hidden;
  opacity: 0; transform: translateY(20px) scale(0.97);
  animation: ccPop 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
  animation-play-state: paused;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
.crazy-card.cc-visible { animation-play-state: running; }
@keyframes ccPop {
  to { opacity:1; transform: none; }
}

/* ── PAST LIFE ── */
.crazy-card--pastlife {
  background: linear-gradient(145deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  border: 1.5px solid rgba(167,139,250,0.4);
}
.crazy-card--pastlife::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse at top right, rgba(167,139,250,0.25) 0%, transparent 60%);
}
.cc-ribbon {
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 12px;
}
.cc-ribbon--dark   { color: rgba(252,165,165,0.8); }
.cc-ribbon--celeb  { color: rgba(253,224,71,0.8); }
.cc-main-emoji { font-size: 56px; line-height: 1; margin-bottom: 8px; }
.cc-role {
  font-size: 22px; font-weight: 900; color: #fff;
  font-family: 'Syne', sans-serif; margin-bottom: 10px;
}
.cc-desc {
  font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
}
.cc-aura-row {
  display: flex; align-items: center; gap: 10px;
}
.cc-aura-label { font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 600; }
.cc-aura-chip {
  padding: 5px 16px; border-radius: 30px;
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.5px; transition: background 0.3s;
}

/* ── DARK SIDE ── */
.crazy-card--dark {
  background: linear-gradient(145deg, #0f172a 0%, #1c1917 60%, #27272a 100%);
  border: 1.5px solid rgba(239,68,68,0.35);
}
.crazy-card--dark::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse at bottom left, rgba(239,68,68,0.15) 0%, transparent 60%);
}
.cc-dark-trait {
  font-size: 22px; font-weight: 900; color: #fca5a5;
  font-family: 'Syne', sans-serif; margin: 8px 0 14px;
}
.cc-dark-meter-wrap {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.cc-dark-meter-label { font-size: 11px; color: rgba(255,255,255,0.4); font-weight: 600; white-space: nowrap; }
.cc-dark-meter {
  flex: 1; height: 8px; background: rgba(255,255,255,0.08);
  border-radius: 8px; overflow: hidden;
}
.cc-dark-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #f97316, #ef4444, #dc2626);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(239,68,68,0.6);
}
.cc-dark-pct { font-size: 13px; font-weight: 800; color: #f87171; white-space: nowrap; }

/* ── CELEB MATCH ── */
.crazy-card--celeb {
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  border: 1.5px solid rgba(253,224,71,0.25);
}
.crazy-card--celeb::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse at top left, rgba(253,224,71,0.10) 0%, transparent 60%);
}
.cc-celebs { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.cc-celeb-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 12px; border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}
.cc-celeb-top {
  background: rgba(253,224,71,0.10) !important;
  border-color: rgba(253,224,71,0.25) !important;
}
.cc-celeb-emoji { font-size: 28px; flex-shrink: 0; line-height: 1.2; }
.cc-celeb-name {
  font-size: 15px; font-weight: 800; color: #fff;
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 4px;
}
.cc-match-pct {
  font-size: 10px; font-weight: 800; padding: 2px 8px;
  background: linear-gradient(135deg,#fbbf24,#f59e0b);
  color: #1c1917; border-radius: 20px; letter-spacing: 0.5px;
}
.cc-celeb-reason { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.5; }

/* mobile */
@media (max-width: 480px) {
  .crazy-card { padding: 18px 16px; }
  .cc-main-emoji { font-size: 44px; }
  .cc-role, .cc-dark-trait { font-size: 18px; }
}

/* =============================================
   🤯 VIRAL AI FACTS — horizontal scroll cards
   ============================================= */
.viral-facts-section {
  padding: 40px 0 32px;
  overflow: hidden;
}
.viral-facts-inner { text-align: center; }

.vf-scroll-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 12px 20px 16px;
  scrollbar-width: none;
  cursor: grab;
}
.vf-scroll-track::-webkit-scrollbar { display: none; }
.vf-scroll-track:active { cursor: grabbing; }

.vf-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1.5px solid #ede9fe;
  border-radius: 20px;
  padding: 20px 16px;
  text-align: left;
  box-shadow: 0 4px 18px rgba(124,58,237,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.vf-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  border-radius: 20px 20px 0 0;
}
.vf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(124,58,237,0.14);
}
.vf-icon {
  font-size: 32px; margin-bottom: 10px; display: block;
}
.vf-text strong {
  font-size: 14px; font-weight: 800; color: #1e1b4b;
  display: block; margin-bottom: 6px;
}
.vf-text p {
  font-size: 12px; color: #6b7280; line-height: 1.55; margin: 0;
}

.vf-dots {
  display: flex; justify-content: center; gap: 6px; margin-top: 12px;
}
.vf-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #e5e7eb; transition: all 0.3s;
  cursor: pointer;
}
.vf-dot.active { background: #7c3aed; width: 20px; border-radius: 4px; }



/* ── SITE ADS ──────────────────────────────────────── */
.site-ad {
  width: 100%;
  max-width: 728px;
  margin: 28px auto;
  padding: 8px 12px 6px;
  background: #faf9ff;
  border-top: 1px solid #ede9fe;
  border-bottom: 1px solid #ede9fe;
  position: relative;
  display: block;
  text-align: center;
  box-sizing: border-box;
}
.site-ad-label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #d1d5db;
  margin-bottom: 4px;
  text-align: center;
}
.site-ad ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
}
@media (max-width: 640px) {
  .site-ad { padding: 6px 8px 4px; margin: 18px auto; }
}

/* ═══════════════════════════════════════════════
   🎮 GAMES HUB MODAL
═══════════════════════════════════════════════ */
.games-hub-modal {
  background: #fff;
  border-radius: 28px;
  padding: 28px 20px 24px;
  width: 92%; max-width: 480px;
  max-height: 88vh; overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}
.gh-header { text-align: center; margin-bottom: 20px; }
.gh-title { font-size: 22px; font-weight: 900; color: #1e1b4b; font-family:'Syne',sans-serif; }
.gh-sub { font-size: 13px; color: #9ca3af; margin-top: 4px; }
.gh-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gh-card {
  background: linear-gradient(145deg,#faf5ff,#f5f3ff);
  border: 1.5px solid #e9d5ff;
  border-radius: 18px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.25s;
  overflow: hidden;
}
.gh-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(124,58,237,0.15); }
.gh-icon { font-size: 36px; margin-bottom: 8px; }
.gh-name { font-size: 13px; font-weight: 800; color: #1e1b4b; margin-bottom: 4px; }
.gh-desc { font-size: 11px; color: #9ca3af; line-height: 1.4; }
.gh-badge {
  position: absolute; top: 8px; right: 8px;
  font-size: 9px; font-weight: 800;
  background: linear-gradient(135deg,#7c3aed,#ec4899);
  color: #fff; padding: 2px 7px; border-radius: 20px;
}

/* ═══════════════════════════════════════════════
   🃏 FACE CARD GAME
═══════════════════════════════════════════════ */
.card-game-modal {
  background: linear-gradient(160deg,#1e1b4b,#312e81);
  border-radius: 28px; padding: 28px 20px 24px;
  width: 92%; max-width: 420px;
  position: relative; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.cg-title { font-size: 22px; font-weight: 900; color: #fff; font-family:'Syne',sans-serif; }
.cg-sub { font-size: 13px; color: rgba(255,255,255,0.5); margin: 4px 0 20px; }
.cg-arena {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 16px;
}
.cg-slot { flex: 1; }
.cg-slot-label { font-size: 10px; font-weight: 800; color: rgba(255,255,255,0.4); letter-spacing: 1.5px; margin-bottom: 8px; }
.cg-card-back {
  background: linear-gradient(145deg,#4c1d95,#7c3aed);
  border: 2px solid rgba(167,139,250,0.4);
  border-radius: 16px; height: 140px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 13px; color: #fff; font-weight: 700;
  padding: 10px; gap: 6px; transition: all 0.4s;
  line-height: 1.3;
}
.cg-card-back.revealed {
  background: linear-gradient(145deg,#065f46,#059669);
  border-color: rgba(52,211,153,0.5);
  animation: cardFlip 0.5s ease;
}
.cg-card-back.revealed.loser {
  background: linear-gradient(145deg,#7f1d1d,#dc2626);
  border-color: rgba(252,165,165,0.4);
}
@keyframes cardFlip {
  0%  { transform: rotateY(90deg); opacity:0; }
  100%{ transform: rotateY(0deg);  opacity:1; }
}
.cg-vs {
  font-size: 24px; font-weight: 900;
  color: #fbbf24; text-shadow: 0 0 20px rgba(251,191,36,0.6);
  flex-shrink: 0;
}
.cg-result {
  min-height: 40px; font-size: 18px; font-weight: 800;
  color: #fbbf24; margin-bottom: 14px;
}
.cg-draw-btn {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg,#fbbf24,#f59e0b);
  border: none; border-radius: 16px;
  font-size: 15px; font-weight: 800; color: #1c1917;
  cursor: pointer; font-family:'Poppins',sans-serif;
  transition: all 0.25s;
}
.cg-draw-btn:hover { transform: scale(1.03); }

/* ═══════════════════════════════════════════════
   💘 FACE DATING
═══════════════════════════════════════════════ */
.dating-modal {
  background: linear-gradient(160deg,#fff,#fdf2f8);
  border-radius: 28px; padding: 24px 20px;
  width: 92%; max-width: 380px;
  position: relative; text-align: center;
  box-shadow: 0 24px 60px rgba(236,72,153,0.2);
}
.fd-title { font-size: 22px; font-weight: 900; color: #1e1b4b; font-family:'Syne',sans-serif; }
.fd-sub { font-size: 13px; color: #9ca3af; margin: 4px 0 18px; }
.fd-card-wrap { perspective: 800px; margin-bottom: 12px; }
.fd-card {
  background: linear-gradient(145deg,#fff,#fce7f3);
  border: 2px solid #fbcfe8; border-radius: 22px;
  padding: 24px 18px; position: relative;
  transition: transform 0.3s ease; cursor: grab;
  box-shadow: 0 8px 32px rgba(236,72,153,0.12);
}
.fd-card.swiping-right { transform: translateX(60px) rotate(8deg); opacity:0; transition: all 0.3s; }
.fd-card.swiping-left  { transform: translateX(-60px) rotate(-8deg); opacity:0; transition: all 0.3s; }
.fd-emoji { font-size: 52px; margin-bottom: 10px; }
.fd-ptype { font-size: 18px; font-weight: 900; color: #1e1b4b; margin-bottom: 8px; }
.fd-traits { font-size: 12px; color: #9ca3af; margin-bottom: 10px; line-height: 1.5; }
.fd-compat {
  display: inline-block; padding: 4px 14px;
  background: linear-gradient(135deg,#fce7f3,#ede9fe);
  border-radius: 20px; font-size: 12px; font-weight: 700; color: #7c3aed;
}
.fd-swipe-hint { font-size: 11px; color: #d1d5db; margin: 6px 0; }
.fd-btns { display: flex; gap: 12px; justify-content: center; margin-bottom: 14px; }
.fd-btn {
  flex: 1; padding: 12px; border: none; border-radius: 16px;
  font-size: 14px; font-weight: 800; cursor: pointer;
  font-family:'Poppins',sans-serif; transition: all 0.2s;
}
.fd-nope { background: #fee2e2; color: #dc2626; }
.fd-like { background: linear-gradient(135deg,#ec4899,#f43f5e); color: #fff; }
.fd-btn:hover { transform: scale(1.04); }
.fd-matches { font-size: 13px; color: #6b7280; min-height: 24px; }

/* ═══════════════════════════════════════════════
   🌍 COUNTRY BATTLE
═══════════════════════════════════════════════ */
.country-modal {
  background: linear-gradient(160deg,#0f172a,#1e293b);
  border-radius: 28px; padding: 24px 20px;
  width: 92%; max-width: 440px;
  position: relative; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.cb-title { font-size: 22px; font-weight: 900; color: #fff; font-family:'Syne',sans-serif; }
.cb-sub { font-size: 13px; color: rgba(255,255,255,0.4); margin: 4px 0 20px; }
.cb-arena {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 10px; margin-bottom: 18px;
}
.cb-country { flex: 1; }
.cb-flag { font-size: 40px; margin-bottom: 6px; }
.cb-cname { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.cb-bars { display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; }
.cb-bar-row { display: flex; align-items: center; gap: 5px; }
.cb-bar-label { font-size: 9px; color: rgba(255,255,255,0.4); width: 30px; text-align: right; }
.cb-bar-track { flex:1; height:6px; background:rgba(255,255,255,0.08); border-radius:4px; overflow:hidden; }
.cb-bar-fill  { height:100%; border-radius:4px; background:linear-gradient(90deg,#7c3aed,#ec4899); transition: width 1s ease; }
.cb-score { font-size: 28px; font-weight: 900; color: #fbbf24; font-family:'Syne',sans-serif; }
.cb-vs-col { display:flex; flex-direction:column; align-items:center; justify-content:center; padding-top:30px; gap:10px; }
.cb-vs-badge {
  font-size: 18px; font-weight: 900; color: #fbbf24;
  text-shadow: 0 0 20px rgba(251,191,36,0.6);
}
.cb-winner { font-size: 22px; min-height: 32px; }
.cb-btns { display: flex; gap: 10px; justify-content: center; }
.cb-btn {
  padding: 10px 20px; border: none; border-radius: 14px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  background: linear-gradient(135deg,#7c3aed,#6366f1);
  color: #fff; font-family:'Poppins',sans-serif; transition: all 0.2s;
}
.cb-btn--ghost { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); }
.cb-btn:hover { transform: scale(1.04); }

/* ═══════════════════════════════════════════════
   🎯 DAILY CHALLENGE
═══════════════════════════════════════════════ */
.challenge-modal {
  background: #fff; border-radius: 28px; padding: 24px 20px;
  width: 92%; max-width: 400px;
  position: relative; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.15);
}
.dc-header { margin-bottom: 18px; }
.dc-fire { font-size: 40px; }
.dc-title { font-size: 20px; font-weight: 900; color: #1e1b4b; font-family:'Syne',sans-serif; }
.dc-date { font-size: 12px; color: #9ca3af; margin-top: 3px; }
.dc-challenge-box {
  background: linear-gradient(145deg,#faf5ff,#fce7f3);
  border: 2px solid #e9d5ff; border-radius: 20px;
  padding: 20px 16px; margin-bottom: 16px;
}
.dc-challenge-emoji { font-size: 44px; margin-bottom: 10px; }
.dc-challenge-text { font-size: 15px; font-weight: 700; color: #1e1b4b; line-height: 1.5; }
.dc-steps { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; text-align: left; }
.dc-step { font-size: 13px; color: #6b7280; padding: 6px 12px; background: #f9fafb; border-radius: 10px; }
.dc-leaderboard { margin-bottom: 14px; }
.dc-lb-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  background: #f9fafb; border-radius: 10px; margin-bottom: 4px;
  font-size: 12px; color: #374151;
}
.dc-lb-rank { font-weight: 900; color: #7c3aed; width: 20px; }
.dc-go-btn {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg,#7c3aed,#ec4899);
  border: none; border-radius: 16px;
  font-size: 15px; font-weight: 800; color: #fff;
  cursor: pointer; font-family:'Poppins',sans-serif; transition: all 0.25s;
}
.dc-go-btn:hover { transform: scale(1.03); }

/* ═══════════════════════════════════════════════
   🔮 HOROSCOPE
═══════════════════════════════════════════════ */
.horoscope-modal {
  background: linear-gradient(160deg,#0f0c1d,#1e1b4b);
  border-radius: 28px; padding: 24px 18px;
  width: 92%; max-width: 460px; max-height: 88vh; overflow-y: auto;
  position: relative; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.hs-header { margin-bottom: 18px; }
.hs-title { font-size: 20px; font-weight: 900; color: #fff; font-family:'Syne',sans-serif; }
.hs-sub { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 4px; }
.hs-zodiac-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 16px;
}
.hs-sign-btn {
  background: rgba(255,255,255,0.05); border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 10px 4px; cursor: pointer;
  transition: all 0.2s; color: #fff;
}
.hs-sign-btn:hover, .hs-sign-btn.active {
  background: rgba(124,58,237,0.3); border-color: #a78bfa;
  transform: scale(1.06);
}
.hs-sign-emoji { font-size: 22px; display: block; margin-bottom: 3px; }
.hs-sign-name { font-size: 9px; font-weight: 700; letter-spacing: 0.5px; opacity: 0.7; }
.hs-result { animation: resultFadeIn 0.4s ease; }
.hs-result-sign { font-size: 56px; margin-bottom: 8px; }
.hs-result-title { font-size: 20px; font-weight: 900; color: #c4b5fd; font-family:'Syne',sans-serif; margin-bottom: 10px; }
.hs-result-body { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 16px; }
.hs-week-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; margin-bottom: 14px; }
.hs-day-cell {
  background: rgba(255,255,255,0.05); border-radius: 10px; padding: 7px 2px;
  font-size: 10px; color: rgba(255,255,255,0.7); text-align: center;
}
.hs-day-cell span { display: block; font-size: 16px; margin-bottom: 3px; }
.hs-reset-btn {
  padding: 10px 24px; background: rgba(124,58,237,0.3);
  border: 1.5px solid #a78bfa; border-radius: 30px;
  color: #c4b5fd; font-size: 13px; font-weight: 700; cursor: pointer;
  font-family:'Poppins',sans-serif;
}

/* ═══════════════════════════════════════════════
   🕵️ CELEBRITY TWIN
═══════════════════════════════════════════════ */
.celeb-modal {
  background: linear-gradient(160deg,#1a1a2e,#16213e);
  border-radius: 28px; padding: 24px 20px;
  width: 92%; max-width: 420px; max-height: 88vh; overflow-y: auto;
  position: relative; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.ct-title { font-size: 20px; font-weight: 900; color: #fff; font-family:'Syne',sans-serif; }
.ct-sub { font-size: 13px; color: rgba(255,255,255,0.4); margin: 4px 0 18px; }
.ct-scan-wrap { padding: 20px 0; }
.ct-scan-ring {
  width: 80px; height: 80px; border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #fbbf24; border-right-color: #f59e0b;
  margin: 0 auto 12px;
  animation: spinRing 1.5s linear infinite;
}
@keyframes spinRing { to { transform: rotate(360deg); } }
.ct-scan-icon { font-size: 32px; margin-top: -56px; margin-bottom: 46px; }
.ct-scan-text { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.ct-start-btn {
  padding: 12px 28px;
  background: linear-gradient(135deg,#fbbf24,#f59e0b);
  border: none; border-radius: 30px;
  font-size: 14px; font-weight: 800; color: #1c1917;
  cursor: pointer; font-family:'Poppins',sans-serif; transition: all 0.25s;
}
.ct-start-btn:hover { transform: scale(1.05); }
.ct-celeb-card {
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(253,224,71,0.2);
  border-radius: 18px; padding: 14px 16px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 14px; text-align: left;
  animation: ccPop 0.4s ease both;
}
.ct-celeb-emoji { font-size: 36px; flex-shrink: 0; }
.ct-celeb-name { font-size: 15px; font-weight: 800; color: #fbbf24; margin-bottom: 3px; }
.ct-celeb-pct  { font-size: 11px; color: rgba(255,255,255,0.5); }
.ct-celeb-bar  { height: 4px; background: rgba(255,255,255,0.08); border-radius: 4px; margin-top: 5px; overflow: hidden; }
.ct-celeb-bar-fill { height: 100%; background: linear-gradient(90deg,#fbbf24,#f59e0b); border-radius: 4px; transition: width 1s ease; }

/* ═══════════════════════════════════════════════
   👶 BABY PREDICTOR
═══════════════════════════════════════════════ */
.baby-modal {
  background: linear-gradient(160deg,#fff,#fff7ed);
  border-radius: 28px; padding: 24px 20px;
  width: 92%; max-width: 400px;
  position: relative; text-align: center;
  box-shadow: 0 24px 60px rgba(251,191,36,0.15);
}
.bm-title { font-size: 20px; font-weight: 900; color: #1e1b4b; font-family:'Syne',sans-serif; }
.bm-sub { font-size: 13px; color: #9ca3af; margin: 4px 0 18px; }
.bm-partner-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 16px; }
.bm-slot-label { font-size: 10px; font-weight: 700; color: #9ca3af; margin-bottom: 6px; letter-spacing: 0.5px; }
.bm-face { font-size: 48px; }
.bm-heart { font-size: 24px; }
.bm-partner-select { display: flex; flex-direction: column; gap: 5px; }
.bm-ptype-btn {
  padding: 5px 12px; border: 1.5px solid #e5e7eb; border-radius: 20px;
  font-size: 11px; font-weight: 700; background: #fff; color: #6b7280;
  cursor: pointer; transition: all 0.2s;
}
.bm-ptype-btn.active { background: linear-gradient(135deg,#fef3c7,#fde68a); border-color: #fbbf24; color: #b45309; }
.bm-predict-btn {
  width: 100%; padding: 12px;
  background: linear-gradient(135deg,#f59e0b,#f97316);
  border: none; border-radius: 16px;
  font-size: 14px; font-weight: 800; color: #fff;
  cursor: pointer; font-family:'Poppins',sans-serif; margin-bottom: 14px; transition: all 0.25s;
}
.bm-predict-btn:hover { transform: scale(1.03); }
.bm-result {
  background: linear-gradient(145deg,#fffbeb,#fef3c7);
  border: 2px solid #fbbf24; border-radius: 20px; padding: 18px;
  animation: ccPop 0.5s ease;
}
.bm-baby-emoji { font-size: 52px; margin-bottom: 8px; }
.bm-baby-title { font-size: 17px; font-weight: 900; color: #1e1b4b; margin-bottom: 8px; }
.bm-baby-traits { font-size: 12px; color: #6b7280; line-height: 1.6; }

/* ═══════════════════════════════════════════════
   🧠 BRAIN AGE
═══════════════════════════════════════════════ */
.brain-modal {
  background: linear-gradient(160deg,#ecfdf5,#f0fdf4);
  border-radius: 28px; padding: 24px 20px;
  width: 92%; max-width: 380px;
  position: relative; text-align: center;
  box-shadow: 0 24px 60px rgba(16,185,129,0.1);
}
.ba-title { font-size: 20px; font-weight: 900; color: #1e1b4b; font-family:'Syne',sans-serif; }
.ba-sub { font-size: 13px; color: #9ca3af; margin: 4px 0 18px; }
.ba-scan-wrap { padding: 10px 0 20px; }
.ba-brain-icon { font-size: 56px; margin-bottom: 14px; animation: brainPulse 2s ease-in-out infinite; }
@keyframes brainPulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}
.ba-scan-bar { height: 8px; background: #d1fae5; border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.ba-scan-fill { height: 100%; width: 0; background: linear-gradient(90deg,#10b981,#059669); border-radius: 8px; transition: width 0.1s linear; }
.ba-scan-label { font-size: 12px; color: #6b7280; margin-bottom: 16px; }
.ba-start-btn {
  padding: 12px 28px;
  background: linear-gradient(135deg,#10b981,#059669);
  border: none; border-radius: 30px;
  font-size: 14px; font-weight: 800; color: #fff;
  cursor: pointer; font-family:'Poppins',sans-serif; transition: all 0.25s;
}
.ba-start-btn:hover { transform: scale(1.05); }
.ba-result {
  background: linear-gradient(145deg,#d1fae5,#a7f3d0);
  border: 2px solid #6ee7b7; border-radius: 20px; padding: 20px;
  animation: ccPop 0.5s ease;
}
.ba-age-num { font-size: 64px; font-weight: 900; color: #065f46; font-family:'Syne',sans-serif; line-height: 1; }
.ba-age-label { font-size: 14px; font-weight: 700; color: #059669; margin-bottom: 10px; }
.ba-age-desc { font-size: 13px; color: #065f46; line-height: 1.6; }

/* ═══════════════════════════════════════════════
   👻 HORROR MODE
═══════════════════════════════════════════════ */
.horror-overlay {
  position: fixed; inset: 0; z-index: 999999;
  background: rgba(0,0,0,0.97);
  display: flex; align-items: center; justify-content: center;
  animation: horrorFade 1s ease;
}
@keyframes horrorFade { from { opacity:0; } to { opacity:1; } }
.horror-content { text-align: center; padding: 20px; position: relative; }
.horror-eye {
  position: absolute; font-size: 40px;
  animation: eyeBlink 3s ease-in-out infinite;
}
.horror-eye--left  { top: -60px; left: 20px; }
.horror-eye--right { top: -60px; right: 20px; }
@keyframes eyeBlink {
  0%,90%,100% { transform: scaleY(1); }
  95% { transform: scaleY(0.05); }
}
.horror-msg {
  font-size: 22px; font-weight: 900; color: #dc2626;
  text-shadow: 0 0 30px rgba(220,38,38,0.8);
  line-height: 1.5; margin-bottom: 28px;
  max-width: 300px; font-family:'Syne',sans-serif;
  animation: textFlicker 2s ease-in-out infinite;
}
@keyframes textFlicker {
  0%,100% { opacity:1; }
  92% { opacity:1; }
  93% { opacity:0.2; }
  94% { opacity:1; }
  97% { opacity:0.4; }
  98% { opacity:1; }
}
.horror-dismiss {
  padding: 12px 28px; background: #dc2626; border: none;
  border-radius: 30px; font-size: 14px; font-weight: 800;
  color: #fff; cursor: pointer; font-family:'Poppins',sans-serif;
  animation: horrorBtn 1s ease-in-out infinite;
}
@keyframes horrorBtn {
  0%,100% { box-shadow: 0 0 10px rgba(220,38,38,0.5); }
  50% { box-shadow: 0 0 30px rgba(220,38,38,0.9); }
}

/* ═══════════════════════════════════════════════
   BOTTOM NAV — 5 tabs
═══════════════════════════════════════════════ */
.bottom-nav { padding: 6px 4px 10px; }
.bottom-nav .nav-btn { padding: 6px 4px; }
.bottom-nav .nav-icon { font-size: 20px; }
.bottom-nav .nav-label { font-size: 9px; }
/* ═══════════════════════════════════════════════════════════
   SHARED PAGES — White theme matching index.html
   leaderboard.html | mission.html | settings.html
═══════════════════════════════════════════════════════════ */

/* ── SHARED NAV (white version for sub-pages) ── */
.pg-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid #f3f0ff;
  display: flex; justify-content: space-around; align-items: center;
  padding: 6px 0 10px; height: 68px; z-index: 9999;
  box-shadow: 0 -4px 20px rgba(124,58,237,0.10);
}
.pg-nav-btn {
  background: none; border: none; color: #9ca3af;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 5px 12px; border-radius: 14px;
  transition: all 0.25s; cursor: pointer; flex: 1;
  font-family: 'Poppins', sans-serif;
}
.pg-nav-btn span:first-child { font-size: 24px; transition: transform 0.25s; }
.pg-nav-btn span:last-child  { font-size: 10px; font-weight: 600; }
.pg-nav-btn.active { color: #7c3aed; background: linear-gradient(135deg,#ede9fe,#fce7f3); }
.pg-nav-btn.active span:first-child { transform: scale(1.18); }
.pg-nav-btn:hover { color: #7c3aed; }

/* ── SHARED HEADER (white) ── */
.pg-hdr {
  background: #ffffff;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(124,58,237,0.09);
}
.pg-hdr-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1px solid #f3f0ff;
}
.pg-hdr-left { display: flex; align-items: center; gap: 12px; }
.pg-hdr-logo {
  width: 44px; height: 44px; border-radius: 50%;
  box-shadow: 0 3px 14px rgba(124,58,237,0.2);
}
.pg-hdr-title {
  font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 900;
  background: linear-gradient(135deg,#7c3aed,#ec4899);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.pg-hdr-sub { font-size: 11px; color: #9ca3af; margin-top: 1px; }
.pg-hdr-tabs {
  display: flex; background: linear-gradient(135deg,#faf5ff,#fce7f3);
  border-top: 1px solid #f3f0ff;
}
.pg-tab {
  flex: 1; padding: 10px 4px; text-align: center;
  font-size: 12px; font-weight: 700; color: #9ca3af;
  cursor: pointer; border-bottom: 2.5px solid transparent; transition: all 0.2s;
}
.pg-tab.on { color: #7c3aed; border-bottom-color: #7c3aed; }

/* ── SHARED UTILS ── */
.pg-sec {
  font-size: 10px; font-weight: 800; letter-spacing: 1.8px;
  color: #9ca3af; text-transform: uppercase;
  padding: 16px 16px 8px;
  display: flex; align-items: center; justify-content: space-between;
}
.pg-sec-badge { font-size: 11px; color: #f97316; font-weight: 800; text-transform: none; letter-spacing: 0; }
.pg-toast {
  position: fixed; bottom: 82px; left: 50%;
  transform: translateX(-50%) translateY(14px);
  background: #ffffff; border: 1.5px solid #c4b5fd;
  color: #5b21b6; font-size: 13px; font-weight: 700;
  padding: 10px 22px; border-radius: 30px;
  opacity: 0; transition: all 0.3s; z-index: 99999;
  white-space: nowrap; pointer-events: none;
  box-shadow: 0 4px 20px rgba(124,58,237,0.2);
}
.pg-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.pg-ad {
  max-width: 728px; margin: 14px auto;
  padding: 6px 12px 4px;
  background: #faf9ff;
  border-top: 1px solid #ede9fe; border-bottom: 1px solid #ede9fe;
  text-align: center;
}
.pg-ad-lbl { display: block; font-size: 9px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #c4b5fd; margin-bottom: 3px; }
.pg-card {
  background: #ffffff; border: 1px solid #ede9fe; border-radius: 18px;
  box-shadow: 0 2px 12px rgba(124,58,237,0.06); transition: all 0.2s;
}

/* ════════════════════════════════════════════════
   🏆  LEADERBOARD PAGE
════════════════════════════════════════════════ */
.lb-ticker {
  background: linear-gradient(135deg,#faf5ff,#fce7f3);
  border-bottom: 1px solid #ede9fe;
  padding: 8px 16px; display: flex; align-items: center; gap: 8px; overflow: hidden;
}
.lb-ticker-dot { width: 7px; height: 7px; border-radius: 50%; background: #7c3aed; flex-shrink: 0; animation: lbDot 1.5s ease-in-out infinite; }
@keyframes lbDot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.3;transform:scale(.6)} }
.lb-ticker-txt { white-space: nowrap; font-size: 11px; color: #6b7280; font-weight: 500; animation: lbScroll 30s linear infinite; }
@keyframes lbScroll { 0%{transform:translateX(100vw)} 100%{transform:translateX(-100%)} }

.lb-my-card {
  margin: 14px 12px;
  background: linear-gradient(135deg,#ede9fe,#fce7f3);
  border: 1.5px solid #c4b5fd; border-radius: 18px;
  padding: 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 4px 16px rgba(124,58,237,0.12);
}
.lb-my-icon { font-size: 38px; }
.lb-my-info { flex: 1; }
.lb-my-title { font-size: 14px; font-weight: 800; color: #5b21b6; }
.lb-my-sub { font-size: 11px; color: #6b7280; margin-top: 3px; line-height: 1.5; }
.lb-my-score { text-align: right; flex-shrink: 0; }
.lb-my-num { font-size: 28px; font-weight: 900; color: #7c3aed; font-family: 'Syne', sans-serif; line-height: 1; }
.lb-my-lbl { font-size: 10px; color: #9ca3af; margin-top: 2px; }

.lb-rew-banner {
  margin: 0 12px 10px;
  background: linear-gradient(135deg,#fef3c7,#fffbeb);
  border: 1.5px solid #fbbf24; border-radius: 14px;
  padding: 11px 14px; display: flex; align-items: center; gap: 10px;
}
.lb-rew-ic { font-size: 28px; flex-shrink: 0; }
.lb-rew-body { flex: 1; }
.lb-rew-title { font-size: 12px; font-weight: 800; color: #d97706; }
.lb-rew-sub { font-size: 11px; color: #6b7280; margin-top: 2px; }
.lb-rew-badge { font-size: 12px; font-weight: 900; color: #d97706; background: rgba(251,191,36,.18); padding: 5px 12px; border-radius: 20px; border: 1px solid #fbbf24; flex-shrink: 0; }

.lb-cr-table { margin: 0 12px 12px; background: #ffffff; border: 1px solid #ede9fe; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(124,58,237,0.06); }
.lb-cr-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #f3f0ff; }
.lb-cr-row:last-child { border-bottom: none; }
.lb-cr-rank { font-size: 16px; width: 28px; flex-shrink: 0; }
.lb-cr-desc { flex: 1; font-size: 12px; color: #6b7280; }
.lb-cr-val { font-size: 13px; font-weight: 800; color: #7c3aed; }

/* Podium */
.lb-podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding: 20px 10px 10px; }
.lb-pod { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; max-width: 115px; }
.lb-pod-crown { font-size: 20px; margin-bottom: -2px; }
.lb-pod-av { border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 3px solid; }
.lb-p1 .lb-pod-av { width:68px; height:68px; font-size:32px; border-color:#fbbf24; background:linear-gradient(135deg,#fffbeb,#fef3c7); box-shadow:0 0 20px rgba(251,191,36,0.35),0 0 50px rgba(251,191,36,0.1); }
.lb-p2 .lb-pod-av { width:54px; height:54px; font-size:26px; border-color:#9ca3af; background:linear-gradient(135deg,#f9fafb,#f3f4f6); }
.lb-p3 .lb-pod-av { width:54px; height:54px; font-size:26px; border-color:#cd7f32; background:linear-gradient(135deg,#fff7ed,#fed7aa); }
.lb-pod-badge { font-size:10px; font-weight:900; padding:2px 11px; border-radius:20px; }
.lb-p1 .lb-pod-badge { background:#fef3c7; color:#d97706; border:1px solid #fbbf24; }
.lb-p2 .lb-pod-badge { background:#f3f4f6; color:#6b7280; border:1px solid #d1d5db; }
.lb-p3 .lb-pod-badge { background:#fff7ed; color:#c2410c; border:1px solid #fed7aa; }
.lb-pod-name { font-size:12px; font-weight:700; color:#1a1a2e; text-align:center; }
.lb-pod-pts { font-size:10px; color:#6b7280; }
.lb-pod-cr { font-size:10px; font-weight:700; padding:2px 8px; border-radius:10px; margin-top:2px; }
.lb-p1 .lb-pod-cr { background:#fef3c7; color:#d97706; }
.lb-p2 .lb-pod-cr { background:#f3f4f6; color:#6b7280; }
.lb-p3 .lb-pod-cr { background:#fff7ed; color:#c2410c; }
.lb-pod-block { border-radius:10px 10px 0 0; width:100%; }
.lb-p1 .lb-pod-block { height:84px; background:linear-gradient(180deg,#fef3c7,#fffbeb); border:1px solid #fbbf24; border-bottom:none; }
.lb-p2 .lb-pod-block { height:56px; background:linear-gradient(180deg,#f3f4f6,#f9fafb); border:1px solid #e5e7eb; border-bottom:none; }
.lb-p3 .lb-pod-block { height:42px; background:linear-gradient(180deg,#fed7aa,#fff7ed); border:1px solid #fdba74; border-bottom:none; }

/* Rows */
.lb-list { padding: 0 12px 10px; }
.lb-row {
  display: flex; align-items: center; gap: 10px;
  background: #ffffff; border: 1px solid #ede9fe; border-radius: 15px;
  padding: 11px 13px; margin-bottom: 8px; transition: all 0.2s;
  box-shadow: 0 1px 6px rgba(124,58,237,0.05); position: relative; overflow: hidden;
}
.lb-row:hover { border-color: #c4b5fd; box-shadow: 0 4px 16px rgba(124,58,237,0.12); transform: translateX(2px); }
.lb-row.lb-me { background: linear-gradient(135deg,#ede9fe,#fce7f3); border-color: #a78bfa; }
.lb-row.lb-me::after { content:'YOU'; position:absolute; right:10px; top:50%; transform:translateY(-50%); font-size:9px; font-weight:900; letter-spacing:1.5px; color:#7c3aed; background:#ede9fe; padding:2px 8px; border-radius:10px; border:1px solid #c4b5fd; }
.lb-row.lb-new { animation: lbFlash 0.6s ease; }
@keyframes lbFlash { 0%{background:#fef3c7} 100%{background:#ffffff} }
.lb-rnum { font-size:13px; font-weight:900; color:#d1d5db; width:26px; text-align:center; flex-shrink:0; }
.lb-av { font-size:30px; flex-shrink:0; }
.lb-inf { flex:1; min-width:0; }
.lb-nm { font-size:13px; font-weight:700; color:#1a1a2e; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lb-mt { font-size:11px; color:#9ca3af; margin-top:2px; }
.lb-ri { text-align:right; flex-shrink:0; }
.lb-pts { font-size:16px; font-weight:900; color:#7c3aed; font-family:'Syne',sans-serif; line-height:1; }
.lb-ptsl { font-size:10px; color:#9ca3af; }
.lb-trend { font-size:11px; margin-top:2px; }
.lb-crd { font-size:10px; color:#d97706; font-weight:700; margin-top:1px; }

/* Country tab */
.lb-cnt-row { display:flex; align-items:center; gap:10px; background:#ffffff; border:1px solid #ede9fe; border-radius:15px; padding:11px 14px; margin:0 12px 8px; box-shadow:0 1px 6px rgba(124,58,237,0.05); }
.lb-cnt-flag { font-size:28px; }
.lb-cnt-info { flex:1; }
.lb-cnt-name { font-size:13px; font-weight:700; color:#1a1a2e; }
.lb-cnt-bar { height:6px; background:#ede9fe; border-radius:4px; margin-top:5px; overflow:hidden; }
.lb-cnt-fill { height:100%; background:linear-gradient(90deg,#7c3aed,#ec4899); border-radius:4px; width:0%; transition:width 1.3s cubic-bezier(.4,0,.2,1); }
.lb-cnt-num { font-size:17px; font-weight:900; color:#7c3aed; font-family:'Syne',sans-serif; line-height:1; }
.lb-cnt-lbl { font-size:10px; color:#9ca3af; }

/* Streak tab */
.lb-str-row { display:flex; align-items:center; gap:10px; background:#ffffff; border:1px solid #ede9fe; border-radius:15px; padding:11px 13px; margin:0 12px 8px; box-shadow:0 1px 6px rgba(124,58,237,0.05); }
.lb-str-em { font-size:30px; flex-shrink:0; }
.lb-str-inf { flex:1; }
.lb-str-name { font-size:13px; font-weight:700; color:#1a1a2e; }
.lb-str-days { font-size:11px; color:#9ca3af; margin-top:2px; }
.lb-str-num { font-size:22px; font-weight:900; color:#f97316; font-family:'Syne',sans-serif; line-height:1; }
.lb-str-rnk { font-size:9px; color:#9ca3af; margin-top:2px; }

/* Live pulse */
.lb-live-badge { display:inline-flex; align-items:center; gap:5px; background:linear-gradient(135deg,#dcfce7,#bbf7d0); border:1px solid #86efac; color:#16a34a; font-size:10px; font-weight:700; padding:3px 10px; border-radius:20px; }
.lb-live-dot { width:6px; height:6px; border-radius:50%; background:#16a34a; animation:livePulse 1.2s ease-in-out infinite; }
@keyframes livePulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.5)} }

/* ════════════════════════════════════════════════
   🎯  MISSION PAGE
════════════════════════════════════════════════ */
.ms-xp-card {
  margin: 14px 12px;
  background: linear-gradient(135deg,#ede9fe,#fce7f3);
  border: 1.5px solid #c4b5fd; border-radius: 20px; padding: 18px;
  box-shadow: 0 4px 20px rgba(124,58,237,0.12);
}
.ms-xp-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.ms-xp-badge { background:linear-gradient(135deg,#7c3aed,#ec4899); color:#fff; font-size:11px; font-weight:900; padding:5px 15px; border-radius:20px; }
.ms-xp-nums { font-size:12px; color:#5b21b6; font-weight:600; }
.ms-xp-bar { height:12px; background:rgba(124,58,237,0.15); border-radius:10px; overflow:hidden; margin-bottom:8px; }
.ms-xp-fill { height:100%; background:linear-gradient(90deg,#7c3aed,#ec4899,#f59e0b); border-radius:10px; transition:width 1.2s ease; position:relative; overflow:hidden; }
.ms-xp-fill::after { content:''; position:absolute; top:0; left:0; right:0; height:100%; background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent); animation:xpShine 2.2s linear infinite; }
@keyframes xpShine { 0%{transform:translateX(-200%)} 100%{transform:translateX(200%)} }
.ms-xp-lbl { font-size:11px; color:#6b7280; }
.ms-stats-row { display:flex; gap:8px; margin-top:14px; }
.ms-stat-b { flex:1; background:rgba(255,255,255,0.8); border:1px solid #ede9fe; border-radius:14px; padding:11px 6px; text-align:center; }
.ms-stat-v { font-size:20px; font-weight:900; color:#7c3aed; font-family:'Syne',sans-serif; }
.ms-stat-l { font-size:9px; color:#9ca3af; margin-top:3px; letter-spacing:.8px; text-transform:uppercase; }

.ms-sec-timer { font-size:12px; color:#f97316; font-weight:800; text-transform:none; letter-spacing:0; }

/* Daily Challenge */
.ms-dc {
  margin: 0 12px 14px;
  background: linear-gradient(145deg,#ffffff,#faf5ff);
  border: 2px solid #c4b5fd; border-radius: 20px; padding: 18px;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 24px rgba(124,58,237,0.12);
}
.ms-dc::before { content:''; position:absolute; top:-30px; right:-30px; width:130px; height:130px; background:radial-gradient(circle,rgba(124,58,237,.08),transparent); border-radius:50%; }
.ms-dc-tag { font-size:10px; font-weight:800; letter-spacing:1.5px; color:#7c3aed; margin-bottom:10px; display:flex; align-items:center; gap:6px; position:relative; }
.ms-dc-pulse { width:7px; height:7px; border-radius:50%; background:#7c3aed; animation:dcPulse 1.5s ease-in-out infinite; }
@keyframes dcPulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.6);opacity:.4} }
.ms-dc-emoji { font-size:46px; margin-bottom:10px; display:block; position:relative; }
.ms-dc-title { font-size:18px; font-weight:900; color:#1a1a2e; margin-bottom:7px; font-family:'Syne',sans-serif; position:relative; }
.ms-dc-desc { font-size:12px; color:#6b7280; line-height:1.68; margin-bottom:14px; position:relative; }
.ms-dc-pills { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; position:relative; }
.ms-dc-pill { background:linear-gradient(135deg,#fef3c7,#fffbeb); border:1px solid #fbbf24; color:#d97706; font-size:11px; font-weight:700; padding:5px 14px; border-radius:20px; }
.ms-dc-btn { width:100%; padding:14px; background:linear-gradient(135deg,#7c3aed,#ec4899); border:none; border-radius:15px; font-size:15px; font-weight:800; color:#fff; cursor:pointer; font-family:'Poppins',sans-serif; transition:all .25s; }
.ms-dc-btn:hover { transform:scale(1.02); box-shadow:0 8px 28px rgba(124,58,237,.3); }
.ms-dc-btn:disabled { background:#e5e7eb; color:#9ca3af; cursor:not-allowed; transform:none; box-shadow:none; }
.ms-dc-done { font-size:11px; color:#9ca3af; text-align:center; margin-top:8px; }

/* Feature Mission Cards */
.ms-feat {
  background: #ffffff; border: 1px solid #ede9fe; border-radius: 16px;
  padding: 13px 14px; margin: 0 12px 9px;
  display: flex; align-items: center; gap: 13px; transition: all 0.2s;
  box-shadow: 0 1px 8px rgba(124,58,237,0.06); cursor: pointer; position: relative;
}
.ms-feat:hover { border-color: #c4b5fd; box-shadow: 0 4px 18px rgba(124,58,237,0.13); transform: translateX(3px); }
.ms-feat-ic { font-size: 36px; flex-shrink: 0; }
.ms-feat-body { flex: 1; }
.ms-feat-name { font-size: 13px; font-weight: 800; color: #1a1a2e; margin-bottom: 3px; }
.ms-feat-desc { font-size: 11px; color: #6b7280; margin-bottom: 6px; }
.ms-feat-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.ms-feat-tag { background: #ede9fe; color: #7c3aed; font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 20px; }
.ms-feat-right { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ms-feat-go { background: linear-gradient(135deg,#7c3aed,#ec4899); border: none; border-radius: 10px; color: #fff; font-size: 11px; font-weight: 800; padding: 7px 14px; cursor: pointer; font-family: 'Poppins', sans-serif; }
.ms-feat-cr { font-size: 10px; color: #d97706; font-weight: 700; }
.ms-feat-done-badge { position: absolute; top: 8px; right: 8px; background: #dcfce7; border: 1px solid #86efac; color: #16a34a; font-size: 9px; font-weight: 800; padding: 2px 8px; border-radius: 20px; }

/* Regular mission cards */
.ms-mc {
  background: #ffffff; border: 1px solid #ede9fe; border-radius: 16px;
  padding: 13px 14px; margin: 0 12px 9px;
  display: flex; align-items: center; gap: 12px;
  position: relative; overflow: hidden; transition: all 0.2s;
  box-shadow: 0 1px 6px rgba(124,58,237,0.05);
}
.ms-mc:hover { border-color: #c4b5fd; }
.ms-mc.ms-done .ms-bar-f { background: linear-gradient(90deg,#10b981,#059669); }
.ms-mc-ic { font-size: 32px; flex-shrink: 0; }
.ms-mc-body { flex: 1; min-width: 0; }
.ms-mc-name { font-size: 13px; font-weight: 800; color: #1a1a2e; margin-bottom: 2px; }
.ms-mc-desc { font-size: 11px; color: #6b7280; margin-bottom: 7px; }
.ms-bar { height: 6px; background: #ede9fe; border-radius: 4px; overflow: hidden; }
.ms-bar-f { height: 100%; border-radius: 4px; background: linear-gradient(90deg,#7c3aed,#ec4899); transition: width 1s ease; }
.ms-mc-plbl { font-size: 10px; color: #9ca3af; margin-top: 3px; }
.ms-mc-right { text-align: right; flex-shrink: 0; }
.ms-mc-xp { font-size: 14px; font-weight: 900; color: #d97706; }
.ms-mc-xpl { font-size: 9px; color: #9ca3af; }
.ms-rar { position: absolute; top: 8px; right: 8px; font-size: 9px; font-weight: 800; padding: 2px 8px; border-radius: 12px; }
.r-common { background: #f3f4f6; color: #6b7280; }
.r-rare { background: #dbeafe; color: #2563eb; }
.r-epic { background: #ede9fe; color: #7c3aed; }
.r-legendary { background: #fef3c7; color: #d97706; }
.ms-claim-btn { background: linear-gradient(135deg,#7c3aed,#ec4899); border: none; border-radius: 10px; color: #fff; font-size: 11px; font-weight: 800; padding: 6px 13px; cursor: pointer; font-family: 'Poppins', sans-serif; }

/* Earn ways */
.ms-earn {
  background: #ffffff; border: 1px solid #ede9fe; border-radius: 16px;
  padding: 13px 14px; margin: 0 12px 9px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 1px 6px rgba(124,58,237,0.05); transition: all 0.2s;
}
.ms-earn:hover { border-color: #c4b5fd; }
.ms-earn-ic { font-size: 30px; flex-shrink: 0; }
.ms-earn-body { flex: 1; }
.ms-earn-name { font-size: 13px; font-weight: 700; color: #1a1a2e; }
.ms-earn-desc { font-size: 11px; color: #6b7280; margin-top: 1px; }
.ms-earn-val { font-size: 14px; font-weight: 900; color: #d97706; }

/* Weekly */
.ms-wc {
  background: linear-gradient(135deg,#fffbeb,#fef3c7);
  border: 1px solid #fbbf24; border-radius: 16px;
  padding: 13px 14px; margin: 0 12px 9px;
  display: flex; align-items: center; gap: 12px;
}
.ms-wc-ic { font-size: 30px; flex-shrink: 0; }
.ms-wc-body { flex: 1; }
.ms-wc-name { font-size: 13px; font-weight: 800; color: #1a1a2e; margin-bottom: 4px; }
.ms-wc-bar { height: 5px; background: rgba(251,191,36,.2); border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.ms-wc-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg,#f59e0b,#fbbf24); transition: width 1s ease; }
.ms-wc-pl { font-size: 10px; color: #6b7280; }
.ms-wc-right { text-align: right; flex-shrink: 0; }
.ms-wc-rw { font-size: 14px; font-weight: 900; color: #d97706; }
.ms-wc-pct { font-size: 10px; color: #9ca3af; margin-top: 2px; }

/* Achievements */
.ms-ach-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; padding: 0 12px 16px; }
.ms-ach-item { background: #ffffff; border: 1px solid #ede9fe; border-radius: 15px; padding: 12px 6px; text-align: center; transition: all 0.2s; box-shadow: 0 1px 6px rgba(124,58,237,0.04); }
.ms-ach-item.ms-ul { background: linear-gradient(135deg,#ede9fe,#fce7f3); border-color: #c4b5fd; animation: achPop .4s ease; }
@keyframes achPop { 0%{transform:scale(.82)} 100%{transform:scale(1)} }
.ms-ach-item.ms-lk .ms-ach-ic { filter: grayscale(1); opacity: .25; }
.ms-ach-ic { font-size: 28px; display: block; margin-bottom: 5px; }
.ms-ach-nm { font-size: 9px; font-weight: 700; color: #9ca3af; line-height: 1.3; }
.ms-ach-item.ms-ul .ms-ach-nm { color: #7c3aed; }

/* ════════════════════════════════════════════════
   ⚙️  SETTINGS PAGE
════════════════════════════════════════════════ */
.st-prof-card {
  margin: 14px 12px;
  background: linear-gradient(135deg,#ede9fe,#fce7f3);
  border: 1.5px solid #c4b5fd; border-radius: 20px; padding: 18px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 4px 20px rgba(124,58,237,0.12);
}
.st-prof-pic { width:60px; height:60px; border-radius:50%; border:2.5px solid #a78bfa; object-fit:cover; flex-shrink:0; }
.st-prof-ph { width:60px; height:60px; border-radius:50%; background:rgba(124,58,237,.1); border:2px dashed #c4b5fd; display:flex; align-items:center; justify-content:center; font-size:26px; flex-shrink:0; }
.st-prof-info { flex:1; }
.st-prof-name { font-size:16px; font-weight:800; color:#1a1a2e; }
.st-prof-email { font-size:11px; color:#6b7280; margin-top:2px; }
.st-prof-badge { display:inline-flex; align-items:center; gap:4px; margin-top:7px; background:rgba(124,58,237,.08); border:1px solid #c4b5fd; color:#7c3aed; font-size:10px; font-weight:800; padding:3px 12px; border-radius:20px; }
.st-prof-edit { background:rgba(124,58,237,.1); border:1px solid #c4b5fd; border-radius:10px; color:#7c3aed; font-size:11px; font-weight:700; padding:6px 12px; cursor:pointer; font-family:'Poppins',sans-serif; }
.st-google-btn { width:100%; background:#ffffff; border:1.5px solid #e5e7eb; border-radius:13px; color:#1f2937; font-size:13px; font-weight:700; padding:12px 16px; cursor:pointer; font-family:'Poppins',sans-serif; display:flex; align-items:center; justify-content:center; gap:10px; transition:all .2s; margin-top:8px; box-shadow:0 2px 8px rgba(0,0,0,.08); }
.st-google-btn:hover { transform:scale(1.02); box-shadow:0 4px 16px rgba(0,0,0,.12); }

.st-cred-card { background:linear-gradient(135deg,#fffbeb,#fef3c7); border:1.5px solid #fbbf24; border-radius:20px; padding:18px; margin:0 12px 14px; }
.st-cred-top { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:12px; }
.st-cred-lbl { font-size:11px; font-weight:700; color:#6b7280; margin-bottom:4px; letter-spacing:.5px; }
.st-cred-val { font-size:32px; font-weight:900; color:#d97706; font-family:'Syne',sans-serif; line-height:1; }
.st-cred-used { font-size:11px; color:#9ca3af; margin-top:4px; }
.st-cred-icon { font-size:42px; }
.st-cred-bar { height:7px; background:rgba(251,191,36,.18); border-radius:6px; overflow:hidden; margin-bottom:8px; }
.st-cred-fill { height:100%; background:linear-gradient(90deg,#f59e0b,#fbbf24,#fcd34d); border-radius:6px; transition:width .8s ease; }
.st-cred-meta { display:flex; justify-content:space-between; font-size:11px; color:#6b7280; margin-bottom:12px; }
.st-mini-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:12px; }
.st-mini-s { background:rgba(255,255,255,.7); border:1px solid #fde68a; border-radius:14px; padding:10px 6px; text-align:center; }
.st-mini-v { font-size:18px; font-weight:900; color:#d97706; font-family:'Syne',sans-serif; }
.st-mini-l { font-size:9px; color:#9ca3af; margin-top:2px; text-transform:uppercase; letter-spacing:.7px; }
.st-note { background:#fef2f2; border:1px solid #fca5a5; border-radius:12px; padding:10px 14px; font-size:11px; color:#dc2626; display:flex; align-items:center; gap:8px; }

.st-streak-card { background:linear-gradient(135deg,#fff7ed,#fed7aa); border:1.5px solid #fb923c; border-radius:18px; padding:16px; margin:0 12px 14px; }
.st-streak-top { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.st-streak-flame { font-size:48px; line-height:1; }
.st-streak-info { flex:1; }
.st-streak-num { font-size:36px; font-weight:900; color:#ea580c; font-family:'Syne',sans-serif; line-height:1; }
.st-streak-lbl { font-size:12px; color:#6b7280; margin-top:3px; }
.st-streak-best { font-size:11px; color:#9ca3af; margin-top:2px; }
.st-dots { display:flex; gap:5px; flex-wrap:wrap; }
.st-dot { width:28px; height:28px; border-radius:8px; background:rgba(251,191,36,.12); border:1px solid #fde68a; display:flex; align-items:center; justify-content:center; font-size:13px; }
.st-dot.done { background:rgba(234,88,12,.15); border-color:#fb923c; }
.st-dot.today { background:rgba(234,88,12,.3); border-color:#ea580c; box-shadow:0 0 10px rgba(234,88,12,.25); }

.st-group { background:#ffffff; border:1px solid #ede9fe; border-radius:18px; overflow:hidden; margin:0 12px 14px; box-shadow:0 2px 12px rgba(124,58,237,0.06); }
.st-row { display:flex; align-items:center; gap:12px; padding:14px 16px; border-bottom:1px solid #f3f0ff; transition:background .15s; cursor:pointer; }
.st-row:last-child { border-bottom:none; }
.st-row:hover { background:#faf5ff; }
.st-ic { font-size:22px; flex-shrink:0; width:34px; text-align:center; }
.st-body { flex:1; }
.st-name { font-size:13px; font-weight:600; color:#1a1a2e; }
.st-desc { font-size:11px; color:#9ca3af; margin-top:2px; }
.st-right { flex-shrink:0; display:flex; align-items:center; gap:8px; }
.st-val { font-size:12px; color:#9ca3af; }
.st-chev { font-size:18px; color:#d1d5db; }

.st-tog { position:relative; width:46px; height:26px; flex-shrink:0; cursor:pointer; }
.st-tog input { opacity:0; width:0; height:0; position:absolute; }
.st-tog-track { position:absolute; inset:0; background:#e5e7eb; border-radius:26px; transition:background .3s; }
.st-tog input:checked + .st-tog-track { background:#7c3aed; }
.st-tog-thumb { position:absolute; top:3px; left:3px; width:20px; height:20px; background:#fff; border-radius:50%; transition:transform .28s cubic-bezier(.4,0,.2,1); pointer-events:none; box-shadow:0 2px 6px rgba(0,0,0,.15); }
.st-tog input:checked ~ .st-tog-thumb { transform:translateX(20px); }

.st-hist-item { display:flex; align-items:center; gap:10px; padding:9px 14px; border-bottom:1px solid #f3f0ff; }
.st-hist-item:last-child { border-bottom:none; }
.st-hist-ic { font-size:22px; flex-shrink:0; }
.st-hist-body { flex:1; }
.st-hist-txt { font-size:12px; font-weight:600; color:#1a1a2e; }
.st-hist-when { font-size:10px; color:#9ca3af; margin-top:1px; }
.st-hist-cr { font-size:13px; font-weight:800; color:#d97706; flex-shrink:0; }

.st-app-card { background:#ffffff; border:1px solid #ede9fe; border-radius:18px; padding:18px; margin:0 12px 14px; text-align:center; box-shadow:0 2px 12px rgba(124,58,237,0.06); }
.st-app-logo { width:64px; height:64px; border-radius:18px; border:2px solid #c4b5fd; margin:0 auto 12px; }
.st-app-name { font-family:'Syne',sans-serif; font-size:18px; font-weight:900; background:linear-gradient(135deg,#7c3aed,#ec4899); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.st-app-tag { font-size:12px; color:#6b7280; margin-top:4px; }
.st-app-ver { font-size:10px; color:#d1d5db; margin-top:8px; }
.st-app-links { display:flex; justify-content:center; gap:10px; margin-top:14px; flex-wrap:wrap; }
.st-app-link { background:#ede9fe; border:1px solid #c4b5fd; color:#7c3aed; font-size:11px; font-weight:700; padding:6px 14px; border-radius:20px; cursor:pointer; text-decoration:none; transition:all .2s; }
.st-app-link:hover { background:#ddd6fe; }

.st-modal-ov { position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:10000; display:flex; align-items:flex-end; justify-content:center; backdrop-filter:blur(6px); }
.st-modal-box { background:#ffffff; border:1.5px solid #ede9fe; border-radius:24px 24px 0 0; padding:24px 20px 40px; width:100%; max-width:480px; animation:stUp .3s ease; box-shadow:0 -8px 40px rgba(124,58,237,.12); }
@keyframes stUp { from{transform:translateY(100%)} to{transform:translateY(0)} }
.st-modal-title { font-size:17px; font-weight:900; color:#1a1a2e; font-family:'Syne',sans-serif; margin-bottom:6px; }
.st-modal-sub { font-size:12px; color:#6b7280; margin-bottom:20px; }
.st-modal-input { width:100%; background:#f9fafb; border:1.5px solid #e5e7eb; border-radius:13px; color:#1a1a2e; font-size:14px; font-weight:600; padding:13px 16px; font-family:'Poppins',sans-serif; margin-bottom:12px; outline:none; transition:border .2s; }
.st-modal-input:focus { border-color:#a78bfa; }
.st-modal-btn { width:100%; padding:13px; background:linear-gradient(135deg,#7c3aed,#ec4899); border:none; border-radius:13px; font-size:14px; font-weight:800; color:#fff; cursor:pointer; font-family:'Poppins',sans-serif; }
.st-modal-cancel { width:100%; padding:11px; background:#f9fafb; border:1px solid #e5e7eb; border-radius:13px; font-size:13px; font-weight:700; color:#6b7280; cursor:pointer; font-family:'Poppins',sans-serif; margin-top:8px; }

/* =============================================
   HDR TAGLINE ROW — "Use The #1 AI of Face"
   ============================================= */
.hdr-tagline-row {
  text-align: center;
  padding: 6px 20px 8px;
  background: linear-gradient(135deg, #faf5ff, #fce7f3);
  border-top: 1px solid #f3f0ff;
}
.hdr-main-tagline {
  font-family: 'Syne', 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.3px;
}
.hdr-main-tagline strong {
  font-weight: 900;
  font-size: 14px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   WHITE WELCOME CARD — same style as Compare card
   ============================================= */
.welcome-screen-white {
  background: #ffffff !important;
  border-radius: 28px !important;
  padding: 36px 24px 32px !important;
  border: 1px solid #ede9fe !important;
  box-shadow: 0 4px 24px rgba(139,92,246,0.10) !important;
  position: relative;
  overflow: visible !important;
}

.welcome-inner-white {
  text-align: center;
  position: relative;
  z-index: 1;
}

.welcome-icon-wrap-white {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  border: 1.5px solid #c4b5fd;
  box-shadow: 0 4px 18px rgba(124,58,237,0.14);
}

.welcome-icon-emoji-white {
  font-size: 36px;
  line-height: 1;
}

.welcome-title-white {
  font-family: 'Syne', 'Poppins', sans-serif !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  color: #1e1b4b !important;
  margin: 0 0 10px !important;
  -webkit-text-fill-color: initial !important;
  background: none !important;
  letter-spacing: -0.3px;
}

.welcome-desc-white {
  font-size: 14px !important;
  color: #6b7280 !important;
  margin: 0 0 20px !important;
  line-height: 1.65 !important;
  min-height: 42px;
}

.welcome-badges-white {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.badge-white {
  padding: 5px 14px;
  background: #f5f3ff;
  border: 1px solid #ede9fe;
  border-radius: 50px;
  color: #5b21b6;
  font-size: 12px;
  font-weight: 700;
}

.get-started-btn-white {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 14px 32px !important;
  background: linear-gradient(135deg, #7c3aed, #ec4899) !important;
  color: white !important;
  border: none !important;
  border-radius: 60px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 6px 22px rgba(124,58,237,0.35) !important;
  transition: all 0.3s ease !important;
  margin: 0 !important;
  font-family: 'Poppins', sans-serif !important;
}

.get-started-btn-white:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 12px 32px rgba(124,58,237,0.5) !important;
}

.welcome-note-white {
  margin-top: 16px !important;
  font-size: 11px !important;
  color: #9ca3af !important;
}

/* =============================================
   COMPARE STANDALONE SECTION
   ============================================= */
.compare-standalone-section {
  max-width: 480px;
  margin: 0 auto 0;
  padding: 0 0;
}

.compare-standalone-inner {
  padding: 0 0;
}

.compare-standalone-card {
  margin: 0 !important;
  background: #ffffff !important;
  border: 1px solid #ede9fe !important;
  box-shadow: 0 4px 20px rgba(139,92,246,0.08) !important;
  border-radius: 28px !important;
  padding: 28px 20px 22px !important;
}

.compare-standalone-card .fun-card-glow {
  display: none;
}

@media (max-width: 640px) {
  .hdr-tagline-row { padding: 5px 14px 7px; }
  .hdr-main-tagline { font-size: 12px; }
  .hdr-main-tagline strong { font-size: 13px; }
  .compare-standalone-section { padding: 0; }
}

/* =============================================
   HERO TAGLINE BLOCK — below header, above welcome card
   ============================================= */
.hero-tagline-block {
  margin: 6px 0 12px;
  text-align: center;
}

.hero-tagline-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-tagline-icon {
  font-size: 36px;
  line-height: 1;
  animation: heroIconBounce 2s ease-in-out infinite;
}

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

.hero-tagline-title {
  font-family: 'Syne', 'Poppins', sans-serif !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  color: #1e1b4b !important;
  margin: 0 !important;
  letter-spacing: -0.5px;
  line-height: 1.2 !important;
}

.hero-tagline-highlight {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline-sub {
  font-size: 12px !important;
  color: #9ca3af !important;
  margin: 0 !important;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Remove old tagline row styles (keeping clean) */
.hdr-tagline-row { display: none !important; }

@media (max-width: 640px) {
  .hero-tagline-title { font-size: 24px !important; }
  .hero-tagline-icon { font-size: 30px; }
}

/* =============================================
   BOTH CARDS — UNIFIED FINAL (no conflicts)
   ============================================= */

/* Step 1: welcomeScreen — cropped, same width as compare card */
#welcomeScreen {
  background: linear-gradient(155deg, #f5f3ff, #ede9fe) !important;
  border-radius: 24px !important;
  padding: 18px 20px 16px !important;
  border: 1.5px solid #c4b5fd !important;
  box-shadow: none !important;
  position: relative !important;
  overflow: visible !important;
  text-align: center !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
#welcomeScreen .fun-card-icon { font-size: 34px !important; margin-bottom: 6px !important; }
#welcomeScreen h3 { margin: 0 0 4px !important; }
#welcomeScreen p { margin: 0 0 8px !important; }
#welcomeScreen .fun-card-mini-stats { margin-bottom: 8px !important; }
#welcomeScreen .fun-card-tags { margin-bottom: 10px !important; }

/* Step 2: .container aur .home-card-wrapper — SAME max-width aur padding */
.container {
  max-width: 480px !important;
  margin: 8px auto 0 !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
}
.home-card-wrapper {
  max-width: 480px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
}

/* Step 3: compare card — same compact size */
.home-card-wrapper .fun-card--compare {
  border-radius: 24px !important;
  padding: 18px 20px 16px !important;
  background: linear-gradient(155deg, #f5f3ff, #ede9fe) !important;
  border: 1.5px solid #c4b5fd !important;
  box-shadow: none !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.home-card-wrapper .fun-card-icon { font-size: 34px !important; margin-bottom: 6px !important; }
.home-card-wrapper h3 { margin: 0 0 4px !important; }
.home-card-wrapper p { margin: 0 0 8px !important; }
.home-card-wrapper .fun-card-mini-stats { margin-bottom: 8px !important; }
.home-card-wrapper .fun-card-tags { margin-bottom: 10px !important; }

/* Step 4: Divider — space bilkul kam, same width padding */
.home-cards-divider {
  max-width: 480px !important;
  margin: 0 auto !important;
  padding: 6px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  box-sizing: border-box !important;
}
.home-cards-divider-line {
  flex: 1 !important;
  height: 1.5px !important;
  background: linear-gradient(90deg, transparent, #c4b5fd, transparent) !important;
}
.home-cards-divider-text {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #7c3aed !important;
  white-space: nowrap !important;
  background: #ede9fe !important;
  padding: 3px 12px !important;
  border-radius: 20px !important;
  border: 1.5px solid #c4b5fd !important;
}

/* Step 5: Hero tagline — upar space kam */
.hero-tagline-title {
  font-size: 26px !important;
  line-height: 1.25 !important;
}
.hero-tagline-block {
  margin: 4px 0 10px !important;
}

/* ===================== FACE SYMMETRY CARD ===================== */
.fun-card--symmetry {
  background: linear-gradient(155deg, #f0fdf4, #dcfce7) !important;
  border-color: #86efac !important;
}
.fun-card--symmetry .fun-card-glow { background: #16a34a; }
.fun-card--symmetry .fun-card-tags span {
  color: #15803d;
  border-color: rgba(22,163,74,0.25);
  background: rgba(255,255,255,0.7);
}
.fun-card-badge--green {
  background: #dcfce7 !important;
  color: #15803d !important;
  border-color: #86efac !important;
}
.fun-card-btn--symmetry {
  background: linear-gradient(135deg, #16a34a, #059669) !important;
  color: white !important;
  box-shadow: 0 4px 14px rgba(22,163,74,0.3) !important;
  width: 100%;
  padding: 10px 0;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Poppins', sans-serif;
}
.fun-card-btn--symmetry:hover { transform: scale(1.03); }

/* ===================== COMPARE CARD NEW COLOR (orange/amber) ===================== */
.fun-card--compare2 {
  background: linear-gradient(155deg, #fff7ed, #ffedd5) !important;
  border-color: #fdba74 !important;
}
.fun-card--compare2 .fun-card-glow { background: #f97316; }
.fun-card--compare2 .fun-card-tags span {
  color: #c2410c;
  border-color: rgba(249,115,22,0.25);
  background: rgba(255,255,255,0.7);
}
.fun-card-badge--orange {
  background: #ffedd5 !important;
  color: #c2410c !important;
  border-color: #fdba74 !important;
}
.fun-card-btn--compare2 {
  background: linear-gradient(135deg, #f97316, #ef4444) !important;
  color: white !important;
  box-shadow: 0 4px 14px rgba(249,115,22,0.3) !important;
  width: 100%;
  padding: 10px 0;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Poppins', sans-serif;
}
.fun-card-btn--compare2:hover { transform: scale(1.03); }
.home-card-wrapper .fun-card--compare2 {
  border-radius: 24px !important;
  padding: 18px 20px 16px !important;
  border: 1.5px solid #fdba74 !important;
  box-shadow: none !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ===================== AGE DETECTOR CARD (pink/rose) ===================== */
.fun-card--agedetect {
  background: linear-gradient(155deg, #fff1f2, #ffe4e6) !important;
  border-color: #fda4af !important;
}
.fun-card--agedetect .fun-card-glow { background: #e11d48; }
.fun-card--agedetect .fun-card-tags span {
  color: #be123c;
  border-color: rgba(225,29,72,0.25);
  background: rgba(255,255,255,0.7);
}
.fun-card-badge--pink {
  background: #ffe4e6 !important;
  color: #be123c !important;
  border-color: #fda4af !important;
}
.fun-card-btn--agedetect {
  background: linear-gradient(135deg, #e11d48, #db2777) !important;
  color: white !important;
  box-shadow: 0 4px 14px rgba(225,29,72,0.3) !important;
  width: 100%;
  padding: 10px 0;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Poppins', sans-serif;
}
.fun-card-btn--agedetect:hover { transform: scale(1.03); }
.home-card-wrapper .fun-card--agedetect {
  border-radius: 24px !important;
  padding: 18px 20px 16px !important;
  border: 1.5px solid #fda4af !important;
  box-shadow: none !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ============================================================
   🔍 GLOBAL SEARCH SYSTEM
   ============================================================ */

/* ── TRIGGER BUTTON ── */
.gs-trigger-wrap {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 18px;
  padding: 0 16px;
  box-sizing: border-box;
}
.gs-trigger-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 2px solid #ede9fe;
  border-radius: 50px;
  padding: 13px 20px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 20px rgba(124,58,237,0.10);
  transition: all 0.2s;
}
.gs-trigger-btn:hover {
  border-color: #8b5cf6;
  box-shadow: 0 6px 28px rgba(124,58,237,0.20);
  transform: translateY(-1px);
}
.gs-trigger-icon { font-size: 18px; opacity: 0.6; flex-shrink:0; }
.gs-trigger-text {
  flex: 1;
  text-align: left;
  font-size: 14px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gs-trigger-hint {
  font-size: 11px;
  font-weight: 700;
  color: #8b5cf6;
  background: #f5f3ff;
  border: 1.5px solid #ddd6fe;
  border-radius: 8px;
  padding: 3px 10px;
  flex-shrink: 0;
}

/* ── FULL PAGE OVERLAY ── */
.gs-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,0,30,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 16px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  box-sizing: border-box;
}
.gs-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ── MODAL BOX ── */
.gs-modal {
  width: 100%;
  max-width: 700px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  transform: translateY(-20px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
.gs-overlay.open .gs-modal {
  transform: translateY(0) scale(1);
}

/* ── MODAL TOP: input + tags ── */
.gs-modal-top {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  padding: 20px 20px 14px;
  flex-shrink: 0;
}
.gs-input-row {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  padding: 10px 16px;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.gs-input-icon { font-size: 18px; opacity: 0.5; flex-shrink:0; }
.gs-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  color: #1a1a2e;
  background: transparent;
  min-width: 0;
}
.gs-input::placeholder { color: #9ca3af; }
.gs-close-btn {
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 14px;
  cursor: pointer;
  color: #6b7280;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-family: inherit;
}
.gs-close-btn:hover { background: #ef4444; color: #fff; }

/* ── QUICK TAGS ── */
.gs-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.gs-tag {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
  transition: all 0.15s;
}
.gs-tag:hover {
  background: rgba(255,255,255,0.95);
  color: #7c3aed;
  border-color: #fff;
  transform: translateY(-1px);
}

/* ── MODAL BODY: results area ── */
.gs-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 24px;
  min-height: 200px;
}
.gs-modal-body::-webkit-scrollbar { width: 4px; }
.gs-modal-body::-webkit-scrollbar-thumb { background: #ddd6fe; border-radius: 4px; }

/* ── DEFAULT STATE ── */
.gs-default-state {
  text-align: center;
  padding: 40px 20px;
}
.gs-default-emoji { font-size: 48px; margin-bottom: 12px; }
.gs-default-title { font-size: 18px; font-weight: 800; color: #1a1a2e; margin-bottom: 6px; }
.gs-default-sub   { font-size: 13px; color: #9ca3af; }

/* ── RESULTS META ── */
.gs-results-meta {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 0 2px;
}

/* ── CARDS GRID ── */
.gs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 520px) { .gs-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── SINGLE CARD ── */
.gs-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px 11px;
  background: #fff;
  border: 1.5px solid #f0ebff;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.2s, border-color 0.15s;
  box-shadow: 0 2px 10px rgba(124,58,237,0.07);
  min-height: 140px;
  position: relative;
  overflow: hidden;
}
.gs-card:hover {
  border-color: #8b5cf6;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 30px rgba(124,58,237,0.22);
  background: linear-gradient(135deg, #faf5ff 0%, #fff 100%);
}
.gs-card:active { transform: scale(0.96); }

.gs-card-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.gs-card-icon   { font-size: 26px; line-height: 1; }
.gs-card-badge  {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.gs-card-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gs-card-desc {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.gs-card-footer { margin-top: auto; }
.gs-card-go {
  font-size: 11px;
  font-weight: 800;
  color: #8b5cf6;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.18s;
  display: inline-block;
}
.gs-card:hover .gs-card-go { opacity: 1; transform: translateX(0); }

/* ── EMPTY STATE ── */
.gs-empty {
  text-align: center;
  padding: 30px 10px;
  grid-column: 1 / -1;
}
.gs-empty-icon { font-size: 38px; margin-bottom: 10px; }
.gs-empty-text { font-size: 13px; font-weight: 600; color: #6b7280; margin-bottom: 14px; }
.gs-empty-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.gs-empty-chips span {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1.5px solid #ddd6fe;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.gs-empty-chips span:hover { background: #7c3aed; color: #fff; }
