/* =========================================================
   CHEAPSTER.IN — DARK PREMIUM THEME
   Obsidian + Champagne Gold + Sapphire.
   ========================================================= */

:root {
  --obsidian: #090d14;
  --obsidian-raised: #111826;
  --panel-solid: #131b28;
  --panel-solid-hover: #182233;
  --sapphire: #1c3f66;
  --sapphire-glow: #5b9eea;
  --champagne: #cda15c;
  --champagne-bright: #eccd8f;
  --platinum: #aab6c4;
  --ink: #f3f6f9;
  --muted: #8b98a8;
  --faint: #566275;
  --line: rgba(255, 255, 255, 0.08);
  --line-gold: rgba(205, 161, 92, 0.3);
  --glow-line: rgba(91, 158, 234, 0.35);
  --success: #4fbf82;
  --radius-card: 16px;
  --radius-modal: 22px;
  --shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 20px 45px rgba(0, 0, 0, 0.55);
}

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

body {
  margin: 0;
  color: var(--platinum);
  background-color: var(--obsidian);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(91, 158, 234, 0.10) 0%, transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(205, 161, 92, 0.08) 0%, transparent 46%),
    linear-gradient(180deg, #0b1119 0%, #090d14 55%, #07090f 100%);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='320'%20height='320'%3E%3Ccircle%20cx='46'%20cy='58'%20r='20'%20fill='%23cda15c'%20opacity='0.05'/%3E%3Ccircle%20cx='46'%20cy='58'%20r='9'%20fill='%23cda15c'%20opacity='0.10'/%3E%3Ccircle%20cx='46'%20cy='58'%20r='3'%20fill='%23eccd8f'%20opacity='0.20'/%3E%3Ccircle%20cx='244'%20cy='96'%20r='17'%20fill='%235b9eea'%20opacity='0.05'/%3E%3Ccircle%20cx='244'%20cy='96'%20r='8'%20fill='%235b9eea'%20opacity='0.09'/%3E%3Ccircle%20cx='244'%20cy='96'%20r='3'%20fill='%23bcdcff'%20opacity='0.17'/%3E%3Ccircle%20cx='128'%20cy='236'%20r='15'%20fill='%23cda15c'%20opacity='0.04'/%3E%3Ccircle%20cx='128'%20cy='236'%20r='7'%20fill='%23eccd8f'%20opacity='0.09'/%3E%3Ccircle%20cx='128'%20cy='236'%20r='2.5'%20fill='%23f4e2b8'%20opacity='0.16'/%3E%3Ccircle%20cx='288'%20cy='276'%20r='13'%20fill='%235b9eea'%20opacity='0.04'/%3E%3Ccircle%20cx='288'%20cy='276'%20r='6'%20fill='%235b9eea'%20opacity='0.08'/%3E%3C/svg%3E");
  background-size: 320px 320px;
  will-change: transform;
}

body > * { position: relative; z-index: 1; }

/* Fixed + heavy blur is the classic scroll-jank combo — without its own
   compositor layer, some browsers repaint this blur every scroll frame.
   will-change: transform isolates it onto its own layer (painted once,
   just moved by the GPU thereafter); the smaller blur radius trims the
   per-frame cost further for phones without an isolated layer. */
.ambient { position: fixed; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(70px); opacity: 0.45; will-change: transform; }
.ambient-left { top: -120px; left: -140px; width: 380px; height: 380px; background: radial-gradient(circle, rgba(91, 158, 234, 0.22), transparent 70%); }
.ambient-right { top: 25%; right: -180px; width: 440px; height: 440px; background: radial-gradient(circle, rgba(205, 161, 92, 0.16), transparent 70%); }

