/* ============================================================== دقة | Deqaa
   Premium RTL Arabic design — luxurious dark navy + gold + emerald accent.
   ============================================================== */
:root {
  --bg: #05070f;
  --bg-soft: #0a0f1d;
  --bg-card: #0d1424;
  --bg-card-2: #111a2e;
  --bg-elev: #16203a;
  --bg-glass: rgba(13, 20, 36, 0.72);
  --line: #1d2742;
  --line-soft: #1a2338;
  --text: #f3f6ff;
  --muted: #8d97b6;
  --accent: #ffcb2b;
  --accent-2: #ffb84d;
  --accent-glow: rgba(255, 203, 43, 0.35);
  --accent-soft: rgba(255, 203, 43, 0.12);
  --emerald: #34d399;
  --emerald-soft: rgba(52, 211, 153, 0.13);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.12);
  --bad: #fb7185;
  --bad-soft: rgba(248, 113, 113, 0.13);
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 10px 45px rgba(255, 203, 43, 0.18);
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
::selection { background: var(--accent); color: #111; }

body {
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(255, 203, 43, 0.10), transparent 60%),
    radial-gradient(700px 600px at -20% 40%, rgba(52, 211, 153, 0.06), transparent 55%),
    radial-gradient(600px 400px at 50% 110%, rgba(56, 189, 248, 0.06), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}
/* Subtle grid backdrop */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 60%, transparent 100%);
}

main, header, footer { position: relative; z-index: 1; }

