:root {
  --bg: #050912;
  --bg2: #0a1222;
  --panel: rgba(14, 22, 40, .66);
  --panel-strong: rgba(17, 27, 49, .9);
  --line: rgba(148, 163, 184, .14);
  --line-strong: rgba(148, 163, 184, .26);
  --text: #e8eef8;
  --muted: #94a3bb;
  --dim: #64748b;
  --cyan: #22d3ee;
  --lime: #c6f432;
  --violet: #8b5cf6;
  --red: #fb7185;
  --red-deep: #e11d48;
  --green: #34d399;
  --amber: #fbbf24;
  --gold: #f5c66b;
  --grad: linear-gradient(120deg, var(--cyan), var(--lime));
  --radius: 22px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line);
  --font: 'Vazirmatn', 'Inter', system-ui, sans-serif;
}

html[lang="en"] { --font: 'Inter', 'Vazirmatn', system-ui, sans-serif; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input, textarea { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
button { font-family: inherit; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(1200px 700px at 50% -10%, #0d1a33 0%, var(--bg) 60%); }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; animation: drift 22s ease-in-out infinite alternate; }
.aurora .a1 { width: 46vw; height: 46vw; background: #0891b2; top: -12vw; inset-inline-start: -10vw; }
.aurora .a2 { width: 38vw; height: 38vw; background: #65a30d; bottom: -14vw; inset-inline-end: -8vw; animation-delay: -7s; opacity: .3; }
.aurora .a3 { width: 30vw; height: 30vw; background: #6d28d9; top: 30%; inset-inline-end: 20%; animation-delay: -12s; opacity: .22; }
.aurora .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(148,163,184,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
@keyframes drift { to { transform: translate3d(6vw, 4vh, 0) scale(1.15); } }

#watermark { position: fixed; inset: 0; z-index: 60; pointer-events: none; background-repeat: repeat; opacity: 1; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px clamp(14px, 4vw, 40px);
  padding-top: max(14px, env(safe-area-inset-top));
  background: linear-gradient(to bottom, rgba(5,9,18,.92), rgba(5,9,18,.6));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; direction: ltr; }
.brand img { height: 26px; width: auto; display: block; }
.brand img.pip { height: 30px; }
.brand .x { color: var(--dim); font-size: 14px; }
.brand .tag { font-size: 12px; color: var(--muted); border-inline-start: 1px solid var(--line-strong); padding-inline-start: 12px; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.lang { display: flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.lang button {
  border: 0; background: transparent; color: var(--muted); padding: 7px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: .2s;
}
.lang button.on { background: var(--grad); color: #051018; box-shadow: 0 6px 20px -6px rgba(34,211,238,.6); }

.chip-btn {
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); color: var(--text);
  padding: 8px 14px; border-radius: 999px; font-size: 13px; cursor: pointer;
}
.chip-btn:hover { border-color: var(--cyan); }

.progress-rail { position: sticky; top: 63px; z-index: 39; height: 3px; background: rgba(255,255,255,.05); }
.progress-fill { height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 18px rgba(198,244,50,.6); transition: width .5s cubic-bezier(.2,.8,.2,1); }

.app { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: clamp(16px, 3.5vw, 40px) clamp(14px, 4vw, 40px) 120px; }

.foot {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  font-size: 11.5px; letter-spacing: .4px; color: var(--dim);
}
.foot svg { color: var(--lime); opacity: .8; }
.foot span { background: linear-gradient(90deg, var(--muted), var(--dim)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.glass {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(140%);
  position: relative;
}
.glass.glow::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(34,211,238,.55), transparent 40%, transparent 60%, rgba(198,244,50,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 14px; padding: 14px 22px; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform .15s, box-shadow .2s, opacity .2s; position: relative; overflow: hidden; white-space: nowrap; text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--grad); color: #04121a; box-shadow: 0 12px 34px -12px rgba(34,211,238,.7); }
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(198,244,50,.6); }
.btn-ghost { background: rgba(255,255,255,.05); color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-danger { background: linear-gradient(120deg, #f43f5e, #fb923c); color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn .fill { position: absolute; inset: 0; background: rgba(255,255,255,.18); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .btn .fill { transform-origin: right; }
.btn-block { width: 100%; }
.arrow { display: inline-block; transition: transform .2s; }
[dir="rtl"] .arrow { transform: scaleX(-1); }

.field { display: grid; gap: 8px; margin: 18px 0; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.input {
  width: 100%; padding: 15px 16px; border-radius: 14px; font-size: 16px; font-family: inherit;
  background: rgba(3,7,15,.6); border: 1px solid var(--line-strong); color: var(--text); outline: none; transition: .2s;
}
.input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.15); }
.input.ltr-input { direction: ltr; text-align: left; }

.otp { display: flex; gap: 10px; justify-content: center; direction: ltr; margin: 22px 0 8px; }
.otp input {
  width: 52px; height: 62px; text-align: center; font-size: 26px; font-weight: 800; border-radius: 14px;
  background: rgba(3,7,15,.65); border: 1px solid var(--line-strong); color: var(--lime); outline: none; font-family: 'Inter', monospace;
}
.otp input:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(198,244,50,.15); }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 14px; font-size: 14px; line-height: 1.7; margin-top: 14px; }
.alert.err { background: rgba(244,63,94,.1); border: 1px solid rgba(244,63,94,.35); color: #fecdd3; }
.alert.info { background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.3); color: #cffafe; }
.alert.warn { background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.35); color: #fde68a; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.link { background: none; border: 0; color: var(--cyan); cursor: pointer; font-size: 14px; padding: 6px 0; font-family: inherit; }
.link[disabled] { color: var(--dim); cursor: default; }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--cyan); padding: 6px 12px; border-radius: 999px; background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.25);
}
html[lang="fa"] .eyebrow, html[lang="ar"] .eyebrow { letter-spacing: 0; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.h-grad { background: linear-gradient(120deg, #fff 30%, #a5f3fc 70%, var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.login { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 56px); align-items: center; min-height: calc(100dvh - 220px); }
.login-hero h1 { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.15; margin: 18px 0 14px; font-weight: 800; }
html[lang="fa"] .login-hero h1, html[lang="ar"] .login-hero h1 { line-height: 1.45; }
.login-hero p { font-size: clamp(15px, 1.4vw, 18px); color: var(--muted); line-height: 1.9; max-width: 560px; }
.hero-art { margin-top: 26px; border-radius: 26px; overflow: hidden; position: relative; aspect-ratio: 16 / 9; box-shadow: 0 40px 90px -40px rgba(34,211,238,.45), 0 0 0 1px var(--line); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); animation: float 9s ease-in-out infinite alternate; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,9,18,.7), transparent 50%); }
@keyframes float { to { transform: scale(1.1) translateY(-8px); } }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero-badges span { font-size: 13px; color: var(--text); padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }

.card { padding: clamp(22px, 3vw, 36px); }
.card h2 { margin: 0 0 8px; font-size: clamp(21px, 2.2vw, 27px); }
.card p.lead { margin: 0; color: var(--muted); line-height: 1.9; font-size: 15px; }
.lock-ico {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; font-size: 24px;
  background: linear-gradient(140deg, rgba(34,211,238,.18), rgba(198,244,50,.12)); border: 1px solid rgba(34,211,238,.3);
}

.narrow { max-width: 620px; margin: 4vh auto 0; }

.rules { display: grid; gap: 12px; margin: 22px 0; }
.rule { display: flex; gap: 14px; padding: 15px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.rule .ri { font-size: 24px; flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.04); }
.rule b { display: block; margin-bottom: 4px; font-size: 15px; }
.rule span { color: var(--muted); font-size: 14px; line-height: 1.8; }
.rule.hot { border-color: rgba(244,63,94,.4); background: linear-gradient(140deg, rgba(244,63,94,.1), rgba(244,63,94,.02)); }
.rule.hot .ri { background: rgba(244,63,94,.15); }

.check {
  display: flex; gap: 12px; align-items: flex-start; padding: 15px; border-radius: 16px; cursor: pointer;
  background: rgba(198,244,50,.05); border: 1px dashed rgba(198,244,50,.35); line-height: 1.8; font-size: 14.5px;
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { flex: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line-strong); display: grid; place-items: center; margin-top: 2px; transition: .2s; }
.check input:checked + .box { background: var(--grad); border-color: transparent; }
.check input:checked + .box::after { content: ''; width: 6px; height: 11px; border: solid #04121a; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check input:focus-visible + .box { box-shadow: 0 0 0 4px rgba(34,211,238,.25); }

.lesson { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: start; animation: rise .5s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.lesson-art { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 40px 90px -40px rgba(34,211,238,.4), 0 0 0 1px var(--line); }
.lesson-art img { width: 100%; height: 100%; object-fit: cover; display: block; animation: float 10s ease-in-out infinite alternate; }
.lesson-art .num { position: absolute; top: 14px; inset-inline-start: 14px; font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: rgba(5,9,18,.7); border: 1px solid var(--line-strong); backdrop-filter: blur(8px); }
.lesson-body h1 { font-size: clamp(25px, 3vw, 38px); line-height: 1.3; margin: 14px 0 12px; font-weight: 800; }
html[lang="fa"] .lesson-body h1, html[lang="ar"] .lesson-body h1 { line-height: 1.55; }
.lesson-body .lead { font-size: clamp(15px, 1.3vw, 17px); line-height: 2; color: #c8d3e3; margin: 0 0 18px; }
.points { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.points li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); line-height: 1.85; font-size: 14.5px; }
.points li::before { content: ''; flex: none; width: 20px; height: 20px; margin-top: 4px; border-radius: 7px; background: var(--grad); -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / 18px no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / 18px no-repeat; }
.golden { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: linear-gradient(120deg, rgba(245,198,107,.14), rgba(245,198,107,.03)); border: 1px solid rgba(245,198,107,.4); }
.golden .gi { font-size: 22px; }
.golden small { display: block; color: var(--gold); font-weight: 700; font-size: 12px; letter-spacing: .5px; margin-bottom: 2px; }
.golden b { font-size: 15.5px; line-height: 1.7; }

.example { grid-column: 1 / -1; margin-top: 6px; padding: clamp(18px, 2.6vw, 30px); }
.ex-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.ex-head h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.ex-head h3::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--red); box-shadow: 0 0 14px var(--red); transform: rotate(45deg); }
.ex-head .muted { font-size: 13px; }

.mail { border-radius: 18px; overflow: hidden; background: #0b1426; border: 1px solid var(--line-strong); }
.mail-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); direction: ltr; }
.mail-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; opacity: .8; }
.mail-bar i:nth-child(2) { background: #f59e0b; }
.mail-bar i:nth-child(3) { background: #22c55e; }
.mail-bar span { margin-inline-start: 10px; font-size: 12px; color: var(--dim); }
.mail-head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.mail-row { display: flex; gap: 10px; align-items: center; font-size: 13.5px; flex-wrap: wrap; position: relative; }
.mail-row .k { color: var(--dim); width: 64px; flex: none; }
.mail-row .v { direction: ltr; unicode-bidi: isolate; color: #dbe5f3; word-break: break-all; }
.mail-subject { font-size: 17px; font-weight: 700; margin: 4px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mail-body { padding: 18px; line-height: 2; font-size: 14.5px; color: #c8d3e3; }
.mail-body .greet { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mail-body .bodytext { display: flex; gap: 10px; align-items: flex-start; }
.mail-cta { margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fake-btn { display: inline-block; padding: 11px 22px; border-radius: 10px; background: #2563eb; color: #fff; font-weight: 700; font-size: 14px; }
.hover-url { font-size: 12px; direction: ltr; color: #fca5a5; padding: 6px 10px; border-radius: 8px; background: rgba(244,63,94,.1); border: 1px dashed rgba(244,63,94,.4); font-family: Consolas, monospace; }

.flag {
  flex: none; width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; position: relative;
  background: var(--red-deep); color: #fff; font-weight: 800; font-size: 13px; font-family: 'Inter', sans-serif;
  box-shadow: 0 0 0 0 rgba(244,63,94,.7); animation: ping 2s infinite;
}
.flag.seen { animation: none; background: #334155; box-shadow: 0 0 0 2px var(--red); }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(244,63,94,0); } 100% { box-shadow: 0 0 0 0 rgba(244,63,94,0); } }
.flags { display: grid; gap: 10px; margin-top: 16px; }
.flag-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(244,63,94,.06); border: 1px solid rgba(244,63,94,.22); font-size: 14px; line-height: 1.8; opacity: .35; filter: blur(3px); transition: .35s; }
.flag-item.on { opacity: 1; filter: none; border-color: rgba(244,63,94,.55); }
.flag-item .n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--red-deep); font-weight: 800; font-size: 12px; font-family: 'Inter', sans-serif; }

.domains { display: grid; gap: 10px; }
.dom { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 12px; align-items: center; padding: 13px 16px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.dom .tagline { font-size: 11px; font-weight: 700; letter-spacing: .5px; display: block; margin-bottom: 4px; }
.dom .real .tagline { color: var(--green); }
.dom .fake .tagline { color: var(--red); }
.dom code { direction: ltr; unicode-bidi: isolate; display: inline-block; font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600; letter-spacing: .3px; }
.dom mark { background: rgba(244,63,94,.25); color: #fecdd3; border-radius: 4px; padding: 0 2px; box-shadow: 0 0 0 1px rgba(244,63,94,.6); }
.dom .why { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.dom .puny { display: inline-block; margin-top: 6px; direction: ltr; font-size: 11.5px; font-family: Consolas, monospace; color: var(--amber); background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3); padding: 2px 8px; border-radius: 6px; }

.files { display: grid; gap: 10px; }
.file { display: flex; gap: 14px; align-items: center; padding: 13px 16px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.file .fi { width: 40px; height: 48px; flex: none; border-radius: 8px; position: relative; background: linear-gradient(160deg, #1e293b, #0f172a); border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--muted); font-family: 'Inter', sans-serif; }
.file .fi::before { content: ''; position: absolute; top: -1px; inset-inline-end: -1px; width: 12px; height: 12px; background: var(--bg2); border-bottom-left-radius: 4px; border-left: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.file .fn { direction: ltr; unicode-bidi: isolate; font-weight: 700; font-size: 14.5px; display: block; font-family: 'Inter', sans-serif; word-break: break-all; }
.file .fw { color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.file .grow { flex: 1; min-width: 0; }
.verdict { flex: none; font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 999px; }
.verdict.danger { background: rgba(244,63,94,.15); color: #fda4af; border: 1px solid rgba(244,63,94,.4); }
.verdict.verify { background: rgba(251,191,36,.12); color: #fde68a; border: 1px solid rgba(251,191,36,.4); }

.scene .story { padding: 16px 18px; border-radius: 16px; background: rgba(34,211,238,.06); border: 1px solid rgba(34,211,238,.25); line-height: 2; font-size: 15px; display: flex; gap: 14px; }
.scene .story .si { font-size: 26px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.choice { padding: 16px; border-radius: 16px; line-height: 1.85; font-size: 14.5px; }
.choice small { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.choice.bad { background: rgba(244,63,94,.07); border: 1px solid rgba(244,63,94,.35); }
.choice.bad small { color: var(--red); }
.choice.good { background: rgba(52,211,153,.07); border: 1px solid rgba(52,211,153,.4); }
.choice.good small { color: var(--green); }
.outcome { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); line-height: 1.9; font-size: 14px; color: #cbd5e1; }
.outcome b { color: var(--amber); }

.phone { max-width: 380px; margin: 0 auto; border-radius: 34px; padding: 12px; background: linear-gradient(160deg, #1f2a44, #0b1220); border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
.phone-screen { border-radius: 24px; overflow: hidden; background: #0e1726; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line); }
.phone-top .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, #334155, #1e293b); font-size: 16px; }
.phone-top b { font-size: 14px; direction: ltr; unicode-bidi: isolate; display: block; }
.phone-top small { color: var(--dim); font-size: 11px; }
.bubbles { padding: 14px; display: grid; gap: 10px; min-height: 180px; }
.bubble { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.8; position: relative; background: #1e293b; justify-self: start; border-end-start-radius: 4px; }
.bubble.me { justify-self: end; background: #155e75; border-end-start-radius: 16px; border-end-end-radius: 4px; color: #a5f3fc; }
.bubble .flag { position: absolute; top: -10px; inset-inline-end: -10px; width: 22px; height: 22px; font-size: 11px; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #a5f3fc; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }
.chat-wrap { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 20px; align-items: center; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: s; }
.step { padding: 18px 16px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid var(--line); position: relative; counter-increment: s; }
.step::after { content: counter(s); position: absolute; top: 12px; inset-inline-end: 14px; font-size: 34px; font-weight: 800; color: rgba(255,255,255,.06); font-family: 'Inter', sans-serif; }
.step .st-i { font-size: 28px; }
.step b { display: block; margin: 8px 0 4px; font-size: 16px; }
.step span { color: var(--muted); font-size: 13.5px; line-height: 1.7; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { padding: 18px; border-radius: 18px; text-align: center; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.stat b { display: block; font-size: 32px; font-weight: 800; font-family: 'Inter', sans-serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 13.5px; }

.golden-rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gr { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.7; transition: .25s; }
.gr:hover { border-color: rgba(198,244,50,.4); transform: translateY(-2px); }
.gr .gi { font-size: 22px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(198,244,50,.08); flex: none; }

.navbar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 45;
  padding: 12px clamp(14px, 4vw, 40px) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(5,9,18,.96), rgba(5,9,18,.75));
  backdrop-filter: blur(14px); border-top: 1px solid var(--line);
}
.navbar-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.dots { flex: 1; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.14); transition: .3s; }
.dots i.done { background: rgba(198,244,50,.55); }
.dots i.cur { width: 26px; background: var(--grad); }
.navbar .count { font-size: 13px; color: var(--muted); white-space: nowrap; font-family: 'Inter', var(--font); }

.exam-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.timer { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line-strong); font-family: 'Inter', sans-serif; font-weight: 700; direction: ltr; }
.timer svg { width: 30px; height: 30px; transform: rotate(-90deg); }
.timer.over { border-color: rgba(251,191,36,.6); color: #fde68a; }
.timer.over #tarc { stroke: #fbbf24; }
.timer.low { border-color: rgba(244,63,94,.6); color: #fecdd3; animation: pulse 1s infinite; }
.timer.low #tarc { stroke: #f43f5e; }
#otnote { margin: -4px 0 14px; }
.qcard { padding: clamp(22px, 3vw, 38px); animation: rise .4s cubic-bezier(.2,.8,.2,1); }
.qmeta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.qnum { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 13px; color: var(--cyan); }
.qhint { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.qhint.single { background: rgba(34,211,238,.1); color: #a5f3fc; border: 1px solid rgba(34,211,238,.3); }
.qhint.multi { background: rgba(198,244,50,.1); color: #ecfccb; border: 1px solid rgba(198,244,50,.35); }
.qtext { font-size: clamp(18px, 2vw, 23px); line-height: 1.85; font-weight: 700; margin: 0 0 22px; }
.opts { display: grid; gap: 12px; }
.opt {
  display: flex; gap: 14px; align-items: center; width: 100%; text-align: start; padding: 16px 18px; border-radius: 16px; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid var(--line-strong); color: var(--text); font-size: 15px; line-height: 1.8; transition: .18s;
}
.opt:hover { border-color: rgba(34,211,238,.5); background: rgba(34,211,238,.05); }
.opt .mk { flex: none; width: 24px; height: 24px; border: 2px solid var(--line-strong); display: grid; place-items: center; transition: .18s; }
.opt.single .mk { border-radius: 50%; }
.opt.multi .mk { border-radius: 7px; }
.opt.on { border-color: var(--cyan); background: linear-gradient(120deg, rgba(34,211,238,.14), rgba(198,244,50,.06)); box-shadow: 0 10px 30px -18px rgba(34,211,238,.8); }
.opt.on .mk { border-color: transparent; background: var(--grad); }
.opt.single.on .mk::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #04121a; }
.opt.multi.on .mk::after { content: ''; width: 6px; height: 11px; border: solid #04121a; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.qnav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 18px; direction: ltr; }
.qnav button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); color: var(--muted); font-weight: 700; font-family: 'Inter', sans-serif; cursor: pointer; font-size: 13px; }
.qnav button.ans { background: rgba(198,244,50,.12); border-color: rgba(198,244,50,.45); color: var(--lime); }
.qnav button.cur { outline: 2px solid var(--cyan); outline-offset: 2px; color: #fff; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0; }
.fact { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 14.5px; }
.fact i { font-style: normal; font-size: 20px; }
.ai-warn { padding: 18px; border-radius: 18px; background: linear-gradient(130deg, rgba(244,63,94,.16), rgba(251,146,60,.06)); border: 1px solid rgba(244,63,94,.45); display: flex; gap: 14px; margin-bottom: 16px; }
.ai-warn .aw-i { font-size: 30px; flex: none; animation: wobble 2.6s infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-10deg); } 20% { transform: rotate(10deg); } 30% { transform: rotate(0); } }
.ai-warn b { display: block; color: #fecdd3; margin-bottom: 6px; font-size: 16px; }
.ai-warn p { margin: 0; color: #fde2e4; line-height: 1.9; font-size: 14px; }

.result { text-align: center; padding: clamp(26px, 4vw, 48px); }
.ring { width: 190px; height: 190px; margin: 6px auto 18px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .rv { position: absolute; inset: 0; display: grid; place-content: center; font-family: 'Inter', sans-serif; }
.ring .rv b { font-size: 46px; font-weight: 800; }
.ring .rv span { color: var(--muted); font-size: 13px; }
.result h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 10px; }
.result p { color: var(--muted); line-height: 1.9; max-width: 560px; margin: 0 auto; }
.metrics { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 22px 0; }
.metric { padding: 12px 18px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 14px; }
.metric b { font-family: 'Inter', sans-serif; margin-inline-start: 6px; }
.missed { display: grid; gap: 10px; text-align: start; max-width: 560px; margin: 18px auto; }
.missed button { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; background: rgba(251,191,36,.06); border: 1px solid rgba(251,191,36,.3); color: var(--text); cursor: pointer; font-size: 14.5px; font-family: inherit; text-align: start; }
.missed button .spacer { flex: 1; }
.missed button small { color: var(--amber); font-weight: 700; }

.decl { max-width: 720px; margin: 0 auto; }
.decl-paper { padding: 22px; border-radius: 18px; background: linear-gradient(160deg, rgba(245,198,107,.08), rgba(255,255,255,.02)); border: 1px solid rgba(245,198,107,.35); line-height: 2.1; font-size: 15px; margin: 18px 0; position: relative; }
.decl-paper .sig { margin-top: 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); border-top: 1px dashed rgba(245,198,107,.35); padding-top: 12px; }
.decl-paper .sig b { color: var(--text); direction: ltr; unicode-bidi: isolate; }

.cert-frame { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 100px -40px rgba(245,198,107,.55), 0 0 0 1px rgba(245,198,107,.45); margin: 22px auto; max-width: 900px; background: #fff; }
.cert-frame img { width: 100%; display: block; }
.cert-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%); transform: translateX(-120%); animation: shine 3.2s 1s ease-in-out infinite; }
@keyframes shine { 60%, 100% { transform: translateX(120%); } }

.shield { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(3,6,12,.94); backdrop-filter: blur(30px); }
.shield-card { text-align: center; padding: 30px; max-width: 420px; }
.shield-icon { font-size: 52px; margin-bottom: 10px; }
.shield h3 { margin: 0 0 8px; font-size: 22px; }
.shield p { color: var(--muted); line-height: 1.9; margin: 0; }
body.shielded .app, body.shielded .topbar, body.shielded .navbar { filter: blur(26px); }

.toast { position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%); z-index: 110; padding: 12px 18px; border-radius: 14px; background: #3f0d18; border: 1px solid rgba(244,63,94,.6); color: #ffe4e6; font-size: 14px; box-shadow: 0 20px 40px -20px #000; max-width: calc(100vw - 32px); text-align: center; animation: rise .3s; }

.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(3,6,12,.7); backdrop-filter: blur(8px); padding: 16px; }
.modal-card { max-width: 440px; width: 100%; padding: 26px; text-align: center; }
.modal-card p { line-height: 1.9; margin: 0 0 20px; }
.modal-card .row { justify-content: center; }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; width: 100%; height: 100%; }

.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid rgba(255,255,255,.1); border-top-color: var(--cyan); animation: spin 1s linear infinite; margin: 20vh auto 0; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 920px) {
  .login { grid-template-columns: 1fr; min-height: auto; }
  .login-hero { order: 2; }
  .hero-art { display: none; }
  .lesson { grid-template-columns: 1fr; }
  .lesson-art { position: relative; top: 0; }
  .chat-wrap { grid-template-columns: 1fr; }
  .steps, .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .brand .tag { display: none; }
  .brand img { height: 20px; }
  .brand img.pip { height: 24px; }
  .lang button { padding: 6px 9px; font-size: 12px; }
  .chip-btn { padding: 7px 10px; font-size: 12px; }
  .progress-rail { top: 57px; }
  .dom { grid-template-columns: 1fr 1fr; }
  .dom .why { grid-column: 1 / -1; }
  .choices, .golden-rules, .facts { grid-template-columns: 1fr; }
  .otp { gap: 7px; }
  .otp input { width: 44px; height: 56px; font-size: 22px; }
  .navbar .count { display: none; }
  .dots { gap: 4px; flex-wrap: nowrap; }
  .dots i { width: 6px; height: 6px; flex: none; }
  .dots i.cur { width: 16px; }
  .btn { padding: 13px 16px; font-size: 14px; }
  .file { flex-wrap: wrap; }
  .file .verdict { margin-inline-start: 54px; }
}

@media print {
  body * { display: none !important; }
  body::after { content: 'Printing is disabled.'; display: block !important; font: 20px sans-serif; padding: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