body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; outline: none; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Premium Dynamic Toasts (Alert Replacement) */
.toast-container { position: fixed; top: 20px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 9999; pointer-events: none; }
.toast-msg { background: rgba(19, 27, 40, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line-gold); color: var(--champagne-bright); font-size: 13px; font-weight: 700; padding: 12px 24px; border-radius: 50px; box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 20px rgba(205, 161, 92, 0.15); animation: toastEnter 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; display: flex; align-items: center; gap: 10px; pointer-events: auto; will-change: transform, opacity; }
.toast-msg.toast-exit { animation: toastExit 0.3s ease-in forwards; }
@keyframes toastEnter { from { opacity: 0; transform: translateY(-20px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastExit { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-20px) scale(0.9); } }

/* Top Live Banner */
.live-contest-banner { background: linear-gradient(90deg, var(--sapphire), #142a44); color: var(--champagne-bright); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-gold); }
.blinking-dot { width: 6px; height: 6px; background-color: #7fe3ab; border-radius: 50%; box-shadow: 0 0 10px #7fe3ab; animation: blink 1.5s infinite ease-in-out; }
@keyframes blink { 0%, 100% { opacity: 0.35; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }

/* Scrolling Date Bar */
.giveaway-date-bar { 
  background: linear-gradient(90deg, var(--sapphire), #142a44); 
  border-bottom: 1px solid var(--line-gold); 
  text-align: center; 
  padding: 8px 15px; 
  font-size: 11.5px; 
  font-weight: 500; 
  color: var(--platinum); 
  letter-spacing: 0.3px; 
}
.giveaway-date-bar span { 
  color: var(--champagne-bright); 
  font-weight: 800; 
  letter-spacing: 0.8px;
  margin-left: 3px;
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(9, 13, 20, 0.88); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); border-bottom: 1px solid var(--line); transition: box-shadow .3s ease, background-color .3s ease; will-change: transform; }
.site-header.is-scrolled { background: rgba(9, 13, 20, 0.96); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--champagne), var(--sapphire-glow), transparent); background-size: 200% 100%; opacity: 0.55; animation: shimmerLine 7s linear infinite; }
@keyframes shimmerLine { to { background-position: -200% 0; } }
.header-inner { width: min(1220px, calc(100% - 34px)); min-height: 70px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.css-logo { width: 38px; height: 38px; background: linear-gradient(145deg, var(--sapphire), #0d2138); border-radius: 10px; border: 1px solid var(--line-gold); color: var(--champagne-bright); font-family: 'Manrope', sans-serif; font-size: 22px; font-weight: 800; display: flex; justify-content: center; align-items: center; padding-right: 2px; box-shadow: var(--shadow-soft); }
.css-logo span { color: var(--champagne); margin-left: 2px; }
.brand-wordmark { color: var(--ink); font-size: 19px; font-weight: 800; }
.brand-wordmark span { color: var(--champagne); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.hamburger-btn { width: 42px; height: 42px; border-radius: 100px; border: 1px solid var(--line); background: var(--panel-solid); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.hamburger-btn:hover { border-color: var(--line-gold); }
.hamburger-btn span { width: 18px; height: 2px; background: var(--platinum); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.hamburger-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.header-dropdown { position: absolute; top: calc(100% + 8px); right: 17px; background: var(--panel-solid); border: 1px solid var(--line-gold); border-radius: 14px; box-shadow: var(--shadow-lift); display: flex; flex-direction: column; padding: 8px; min-width: 220px; z-index: 110; }
.header-dropdown button { background: none; border: none; text-align: left; color: var(--platinum); font-size: 13px; font-weight: 600; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.header-dropdown button:hover { background: var(--panel-solid-hover); color: var(--champagne-bright); }
.dropdown-divider { height: 1px; background: var(--line); margin: 6px 4px; }

/* Buttons */
.btn { min-height: 42px; padding: 0 16px; border-radius: 100px; border: none; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 13px; transition: transform .2s ease, box-shadow .2s ease; }
.btn-gold { color: #14100a; background: linear-gradient(135deg, var(--champagne-bright) 0%, var(--champagne) 100%); box-shadow: 0 6px 18px rgba(205, 161, 92, 0.28); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(205, 161, 92, 0.38); }
.btn-google { color: var(--ink); background: var(--panel-solid); border: 1px solid var(--line); }
.btn-google:hover { border-color: var(--line-gold); }
.google-icon { width: 18px; }
.auth-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-gold); }
.auth-avatar-fallback { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--sapphire); color: var(--champagne-bright); font-size: 11px; font-weight: 800; border: 1px solid var(--line-gold); }

/* Hero */
.hero { text-align: center; padding: 64px 20px 44px; position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-gold); border-radius: 999px; color: var(--champagne-bright); background: rgba(205, 161, 92, 0.08); font-size: 10px; font-weight: 800; letter-spacing: 1.6px; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--champagne); }
.hero h1 { margin: 20px 0 14px; color: var(--ink); font-size: clamp(34px, 6vw, 60px); font-weight: 800; line-height: 1.12; letter-spacing: -0.5px; }
.hero h1 span { color: var(--champagne-bright); }
.festive-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 18px; padding: 8px 18px; background: rgba(91, 158, 234, 0.08); border: 1px solid rgba(91, 158, 234, 0.28); border-radius: 50px; color: var(--sapphire-glow); font-size: 13px; font-weight: 600; }
.festive-sparkle { font-size: 14px; }
.hero-copy { max-width: 560px; margin: 0 auto 30px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Search */
.search-shell { position: relative; max-width: 600px; margin: 0 auto; }
.search-input { width: 100%; height: 58px; padding: 0 50px; border-radius: 100px; background: var(--panel-solid); border: 1px solid var(--line); color: var(--ink); font-size: 15px; box-shadow: var(--shadow-soft); transition: border-color .2s ease, box-shadow .2s ease; }
.search-input::placeholder { color: var(--faint); }
.search-input:focus { border-color: var(--sapphire-glow); box-shadow: 0 0 0 3px rgba(91, 158, 234, 0.15), var(--shadow-soft); }
.search-leading { position: absolute; left: 20px; top: 19px; width: 20px; color: var(--muted); }
.search-leading svg { fill: none; stroke: currentColor; stroke-width: 2; }
.hero-meta { margin-top: 20px; font-size: 11px; color: var(--muted); font-weight: 600; display: flex; justify-content: center; gap: 10px; align-items: center; }
.trust-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 22px auto 26px; max-width: 780px; padding: 12px 22px; background: rgba(205, 161, 92, 0.08); border: 1px solid var(--line-gold); border-radius: 20px; }
.trust-item { font-size: 12px; font-weight: 600; color: var(--champagne-bright); white-space: nowrap; }
.trust-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-gold); flex-shrink: 0; }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); display: inline-block; }

/* Grid & Spotlight Cards */
.directory-section { width: min(1220px, calc(100% - 34px)); margin: 0 auto; padding-bottom: 80px; }
.section-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; }
.section-label { color: var(--champagne); font-size: 11px; font-weight: 800; letter-spacing: 1.6px; }
.section-top h2 { margin: 5px 0 0; color: var(--ink); font-size: 26px; font-weight: 800; }
.result-pill { padding: 6px 14px; border: 1px solid var(--line); border-radius: 20px; font-size: 11px; background: var(--panel-solid); color: var(--muted); }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }

