/*
VOICE: hangat, rapi, profesional — ruang kerja guru PAI yang terasa seperti produk jadi.
IDEA: meja kerja pembuat kartu permainan: sidebar biru malam bertabur emas, panel putih seperti kartu.
PICTURE: ilustrasi kartu & masjid dari desain pengguna, kartu hasil generator tampil hidup di setiap langkah.
COLOUR and TYPE: biru kerajaan + emas + putih; pastel lembut untuk statistik. Poppins untuk semua teks, Amiri untuk teks Arab.
LAYOUT: sidebar 276px + header biru; konten grid 2 kolom; di HP sidebar menjadi laci dan grid menumpuk.
*/
:root {
  color-scheme: light;
  --navy-950: #061445; --navy-900: #081b5c; --navy-800: #0b2672; --navy-700: #0f318c; --blue-600: #1546b8; --blue-500: #1f5fd6; --blue-400: #3d7cf0; --blue-100: #dde9ff; --blue-50: #eef4ff;
  --gold-600: #d99a1e; --gold-500: #f0b93a; --gold-400: #f7cb58; --gold-300: #fde08b; --gold-100: #fff4d6;
  --ink: #0f1f4d; --ink-2: #33456f; --muted: #62729a; --line: #dce5f4; --line-2: #e9eef8;
  --bg: #edf2fb; --card: #ffffff; --green: #16a34a; --green-50: #e6f8ed; --red: #dc2626; --red-50: #fdeaea; --orange: #f59e0b; --orange-50: #fff3df; --lav: #7b68ee; --lav-50: #efecff; --mint: #14b8a6; --mint-50: #ddf6f0;
  --wa: #25d366; --wa-dark: #128c7e;
  --r-lg: 18px; --r: 14px; --r-sm: 10px;
  --sh: 0 8px 24px rgba(16, 42, 110, .07), 0 1px 2px rgba(16, 42, 110, .05);
  --sh-lg: 0 18px 48px rgba(8, 27, 92, .18);
  --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --ar: 'Amiri', 'Noto Naskh Arabic', serif;
  --side-w: 276px;
}
:root[data-theme=light], :root[data-theme=dark] { color-scheme: light; }
* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); overflow-x: clip; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue-500); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; text-wrap: balance; }
p { margin: 0; }
.ic { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 24px; height: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ar { font-family: var(--ar); direction: rtl; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; border-radius: 8px; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; overflow-x: hidden; color: #fff; z-index: 40;
  background: radial-gradient(120% 50% at 50% 0%, rgba(80, 140, 255, .28), transparent 60%), linear-gradient(180deg, #0c2b86 0%, #0a2372 45%, #0b2a80 100%);
  display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.side::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06'%3E%3Cpath d='M36 8l7 15 15 7-15 7-7 15-7-15-15-7 15-7z'/%3E%3Crect x='24' y='24' width='24' height='24' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E"); }
.side::after { content: ''; position: absolute; top: 0; right: 0; width: 2px; height: 100%; background: linear-gradient(180deg, var(--gold-400), rgba(240, 185, 58, .15) 30%, rgba(240, 185, 58, .15) 70%, var(--gold-400)); opacity: .55; }
.brand { position: relative; padding: 14px 18px 4px; text-align: center; }
.brand img { width: 196px; margin: 0 auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }
.brand small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: #e8eeff; }
.ws-pill { position: relative; margin: 12px 22px 14px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--navy-900);
  background: linear-gradient(180deg, #ffe6a0, var(--gold-500) 60%, #e3a52b); box-shadow: 0 4px 14px rgba(240, 185, 58, .35), inset 0 1px 0 rgba(255, 255, 255, .6); }
.ws-pill.adm { font-size: 13px; letter-spacing: .01em; }
.nav { position: relative; padding: 4px 12px; display: grid; gap: 2px; }
.nav a, .nav button.nav-a { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 12px; color: #eef3ff; font-weight: 500; font-size: 15px; border: 0; background: none; width: 100%; text-align: left; transition: background .15s; }
.nav a:hover, .nav button.nav-a:hover { background: rgba(255, 255, 255, .08); }
.nav a .ic, .nav button.nav-a .ic { width: 22px; height: 22px; opacity: .95; }
.nav a.active { color: var(--navy-900); font-weight: 700; background: linear-gradient(180deg, #ffe08f, var(--gold-500)); box-shadow: 0 6px 16px rgba(240, 185, 58, .35), inset 0 1px 0 rgba(255, 255, 255, .55); }
.nav-sep { height: 1px; margin: 10px 14px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent); }
.nav-sub { display: grid; gap: 0; padding: 2px 0 4px 50px; }
.nav-sub a { padding: 7px 10px; font-size: 13.5px; gap: 10px; border-radius: 10px; }
.nav-sub a::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .8; flex: none; }
.nav-sub a.active::before { background: var(--navy-900); }
.nav button.nav-a .chev { margin-left: auto; transition: transform .2s; }
.nav button.nav-a[aria-expanded=true] .chev { transform: rotate(180deg); }
.side-art { position: relative; margin-top: auto; min-height: 170px; }
.side-art img { width: 100%; height: 230px; object-fit: cover; object-position: top; -webkit-mask-image: linear-gradient(180deg, transparent, #000 32%); mask-image: linear-gradient(180deg, transparent, #000 32%); }
.side-mode { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #fff; background: rgba(6, 20, 69, .62); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; padding: 6px 10px; }
.dotst { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; flex: none; }
.dotst.ok { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.dotst.warn { background: #f59e0b; }

.main { display: flex; flex-direction: column; min-width: 0; }
.top { position: sticky; top: 0; z-index: 30; min-height: 78px; display: flex; align-items: center; gap: 16px; padding: 10px 26px; color: #fff;
  background: radial-gradient(80% 140% at 100% 0%, rgba(70, 130, 255, .35), transparent 60%), linear-gradient(90deg, #0b2470, #0e3191 60%, #133ba3); border-bottom-left-radius: 26px; }
.top::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 120px; height: 34px; border-left: 2.5px solid var(--gold-400); border-bottom: 2.5px solid var(--gold-400); border-bottom-left-radius: 26px; pointer-events: none; }
.top::before { content: ''; position: absolute; left: 110px; right: 0; bottom: -2px; height: 2.5px; background: linear-gradient(90deg, var(--gold-400), rgba(247, 203, 88, 0) 85%); }
.top .menu-btn { display: none; }
.top-title { flex: 1; min-width: 0; }
.top-title h1 { font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.top-title p { font-size: 14px; color: #dbe6ff; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shield { color: var(--gold-400); }
.top-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.icon-btn { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; border: 0; background: transparent; color: inherit; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.top .icon-btn .ic { width: 26px; height: 26px; }
.bell-dot { position: absolute; top: 7px; right: 8px; width: 11px; height: 11px; border-radius: 50%; background: #ef4444; border: 2px solid #0e3191; }
.vsep { width: 1px; height: 38px; background: rgba(255, 255, 255, .25); }
.user-btn { display: flex; align-items: center; gap: 12px; padding: 4px 8px 4px 4px; border: 0; background: transparent; color: #fff; border-radius: 14px; text-align: left; }
.user-btn:hover { background: rgba(255, 255, 255, .08); }
.avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: #e8eefc; border: 2px solid rgba(255, 255, 255, .85); flex: none; display: grid; place-items: center; color: var(--navy-800); font-weight: 700; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-btn b { display: block; font-size: 16px; font-weight: 600; line-height: 1.25; }
.user-btn small { display: block; font-size: 13px; color: #dbe6ff; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.content { padding: 22px 24px 96px; width: 100%; max-width: 1480px; }

/* ---------- Card & typography ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); padding: 18px 20px; }
.card-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h h2 { font-size: 20px; font-weight: 700; }
.card-h h3 { font-size: 17px; font-weight: 700; }
.card-h p { font-size: 13.5px; color: var(--muted); }
.card-h .grow { flex: 1 1 auto; }
.card-h > div.grow { flex: 1 1 220px; }
.hicon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.hicon .ic { width: 24px; height: 24px; }
.hicon.orange { background: linear-gradient(180deg, #ffe1b0, #ffc36b); color: #8a4b00; }
.hicon.blue { background: var(--blue-100); color: var(--blue-600); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--blue-500); background: none; border: 0; padding: 6px 4px; }
.link:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr); gap: 18px; }
.grid2b { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); gap: 18px; }
.stack { display: grid; gap: 18px; }
.page-h { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-h h2 { font-size: 26px; font-weight: 700; }
.page-h p { color: var(--muted); font-size: 14.5px; margin-top: 4px; max-width: 70ch; }
.page-h .grow { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--blue-50); color: var(--blue-600); }
.chip .ic { width: 14px; height: 14px; }
.chip.ok { background: var(--green-50); color: #15803d; }
.chip.warn { background: var(--orange-50); color: #b45309; }
.chip.bad { background: var(--red-50); color: #b91c1c; }
.chip.gray { background: #eef1f6; color: #475569; }
.chip.gold { background: var(--gold-100); color: #8a5a00; }
.chip.sample { background: #fff7e6; color: #9a6200; border: 1px dashed #f0c46a; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: 14.5px; transition: transform .1s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { box-shadow: 0 4px 12px rgba(16, 42, 110, .1); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-primary { background: linear-gradient(180deg, #2f6fe8, #1546b8); color: #fff; border-color: #1546b8; }
.btn-gold { background: linear-gradient(180deg, #ffe08f, var(--gold-500) 60%, #e3a52b); color: var(--navy-900); border-color: #e3a52b; box-shadow: 0 6px 16px rgba(240, 185, 58, .3); }
.btn-wa { background: linear-gradient(180deg, #34e07a, var(--wa) 55%, #1ebe5a); color: #fff; border-color: #1ebe5a; }
.btn-danger { background: #fff; color: var(--red); border-color: #f5c2c2; }
.btn-danger.solid { background: var(--red); color: #fff; border-color: var(--red); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--blue-50); box-shadow: none; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13.5px; border-radius: 10px; }
.btn-xs { min-height: 32px; padding: 4px 10px; font-size: 13px; border-radius: 9px; }
.btn-ico { width: 40px; min-height: 40px; padding: 0; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.field { display: grid; gap: 6px; }
.field > span, .lbl { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.inp, .field input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), .field select, .field textarea, select.inp, textarea.inp {
  width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid #cfdaee; border-radius: 11px; background: #fff; font-size: 16px; color: var(--ink); transition: border .15s, box-shadow .15s; }
textarea.inp, .field textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
.inp:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(61, 124, 240, .18); }
.inp.err, .field .err { border-color: #f08a8a; background: #fff8f8; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 44px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .tr { width: 46px; height: 26px; border-radius: 99px; background: #cbd5e1; position: relative; flex: none; transition: background .2s; }
.switch .tr::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + .tr { background: var(--green); }
.switch input:checked + .tr::after { transform: translateX(20px); }
.switch input:focus-visible + .tr { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.switch .tx { display: grid; font-size: 14.5px; font-weight: 600; }
.switch .tx small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 12px; background: #eef3fb; border: 1px solid var(--line); }
.seg button { min-height: 38px; padding: 6px 14px; border-radius: 9px; border: 0; background: transparent; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--blue-600); box-shadow: 0 2px 6px rgba(16, 42, 110, .12); }
.search { position: relative; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding-left: 40px !important; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .search { flex: 1 1 240px; }
.toolbar select.inp { width: auto; min-width: 150px; }
input[type=range] { width: 100%; accent-color: var(--blue-500); min-height: 32px; }
input[type=color] { width: 44px; height: 40px; border: 1px solid #cfdaee; border-radius: 10px; padding: 3px; background: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-radius: var(--r-lg); color: #fff; min-height: 278px; display: flex; align-items: center;
  background: radial-gradient(70% 90% at 75% 40%, rgba(90, 160, 255, .45), transparent 70%), linear-gradient(110deg, #0b2b86 0%, #1546b8 55%, #2563eb 100%); box-shadow: var(--sh-lg); border: 1px solid rgba(240, 185, 58, .45); }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .6; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07'%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E"); }
.hero-text { position: relative; padding: 26px 10px 26px 36px; z-index: 1; max-width: 55%; }
.hero h2 { font-size: clamp(22px, 1.95vw, 31px); font-weight: 800; line-height: 1.16; text-shadow: 0 2px 10px rgba(6, 20, 69, .35); }
.hero h2 em { font-style: normal; color: var(--gold-400); display: block; }
.hero-list { list-style: none; padding: 0; margin: 14px 0 20px; display: grid; gap: 7px; font-size: 15.5px; }
.hero-list li { display: flex; align-items: center; gap: 10px; }
.chk { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--gold-400); display: grid; place-items: center; color: var(--gold-400); flex: none; }
.chk .ic { width: 13px; height: 13px; stroke-width: 3.2; }
.hero .btn-gold { min-height: 48px; padding: 10px 24px; font-size: 16px; border-radius: 14px; }
.hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%); mask-image: linear-gradient(90deg, transparent 0, #000 26%); }
.hero.adm .hero-art { width: 60%; }
.hero.adm .hero-art img { object-position: 62% center; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sum-card { display: flex; flex-direction: column; }
.sum-card .stats { flex: 1; grid-auto-rows: 1fr; }
.sum-card .card-h { flex-wrap: nowrap; }
.sum-card .card-h h2 { font-size: 19px; flex: 1 1 auto; }
.sum-card .card-h select { flex: none; max-width: 160px; }
.tpl-acts { flex-wrap: nowrap; gap: 8px; }
.tpl-acts .btn { flex: 1 1 auto; padding-inline: 10px; }
.tpl-acts .btn-ico { flex: none; }
.stat { display: flex; align-items: center; gap: 12px; padding: 16px 14px; border-radius: 14px; min-height: 92px; }
.stat .si { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.stat .si .ic { width: 26px; height: 26px; }
.stat b { display: block; font-size: 30px; font-weight: 800; line-height: 1.05; color: var(--navy-900); }
.stat span { display: block; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.st-blue { background: #e4eeff; } .st-blue .si { background: linear-gradient(180deg, #6aa6ff, #2f6fe8); }
.st-orange { background: #fff1dc; } .st-orange .si { background: linear-gradient(180deg, #ffc56e, #f59e0b); }
.st-lav { background: #eeebff; } .st-lav .si { background: linear-gradient(180deg, #b0a4ff, #7b68ee); }
.st-mint { background: #dcf5ef; } .st-mint .si { background: linear-gradient(180deg, #67d9bd, #14b8a6); }
.st-pink { background: #ffe8ef; } .st-pink .si { background: linear-gradient(180deg, #ff9ab8, #e8517d); }
.st-gold { background: #fff6d8; } .st-gold .si { background: linear-gradient(180deg, #ffd66b, #e3a52b); }
.pdf-ic { font-size: 11px; font-weight: 800; letter-spacing: .02em; }

/* ---------- Model tiles ---------- */
.models { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.model { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 10px 14px; border-radius: 16px; border: 1px solid var(--line); cursor: pointer; color: var(--ink);
  background: radial-gradient(120% 80% at 50% 0%, #ffffff 0%, #f4f7fd 60%, #edf2fb 100%); transition: transform .15s, box-shadow .15s, border-color .15s; min-height: 172px; }
.model:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 42, 110, .12); border-color: var(--gold-400); }
.model img { height: 76px; width: auto; object-fit: contain; margin: 2px 0 4px; filter: drop-shadow(0 6px 8px rgba(16, 42, 110, .18)); }
.model h4 { font-size: 16px; font-weight: 700; padding: 3px 14px; border-radius: 999px; }
.model p { font-size: 12.8px; color: var(--ink-2); line-height: 1.4; }
.model.sel { color: #fff; border: 2px solid var(--gold-400); background: radial-gradient(90% 70% at 50% 20%, #2f6fe8, #0f3a9e 80%); box-shadow: 0 10px 26px rgba(21, 70, 184, .35); }
.model.sel h4 { background: #fff; color: var(--navy-900); }
.model.sel p { color: #e3ecff; }
.model .off { position: absolute; top: 8px; right: 8px; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; border-radius: 12px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { background: #eef3fb; color: var(--navy-900); font-weight: 600; text-align: left; padding: 10px 12px; font-size: 13.5px; white-space: nowrap; }
.tbl th:first-child { border-top-left-radius: 10px; } .tbl th:last-child { border-top-right-radius: 10px; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #f8fbff; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .nowrap { white-space: nowrap; }
.tcell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tcell b { font-weight: 600; display: block; }
.tcell small { color: var(--muted); font-size: 12.5px; display: block; }
.tbl.compact th, .tbl.compact td { padding: 9px 9px; font-size: 13.5px; }
.tcell .chip.sample { padding: 0 7px; font-size: 11px; margin-top: 2px; }
.thumb { width: 42px; height: 42px; border-radius: 8px; flex: none; overflow: hidden; background: #0b2f86; border: 1px solid var(--gold-400); }
.thumb canvas { width: 100% !important; height: 100% !important; display: block; }
.ini { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; flex: none; }
.kebab { width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); }
.kebab:hover { background: var(--blue-50); }
.mdl-cell { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.mdl-cell .ic { color: var(--blue-600); }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.empty .ic { width: 40px; height: 40px; color: #9fb2d6; }
.empty b { color: var(--ink); font-size: 16px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }

/* ---------- Tips carousel ---------- */
.tips-nav { display: flex; gap: 8px; margin-left: auto; }
.tips-nav button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink-2); }
.tip { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; min-height: 150px; border-radius: 14px; overflow: hidden; color: #fff;
  background: radial-gradient(80% 120% at 80% 30%, rgba(80, 150, 255, .5), transparent 70%), linear-gradient(110deg, #0b2b86, #1a4fc4); border: 1px solid rgba(240, 185, 58, .4); }
.tip-t { padding: 16px 0 16px 20px; z-index: 1; position: relative; }
.tip h4 { font-size: 19px; font-weight: 800; line-height: 1.2; }
.tip p { font-size: 13px; color: #dbe6ff; margin: 6px 0 10px; }
.tip .btn-gold { min-height: 38px; padding: 6px 16px; font-size: 13.5px; border-radius: 999px; }
.tip-img { position: relative; align-self: stretch; }
.tip-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: #cbd6ea; }
.dots button.on { background: var(--blue-500); width: 22px; border-radius: 6px; }

/* ---------- Menus, modals, toasts ---------- */
.menu { position: fixed; z-index: 120; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-lg); padding: 6px; display: grid; color: var(--ink); animation: pop .12s ease-out; }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 12px; border: 0; background: none; border-radius: 10px; text-align: left; font-size: 14.5px; color: var(--ink); width: 100%; }
.menu button:hover, .menu a:hover { background: var(--blue-50); }
.menu .danger { color: var(--red); }
.menu hr { border: 0; height: 1px; background: var(--line-2); margin: 4px 6px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.notif { width: min(380px, calc(100vw - 24px)); padding: 0; }
.notif-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line-2); font-weight: 700; }
.notif-list { max-height: 60vh; overflow: auto; padding: 6px; }
.notif-item { display: flex; gap: 10px; padding: 10px; border-radius: 10px; }
.notif-item.unread { background: #f3f7ff; }
.notif-item .ini { width: 36px; height: 36px; }
.notif-item b { font-size: 14px; display: block; }
.notif-item small { color: var(--muted); font-size: 12.5px; }
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(6, 20, 69, .55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 18px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(560px, 100%); max-height: calc(100dvh - 36px); display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: var(--sh-lg); overflow: hidden; animation: pop .16s ease-out; }
.modal.wide { width: min(880px, 100%); }
.modal.xwide { width: min(1100px, 100%); }
.modal-h { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.modal-h h3 { font-size: 18px; flex: 1; }
.modal-b { padding: 18px 20px; overflow: auto; }
.modal-f { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line-2); background: #fafcff; }
.toasts { position: fixed; z-index: 140; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--navy-900); color: #fff; box-shadow: var(--sh-lg); font-size: 14.5px; animation: pop .18s ease-out; }
.toast.ok .ic { color: #4ade80; } .toast.err { background: #7f1d1d; } .toast.warn .ic { color: var(--gold-400); }
.progress { height: 8px; border-radius: 99px; background: #e5ecf8; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue-400), var(--gold-400)); transition: width .25s; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; flex: none; }
.spinner.dark { border-color: #cfdaee; border-top-color: var(--blue-500); }
@keyframes spin { to { transform: rotate(360deg); } }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--blue-50); color: var(--ink-2); font-size: 13.5px; border: 1px solid var(--blue-100); }
.note .ic { color: var(--blue-500); margin-top: 1px; }
.note.warn { background: var(--orange-50); border-color: #fde2b3; } .note.warn .ic { color: #d97706; }
.note.ok { background: var(--green-50); border-color: #bfeccf; } .note.ok .ic { color: var(--green); }
.note.bad { background: var(--red-50); border-color: #f8caca; } .note.bad .ic { color: var(--red); }

/* ---------- Wizard ---------- */
.stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.stepper button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; text-align: left; font-weight: 600; font-size: 14px; color: var(--muted); min-height: 54px; }
.stepper button .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #eef3fb; color: var(--ink-2); font-weight: 700; flex: none; }
.stepper button.on { border-color: var(--blue-400); color: var(--navy-900); box-shadow: 0 0 0 3px rgba(61, 124, 240, .14); }
.stepper button.on .n { background: var(--blue-500); color: #fff; }
.stepper button.done .n { background: var(--green); color: #fff; }
.stepper button[disabled] { opacity: .6; cursor: not-allowed; }
.wiz-foot { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 16px; padding: 12px 14px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh); }
.wiz-foot .info { font-size: 13.5px; color: var(--muted); }
.src-tabs { margin-bottom: 14px; }
.items { display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcff; }
.item .no { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-800); color: #fff; font-weight: 700; font-size: 14px; }
.item-f { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.item-f.one { grid-template-columns: minmax(0, 1fr); }
.item-f.bs { grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr); align-items: start; }
.item-f.ch { grid-template-columns: 170px minmax(0, 1fr) 100px; }
.item-f textarea.inp { min-height: 64px; font-size: 15px; }
.item-f input.inp, .item-f select.inp { font-size: 15px; }
.item-a { display: flex; flex-direction: column; gap: 4px; }
.item-a button { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink-2); }
.item-a button:hover { background: var(--blue-50); }
.item-a button.del:hover { background: var(--red-50); color: var(--red); }
.item.bad { border-color: #f5b5b5; background: #fffafa; }
.tf-seg button.on[data-v=true] { color: #15803d; } .tf-seg button.on[data-v=false] { color: #b91c1c; }
.design { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.opt-group { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.opt-group:first-child { padding-top: 0; } .opt-group:last-child { border-bottom: 0; }
.tpl-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.tpl-chip { display: grid; gap: 6px; justify-items: center; padding: 8px 6px; border-radius: 12px; border: 2px solid transparent; background: #f5f8fe; font-size: 12px; font-weight: 600; text-align: center; color: var(--ink-2); line-height: 1.25; }
.tpl-chip canvas { border-radius: 6px; }
.tpl-chip.on { border-color: var(--blue-500); background: #fff; color: var(--navy-900); }
.preview-box { position: sticky; top: 96px; display: grid; gap: 14px; justify-items: center; }
.flip { perspective: 1200px; }
.flip-in { position: relative; transition: transform .55s cubic-bezier(.2, .7, .2, 1); transform-style: preserve-3d; }
.flip.back .flip-in { transform: rotateY(180deg); }
.flip-in > canvas { display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 10px; box-shadow: 0 16px 32px rgba(8, 27, 92, .25); }
.flip-in > canvas + canvas { position: absolute; inset: 0; transform: rotateY(180deg); }
.sheet-map { display: grid; gap: 3px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--sh); }
.sheet-map i { display: block; background: var(--blue-100); border: 1px solid #b9cdf3; border-radius: 2px; }
.pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.page-th { display: grid; gap: 8px; justify-items: center; background: none; border: 0; padding: 0; }
.page-th canvas { width: 100% !important; height: auto !important; border-radius: 4px; box-shadow: 0 8px 22px rgba(8, 27, 92, .16); background: #fff; }
.page-th span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cards-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
.cards-strip > * { scroll-snap-align: start; flex: none; }
.sum-list { display: grid; gap: 8px; font-size: 14px; }
.sum-list div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 7px; }
.sum-list div span:first-child { color: var(--muted); }
.sum-list div span:last-child { font-weight: 600; text-align: right; }
.ai-box { border: 1px solid #cfe0ff; background: linear-gradient(180deg, #f5f9ff, #fff); border-radius: 14px; padding: 14px; display: grid; gap: 12px; }
.ai-stream { font-size: 12.5px; color: var(--muted); max-height: 110px; overflow: auto; white-space: pre-wrap; background: #fff; border: 1px dashed var(--line); border-radius: 10px; padding: 8px 10px; font-family: ui-monospace, Menlo, Consolas, monospace; }

/* ---------- Library, templates ---------- */
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.mat { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); align-content: start; }
.mat h4 { font-size: 16.5px; font-weight: 700; }
.mat p { font-size: 13.5px; color: var(--ink-2); }
.mat .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.mat .acts { display: flex; gap: 8px; margin-top: auto; align-items: center; flex-wrap: wrap; }
.fav-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: #94a3b8; }
.fav-btn.on { color: #e11d48; background: #fff1f3; border-color: #fecdd6; }
.fav-btn.on .ic { fill: currentColor; }
.tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tpl { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); }
.tpl-prev { display: flex; gap: 10px; justify-content: center; padding: 14px 8px; border-radius: 12px; background: linear-gradient(180deg, #f3f7ff, #e9f0fc); }
.tpl-prev canvas { border-radius: 6px; box-shadow: 0 8px 16px rgba(8, 27, 92, .18); }
.tpl h4 { font-size: 15.5px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tabs button { min-height: 42px; padding: 8px 14px; border: 0; background: none; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--blue-600); border-bottom-color: var(--blue-500); }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.guide-steps { counter-reset: s; display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.guide-steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.guide-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--blue-500); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; }
details.faq { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
details.faq + details.faq { margin-top: 8px; }
details.faq summary { cursor: pointer; padding: 12px 14px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 44px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq[open] summary .ic { transform: rotate(180deg); }
details.faq p { padding: 0 14px 14px; color: var(--ink-2); font-size: 14.5px; }

/* ---------- Admin ---------- */
.status-list { display: grid; gap: 0; }
.status-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line-2); }
.status-row:last-child { border-bottom: 0; }
.status-row .ic-box { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--navy-800); background: #eef3fb; flex: none; }
.status-row .ic-box.red { color: #dc2626; background: #fdeaea; }
.status-row b { flex: 1; font-weight: 600; font-size: 15px; }
.status-row .st { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.st.ok { color: #15803d; } .st.warn { color: #b45309; } .st.off { color: #64748b; }
.st .dotc { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #22c55e; }
.st.warn .dotc { background: #f59e0b; } .st.off .dotc { background: #94a3b8; }
.st .dotc .ic { width: 12px; height: 12px; stroke-width: 3.5; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.kpi { display: flex; align-items: center; gap: 12px; padding: 16px 14px; border-radius: 16px; border: 1px solid var(--line); min-height: 98px; }
.kpi .si { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.kpi .si .ic { width: 26px; height: 26px; }
.kpi b { display: block; font-size: 27px; font-weight: 800; line-height: 1.05; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.kpi span { display: block; font-size: 13px; color: var(--ink-2); }
.delta { display: inline-flex !important; align-items: center; gap: 2px; font-size: 12px !important; font-weight: 700; color: #15803d !important; margin-left: 6px; }
.delta.down { color: #b91c1c !important; }
.fig { position: relative; min-height: 260px; }
.chart-card { display: flex; flex-direction: column; }
.chart-card .fig { flex: 1; }
.fig > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.legend { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); margin-top: 8px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.ttip { position: absolute; pointer-events: none; background: var(--navy-900); color: #fff; font-size: 12.5px; padding: 8px 10px; border-radius: 10px; box-shadow: var(--sh-lg); white-space: nowrap; transform: translate(-50%, -110%); z-index: 3; }
.ttip b { display: block; margin-bottom: 2px; }
.acts-list { display: grid; }
.act-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line-2); }
.act-row:last-child { border-bottom: 0; }
.act-row .ai { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.act-row p { flex: 1; font-size: 14px; }
.act-row time { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.quick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.qlink { display: flex; align-items: center; gap: 11px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: var(--sh); color: var(--ink); text-align: left; transition: transform .15s, border-color .15s; }
.qlink:hover { transform: translateY(-2px); border-color: var(--gold-400); }
.qlink .qi { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.qlink .qi .ic { width: 28px; height: 28px; }
.qlink b { display: block; font-size: 15px; line-height: 1.25; margin-bottom: 2px; }
.qlink small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.qlink > .ic:last-child { margin-left: auto; color: var(--ink-2); }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 13.5px; }
.bar-row .tr { height: 12px; border-radius: 99px; background: #eef3fb; overflow: hidden; }
.bar-row .tr i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue-400), var(--blue-600)); }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.color-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.color-row label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.wa-preview { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: #efeae2; border: 1px solid #e2dccf; }
.wa-bubble { justify-self: end; max-width: 92%; background: #d9fdd3; padding: 8px 12px; border-radius: 12px 12px 2px 12px; font-size: 14px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); white-space: pre-wrap; word-break: break-word; }
.banner-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.banner-row img { width: 110px; height: 66px; object-fit: cover; border-radius: 10px; }
.perm { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 90px); gap: 0; font-size: 13.5px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.perm > div { padding: 9px 10px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; }
.perm > div.h { background: #eef3fb; font-weight: 600; }
.perm > div.c { justify-content: center; }

/* ---------- Login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--bg); }
.login-art { position: relative; overflow: hidden; color: #fff; display: grid; align-content: center; justify-items: center; gap: 16px; padding: 40px 32px 220px; text-align: center;
  background: radial-gradient(70% 50% at 50% 30%, rgba(80, 140, 255, .45), transparent 70%), linear-gradient(180deg, #0c2b86, #091f66 70%, #0b2a80); }
.login-art::before { content: ''; position: absolute; inset: 0; opacity: .6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06'%3E%3Cpath d='M36 8l7 15 15 7-15 7-7 15-7-15-15-7 15-7z'/%3E%3C/g%3E%3C/svg%3E"); }
.login-art img.logo { position: relative; width: min(420px, 80%); filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .4)); }
.login-art h1 { position: relative; font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; max-width: 22ch; }
.login-art h1 em { font-style: normal; color: var(--gold-400); }
.login-art p { position: relative; color: #dbe6ff; max-width: 46ch; font-size: 15px; }
.login-art .mosq { position: absolute; left: 0; right: 0; bottom: 0; height: 240px; background-size: cover; background-position: center top; -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); mask-image: linear-gradient(180deg, transparent, #000 40%); opacity: .95; }
.login-art .mosq::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0b2a80 0%, transparent 30%, transparent 70%, #0b2a80 100%); }
.login-box { display: grid; align-content: center; padding: 36px clamp(18px, 5vw, 64px); }
.login-card { width: min(480px, 100%); margin: 0 auto; background: #fff; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--sh-lg); padding: 24px; display: grid; gap: 16px; }
.login-card h2 { font-size: 24px; }
.role-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 5px; background: #eef3fb; border-radius: 14px; }
.role-tabs button { min-height: 46px; border: 0; border-radius: 11px; background: transparent; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 8px; }
.role-tabs button.on { background: #fff; color: var(--navy-900); box-shadow: 0 2px 8px rgba(16, 42, 110, .12); }
.who { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #f5f8fe; border: 1px solid var(--line); }
.who .avatar { width: 52px; height: 52px; border-color: var(--gold-400); }
.feat { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; position: relative; }
.feat span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.feat .ic { width: 15px; height: 15px; color: var(--gold-400); }
.banner-maint { display: flex; gap: 10px; align-items: center; padding: 10px 14px; margin-bottom: 14px; border-radius: 12px; background: #fff4d6; border: 1px solid #f7d58a; color: #7a4b00; font-size: 14px; }

/* ---------- Play mode ---------- */
.play { position: fixed; inset: 0; z-index: 110; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; color: #fff; background: radial-gradient(80% 60% at 50% 30%, #1b4fc2, #081b5c 75%); }
.play-h { display: flex; align-items: center; gap: 12px; padding: 12px 18px; }
.play-h h3 { flex: 1; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-stage { display: grid; place-items: center; padding: 8px 14px; min-height: 0; }
.play-stage .flip { cursor: pointer; }
.play-f { display: flex; gap: 10px; justify-content: center; align-items: center; padding: 14px 14px max(14px, env(safe-area-inset-bottom)); flex-wrap: wrap; }
.play .btn { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); }
.play .btn-gold { background: linear-gradient(180deg, #ffe08f, var(--gold-500)); color: var(--navy-900); }
.play .icon-btn { color: #fff; }
.play .seg { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); }
.play .seg button { color: #fff; }
.play .seg button.on { color: var(--navy-900); }
.counter { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 72px; text-align: center; }

/* ---------- CS WhatsApp ball ---------- */
.cs-ball { position: fixed; z-index: 90; width: 62px; height: 62px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; touch-action: none; user-select: none; -webkit-user-select: none;
  background: radial-gradient(circle at 30% 25%, #5cf08f, var(--wa) 55%, #17a74a); box-shadow: 0 10px 26px rgba(18, 140, 126, .45), 0 0 0 4px rgba(255, 255, 255, .9); cursor: grab; transition: left .28s cubic-bezier(.2, .8, .2, 1), top .28s cubic-bezier(.2, .8, .2, 1), transform .15s; }
.cs-ball.dragging { transition: none; cursor: grabbing; transform: scale(1.06); }
.cs-ball svg { width: 32px; height: 32px; }
.cs-ball::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--wa); animation: ring 2.4s ease-out infinite; pointer-events: none; }
@keyframes ring { 0% { transform: scale(1); opacity: .65; } 100% { transform: scale(1.55); opacity: 0; } }
.cs-ball .cs-badge { position: absolute; top: -2px; right: -2px; width: 18px; height: 18px; border-radius: 50%; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.cs-tip { position: fixed; z-index: 89; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 10px; box-shadow: var(--sh-lg); white-space: nowrap; pointer-events: none; animation: pop .2s; }
.cs-panel { position: fixed; z-index: 95; width: min(350px, calc(100vw - 24px)); background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(8, 27, 92, .3); overflow: hidden; animation: pop .18s ease-out; display: flex; flex-direction: column; max-height: calc(100dvh - 120px); }
.cs-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: #fff; background: linear-gradient(120deg, var(--wa-dark), #1fa463); }
.cs-head .avatar { width: 44px; height: 44px; border-color: #fff; background: #fff; }
.cs-head b { display: block; font-size: 15.5px; } .cs-head small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #e7fff1; }
.cs-head .icon-btn { margin-left: auto; color: #fff; }
.cs-body { padding: 14px 16px; display: grid; gap: 10px; overflow: auto; background: #efeae2; }
.cs-msg { background: #fff; padding: 10px 12px; border-radius: 2px 12px 12px 12px; font-size: 14px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); max-width: 92%; white-space: pre-wrap; }
.cs-msg small { display: block; text-align: right; color: #94a3b8; font-size: 11px; margin-top: 4px; }
.cs-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-topics button { border: 1px solid #b7e4c7; background: #fff; color: #0f5132; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 999px; min-height: 34px; }
.cs-topics button.on { background: #d9fdd3; border-color: var(--wa); }
.cs-foot { padding: 12px 16px 16px; display: grid; gap: 10px; background: #fff; }
.cs-foot textarea { min-height: 70px; font-size: 15px; }
.cs-num { font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1600px) { .qlink > .ic:last-child { display: none; } }
@media (max-width: 1360px) {
  .models { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .grid2, .grid2b, .design { grid-template-columns: minmax(0, 1fr) !important; }
  .preview-box { position: static; }
}
@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--sh-lg); }
  .app.drawer .side { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 35; background: rgba(6, 20, 69, .5); }
  .top .menu-btn { display: inline-grid; margin-left: -8px; }
  .top { padding: 8px 14px; min-height: 66px; gap: 8px; border-bottom-left-radius: 18px; }
  .top::after { width: 70px; height: 26px; border-bottom-left-radius: 18px; }
  .top::before { left: 60px; }
  .top-title h1 { font-size: 18px; }
  .top-title p { font-size: 12.5px; }
  .user-btn .ut, .vsep { display: none; }
  .avatar { width: 42px; height: 42px; }
  .content { padding: 14px 12px 110px; }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-art { padding: 28px 18px 150px; }
  .login-art .mosq { height: 160px; }
  .stepper { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stepper button { flex-direction: column; justify-content: center; text-align: center; gap: 4px; font-size: 12px; padding: 8px 4px; }
  .stepper button .t { display: block; line-height: 1.2; }
}
@media (max-width: 720px) {
  .hero { flex-direction: column-reverse; align-items: stretch; min-height: 0; }
  .hero-text { padding: 4px 18px 20px; max-width: none; }
  .hero-art, .hero.adm .hero-art { position: relative; height: 190px; width: auto; }
  .hero-art img { object-position: center; -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 28%); mask-image: linear-gradient(0deg, transparent 0, #000 28%); }
  .models { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -4px; padding-inline: 4px; }
  .models .model { flex: 0 0 46%; scroll-snap-align: start; }
  .wiz .models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .wiz .models .model { flex: none; }
  .kpis, .quick { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .quick .qlink { padding: 12px; } .quick .qlink small { display: none; } .quick .qlink .qi { width: 42px; height: 42px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .item { grid-template-columns: minmax(0, 1fr); gap: 8px; position: relative; }
  .item .no { position: absolute; top: 10px; left: 10px; width: 28px; height: 28px; font-size: 13px; }
  .item-f, .item-f.bs, .item-f.ch { grid-template-columns: minmax(0, 1fr); padding-top: 34px; }
  .item-a { flex-direction: row; justify-content: flex-end; position: absolute; top: 8px; right: 8px; }
  .item-a button { width: 32px; height: 32px; }
  .tip { grid-template-columns: minmax(0, 1fr); }
  .tip-img { height: 110px; order: -1; }
  .tip-img img { -webkit-mask-image: linear-gradient(0deg, transparent, #000 40%); mask-image: linear-gradient(0deg, transparent, #000 40%); }
  .tip-t { padding: 4px 16px 16px; }
  .banner-row { grid-template-columns: 80px minmax(0, 1fr); }
  .banner-row img { width: 80px; height: 56px; }
  .banner-row .btn-row { grid-column: 1 / -1; }
  .cols3 { grid-template-columns: minmax(0, 1fr); }
  .color-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-h h2 { font-size: 22px; }
  .card { padding: 14px; }
  .wiz-foot { bottom: 8px; }
  .perm { grid-template-columns: minmax(0, 1fr) repeat(3, 64px); font-size: 12.5px; }
}
@media (max-width: 720px) { .hide-sm { display: none; } .wiz-foot .info { display: none; } .wiz-foot { padding: 10px; } }
@media (max-width: 600px) {
  table.tbl.tstack thead { display: none; }
  table.tbl.tstack tr { display: grid; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
  table.tbl.tstack td { display: flow-root; border: 0; padding: 3px 4px; padding-inline-start: 7.4em; text-align: start; }
  table.tbl.tstack td::before { content: attr(data-l); float: inline-start; width: 6.8em; margin-inline-start: -7.4em; color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: normal; }
  table.tbl.tstack td:empty { display: none; }
  table.tbl.tstack td.tfirst { padding-inline-start: 4px; } table.tbl.tstack td.tfirst::before { display: none; }
  table.tbl.tstack tbody tr:hover td { background: none; }
  .stat { padding: 12px; gap: 10px; min-height: 80px; } .stat .si { width: 42px; height: 42px; } .stat .si .ic { width: 22px; height: 22px; } .stat b { font-size: 24px; }
  .kpi { padding: 12px; gap: 10px; } .kpi .si { width: 42px; height: 42px; } .kpi b { font-size: 22px; }
  .bar-row { grid-template-columns: minmax(0, 110px) minmax(0, 1fr) 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Akun: daftar & masuk ===== */
.pw-wrap { position: relative; display: block; }
.field > .pw-wrap { font-size: 16px; font-weight: 400; color: var(--ink); }
.pw-wrap .inp { padding-right: 48px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 38px; border: 0; background: transparent; color: var(--muted); border-radius: 9px; display: grid; place-items: center; cursor: pointer; }
.pw-eye:hover, .pw-eye:focus-visible { color: var(--navy-900); background: #eef3fb; outline: none; }
.reg-form { gap: 12px 14px; align-items: start; }
.reg-form > .hint { font-size: 12.5px; color: var(--muted); }
.reg-form .field { gap: 5px; }
.login-alt { text-align: center; font-size: 14px; color: var(--muted); }
.login-alt .link { font-size: 14px; font-weight: 600; }
.login-card code, .card code, .modal code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; background: #eef3fb; border-radius: 6px; padding: 1px 6px; color: var(--navy-900); word-break: break-all; }
@media (max-width: 720px) { .reg-form { grid-template-columns: minmax(0, 1fr); } }

/* ===== Watermark pembuat ===== */
.credit { margin: 28px 0 0; text-align: center; font-size: 12px; color: var(--muted); letter-spacing: .1px; }
.credit b { font-weight: 600; color: var(--ink-2); }
.side-credit { position: absolute; left: 10px; right: 10px; bottom: 8px; text-align: center; font-size: 10.5px; line-height: 1.3; color: rgba(255, 255, 255, .82); text-shadow: 0 1px 3px rgba(0, 0, 0, .55); pointer-events: none; }
.side-art .side-mode { bottom: 30px; }
.login-box { justify-items: center; }
.login-credit { margin-top: 18px; }
.login-home { position: absolute; top: 18px; left: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px 6px 8px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(4px); }
.login-home:hover { background: rgba(255, 255, 255, .2); }

/* ===== Halaman depan (landing) ===== */
.lp { background: #fff; color: var(--ink); min-height: 100vh; }
.lp-wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.lp-narrow { width: min(860px, 100% - 40px); }
.lp-nav { position: sticky; top: 0; z-index: 50; background: rgba(8, 27, 92, .92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(247, 203, 88, .25); }
.lp-nav-in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.lp-brand img { height: 54px; width: auto; display: block; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.lp-links { display: flex; gap: 4px; margin-left: auto; }
.lp-links a { color: #dbe6ff; font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 10px; }
.lp-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.lp-acts { display: flex; gap: 10px; align-items: center; }
.lp-links + .lp-acts { margin-left: 8px; }
.lp-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); }
.lp-ghost:hover { background: rgba(255, 255, 255, .16); box-shadow: none; }
.lp-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 520px at 85% 0%, rgba(61, 124, 240, .55), transparent 65%), linear-gradient(180deg, #0c2b86 0%, #081b5c 100%); padding: 56px 0 88px; }
.lp-hero::before { content: ''; position: absolute; inset: 0; opacity: .7; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06'%3E%3Cpath d='M36 8l7 15 15 7-15 7-7 15-7-15-15-7 15-7z'/%3E%3C/g%3E%3C/svg%3E"); }
.lp-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 56px; background: #fff; clip-path: ellipse(75% 100% at 50% 100%); }
.lp-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--gold-300); background: rgba(247, 203, 88, .12); border: 1px solid rgba(247, 203, 88, .35); }
.lp-hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.12; font-weight: 800; margin: 18px 0 16px; letter-spacing: -.5px; }
.lp-hero h1 em { font-style: normal; color: var(--gold-400); }
.lp-lead { font-size: clamp(15.5px, 1.5vw, 18px); color: #d6e2ff; max-width: 56ch; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.lp-big { min-height: 52px; padding: 12px 24px; font-size: 16px; border-radius: 14px; }
.lp-hi { color: #d6e2ff; font-size: 14px; }
.lp-checks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 22px 0 0; font-size: 14px; color: #dbe6ff; }
.lp-checks li { display: inline-flex; align-items: center; gap: 7px; }
.lp-checks .ic { color: var(--gold-400); }
.lp-hero-art { position: relative; min-height: 360px; display: grid; place-items: center; }
.lp-glow { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(247, 203, 88, .35), rgba(247, 203, 88, 0) 68%); }
.lp-fan { position: relative; display: flex; align-items: center; justify-content: center; }
.lp-fan canvas { border-radius: 14px; box-shadow: 0 22px 44px rgba(0, 0, 0, .38); transition: transform .35s ease; }
.lp-fan canvas[data-lpc="0"] { transform: rotate(-12deg) translate(22px, 20px) scale(.9); }
.lp-fan canvas[data-lpc="1"] { position: relative; z-index: 2; transform: translateY(-12px) scale(1.06); }
.lp-fan canvas[data-lpc="2"] { transform: rotate(12deg) translate(-22px, 20px) scale(.9); }
.lp-hero-art:hover canvas[data-lpc="0"] { transform: rotate(-16deg) translate(4px, 16px) scale(.9); }
.lp-hero-art:hover canvas[data-lpc="2"] { transform: rotate(16deg) translate(-4px, 16px) scale(.9); }
.lp-float { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--navy-900); background: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); animation: lp-bob 4s ease-in-out infinite; }
.lp-float .ic { color: var(--blue-500); }
.lp-float.f1 { left: 2%; bottom: 14%; }
.lp-float.f2 { right: 4%; top: 10%; animation-delay: -2s; }
.lp-float.f2 .ic { color: var(--gold-600); }
@keyframes lp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.lp-stats { position: relative; z-index: 2; margin-top: -36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-lg); }
.lp-stats > div { padding: 20px 18px; text-align: center; display: grid; gap: 2px; }
.lp-stats > div + div { border-left: 1px solid var(--line-2); }
.lp-stats b { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: var(--navy-800); }
.lp-stats span { font-size: 13.5px; color: var(--muted); }
.lp-sec { padding: 84px 0; }
.lp-alt { background: linear-gradient(180deg, #f4f7fd, #eef3fb); }
.lp-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.lp-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--gold-600); margin-bottom: 8px; }
.lp-sec h2, .lp-final h2 { font-size: clamp(24px, 3vw, 36px); line-height: 1.2; font-weight: 800; color: var(--navy-900); }
.lp-head p { color: var(--muted); font-size: 16px; margin-top: 10px; }
.lp-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lp-feat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--sh); transition: transform .15s, box-shadow .15s; }
.lp-feat:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.lp-fi { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: var(--navy-900); background: linear-gradient(180deg, #ffe08f, var(--gold-500)); box-shadow: 0 8px 18px rgba(240, 185, 58, .35); margin-bottom: 14px; }
.lp-feat h3 { font-size: 18px; font-weight: 700; color: var(--navy-900); margin-bottom: 6px; }
.lp-feat p { color: var(--ink-2); font-size: 14.5px; }
.lp-models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lp-model { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 16px; align-items: center; box-shadow: var(--sh); }
.lp-model img { grid-row: 1 / 3; width: 96px; height: auto; }
.lp-model h3 { font-size: 17px; font-weight: 700; color: var(--navy-900); align-self: end; }
.lp-model p { color: var(--muted); font-size: 14px; align-self: start; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.lp-steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px 22px; box-shadow: var(--sh); }
.lp-sn { position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(180deg, var(--blue-400), var(--blue-600)); box-shadow: 0 6px 14px rgba(31, 95, 214, .35); }
.lp-si { display: block; color: var(--blue-500); margin: 6px 0 10px; }
.lp-si .ic { width: 30px; height: 30px; }
.lp-steps h3 { font-size: 17px; font-weight: 700; color: var(--navy-900); margin-bottom: 4px; }
.lp-steps p { color: var(--ink-2); font-size: 14.5px; }
.lp-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.lp-split h2 { margin: 2px 0 12px; }
.lp-split > div > p { color: var(--ink-2); font-size: 16px; }
.lp-sheet { display: grid; place-items: center; padding: 22px; border-radius: 22px; background: radial-gradient(circle at 30% 20%, #dfe9ff, #eef3fb 70%); }
.lp-sheet canvas { border-radius: 6px; background: #fff; box-shadow: 0 24px 48px rgba(8, 27, 92, .22); transform: rotate(-2deg); max-width: 100%; height: auto !important; }
.lp-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.lp-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.lp-list .ic { color: var(--green); margin-top: 3px; }
.lp-faq { display: grid; gap: 12px; }
.lp-faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh); }
.lp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 18px 22px; font-weight: 700; font-size: 16px; color: var(--navy-900); }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary .ic { flex: none; color: var(--blue-500); transition: transform .2s; }
.lp-faq details[open] summary .ic { transform: rotate(180deg); }
.lp-faq details p { padding: 0 22px 20px; color: var(--ink-2); font-size: 15px; }
.lp-more { text-align: center; margin-top: 22px; color: var(--muted); }
.lp-more .link { font-size: 15px; }
.lp-final { padding: 0 0 72px; }
.lp-final-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: 40px 44px; border-radius: 26px; color: #fff; background: radial-gradient(600px 300px at 90% 0%, rgba(61, 124, 240, .6), transparent 70%), linear-gradient(135deg, #0c2b86, #081b5c); box-shadow: var(--sh-lg); position: relative; overflow: hidden; }
.lp-final-in::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 2px solid rgba(247, 203, 88, .35); }
.lp-final h2 { color: #fff; }
.lp-final p { color: #d6e2ff; margin-top: 6px; }
.lp-final .lp-cta { margin-top: 0; position: relative; z-index: 1; }
.lp-foot { background: #061445; color: #c9d6f5; padding: 48px 0 18px; }
.lp-foot-in { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.lp-foot-brand img { height: 54px; width: auto; }
.lp-foot-brand p { margin-top: 10px; font-size: 14px; max-width: 42ch; }
.lp-foot-links { display: grid; gap: 8px; align-content: start; }
.lp-foot-links b { color: #fff; margin-bottom: 4px; }
.lp-foot-links a, .lp-foot-links .link { color: #c9d6f5; font-weight: 500; font-size: 14.5px; padding: 0; justify-content: flex-start; }
.lp-foot-links a:hover, .lp-foot-links .link:hover { color: #fff; }
.lp-foot-bottom { margin-top: 28px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.lp-credit { margin: 0; color: #9fb2e0; }
.lp-credit b { color: #fff; }
@media (max-width: 1000px) {
  .lp-links { display: none; }
  .lp-acts { margin-left: auto; }
  .lp-hero-in, .lp-split { grid-template-columns: minmax(0, 1fr); }
  .lp-hero { padding: 40px 0 76px; }
  .lp-hero-art { min-height: 260px; order: -1; }
  .lp-feats, .lp-models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .lp-foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lp-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .lp-wrap { width: calc(100% - 28px); }
  .lp-nav-in { min-height: 60px; gap: 10px; }
  .lp-acts .btn { min-height: 38px; padding: 6px 12px; font-size: 13.5px; }
  .lp-hero-art { min-height: 200px; }
  .lp-brand img { height: 42px; }
  .lp-fan canvas[data-lpc="0"] { transform: rotate(-12deg) translate(16px, 12px) scale(.9); }
  .lp-fan canvas[data-lpc="2"] { transform: rotate(12deg) translate(-16px, 12px) scale(.9); }
  .lp-float { font-size: 12px; padding: 6px 11px; }
  .lp-float.f1 { left: 0; bottom: 4%; } .lp-float.f2 { right: 0; top: 2%; }
  .lp-cta .lp-big { flex: 1 1 100%; }
  .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-stats > div:nth-child(3) { border-left: 0; }
  .lp-stats > div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .lp-sec { padding: 60px 0; }
  .lp-feats, .lp-models, .lp-steps { grid-template-columns: minmax(0, 1fr); }
  .lp-model { grid-template-columns: 80px minmax(0, 1fr); padding: 18px; }
  .lp-model img { width: 80px; }
  .lp-final-in { padding: 30px 22px; }
  .lp-foot-in { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .lp-float { animation: none; } .lp-fan canvas, .lp-feat { transition: none; } }
