/* ===== Base & Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --card: #16161f;
  --border: #2a2a3a;
  --accent: #7c3aed;
  --accent2: #a855f7;
  --accent3: #06b6d4;
  --success: #10b981;
  --danger: #ef4444;
  --gold: #f59e0b;
  --text: #f0f0f8;
  --muted: #8888aa;
  --radius: 16px;
  --shadow: 0 8px 40px rgba(0,0,0,.5);
}

/* ===== Light Theme ===== */
[data-theme="light"] {
  --bg: #f0f0f8;
  --bg2: #ffffff;
  --card: #ffffff;
  --border: #dddde8;
  --text: #1a1a2e;
  --muted: #6b6b8a;
  --shadow: 0 8px 40px rgba(0,0,0,.08);
}
[data-theme="light"] .card {
  background: rgba(255,255,255,.88) !important;
  border-color: rgba(0,0,0,.07) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.07), inset 0 1px 0 rgba(255,255,255,.9) !important;
}
[data-theme="light"] .header { background: rgba(240,240,248,.92); }
[data-theme="light"] .input-wrap { background: #f5f5ff; }
[data-theme="light"] .format-btn { background: #f5f5ff; }
[data-theme="light"] .particle { opacity: .04; }
[data-theme="light"] .bg-particles { opacity: .5; }
[data-theme="light"] .bottom-nav { background: rgba(240,240,248,.96); }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== Particles ===== */
.bg-particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute; border-radius: 50%; opacity: .12;
  animation: float linear infinite;
}
@keyframes float {
  0%   { transform: translateY(110vh) scale(0); opacity: 0; }
  10%  { opacity: .15; }
  90%  { opacity: .15; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,15,.9);
  backdrop-filter: blur(14px);
}
.logo { display: flex; align-items: center; gap: .6rem; font-size: 1.4rem; font-weight: 900; }
.logo-name { color: #ffffff; }
[data-theme="light"] .logo-name { color: #1a1a2e; }
.logo-icon { font-size: 1.6rem; }
.accent { color: var(--accent2); }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ===== Ad Banners ===== */
.ad-banner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: .5rem 1rem;
  background: rgba(255,255,255,.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.top-ad { margin-bottom: .5rem; }
.mid-ad { margin: 1.5rem auto; max-width: 820px; border-radius: var(--radius); border: 1px solid var(--border); }
.footer-ad { margin-top: 1rem; }
.ad-label {
  position: absolute; top: 4px; right: 8px;
  font-size: .65rem; color: var(--muted); opacity: .6;
}
.ad-placeholder {
  width: 100%; min-height: 90px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255,255,255,.03); border: 1px dashed var(--border);
  border-radius: 8px; color: var(--muted); font-size: .8rem; text-align: center;
  padding: 1rem;
}
.ad-placeholder.large { min-height: 250px; font-size: 1rem; }

/* ===== Main ===== */
main { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: 2rem 1rem 4rem; }

/* ===== Hero ===== */
.hero { text-align: center; padding: 3rem 0 2rem; }
.hero-badge {
  display: inline-block; margin-bottom: 1.2rem;
  padding: .35rem 1rem; border-radius: 999px;
  background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.4);
  color: var(--accent2); font-size: .85rem; font-weight: 700;
}
.hero-title { font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 900; line-height: 1.15; margin-bottom: .8rem; }
.gradient-text {
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 2rem; }

/* ===== Card ===== */
.card {
  background: rgba(22,22,31,.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
  margin-bottom: 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 60px rgba(124,58,237,.15), inset 0 1px 0 rgba(255,255,255,.07);
}

/* ===== Input Card ===== */
.input-card { padding: 1.8rem; }
.input-wrap {
  display: flex; align-items: center; gap: .7rem;
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: 12px; padding: .6rem 1rem;
  transition: border-color .25s; margin-bottom: 1.1rem;
}
.input-wrap:focus-within { border-color: var(--accent); }
.input-icon { font-size: 1.1rem; flex-shrink: 0; }
.input-wrap input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-family: inherit; font-size: 1rem;
  direction: ltr; text-align: left;
}
.input-wrap input::placeholder { color: var(--muted); }
.paste-btn { background: none; border: none; cursor: pointer; font-size: 1.1rem; padding: .2rem; opacity: .7; transition: opacity .2s; }
.paste-btn:hover { opacity: 1; }

.btn-primary {
  width: 100%; padding: .9rem 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: none; border-radius: 12px;
  font-family: inherit; font-size: 1.05rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .6rem;
  transition: opacity .2s, transform .15s;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ===== Error ===== */
.error-box {
  display: flex; align-items: center; gap: .6rem;
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.35);
  border-radius: 10px; padding: .8rem 1rem; margin-top: .8rem;
  color: #fca5a5; font-size: .95rem;
}
.error-icon { font-size: 1.1rem; flex-shrink: 0; }

/* ===== Info Card ===== */
.video-meta { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1.4rem; }
.thumb-wrap {
  position: relative; width: 100%; border-radius: 12px;
  overflow: hidden; cursor: pointer; background: var(--bg2); line-height: 0;
}
.thumbnail {
  width: 100%; height: 220px; object-fit: cover;
  display: block; transition: transform .35s ease;
}
.thumb-wrap:hover .thumbnail { transform: scale(1.04); }
.thumb-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.28);
  opacity: 0; transition: opacity .25s;
}
.thumb-wrap:hover .thumb-play { opacity: 1; }
.thumb-play-icon {
  width: 58px; height: 58px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; line-height: 1;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  transition: transform .2s;
  padding-right: 3px;
}
.thumb-wrap:hover .thumb-play-icon { transform: scale(1.1); }
.thumb-open-hint {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  color: #fff; font-size: .7rem; font-weight: 700;
  padding: .22rem .55rem; border-radius: 5px;
  opacity: 0; transition: opacity .25s;
  direction: rtl;
}
.thumb-wrap:hover .thumb-open-hint { opacity: 1; }
.success-thumb {
  width: 100%; max-height: 170px; object-fit: cover;
  border-radius: 10px; margin-bottom: 1rem; display: block;
}
.video-details { flex: 1; min-width: 0; }
.platform-badge {
  display: inline-block; padding: .2rem .7rem; border-radius: 999px;
  background: rgba(124,58,237,.2); color: var(--accent2);
  font-size: .8rem; font-weight: 700; margin-bottom: .4rem;
}
.video-title {
  font-size: 1rem; font-weight: 700; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .4rem;
}
.video-stats { display: flex; gap: 1rem; flex-wrap: wrap; }
.stat { color: var(--muted); font-size: .85rem; }
.formats-title { font-size: 1rem; font-weight: 700; margin-bottom: .8rem; color: var(--muted); }
.formats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .7rem; }
.format-btn {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: .8rem .5rem; background: var(--bg2);
  border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer;
  font-family: inherit; color: var(--text);
  transition: border-color .2s, background .2s, transform .15s;
}
.format-btn:hover { border-color: var(--accent); background: rgba(124,58,237,.08); transform: translateY(-2px); }
.format-btn.active { border-color: var(--accent2); background: rgba(168,85,247,.15); }
.format-label { font-weight: 700; font-size: .95rem; }
.format-type { font-size: .75rem; color: var(--muted); }
.format-size { font-size: .72rem; color: var(--accent3); }

