﻿/* ===========================
   ZAVEX - Premium CSS
   Mobile-First Design
   =========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #08080f;
  --bg2: #0f0f1a;
  --card: rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.08);
  --accent: #7c3aed;
  --accent2: #06b6d4;
  --accent-glow: rgba(124,58,237,0.25);
  --text: #f1f0ff;
  --text-2: #a09fc0;
  --text-3: #6b6a8a;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Background Orbs ── */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(60px);
  animation: drift 12s ease-in-out infinite alternate;
}
.orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
  top: -10%; left: -15%;
  animation-delay: 0s;
}
.orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
  top: 30%; right: -10%;
  animation-delay: -4s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 70%);
  bottom: 10%; left: 30%;
  animation-delay: -8s;
}
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.05); }
}

/* ── Header ── */
.header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(8,8,15,0.85);
  border-bottom: 1px solid var(--card-border);
}
.header-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: white; letter-spacing: -1px;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.logo-icon.small { width: 28px; height: 28px; font-size: 15px; border-radius: 8px; }
.logo-text { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--text-2);
  text-decoration: none; transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

/* ── Main & Hero ── */
main { position: relative; z-index: 1; }
.hero {
  min-height: calc(100vh - 63px);
  display: flex; flex-direction: column; align-items: center;
  padding: 56px 20px 80px;
  text-align: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 100px;
  padding: 6px 14px; font-size: 12px; font-weight: 600;
  color: #c4b5fd; margin-bottom: 28px;
  animation: fadeDown 0.6s ease both;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 6px #a78bfa;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(36px, 8vw, 62px);
  font-weight: 900; line-height: 1.1; letter-spacing: -2px;
  margin-bottom: 18px;
  animation: fadeDown 0.6s 0.1s ease both;
}
.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #06b6d4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(14px, 3vw, 17px); color: var(--text-2);
  line-height: 1.65; max-width: 500px;
  margin-bottom: 44px;
  animation: fadeDown 0.6s 0.2s ease both;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Input Card ── */
.input-card {
  width: 100%; max-width: 620px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 22px;
  padding: 20px;
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(124,58,237,0.08);
  animation: fadeDown 0.6s 0.3s ease both;
}

/* Platform tabs */
.platform-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.ptab {
  padding: 6px 12px; border-radius: 20px; border: 1px solid var(--card-border);
  background: transparent; color: var(--text-2);
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all var(--transition); white-space: nowrap;
}
.ptab:hover { color: var(--text); border-color: rgba(124,58,237,0.4); }
.ptab.active {
  background: rgba(124,58,237,0.2);
  border-color: rgba(124,58,237,0.5);
  color: #c4b5fd;
}

/* Input row */
.input-row { display: flex; gap: 10px; flex-direction: column; }
.input-wrap {
  flex: 1 1 auto; min-width: 0; position: relative;
  display: flex; align-items: center;
}
.input-link-icon {
  position: absolute; left: 14px; color: var(--text-3);
  pointer-events: none; flex-shrink: 0;
}
.url-input {
  width: 100%; height: 52px;
  min-width: 0;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 14px; font-weight: 400;
  padding: 0 50px 0 44px;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color var(--transition), background var(--transition);
  font-family: inherit;
}
.url-input::placeholder { color: var(--text-3); }
.url-input:focus {
  border-color: rgba(124,58,237,0.5);
  background: rgba(124,58,237,0.06);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.paste-btn {
  position: absolute; right: 10px;
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.25);
  color: #a78bfa; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.paste-btn:hover { background: rgba(124,58,237,0.28); }
.paste-btn:active { transform: scale(0.92); }

.fetch-btn {
  height: 52px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), #5b21b6);
  border: none; color: white;
  font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer; padding: 0 28px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: all var(--transition);
  box-shadow: 0 6px 20px var(--accent-glow);
  letter-spacing: -0.2px;
  width: 100%;
}
.fetch-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px var(--accent-glow); }
.fetch-btn:active { transform: translateY(0) scale(0.98); }
.fetch-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.detected-badge {
  margin-top: 12px;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #6ee7b7; font-weight: 500;
}
.detected-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #6ee7b7; box-shadow: 0 0 5px #6ee7b7;
}

