/* ============================================================
   PGRI CMS — Admin stylesheet
   ============================================================ */

:root {
    --navy-900: #0a2148;
    --navy-800: #0e2f6b;
    --navy-700: #123b82;
    --navy-600: #1a4a9e;
    --navy-100: #e3e9f6;
    --navy-50: #f4f6fb;
    --gold-500: #c9a227;
    --gold-600: #b8860b;
    --gold-400: #d9b34a;
    --ink: #1d2634;
    --muted: #5c6675;
    --line: #e3e7ef;
    --bg: #f2f4f9;
    --red-600: #c8102e;
    --red-100: #fdeeee;
    --green-700: #0e7a3c;
    --green-100: #e8f6ee;
    --sidebar-w: 272px;
    --radius: 10px;
    --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    --shadow: 0 10px 30px -12px rgba(10, 33, 72, .28);
}

/* Pita identitas PGRI di bagian atas admin */
.identity-strip {
    height: 5px; position: fixed; top: 0; left: 0; right: 0; z-index: 60;
    background: linear-gradient(90deg, var(--navy-700) 0 25%, var(--red-600) 25% 50%, var(--gold-500) 50% 75%, var(--green-700) 75% 100%);
}

* { box-sizing: border-box; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 2px; }
.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 100;
    background: var(--red-600); color: #fff; font-weight: 700;
    padding: .7em 1.2em; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

body { margin: 0; font-family: var(--font-sans); font-size: 15px; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.admin-nav-open { overflow: hidden; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--gold-600); }
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--navy-900); line-height: 1.25; margin: 0 0 .5em; }