.btn-download-sel {
  margin-top: 1rem; width: 100%; padding: .9rem;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff; border: none; border-radius: 12px;
  font-family: inherit; font-size: 1.05rem; font-weight: 700;
  cursor: pointer; transition: opacity .2s, transform .15s;
}
.btn-download-sel:hover { opacity: .9; transform: translateY(-1px); }
.btn-download-sel:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ===== Progress ===== */
.progress-card { text-align: center; }
.progress-header { display: flex; justify-content: space-between; margin-bottom: .6rem; }
.progress-label { font-weight: 700; }
.progress-pct { color: var(--accent2); font-weight: 700; }
.progress-bar-wrap { background: var(--bg2); border-radius: 999px; height: 10px; overflow: hidden; margin-bottom: .6rem; }
.progress-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  border-radius: 999px; transition: width .4s ease;
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}
@keyframes shimmer { 0% { background-position: 200% center; } 100% { background-position: -200% center; } }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; }

/* ===== Success ===== */
.success-card { text-align: center; padding: 2.5rem; }
.success-icon { font-size: 3rem; margin-bottom: .8rem; }
.success-card h3 { font-size: 1.4rem; font-weight: 900; margin-bottom: .4rem; }
.success-card p { color: var(--muted); margin-bottom: 1.5rem; }
.btn-download {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 2rem; border-radius: 12px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem;
  transition: opacity .2s; margin-bottom: .8rem;
}
.btn-download:hover { opacity: .9; }
.btn-ghost {
  display: block; width: 100%; margin-top: .5rem;
  padding: .7rem; border-radius: 12px;
  background: none; border: 1.5px solid var(--border);
  color: var(--muted); font-family: inherit; font-size: .95rem;
  cursor: pointer; transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

/* ===== Platforms ===== */
.platforms-section { margin-top: 4rem; }
.section-title { text-align: center; font-size: 1.6rem; font-weight: 900; margin-bottom: .6rem; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 1.5rem; font-size: .95rem; }
.platforms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 1rem; }
.platforms-grid.three { grid-template-columns: repeat(3, 1fr); max-width: 420px; margin: 0 auto; }
.platform-card {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 1.5rem .5rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); transition: transform .2s, border-color .2s;
}
.platform-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.platform-card.featured { border-color: rgba(168,85,247,.3); }
.p-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 900;
}
.p-icon.tk { background: #010101; color: #fff; }
.p-icon.ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.p-icon.fb { background: #1877f2; color: #fff; }
.p-icon.yt { background: #ff0000; color: #fff; font-size:1.8rem; }
.platform-card span { font-size: .9rem; font-weight: 700; color: var(--muted); }

/* ===== Pricing ===== */
.pricing-section { margin-top: 5rem; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.5rem; }
.plan-card {
  position: relative;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow); transition: transform .2s;
}
.plan-card:hover { transform: translateY(-4px); }
.plan-card.premium {
  border-color: var(--gold);
  background: linear-gradient(135deg, #16161f, #1e1a10);
  box-shadow: 0 8px 40px rgba(245,158,11,.15);
}
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), #f97316);
  color: #000; font-size: .8rem; font-weight: 900;
  padding: .3rem 1rem; border-radius: 999px; white-space: nowrap;
}
.plan-header { margin-bottom: 1.2rem; }
.plan-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--muted); margin-bottom: .4rem; }
.plan-price { display: flex; align-items: baseline; gap: .2rem; }
.price-amount { font-size: 2.4rem; font-weight: 900; }
.plan-card.premium .price-amount { color: var(--gold); }
.price-period { color: var(--muted); font-size: .9rem; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.5rem; }
.feat { font-size: .9rem; }
.feat.no { color: var(--muted); }