/* ── State Cards ── */
.state-card {
  width: 100%; max-width: 620px; margin-top: 24px;
  border-radius: 22px; padding: 32px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  animation: fadeUp 0.4s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Loading */
.loading-card { text-align: center; }
.spinner-wrap { display: flex; justify-content: center; margin-bottom: 20px; }
.spinner {
  width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid rgba(124,58,237,0.2);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.state-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.state-sub { font-size: 13px; color: var(--text-2); }

/* Result */
.result-header {
  display: flex; gap: 16px; margin-bottom: 22px;
  align-items: flex-start;
}
.result-thumb-wrap {
  position: relative; flex-shrink: 0;
  width: 120px; height: 90px; border-radius: 12px; overflow: hidden;
  background: rgba(255,255,255,0.06);
}
.result-thumb {
  width: 100%; height: 100%; object-fit: cover;
}
.result-platform-pill {
  position: absolute; top: 6px; left: 6px;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  border-radius: 20px; padding: 2px 8px;
  font-size: 10px; font-weight: 700; color: white;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.result-duration {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(0,0,0,0.8);
  border-radius: 4px; padding: 2px 6px;
  font-size: 10px; font-weight: 600; color: white;
}
.result-meta { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.result-title {
  font-size: 14px; font-weight: 700; line-height: 1.4;
  margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
}
.result-uploader { font-size: 12px; color: var(--text-2); }

.quality-label {
  font-size: 12px; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 12px;
}
.formats-grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.format-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.08);
  color: var(--text); cursor: pointer;
  transition: all var(--transition);
  text-decoration: none; gap: 12px;
}
.format-btn:hover {
  background: rgba(124,58,237,0.12);
  border-color: rgba(124,58,237,0.35);
  transform: translateX(2px);
}
.format-btn:active { transform: scale(0.98); }

.fmt-left { display: flex; align-items: center; gap: 12px; }
.fmt-quality {
  font-size: 15px; font-weight: 800; color: var(--text);
  min-width: 44px;
}
.fmt-details { display: flex; flex-direction: column; gap: 2px; }
.fmt-ext {
  font-size: 11px; font-weight: 600; color: var(--accent2);
  text-transform: uppercase;
}
.fmt-size { font-size: 11px; color: var(--text-3); }
.fmt-badge {
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px;
}
.fmt-badge.video { background: rgba(124,58,237,0.2); color: #c4b5fd; }
.fmt-badge.audio { background: rgba(6,182,212,0.15); color: #67e8f9; }
.fmt-badge.best  { background: rgba(16,185,129,0.15); color: #6ee7b7; }

.fmt-dl-icon { color: var(--text-3); flex-shrink: 0; }

.new-btn {
  width: 100%; height: 44px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  color: var(--text-2); font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: all var(--transition);
}
.new-btn:hover { background: rgba(255,255,255,0.08); color: var(--text); }

/* Error */
.error-card { text-align: center; }
.error-icon-wrap {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; color: #f87171;
}
.retry-btn {
  margin-top: 20px; height: 44px; padding: 0 28px;
  border-radius: var(--radius-sm);
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
  color: #f87171; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: all var(--transition);
}
.retry-btn:hover { background: rgba(239,68,68,0.22); }
.block-msg { width: 100%; text-align: center; padding: 24px 16px; }
.block-title { font-size: 16px; font-weight: 800; color: #fbbf24; margin-bottom: 8px; }
.block-sub { font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* ── Sections ── */
.platforms-section, .how-section, .faq-section {
  padding: 80px 20px;
  max-width: 1100px; margin: 0 auto;
}
.section-title {
  text-align: center; font-size: clamp(26px, 5vw, 40px);
  font-weight: 900; letter-spacing: -1px; margin-bottom: 10px;
}
.section-sub {
  text-align: center; color: var(--text-2); font-size: 15px; margin-bottom: 48px;
}

/* Platforms Grid */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.platform-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 24px 16px;
  text-align: center; position: relative;
  transition: all var(--transition);
}
.platform-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.p-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.tiktok-grad { background: linear-gradient(135deg, #010101, #69c9d0); }
.yt-grad     { background: linear-gradient(135deg, #ff0000, #cc0000); }
.ig-grad     { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.fb-grad     { background: linear-gradient(135deg, #1877f2, #0d5ab9); }
.tw-grad     { background: linear-gradient(135deg, #1a1a1a, #555); }
.vimeo-grad  { background: linear-gradient(135deg, #1ab7ea, #0d7abf); }

.platform-card h3 { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.platform-card p  { font-size: 11px; color: var(--text-2); line-height: 1.5; }
.p-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 9px; font-weight: 700; padding: 2px 7px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px;
  background: rgba(124,58,237,0.2); color: #c4b5fd;
  border: 1px solid rgba(124,58,237,0.3);
}

/* Steps */
.steps-grid {
  display: flex; flex-direction: column; gap: 0; align-items: center;
}
.step-arrow { color: var(--text-3); transform: rotate(90deg); margin: 8px 0; }
.step-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 28px 24px;
  text-align: center; width: 100%; max-width: 360px;
  position: relative;
  transition: all var(--transition);
}
.step-card:hover { border-color: rgba(124,58,237,0.3); }
.step-num {
  font-size: 11px; font-weight: 800; color: rgba(124,58,237,0.5);
  letter-spacing: 1px; margin-bottom: 12px;
}
.step-icon-wrap {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; color: #a78bfa;
}
.step-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.step-card p  { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* FAQ */
.faq-list { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: rgba(124,58,237,0.3); }
.faq-q {
  width: 100%; padding: 16px 18px;
  background: transparent; border: none;
  color: var(--text); font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-align: left;
  transition: color var(--transition);
}
.faq-q svg { flex-shrink: 0; color: var(--text-3); transition: transform var(--transition); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  display: none; padding: 0 18px 16px;
  font-size: 13px; color: var(--text-2); line-height: 1.65;
}
.faq-item.open .faq-a { display: block; }

/* Footer */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 48px 20px;
  text-align: center;
  position: relative; z-index: 1;
}
.footer-inner { max-width: 500px; margin: 0 auto; }
.footer-logo {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 18px; font-weight: 800; margin-bottom: 12px;
}
.footer-tagline { font-size: 13px; color: var(--text-2); margin-bottom: 20px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.footer-links a { font-size: 12px; color: var(--text-3); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--text-2); }
.footer-copy { font-size: 11px; color: var(--text-3); line-height: 1.7; }

/* ── TABLET 640px ── */
@media (min-width: 640px) {
  .input-row { flex-direction: row; }
  .fetch-btn { width: auto; min-width: 140px; }
  .steps-grid { flex-direction: row; align-items: stretch; gap: 0; }
  .step-arrow { transform: rotate(0deg); margin: 0 8px; align-self: center; }
  .step-card { flex: 1; }
}

/* ── MOBILE TWEAKS ── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 40px 16px 60px; }
  .hero-title { letter-spacing: -1.5px; font-size: 1.8rem; }
  .input-card { padding: 16px; border-radius: 18px; }
  .platform-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .platform-tabs::-webkit-scrollbar { display: none; }
  .result-thumb-wrap { width: 100px; height: 80px; }
  .platforms-section, .how-section, .faq-section { padding: 60px 16px; }
  .platforms-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .platform-card { padding: 18px 10px; }
  .p-icon { width: 44px; height: 44px; border-radius: 12px; }
  .p-icon svg { width: 20px; height: 20px; }
  .platform-card h3 { font-size: 12px; }

  /* Result card mobile */
  .result-card { padding: 16px; }
  .result-meta { gap: 8px; }
  .result-title { font-size: 1rem; overflow-wrap: anywhere; word-break: break-word; }
  .result-uploader { font-size: 0.8rem; }
  .result-duration { font-size: 0.75rem; }

  /* Format buttons mobile */
  .formats-grid { gap: 8px; }
  .format-btn { padding: 12px 14px; min-height: 48px; }
  .fmt-quality { font-size: 0.9rem; }
  .fmt-ext { font-size: 0.7rem; }
  .fmt-size { font-size: 0.65rem; }
  .fmt-badge { font-size: 0.6rem; padding: 2px 6px; }
  .fmt-dl-icon { width: 14px; height: 14px; }

  /* Loading card */
  .loading-card { padding: 20px; }
  .loading-text { font-size: 0.9rem; }

  /* Error card */
  .error-card { padding: 20px; }
  .error-title { font-size: 1rem; }
  .error-sub { font-size: 0.85rem; }

  /* Detected badge */
  .detected-badge { font-size: 0.75rem; padding: 4px 10px; }

  /* Section titles */
  .section-title { font-size: 1.4rem; }

  /* Container */
  .container { padding-left: 16px; padding-right: 16px; }

  /* Ad slots */
  .ad-slot { min-height: 200px; }

  /* Buttons */
  .btn-primary { padding: 12px 24px; font-size: 0.9rem; }
  .btn-secondary { padding: 10px 18px; font-size: 0.8rem; }
}

/* ── Toast ── */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: rgba(20,20,32,0.96); border: 1px solid var(--card-border);
  color: var(--text); font-size: 13px; font-weight: 500;
  padding: 12px 20px; border-radius: 12px; z-index: 9999;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none; transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { border-color: rgba(239,68,68,0.5); color: #fecaca; }
.toast.success { border-color: rgba(16,185,129,0.5); color: #a7f3d0; }

/* ── Preparing Overlay ── */
.preparing {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(6,6,12,0.75); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.preparing.show { opacity: 1; pointer-events: auto; }
.prep-card {
  background: rgba(24,24,38,0.95); border: 1px solid rgba(124,58,237,0.25);
  border-radius: 20px; padding: 28px 34px; width: min(360px, 88vw);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.6);
  animation: prepIn 0.3s cubic-bezier(0.4,0,0.2,1);
}
@keyframes prepIn { from { transform: scale(0.92) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.prep-visual { position: relative; width: 72px; height: 72px; }
.prep-orb { position: absolute; width: 26px; height: 26px; border-radius: 8px; }
.prep-orb-a { left: 6px; top: 6px; background: #06b6d4; box-shadow: 0 0 18px rgba(6,182,212,0.6); animation: orbMerge 1.6s ease-in-out infinite; }
.prep-orb-v { right: 6px; top: 6px; background: #7c3aed; box-shadow: 0 0 18px rgba(124,58,237,0.6); animation: orbMerge 1.6s ease-in-out 0.15s infinite; }
@keyframes orbMerge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(34px) scale(0.85); }
}
.prep-ring {
  position: absolute; inset: 6px; border-radius: 50%;
  border: 3px solid rgba(124,58,237,0.2); border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
.prep-dl { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); color: #fff; opacity: 0.85; }
.prep-text { font-size: 16px; font-weight: 800; color: var(--text); }
.prep-sub { font-size: 12px; color: var(--text-2); text-align: center; }
.prep-pct {
  font-size: 22px; font-weight: 800; letter-spacing: 0.5px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.prep-bar {
  width: 100%; height: 6px; border-radius: 6px; overflow: hidden;
  background: rgba(255,255,255,0.08); margin-top: 4px;
}
.prep-bar-fill {
  display: block; height: 100%; width: 40%;
  border-radius: 6px; background: linear-gradient(90deg, #7c3aed, #06b6d4);
  animation: prepBar 1.2s ease-in-out infinite;
  transition: width 0.2s ease;
}
@keyframes prepBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }

/* Best format highlight */
.format-btn.best-fmt {
  border-color: rgba(16,185,129,0.45);
  background: rgba(16,185,129,0.08);
}
.format-btn.best-fmt:hover { background: rgba(16,185,129,0.16); }

.fmt-badge.merge {
  background: rgba(124,58,237,0.18); color: #c4b5fd;
}

/* ── Ad Slots (monetization) ── */
.ad-slot {
  width: 100%;
  max-width: 620px;
  min-height: 280px;
  margin: 18px auto 0;
  border: 1px dashed rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
}
.ad-slot--leaderboard { min-height: 100px; }
.ad-slot--sm { min-height: 120px; }
.ad-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; opacity: 0.55;
}

/* ── Legal / Info pages ── */
.page-main { max-width: 860px; margin: 0 auto; padding: 48px 20px 72px; }
.page-hero { text-align: center; margin-bottom: 40px; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; margin-bottom: 10px; }
.page-sub { color: var(--text-2); font-size: 1.05rem; }
.page-content {
  background: var(--card-bg, rgba(20,20,32,0.6));
  border: 1px solid var(--card-border, rgba(255,255,255,0.08));
  border-radius: var(--radius, 16px);
  padding: 28px 30px; line-height: 1.7; color: var(--text-2);
}
.page-content h2 { color: var(--text); font-size: 1.2rem; margin: 28px 0 10px; font-weight: 800; }
.page-content h2:first-child { margin-top: 0; }
.page-content ul { padding-left: 20px; margin: 10px 0; }
.page-content li { margin: 6px 0; }
.page-content a { color: var(--accent, #7c3aed); font-weight: 600; }
.contact-email { font-size: 1.2rem; font-weight: 800; color: var(--accent2, #06b6d4) !important; }

/* ── Faster rendering ── */
.platforms-section, .how-section, .faq-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
.orb { will-change: transform; }

/* ── Image gallery cards ── */
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-bottom: 8px; }
.img-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.08);
  cursor: pointer; text-decoration: none; color: var(--text);
  transition: all var(--transition);
}
.img-card:hover { border-color: rgba(124,58,237,0.5); transform: translateY(-2px); }
.img-card:active { transform: scale(0.97); }
.img-thumb-wrap { position: relative; aspect-ratio: 1 / 1; background: #14141f; overflow: hidden; }
.img-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-thumb-badge {
  position: absolute; top: 6px; right: 6px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.5px;
  padding: 2px 6px; border-radius: 6px;
  background: rgba(8,8,15,0.75); color: #fff; text-transform: uppercase;
}
.img-meta { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 3px; }
.img-meta-title { font-size: 12px; font-weight: 700; }
.img-meta-sub { font-size: 10px; color: var(--text-3); }
.img-dl {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--accent2);
}
@media (max-width: 480px) {
  .img-grid { grid-template-columns: repeat(3, 1fr); }
}


