:root {
  --bg: #050b18; --bg2: #0b1426; --bg3: #122040; --line: rgba(154, 168, 199, .16);
  --ink: #f1f5ff; --muted: #9aa8c7; --primary: #1d4ed8; --accent: #3b82f6; --soft: #93c5fd; --lime: #38bdf8; --on: #ffffff;
  --ok: #22c55e; --warn: #f59e0b; --bad: #ef4444; --info: #38bdf8;
  --grad: linear-gradient(135deg, var(--primary), var(--accent));
  --r: 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Tahoma, "Noto Sans Arabic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); line-height: 1.6;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(37, 99, 235, .3), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(56, 189, 248, .08), transparent 60%),
    var(--bg);
  min-height: 100vh;
}
a { color: var(--soft); text-decoration: none; }
a:hover { text-decoration: underline; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* header */
header.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(5, 11, 24, .75); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .06em; color: var(--ink); white-space: nowrap; }
.brand img { width: 30px; height: 30px; }
.brand b { background: linear-gradient(90deg, var(--accent), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav.links { display: flex; gap: 4px; margin-inline-start: auto; }
nav.links a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
nav.links a:hover, nav.links a.on { color: var(--ink); background: var(--bg3); text-decoration: none; }
.lang { display: flex; gap: 2px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.lang button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; padding: 4px 9px; border-radius: 7px; cursor: pointer; }
.lang button.on { background: var(--grad); color: var(--on); }
@media (max-width: 720px) {
  header.top .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  nav.links { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .lang { margin-inline-start: auto; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; cursor: pointer; font: inherit; font-weight: 800;
  padding: 13px 22px; border-radius: 12px; color: var(--on); background: var(--grad); box-shadow: 0 10px 30px -12px rgba(59, 130, 246, .8); white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: var(--bg2); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn.danger { background: rgba(239, 68, 68, .14); color: #fca5a5; box-shadow: none; border: 1px solid rgba(239, 68, 68, .3); }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* hero */
.hero { padding-top: 70px; padding-bottom: 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; color: var(--soft); background: rgba(59, 130, 246, .12); border: 1px solid rgba(59, 130, 246, .35); padding: 4px 12px; border-radius: 99px; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.12; margin: 16px 0 14px; font-weight: 900; }
h1 .g { background: linear-gradient(90deg, var(--accent), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.tv { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; background: #03060f; border: 10px solid #141d33; box-shadow: 0 40px 80px -30px rgba(37, 99, 235, .65); overflow: hidden; }
.tv .scr { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4%; padding: 12% 6% 8%; align-content: center;
  background: radial-gradient(circle at 20% 0%, rgba(29, 78, 216, .55), transparent 60%), #070e20; }
.tv .card { aspect-ratio: .9; border-radius: 12px; background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .1);
  display: grid; place-items: center; font-size: clamp(9px, 1.2vw, 13px); font-weight: 800; color: #fff; text-align: center; padding: 4px; }
.tv .card.f { background: linear-gradient(160deg, rgba(147, 197, 253, .5), rgba(29, 78, 216, .55)); transform: scale(1.08); box-shadow: 0 0 40px rgba(59, 130, 246, .6); }
.tv .card svg { width: 40%; height: auto; display: block; margin: 0 auto 6px; }
.tv .bar { z-index: 2; position: absolute; top: 5%; inset-inline: 6%; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 900; color: #fff; }
.tv .bar img { width: 18px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 40px; } }

/* sections */
section.block { padding: 50px 0; }
h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 8px; font-weight: 900; }
.sub { color: var(--muted); margin: 0 0 28px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.box { background: rgba(11, 20, 38, .75); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.box h3 { margin: 10px 0 6px; font-size: 18px; }
.box p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); }
.ico svg { width: 24px; height: 24px; color: var(--on); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 46px; min-height: 32px; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--grad);
  display: grid; place-items: center; font-weight: 900; font-size: 14px; color: var(--on); }
.code { display: inline-block; background: var(--bg3); border: 1px solid var(--line); border-radius: 8px; padding: 1px 8px; font-weight: 800; color: var(--warn); }
.note { border: 1px solid rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .08); color: #fcd34d; border-radius: 12px; padding: 12px 16px; font-size: 14px; }

/* manage */
.panel { max-width: 760px; margin: 0 auto; }
form .row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { form .row { grid-template-columns: 1fr; } }
label.f { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
input[type=text], input[type=url], input[type=password], input[type=email] {
  width: 100%; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px; outline: none; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, .3); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 14px 0; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.err { color: #fca5a5; background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .3); padding: 10px 14px; border-radius: 12px; font-size: 14px; margin-top: 12px; }
.okmsg { color: #86efac; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .3); padding: 10px 14px; border-radius: 12px; font-size: 14px; margin-top: 12px; }
.dev { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.kv { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 8px; font-size: 14px; }
.kv b { color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge.trial { color: var(--info); background: rgba(56, 189, 248, .12); }
.badge.active { color: var(--ok); background: rgba(34, 197, 94, .12); }
.badge.expired, .badge.blocked { color: var(--bad); background: rgba(239, 68, 68, .12); }
.pl { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.pl:first-child { border-top: 0; }
.pl .t { flex: 1; min-width: 0; }
.pl .t b { display: block; }
.pl .t small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl .acts { display: flex; gap: 8px; }
.empty { text-align: center; color: var(--muted); padding: 20px 0 6px; }
@media (max-width: 600px) { .dev { grid-template-columns: 1fr; } .pl { flex-wrap: wrap; } .pl .acts { width: 100%; } }

/* footer */
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
footer .fl { display: flex; flex-wrap: wrap; gap: 18px; }
.legal h3 { margin-top: 26px; }
.legal p, .legal li { color: var(--muted); }
:focus-visible { outline: 3px solid var(--soft); outline-offset: 2px; }

/* licence purchase */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.opt { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; text-align: start; font: inherit; color: var(--ink); }
.opt b { font-size: 16px; }
.opt .price { font-size: 22px; font-weight: 900; color: var(--accent); }
.opt small { color: var(--muted); font-size: 13px; }
.opt.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, .3); }
.opt[disabled] { opacity: .45; cursor: not-allowed; }
select { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink); font: inherit; font-weight: 700; }
#payNote.ok { border-color: rgba(34, 197, 94, .4); color: #86efac; }
#payNote.wait { border-color: rgba(56, 189, 248, .4); color: #7dd3fc; }
#payNote.bad { border-color: rgba(239, 68, 68, .4); color: #fca5a5; }
.err.info { color: #7dd3fc; background: rgba(56, 189, 248, .1); border-color: rgba(56, 189, 248, .3); }
.row2 { display: flex; gap: 8px; } .row2 input { flex: 1; }
.opt .was { text-decoration: line-through; color: var(--muted); font-size: 14px; font-weight: 600; }
#buyCouponMsg.ok { color: var(--ok); } #buyCouponMsg.bad { color: #fca5a5; }
#buyCoupon { text-transform: uppercase; }