.plan-btn {
  display: block; width: 100%; padding: .85rem;
  border-radius: 12px; border: none; font-family: inherit;
  font-size: .95rem; font-weight: 700; cursor: pointer;
  text-align: center; text-decoration: none; transition: opacity .2s, transform .15s;
}
.plan-btn:hover { opacity: .9; transform: translateY(-1px); }
.free-btn {
  background: var(--bg2); color: var(--text);
  border: 1.5px solid var(--border);
}
.premium-btn {
  background: linear-gradient(135deg, var(--gold), #f97316);
  color: #000;
}

/* ===== How Section ===== */
.how-section { margin-top: 5rem; }
.steps-grid { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.step { flex: 1; min-width: 150px; max-width: 200px; text-align: center; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: 1.3rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center; margin: 0 auto .8rem;
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .85rem; }
.step-arrow { font-size: 1.5rem; color: var(--accent2); flex-shrink: 0; }

/* ===== Footer ===== */
.footer {
  text-align: center; padding: 2rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: .85rem;
  position: relative; z-index: 1;
}
.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-top: .5rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .82rem; }
.footer-links a:hover { color: var(--text); }

/* ===== Ad Modal (Interstitial) ===== */
.ad-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.85); backdrop-filter: blur(4px);
}
.ad-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.ad-modal-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; width: 100%; max-width: 500px;
  box-shadow: 0 20px 60px rgba(0,0,0,.8);
  overflow: hidden;
}
.ad-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.ad-modal-title { font-weight: 700; font-size: 1rem; }
.ad-skip-info { font-size: .85rem; color: var(--muted); }
.ad-skip-info strong { color: var(--accent2); }
.ad-modal-content { padding: 1.2rem; }
.ad-modal-footer { padding: 1rem 1.3rem; border-top: 1px solid var(--border); }
.ad-progress-bar { background: var(--bg2); border-radius: 999px; height: 6px; overflow: hidden; margin-bottom: .8rem; }
.ad-progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 999px; transition: width .5s linear;
}
.ad-skip-btn {
  width: 100%; padding: .85rem;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff; border: none; border-radius: 12px;
  font-family: inherit; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: opacity .2s;
  margin-bottom: .6rem;
}
.ad-skip-btn:disabled { opacity: .4; cursor: not-allowed; }
.ad-skip-btn:not(:disabled):hover { opacity: .9; }
.ad-upgrade-link {
  display: block; text-align: center;
  color: var(--gold); font-size: .85rem; font-weight: 600;
  text-decoration: none; transition: opacity .2s;
}
.ad-upgrade-link:hover { opacity: .8; }

