:root {
  --bg: #0e0b1a; --bg2: #1a1430; --fg: #fff; --muted: rgba(255,255,255,.72);
  --accent: #ffd166; --p1: #7b2ff7; --p2: #f107a3; --card: rgba(255,255,255,.07); --line: rgba(255,255,255,.12);
  --radius: 22px; --safe-b: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: radial-gradient(1200px 700px at 80% -10%, #3b1a7a 0%, transparent 60%), radial-gradient(900px 600px at -10% 110%, #5a0f4a 0%, transparent 60%), var(--bg); color: var(--fg); min-height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; -webkit-tap-highlight-color: transparent; }
main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 18px; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: calc(12px + env(safe-area-inset-top, 0px)) 18px 12px; max-width: 1100px; width: 100%; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 20px; color: #fff; text-decoration: none; letter-spacing: -.02em; }
.logo { width: 36px; height: 36px; flex: none; display: block; }
.topbar-right { display: flex; gap: 8px; align-items: center; }
.lang select { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; min-height: 40px; }
.lang option { color: #000; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; min-height: 40px; cursor: pointer; }

/* hero */
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: 28px 0 36px; }
h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 900;
  background: linear-gradient(90deg, #fff, #ffd1f3 60%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; line-height: 1.5; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.drop { border: 2px dashed rgba(255,255,255,.28); border-radius: var(--radius); padding: 22px; text-align: center; background: var(--card); transition: .2s; }
.drop.over { border-color: var(--accent); background: rgba(255,209,102,.1); transform: scale(1.01); }
.hint { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.hint.warn { color: var(--accent); }
.privacy { margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.error { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255,80,80,.15); border: 1px solid rgba(255,80,80,.4); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 16px; padding: 12px 18px; min-height: 48px;
  background: rgba(255,255,255,.12); cursor: pointer; font-weight: 700; transition: transform .12s, background .2s; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn:focus-visible, .tab:focus-visible, .chip:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: linear-gradient(135deg, var(--p1), var(--p2)); box-shadow: 0 10px 30px rgba(241,7,163,.35); }
.btn-xl { width: 100%; font-size: 19px; padding: 16px 22px; min-height: 60px; border-radius: 18px; }
.btn-ghost { background: transparent; border: 1px solid var(--line); margin-top: 14px; width: 100%; }
.btn-small { min-height: 42px; padding: 8px 14px; font-size: 15px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.hero-phone { display: flex; justify-content: center; }
.phone { width: min(300px, 70vw); aspect-ratio: 9/16; border-radius: 36px; padding: 10px; background: #000; box-shadow: 0 30px 80px rgba(123,47,247,.45), inset 0 0 0 2px #333; transform: rotate(3deg); }
.phone canvas { width: 100%; height: 100%; border-radius: 28px; display: block; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.howto { margin-bottom: 40px; }
.howto h2 { margin: 0 0 14px; font-size: 22px; }
.tabs { display: inline-flex; background: rgba(0,0,0,.3); padding: 4px; border-radius: 14px; gap: 4px; margin-bottom: 10px; }
.tab { border: 0; background: transparent; padding: 10px 18px; border-radius: 10px; cursor: pointer; font-weight: 700; min-height: 44px; }
.tab[aria-selected="true"] { background: #fff; color: #1a1430; }
.steps { margin: 8px 0 0; padding-inline-start: 22px; line-height: 1.6; font-size: 17px; }
.steps li { margin: 8px 0; padding-inline-start: 4px; }

/* results */
.results-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0 14px; }
.results-head h2 { margin: 0; font-size: 24px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 42px; padding: 0 6px; font-size: 15px; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 44px; height: 26px; border-radius: 99px; background: rgba(255,255,255,.25); position: relative; transition: .2s; flex: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--p2); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid var(--accent); }
.switch b { font-weight: 600; }

.carousel-wrap { position: relative; }
.carousel { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px calc((100% + 36px - min(340px, 78vw)) / 2) 16px; margin: 0 -18px; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 auto; width: min(340px, 78vw); scroll-snap-align: center; display: flex; flex-direction: column; gap: 10px; }
.slide .frame { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 9/16; background: #222; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.slide canvas { width: 100%; height: 100%; display: block; }
.slide .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slide .actions .btn { min-height: 46px; }
.slide .frame.locked { cursor: pointer; }
.nav { position: absolute; top: 45%; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); font-size: 30px; line-height: 1; cursor: pointer; backdrop-filter: blur(8px); }
.nav.prev { left: 0; } .nav.next { right: 0; }
.dots { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 4px 0; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.3); cursor: pointer; }
.dots button.on { background: #fff; width: 22px; border-radius: 9px; }
.dots button.lock { background: rgba(255,209,102,.45); }
.swipe-hint { text-align: center; color: var(--muted); font-size: 14px; margin: 6px 0 18px; }
.upsell { max-width: 520px; margin: 10px auto 40px; text-align: center; }
.upsell h3 { margin: 0 0 8px; font-size: 22px; }
.feats { list-style: none; padding: 0; margin: 12px 0 18px; text-align: start; display: inline-block; }
.feats li { margin: 8px 0; font-size: 17px; }
.feats li::before { content: '✓'; color: var(--accent); font-weight: 900; margin-inline-end: 10px; }

/* overlays */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(8,6,16,.78); backdrop-filter: blur(10px); padding: 18px; }
.loader { text-align: center; font-size: 18px; }
.bubbles { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; }
.bubbles i { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); animation: bounce 1s infinite ease-in-out; }
.bubbles i:nth-child(2) { animation-delay: .15s; background: var(--p2); } .bubbles i:nth-child(3) { animation-delay: .3s; background: #60a5fa; }
@keyframes bounce { 0%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-14px); } }
.modal { position: relative; width: 100%; max-width: 420px; max-height: 92vh; overflow: auto; background: linear-gradient(160deg, #2a1a52, #1a1430); border: 1px solid var(--line); border-radius: 28px; padding: 30px 24px calc(24px + var(--safe-b)); text-align: center; }
.modal h3 { font-size: 26px; margin: 6px 0 8px; }
.modal p { color: var(--muted); margin: 0 0 6px; }
.modal-icon { display: flex; justify-content: center; }
.close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); cursor: pointer; font-size: 18px; }
[dir="rtl"] .close { right: auto; left: 12px; }
details { margin-top: 18px; text-align: start; }
summary { cursor: pointer; color: var(--muted); font-size: 15px; padding: 8px 0; }
.keyform { display: flex; gap: 8px; margin-top: 8px; }
.keyform input { flex: 1; min-width: 0; min-height: 48px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.3); padding: 0 14px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); z-index: 60; background: #fff; color: #1a1430; font-weight: 700; padding: 12px 18px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: 90vw; text-align: center; }

.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 18px calc(24px + var(--safe-b)); }
.footer a { color: var(--muted); }
.footer p { margin: 6px 0 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 10px; padding-top: 10px; }
  .hero-phone { display: none; }
  .lead { font-size: 17px; }
  .nav { display: none; }
  .results-head h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 10px 18px 40px; line-height: 1.6; }
