/* ============================================================
   WebPilot Care — design system "Midnight Aurora"
   Dipakai layouts/app + layouts/guest. Tanpa build step.
   ============================================================ */

:root {
    --bg: #0a0f1e;
    --bg-2: #0d1428;
    --surface: #111a30;
    --surface-2: #16213d;
    --line: rgba(148, 163, 184, .14);
    --line-strong: rgba(148, 163, 184, .26);
    --text: #e8eefc;
    --muted: #94a3b8;
    --faint: #64748b;
    --brand-1: #38bdf8;
    --brand-2: #818cf8;
    --grad: linear-gradient(135deg, #38bdf8, #818cf8);
    --ok: #34d399;
    --warn: #fbbf24;
    --bad: #f87171;
    --radius: 14px;
    --radius-lg: 18px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px -12px rgba(2, 6, 23, .8);
    --shadow-lg: 0 24px 60px -24px rgba(2, 6, 23, .9);
    --sidebar-w: 264px;
    --content-w: 1440px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
    margin: 0;
    font-family: var(--font);
    background:
        radial-gradient(1100px 500px at 12% -8%, rgba(56, 189, 248, .10), transparent 60%),
        radial-gradient(900px 460px at 88% -12%, rgba(129, 140, 248, .12), transparent 55%),
        var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: var(--brand-1); text-decoration: none; transition: color .15s ease; }
a:hover { color: #7dd3fc; }

h1, h2, h3, h4 { letter-spacing: -.02em; line-height: 1.25; }

h2 {
    font-size: 1.45rem;
    font-weight: 800;
    margin: .2rem 0 1rem;
    position: relative;
    padding-top: .9rem;
}
h2::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 34px; height: 4px;
    border-radius: 99px;
    background: var(--grad);
}
h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 1.8rem 0 .7rem;
    color: #dbe6ff;
    display: flex;
    align-items: center;
    gap: .55rem;
}
h3::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 3px;
    background: var(--grad);
    flex: none;
}

