/* sivaplayer.com: the same modern look as the app (charcoal, violet, cyan). */
@font-face { font-family: Outfit; src: url(/fonts/outfit-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Outfit; src: url(/fonts/outfit-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Outfit; src: url(/fonts/outfit-700.woff2) format('woff2'); font-weight: 700 800; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(/fonts/instrument-sans-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(/fonts/instrument-sans-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(/fonts/instrument-sans-600.woff2) format('woff2'); font-weight: 600 700; font-display: swap; }

:root {
  --bg: #0d0e11; --bg2: #121317; --card: #1b1c21; --card2: #23242b; --line: rgba(255,255,255,.09); --line2: rgba(255,255,255,.16);
  --text: #fff; --muted: #a9abb3; --dim: #7c7f89;
  --violet: #7c4dff; --violet2: #b02fc9; --lilac: #c4b5fd; --cyan: #67e8f9; --red: #e5252a;
  --ok: #4add8c; --warn: #ffbd34; --bad: #ff6b66;
  --grad: linear-gradient(135deg, #6d3cf0, #b026c9);
  --radius: 18px; --wrap: 1180px;
  --display: Outfit, 'Segoe UI', system-ui, sans-serif; --body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lilac); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, Consolas, monospace; background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; font-size: .92em; color: var(--cyan); }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.grad { background: linear-gradient(90deg, var(--lilac), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .8em 1.35em; border-radius: 999px; font: 600 1rem/1.1 var(--body); border: 1px solid transparent; cursor: pointer; color: #fff; transition: transform .15s, background .15s, box-shadow .15s, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); box-shadow: 0 8px 24px rgba(124,77,255,.35); }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(176,38,201,.45); }
.btn-ghost { background: rgba(255,255,255,.06); border-color: var(--line2); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn-sm { padding: .55em 1em; font-size: .9rem; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(255,255,255,.05); color: #fff; cursor: pointer; }
.icon-btn:hover { background: rgba(255,255,255,.12); }
.icon-btn.danger:hover { background: rgba(255,107,102,.16); color: var(--bad); border-color: rgba(255,107,102,.4); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions.center { justify-content: center; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(13,14,17,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.top.scrolled { border-color: var(--line); background: rgba(13,14,17,.92); }
.top-in { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: inline-flex; color: #fff; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo .mark { border-radius: 10px; }
.word { font: 700 1.45rem/1 var(--display); letter-spacing: -.02em; color: #fff; }
.word b { font-weight: 700; background: linear-gradient(90deg, var(--lilac), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { margin-left: auto; }
.nav ul, .mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: .5em .85em; border-radius: 999px; color: #d9dadf; font-weight: 500; font-size: .95rem; }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a[aria-current="page"] { background: #fff; color: #16171b; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255,255,255,.05); color: #fff; cursor: pointer; place-items: center; }
.menu-btn .ic { width: 22px; height: 22px; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--bg2); }
.mobile-nav ul { flex-direction: column; padding: 10px 20px 18px; }
.mobile-nav a { display: block; padding: .8em .4em; color: #fff; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav a[aria-current="page"] { color: var(--cyan); }
@media (max-width: 1080px) { .nav, .top-login { display: none; } .menu-btn { display: grid; } }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section.tight { padding: 48px 0 88px; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)); border-block: 1px solid var(--line); }
.head { margin-bottom: 44px; max-width: 720px; }
.head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font: 600 .82rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.card { background: linear-gradient(180deg, #1e1f25, #17181c); border: 1px solid var(--line); border-radius: var(--radius); }
.page-hero { padding: 72px 0 24px; position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }

/* ---------- home hero ---------- */
.hero, .portal-hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 70% at 85% 10%, rgba(109,60,240,.35), transparent 70%),
  radial-gradient(45% 55% at 0% 100%, rgba(176,38,201,.22), transparent 70%),
  radial-gradient(30% 30% at 70% 80%, rgba(103,232,249,.10), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.hero-copy .lead { max-width: 560px; margin-bottom: 28px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #d9dadf; font-weight: 500; }
.ticks li { display: inline-flex; align-items: center; gap: .45em; }
.ticks .ic { color: var(--ok); }
.hero-art { position: relative; padding-bottom: 40px; }
.tv { position: relative; }
.tv-screen { border-radius: 16px; overflow: hidden; border: 10px solid #07070a; box-shadow: 0 0 0 1px var(--line2), 0 40px 80px rgba(0,0,0,.55), 0 0 120px rgba(124,77,255,.25); background: #000; }
.tv-screen img { width: 100%; }
.tv-stand { width: 34%; height: 14px; margin: 0 auto; background: linear-gradient(#24242c, #121217); border-radius: 0 0 12px 12px; }
.phone { position: absolute; right: -14px; bottom: -6px; width: 26%; border-radius: 22px; overflow: hidden; border: 6px solid #07070a; box-shadow: 0 0 0 1px var(--line2), 0 30px 60px rgba(0,0,0,.6); background: #000; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; max-width: 640px; } }

.notice { display: flex; gap: 14px; align-items: flex-start; margin-top: -40px; margin-bottom: 0; padding: 18px 22px; border: 1px solid rgba(103,232,249,.25); background: rgba(103,232,249,.06); border-radius: 16px; position: relative; z-index: 1; }
.notice .ic { color: var(--cyan); margin-top: 3px; width: 22px; height: 22px; }
.notice p { margin: 0; color: #d9dadf; }

/* steps, features */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { padding: 28px 24px; position: relative; }
.step-n { position: absolute; top: 18px; right: 22px; font: 800 2.6rem/1 var(--display); color: rgba(255,255,255,.06); }
.step-ic, .f-ic, .dl-ic, .badge-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--grad); box-shadow: 0 10px 24px rgba(124,77,255,.35); margin-bottom: 18px; }
.step-ic .ic, .f-ic .ic, .dl-ic .ic, .badge-ic .ic { width: 24px; height: 24px; }
.step p, .feature p { color: var(--muted); margin: 0; font-size: .96rem; }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 26px 24px; }
.f-ic { background: rgba(124,77,255,.15); box-shadow: none; border: 1px solid rgba(124,77,255,.35); color: var(--lilac); width: 46px; height: 46px; border-radius: 13px; }
@media (max-width: 980px) { .steps, .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps, .features { grid-template-columns: 1fr; } }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shot { margin: 0; }
.shot img { border-radius: 14px; border: 1px solid var(--line2); box-shadow: 0 24px 50px rgba(0,0,0,.45); }
.shot figcaption { margin-top: 12px; color: var(--muted); text-align: center; font-weight: 500; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr; } }

/* devices + trial */
.devices-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.devices { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.devices li { display: inline-flex; align-items: center; gap: .5em; padding: .6em 1em; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line2); font-weight: 500; }
.devices .ic { color: var(--cyan); }
.trial { padding: 32px; background: radial-gradient(80% 90% at 100% 0%, rgba(124,77,255,.25), transparent), linear-gradient(180deg, #1e1f25, #17181c); }
.trial p { color: var(--muted); }
@media (max-width: 860px) { .devices-wrap { grid-template-columns: 1fr; } }

/* YouTube */
.yt-card { display: flex; align-items: center; gap: 22px; padding: 26px 30px; border-radius: 22px; border: 1px solid rgba(255,0,0,.25); background: radial-gradient(70% 140% at 0% 50%, rgba(255,0,0,.16), transparent 70%), linear-gradient(180deg, #1e1f25, #17181c); color: #fff; }
.yt-card:hover { border-color: rgba(255,60,60,.5); }
.yt-logo { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #ff0000; flex: none; }
.yt-logo .ic { width: 34px; height: 34px; color: #fff; }
.yt-text { flex: 1; display: grid; gap: 4px; }
.yt-text strong { font: 700 1.3rem/1.2 var(--display); }
.yt-text small { color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) { .yt-card { flex-direction: column; text-align: center; } }

.cta { text-align: center; padding: 56px 24px; border-radius: 28px; background: radial-gradient(70% 120% at 50% 0%, rgba(124,77,255,.35), transparent 70%), linear-gradient(180deg, #1e1f25, #141519); border: 1px solid var(--line); }
.cta p { color: var(--muted); font-size: 1.1rem; }

/* ---------- download ---------- */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dl-card { padding: 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.dl-card .btn { margin: 12px 0; }
.dl-card.soft .dl-ic { background: rgba(103,232,249,.12); box-shadow: none; border: 1px solid rgba(103,232,249,.35); color: var(--cyan); }
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide { padding: 26px; }
.guide h3 { display: flex; align-items: center; gap: .55em; color: #fff; }
.guide h3 .ic { color: var(--cyan); }
.guide ol { padding-left: 1.2em; margin: 0; color: #d9dadf; display: grid; gap: 10px; }
@media (max-width: 920px) { .dl-grid, .guides { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; font-size: .92rem; margin: 16px 0 7px; color: #e4e5ea; }
input, select, textarea { width: 100%; padding: .85em 1em; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255,255,255,.04); color: #fff; font: 400 1rem/1.3 var(--body); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,77,255,.25); }
input[aria-invalid="true"] { border-color: var(--bad); }
select option { background: #1b1c21; }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .06em; }
.check { display: flex; align-items: center; gap: .6em; font-weight: 500; color: var(--muted); }
.check input { width: 18px; height: 18px; accent-color: var(--violet); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }
.form-status { display: flex; gap: .5em; align-items: center; padding: 12px 14px; border-radius: 12px; font-weight: 500; margin-bottom: 8px; }
.form-status.ok { background: rgba(74,221,140,.12); border: 1px solid rgba(74,221,140,.35); color: #b8f5d1; }
.form-status.err { background: rgba(255,107,102,.12); border: 1px solid rgba(255,107,102,.4); color: #ffd2d0; }

/* ---------- login ---------- */
.portal-grid { display: grid; grid-template-columns: 1fr 460px; gap: 56px; align-items: center; }
.portal-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.portal-points li { display: flex; gap: 14px; }
.portal-points .ic { color: var(--cyan); width: 24px; height: 24px; margin-top: 3px; }
.portal-points span { display: grid; }
.portal-points small { color: var(--muted); font-size: .95rem; }
.login-card { padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.login-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.login-head .badge-ic { margin: 0; }
.login-head h2 { font-size: 1.45rem; margin: 0; }
.login-head p { margin: 0; color: var(--muted); }
.login-card .btn-block { margin-top: 20px; }
.key { letter-spacing: .5em; font-size: 1.2rem; }
.where { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.where summary { cursor: pointer; color: var(--lilac); font-weight: 600; display: flex; align-items: center; gap: .5em; list-style: none; }
.where summary::-webkit-details-marker { display: none; }
.where p { color: var(--muted); font-size: .92rem; margin: 12px 0 0; }
.mini-tv { margin-top: 14px; }
.mini-screen { display: grid; gap: 8px; padding: 18px; border-radius: 12px; border: 6px solid #07070a; background: radial-gradient(80% 100% at 100% 0%, rgba(124,77,255,.3), transparent), #121317; }
.mini-logo { font: 700 1.1rem/1 var(--display); }
.mini-logo b { color: var(--lilac); }
.mini-row { display: flex; justify-content: space-between; align-items: center; font-family: ui-monospace, Consolas, monospace; }
.mini-row small { color: var(--dim); font-size: .7rem; letter-spacing: .1em; }
.mini-row .cy { color: var(--cyan); letter-spacing: .2em; }
@media (max-width: 960px) { .portal-grid { grid-template-columns: 1fr; } }

/* ---------- device pages ---------- */
.portal { padding-top: 48px; }
.gate { max-width: 560px; margin: 24px auto; padding: 40px; text-align: center; }
.gate .badge-ic { margin-inline: auto; }
.device-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 26px; }
.mono-title { display: flex; align-items: center; gap: 12px; font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.1 ui-monospace, Consolas, monospace; letter-spacing: .03em; margin: 0 0 6px; }
.device-id .eyebrow { margin-bottom: 10px; }
.device-id p { margin: 0; }
.device-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.playlists { padding: 26px; }
.pl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pl-head h2 { font-size: 1.5rem; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.pl-head p { margin: 0; }
.count { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 999px; background: rgba(124,77,255,.2); color: var(--lilac); font: 700 .9rem/1 var(--body); }
.table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tr { display: grid; grid-template-columns: 1.3fr .6fr 2fr 1fr 96px; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.tr.th { border-top: 0; background: rgba(255,255,255,.03); color: var(--dim); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.cell-name { font-weight: 600; }
.cell-server, .cell-date { color: var(--muted); font-size: .93rem; overflow-wrap: anywhere; }
.type { display: inline-block; padding: .25em .7em; border-radius: 6px; font: 700 .75rem/1.2 var(--body); letter-spacing: .06em; }
.type.xtream { background: rgba(124,77,255,.18); color: var(--lilac); }
.type.m3u { background: rgba(103,232,249,.14); color: var(--cyan); }
.locked { display: inline-flex; align-items: center; gap: .4em; color: var(--warn); }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }
.empty { display: grid; justify-items: center; gap: 6px; padding: 44px 20px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); }
.empty .ic { width: 38px; height: 38px; color: var(--lilac); }
.empty strong { color: #fff; font-size: 1.1rem; }
@media (max-width: 760px) {
  .tr.th { display: none; }
  .tr { grid-template-columns: 1fr auto; grid-template-areas: "name actions" "type actions" "server server" "date date"; gap: 6px 12px; }
  .cell-name { grid-area: name; } .tr > span:nth-child(2) { grid-area: type; } .cell-server { grid-area: server; } .cell-date { grid-area: date; } .row-actions { grid-area: actions; align-self: start; }
}

/* activate */
.act-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.status { padding: 30px; display: flex; align-items: center; gap: 26px; }
.ring { --p: 0; --c: var(--ok); flex: none; width: 150px; height: 150px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); display: grid; place-items: center; transition: --p 1s; }
.ring-in { width: 124px; height: 124px; border-radius: 50%; background: #17181c; display: grid; place-content: center; text-align: center; }
.ring-in strong { font: 800 2.6rem/1 var(--display); }
.ring-in small { color: var(--muted); }
.pill { display: inline-block; padding: .3em .85em; border-radius: 999px; font: 700 .78rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.pill.ok { background: rgba(74,221,140,.15); color: var(--ok); }
.pill.warn { background: rgba(255,189,52,.15); color: var(--warn); }
.pill.bad { background: rgba(255,107,102,.15); color: var(--bad); }
.status h2 { font-size: 1.5rem; margin: 0 0 6px; }
.status p { margin: 0; }
.plan { padding: 30px; background: radial-gradient(90% 90% at 100% 0%, rgba(124,77,255,.28), transparent), linear-gradient(180deg, #1e1f25, #17181c); }
.plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: -4px; }
.price strong { font: 800 3rem/1 var(--display); }
.price span { color: var(--muted); }
.plan-badge { padding: .35em .8em; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line2); font-size: .85rem; font-weight: 600; }
.plan-list { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; }
.plan-list li { display: flex; gap: .55em; align-items: center; color: #e4e5ea; }
.plan-list .ic { color: var(--ok); }
.secure { display: flex; gap: .5em; align-items: flex-start; color: var(--muted); font-size: .88rem; margin: 14px 0 0; }
.secure .ic { color: var(--ok); margin-top: 2px; }
.how-act { padding: 24px 28px; }
.how-act h3 { display: flex; align-items: center; gap: .5em; }
.how-act h3 .ic { color: var(--cyan); }
.how-act p { margin: 0; }
@media (max-width: 860px) { .act-grid { grid-template-columns: 1fr; } .status { flex-direction: column; text-align: center; } }

/* modals and toast */
.modal { border: 0; padding: 0; background: transparent; color: #fff; width: min(560px, 100% - 24px); }
.modal-sm { width: min(420px, 100% - 24px); }
.modal::backdrop { background: rgba(5,5,8,.72); backdrop-filter: blur(4px); }
.modal-card { background: #1b1c21; border: 1px solid var(--line2); border-radius: 20px; padding: 26px; box-shadow: 0 40px 90px rgba(0,0,0,.6); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.modal-head h2 { font-size: 1.4rem; margin: 0; }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); margin: 10px 0 4px; }
.tabs button { flex: 1; padding: .6em 1em; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font: 600 .95rem var(--body); cursor: pointer; }
.tabs button.active { background: #fff; color: #16171b; }
.protect { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(255,189,52,.06); border: 1px dashed rgba(255,189,52,.3); }
.protect label { margin-top: 0; display: flex; align-items: center; gap: .5em; }
.pin { max-width: 160px; letter-spacing: .5em; }
.test { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.05); color: var(--muted); }
.test.ok { background: rgba(74,221,140,.12); color: #b8f5d1; }
.test.bad { background: rgba(255,107,102,.12); color: #ffd2d0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90; padding: 14px 20px; border-radius: 14px; background: #fff; color: #16171b; font-weight: 600; box-shadow: 0 20px 50px rgba(0,0,0,.5); max-width: calc(100% - 32px); }
.toast.bad { background: var(--bad); color: #fff; }

/* ---------- FAQ ---------- */
.faq-group { font-size: 1.4rem; margin: 40px 0 14px; }
.faq-group:first-child { margin-top: 0; }
.faq { display: grid; gap: 10px; }
.faq details { padding: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--muted); transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }
.ask { margin-top: 40px; padding: 30px; text-align: center; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.contact-form { padding: 30px; }
.contact-form .btn { margin-top: 20px; }
.contact-form .small { margin: 14px 0 0; }
.channels h2 { font-size: 1.3rem; }
.channels { display: grid; gap: 12px; }
.channel { display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: #fff; }
.channel:hover { border-color: var(--line2); background: #23242b; }
.channel span:last-child { display: grid; }
.channel small { color: var(--muted); }
.ch-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; flex: none; }
.ch-ic .ic { width: 24px; height: 24px; color: #fff; }
.ch-ic.wa { background: #25d366; } .ch-ic.tg { background: #229ed9; } .ch-ic.ml { background: var(--grad); } .ch-ic.yt { background: #ff0000; }
.channels p { display: flex; gap: .5em; align-items: center; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- blog ---------- */
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.cats a { padding: .5em 1em; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line2); color: #d9dadf; font-weight: 500; }
.cats a[aria-current="page"] { background: #fff; color: #16171b; }
.cats span { opacity: .6; margin-left: 4px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.post h3 { margin: 0; font-size: 1.2rem; }
.post h3 a { color: #fff; }
.post h3 a:hover { color: var(--lilac); }
.post p { color: var(--muted); margin: 0; flex: 1; }
.post-cat { display: inline-flex; align-items: center; gap: .45em; color: var(--cyan); font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.post-meta { color: var(--dim); font-size: .88rem; display: inline-flex; align-items: center; gap: .45em; }
@media (max-width: 920px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.crumbs { display: flex; gap: 8px; color: var(--dim); margin-bottom: 18px; font-size: .92rem; }
.article-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.prose { font-size: 1.07rem; color: #dcdde2; padding-bottom: 72px; }
.prose h2 { font-size: 1.6rem; margin: 1.8em 0 .6em; color: #fff; }
.prose h3 { font-size: 1.2rem; margin: 1.5em 0 .5em; color: #fff; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 8px; margin: 0 0 1.2em; }
.prose blockquote { margin: 1.4em 0; padding: 16px 20px; border-left: 4px solid var(--violet); background: rgba(124,77,255,.08); border-radius: 0 12px 12px 0; }
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .97rem; }
.prose th, .prose td { border: 1px solid var(--line2); padding: 10px 12px; text-align: left; }
.prose th { background: rgba(255,255,255,.05); }
.prose a { text-decoration: underline; text-decoration-color: rgba(196,181,253,.4); text-underline-offset: 3px; }
.prose .toc, .prose nav { display: none; }
.legal h2 { font-size: 1.3rem; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg2); padding: 60px 0 0; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--muted); max-width: 380px; margin: 16px 0; font-size: .95rem; }
.foot h2 { font: 600 .8rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 6px 0 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { color: #d9dadf; }
.foot ul a:hover { color: #fff; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line2); color: #fff; }
.social a:hover { background: rgba(255,255,255,.14); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 26px 0; margin-top: 44px; border-top: 1px solid var(--line); color: var(--dim); font-size: .88rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

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