/* Premium Spotlight Effect on Cards */
.store-card {
  position: relative;
  overflow: hidden; 
  padding: 20px 15px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--panel-solid);
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
  cursor: pointer;
  contain: content;
  will-change: transform, box-shadow, border-color;
}
.store-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(205, 161, 92, 0.12), transparent 40%);
  z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s ease;
}
.store-card:hover::before { opacity: 1; }
.store-card:hover { transform: translateY(-5px); border-color: var(--line-gold); background: var(--panel-solid-hover); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(91, 158, 234, 0.15); }
.store-card > * { position: relative; z-index: 1; } 

.store-logo-frame { width: 66px; height: 66px; margin: 0 auto 15px; background: #fff; border-radius: 14px; padding: 10px; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.store-logo { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center center; }
.store-logo-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--sapphire), var(--sapphire-glow)); color: #fff; font-size: 17px; font-weight: 800; border-radius: 10px; }
.store-name { color: var(--ink); font-size: 15px; font-weight: 700; margin: 0 0 5px; }
.store-meta { color: var(--muted); font-size: 11px; min-height: 30px; margin: 0 0 15px; }
.shop-button { width: 100%; padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); color: var(--champagne-bright); border: 1px solid var(--line); font-size: 12px; font-weight: 700; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.store-card:hover .shop-button { background: linear-gradient(135deg, var(--champagne-bright), var(--champagne)); color: #14100a; box-shadow: 0 6px 16px rgba(205, 161, 92, 0.3); border-color: transparent; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state h3 { color: var(--ink); margin-bottom: 8px; }

/* Scroll Reveal */
.reveal-on-scroll.reveal-armed { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform; }
.reveal-on-scroll.reveal-armed.in-view { opacity: 1; transform: none; }

/* Modals */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(4, 6, 10, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; padding: 20px; }
.premium-modal { position: relative; width: min(480px, 100%); padding: 30px; background: var(--obsidian-raised); border: 1px solid var(--line-gold); border-radius: var(--radius-modal); max-height: 90vh; overflow-y: auto; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); }
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 26px; background: transparent; border: none; color: var(--muted); line-height: 1; }
.modal-close:hover { color: var(--ink); }
.modal-icon { width: 50px; height: 50px; background: rgba(205, 161, 92, 0.1); color: var(--champagne-bright); font-size: 22px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 15px; border: 1px solid var(--line-gold); }
.modal-label { font-size: 10px; font-weight: 800; color: var(--sapphire-glow); letter-spacing: 1.4px; }
.premium-modal h2 { margin: 5px 0 15px; font-size: 22px; color: var(--ink); }
.modal-intro { color: var(--muted); font-size: 13px; margin: -6px 0 18px; }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border-radius: 10px; background: var(--panel-solid); border: 1px solid var(--line); color: var(--ink); font-family: inherit; font-size: 14px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sapphire-glow); }
.field select option { background-color: var(--obsidian-raised); color: var(--ink); padding: 10px; }

