/* LIOFE — لایوف. Electric blue on deep navy, RTL, Vazirmatn. */
@font-face { font-family: Vazirmatn; src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #050b1f;
  --bg-2: #081332;
  --bg-3: #0c1b45;
  --card: rgba(18, 36, 82, .55);
  --card-solid: #0d1a3d;
  --line: rgba(110, 160, 255, .16);
  --line-strong: rgba(110, 170, 255, .32);
  --text: #eaf0ff;
  --muted: #9fb0d4;
  --faint: #6f80a8;
  --blue: #2f7bff;
  --blue-2: #1e5bff;
  --cyan: #40c4ff;
  --glow: 0 0 0 1px rgba(64, 160, 255, .25), 0 10px 40px rgba(30, 100, 255, .25);
  --ok: #2bd47d;
  --warn: #ffb547;
  --err: #ff5d6c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; font-family: Vazirmatn, Tahoma, sans-serif; font-size: 15.5px; line-height: 1.85;
  color: var(--text); background: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 85% -10%, rgba(47, 123, 255, .22), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(64, 196, 255, .10), transparent 60%);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #8fdcff; }
h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.2px; }
h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.faint { color: var(--faint); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.mono { font-family: ui-monospace, Consolas, monospace; direction: ltr; unicode-bidi: isolate; letter-spacing: .5px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .75rem; } .mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .75rem; } .mb-2 { margin-bottom: 1.5rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 1rem; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(560px, 100% - 32px); margin-inline: auto; }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(5, 11, 31, .72); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 1.25rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--text); }
.brand img.emblem { width: 38px; height: 38px; }
.brand img.word { height: 20px; width: auto; }
.brand .fa-name { font-weight: 800; font-size: .95rem; color: var(--muted); border-inline-start: 1px solid var(--line-strong); padding-inline-start: .55rem; }
.nav { display: flex; gap: .25rem; margin-inline-start: auto; align-items: center; }
.nav a { color: var(--muted); padding: .45rem .8rem; border-radius: 10px; font-weight: 700; font-size: .93rem; }
.nav a:hover, .nav a.active { color: var(--text); background: rgba(80, 140, 255, .1); }
.nav-actions { display: flex; gap: .5rem; align-items: center; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: .4rem .55rem; cursor: pointer; }
.user-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .4rem .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-weight: 700; font-size: .9rem; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); font-size: .85rem; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.6rem; }
.badge-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--err); color: #fff; font-size: .72rem; display: inline-grid; place-items: center; font-weight: 800; }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: .75rem 16px 1rem; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .7rem .8rem; }
  .brand .fa-name { display: none; }
}

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid transparent; border-radius: 12px; padding: .62rem 1.15rem; font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; color: var(--text); background: rgba(255, 255, 255, .06); transition: transform .12s ease, box-shadow .2s ease, background .2s; line-height: 1.5; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); color: var(--text); }
.btn:active { transform: none; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.btn-primary { background: linear-gradient(135deg, var(--blue-2), var(--blue) 45%, var(--cyan)); color: #fff; box-shadow: 0 8px 26px rgba(47, 123, 255, .35); }
.btn-primary:hover { box-shadow: 0 10px 34px rgba(64, 196, 255, .45); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(80, 140, 255, .1); }
.btn-danger { background: rgba(255, 93, 108, .12); border-color: rgba(255, 93, 108, .4); color: #ffb3bb; }
.btn-danger:hover { background: rgba(255, 93, 108, .2); color: #ffd0d5; }
.btn-sm { padding: .38rem .75rem; font-size: .85rem; border-radius: 10px; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: 0; color: var(--cyan); font: inherit; cursor: pointer; padding: 0; font-weight: 700; }
form.inline { display: inline; }

/* ---------- cards & grids */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; backdrop-filter: blur(8px); }
.card.glow { box-shadow: var(--glow); }
.card h3 { margin-bottom: .35rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 800; background: rgba(80, 140, 255, .14); color: #a9c8ff; border: 1px solid rgba(80, 140, 255, .25); white-space: nowrap; }
.badge.ok { background: rgba(43, 212, 125, .12); color: #7ff0b4; border-color: rgba(43, 212, 125, .3); }
.badge.warn { background: rgba(255, 181, 71, .12); color: #ffd28a; border-color: rgba(255, 181, 71, .3); }
.badge.err { background: rgba(255, 93, 108, .12); color: #ffb3bb; border-color: rgba(255, 93, 108, .3); }
.badge.dim { background: rgba(255, 255, 255, .05); color: var(--muted); border-color: var(--line); }

/* ---------- flash */
.flashes { display: grid; gap: .6rem; margin: 1.2rem 0; }
.flash { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(80, 140, 255, .08); font-weight: 700; }
.flash.success { border-color: rgba(43, 212, 125, .35); background: rgba(43, 212, 125, .08); color: #b9f7d4; }
.flash.error { border-color: rgba(255, 93, 108, .4); background: rgba(255, 93, 108, .08); color: #ffc9cf; }
.flash.dev { border-color: rgba(255, 181, 71, .45); background: rgba(255, 181, 71, .08); color: #ffe0ad; font-family: inherit; }

/* ---------- forms */
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label, .label { font-weight: 700; font-size: .92rem; color: #cdd8f3; }
.field .hint { font-size: .82rem; color: var(--faint); }
input:not([type]), input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: rgba(3, 9, 26, .65); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: .7rem .9rem; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #5d6e95; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(64, 196, 255, .14); }
input.ltr-input, input[type=tel], input[type=email], .code-input { direction: ltr; text-align: left; }
.code-input { font-size: 1.6rem; letter-spacing: .6rem; text-align: center !important; font-weight: 800; font-family: ui-monospace, Consolas, monospace; }
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: 18px 55%, 12px 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-left: 2rem; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check input { margin-top: .45rem; accent-color: var(--blue); }
.input-group { position: relative; }
.input-group .prefix { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--faint); font-weight: 800; direction: ltr; }
.input-group input { padding-left: 2rem; }
.id-status { font-size: .85rem; font-weight: 700; min-height: 1.4em; }
.id-status.ok { color: var(--ok); } .id-status.bad { color: var(--err); }
.suggest { display: flex; gap: .4rem; flex-wrap: wrap; }
.suggest button { background: rgba(80, 140, 255, .12); border: 1px solid var(--line-strong); color: var(--text); border-radius: 999px; padding: .15rem .7rem; font: inherit; font-size: .85rem; cursor: pointer; direction: ltr; }
.meter { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--err); transition: width .25s, background .25s; }
.meter i.s1 { width: 25%; } .meter i.s2 { width: 50%; background: var(--warn); } .meter i.s3 { width: 75%; background: #9be15d; } .meter i.s4 { width: 100%; background: var(--ok); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.errors { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; }
.errors li { padding: .55rem .85rem; border-radius: 10px; background: rgba(255, 93, 108, .08); border: 1px solid rgba(255, 93, 108, .35); color: #ffc9cf; font-weight: 700; font-size: .9rem; }

/* ---------- auth pages */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-side { position: relative; overflow: hidden; padding: 3rem; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(160deg, rgba(30, 91, 255, .25), rgba(5, 11, 31, .2)); border-inline-end: 1px solid var(--line); }
.auth-side img.lio { width: min(520px, 100%); border-radius: 22px; box-shadow: var(--shadow); margin-top: 1.5rem; }
.auth-main { display: grid; place-items: center; padding: 2.5rem 16px; }
.auth-card { width: min(470px, 100%); }
.steps { display: flex; gap: .4rem; margin-bottom: 1.2rem; }
.steps span { flex: 1; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .09); }
.steps span.on { background: linear-gradient(90deg, var(--blue), var(--cyan)); }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- hero & sections */
.hero { padding: 4.5rem 0 3rem; position: relative; }
.hero .grid-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: center; }
.hero .eyebrow, .eyebrow { display: inline-flex; gap: .5rem; align-items: center; padding: .3rem .85rem; border-radius: 999px; border: 1px solid var(--line-strong); color: #a9c8ff; font-weight: 800; font-size: .85rem; background: rgba(47, 123, 255, .08); }
.hero h1 .grad, .grad { background: linear-gradient(90deg, #fff, #9fd8ff 45%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 40em; }
.hero-art { position: relative; }
.hero-art img { border-radius: 26px; box-shadow: var(--shadow), 0 0 80px rgba(47, 123, 255, .35); border: 1px solid var(--line-strong); }
.id-float { position: absolute; bottom: -22px; right: -12px; background: rgba(8, 19, 50, .92); border: 1px solid var(--line-strong); border-radius: 16px; padding: .8rem 1rem; box-shadow: var(--shadow); display: flex; gap: .7rem; align-items: center; }
.id-float b { direction: ltr; display: block; }
.stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; }
.stats b { display: block; font-size: 1.6rem; font-weight: 800; }
.stats span { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .hero .grid-hero { grid-template-columns: 1fr; } .hero { padding-top: 2.5rem; } .id-float { right: 8px; } }

.section { padding: 4rem 0; }
.section-head { max-width: 760px; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.platform-card { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card-solid); display: flex; flex-direction: column; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.platform-card:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: var(--line-strong); color: var(--text); }
.platform-card .shot { aspect-ratio: 16/9; object-fit: cover; width: 100%; height: auto; }
.platform-card .body { padding: 1.1rem 1.2rem 1.25rem; display: grid; gap: .3rem; }
.platform-card .num { position: absolute; top: .8rem; left: .8rem; font-weight: 800; color: rgba(255, 255, 255, .85); background: rgba(5, 11, 31, .6); border-radius: 10px; padding: .1rem .55rem; font-size: .85rem; direction: ltr; }
.platform-card .status { position: absolute; top: .8rem; right: .8rem; }
.platform-card .en { color: var(--faint); font-size: .82rem; direction: ltr; text-align: right; }

.step-card { counter-increment: step; position: relative; }
.step-card::before { content: counter(step, persian); position: absolute; top: -14px; right: 1.2rem; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; box-shadow: 0 6px 20px rgba(47, 123, 255, .4); }
.steps-grid { counter-reset: step; }
.feature { display: flex; gap: .9rem; align-items: flex-start; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(47, 123, 255, .14); color: var(--cyan); border: 1px solid var(--line-strong); }
.feature .ic .icon { width: 22px; height: 22px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

.lio-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.lio-strip figure { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--card-solid); }
.lio-strip img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.lio-strip figcaption { padding: .45rem .7rem; font-weight: 700; font-size: .86rem; color: var(--muted); }
@media (max-width: 800px) { .lio-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cta-band { border-radius: 26px; padding: 2.5rem; background: linear-gradient(120deg, rgba(30, 91, 255, .35), rgba(64, 196, 255, .15)); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }

/* ---------- footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 3rem 0 2rem; background: rgba(3, 8, 24, .6); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font-size: .95rem; color: #cdd8f3; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.site-footer a { color: var(--muted); font-size: .92rem; }
.site-footer a:hover { color: var(--text); }
.site-footer .legal { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--faint); font-size: .85rem; }
.site-footer .stacked { width: 120px; opacity: .9; margin-bottom: 1rem; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- account layout */
.acc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.5rem; padding: 1.8rem 0 3rem; }
.acc-side { position: sticky; top: 88px; align-self: start; display: grid; gap: .25rem; }
.acc-side .who { display: flex; gap: .7rem; align-items: center; padding: .9rem; margin-bottom: .5rem; }
.acc-side .who b { display: block; line-height: 1.4; }
.acc-side .who .ltr { color: var(--cyan); font-size: .88rem; font-weight: 700; }
.acc-side a { display: flex; align-items: center; gap: .6rem; padding: .62rem .85rem; border-radius: 12px; color: var(--muted); font-weight: 700; font-size: .94rem; }
.acc-side a:hover { background: rgba(80, 140, 255, .08); color: var(--text); }
.acc-side a.active { background: linear-gradient(90deg, rgba(47, 123, 255, .22), rgba(47, 123, 255, .04)); color: #fff; box-shadow: inset -3px 0 0 var(--cyan); }
.acc-side a .badge-count { margin-inline-start: auto; }
.acc-main { min-width: 0; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.page-title h1 { font-size: 1.6rem; margin: 0; }
@media (max-width: 900px) {
  .acc { grid-template-columns: 1fr; }
  .acc-side { position: static; display: flex; overflow-x: auto; gap: .35rem; padding-bottom: .4rem; }
  .acc-side .who { display: none; }
  .acc-side a { white-space: nowrap; border: 1px solid var(--line); }
}

.id-card { position: relative; overflow: hidden; border-radius: 22px; padding: 1.5rem; background: linear-gradient(135deg, #1240c9 0%, #1d6bff 45%, #29b6ff 100%); color: #fff; box-shadow: 0 20px 50px rgba(30, 91, 255, .35); }
.id-card::after { content: ""; position: absolute; inset: auto -60px -80px auto; width: 260px; height: 260px; background: url("../img/brand/emblem-light.png") center/contain no-repeat; opacity: .12; }
.id-card .label { color: rgba(255, 255, 255, .8); font-size: .85rem; }
.id-card .handle { font-size: 1.7rem; font-weight: 800; direction: ltr; text-align: right; letter-spacing: .3px; }
.id-card .name { font-weight: 700; }
.id-card .wallet { margin-top: 1rem; display: flex; gap: 1.5rem; flex-wrap: wrap; position: relative; z-index: 1; }
.id-card .wallet b { font-size: 1.35rem; display: block; }

.stat { padding: 1.1rem 1.2rem; }
.stat .k { color: var(--muted); font-size: .88rem; font-weight: 700; display: flex; align-items: center; gap: .4rem; }
.stat .v { font-size: 1.55rem; font-weight: 800; margin-top: .2rem; }
.progress { height: 8px; background: rgba(255, 255, 255, .08); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 99px; }

.list { display: grid; }
.list > * { display: flex; gap: .85rem; align-items: center; padding: .85rem .3rem; border-bottom: 1px solid var(--line); }
.list > *:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .sub { color: var(--faint); font-size: .84rem; }
.list a.item:hover { background: rgba(80, 140, 255, .05); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); flex: none; box-shadow: 0 0 10px var(--cyan); }
.dot.read { background: transparent; box-shadow: none; border: 1px solid var(--line-strong); }
.amount-pos { color: var(--ok); font-weight: 800; direction: ltr; }
.amount-neg { color: #ff9aa5; font-weight: 800; direction: ltr; }
.empty { text-align: center; padding: 2.2rem 1rem; color: var(--muted); }
.empty img { width: 120px; margin: 0 auto .8rem; border-radius: 20px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: .7rem .85rem; text-align: right; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 800; font-size: .84rem; background: rgba(255, 255, 255, .03); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

.tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs a { padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: .88rem; }
.tabs a.on { background: rgba(47, 123, 255, .2); border-color: var(--line-strong); color: #fff; }

.code-box { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-radius: 16px; background: linear-gradient(135deg, rgba(30, 91, 255, .25), rgba(64, 196, 255, .1)); border: 1px dashed var(--cyan); }
.code-box .code { font-size: 2.1rem; font-weight: 800; letter-spacing: .5rem; direction: ltr; font-family: ui-monospace, Consolas, monospace; color: #fff; text-shadow: 0 0 22px rgba(64, 196, 255, .6); }
.countdown { font-weight: 800; color: var(--warn); direction: ltr; display: inline-block; }
.scope-list { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .3rem; }
.scope-list li { display: flex; gap: .5rem; align-items: center; color: #cdd8f3; font-size: .92rem; }
.scope-list li .icon { color: var(--ok); }
.warn-box { padding: .85rem 1rem; border-radius: 12px; background: rgba(255, 181, 71, .08); border: 1px solid rgba(255, 181, 71, .35); color: #ffe0ad; font-size: .9rem; }
.info-box { padding: .85rem 1rem; border-radius: 12px; background: rgba(64, 196, 255, .07); border: 1px solid rgba(64, 196, 255, .3); color: #c9ecff; font-size: .9rem; }

.mail-body { white-space: pre-wrap; line-height: 2.05; font-size: 1rem; color: #dbe5fb; }
.qr { background: #fff; padding: 12px; border-radius: 16px; width: 220px; height: 220px; image-rendering: pixelated; }
.secret-key { font-family: ui-monospace, Consolas, monospace; direction: ltr; background: rgba(3, 9, 26, .7); border: 1px solid var(--line-strong); border-radius: 10px; padding: .6rem .8rem; font-size: 1.05rem; letter-spacing: 1px; word-break: break-all; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; direction: ltr; font-family: ui-monospace, Consolas, monospace; font-size: 1.1rem; }
.codes span { background: rgba(3, 9, 26, .7); border: 1px solid var(--line-strong); border-radius: 10px; padding: .5rem; text-align: center; }

.pager { display: flex; justify-content: center; gap: .5rem; margin-top: 1.2rem; }
dl.kv { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: .45rem 1rem; margin: 0; }
dl.kv dt { color: var(--muted); font-size: .9rem; }
dl.kv dd { margin: 0; font-weight: 700; word-break: break-word; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 2rem; }
.prose li { margin-bottom: .4rem; color: #d3ddf5; }
.prose p { color: #d3ddf5; }
pre.code { direction: ltr; text-align: left; background: #030817; border: 1px solid var(--line-strong); border-radius: 12px; padding: 1rem; overflow-x: auto; font-size: .85rem; line-height: 1.6; color: #cfe3ff; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .88em; background: rgba(80, 140, 255, .12); padding: .05rem .35rem; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }
pre.code code { background: none; padding: 0; }

/* ---------- LIO assistant */
.lio-btn { position: fixed; left: 18px; bottom: 18px; z-index: 60; width: 66px; height: 66px; border-radius: 50%; border: 2px solid rgba(64, 196, 255, .6); padding: 0; overflow: hidden; cursor: pointer; background: #0b2a7a; box-shadow: 0 10px 30px rgba(30, 91, 255, .5); animation: lio-pulse 3s ease-in-out infinite; }
.lio-btn img { width: 100%; height: 100%; object-fit: cover; }
@keyframes lio-pulse { 0%, 100% { box-shadow: 0 10px 30px rgba(30, 91, 255, .45); } 50% { box-shadow: 0 10px 40px rgba(64, 196, 255, .75); } }
.lio-panel { position: fixed; left: 18px; bottom: 96px; z-index: 61; width: min(380px, calc(100vw - 36px)); max-height: min(560px, calc(100vh - 130px)); display: none; flex-direction: column; background: rgba(8, 19, 50, .97); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.lio-panel.open { display: flex; }
.lio-head { display: flex; gap: .7rem; align-items: center; padding: .8rem 1rem; background: linear-gradient(90deg, rgba(30, 91, 255, .35), rgba(64, 196, 255, .1)); border-bottom: 1px solid var(--line); }
.lio-head img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.lio-head b { display: block; line-height: 1.3; }
.lio-head small { color: var(--muted); }
.lio-head button { margin-inline-start: auto; background: none; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; }
.lio-log { padding: 1rem; overflow-y: auto; display: grid; gap: .6rem; flex: 1; }
.lio-msg { max-width: 88%; padding: .6rem .85rem; border-radius: 14px; font-size: .92rem; line-height: 1.9; white-space: pre-wrap; }
.lio-msg.bot { background: rgba(47, 123, 255, .14); border: 1px solid var(--line); justify-self: start; border-top-right-radius: 4px; }
.lio-msg.me { background: linear-gradient(135deg, var(--blue-2), var(--blue)); color: #fff; justify-self: end; border-top-left-radius: 4px; }
.lio-chips { display: flex; gap: .35rem; flex-wrap: wrap; padding: 0 1rem .6rem; }
.lio-chips button { background: rgba(80, 140, 255, .1); border: 1px solid var(--line-strong); color: #cdd8f3; border-radius: 999px; padding: .2rem .7rem; font: inherit; font-size: .8rem; cursor: pointer; }
.lio-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); }
.lio-form input { padding: .55rem .8rem; }

/* ---------- admin */
.admin-bar { background: linear-gradient(90deg, #2a0f3d, #0c1b45); border-bottom: 1px solid rgba(255, 93, 108, .3); }
.admin-tag { background: var(--err); color: #fff; border-radius: 6px; padding: 0 .45rem; font-size: .75rem; font-weight: 800; }

@media print { .site-header, .site-footer, .lio-btn, .lio-panel, .acc-side { display: none !important; } body { background: #fff; color: #000; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

progress.bar { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; display: block; }
progress.bar::-webkit-progress-bar { background: rgba(255, 255, 255, .08); border-radius: 99px; }
progress.bar::-webkit-progress-value { background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 99px; }
progress.bar::-moz-progress-bar { background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 99px; }
.mx-auto { margin-inline: auto; }
.row.centered { justify-content: center; }
.field.full { grid-column: 1 / -1; }
.d-block { display: block; }
.toast { position: fixed; inset-inline: 0; bottom: 28px; margin-inline: auto; width: max-content; max-width: calc(100vw - 32px); z-index: 90; padding: .55rem 1.1rem; border-radius: 999px; background: #0f2a6b; border: 1px solid var(--line-strong); color: #fff; font-weight: 800; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }
.lio-links { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; white-space: normal; }
.lio-links a { display: inline-block; padding: .1rem .6rem; border-radius: 999px; background: rgba(64, 196, 255, .14); border: 1px solid var(--line-strong); color: #bfe6ff; font-size: .82rem; font-weight: 700; text-decoration: none; }
.expired .code { opacity: .35; text-decoration: line-through; }
@media (prefers-reduced-motion: reduce) { .lio-btn { animation: none; } .toast { transition: none; } }
.platform-card.featured { grid-column: 1 / -1; flex-direction: row; }
.platform-card.featured .shot { width: 58%; aspect-ratio: auto; min-height: 280px; }
.platform-card.featured .body { align-content: center; padding: 1.6rem 1.8rem; gap: .5rem; }
.platform-card.featured h3 { font-size: 1.6rem; }
@media (max-width: 640px) { .platform-card.featured { flex-direction: column; } .platform-card.featured .shot { width: 100%; aspect-ratio: 16/9; min-height: 0; } }