code, pre { font-family: var(--mono); font-size: .85em; }
code { background: rgba(148, 163, 184, .12); padding: .1em .4em; border-radius: 6px; color: #c9d7f5; }

:focus-visible {
    outline: 2px solid var(--brand-1);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ---------------- Topbar ---------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 15, 30, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.topbar-in {
    max-width: var(--content-w);
    margin: 0 auto;
    padding: .55rem 2rem;
    display: flex;
    align-items: center;
    gap: .8rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: #fff;
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: -.01em;
}
.brand:hover { color: #fff; }
.brand-mark {
    width: 30px; height: 30px;
    border-radius: 9px;
    background: var(--grad);
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px -6px rgba(56, 189, 248, .65);
    flex: none;
}
.brand-mark svg { width: 17px; height: 17px; display: block; }
.brand em { font-style: normal; color: var(--brand-1); }

/* ---------------- Kerangka sidebar + konten ---------------- */
.shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    min-height: 100vh;
}
.side {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.1rem 1rem 1rem;
    background: linear-gradient(180deg, rgba(17, 26, 48, .92), rgba(10, 15, 30, .94));
    border-right: 1px solid var(--line);
    z-index: 70;
}
.side .brand { padding: .1rem .35rem; }
.snav { display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.side-sec {
    margin: 1rem .35rem .3rem;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--faint);
}
.side-sec:first-of-type { margin-top: .4rem; }
.snav a {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 600;
    padding: .55rem .8rem;
    border-radius: var(--radius-sm);
    transition: background .15s ease, color .15s ease, transform .15s ease;
    white-space: nowrap;
    border-left: 3px solid transparent;
}
.snav a:hover { background: rgba(148, 163, 184, .12); color: #fff; transform: translateX(2px); }
.snav a.on {
    background: linear-gradient(135deg, rgba(56, 189, 248, .18), rgba(129, 140, 248, .18));
    color: #fff;
    border-left-color: var(--brand-1);
}
.snav a.admin { color: #cbd5e1; }
.snav a.admin:hover, .snav a.admin.on { background: rgba(251, 191, 36, .12); color: #fde68a; border-left-color: var(--warn); }
.side-foot {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem .6rem .2rem;
    border-top: 1px solid var(--line);
}
.side-foot .who { flex: 1; min-width: 0; }
.side-veil { display: none; }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.burger {
    display: none;
    background: rgba(148, 163, 184, .1);
    color: #e8eefc;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    line-height: 1;
    padding: .42rem .62rem;
    cursor: pointer;
}
.burger:hover { background: rgba(148, 163, 184, .2); }
.crumb { display: none; font-weight: 800; color: #fff; }
.crumb em { font-style: normal; color: var(--brand-1); }
.avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e293b, #334155);
    box-shadow: inset 0 0 0 1px var(--line-strong);
    display: grid;
    place-items: center;
    font-size: .78rem;
    font-weight: 800;
    color: #cbd5e1;
    flex: none;
}
.who { color: var(--muted); font-size: .8rem; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who form { margin: 0; }

/* ---------------- Layout utama ---------------- */
main {
    max-width: var(--content-w);
    width: 100%;
    margin: 0 auto;
    padding: 2rem 2rem 5rem;
    min-width: 0;
}
.lead { color: var(--muted); margin-top: -.4rem; }

/* ---------------- Kartu & statistik ---------------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: .9rem;
    margin: 0 0 1.4rem;
}
.card {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.1rem 1.05rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: var(--grad);
    opacity: .55;
}
.card b {
    display: block;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
    margin: .1rem 0 .15rem;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.card span { color: var(--muted); font-size: .8rem; font-weight: 600; }

/* ---------------- Tombol ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    background: var(--grad);
    color: #06121f;
    font-weight: 700;
    font-size: .875rem;
    padding: .55rem 1.05rem;
    border-radius: var(--radius-sm);
    border: 0;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 18px -10px rgba(56, 189, 248, .8);
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn:hover { color: #06121f; filter: brightness(1.07); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.info { background: linear-gradient(135deg, #22d3ee, #38bdf8); color: #06202b; box-shadow: 0 8px 18px -10px rgba(34, 211, 238, .75); }
.btn.info:hover { color: #06202b; }
.btn.violet { background: linear-gradient(135deg, #a78bfa, #7c3aed); color: #fff; box-shadow: 0 8px 18px -10px rgba(124, 58, 237, .75); }
.btn.violet:hover { color: #fff; }
.btn.danger {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: #fff;
    box-shadow: 0 8px 18px -10px rgba(239, 68, 68, .7);
}
.btn.danger:hover { color: #fff; }
.btn.ghost {
    background: rgba(148, 163, 184, .1);
    color: #cbd5e1;
    box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn.ghost:hover { background: rgba(148, 163, 184, .18); color: #fff; }
.btn.sm { padding: .32rem .7rem; font-size: .8rem; border-radius: 8px; }

/* ---------------- Alert ---------------- */
.err, .ok {
    padding: .7rem .9rem;
    border-radius: var(--radius-sm);
    margin: .7rem 0;
    font-size: .9rem;
    border: 1px solid transparent;
}
.err {
    background: rgba(248, 113, 113, .09);
    border-color: rgba(248, 113, 113, .35);
    color: #fecaca;
}
.err::before { content: "⚠  "; font-weight: 800; color: var(--bad); }
.ok {
    background: rgba(52, 211, 153, .09);
    border-color: rgba(52, 211, 153, .35);
    color: #bbf7d0;
}
.ok::before { content: "✓  "; font-weight: 800; color: var(--ok); }

.key {
    background: rgba(6, 18, 31, .8);
    border: 1px dashed rgba(56, 189, 248, .55);
    padding: .9rem 1rem;
    border-radius: var(--radius-sm);
    word-break: break-all;
    font-family: var(--mono);
    font-size: .85rem;
    color: #a5f3fc;
    margin-top: .5rem;
}

/* ---------------- Tabel ---------------- */table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
thead, tbody { display: table; width: 100%; }
/* Cuplikan kode: wrap rapi maks 3 baris (teks penuh di title + modal). */
.cell-snippet {
    font-size: .78rem;
    font-family: var(--mono);
    max-width: 280px;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
th, td { padding: .72rem .95rem; text-align: left; font-size: .88rem; vertical-align: top; }
/* Isi sel: pecah HANYA bila tak muat (URL/hash panjang); kata normal utuh. */
td { overflow-wrap: break-word; word-break: normal; }
/* Heading tak pernah dipenggal — kolom melebar, tabel yang scroll. */
th { white-space: nowrap; }
td { border-bottom: 1px solid var(--line); border-right: 1px solid rgba(148, 163, 184, .07); color: #dbe4f7; }
th { border-right: 1px solid rgba(148, 163, 184, .07); }
th:last-child, td:last-child { border-right: 0; }
th {
    background: rgba(6, 12, 26, .65);
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-bottom: 1px solid var(--line-strong);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: rgba(56, 189, 248, .045); }
td a { font-weight: 600; }

/* ---------------- Badge status ---------------- */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    min-width: 92px;
    height: 26px;
    padding: 0 .58rem;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1;
    background: rgba(148, 163, 184, .16);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, .3);
    white-space: nowrap;
}
.badge.ok { background: rgba(52, 211, 153, .14); color: #6ee7b7; border-color: rgba(52, 211, 153, .4); }
.badge.warn { background: rgba(251, 191, 36, .14); color: #fde68a; border-color: rgba(251, 191, 36, .4); }
.badge.bad { background: rgba(248, 113, 113, .14); color: #fecaca; border-color: rgba(248, 113, 113, .4); }
.badge.info { background: rgba(56, 189, 248, .14); color: #7dd3fc; border-color: rgba(56, 189, 248, .4); }

/* ---------------- Form ---------------- */
label { display: block; margin: .85rem 0 .3rem; font-size: .8rem; font-weight: 700; color: #cbd5e1; }
input[type=text], input[type=email], input[type=password], input[type=url],
input[type=number], input[type=search], select, textarea {
    width: 100%;
    max-width: 460px;
    padding: .6rem .75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: rgba(6, 12, 26, .75);
    color: var(--text);
    font: inherit;
    font-size: .9rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgba(56, 189, 248, .65);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, .18);
}
input::placeholder, textarea::placeholder { color: var(--faint); }
select { max-width: 340px; }

.baris { margin-bottom: .35rem; }
.hint { color: var(--muted); font-size: .8rem; margin: .3rem 0 .6rem; }
.hint code { font-size: .95em; }

/* ---------------- Toast ala Laravel ---------------- */
.laravel-error { display: none; }

/* ---------------- Pagination ---------------- */
nav[role=navigation] { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: 1.1rem 0 .2rem; }
nav[role=navigation] a, nav[role=navigation] span {
    display: inline-block;
    padding: .34rem .7rem;
    border-radius: 9px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--muted);
    background: rgba(148, 163, 184, .08);
    border: 1px solid var(--line);
}
nav[role=navigation] a:hover { color: #fff; border-color: var(--line-strong); background: rgba(148, 163, 184, .16); }
nav[role=navigation] span[aria-current=page] {
    background: linear-gradient(135deg, rgba(56, 189, 248, .2), rgba(129, 140, 248, .2));
    color: #fff;
    border-color: rgba(56, 189, 248, .45);
}
nav[role=navigation] .hidden { display: none; }

/* ---------------- Halaman kosong ---------------- */
td[colspan] { color: var(--muted); font-style: italic; }

/* ---------------- Kartu auth (guest) ---------------- */
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}
.auth-shell::before, .auth-shell::after {
    content: "";
    position: absolute;
    width: 520px; height: 520px;
    border-radius: 50%;
    filter: blur(10px);
    pointer-events: none;
}
.auth-shell::before { top: -180px; left: -140px; background: radial-gradient(circle, rgba(56, 189, 248, .16), transparent 65%); }
.auth-shell::after { bottom: -200px; right: -150px; background: radial-gradient(circle, rgba(129, 140, 248, .18), transparent 65%); }

.box {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, rgba(22, 33, 61, .95), rgba(17, 26, 48, .95));
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    padding: 2.2rem 2rem 1.8rem;
    box-shadow: 0 30px 70px -30px rgba(2, 6, 23, .95);
    position: relative;
    z-index: 1;
}
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center; margin-bottom: 1.1rem; }
.auth-brand .brand-mark { width: 44px; height: 44px; border-radius: 13px; }
.auth-brand .brand-mark svg { width: 24px; height: 24px; }
.auth-brand .name { font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; color: #fff; }
.auth-brand .name em { font-style: normal; color: var(--brand-1); }
h1 { font-size: 1.25rem; font-weight: 800; margin: 0 0 .2rem; text-align: center; }
p.sub { color: var(--muted); font-size: .87rem; margin-top: 0; text-align: center; }
.box button { margin-top: 1.2rem; }
.box button { width: 100%; padding: .72rem; font-size: .95rem; }
.foot { margin-top: 1.2rem; font-size: .83rem; text-align: center; color: var(--muted); }
.foot a { color: var(--brand-1); }

/* ---------------- Utilitas ---------------- */
.muted { color: var(--muted); }
.sm { font-size: .85rem; }
[hidden] { display: none !important; }

/* ---------------- Pindai halaman web (P24) ---------------- */
.ws-panel {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(22, 33, 61, .55), rgba(13, 20, 40, .65));
    border-radius: 14px;
    padding: 1.1rem 1.2rem 1.2rem;
    margin: .6rem 0 1.4rem;
}
.ws-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.ws-headmain { flex: 1; min-width: 260px; }
.ws-state { font-size: 1rem; color: #fff; }
.ws-sub { color: var(--muted); font-size: .87rem; line-height: 1.55; margin: .3rem 0 0; max-width: 72ch; }
.ws-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ws-actions form { margin: 0; }
.ws-progress {
    margin-top: .8rem;
    padding: .5rem .75rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(56, 189, 248, .07);
    color: var(--text);
    font-size: .85rem;
    position: relative;
    overflow: hidden;
}
.ws-progress::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-1, #38bdf8), transparent);
    background-size: 40% 100%;
    background-repeat: no-repeat;
    animation: ws-slide 1.4s linear infinite;
}
@keyframes ws-slide {
    0% { background-position: -40% 0; }
    100% { background-position: 140% 0; }
}
.ws-stats { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .9rem; }
/* Sel badge (kolom status): selalu tengah + tak terbungkus — seragam di semua baris. */
.cell-sev { vertical-align: middle; white-space: nowrap; text-align: left; }
/* Sel mana pun yang berisi badge: samakan tengah (riwayat, daftar situs, hasil). */
td:has(> span.badge) { vertical-align: middle; }
.ws-advice { border-top: 1px solid var(--line); margin-top: .9rem; padding-top: .8rem; }
.ws-advice h4 { margin: 0 0 .45rem; font-size: .95rem; color: #fff; }
.ws-advice .arti { color: var(--muted); font-size: .86rem; margin: .55rem 0 .25rem; line-height: 1.5; }
.ws-advice .arti strong { color: var(--text); }
.ws-advice ol { margin: .2rem 0 .8rem; padding-left: 1.25rem; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.ws-advice ol li { margin-bottom: .15rem; }

/* ---------------- Progres langkah (P28) ---------------- */
.prog-track {
    position: relative;
    height: 20px;
    border-radius: 99px;
    background: rgba(148, 163, 184, .12);
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35);
    margin-top: .7rem;
}
.prog-bar {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 0;
    background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
    transition: width .6s cubic-bezier(.4, 0, .2, 1);
}
.prog-bar.run {
    background-image: linear-gradient(45deg, rgba(255,255,255,.3) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.3) 50%, rgba(255,255,255,.3) 75%, transparent 75%, transparent);
    background-size: 2rem 2rem;
    animation: prog-slide 1s linear infinite;
}
.prog-bar.done { background: linear-gradient(90deg, #10b981, #16a34a) !important; }
.prog-bar.err { background: linear-gradient(90deg, #f87171, #dc2626) !important; }
@keyframes prog-slide { from { background-position: 0 0; } to { background-position: 2rem 0; } }
.prog-info { margin: .5rem 0 0; font-size: .84rem; color: var(--muted); }
.prog-steps { list-style: none; margin: .7rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.prog-steps li {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .84rem;
    color: #64748b;
}
.prog-steps li::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #475569;
    flex: none;
}
.prog-steps li.is-done { color: var(--muted); }
.prog-steps li.is-done::before { background: #22c55e; }
.prog-steps li.is-active { color: #fff; font-weight: 600; }
.prog-steps li.is-active::before {
    background: var(--brand-1);
    animation: prog-pulse 1.2s ease-in-out infinite;
}
.prog-steps li.is-skip { color: #475569; text-decoration: line-through; }
@keyframes prog-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, .55); }
    50% { box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); }
}

/* ---------------- Responsif: sidebar drawer + HP/tablet ---------------- */@media (max-width: 1023px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .side {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        width: min(280px, 84vw);
        height: 100dvh;
        transform: translateX(-105%);
        transition: transform .22s ease;
        box-shadow: 0 0 60px rgba(0, 0, 0, .55);
    }
    body.nav-open .side { transform: translateX(0); }
    body.nav-open .side-veil {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 65;
        background: rgba(2, 6, 23, .6);
    }
    .burger { display: inline-flex; }
    .crumb { display: inline; font-size: .95rem; }
}

@media (max-width: 640px) {
    body { font-size: 14px; }
    main { padding: 1.1rem .8rem 3rem; }
    h2 { font-size: 1.2rem; }
    .topbar-in { padding: .5rem .8rem; }
    th, td { padding: .55rem .6rem; font-size: .8rem; }
    .cards { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .7rem; }
    .card b { font-size: 1.5rem; }
    .ws-panel { padding: .9rem .85rem 1rem; }
    .ws-headmain { min-width: 0; }
    .ws-actions { width: 100%; }
    .ws-actions .btn, .ws-actions form { flex: 1 1 auto; }
    .ws-actions .btn { width: 100%; }
    input[type=text], input[type=email], input[type=password], input[type=url],
    input[type=number], input[type=search], select, textarea { max-width: none; }
    .box { padding: 1.8rem 1.3rem 1.5rem; }
}

/* ============================================================
   Full redesain (P40) — polish premium di atas sistem yang ada.
   Semua aditif (override berurutan), tanpa ubah HTML/logika.
   ============================================================ */
::selection { background: rgba(56, 189, 248, .35); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: rgba(56, 189, 248, .35) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(56, 189, 248, .35), rgba(129, 140, 248, .35));
    border-radius: 99px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

body { font-size: 15.5px; letter-spacing: .002em; }
h2 { font-size: 1.6rem; margin: .2rem 0 1.2rem; }
h3 { font-size: 1.08rem; }

/* Sidebar: glow atas + footer kartu */
.side {
    background:
        radial-gradient(420px 200px at 50% -60px, rgba(56, 189, 248, .12), transparent 70%),
        linear-gradient(180deg, rgba(17, 26, 48, .94), rgba(10, 15, 30, .96));
}
.side .brand { padding: .35rem; margin-bottom: .2rem; }
.side .brand-txt { font-size: 1.08rem; }
.side-foot {
    background: rgba(6, 12, 26, .55);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .7rem .75rem;
    margin-top: .6rem;
}

/* Topbar: hairline gradien */
.topbar { background: rgba(10, 15, 30, .78); }
.topbar::after {
    content: "";
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, .4), rgba(129, 140, 248, .4), transparent);
}

/* Kartu: lebih lega + angkat */
.card { border-radius: var(--radius-lg); padding: 1.2rem 1.25rem 1.15rem; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card b { font-size: 2rem; }

/* Tabel: header tegas + baris ritme */
th {
    background: rgba(10, 18, 38, .8);
    font-size: .7rem;
    padding: .8rem .95rem;
    position: sticky;
    top: 0;
}
tbody tr:nth-child(even) { background: rgba(148, 163, 184, .035); }
tbody tr:hover { background: rgba(56, 189, 248, .07); }
td { padding: .8rem .95rem; }

/* Panel: aksen atas + bayangan dalam */
.ws-panel {
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.4rem 1.4rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.ws-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--grad);
    opacity: .55;
}
.ws-state { font-size: 1.06rem; }

/* Tombol: ring + bobot */
.btn { letter-spacing: .01em; box-shadow: 0 10px 22px -10px rgba(56, 189, 248, .8), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn.sm { box-shadow: none; }
.badge { padding: .2rem .65rem; font-size: .74rem; }

/* Alert + form */
.err, .ok { border-radius: var(--radius); padding: .8rem 1rem; box-shadow: var(--shadow); }
input[type=text], input[type=email], input[type=password], input[type=url],
input[type=number], input[type=search], select, textarea { background: rgba(8, 15, 32, .85); }
.key { font-size: .88rem; box-shadow: var(--shadow); }

/* Pager */
nav[role=navigation] a, nav[role=navigation] span { border-radius: 10px; padding: .42rem .8rem; }