.btn-wide { width: 100%; min-height: 48px; border-radius: 12px; }
.form-note { text-align: center; font-size: 10px; color: var(--faint); margin-top: 15px; }
.legal-copy p { font-size: 13px; margin-bottom: 15px; line-height: 1.65; color: var(--muted); }
.legal-copy strong { color: var(--ink); }
.divider-label { text-align: center; margin: 25px 0 15px; position: relative; }
.divider-label::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.divider-label span { background: var(--obsidian-raised); padding: 0 10px; position: relative; font-size: 10px; font-weight: 800; color: var(--muted); letter-spacing: 1px; }
.welcome-highlight { display: flex; gap: 12px; margin: 0 0 19px; padding: 14px 15px; border: 1px solid var(--line-gold); border-radius: 14px; background: rgba(205, 161, 92, 0.08); }
.highlight-star { color: var(--champagne-bright); font-size: 17px; }
.welcome-highlight strong { display: block; color: var(--ink); font-size: 12px; }
.welcome-highlight small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.success-mark { width: 68px; height: 68px; margin: 0 auto 17px; display: grid; place-items: center; color: var(--success); background: rgba(79, 191, 130, .1); border: 1px solid rgba(79, 191, 130, .25); border-radius: 50%; font-size: 28px; font-weight: 800; }
.success-view { text-align: center; }
.success-view h3 { margin: 0 0 7px; color: var(--ink); font-size: 18px; }
.success-view p { margin: 0 auto 22px; color: var(--muted); font-size: 12px; line-height: 1.65; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: rgba(9, 13, 20, 0.7); padding: 40px 20px 20px; margin-top: 40px; }
.footer-main { width: min(1220px, 100%); margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-brand-block { max-width: 320px; }
.footer-brand-block p { font-size: 12px; color: var(--muted); margin-top: 15px; line-height: 1.6; }
.footer-legal-note { font-size: 10.5px !important; color: var(--faint) !important; margin-top: 15px !important; border-top: 1px solid var(--line); padding-top: 15px; }
.footer-nav button { background: none; border: none; color: var(--muted); font-size: 12px; margin-left: 15px; cursor: pointer; }
.footer-nav button:hover { color: var(--champagne-bright); }
.footer-bottom { width: min(1220px, 100%); margin: 20px auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); }

@media (max-width: 768px) {
  .hero { padding: 40px 15px; }
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .offer-text-hide, #authBtnText, .brand-wordmark { display: none; }
  .btn { padding: 0 12px; }
}
@media (max-width: 360px) {
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .store-card { padding: 14px 8px; }
}
