/* Google Fonts Import for modern premium typography */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap');

/* ─── THEME CONFIGURATIONS (CSS VARIABLES) ─── */
/* 1. Midnight Neon Dark (Default) */
.theme-neon-dark, body {
  --bg-body: #030307;
  --bg-slx: #07080f;
  --bg-card: rgba(12, 13, 22, 0.9);
  --border-color: rgba(139, 92, 246, 0.22);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.45);
  --hero-title-gradient: linear-gradient(135deg, #c084fc 0%, #f472b6 40%, #38bdf8 100%);
  --btn-get-gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #0369a1 100%);
  --glow-color: rgba(59, 130, 246, 0.4);
}

/* 2. Clean Minimal Light */
.theme-minimal-light {
  --bg-body: #f3f4f6;
  --bg-slx: #ffffff;
  --bg-card: rgba(243, 244, 246, 0.8);
  --border-color: rgba(0, 0, 0, 0.12);
  --text-primary: #111827;
  --text-secondary: rgba(55, 65, 81, 0.7);
  --hero-title-gradient: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  --btn-get-gradient: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
  --glow-color: rgba(31, 41, 55, 0.2);
}

/* 3. Emerald Glass */
.theme-emerald-glass {
  --bg-body: #022c22;
  --bg-slx: #064e3b;
  --bg-card: rgba(2, 44, 34, 0.85);
  --border-color: rgba(16, 185, 129, 0.35);
  --text-primary: #ecfdf5;
  --text-secondary: rgba(110, 231, 183, 0.7);
  --hero-title-gradient: linear-gradient(135deg, #34d399 0%, #059669 100%);
  --btn-get-gradient: linear-gradient(135deg, #047857 0%, #10b981 100%);
  --glow-color: rgba(16, 185, 129, 0.4);
}

/* 4. Sunset Premium */
.theme-sunset-premium {
  --bg-body: #1c1917;
  --bg-slx: #292524;
  --bg-card: rgba(28, 25, 23, 0.9);
  --border-color: rgba(249, 115, 22, 0.35);
  --text-primary: #fff7ed;
  --text-secondary: rgba(253, 186, 116, 0.7);
  --hero-title-gradient: linear-gradient(135deg, #fed7aa 0%, #f97316 100%);
  --btn-get-gradient: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
  --glow-color: rgba(234, 88, 12, 0.45);
}

/* Main body centers the mockup on PC and handles mobile fullscreen */
body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

body.admin-body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: block !important;
  min-height: 100vh !important;
  padding: 20px 10px !important;
}

#slx * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Outfit', sans-serif; }

/* Hidden by default. Revealed dynamically by Javascript. If JS is disabled, page remains 100% blank. */
#slx {
  display: none !important;
  background: var(--bg-slx);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

/* ─── Web Viewport Configurations ─── */
/* Desktop Mockup Frame */
@media (min-width: 768px) {
  body {
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    height: 100vh !important;
  }
  #slx {
    width: 375px;
    height: 100vh;
    max-height: 100vh;
    margin: 0 auto;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
}

/* Mobile WebView Edge-to-Edge */
@media (max-width: 767px) {
  body {
    padding: 0;
    overflow: hidden;
    height: 100vh;
    height: -webkit-fill-available;
    height: 100dvh;
  }
  #slx {
    width: 100vw;
    height: 100vh;
    height: -webkit-fill-available;
    height: 100dvh;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
}

.slx-scroll { flex: 1; overflow-y: auto; scrollbar-width: none; position: relative; z-index: 10; }
.slx-scroll::-webkit-scrollbar { display: none; }

/* BG */
.slx-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(75px); opacity: 0.22; animation: orbFloat 8s ease-in-out infinite alternate; }
.o1 { width: 300px; height: 300px; background: #6d28d9; top: -80px; left: -70px; animation-delay:0s; }
.o2 { width: 240px; height: 240px; background: #0891b2; bottom: 100px; right: -60px; animation-delay:-3s; }
.o3 { width: 180px; height: 180px; background: #be185d; top: 38%; left: -40px; animation-delay:-5.5s; }
@keyframes orbFloat { from{transform:translate(0,0) scale(1)} to{transform:translate(18px,28px) scale(1.1)} }
.slx-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(109,40,217,0.07) 1px,transparent 1px), linear-gradient(90deg,rgba(109,40,217,0.07) 1px,transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
}
canvas#sc { position: absolute; inset: 0; width: 100%; height: 100%; }

/* HEADER */
.slx-hdr {
  flex-shrink: 0; position: relative; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px;
  background: rgba(7,8,15,0.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(109,40,217,0.2);
}
.slx-logo { font-weight: 800; font-size: 1.05rem; background: linear-gradient(135deg,#a78bfa,#38bdf8); -webkit-background-clip:text; -webkit-text-fill-color:transparent; display:flex; align-items:center; gap:7px; }
.slx-logo svg { width:19px; height:19px; stroke:#a78bfa; fill:none; }
.slx-live { display:flex; align-items:center; gap:5px; font-size:10px; color:rgba(255,255,255,0.45); font-weight:700; letter-spacing:1px; }
.dot-live { width:7px; height:7px; border-radius:50%; background:#10b981; animation:liveP 1.4s ease infinite; }
@keyframes liveP { 0%,100%{box-shadow:0 0 0 0 rgba(16,185,129,0.7)} 50%{box-shadow:0 0 0 5px rgba(16,185,129,0)} }

/* MAIN content */
.slx-main { padding: 20px 16px 12px; display: flex; flex-direction: column; gap: 22px; }

/* HERO */
.slx-hero { text-align: center; }
.hero-tag { display:inline-flex; align-items:center; gap:5px; background:rgba(109,40,217,0.18); border:1px solid rgba(139,92,246,0.35); color:#c084fc; font-size:10px; font-weight:800; letter-spacing:1.2px; text-transform:uppercase; padding:4px 11px; border-radius:999px; margin-bottom:11px; }
.slx-hero h1 { font-size:1.65rem; font-weight:900; line-height:1.18; letter-spacing:-0.5px; background: var(--hero-title-gradient); -webkit-background-clip:text; -webkit-text-fill-color:transparent; margin-bottom:8px; }
.slx-hero p { font-size:0.8rem; color: var(--text-secondary); line-height:1.6; }

/* PRICE CARD */
.price-card {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 20px 18px 22px;
  position: relative; overflow: hidden;
}
.price-card::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse 70% 90% at 10% 50%, rgba(109,40,217,0.14) 0%, transparent 70%);
  pointer-events:none;
}
.price-card::after {
  content:''; position:absolute; top:0; left:0; right:0; height:1.5px;
  background: linear-gradient(90deg,transparent,rgba(139,92,246,0.7),rgba(56,189,248,0.5),transparent);
}
.price-card-cols {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}
.price-card-left {
  display: flex;
  flex-direction: column;
}
.orig-row { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.orig-label { font-size:10px; color:rgba(255,255,255,0.35); font-weight:600; letter-spacing:0.8px; text-transform:uppercase; }
.orig-price { font-size:1.1rem; font-weight:700; color:#f87171; position:relative; display:inline-block; letter-spacing:-0.2px; }
.orig-price::after { content:''; position:absolute; left:-2px; right:-2px; top:50%; height:2px; background:linear-gradient(90deg,#ef4444,#fca5a5); border-radius:2px; transform:rotate(-6deg); }
.disc-pill { background:linear-gradient(135deg,#16a34a,#15803d); color:#fff; font-size:10px; font-weight:800; letter-spacing:0.8px; text-transform:uppercase; padding:3px 10px; border-radius:999px; box-shadow:0 0 14px rgba(22,163,74,0.5); animation:pillPop 2s ease infinite alternate; }
@keyframes pillPop { from{box-shadow:0 0 10px rgba(22,163,74,0.4)} to{box-shadow:0 0 22px rgba(22,163,74,0.7)} }
.main-price-row { display:flex; flex-direction:column; gap:2px; }
.free-tag { font-size:0.75rem; font-weight:800; letter-spacing:0.5px; color:#00ffd0; text-transform:uppercase; }
.main-price { font-size:3.6rem; font-weight:900; line-height:1; background:linear-gradient(135deg,#00ffd0 0%,#10b981 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent; letter-spacing:-2px; animation:priceGlow 3s ease infinite alternate; }
@keyframes priceGlow { from{filter:drop-shadow(0 0 12px rgba(52,211,153,0.3))} to{filter:drop-shadow(0 0 28px rgba(52,211,153,0.75))} }

/* Features Column inside Pricing Card */
.price-features {
  display: flex;
  gap: 10px;
  align-items: center;
}
.p-feat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 58px;
}
.p-feat-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.15);
}
.p-feat-icon svg {
  width: 18px;
  height: 18px;
  color: #c084fc;
  stroke-width: 2.2;
}
.p-feat-text {
  font-size: 8px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.25;
  letter-spacing: 0.1px;
}
.price-subtext {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.4;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.price-subtext span.sub-dot {
  color: #10b981;
  font-size: 0.8rem;
}

/* ─── GET NOW BUTTON (BIG, inside card) ─── */
.btn-get {
  width: 100%; position: relative; overflow: hidden;
  background: var(--btn-get-gradient);
  border: none; border-radius: 16px; padding: 0;
  cursor: pointer; display: block;
  box-shadow: 0 8px 32px var(--glow-color), 0 0 0 1px rgba(255,255,255,0.07) inset;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-get:hover { transform: translateY(-3px); box-shadow: 0 14px 44px rgba(59, 130, 246, 0.55); }
.btn-get::before {
  content:''; position:absolute; top:0; left:-120%; width:60%; height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,0.22),transparent);
  animation:shimmer 2.6s ease infinite; z-index:1; pointer-events:none;
}
@keyframes shimmer { 0%{left:-120%} 100%{left:220%} }
.btn-get-inner {
  padding: 16px 22px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  position: relative; z-index: 2;
}
.btn-get-inner::after { content:''; position:absolute; inset:0; background:linear-gradient(180deg,rgba(255,255,255,0.1),transparent 55%); pointer-events:none; border-radius:16px; }
.btn-get-texts { display:flex; flex-direction:column; align-items:center; gap:2px; }
.btn-get-main { font-size:1.15rem; font-weight:900; color:#fff; letter-spacing:-0.3px; line-height:1; }
.btn-get-sub { font-size:0.68rem; color:rgba(255,255,255,0.65); font-weight:600; letter-spacing:0.5px; text-transform:uppercase; }
.btn-get svg { width:22px; height:22px; stroke:#fff; fill:none; flex-shrink:0; }
.btn-get-badge { position:absolute; top:-1px; right:-1px; background:linear-gradient(135deg,#fbbf24,#f59e0b); color:#78350f; font-size:9px; font-weight:900; letter-spacing:0.5px; text-transform:uppercase; padding:3px 10px; border-radius:0 16px 0 10px; z-index:3; }

/* SCREENSHOTS */
.sec-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.sec-title { font-size:0.95rem; font-weight:700; color: var(--text-primary); display:flex; align-items:center; gap:7px; letter-spacing:-0.2px; margin-bottom: 0; }
.sec-title svg { width:17px; height:17px; stroke:#a78bfa; fill:none; }
.see-all {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.see-all:hover {
  color: #a78bfa;
}
.carousel { display:flex; gap:11px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:12px; padding-left:16px; padding-right:16px; scrollbar-width:none; -webkit-overflow-scrolling:touch; margin:0 -16px; }
.carousel::-webkit-scrollbar { display:none; }
.c-item { flex:0 0 195px; scroll-snap-align:center; border-radius:13px; overflow:hidden; border:1px solid rgba(139,92,246,0.2); background:#0d0f1a; box-shadow:0 8px 20px rgba(0,0,0,0.5); transition:transform 0.3s; }
.c-item:hover { transform:scale(1.03) translateY(-3px); }
.c-item img { width:100%; height:330px; object-fit:cover; display:block; }
.counter { display:flex; align-items:center; justify-content:center; gap:5px; margin-top:8px; }
.cdot { width:5px; height:5px; border-radius:999px; background:rgba(139,92,246,0.3); transition:all 0.3s; }
.cdot.on { background:#a78bfa; width:16px; }
.c-label { display: none; }

/* VIDEO */
.vid-card {
  position: relative;
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  background: #09090f;
  cursor: pointer;
  margin: 0 auto;
  border: 1.5px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 15px rgba(139, 92, 246, 0.15);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.vid-card:hover {
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 12px 35px rgba(0,0,0,0.7), 0 0 25px rgba(6, 182, 212, 0.35);
}
.vid-card.aspect-16-9 {
  aspect-ratio: 16 / 9;
}
.vid-card.aspect-1-1 {
  aspect-ratio: 1 / 1;
  max-width: 300px;
}
.vid-card.aspect-9-16 {
  aspect-ratio: 9 / 16;
  max-width: 240px;
}
.vid-card img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform 0.5s; }
.vid-card:hover img { transform:scale(1.04); }
.vid-overlay { position:absolute; inset:0; background:rgba(0,0,0,0.35); display:flex; align-items:center; justify-content:center; z-index:5; }
.play-ring { width:60px; height:60px; border-radius:50%; background:linear-gradient(135deg,#7c3aed,#06b6d4); display:flex; align-items:center; justify-content:center; box-shadow:0 0 0 10px rgba(139, 92, 246, 0.15),0 0 32px rgba(124,58,237,0.5); animation:playP 2.5s ease infinite; }
@keyframes playP { 0%,100%{box-shadow:0 0 0 10px rgba(139, 92, 246, 0.15),0 0 28px rgba(124,58,237,0.45)} 50%{box-shadow:0 0 0 16px rgba(139, 92, 246, 0.06),0 0 42px rgba(124,58,237,0.3)} }
.play-ring svg { width:22px; height:22px; fill:#fff; margin-left:3px; }

/* bottom spacer so content doesn't hide behind sticky footer */
.slx-spacer { height: 96px; }

/* ─── STICKY FOOTER DOWNLOAD BUTTON ─── */
.slx-footer {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(7,8,15,0.96); backdrop-filter: blur(22px);
  border-top: 1px solid rgba(109,40,217,0.18);
}
.btn-dl {
  width: 100%; position: relative; overflow: hidden;
  border: none; border-radius: 18px; padding: 0;
  cursor: pointer; display: block;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.45), 0 2px 0 rgba(255,255,255,0.06) inset;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-dl:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(37, 99, 235, 0.6); }
.btn-dl-inner {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0284c7 100%);
  padding: 13px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: relative; border-radius: 18px;
}
.btn-dl-inner::before { content:''; position:absolute; top:0; left:-120%; width:60%; height:100%; background:linear-gradient(90deg,transparent,rgba(255,255,255,0.18),transparent); animation:shimmer 2.2s ease infinite; pointer-events:none; }
.btn-dl-inner::after { content:''; position:absolute; inset:0; background:linear-gradient(180deg,rgba(255,255,255,0.1),transparent 60%); pointer-events:none; }
.btn-dl-icon-box {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}
.btn-dl-icon-box svg { width: 20px; height: 20px; stroke: #fff; fill: none; }
.btn-dl-texts { display: flex; flex-direction: column; align-items: flex-start; flex-grow: 1; gap: 1px; }
.btn-dl-main { font-size: 1.15rem; font-weight: 800; color: #fff; letter-spacing: -0.3px; line-height: 1.1; }
.btn-dl-sub { font-size: 0.68rem; color: #00ffd0; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.btn-dl-badge {
  background: #0f172a; border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff; font-size: 9px; font-weight: 800; letter-spacing: 0.5px;
  text-transform: uppercase; padding: 5px 12px; border-radius: 8px; flex-shrink: 0;
}

/* Admin Dashboard styling specific rules (if any needed in style.css) */
.admin-card {
  padding: 2.5rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.admin-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  background: linear-gradient(135deg,#a78bfa,#38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}
.form-control {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  color: #f3f4f6;
  transition: all 0.3s ease;
  width: 100%;
}
.form-control:focus {
  outline: none;
  border-color: #a78bfa;
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.4);
  background: rgba(255,255,255,0.05);
}
.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media(min-width: 640px) {
  .row {
    grid-template-columns: 1fr 1fr;
  }
}
.btn-container {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.btn-admin {
  padding: 0.9rem 1.75rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
}
.btn-admin-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}
.btn-admin-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6);
}
.btn-admin-secondary {
  background: rgba(255,255,255,0.05);
  color: #f3f4f6;
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-admin-secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.screenshot-url-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.screenshot-url-item {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.screenshot-url-item button {
  background: #ef4444;
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.screenshot-url-item button:hover {
  background: #dc2626;
}
.alert {
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
}
.alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
}
.login-container {
  max-width: 420px;
  width: 100%;
  margin: 8% auto;
  padding: 2.5rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}
.login-title {
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.5px;
}
