:root {
  --bg: #f4f6fb; --panel: #ffffff; --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e6e9f2;
  /* SmartIdara logo palette: navy #0a3a9e, sky #1e93f2, green #34b856 */
  --brand: #0a3a9e; --brand-2: #1e93f2; --accent: #34b856; --brand-ink: #ffffff; --brand-soft: #e8f2fe;
  --grad: linear-gradient(135deg, #0a3a9e 0%, #1e93f2 100%);
  --ok: #0f7a43; --ok-soft: #e6f6ed; --warn: #b45309; --warn-soft: #fef3e2; --bad: #c0262d; --bad-soft: #fdecec;
  --side-1: #061a4a; --side-2: #0a2c72; --side-ink: #c6d6f2; --side-mute: #8aa3cf; --side-hover: rgba(255,255,255,.08);
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 6px 24px rgba(15,23,42,.05);
  --shadow-lg: 0 2px 4px rgba(15,23,42,.05), 0 18px 40px rgba(15,23,42,.10);
  /* chart tokens (validated categorical slots 1-3 + status palette) */
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a;
  --st-good: #0ca30c; --st-warn: #fab219; --st-serious: #ec835a; --st-critical: #d03b3b;
  --grid: #eceef4; --axis: #c9cedb; --axis-ink: #8a90a2;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
html[dir="rtl"] body { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", sans-serif; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.ico { flex: none; vertical-align: middle; }

/* ---------- Layout & sidebar ---------- */
.layout { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.side { background: linear-gradient(180deg, var(--side-1) 0%, var(--side-2) 100%); color: var(--side-ink);
  padding: 18px 12px; overflow-y: auto; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.side .brand { padding: 8px 12px 18px; margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08); min-width: 0; }
.side .brand .logo-link { display: inline-block; max-width: 100%; }
.side .brand .logo-link img { display: block; height: 26px; width: auto; max-width: 100%; object-fit: contain; }
.side .brand .school { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07); min-width: 0; }
.side .brand b { display: block; color: #fff; font-size: 13.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .brand small { color: var(--side-mute); font-size: 12px; }
.side .nav-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--side-mute);
  padding: 8px 12px 6px; }
.side details { margin-bottom: 2px; }
.side summary { list-style: none; cursor: pointer; padding: 9px 12px; border-radius: 10px; color: #e6e8f6;
  font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 10px; transition: background .15s; }
.side summary .ico { opacity: .8; }
.side summary::after { content: ""; margin-inline-start: auto; width: 6px; height: 6px; border-right: 2px solid var(--side-mute);
  border-bottom: 2px solid var(--side-mute); transform: rotate(-45deg); transition: transform .2s; }
.side details[open] summary::after { transform: rotate(45deg); }
.side summary::-webkit-details-marker { display: none; }
.side summary:hover { background: var(--side-hover); }
.side details a { display: block; padding: 7px 12px 7px 40px; color: var(--side-ink); font-size: 13.5px; border-radius: 8px;
  position: relative; margin: 1px 0; }
html[dir="rtl"] .side details a { padding: 7px 40px 7px 12px; }
.side details a:hover { background: var(--side-hover); color: #fff; text-decoration: none; }
.side details a.active { background: rgba(30,147,242,.28); color: #fff; font-weight: 600; }
.side details a.active::before { content: ""; position: absolute; inset-inline-start: 24px; top: 50%; width: 6px; height: 6px;
  margin-top: -3px; border-radius: 50%; background: var(--accent); }
.side .foot { margin-top: auto; padding: 14px 8px 4px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.side .foot a { color: var(--side-ink); display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; }
.side .foot a:hover { background: var(--side-hover); color: #fff; text-decoration: none; }
.side .foot select { background: rgba(255,255,255,.06); color: #e6e8f6; border-color: rgba(255,255,255,.12); }
.side .foot select option { color: var(--ink); }
.side .me { display: flex; gap: 10px; align-items: center; padding: 10px 8px 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700;
  display: grid; place-items: center; font-size: 14px; flex: none; text-transform: uppercase; }
.side .me .who { min-width: 0; flex: 1; line-height: 1.3; }
.side .me .who b { color: #fff; font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .me .who small { color: var(--side-mute); font-size: 12px; }
.icon-btn { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: var(--side-ink);
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: rgba(255,255,255,.14); color: #fff; }

.main { padding: 0 32px 64px; min-width: 0; animation: rise .35s ease-out; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 -32px 22px; padding: 18px 32px; position: sticky; top: 0; z-index: 5;
  background: rgba(244,246,251,.82); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230,233,242,.8); }
.top .no-print { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
h1 { font-size: 23px; margin: 0; letter-spacing: -.02em; }
h2 { font-size: 17px; margin: 26px 0 12px; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.btn.menu-toggle { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .main, .card { animation: none !important; transition: none !important; } }

/* ---------- Cards & stats ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.stat { position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat .label { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat .value { font-size: 26px; font-weight: 800; margin-top: 2px; letter-spacing: -.02em; }
.stat .sub { font-size: 13px; color: var(--muted); }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; background: var(--panel); }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 700; background: #f8f9fc; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td, table tr:hover td { background: #fafbff; }
td.num, th.num { text-align: end; font-variant-numeric: tabular-nums; }

/* Every on-screen data table (module lists, attendance, results, reports...) */
.table-wrap { overflow-x: auto; border: 1px solid #dfe6f2; border-radius: var(--radius); background: var(--panel);
  box-shadow: 0 1px 2px rgba(10,58,158,.04), 0 10px 30px rgba(10,58,158,.07); }
.table-wrap table { border-collapse: separate; border-spacing: 0; }
.table-wrap th { position: sticky; top: 0; z-index: 1; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .05em; padding: 14px 16px; white-space: nowrap; border-bottom: 0; }
.table-wrap tr:first-child th:first-child { border-start-start-radius: calc(var(--radius) - 1px); }
.table-wrap tr:first-child th:last-child { border-start-end-radius: calc(var(--radius) - 1px); }
/* <th> used as a row label (timetable days) or a totals row, not the header */
.table-wrap tbody tr:not(:first-child) th { position: static; background: var(--brand-soft); color: var(--brand);
  border-bottom: 1px solid #dbe8fb; border-radius: 0; text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.table-wrap td { padding: 13px 16px; border-bottom: 1px solid #edf1f7; vertical-align: middle; font-size: 14px; }
.table-wrap tbody tr:nth-child(even) td { background: #fafcff; }
.table-wrap tbody tr { transition: background .12s; }
.table-wrap tbody tr:hover td { background: #eef5ff; }
.table-wrap tbody tr td:first-child { box-shadow: inset 3px 0 0 transparent; transition: box-shadow .12s; }
.table-wrap tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--brand-2); }
html[dir="rtl"] .table-wrap tbody tr:hover td:first-child { box-shadow: inset -3px 0 0 var(--brand-2); }
.table-wrap td a:not(.act):not(.btn) { font-weight: 600; }
.table-wrap.tiny-wrap th, .table-wrap .tiny-cal th { padding: 8px 5px; letter-spacing: 0; }
.table-wrap .tiny-cal td { padding: 4px 5px; }
.table-wrap tbody tr.empty td, .table-wrap tbody tr.empty:hover td { background: var(--panel); box-shadow: none; }

/* Module list pages */
.data-card { display: flex; flex-direction: column; gap: 14px; }
.data-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.data-count { color: var(--muted); font-size: 14px; }
.data-count b { color: var(--ink); font-size: 16px; }
.data-search { position: relative; display: flex; align-items: center; width: 100%; max-width: 360px; }
.data-search > .ico { position: absolute; inset-inline-start: 13px; color: #94a3b8; pointer-events: none; }
.data-search input { max-width: none; height: 42px; padding-inline-start: 40px; padding-inline-end: 36px; border-radius: 12px;
  background: var(--panel); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.data-clear { position: absolute; inset-inline-end: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  color: var(--muted); font-size: 18px; line-height: 1; }
.data-clear:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.data-table .idx { width: 1%; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.data-table th.idx { color: #fff; }
.data-table td:has(.money) { text-align: end; }
.money { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nil { color: #c0c7d4; }
.who-cell { display: inline-flex; align-items: center; gap: 10px; }
.who-cell .ini { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.who-cell b { font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 99px; font-size: 12px;
  font-weight: 700; white-space: nowrap; background: #eef0f5; color: var(--ink-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.b-ok { background: var(--ok-soft); color: var(--ok); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
.b-serious { background: #fff1e6; color: #b6470f; }
.b-bad { background: var(--bad-soft); color: var(--bad); }
.b-mute { background: #eef0f5; color: var(--muted); }
.b-brand { background: var(--brand-soft); color: var(--brand); }
.b-zoom { background: #e8f1fd; color: #1c5cab; }
.b-meet { background: var(--ok-soft); color: var(--ok); }
.b-teams { background: #efeefe; color: #4b4bb3; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 42px 16px; text-align: center; }
.empty-state .chip-ico { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 6px; }
.empty-state b { font-size: 16px; }
.empty-state span { color: var(--muted); font-size: 14px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.pager > div { display: flex; gap: 8px; align-items: center; }
.pager-num { padding: 0 6px; font-weight: 600; }

.confirm-del { max-width: 480px; margin: 24px auto; padding: 32px; text-align: center; }
.confirm-del .confirm-ico { width: 60px; height: 60px; border-radius: 18px; display: inline-grid; place-items: center;
  background: var(--bad-soft); color: var(--bad); margin-bottom: 12px; }
.confirm-del h2 { margin: 0 0 8px; font-size: 20px; }
.confirm-del p { color: var(--ink-2); margin: 0 0 24px; }
.confirm-del form { display: flex; gap: 10px; justify-content: center; }

/* Row action buttons (edit / delete) */
.acts { width: 1%; white-space: nowrap; text-align: end; }
th.acts-h { text-align: end; }
.act { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid transparent; transition: background .15s, color .15s, transform .15s, box-shadow .15s; vertical-align: middle; }
.act + .act { margin-inline-start: 6px; }
.act.edit { background: var(--brand-soft); color: var(--brand-2); border-color: #d4e6fd; }
.act.edit:hover { background: var(--brand-2); color: #fff; box-shadow: 0 6px 14px rgba(30,147,242,.35); transform: translateY(-1px); }
.act.del { background: var(--bad-soft); color: var(--bad); border-color: #f8d4d4; }
.act.del:hover { background: var(--bad); color: #fff; box-shadow: 0 6px 14px rgba(192,38,45,.3); transform: translateY(-1px); }
.act:hover { text-decoration: none; }
.act:focus-visible { outline: 3px solid rgba(30,147,242,.35); outline-offset: 2px; }
[data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px);
  background: #0f172a; color: #fff; font-size: 11.5px; font-weight: 600; padding: 4px 8px; border-radius: 6px; white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity .12s, transform .12s; z-index: 5; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: 10px;
  border: 1px solid transparent; background: var(--grad); color: var(--brand-ink); font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; box-shadow: 0 4px 14px rgba(10,58,158,.25); transition: transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { text-decoration: none; filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(10,58,158,.3); }
.btn:active { transform: none; }
.btn.ghost { background: var(--panel); color: var(--ink-2); border-color: var(--line); box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.btn.ghost:hover { border-color: #c7cbe0; color: var(--brand); }
.btn.danger { background: var(--bad); box-shadow: 0 4px 14px rgba(192,38,45,.25); }
.btn.small { padding: 5px 11px; font-size: 13px; border-radius: 8px; }

/* ---------- Forms ---------- */
form.stack p, form.stack .field { margin: 0 0 16px; }
form.stack label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--ink-2); }
input[type=text], input[type=number], input[type=date], input[type=time], input[type=password], input[type=email],
input[type=search], input[type=month], input[type=tel], input[type=url], select, textarea {
  font: inherit; padding: 9px 12px; border: 1px solid #d5d9e6; border-radius: var(--radius-sm); background: #fff; width: 100%;
  max-width: 460px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(30,147,242,.18); }
select[multiple] { min-height: 120px; }
textarea { min-height: 100px; }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: 16px; height: 16px; vertical-align: middle; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
form.inline-form { padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.inline-form input, .inline-form select { width: auto; }
.inline-form label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.helptext { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.errorlist { color: var(--bad); margin: 6px 0; padding-inline-start: 18px; font-size: 13px; }
.errorlist.nonfield { list-style: none; padding: 10px 14px; background: var(--bad-soft); border-radius: var(--radius-sm); }

/* ---------- Messages & pills ---------- */
.msgs { list-style: none; padding: 0; margin: 0 0 18px; }
.msgs li { padding: 12px 16px; border-radius: 12px; margin-bottom: 8px; background: var(--ok-soft); color: var(--ok);
  border-inline-start: 4px solid currentColor; font-weight: 500; }
.msgs li.info { background: var(--brand-soft); color: var(--brand); }
.msgs li.error { background: var(--bad-soft); color: var(--bad); }
.msgs li.warning { background: var(--warn-soft); color: var(--warn); }

.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #eef0f5; color: var(--ink-2); }
.pill.Paid, .pill.P { background: var(--ok-soft); color: var(--ok); }
.pill.Partial, .pill.L { background: var(--warn-soft); color: var(--warn); }
.pill.Overdue, .pill.A { background: var(--bad-soft); color: var(--bad); }

.att-choice { display: inline-flex; gap: 4px; }
.att-choice input { display: none; }
.att-choice label { padding: 4px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 13px; background: #fff; transition: all .12s; }
.att-choice label:hover { border-color: #c7cbe0; }
.att-choice input:checked + label.P { background: var(--ok); color: #fff; border-color: var(--ok); }
.att-choice input:checked + label.A { background: var(--bad); color: #fff; border-color: var(--bad); }
.att-choice input:checked + label.L { background: var(--warn); color: #fff; border-color: var(--warn); }

/* ---------- Home module tiles ---------- */
.module-card { display: flex; flex-direction: column; gap: 6px; }
.module-card .mhead { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.module-card a { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-top: 1px dashed var(--line); color: var(--ink-2); font-weight: 500; }
.module-card a:hover { color: var(--brand); text-decoration: none; }
.chip-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }

/* ---------- Login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--panel); }
.auth-hero { position: relative; overflow: hidden; color: #fff; padding: 56px 64px; display: flex; flex-direction: column;
  background: radial-gradient(1200px 600px at 10% 10%, #0a3a9e 0%, transparent 60%),
              radial-gradient(900px 500px at 90% 90%, #1e93f2 0%, transparent 55%), #061a4a; }
.auth-hero::before { content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); }
.auth-hero .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: float 12s ease-in-out infinite; }
.auth-hero .blob.a { width: 320px; height: 320px; background: #1e93f2; top: -80px; right: -60px; }
.auth-hero .blob.b { width: 260px; height: 260px; background: #34b856; opacity: .35; bottom: -60px; left: 20%; animation-delay: -6s; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px,-24px); } }
.auth-hero > * { position: relative; }
.auth-hero .brandmark { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 17px; }
.auth-hero .brandmark { flex-wrap: wrap; gap: 14px; }
.auth-hero .brandmark img { display: block; height: 32px; width: auto; max-width: 100%; }
.auth-hero .brandmark .tenant { padding-inline-start: 14px; border-inline-start: 1px solid rgba(255,255,255,.25);
  color: #dbe7fb; font-weight: 600; font-size: 15px; }.auth-hero h2 { font-size: 40px; line-height: 1.12; margin: auto 0 14px; letter-spacing: -.03em; max-width: 520px; }
.auth-hero h2 span { background: linear-gradient(90deg, #7cc4ff, #6ee08a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero p.lead { color: #c6d6f2; font-size: 16px; max-width: 460px; margin: 0 0 28px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; margin-bottom: auto; }
.features div { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 600;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.features .ico { color: #6ee08a; }
.auth-hero .fine { color: #8aa3cf; font-size: 13px; margin-top: 32px; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.login-box { width: 100%; max-width: 400px; }
.login-box .back-home { display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 28px; }
.login-box .back-home:hover { color: var(--brand); text-decoration: none; }
.login-box h1 { font-size: 28px; margin-bottom: 6px; }
.login-box .muted { margin: 0 0 28px; }
.input-ico { position: relative; }
.input-ico > .ico { position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.input-ico input { padding-inline-start: 42px !important; max-width: none; height: 48px; border-radius: 12px; background: #f8f9fc; }
.input-ico input:focus { background: #fff; }
.input-ico .reveal { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0;
  color: #94a3b8; cursor: pointer; padding: 6px; border-radius: 8px; }
.input-ico .reveal:hover { color: var(--brand); background: var(--brand-soft); }
.login-box .btn { width: 100%; height: 48px; font-size: 15px; border-radius: 12px; margin-top: 6px; }
.login-box .secure { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: 12.5px; margin-top: 22px; }

/* ---------- Dashboard ---------- */
.hero { position: relative; overflow: hidden; border-radius: 20px; padding: 26px 28px; color: #fff; margin-bottom: 20px;
  background: radial-gradient(600px 300px at 100% 0%, rgba(52,184,86,.30), transparent 60%), var(--grad);
  box-shadow: 0 14px 40px rgba(10,58,158,.28); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%;
  border: 40px solid rgba(255,255,255,.08); }
.hero h2 { margin: 0 0 4px; font-size: 24px; color: #fff; }
.hero p { margin: 0; color: #dcebfd; }
.hero .quick { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero .quick a { display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border-radius: 12px; color: #fff; font-weight: 600; font-size: 13.5px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); transition: background .15s; }
.hero .quick a:hover { background: rgba(255,255,255,.24); text-decoration: none; }

.kpis { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 20px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .kpis { grid-template-columns: 1fr; } }
.kpi { display: flex; flex-direction: column; gap: 4px; min-height: 160px; }
.kpi .khead { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.kpi .chip-ico.c1 { background: #e8f1fd; color: #1c5cab; }
.kpi .chip-ico.c2 { background: #e6f6ed; color: var(--ok); }
.kpi .chip-ico.c3 { background: #f3ecff; color: #6d28d9; }
.kpi .chip-ico.c4 { background: var(--bad-soft); color: var(--bad); }
.kpi .chip-ico.c5 { background: #fff1e6; color: #b6470f; }
.kpi .chip-ico.c6 { background: #e6f7f3; color: #0c7a5a; }
.kpi .value { font-size: 28px; }
.kpi .spark { margin-top: auto; height: 34px; }
.delta { display: inline-flex; gap: 3px; align-items: center; font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.delta.up { color: var(--ok); background: var(--ok-soft); }
.delta.down { color: var(--bad); background: var(--bad-soft); }
.delta.flat { color: var(--muted); background: #eef0f5; }
.meter { height: 8px; border-radius: 99px; background: #eef0f5; overflow: hidden; margin: 8px 0 4px; }
.meter > span { display: block; height: 100%; border-radius: 99px; background: var(--grad); }

.filterbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.filterbar h2 { margin: 0; }
.seg { display: inline-flex; background: #e9ecf5; border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); padding: 5px 12px; border-radius: 8px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,23,42,.12); }

.charts { display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-bottom: 16px; }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; }
.chart-card { display: flex; flex-direction: column; min-width: 0; }
.chart-card .chead { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.chart-card h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.chart-card .csub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.chart-card .tbl-toggle { border: 1px solid var(--line); background: #fff; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600;
  border-radius: 8px; padding: 4px 9px; cursor: pointer; white-space: nowrap; }
.chart-card .tbl-toggle:hover { color: var(--brand); border-color: #c7cbe0; }
.chart-card .tbl-toggle[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.chart-card .ctable { display: none; max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.chart-card .ctable th, .chart-card .ctable td { padding: 6px 10px; font-size: 13px; }
.chart-card.show-table .ctable { display: block; }
.chart-card.show-table .plot { display: none; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.plot { position: relative; }
.plot svg { display: block; width: 100%; overflow: visible; }
.plot .tick { font-size: 11px; fill: var(--axis-ink); font-variant-numeric: tabular-nums; }
.plot .dlabel { font-size: 11.5px; font-weight: 700; fill: var(--ink-2); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.tip { position: absolute; pointer-events: none; z-index: 4; background: #0f172a; color: #fff; border-radius: 10px; padding: 8px 11px;
  font-size: 12.5px; line-height: 1.5; box-shadow: 0 10px 24px rgba(15,23,42,.25); white-space: nowrap; opacity: 0; transition: opacity .12s; }
.tip.on { opacity: 1; }
.tip b { display: block; font-size: 12px; color: #cbd5e1; font-weight: 600; margin-bottom: 2px; }
.tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-inline-end: 6px; }
.empty-chart { display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 13.5px; min-height: 180px;
  border: 1px dashed var(--line); border-radius: 12px; padding: 16px; }

.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(70px, 30%) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.hbar .hl { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.hbar .track { height: 12px; border-radius: 0 4px 4px 0; background: #f1f3f8; position: relative; }
.hbar .fill { display: block; height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar .hv { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); min-width: 48px; text-align: end; }

.stackbar { display: flex; gap: 2px; height: 16px; border-radius: 6px; overflow: hidden; margin: 6px 0 14px; background: #f1f3f8; }
.stackbar span { display: block; height: 100%; }
.s-Paid { background: var(--st-good); } .s-Partial { background: var(--st-warn); }
.s-Unpaid { background: var(--st-serious); } .s-Overdue { background: var(--st-critical); }
.status-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.status-list div { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #f8f9fc; font-size: 13px; }
.status-list .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.status-list b { display: block; font-size: 15px; }
.status-list small { color: var(--muted); }
.big-ring { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.big-ring .rv { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.feed li:last-child { border-bottom: 0; }
.feed .who { flex: 1; min-width: 0; }
.feed .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .who small { color: var(--muted); }
.feed .amt { font-weight: 700; color: var(--ok); white-space: nowrap; }

/* ---------- LMS ---------- */
.lms-today { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: 22px; }
.lms-today-card { display: flex; flex-direction: column; gap: 4px; }
.lms-today-card.live { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(52,184,86,.15), var(--shadow); }
.lms-today-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.lms-today-card .muted { font-size: 13px; }
.lms-time { font-weight: 700; font-size: 14px; margin: 4px 0 10px; }
.lms-today-card .btn { align-self: flex-start; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ok); }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(52,184,86,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52,184,86,0); } 100% { box-shadow: 0 0 0 0 rgba(52,184,86,0); } }

.plat { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: #eef0f5; color: var(--ink-2); }
.plat-zoom { background: #e8f1fd; color: #1c5cab; }
.plat-meet { background: var(--ok-soft); color: var(--ok); }
.plat-teams { background: #efeefe; color: #4b4bb3; }

.lms-filter { margin-bottom: 18px; }
.lms-filter-title { display: block; font-size: 15px; margin-bottom: 12px; }
.lms-filter-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.lms-filter-row select { width: auto; min-width: 180px; }
.lms-search { display: flex; flex: 1; min-width: 260px; max-width: 560px; }
.lms-search .input-ico { flex: 1; display: block; }
.lms-search .input-ico input { height: 42px; border-radius: 10px 0 0 10px; }
.lms-search .btn { border-radius: 0 10px 10px 0; box-shadow: none; }
.table-wrap tr.paused td { color: var(--muted); }
.lms-join { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }

.lms-brief { margin-bottom: 16px; }
.lms-brief-meta { display: flex; gap: 10px 28px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.lms-brief-meta span { font-size: 14px; }
.lms-brief-meta b { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.lms-brief p { margin: 0 0 10px; }
.pct { font-weight: 700; }
.pct.low { color: var(--bad); }
.pct.high { color: var(--ok); }
form.stack .field > div[id] { display: flex; flex-wrap: wrap; gap: 6px 16px; }
form.stack .field > div[id] label { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; margin: 0; }

/* ---------- Digital library ---------- */
.lib-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.lib-book { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.lib-book.paused { opacity: .7; }
.lib-cover { display: grid; place-items: center; height: 170px; background: var(--brand-soft); color: var(--brand); }
.lib-cover img { width: 100%; height: 100%; object-fit: cover; }
.lib-cover span { display: grid; justify-items: center; gap: 6px; }
.lib-cover em { font-style: normal; font-weight: 800; font-size: 12px; letter-spacing: .08em; }
.lib-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 14px 16px 16px; }
.lib-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.lib-title { font-size: 15px; line-height: 1.3; }
.lib-body .muted { font-size: 13px; }
.lib-meta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.lib-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.lib-locked { display: inline-flex; gap: 5px; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--warn);
  background: var(--warn-soft); padding: 4px 10px; border-radius: 99px; }
.lib-admin { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed var(--line); }
.lib-switch { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; cursor: pointer; margin: 0; }
.lib-settings { display: flex; gap: 10px 22px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.lib-settings label { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-weight: 600; }
.lib-note { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); }
.lib-rank { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; font-size: 13.5px; }
.lib-rank li span { display: inline-flex; gap: 4px; align-items: center; color: var(--muted); font-size: 12.5px; margin-inline-start: 6px; }
.lib-rank.plain { list-style: none; padding: 0; }
.lib-rank.plain li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.lib-rank.plain li span { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.lib-dash { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr); }
.lib-dash > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--bg); }
.lib-dash .label { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.lib-dash b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.lib-dash small { color: var(--muted); font-size: 12.5px; }
.lib-dash .lib-rank { margin-top: 6px; }
@media (max-width: 900px) { .lib-dash { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lib-dash-top { grid-column: 1 / -1; } }
@media (max-width: 560px) { .lib-dash { grid-template-columns: 1fr; } }
.lib-reader-meta { margin-top: -6px; font-size: 13.5px; }
.lib-reader { width: 100%; height: calc(100vh - 190px); min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; }

/* ---------- Download Center ---------- */
.side .nav-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 4px; border-radius: 10px;
  color: #e6e8f6; font-weight: 600; font-size: 14px; }
.side .nav-link .ico { opacity: .8; }
.side .nav-link:hover { background: var(--side-hover); text-decoration: none; color: #fff; }
.side .nav-link.active { background: rgba(30,147,242,.28); color: #fff; }
.dc-steps { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 20px; }
.dc-steps > div { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius);
  background: var(--brand-soft); color: var(--brand); }
.dc-steps b { display: block; color: var(--ink); }
.dc-steps span { font-size: 13px; color: var(--ink-2); }
.dc-module { margin-bottom: 16px; padding: 0; overflow: hidden; }
.dc-head { display: flex; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.dc-head h2 { margin: 0; font-size: 16px; }
.dc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 14px 20px;
  scroll-margin-top: 90px; }
.dc-row + .dc-row { border-top: 1px dashed var(--line); }
.dc-row:target { background: #f2f8ff; }
.dc-name b { display: block; font-size: 14.5px; }
.dc-name span { font-size: 12.5px; }
.dc-actions, .dc-export, .dc-import { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dc-actions { gap: 10px 14px; }
.dc-export input[type=date] { width: 140px; padding: 5px 8px; font-size: 13px; }
.dc-file { position: relative; display: inline-flex; align-items: center; max-width: 190px; padding: 5px 11px; font-size: 13px;
  border: 1px dashed #b9c4da; border-radius: 8px; color: var(--muted); cursor: pointer; background: #f8f9fc; }
.dc-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dc-file:hover { border-color: var(--brand-2); color: var(--brand); }
@media (max-width: 820px) { .dc-steps { grid-template-columns: 1fr; } }

/* ---------- Print sheets ---------- */
.print-sheet { background: #fff; max-width: 780px; margin: 0 auto; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.print-sheet .head { text-align: center; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 14px; }
.print-sheet .head h1 { font-size: 22px; }
.print-sheet table tr:hover td { background: none; }
.copies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.copies .copy { border: 1px dashed #999; padding: 10px; font-size: 13px; }
.copies table td, .copies table th { padding: 3px 4px; }
.sig { display: flex; justify-content: space-between; margin-top: 48px; }
.sig span { border-top: 1px solid var(--ink); padding-top: 4px; min-width: 160px; text-align: center; }
.tiny-cal td, .tiny-cal th { padding: 4px 5px; font-size: 12px; text-align: center; }

@media (max-width: 1100px) {
  .span-8, .span-7, .span-6, .span-5, .span-4 { grid-column: span 12; }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: 32px 24px; }
  .auth-hero h2 { font-size: 28px; margin-top: 28px; }
  .features, .auth-hero .fine { display: none; }}
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .side { display: none; position: fixed; inset: 0 22% 0 0; z-index: 20; height: auto; box-shadow: 20px 0 60px rgba(0,0,0,.35); }
  .side.open { display: flex; }
  .btn.menu-toggle { display: inline-flex; }
  .main { padding: 0 16px 48px; }
  .top { margin: 0 -16px 16px; padding: 12px 16px; }
  .copies { grid-template-columns: 1fr; }
  .hero { padding: 20px; }
  .status-list { grid-template-columns: 1fr; }
}
/* ---------- Public landing page ---------- */
.lp { background: var(--panel); }
.lp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.lp-nav { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.lp-nav.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15,23,42,.06); }
.lp-nav-in { display: flex; align-items: center; gap: 20px; height: 72px; }
.lp-logo img { display: block; height: 28px; width: auto; }
.lp-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.lp-links a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.lp-links a:hover { color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.lp-links a.active { color: var(--brand); }
.lp-links a.lp-login { margin-inline-start: 10px; padding: 7px 14px; color: var(--ink-2); background: var(--panel); }
.lp-links a.lp-login:hover { color: var(--brand); background: var(--panel); }
.lp-burger { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 42px; height: 42px; color: var(--ink); cursor: pointer; place-items: center; }

.lp-eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #7cc4ff; margin-bottom: 14px; }
.lp-eyebrow.dark { color: var(--brand-2); }
.lp-btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 12px; }

.lp-hero { position: relative; overflow: hidden; color: #fff; padding: 96px 0 104px;
  background: radial-gradient(1000px 520px at 5% 0%, #0a3a9e 0%, transparent 60%),
              radial-gradient(800px 480px at 100% 100%, #1e93f2 0%, transparent 55%), #061a4a; }
.lp-hero::before { content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); }
.lp-hero .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; animation: float 12s ease-in-out infinite; }
.lp-hero .blob.a { width: 340px; height: 340px; background: #1e93f2; top: -100px; right: 10%; }
.lp-hero .blob.b { width: 260px; height: 260px; background: #34b856; opacity: .25; bottom: -80px; left: 30%; animation-delay: -6s; }
.lp-hero-in { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.lp-hero h1 { font-size: 52px; line-height: 1.08; letter-spacing: -.035em; margin: 0 0 18px; }
.lp-hero h1 span { background: linear-gradient(90deg, #7cc4ff, #6ee08a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero .lead { color: #c6d6f2; font-size: 17.5px; max-width: 540px; margin: 0 0 30px; }
.lp-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.lp-ghost-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); box-shadow: none; }
.btn.lp-ghost-dark:hover { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.4); }
.lp-points { list-style: none; margin: 0; padding: 22px; display: grid; gap: 6px; border-radius: 20px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); }
.lp-points li { display: flex; gap: 14px; align-items: center; padding: 10px 8px; }
.lp-points li + li { border-top: 1px solid rgba(255,255,255,.08); }
.lp-points .ico { color: #6ee08a; flex: none; }
.lp-points b { display: block; font-size: 15px; }
.lp-points small { color: #a9bde3; font-size: 13px; }

.lp-sec { padding: 96px 0; }
.lp-sec.alt { background: var(--bg); }
.lp-sec h2 { font-size: 34px; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 12px; }
.lp-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.lp-head p { color: var(--muted); font-size: 16.5px; margin: 0; }

.lp-features { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-feature { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel); transition: border-color .2s, box-shadow .2s, transform .2s; }
.lp-feature:hover { border-color: #bcd8f8; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.lp-feature b { display: block; font-size: 15px; margin-bottom: 2px; }
.lp-feature p { margin: 0; color: var(--muted); font-size: 13.5px; }

.lp-plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch;
  max-width: 1000px; margin: 0 auto; }
.lp-plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lp-plan.featured { border: 2px solid var(--brand-2); box-shadow: 0 20px 50px rgba(10,58,158,.16); }
.lp-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); display: inline-flex; gap: 5px; align-items: center;
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 99px; white-space: nowrap; }
.lp-plan h3 { margin: 0 0 10px; font-size: 18px; }
.lp-price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.lp-price small { font-size: 16px; font-weight: 700; margin-inline-end: 4px; color: var(--muted); }
.lp-price span { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.lp-plan ul { list-style: none; margin: 20px 0 24px; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.lp-plan li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.lp-plan li .ico { color: var(--brand-2); }
.lp-plan .btn { margin-top: auto; width: 100%; padding: 11px 16px; }

.lp-compare-title { text-align: center; font-size: 28px; letter-spacing: -.02em; margin: 72px 0 24px; }
.lp-compare { max-width: 1000px; margin: 0 auto; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); box-shadow: var(--shadow); }
.lp-compare table { min-width: 560px; }
.lp-compare th { background: var(--brand); color: #fff; font-size: 15px; text-transform: none; letter-spacing: 0; padding: 18px 22px; }
.lp-compare td { padding: 14px 22px; font-size: 14.5px; color: var(--ink); vertical-align: middle; }
.lp-compare td:first-child { font-weight: 600; }
.lp-compare .c { text-align: center; width: 20%; }
.lp-compare td.strong { font-weight: 800; }
.lp-compare tr.group td { background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: 10px 22px; }
.lp-compare tr:hover td { background: #f7fafe; }
.lp-compare tr.group:hover td { background: var(--bg); }
.lp-compare .yes { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ok-soft); color: var(--accent); }
.lp-compare .yes .ico { stroke-width: 3; }
.lp-compare .no { color: #b6bdcc; font-weight: 700; }

.lp-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.lp-steps { list-style: none; counter-reset: s; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.lp-steps li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; }
.lp-steps li::before { content: counter(s); grid-row: span 2; width: 38px; height: 38px; border-radius: 12px; display: grid;
  place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.lp-steps b { font-size: 15px; }
.lp-steps span { color: var(--muted); font-size: 14px; }
.lp-contact { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.lp-contact li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.lp-contact .ico { color: var(--brand); width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--brand-soft); }

.lp-form-card { padding: 28px; border-radius: 20px; box-shadow: var(--shadow-lg); }
.lp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-bottom: 20px; }
.lp-field.wide { grid-column: 1 / -1; }
.lp-field label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--ink-2); }
.lp-field label em { color: var(--bad); font-style: normal; }
.lp-form input, .lp-form select, .lp-form textarea { max-width: none; height: 46px; border-radius: 12px; background: #f8f9fc; }
.lp-form textarea { height: auto; }
.lp-form input:focus, .lp-form select:focus, .lp-form textarea:focus { background: #fff; }
.lp-form .btn { width: 100%; }
.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lp-sent { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 20px; border-radius: 12px;
  background: var(--ok-soft); color: var(--ok); }
.lp-sent b { display: block; }
.lp-sent span { color: var(--ink-2); font-size: 14px; }

.lp-foot { background: #061a4a; color: #a9bde3; padding: 36px 0; }
.lp-foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.lp-foot img { height: 24px; width: auto; }
.lp-foot nav { display: flex; gap: 18px; flex-wrap: wrap; margin-inline-start: auto; }
.lp-foot a { color: #c6d6f2; font-size: 14px; }
.lp-foot small { width: 100%; font-size: 13px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }

@media (max-width: 980px) {
  .lp-hero-in, .lp-split { grid-template-columns: 1fr; gap: 40px; }
  .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-hero h1 { font-size: 40px; }
}
@media (max-width: 860px) {
  .lp-nav .lp-cta { display: none; }
  .lp-burger { display: grid; }
  .lp-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 10px 16px 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(15,23,42,.1); }
  .lp-nav.open .lp-links { display: flex; }
  .lp-links a { padding: 12px 14px; }
  .lp-links a.lp-login { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 600px) {
  .lp-wrap { padding: 0 16px; }
  .lp-hero { padding: 64px 0 72px; }
  .lp-hero h1 { font-size: 34px; }
  .lp-sec { padding: 64px 0; }
  .lp-sec h2 { font-size: 27px; }
  .lp-features, .lp-grid { grid-template-columns: 1fr; }
  .lp-form-card { padding: 20px; }
  .lp-foot nav { margin-inline-start: 0; }
}

@media print {
  .side, .top, .no-print, .msgs { display: none !important; }
  .layout { display: block; }
  .main { padding: 0; animation: none; }
  body { background: #fff; }
  .card, .table-wrap { box-shadow: none; }
  .print-sheet { border: 0; padding: 0; max-width: none; box-shadow: none; }
}