.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .45em;
    padding: .6em 1.15em; border-radius: var(--radius);
    font-weight: 600; font-size: .88rem; line-height: 1;
    cursor: pointer; border: 1px solid transparent; white-space: nowrap;
    transition: all .18s ease;
}
.btn--primary { background: var(--navy-800); color: #fff; }
.btn--primary:hover { background: var(--navy-600); color: #fff; }
.btn--gold { background: linear-gradient(135deg, #d9b34a, var(--gold-600)); color: #fff; }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--navy-800); }
.btn--ghost:hover { border-color: var(--navy-600); }
.btn--ghost.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.btn--danger { background: var(--red-100); color: var(--red-600); }
.btn--danger:hover { background: var(--red-600); color: #fff; }
.btn--sm { padding: .42em .85em; font-size: .8rem; }
.btn--lg { padding: .8em 1.5em; font-size: .95rem; }
.btn--block { display: flex; justify-content: center; width: 100%; }
.link-more { font-size: .86rem; font-weight: 600; }

/* ---------- Layout ---------- */
.admin { display: flex; min-height: 100vh; }
.admin__sidebar {
    width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
    background: linear-gradient(180deg, #091d40 0%, var(--navy-900) 48%, #081a38 100%);
    display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 30;
    box-shadow: 12px 0 32px rgba(5, 20, 48, .12);
}
.admin__brand { display: flex; align-items: center; gap: 12px; padding: 25px 22px 22px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.admin__brand:hover { color: #fff; }
.admin__brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.admin__brand-mark img { border-radius: 8px; }
.admin__brand strong { display: block; font-size: 1.02rem; line-height: 1.2; }
.admin__brand small { color: var(--gold-400); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.admin__nav { flex: 1; padding: 22px 14px 12px; display: flex; flex-direction: column; gap: 5px; overflow-y: auto; }
.admin__nav-label { color: rgba(255, 255, 255, .4); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 0 12px 8px; }
.admin__nav-link {
    display: flex; align-items: center; gap: 12px; padding: .78em 12px;
    border-radius: var(--radius); color: rgba(255, 255, 255, .72);
    font-weight: 500; font-size: .9rem;
    border: 1px solid transparent; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.admin__nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; transform: translateX(2px); }
.admin__nav-link.is-active { background: linear-gradient(90deg, rgba(217, 179, 74, .2), rgba(217, 179, 74, .06)); color: #fff; border-color: rgba(217, 179, 74, .3); box-shadow: inset 3px 0 0 var(--gold-500); }
.admin__nav-icon { width: 22px; text-align: center; font-size: 1rem; color: var(--gold-400); }
.admin__nav-group { margin: 0; }
.admin__nav-group > summary { list-style: none; cursor: pointer; }
.admin__nav-group > summary::-webkit-details-marker { display: none; }
.admin__nav-chevron { margin-left: auto; color: rgba(255,255,255,.55); transition: transform .18s ease; }
.admin__nav-group[open] .admin__nav-chevron { transform: rotate(180deg); }
.admin__nav-children { display: grid; gap: 3px; margin: 2px 0 4px 22px; padding-left: 11px; border-left: 1px solid rgba(255,255,255,.16); }
.admin__nav-link--child { padding: .58em 10px; font-size: .82rem; }
.admin__badge {
    margin-left: auto; background: var(--gold-500); color: #fff;
    font-size: .7rem; font-weight: 700; padding: .15em .6em; border-radius: 999px;
}
.admin__sidebar-foot { padding: 16px 20px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; gap: 10px; }
.admin__link { color: rgba(255, 255, 255, .72); font-size: .84rem; }
.admin__link:hover { color: var(--gold-400); }
.admin__link--danger:hover { color: #ff8d84; }
.admin__logout { margin-top: 6px; }
.admin__logout .admin__link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.session-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; padding: 6px 22px 22px; }
.session-info div { display: flex; flex-direction: column; gap: 2px; }
.session-info small { color: var(--muted); font-size: .8rem; }
.session-info strong { color: var(--navy-900); }

.admin__main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }
.admin__topbar {
    min-height: 78px; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 18px; padding: 12px 34px;
    position: sticky; top: 0; z-index: 20;
    backdrop-filter: blur(12px);
}
.admin__heading { font-size: 1.25rem; margin: 0; letter-spacing: -.015em; }
.admin__crumbs { display: flex; gap: 8px; font-size: .72rem; color: var(--muted); margin-bottom: 4px; }
.admin__crumbs span:last-child { color: var(--navy-800); font-weight: 700; }
.admin__account { position: relative; margin-left: auto; }
.admin__account-trigger { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; font: inherit; text-align: left; }
.admin__account-trigger:hover, .admin__account-trigger[aria-expanded="true"] { background: var(--navy-50); border-color: var(--line); }
.admin__account-trigger:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.admin__user-avatar {
    width: 40px; height: 40px; border-radius: 50%; background: var(--navy-100);
    color: var(--navy-700); display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
}
.admin__account-copy { display: flex; flex-direction: column; gap: 2px; min-width: 96px; }
.admin__account-copy strong { display: block; font-size: .86rem; line-height: 1.2; }
.admin__account-copy small, .admin__account-menu-head small { color: var(--muted); font-size: .72rem; }
.admin__account-chevron { color: var(--muted); font-size: 1.1rem; line-height: 1; transition: transform .18s ease; }
.admin__account-trigger[aria-expanded="true"] .admin__account-chevron { transform: rotate(180deg); }
.admin__account-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 50; width: 220px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(10, 33, 72, .45); }
.admin__account-menu[hidden] { display: none; }
.admin__account-menu-head { padding: 10px 11px 12px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.admin__account-menu-head strong { display: block; color: var(--navy-900); font-size: .86rem; margin-bottom: 3px; }
.admin__account-link { display: block; width: 100%; padding: 10px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: .84rem; text-align: left; cursor: pointer; }
.admin__account-link:hover { background: var(--navy-50); color: var(--navy-700); }
.admin__account-link--danger:hover { background: var(--red-100); color: var(--red-600); }
.admin__account-logout { margin: 0; border-top: 1px solid var(--line); margin-top: 5px; padding-top: 5px; }
.admin__burger { display: none; width: 40px; height: 40px; background: var(--navy-50); border: 1px solid var(--line); border-radius: 9px; font-size: 1.3rem; cursor: pointer; color: var(--navy-800); }

.admin__content { width: 100%; max-width: 1480px; padding: 34px; flex: 1; }
.admin__scrim { display: none; }

/* ---------- Alerts ---------- */
.alert { padding: .9em 1.1em; border-radius: var(--radius); font-size: .88rem; margin-bottom: 22px; }
.alert--success { background: var(--green-100); color: var(--green-700); border: 1px solid #b8e3c4; }
.alert--error { background: var(--red-100); color: var(--red-600); border: 1px solid #f5c3bd; }

/* ---------- Stat cards ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 28px; }
.stat-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; display: flex; align-items: center; gap: 16px;
    box-shadow: 0 1px 2px rgba(16, 34, 74, .05); transition: all .2s ease;
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.stat-card__icon {
    width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%;
    background: var(--navy-100); color: var(--navy-700); font-size: 1.25rem;
    display: flex; align-items: center; justify-content: center;
}
.stat-card strong { display: block; font-size: 1.6rem; color: var(--navy-900); line-height: 1.1; }
.stat-card small { color: var(--muted); font-size: .8rem; }

/* ---------- Panels / grids ---------- */
.admin-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
.admin-grid--stack { grid-template-columns: 1fr; }
.admin-panel {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(16, 34, 74, .05); margin-bottom: 24px;
}
.admin-panel__head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.admin-panel__head h2 { font-size: 1.02rem; margin: 0; }
.admin-panel--form { padding-bottom: 10px; }
.admin-panel--wide { max-width: 960px; }
.admin-panel--narrow { max-width: 720px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--navy-100); border-radius: 8px; }
.table-wrap::-webkit-scrollbar-thumb:hover { background: var(--gold-600); }
.table { width: 100%; border-collapse: collapse; }
.table th {
    text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line);
    background: var(--navy-50); white-space: nowrap;
}
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s ease; }
.table tbody tr:hover { background: var(--navy-50); }
.row-unread { background: #fbf7ea; }
.row-unread:hover { background: #f8f0d9 !important; }
.table__link { font-weight: 600; color: var(--navy-800); }
.table__link:hover { color: var(--gold-600); }
.th-actions { text-align: right; }
.td-actions { white-space: nowrap; text-align: right; }
.td-thumb img { border-radius: 6px; object-fit: cover; }
.td-thumb-sm { width: 44px; height: 30px; object-fit: cover; border-radius: 4px; float: left; margin: 2px 10px 0 0; }
.td-clamp { max-width: 280px; }

.pill { display: inline-block; padding: .2em .8em; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.pill--ok { background: var(--green-100); color: var(--green-700); }
.pill--muted { background: #eef0f4; color: var(--muted); }
.tag { display: inline-block; background: var(--navy-100); color: var(--navy-700); font-size: .76rem; font-weight: 600; padding: .22em .75em; border-radius: 6px; }
.tag--blue { background: #e3ebfa; color: #2b5aa8; }
.tag--gold { background: var(--gold-500); color: #fff; }

/* ---------- Forms (admin) ---------- */
.form { display: block; }
.form--stacked { padding: 8px 22px 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__group { margin-bottom: 18px; }
.form__group label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .4rem; color: var(--navy-900); }
.form__group .req { color: var(--gold-600); }
.form__group input[type="text"],
.form__group input[type="email"],
.form__group input[type="password"],
.form__group input[type="number"],
.form__group input[type="datetime-local"],
.form__group input[type="tel"],
.form__group input[type="url"],
.form__group input[type="search"],
.form__group input[type="file"],
.form__group select,
.form__group textarea {
    width: 100%; padding: .6em .85em; border: 1px solid #ccd3e2; border-radius: var(--radius);
    font: inherit; color: var(--ink); background: #fbfcfe;
}
.form__group input:focus, .form__group select:focus, .form__group textarea:focus {
    outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(30, 68, 135, .12); background: #fff;
}
.form__group input[aria-invalid="true"], .form__group select[aria-invalid="true"], .form__group textarea[aria-invalid="true"] { border-color: var(--red-600); }
.form__group textarea { resize: vertical; }
.form__hint, .form__error { display: block; margin-top: .35rem; font-size: .78rem; line-height: 1.45; }
.form__hint { color: var(--muted); }
.form__error { color: var(--red-600); font-weight: 600; }
.form__group.is-invalid label { color: var(--red-600); }
.form__group > input:not([type="checkbox"]), .form__group > select, .form__group > textarea,
.form-control { min-height: 44px; border-radius: 10px; padding: .7em .9em; }
.user-table input, .user-table select { width: 100%; min-height: 40px; padding: .55em .7em; border: 1px solid #ccd3e2; border-radius: 9px; background: #fbfcfe; color: var(--ink); font: inherit; }
.user-table input:focus, .user-table select:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(26, 74, 158, .12); background: #fff; }
.user-table td:first-child form { display: grid; gap: 6px; }
.form__group--grow { grid-column: span 2; }
.form__group--sm { grid-column: span 1; }
.form__checks { display: flex; gap: 26px; margin: 4px 0 18px; }
.form__row--between { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.checkbox { display: flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 500; cursor: pointer; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--navy-700); }
.form__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 6px; }
.admin-panel--narrow { max-width: 720px; }

/* ---------- Password security form ---------- */
.password-layout { display: grid; grid-template-columns: minmax(0, 720px) minmax(220px, 300px); gap: 22px; align-items: start; }
.password-panel { padding: 28px 30px 30px; }
.password-panel__intro { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 22px; }
.password-panel__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: var(--navy-100); color: var(--navy-700); font-size: .9rem; }
.password-panel__eyebrow { margin: 0 0 4px; color: var(--gold-600); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.password-panel__intro h2 { margin: 0 0 5px; font-size: 1.3rem; }
.password-panel__intro p:last-child { margin: 0; font-size: .86rem; }
.password-panel__notice { display: grid; gap: 4px; margin-bottom: 24px; padding: 13px 15px; border: 1px solid var(--navy-100); border-radius: 10px; background: var(--navy-50); color: var(--muted); font-size: .82rem; line-height: 1.45; }
.password-panel__notice strong { color: var(--navy-800); font-size: .84rem; }
.password-form { max-width: 100%; }
.password-field { margin-bottom: 18px; }
.password-field > label { display: block; margin-bottom: .45rem; color: var(--navy-900); font-size: .85rem; font-weight: 700; }
.password-field__control { position: relative; display: flex; align-items: center; }
.password-field__icon { position: absolute; left: 14px; color: var(--muted); font-size: .55rem; pointer-events: none; }
.password-field__control:focus-within .password-field__icon { color: var(--navy-600); }
.password-field__control input { width: 100%; padding: .76em 6.8em .76em 2.6em; border: 1px solid #ccd3e2; border-radius: 10px; background: #fbfcfe; color: var(--ink); font: inherit; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.password-field__control input:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(26, 74, 158, .12); background: #fff; }
.password-field__toggle { position: absolute; right: 5px; border: 0; border-radius: 7px; padding: 8px 10px; background: transparent; color: var(--navy-700); cursor: pointer; font-size: .78rem; font-weight: 700; }
.password-field__toggle:hover { background: var(--navy-50); }
.password-field__toggle:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 1px; }
.password-help { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, #fff, var(--navy-50)); box-shadow: 0 1px 2px rgba(16, 34, 74, .05); }
.password-help h3 { margin: 0 0 12px; font-size: .95rem; }
.password-help ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.password-help li + li { margin-top: 8px; }
.form__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form__preview { margin: 6px 0 10px; }
.form__preview img { border-radius: var(--radius); border: 1px solid var(--line); }
.input-file { font-size: .86rem; }
.input-inline { width: 150px; padding: .4em .6em; border: 1px solid #ccd3e2; border-radius: 6px; font: inherit; font-size: .84rem; }
.input-inline--sm { width: 90px; }
.input-inline--num { width: 64px; }
.form--row-inline { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 22px; border-bottom: 1px solid var(--line); align-items: center; }
.form--row-inline input[type="text"], .form--row-inline input[type="number"] { padding: .5em .8em; border: 1px solid #ccd3e2; border-radius: var(--radius); font: inherit; font-size: .86rem; }

/* ---------- Toolbar ---------- */
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-toolbar__left, .admin-toolbar__right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.input-search { padding: .55em .9em; border: 1px solid #ccd3e2; border-radius: var(--radius); font: inherit; font-size: .88rem; min-width: 220px; }
.input-search:focus { outline: none; border-color: var(--navy-600); }

/* ---------- RTE ---------- */
.rte { border: 1px solid #ccd3e2; border-radius: var(--radius); overflow: hidden; background: #fbfcfe; }
.rte__toolbar { display: flex; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #fff; flex-wrap: wrap; }
.rte__toolbar button {
    min-width: 34px; height: 32px; border: 1px solid var(--line); background: #fff;
    border-radius: 6px; cursor: pointer; font-size: .85rem; color: var(--ink);
}
.rte__toolbar button:hover { background: var(--navy-100); }
.rte__source { width: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 0 !important; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .88rem; }

/* ---------- Message list / detail ---------- */
.msg-list { list-style: none; margin: 0; padding: 6px 18px 18px; }
.msg-list__item { border-bottom: 1px solid var(--line); }
.msg-list__item:last-child { border-bottom: 0; }
.msg-list__item a { display: block; padding: 14px 4px; color: var(--ink); }
.msg-list__item a:hover { background: var(--navy-50); }
.msg-list__item.is-unread strong::before { content: "●"; color: var(--gold-500); margin-right: 8px; font-size: .7rem; }
.msg-list__top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.msg-list__top span { color: var(--muted); font-size: .76rem; }
.msg-list__item p { margin: 0; color: var(--muted); font-size: .86rem; }

.detail { margin: 0; padding: 8px 22px 22px; }
.detail__row { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail__row dt { color: var(--muted); font-size: .84rem; font-weight: 600; }
.detail__row dd { margin: 0; }
.detail__message { white-space: pre-wrap; background: var(--navy-50); padding: 16px; border-radius: var(--radius); }

/* ---------- Settings ---------- */
.settings-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 22px; }
.settings-group__title {
    font-size: 1rem; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--navy-100);
    color: var(--navy-800);
}

/* ---------- Login ---------- */
/* ---------- Login (modern split panel) ---------- */
.login-body {
    margin: 0; min-height: 100vh;
    background:
        radial-gradient(circle at 100% 0, rgba(201, 162, 39, .12), transparent 28rem),
        var(--bg);
}

.login-shell { display: flex; min-height: 100vh; }

.login-brand {
    position: relative; overflow: hidden;
    flex: 1 1 52%;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 56px clamp(32px, 5vw, 76px);
    color: #fff;
    background:
        radial-gradient(900px 600px at 85% -10%, rgba(201, 162, 39, .26), transparent 62%),
        radial-gradient(720px 520px at -10% 110%, rgba(200, 16, 46, .22), transparent 58%),
        linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 46%, var(--navy-600) 100%);
    border-top: 5px solid transparent;
    border-image: linear-gradient(90deg, var(--navy-700) 0 25%, var(--red-600) 25% 50%, var(--gold-500) 50% 75%, var(--green-700) 75%) 1;
}
.login-brand::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
}
.login-brand > * { position: relative; z-index: 1; }

.login-brand__top { display: flex; align-items: center; gap: 14px; }
.login-brand__top img { border-radius: 10px; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.login-brand__org { font-size: 1.05rem; font-weight: 700; letter-spacing: .02em; }

.login-brand__body { max-width: 460px; }
.login-brand__eyebrow {
    margin: 0 0 12px; color: var(--gold-400);
    font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700;
}
.login-brand__body h2 { color: #fff; font-size: clamp(1.9rem, 3vw, 2.65rem); line-height: 1.14; margin: 0 0 18px; letter-spacing: -.025em; }
.login-brand__desc { color: rgba(255, 255, 255, .82); font-size: 1rem; line-height: 1.7; margin: 0 0 30px; }
.login-brand__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.login-brand__points li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .9); font-weight: 500; font-size: .92rem; }
.login-brand__points li::before {
    content: ""; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none" stroke="%23d9b34a" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M4 10.5l4 4L16 6"/></svg>') center/contain no-repeat;
}

.login-brand__foot { display: flex; align-items: center; gap: 8px; }
.login-brand__dot { width: 10px; height: 10px; border-radius: 50%; opacity: .85; }
.login-brand__dot--red { background: var(--red-600); }
.login-brand__dot--gold { background: var(--gold-500); }
.login-brand__dot--green { background: var(--green-700); }
.login-brand__copyright { margin-left: 8px; color: rgba(255, 255, 255, .6); font-size: .78rem; }

.login-panel {
    flex: 1 1 48%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 48px clamp(20px, 4vw, 68px) 32px;
    background: rgba(242, 244, 249, .72);
}
.login-card { width: 100%; max-width: 448px; }
.login-card__head { text-align: center; margin-bottom: 24px; }
.login-card__logo { margin: 0 auto 16px; border-radius: 12px; box-shadow: 0 8px 22px rgba(10, 33, 72, .18); }
.login-card__eyebrow { margin: 0 0 7px; color: var(--gold-600); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.login-card__head h1 { font-size: clamp(1.35rem, 2.5vw, 1.65rem); margin: 0 0 6px; letter-spacing: -.02em; }
.login-card__head p { color: var(--muted); margin: 0; font-size: .92rem; }

.login-alert { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.login-alert svg { flex: 0 0 auto; margin-top: 1px; }

.login-form { background: #fff; border: 1px solid rgba(227, 231, 239, .9); border-radius: 16px; padding: clamp(22px, 4vw, 32px); box-shadow: 0 18px 46px -24px rgba(10, 33, 72, .42); }

.field { margin-bottom: 18px; }
.field__label { display: block; font-weight: 600; font-size: .84rem; margin-bottom: .45rem; color: var(--navy-900); }
.field__control { position: relative; display: flex; align-items: center; }
.field__icon { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.field__control:focus-within .field__icon { color: var(--navy-600); }
.field__input {
    width: 100%; padding: .78em 3.1em .78em 2.7em;
    border: 1px solid #ccd3e2; border-radius: 10px;
    font: inherit; font-size: .95rem; color: var(--ink); background: #fbfcfe;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field__input:focus {
    outline: none; border-color: var(--navy-600);
    box-shadow: 0 0 0 4px rgba(26, 74, 158, .12); background: #fff;
}
.field__input::placeholder { color: #9aa4b4; }
.field__toggle {
    position: absolute; right: 5px; border: 0; background: none;
    color: var(--navy-700); font-weight: 600; font-size: .78rem;
    cursor: pointer; padding: 8px 10px; border-radius: 7px;
}
.field__toggle:hover { background: var(--navy-50); }
.field__toggle:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 1px; }
.field__toggle[aria-pressed="true"] { color: var(--gold-600); }

.login-form__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 22px; }
.login-form__help { font-size: .84rem; font-weight: 600; }
.login-form__help:hover { color: var(--gold-600); }

.login-submit { position: relative; min-height: 48px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.login-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(10, 33, 72, .8); }
.login-submit:disabled { cursor: wait; opacity: .86; }
.login-submit__spinner { display: none; }
.login-submit.is-loading .login-submit__lock { opacity: 0; }
.login-submit.is-loading .login-submit__spinner {
    display: inline-block; position: absolute; left: 50%; top: 50%;
    width: 18px; height: 18px; margin: -9px 0 0 -9px;
    border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%;
    animation: login-spin .7s linear infinite;
}
@keyframes login-spin { to { transform: rotate(360deg); } }

.login-card__security {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 18px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.55; text-align: center;
}
.login-card__security svg { flex: 0 0 auto; }
.login-card__back { display: block; text-align: center; margin-top: 20px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.login-card__back:hover { color: var(--navy-700); }
.login-panel__foot { margin-top: 40px; color: var(--muted); font-size: .78rem; display: flex; gap: 8px; }

@media (max-width: 900px) {
    .login-shell { flex-direction: column; }
    .login-brand { min-height: 230px; padding: 28px; }
    .login-brand__body h2 { font-size: 1.7rem; }
    .login-brand__points { display: none; }
    .login-brand__foot { display: none; }
    .login-panel { padding: 36px 20px 28px; }
}
@media (max-width: 600px) {
    .login-brand { min-height: auto; padding: 24px 20px 22px; }
    .login-brand__body { margin-top: 34px; }
    .login-brand__eyebrow { margin-bottom: 8px; }
    .login-brand__body h2 { font-size: 1.45rem; margin-bottom: 0; }
    .login-brand__desc { display: none; }
    .login-panel { justify-content: flex-start; padding: 30px 16px 24px; }
    .login-card__head { margin-bottom: 20px; }
    .login-card__logo { width: 54px; height: 54px; margin-bottom: 12px; }
    .login-form__row { align-items: flex-start; flex-direction: column; gap: 14px; }
    .login-form__help { align-self: flex-end; }
    .login-panel__foot { margin-top: 28px; flex-wrap: wrap; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .login-submit.is-loading .login-submit__spinner { animation: none; }
}

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state__icon { font-size: 2.4rem; color: var(--line); display: block; margin-bottom: .5rem; }
.empty-state .btn { margin-top: 14px; }

/* ---------- Topbar title / crumbs ---------- */
.admin__title { min-width: 0; }

/* ---------- Filter bar / chips / pagination ---------- */
.filter-bar {
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 12px 16px; margin-bottom: 18px;
}
.filter-bar .input-search { flex: 1 1 220px; }
.input-search--sm { flex: 0 0 auto; width: auto; min-width: 150px; }
.count-chip {
    display: inline-block; background: var(--navy-100); color: var(--navy-800);
    font-size: .78rem; font-weight: 700; padding: .3em .9em; border-radius: 999px; white-space: nowrap;
}
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 4px; }
.pagination__info { color: var(--muted); font-size: .84rem; }
.pagination__links { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination__ellipsis { min-width: 32px; padding: .4em .2em; text-align: center; color: var(--muted); }
.pagination__link {
    min-width: 32px; padding: .4em .7em; text-align: center; border: 1px solid var(--line);
    border-radius: 6px; background: #fff; color: var(--navy-800); font-size: .84rem; font-weight: 600;
}
.pagination__link:hover { border-color: var(--navy-600); }
.pagination__link.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.menu-table .input-inline { min-width: 120px; max-width: 100%; }
.menu-table .input-inline--name { min-width: 150px; }
.menu-table .input-inline--num { min-width: 76px; width: 76px; }
.menu-edit-form { display: inline-flex; }
.checkbox--compact { display: inline-flex; margin-left: 6px; font-size: .76rem; }

/* ---------- Menu manager ---------- */
.admin-toolbar__eyebrow { display: block; margin-bottom: 4px; color: var(--gold-600); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.menu-manager__toolbar { align-items: flex-end; }
.menu-manager__title { margin: 0 0 4px; font-size: 1.45rem; }
.menu-manager__toolbar p { margin: 0; font-size: .84rem; }
.menu-manager { display: grid; gap: 22px; }
.menu-manager__create { border-top: 3px solid var(--gold-500); }
.menu-manager__location { overflow: hidden; }
.menu-editor__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.menu-editor__grid .form__group { grid-column: span 4; margin-bottom: 0; }
.menu-editor__grid .form__group:first-child { grid-column: span 3; }
.menu-editor__grid .form__group:nth-child(2) { grid-column: span 3; }
.menu-editor__grid .form__group:nth-child(3) { grid-column: span 6; }
.menu-editor__grid .menu-editor__url { grid-column: span 6; }
.menu-editor__grid .menu-editor__parent { grid-column: span 6; }
.menu-editor__active { align-self: end; grid-column: span 3; min-height: 40px; }
.menu-editor select, .menu-editor input:not([type="checkbox"]) { width: 100%; }
.menu-tree { padding: 18px 22px 22px; }
.menu-node { position: relative; margin-left: calc(var(--menu-depth) * 24px); }
.menu-node + .menu-node { margin-top: 8px; }
.menu-node__summary { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.menu-node__grip { color: #a4adba; font-size: 1rem; letter-spacing: -3px; }
.menu-node__type { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; background: var(--navy-100); color: var(--navy-700); font-weight: 800; }
.menu-node__identity { min-width: 0; flex: 1; }
.menu-node__identity strong, .menu-node__identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-node__identity strong { color: var(--navy-900); font-size: .9rem; }
.menu-node__identity small { margin-top: 3px; color: var(--muted); font-size: .75rem; }
.menu-node__actions { position: relative; }
.menu-node__actions > summary { list-style: none; cursor: pointer; }
.menu-node__actions > summary::-webkit-details-marker { display: none; }
.menu-node__editor { position: absolute; top: calc(100% + 8px); right: 0; z-index: 10; width: min(620px, calc(100vw - 48px)); padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 18px 40px -18px rgba(10, 33, 72, .42); }
.menu-node__editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.menu-node__editor-head strong { font-size: .9rem; color: var(--navy-900); }
.menu-node__close { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--bg-soft, #f1f5f9); color: var(--navy-700, #334155); font-size: 1.15rem; line-height: 1; cursor: pointer; transition: background .18s ease, color .18s ease; }
.menu-node__close:hover { background: rgba(220, 38, 38, .12); color: var(--red-600, #dc2626); }
.menu-node__delete { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.menu-node__children { padding: 8px 0 0 20px; border-left: 2px solid var(--navy-100); }
.menu-node--parent > .menu-node__summary { border-color: var(--gold-500); }
.menu-node--group > .menu-node__summary { border-color: var(--gold-500); background: linear-gradient(90deg, #fffdf4, #fff); box-shadow: inset 2px 0 0 var(--gold-500); }
.menu-node--group > .menu-node__summary .menu-node__type { background: rgba(217, 179, 74, .22); color: var(--gold-600); }
.menu-node--group > .menu-node__summary .menu-node__grip { color: var(--gold-600); }

.pill--warn { background: #fdf3d9; color: var(--gold-600); }
.star { color: var(--gold-500); }
.panel-pad { padding: 18px 22px; margin: 0; }

/* ---------- Input with button / password ---------- */
.input-with-btn { display: flex; gap: 8px; }
.input-with-btn input { flex: 1; }
.input-with-btn--pwd { position: relative; }
.pwd-toggle {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    border: 0; background: none; color: var(--navy-700); font-weight: 600; font-size: .78rem;
    cursor: pointer; padding: 6px 10px; border-radius: 6px;
}
.pwd-toggle:hover { background: var(--navy-50); }

/* ---------- Toggle switch ---------- */
.toggle {
    display: inline-flex; align-items: center; gap: 10px;
    border: 1px solid var(--line); border-radius: 999px; background: #eef0f4;
    padding: 4px 6px 4px 4px; cursor: pointer; font: inherit; transition: background .2s ease;
}
.toggle__thumb {
    width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16,34,74,.3);
    transition: transform .2s ease;
}
.toggle.is-on { background: var(--green-700); }
.toggle.is-on .toggle__thumb { transform: translateX(20px); }
.toggle__label { font-size: .76rem; font-weight: 700; color: var(--muted); padding-right: 6px; }
.toggle.is-on .toggle__label { color: #fff; }
.toggle[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Category inline edit ---------- */
.cat-edit { display: flex; flex-direction: column; gap: 6px; }
.cat-edit__line { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.input-inline--name { width: 180px; }
.input-inline--slug { width: 120px; }
.cat-edit__desc { flex: 1 1 260px; padding: .4em .6em; border: 1px solid #ccd3e2; border-radius: 6px; font: inherit; font-size: .84rem; }

/* ---------- Quick actions ---------- */
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.quick-action {
    display: inline-flex; align-items: center; gap: 6px;
    padding: .6em 1.2em; border-radius: var(--radius); border: 1px solid var(--line);
    background: #fff; color: var(--navy-800); font-weight: 600; font-size: .85rem;
    transition: all .18s ease;
}
.quick-action:hover { border-color: var(--navy-600); transform: translateY(-2px); }
.quick-action--red { background: var(--red-600); border-color: var(--red-600); color: #fff; }
.quick-action--red:hover { background: var(--red-600); color: #fff; opacity: .9; }
.quick-action--gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); border-color: var(--gold-600); color: #fff; }
.quick-action--gold:hover { color: #fff; opacity: .92; }

/* ---------- Breakdown ---------- */
.admin-col { display: flex; flex-direction: column; gap: 22px; }
.breakdown { padding: 10px 22px 20px; }
.breakdown__item { margin-bottom: 18px; }
.breakdown__head { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 6px; }
.breakdown__head span { color: var(--muted); }
.breakdown__bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: #eef0f4; gap: 2px; }
.breakdown__seg { height: 100%; min-width: 2px; }
.breakdown__legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: .76rem; color: var(--muted); }
.breakdown__legend span { display: inline-flex; align-items: center; gap: 5px; }
.breakdown__legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.breakdown__stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    border-top: 1px solid var(--line); padding-top: 16px;
}
.breakdown__stats div { text-align: center; }
.breakdown__stats strong { display: block; font-size: 1.2rem; color: var(--navy-900); }
.breakdown__stats span { font-size: .74rem; color: var(--muted); }

/* ---------- Post editor split ---------- */
.post-editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.post-editor__side { position: sticky; top: 88px; }
.preview {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; max-height: calc(100vh - 120px); display: flex; flex-direction: column;
}
.preview__head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--navy-50);
}
.preview__head h3 { font-size: .92rem; margin: 0; }
.preview__body { padding: 20px 22px; overflow-y: auto; font-size: .9rem; line-height: 1.65; color: var(--ink); }
.preview__title { font-size: 1.35rem; line-height: 1.3; margin: 0 0 8px; }
.preview__excerpt { color: var(--muted); font-style: italic; border-left: 3px solid var(--gold-500); padding-left: 12px; }
.preview__content { margin-top: 6px; }
.preview__content h2 { font-size: 1.1rem; margin: 1.1em 0 .4em; }
.preview__content h3 { font-size: .98rem; margin: 1em 0 .35em; }
.preview__content blockquote { border-left: 3px solid var(--navy-600); margin: 1em 0; padding: .3em 1em; color: var(--muted); background: var(--navy-50); }
.preview__content img { max-width: 100%; border-radius: 6px; }
.preview__content a { color: var(--navy-600); text-decoration: underline; }

/* ---------- Alert out ---------- */
.alert { transition: opacity .3s ease, transform .3s ease; }
.alert--out { opacity: 0; transform: translateY(-6px); }

/* ---------- RTE refinements ---------- */
.rte__sep { width: 1px; height: 20px; background: var(--line); align-self: center; }
.rte__toolbar button.is-on { background: var(--navy-800); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .admin__sidebar { transform: translateX(-100%); transition: transform .25s ease; }
    .admin__sidebar.is-open { transform: translateX(0); }
    .admin__main { margin-left: 0; }
    .admin__burger { display: block; }
    .admin__scrim { position: fixed; inset: 0; z-index: 25; border: 0; background: rgba(5, 20, 48, .46); cursor: pointer; }
    .admin__scrim.is-visible { display: block; }
    .admin-grid { grid-template-columns: 1fr; }
    .post-editor { grid-template-columns: 1fr; }
    .post-editor__side { position: static; }
    .preview { max-height: none; }
    .preview__body { max-height: 420px; }
    .password-layout { grid-template-columns: 1fr; }
    .password-help { max-width: 720px; }
}

@media (max-width: 720px) {
    .admin__content { padding: 18px; }
    .admin__topbar { min-height: 70px; padding: 10px 16px; }
    .admin__account-copy, .admin__account-chevron { display: none; }
    .admin__heading { font-size: 1.05rem; }
    .admin__crumbs { display: none; }
    .form__row { grid-template-columns: 1fr; }
    .form__group--grow { grid-column: span 1; }
    .stat-cards { grid-template-columns: 1fr 1fr; }
    .admin-toolbar { flex-direction: column; align-items: stretch; }
    .breakdown__stats { grid-template-columns: 1fr; }
    .menu-table { min-width: 0; }
    .menu-table thead { display: none; }
    .menu-table, .menu-table tbody, .menu-table tr, .menu-table td { display: block; width: 100%; }
    .menu-table tr { padding: 14px 12px; border-bottom: 1px solid var(--line); }
    .menu-table tbody tr:last-child { border-bottom: 0; }
    .menu-table td { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 0; border: 0; }
    .menu-table td::before { content: attr(data-label); color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
    .menu-table td[data-label="Aksi"] { display: flex; justify-content: flex-end; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
    .menu-table td[data-label="Aksi"]::before { display: none; }
    .menu-table .input-inline, .menu-table .input-inline--name { min-width: 0; width: 100%; }
    .menu-table .checkbox--compact { margin-left: 0; }
    .admin__nav-children { margin-left: 16px; }
    .menu-manager__toolbar { align-items: flex-start; }
    .menu-manager__title { font-size: 1.2rem; }
    .menu-tree { padding: 14px 12px 16px; }
    .menu-node { margin-left: calc(var(--menu-depth) * 12px); }
    .menu-node__summary { align-items: flex-start; flex-wrap: wrap; padding: 10px; }
    .menu-node__identity { min-width: calc(100% - 92px); }
    .menu-node__summary > .pill { order: 3; margin-left: 40px; }
    .menu-node__summary > .pill--warn { order: 3; margin-left: 0; }
    .menu-node__actions { order: 4; margin-left: auto; }
    .menu-node__editor { position: fixed; top: 50%; left: 50%; right: auto; width: calc(100vw - 28px); max-height: calc(100vh - 32px); overflow-y: auto; transform: translate(-50%, -50%); }
    .menu-editor__grid { grid-template-columns: 1fr; gap: 14px; }
    .menu-editor__grid .form__group,
    .menu-editor__grid .form__group:first-child,
    .menu-editor__grid .form__group:nth-child(2),
    .menu-editor__grid .form__group:nth-child(3),
    .menu-editor__grid .menu-editor__url,
    .menu-editor__grid .menu-editor__parent,
    .menu-editor__active { grid-column: auto; }
    .menu-node__children { padding-left: 10px; }
}

@media (max-width: 420px) {
    .admin__content { padding: 14px; }
    .admin__user-avatar { width: 34px; height: 34px; font-size: .9rem; }
    .admin__topbar { gap: 10px; }
    .admin__nav { padding-left: 10px; padding-right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .admin__sidebar, .admin__nav-link, .stat-card, .btn { transition: none; }
}

/* ---------- Shared admin component refinements ---------- */
.admin-panel { border-radius: 14px; box-shadow: 0 4px 18px -14px rgba(10, 33, 72, .45); }
.admin-panel__head { min-height: 66px; }
.admin-panel__head h2 { letter-spacing: -.01em; }
.admin-toolbar { margin-bottom: 26px; }
.admin-toolbar .btn, .form__actions .btn { min-height: 38px; }
.table-wrap { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.table-wrap .table { min-width: 680px; }
.empty-state { border-radius: 14px; box-shadow: 0 4px 18px -16px rgba(10, 33, 72, .4); }
.form__actions { align-items: center; }

@media (max-width: 720px) {
    .admin-panel__head { align-items: flex-start; flex-direction: column; padding: 16px 18px; }
    .admin-panel__head > .pill, .admin-panel__head > .btn { align-self: flex-start; }
    .admin-panel__head + .form--stacked { padding-left: 18px; padding-right: 18px; }
    .table-wrap { border-radius: 10px; }
    .table-wrap .table { min-width: 620px; }
    .form__actions { gap: 9px; }
    .form__actions .btn { flex: 1 1 auto; justify-content: center; }
}