/* ============ Topbar ============ */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line-soft);
  position: sticky; top: 0; z-index: 30;
  background: rgba(5, 7, 15, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.6rem;
  background: linear-gradient(155deg, #ffd75e, #ffb84d);
  border-radius: 14px;
  box-shadow: var(--shadow-glow), inset 0 -3px 6px rgba(0,0,0,.18), inset 0 2px 2px rgba(255,255,255,.5);
  transition: transform .25s;
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-name { font-size: 1.35rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.3px; }
.brand-name span { color: var(--accent); font-weight: 600; font-size: 1rem; letter-spacing: 0.5px; }
.brand-tag { color: var(--muted); font-size: .72rem; }

.topnav { display: flex; align-items: center; gap: 20px; }
.topnav a { color: var(--muted); text-decoration: none; font-size: .88rem; transition: color .2s; white-space: nowrap; font-weight: 500; }
.topnav a:hover { color: var(--accent); }
.nav-cta { border: 1px solid var(--accent); color: var(--accent) !important; padding: 9px 18px; border-radius: 999px; font-weight: 700; background: transparent; }
.nav-cta:hover { background: var(--accent); color: #111 !important; }

/* ============ Hero ============ */
.hero { max-width: 1200px; margin: 0 auto; padding: clamp(36px, 6vh, 76px) clamp(18px, 4vw, 40px) 26px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; font-size: .68rem; font-weight: 700; margin-bottom: 18px; background: var(--accent-soft); border: 1px solid rgba(255,203,43,.25); padding: 6px 14px; border-radius: 999px; width: fit-content; }
.eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.headline { font-size: clamp(2.2rem, 6.2vw, 3.9rem); font-weight: 800; line-height: 1.18; letter-spacing: -1px; }
.headline .gradient {
  background: linear-gradient(120deg, #fff 0%, #ffd75e 25%, #ffcb2b 45%, #fff 70%, #ffe89a 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 3.6s linear infinite;
}
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
.headline .plain { color: var(--muted); font-weight: 500; display: block; font-size: .55em; margin-top: 10px; }
.sub { color: var(--muted); max-width: 34rem; margin: 20px 0 26px; font-size: 1.02rem; }
.sub b { color: var(--accent); font-weight: 700; }
.sub .hl { color: var(--text); font-weight: 600; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(160deg, #ffd75e, #f5c518 60%, #e0a800);
  color: #131613; border: none;
  padding: 15px 28px; border-radius: 16px; font-family: var(--font);
  font-size: 1.05rem; font-weight: 800; cursor: pointer; text-decoration: none;
  transition: transform .2s, box-shadow .25s, filter .2s;
  box-shadow: 0 14px 40px rgba(245,197,24,.32), inset 0 2px 2px rgba(255,255,255,.6), inset 0 -3px 6px rgba(0,0,0,.15);
}
.btn-primary:hover { transform: translateY(-3px); filter: brightness(1.05); box-shadow: 0 20px 55px rgba(245,197,24,.42), inset 0 2px 2px rgba(255,255,255,.6); }
.btn-primary:disabled { opacity: .55; cursor: wait; transform: none; }
.btn-primary.big { font-size: 1.12rem; padding: 17px 32px; }
.btn-ghost { background: rgba(255,255,255,.03); color: var(--muted); border: 1px solid var(--line); padding: 14px 22px; border-radius: 14px; font-family: var(--font); font-size: .93rem; cursor: pointer; transition: all .2s; }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }

.trust-row { display: flex; gap: 18px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.trust-item b { color: var(--text); }
.trust-item .tick { color: var(--emerald); font-size: 1.05rem; }

/* dropzone */
.dropzone {
  margin-top: 18px;
  border: 2px dashed #2c3a5e; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(13,20,36,.6), rgba(17,26,46,.6));
  padding: 30px 20px; cursor: pointer; text-align: center;
  transition: border-color .25s, transform .2s, box-shadow .25s, background .25s;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-glow); outline: none; background: var(--accent-soft); }
.dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dz-icon { width: 58px; height: 58px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(160deg, rgba(255,203,43,.15), rgba(255,203,43,.05)); font-size: 1.7rem; }
.dz-title { font-size: 1.15rem; font-weight: 700; }
.dz-hint { color: var(--muted); margin-top: 4px; font-size: .85rem; }
.privacy-note { color: var(--muted); font-size: .8rem; margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.privacy-note b { color: var(--emerald); }

/* Phone mock on the right */
.hero-visual { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: clamp(220px, 26vw, 300px);
  aspect-ratio: 9 / 16.5;
  border-radius: 42px;
  background: linear-gradient(165deg, #1c2741, #0b101d 60%);
  border: 3px solid #2a3554;
  box-shadow: var(--shadow), 0 0 0 8px rgba(255,203,43,.06), 0 0 80px rgba(255,203,43,.12);
  overflow: hidden;
}
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 90px; height: 18px; background: #000; border-radius: 12px; z-index: 3; }
.phone-screen {
  position: absolute; inset: 12px 10px; border-radius: 30px; overflow: hidden;
  background: linear-gradient(170deg, #2a1b3d 0%, #1a1030 55%, #0b0618 100%);
}
.scan { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(255,203,43,.25) 48%, rgba(255, 230, 140, .9) 50%, rgba(255,203,43,.25) 52%, transparent 70%); animation: scan 2.6s ease-in-out infinite; z-index: 2; mix-blend-mode: screen; }
@keyframes scan { 0%,100% { transform: translateY(-40%); opacity: 0; } 25% { opacity: 1; } 50% { transform: translateY(40%); opacity: .9; } 75% { opacity: 1; } }
.phone-content { position: absolute; inset: 0; padding: 14px; display: flex; flex-direction: column; z-index: 1; }
.ph-eyebrow { color: rgba(255,255,255,.55); font-size: .62rem; letter-spacing: 2px; font-weight: 700; }
.ph-title { color: #fff; font-size: 1.05rem; font-weight: 800; margin-top: 2px; }
.ph-sub { color: rgba(255,255,255,.65); font-size: .6rem; margin-top: 2px; }
.ph-tools { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.ph-item { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.09); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 8px 10px; font-size: .7rem; color: rgba(255,255,255,.92); }
.ph-item b { color: #fff; }
.ph-item .green { color: var(--emerald); }
.ph-item small { color: rgba(255,255,255,.55); display: block; font-size: .6rem; }
.ph-badge { position: absolute; top: 44%; left: 0; right: 0; text-align: center; z-index: 3; }
.ph-badge-tag { display: inline-block; background: var(--accent); color: #111; font-weight: 800; font-size: .58rem; letter-spacing: 1.5px; padding: 5px 12px; border-radius: 6px; box-shadow: 0 6px 20px rgba(255,203,43,.4); transform: rotate(-3deg); }

/* ============ Section titles / containers ============ */
.section-head { text-align: center; max-width: 800px; margin: 72px auto 28px; padding: 0 20px; }
.section-eyebrow { color: var(--accent); font-size: .68rem; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 800; margin-bottom: 12px; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -0.5px; }
.section-sub { color: var(--muted); margin-top: 10px; font-size: .98rem; }

/* ============ Stepper ============ */
.steps { list-style: none; display: flex; justify-content: center; gap: 10px; margin: 40px auto 0; padding: 0 16px; max-width: 780px; flex-wrap: wrap; }
.step { flex: 1 1 0; min-width: 112px; text-align: center; color: var(--muted); font-size: .8rem; border: 1px solid var(--line); background: var(--bg-card); padding: 12px 8px; border-radius: var(--radius-sm); transition: all .3s; }
.step span { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-elev); color: var(--muted); align-items: center; justify-content: center; margin-inline-end: 6px; font-size: .78rem; font-family: var(--mono); transition: all .3s; }
.step.is-active { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 30px rgba(255,203,43,.15); }
.step.is-active span { background: var(--accent); color: #111; }
.step.is-done { border-color: rgba(52,211,153,.4); color: var(--emerald); }
.step.is-done span { background: var(--emerald); color: #052014; }

/* ============ Panel / stages (keep IDs for app.js) ============ */
.panel { max-width: 880px; margin: 30px auto 0; padding: 0 16px 16px; }
.stage { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stage::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .8; }
.hidden { display: none !important; }
.stage-title { font-size: 1.25rem; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.muted { color: var(--muted); }
.chip { font-family: var(--mono); font-size: .7rem; background: var(--bg-elev); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 3px 12px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }

#stageLoading { text-align: center; padding: 46px 28px; }
.spinner { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; border: 5px solid var(--bg-elev); border-top-color: var(--accent); animation: spin .9s linear infinite; box-shadow: 0 0 30px rgba(255,203,43,.15); }
@keyframes spin { to { transform: rotate(360deg); } }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.card { background: var(--bg-card-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-2px); border-color: rgba(255,203,43,.3); }
.card-label { color: var(--muted); font-size: .75rem; margin-bottom: 4px; letter-spacing: .5px; }
.card-value { font-family: var(--mono); font-size: 1.15rem; font-weight: 500; direction: ltr; text-align: end; color: var(--text); }
.card-value.small { font-size: .85rem; word-break: break-word; }
.card-sub { color: var(--muted); font-size: .72rem; margin-top: 2px; direction: ltr; text-align: end; }

.checks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.check-item { display: inline-flex; align-items: center; gap: 8px; font-size: .83rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); }
.check-item.ok { border-color: rgba(52,211,153,.4); color: var(--emerald); background: rgba(52,211,153,.06); }
.check-item.bad { border-color: rgba(248,113,113,.45); color: var(--bad); background: rgba(248,113,113,.07); }
.check-item small { color: var(--muted); font-size: .68rem; direction: ltr; }

.plan-box { border: 1px solid rgba(255,203,43,.4); background: linear-gradient(170deg, rgba(255,203,43,.1), rgba(255,203,43,.04)); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 18px; }
.plan-label { color: var(--accent); font-weight: 800; font-size: .83rem; margin-bottom: 6px; letter-spacing: .5px; }
.plan-box ul { padding-inline-start: 18px; color: #fce9a8; font-size: .9rem; }

.options-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
#heavyRow { border: 1px solid rgba(251,191,36,.45); background: var(--warn-soft); border-radius: var(--radius-sm); padding: 12px 16px; }
#heavyRow .opt-label { color: #fde68a; font-weight: 700; }
#heavyRow select { border-color: rgba(251,191,36,.55); }
.opt-label { color: var(--muted); font-size: .88rem; }
select { background: var(--bg-elev); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm - 4px); border-radius: 10px; padding: 9px 12px; font-family: var(--font); font-size: .9rem; outline: none; }
select:focus { border-color: var(--accent); }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }

.log-box { font-family: var(--mono); font-size: .76rem; direction: ltr; text-align: left; background: #04070f; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 16px; max-height: 260px; overflow: auto; white-space: pre-wrap; color: #86f0b0; margin-top: 12px; line-height: 1.6; }

.done-banner { display: flex; gap: 16px; align-items: flex-start; border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 18px; background: var(--emerald-soft); border: 1px solid rgba(52,211,153,.4); }
.done-banner h3 { font-size: 1.18rem; margin-bottom: 4px; color: #b8f5d6; }
.done-banner p { color: #a7e8c5; font-size: .92rem; }
.done-banner.warn { background: var(--warn-soft); border-color: rgba(251,191,36,.4); }
.done-banner.warn h3, .done-banner.warn p { color: #fde9b9; }
.done-banner.fail { background: var(--bad-soft); border-color: rgba(248,113,113,.4); }
.done-banner.fail h3, .done-banner.fail p { color: #ffd2d2; }
.done-emoji { font-size: 1.9rem; }

.download-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.download-list { flex-direction: column; align-items: stretch; gap: 10px; }
.btn-dl { justify-content: space-between; width: 100%; }
.inspect summary { cursor: pointer; color: var(--muted); font-size: .9rem; padding: 8px 0; }

/* ============ Compare section ============ */
.compare { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.compare-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: center; }
.compare-copy h3 { font-size: clamp(1.4rem, 3.3vw, 1.9rem); font-weight: 800; line-height: 1.3; }
.compare-copy h3 em { font-style: normal; color: var(--accent); }
.compare-copy p { color: var(--muted); margin-top: 14px; font-size: .96rem; }
.compare-badge { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .72rem; background: #04070f; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; color: var(--accent); margin-top: 18px; direction: ltr; }
.compare-frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.frame-card { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: #000; position: relative; }
.frame-card video { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 3/4; }
.frame-tag { position: absolute; bottom: 8px; inset-inline-start: 8px; background: rgba(0,0,0,.75); backdrop-filter: blur(6px); color: #fff; font-size: .62rem; font-family: var(--mono); letter-spacing: 1px; padding: 4px 9px; border-radius: 6px; }
.frame-tag.gold { background: var(--accent); color: #111; font-weight: 800; }
.video-shell { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,203,43,.4); box-shadow: var(--shadow-glow), var(--shadow); background: #000; }
.video-shell video { display: block; width: 100%; height: 100%; aspect-ratio: 3/2; object-fit: cover; }
.video-chip { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: rgba(0,0,0,.65); backdrop-filter: blur(8px); border: 1px solid rgba(255,203,43,.4); padding: 6px 12px; border-radius: 999px; font-size: .72rem; color: var(--accent); font-family: var(--mono); letter-spacing: 1px; }
.compare-caption { text-align: center; color: var(--muted); font-size: .78rem; margin-top: 12px; }

/* ============ Why cards ============ */
.why-grid { max-width: 1180px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.why-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; position: relative; overflow: hidden; transition: transform .25s, border-color .25s; }
.why-card:hover { transform: translateY(-4px); border-color: rgba(255,203,43,.4); }
.why-card-num { font-family: var(--mono); position: absolute; top: 12px; inset-inline-end: 16px; color: var(--line-soft); font-size: 2.4rem; font-weight: 700; }
.why-card-icon { font-size: 1.7rem; margin-bottom: 10px; }
.why-card h4 { font-size: 1.02rem; margin-bottom: 6px; }
.why-card p { color: var(--muted); font-size: .83rem; }

/* ============ Rules ============ */
.rules { max-width: 1180px; margin: 70px auto 0; padding: 0 20px; }
.rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rule-card { border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); background: var(--bg-card); transition: transform .25s, border-color .25s; }
.rule-card:hover { transform: translateY(-3px); }
.rule-card.ok { border-color: rgba(255,203,43,.3); }
.rule-card.warn { border-color: rgba(251,191,36,.3); }
.rule-emoji { font-size: 1.6rem; }
.rule-card h4 { margin: 8px 0 4px; font-size: 1.02rem; color: var(--text); }
.rule-card p { color: var(--muted); font-size: .86rem; }

/* ============ How ============ */
.how { max-width: 1180px; margin: 70px auto 0; padding: 0 20px; }
.how-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.how-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.how-n { font-family: var(--mono); font-size: 1.8rem; color: var(--accent); font-weight: 700; }
.how-card h4 { margin: 10px 0 6px; font-size: 1.05rem; }
.how-card p { color: var(--muted); font-size: .88rem; }

/* ============ FAQ ============ */
.faq { max-width: 880px; margin: 70px auto 0; padding: 0 20px 40px; }
.faq details { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 10px; transition: border-color .25s; }
.faq details[open] { border-color: rgba(255,203,43,.35); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-inline-end: 26px; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 0; color: var(--accent); font-size: 1.2rem; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); margin-top: 10px; font-size: .92rem; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line-soft); padding: 34px 20px 44px; text-align: center; color: var(--muted); font-size: .83rem; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--text); }
.footer-brand small { color: var(--muted); font-weight: 400; font-size: .72rem; }
.small { font-size: .74rem; }
.footer p { margin: 4px 0; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .phone { width: 180px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .rules-grid, .how-grid { grid-template-columns: 1fr; }
  .topnav a:not(.nav-cta) { display: none; }
  .brand-tag { display: none; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .cta-row, .actions { flex-direction: column; }
  .cta-row .btn-primary, .actions .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}

/* ============ Free badge in topbar ============ */
.free-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; padding: 6px 14px; border-radius: 999px;
  background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.4); color: var(--emerald);
  white-space: nowrap; transition: all .25s;
}
.free-badge b { color: #fff; }
.free-badge.exhausted { background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.4); color: var(--bad); }
.free-badge.activated { background: var(--accent-soft); border-color: rgba(245,197,24,.5); color: var(--accent); }

/* ============ Paywall overlay ============ */
.paywall {
  position: fixed; inset: 0; z-index: 100;
  background: radial-gradient(1000px 700px at 50% -10%, rgba(245,197,24,.18), transparent 60%), rgba(5,7,15,.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: grid; place-items: center; padding: 24px;
  animation: paywallIn .4s ease;
}
@keyframes paywallIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.paywall.hidden { display: none; }
.paywall-inner { position: relative; width: min(560px, 100%); max-height: 100%; overflow: auto; }
.paywall-close {
  position: absolute; top: -14px; inset-inline-end: -14px;
  width: 40px; height: 40px; border-radius: 50%;
  background: #1a2236; color: var(--muted); border: 1px solid var(--line);
  font-size: 1.4rem; cursor: pointer; line-height: 1; transition: all .2s; font-family: var(--font);
}
.paywall-close:hover { color: var(--text); background: #232c44; }
.paywall-card {
  background: linear-gradient(170deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
  border: 1px solid rgba(245,197,24,.35); border-radius: 24px;
  padding: 30px 30px 26px; box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 90px rgba(245,197,24,.12);
}
.paywall-badge {
  display: inline-block; font-family: var(--mono); font-size: .7rem; font-weight: 700;
  letter-spacing: 3px; color: #111;
  background: linear-gradient(160deg, #ffd75e, #f5c518 60%, #d4a017);
  padding: 6px 16px; border-radius: 6px; margin-bottom: 14px;
  box-shadow: 0 4px 18px rgba(245,197,24,.4);
}
.paywall-title { font-size: clamp(1.35rem, 3.5vw, 1.7rem); font-weight: 800; letter-spacing: -.5px; line-height: 1.3; }
.paywall-sub { color: var(--muted); margin-top: 10px; font-size: .95rem; }
.paywall-benefits { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 18px 0; padding: 14px; background: rgba(52,211,153,.06); border: 1px solid rgba(52,211,153,.22); border-radius: 14px; }
.paywall-benefits li { display: flex; align-items: flex-start; gap: 10px; font-size: .93rem; color: var(--text); }
.paywall-benefits .check { color: var(--emerald); font-weight: 800; }
.paywall-price { border: 1px dashed rgba(245,197,24,.5); border-radius: 14px; padding: 12px 18px; text-align: center; background: rgba(245,197,24,.05); margin-bottom: 18px; }
.price-label { color: var(--accent); font-weight: 700; font-size: .82rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.price-value { font-size: 1.05rem; font-weight: 800; }
.activate-form { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.activate-form label { color: var(--muted); font-size: .83rem; font-weight: 600; }
.activate-form input {
  background: #04070f; border: 1px solid var(--line); color: var(--accent);
  border-radius: 12px; padding: 14px 16px; font-family: var(--mono); font-size: 1.1rem; letter-spacing: 1px; text-align: center; direction: ltr; outline: none; transition: all .2s;
}
.activate-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.activate-form button { width: 100%; justify-content: center; }
.activate-msg { min-height: 1.2em; font-size: .85rem; text-align: center; color: var(--bad); font-weight: 600; }
.activate-msg.ok { color: var(--emerald); }
.paywall-contact { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.paywall-contact p { color: var(--muted); font-size: .88rem; margin-bottom: 10px; }
.paywall-links { display: flex; gap: 8px; flex-wrap: wrap; }
.contact-link { flex: 1 1 200px; text-align: center; text-decoration: none; font-size: .85rem; font-weight: 700; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--text); transition: all .2s; }
.contact-link.telegram { border-color: rgba(56,189,248,.4); }
.contact-link.telegram:hover { background: rgba(56,189,248,.15); border-color: rgba(56,189,248,.7); }
.contact-link.whatsapp { border-color: rgba(52,211,153,.4); }
.contact-link.whatsapp:hover { background: rgba(52,211,153,.15); border-color: rgba(52,211,153,.7); }

/* Dropzone locked state */
.dropzone.locked { pointer-events: none; opacity: .55; border-color: var(--bad); }
.dropzone.locked .dz-title, .dropzone.locked .dz-icon { color: var(--bad); }