/* ===== Install PWA Banner ===== */
.install-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 500;
  background: linear-gradient(135deg, #1e1a2e, #16161f);
  border: 1px solid var(--accent);
  border-radius: 16px; padding: 1rem 1.2rem;
  display: flex; align-items: center; gap: .8rem;
  box-shadow: 0 8px 32px rgba(124,58,237,.3);
  animation: slideUp .4s ease;
}
@keyframes slideUp { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.install-icon { font-size: 2rem; flex-shrink: 0; }
.install-text { flex: 1; display: flex; flex-direction: column; gap: .1rem; }
.install-text strong { font-size: .95rem; font-weight: 800; }
.install-text span { font-size: .78rem; color: var(--muted); }
.install-confirm {
  padding: .5rem 1rem; border-radius: 10px; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-family: inherit; font-size: .85rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.install-dismiss {
  background: none; border: none; color: var(--muted);
  font-size: 1rem; cursor: pointer; flex-shrink: 0; padding: .2rem;
}

/* ===== Spinner ===== */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite; margin-left: .4rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Stats Bar ===== */
.stats-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; margin: 1.5rem auto 0;
  background: rgba(124,58,237,.08); border: 1px solid rgba(124,58,237,.2);
  border-radius: 999px; padding: .7rem 2rem; width: fit-content;
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: .1rem; }
.stat-num { font-size: 1.1rem; font-weight: 900; color: var(--accent2); }
.stat-desc { font-size: .72rem; color: var(--muted); }
.stat-divider { width: 1px; height: 30px; background: var(--border); }

/* ===== Rating ===== */
.rating-section { margin-top: 2rem; }
.p-icon.pt { background: #e60023; color: #fff; font-size: 1.6rem; font-weight: 900; }

.star {
  font-size: 2.2rem; cursor: pointer; color: #444; transition: color .15s, transform .15s;
  user-select: none;
}
.star.active { color: #f59e0b; transform: scale(1.1); }
.star.hover-active { color: #f59e0b; }

/* ===== Guide ===== */
.guide-section { margin-top: 2rem; }

/* ===== Skeleton Loading ===== */
.skeleton-box {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.1) 50%, rgba(255,255,255,.04) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== Confetti ===== */
@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg) scale(.4); opacity: 0; }
}

/* ===== Theme Toggle ===== */
.theme-toggle {
  background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: .35rem .65rem;
  cursor: pointer; color: var(--muted); font-size: 1rem;
  transition: background .2s, color .2s; flex-shrink: 0;
}
.theme-toggle:hover { background: var(--bg2); color: var(--text); }

/* ===== Circular Progress ===== */
.progress-card { text-align: center; padding: 2rem; }
#progressCircle { transition: stroke-dashoffset .4s ease; }

/* ===== Bottom Navigation (mobile) ===== */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(16,16,24,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: .45rem 0 calc(.45rem + env(safe-area-inset-bottom));
}
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem;
  color: var(--muted); text-decoration: none; font-size: .65rem; font-weight: 700;
  padding: .25rem 0; transition: color .2s; cursor: pointer; border: none; background: none;
  font-family: inherit;
}
.bottom-nav-item span:first-child { font-size: 1.3rem; line-height: 1; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--accent2); }

/* ===== Utilities ===== */
.hidden { display: none !important; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .header { padding: 1rem; }
  .header { flex-wrap: wrap; }
  .theme-toggle { order: 2; }
  .nav-links { display: flex; gap: .8rem; width: 100%; justify-content: center; padding-top: .3rem; border-top: 1px solid rgba(255,255,255,.08); margin-top: .3rem; order: 3; }
  .nav-links a { font-size: .78rem; }
.pricing-grid { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .platforms-grid.three { grid-template-columns: repeat(3, 1fr); }
  .bottom-nav { display: flex; }
  main { padding-bottom: 5.5rem; }
  .install-banner { bottom: 5rem; }
}