.legal h1 { font-size: 34px; }
.legal h2 { font-size: 20px; margin-top: 28px; }
.legal a { color: var(--accent); }
.legal .todo { background: rgba(255,209,102,.18); border-radius: 6px; padding: 0 4px; }

/* icons & trust */
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ico.tiny { width: 15px; height: 15px; }
.ico.big { width: 46px; height: 46px; stroke: var(--accent); stroke-width: 1.8; }
.ico.shield { width: 24px; height: 24px; stroke: #4ade80; }
.trustbox { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.28); }
.trustbox p { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.9); }
.trust { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .ico { width: 16px; height: 16px; stroke: #4ade80; stroke-width: 2.6; }
.faq { margin-bottom: 40px; }
.faq h2 { margin: 0 0 6px; font-size: 22px; }
.faq details { border-top: 1px solid var(--line); margin: 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { font-size: 16px; font-weight: 700; color: #fff; padding: 14px 0; min-height: 44px; list-style-position: outside; }
.faq details p { margin: 0 0 14px; color: var(--muted); line-height: 1.55; }
.pricerow { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px; margin: 4px 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); }
.pricerow b { font-size: 28px; color: #fff; font-variant-numeric: tabular-nums; }
.secure { display: flex; gap: 6px; align-items: center; justify-content: center; }
.modal-legal { font-size: 13px; margin-top: 14px !important; }
.modal-legal a { color: var(--muted); }

.madeby a { color: rgba(255,255,255,.75); text-decoration: none; }
.madeby b { color: #fff; }
