/* JPPM — Panel admin */
:root {
  --navy-950: #050f22; --navy-900: #0a1f44; --brand: #1d56a8; --sky: #4f8fe0; --sky-300: #9cc2f2; --sky-50: #f0f6fe; --sky-100: #dce9fb;
  --accent: #f3a83b; --ink: #0d1a2e; --body: #34435a; --muted: #6b7a90; --line: #e5eaf1; --bg: #f4f7fb;
  --success: #12a150; --danger: #d93a3a; --warn: #e0921f;
  --radius: 14px; --shadow: 0 1px 2px rgba(10, 31, 68, .05), 0 4px 14px -6px rgba(10, 31, 68, .08);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.55; color: var(--body); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--navy-900); }
h1, h2, h3 { color: var(--ink); margin: 0 0 .6em; line-height: 1.25; letter-spacing: -.01em; }
h3 { font-size: 1rem; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { width: 18px; height: 18px; flex: none; }
.ic.xs { width: 14px; height: 14px; vertical-align: -2px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.strong { font-weight: 600; color: var(--ink); }
.nowrap { white-space: nowrap; }
.r { text-align: right; }
.intro { margin: 0; color: var(--muted); max-width: 680px; flex: 1; }

/* Sidebar */
.sidebar { position: fixed; inset: 0 auto 0 0; width: 252px; z-index: 50; display: flex; flex-direction: column; background: var(--navy-950); color: rgba(220, 233, 251, .7); transition: transform .3s; }
.sb-brand { display: flex; gap: 12px; align-items: center; padding: 20px 20px 18px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.sb-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.sb-brand strong { font-size: 1.15rem; letter-spacing: .06em; }
.sb-brand small { color: var(--sky-300); font-size: .75rem; }
.sb-nav { flex: 1; overflow-y: auto; padding: 8px 12px 20px; }
.sb-label { margin: 18px 10px 6px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: rgba(220, 233, 251, .35); }
.sb-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: rgba(220, 233, 251, .72); font-weight: 500; transition: background .15s, color .15s; }
.sb-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sb-nav a.active { background: linear-gradient(90deg, rgba(79, 143, 224, .25), rgba(79, 143, 224, .08)); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.sb-nav a.active .ic { color: var(--accent); }
.badge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--navy-950); font-size: .72rem; text-align: center; }
.sb-site { display: flex; gap: 10px; align-items: center; margin: 12px; padding: 11px 14px; border-radius: 10px; background: rgba(255, 255, 255, .06); color: #fff; font-weight: 600; }
.sb-site:hover { background: var(--brand); color: #fff; }

.main { margin-left: 252px; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; height: 66px; padding: 0 28px; background: rgba(244, 247, 251, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 1.2rem; margin: 0; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.sb-toggle { display: none; }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 600; color: var(--ink); }
.user-btn .avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--sky)); color: #fff; font-size: .78rem; }
.user-drop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; padding: 6px; background: #fff; border-radius: 12px; box-shadow: 0 20px 40px -12px rgba(10, 31, 68, .25), 0 0 0 1px var(--line); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s; }
.user-menu.open .user-drop { opacity: 1; visibility: visible; transform: none; }
.user-drop a, .user-drop button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 12px; border: 0; background: none; border-radius: 8px; color: var(--ink); cursor: pointer; text-align: left; }
.user-drop a:hover, .user-drop button:hover { background: var(--bg); }
.content { padding: 26px 28px 60px; max-width: 1400px; }

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all .15s; }
.btn-sm { padding: 7px 12px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--navy-900); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(.92); color: #fff; }
.btn-light { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-light:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: rgba(217, 58, 58, .3); }
.btn-danger-ghost:hover { background: var(--danger); color: #fff; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--sky-50); color: var(--brand); }
.icon-btn.danger:hover { background: #fdeaea; color: var(--danger); }

/* Kartu */
.card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.card-head h3 { margin: 0; }
.card-head a { font-size: .85rem; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-side { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.grid-side.reverse { grid-template-columns: 1fr 340px; }
.grid-2 > *, .grid-3 > *, .grid-side > *, .editor-grid > * { min-width: 0; }
.narrow-card { max-width: 820px; }

.welcome { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 26px 28px; margin-bottom: 20px; border-radius: 18px; color: rgba(220, 233, 251, .8); background: radial-gradient(500px 200px at 100% 0, rgba(79, 143, 224, .45), transparent), linear-gradient(120deg, var(--navy-950), var(--navy-900)); }
.welcome h2 { color: #fff; font-size: 1.4rem; margin-bottom: 4px; }
.welcome p { margin: 0; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.quick .btn-light { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fff; }
.quick .btn-light:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi { display: flex; flex-direction: column; padding: 18px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); color: var(--body); transition: transform .2s; }
.kpi:hover { transform: translateY(-2px); color: var(--body); }
.kpi-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--sky-50); color: var(--brand); margin-bottom: 12px; }
.kpi-ic.warn { background: #fff4e3; color: var(--warn); }
.kpi b { font-size: 1.7rem; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.kpi small { color: var(--muted); margin-top: 6px; font-size: .8rem; }

.bars { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 10px; }
.bar { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bar i { display: block; width: 100%; height: max(3px, var(--h)); border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--sky), var(--brand)); transition: filter .15s; }
.bar:hover i { filter: brightness(1.2); }
.bars-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: .75rem; color: var(--muted); }
.rank-list { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank-list li { counter-increment: r; display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); }
.rank-list li:first-child { border-top: 0; }
.rank-list li::before { content: counter(r); font-weight: 800; color: var(--sky-300); width: 16px; }
.rank-list li > :first-child { flex: 1; color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list li > :last-child { color: var(--muted); font-size: .85rem; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { border-top: 1px solid var(--line); }
.feed li:first-child { border-top: 0; }
.feed a { display: flex; flex-direction: column; padding: 9px 0; }
.feed strong { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed small { color: var(--muted); }
.feed .unread strong::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 2px; }
.empty-sm { color: var(--muted); padding: 20px; text-align: center; margin: 0; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state > .ic { width: 40px; height: 40px; color: var(--sky-300); margin: 0 auto 10px; }

/* Tabel */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: 12px 16px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: #fafbfd; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafcff; }
.table tr.unread td { background: #fffbf3; }
.table .actions { white-space: nowrap; text-align: right; width: 1%; }
.table .actions form { display: inline; }
.card:not(.flush) .table td { padding-left: 0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.thumb { display: grid; place-items: center; width: 68px; height: 46px; border-radius: 8px; overflow: hidden; background: var(--sky-50); color: var(--sky-300); flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.sm { width: 34px; height: 34px; border-radius: 50%; }
.thumb.lg { width: 120px; height: 84px; border-radius: 10px; }
.row-title { display: inline-flex; align-items: center; gap: 12px; }
.row-title .pf-icon { width: 34px; height: 34px; border-radius: 9px; }
.row-title .pf-icon .ic { width: 17px; height: 17px; }
.handle { cursor: grab; color: var(--muted); letter-spacing: -3px; user-select: none; text-align: center; }
tr.dragging { opacity: .5; background: var(--sky-50); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: .76rem; font-weight: 600; }
.pill-publish, .pill-approved { background: #e7f6ee; color: var(--success); }
.pill-draft, .pill-pending { background: #fff4e3; color: #b26b05; }
.pill-trash, .pill-rejected { background: #fdeaea; color: var(--danger); }

.pf-icon { --pf: var(--brand); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; color: #fff; background: var(--pf); background: linear-gradient(135deg, var(--pf), color-mix(in srgb, var(--pf) 55%, #fff)); }
.pf-icon img { width: 100%; height: 100%; object-fit: cover; background: #fff; }

/* Toolbar */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.seg a { padding: 7px 14px; border-radius: 9px; color: var(--body); font-weight: 600; font-size: .88rem; }
.seg a small { color: var(--muted); font-weight: 500; }
.seg a.active { background: var(--navy-900); color: #fff; }
.seg a.active small { color: var(--sky-300); }
.search { display: flex; gap: 8px; margin-left: auto; }
.search input, .search select, .input-sm { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; min-width: 0; }
.search input { width: 240px; }
.input-sm { width: 100%; margin-top: 10px; }
.pager { display: flex; gap: 4px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.pager a { min-width: 36px; padding: 7px 10px; border-radius: 8px; background: #fff; text-align: center; color: var(--ink); box-shadow: var(--shadow); }
.pager a.active { background: var(--brand); color: #fff; }

/* Alert */
.alert { display: flex; gap: 10px; align-items: center; margin: 18px 28px 0; padding: 12px 16px; border-radius: 12px; font-weight: 500; }
.alert-success { background: #e7f6ee; color: #0b6b36; }
.alert-error { background: #fdeaea; color: #a32424; }
.login-card .alert { margin: 0 0 16px; }

/* Formulir */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span { font-weight: 600; font-size: .85rem; color: var(--ink); }
.field input:not([type=checkbox]):not([type=radio]):not([type=color]), .field select, .field textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: 0; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus, .input-sm:focus, .search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 86, 168, .12); outline: 0; }
.field textarea { resize: vertical; }
.help { color: var(--muted); font-size: .8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; align-items: start; }
.form-grid .wide { grid-column: 1 / -1; }
.form-card { max-width: 980px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 18px; margin-top: 6px; border-top: 1px solid var(--line); }
.form-actions .push { margin-left: auto; }
.check { display: flex; gap: 8px; align-items: center; cursor: pointer; padding: 4px 0; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }
.check-list { display: grid; gap: 2px; max-height: 260px; overflow-y: auto; }
.switch { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; cursor: pointer; font-weight: 600; color: var(--ink); font-size: .9rem; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #cfd8e5; transition: background .2s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--success); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(29, 86, 168, .25); }
.color-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.color-row input[type=color] { width: 46px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.icon-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.icon-picker label { cursor: pointer; }
.icon-picker input { position: absolute; opacity: 0; }
.icon-picker span { display: grid; place-items: center; height: 46px; border-radius: 10px; border: 1px solid var(--line); color: var(--body); transition: all .15s; }
.icon-picker span:hover { border-color: var(--brand); color: var(--brand); }
.icon-picker input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.icon-picker .ic { width: 20px; height: 20px; }
.img-drop { position: relative; display: grid; place-items: center; min-height: 160px; border-radius: 12px; border: 2px dashed var(--sky-100); background: var(--sky-50); overflow: hidden; cursor: pointer; color: var(--brand); font-weight: 600; }
.img-drop.small { min-height: 120px; max-width: 260px; }
.img-drop img { width: 100%; height: 100%; max-height: 220px; object-fit: cover; }
.img-drop span { display: flex; gap: 8px; align-items: center; }
.img-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.stack { display: grid; gap: 8px; }
.stack .field { margin-bottom: 6px; }

/* Editor */
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--muted); font-weight: 600; font-size: .88rem; }
.title-input { width: 100%; border: 0; background: transparent; font-size: 1.9rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; padding: 4px 0; outline: 0; }
.slug-row { display: flex; align-items: center; margin: 4px 0 16px; color: var(--muted); font-size: .85rem; }
.slug-row input { flex: 1; border: 0; border-bottom: 1px dashed var(--line); background: transparent; padding: 3px 2px; color: var(--brand); outline: 0; min-width: 0; }
.richtext { width: 100%; min-height: 520px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.tox-tinymce { border-radius: 12px !important; border-color: var(--line) !important; margin-bottom: 16px; }
.editor-side .card { margin-bottom: 16px; }
.editor-side { position: sticky; top: 86px; }
.meta-note { margin: 10px 0 0; color: var(--muted); font-size: .8rem; text-align: center; }
.danger-zone { background: transparent; box-shadow: none; padding: 0; }

/* Kiriman */
.sub-list { display: grid; gap: 12px; }
.sub-card { display: flex; gap: 18px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); color: var(--body); transition: transform .15s; }
.sub-card:hover { transform: translateY(-2px); color: var(--body); }
.sub-body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sub-body strong { color: var(--ink); font-size: 1rem; }
.sub-body small { color: var(--muted); }
.sub-meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.doc-title { font-size: 1.5rem; margin: 12px 0 14px; }
.doc-img { border-radius: 12px; margin-bottom: 18px; max-height: 420px; object-fit: cover; width: 100%; }
.doc { font-size: 1rem; line-height: 1.75; color: var(--body); margin-bottom: 18px; }
.dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; font-size: .9rem; }
.dl.wide { grid-template-columns: 150px 1fr; margin-bottom: 20px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; color: var(--ink); font-weight: 500; word-break: break-word; }

/* Media */
.upload-zone { position: relative; display: flex; align-items: center; gap: 18px; padding: 26px; border: 2px dashed var(--sky-100); background: var(--sky-50); box-shadow: none; cursor: pointer; transition: border-color .15s; }
.upload-zone:hover, .upload-zone.drag { border-color: var(--brand); }
.upload-zone > .ic { width: 34px; height: 34px; color: var(--brand); }
.upload-zone strong { display: block; color: var(--ink); }
.upload-zone small { color: var(--muted); }
.upload-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 16px 0; }
.media-item { margin: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.media-item img, .file-ic { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sky-50); }
.file-ic { display: grid; place-items: center; color: var(--sky-300); }
.media-item figcaption { padding: 8px 6px 6px 12px; font-size: .78rem; display: flex; align-items: center; gap: 4px; }
.media-item figcaption > span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.media-actions { display: flex; }
.media-actions form { display: inline; }
.media-actions .icon-btn { width: 28px; height: 28px; }
.media-actions .ic { width: 15px; height: 15px; }

/* Pengaturan */
.settings { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; align-items: start; max-width: 1100px; }
.tabs-v { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 86px; }
.tabs-v a { padding: 10px 14px; border-radius: 10px; color: var(--body); font-weight: 600; }
.tabs-v a:hover { background: #fff; }
.tabs-v a.active { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.sticky-save { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; }
.sticky-save .btn { box-shadow: 0 10px 24px -8px rgba(29, 86, 168, .6); }

/* Pemilih tema */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.theme-card { position: relative; display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; }
.theme-card:hover { border-color: var(--sky-300); }
.theme-card input { position: absolute; opacity: 0; }
.theme-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 86, 168, .15); }
.theme-mock { display: flex; flex-direction: column; height: 150px; }
.tm-head { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px 14px; height: 62px; position: relative; }
.tm-head i, .tm-body i { display: block; height: 7px; border-radius: 4px; }
.tm-head b { position: absolute; right: 14px; top: 22px; width: 38px; height: 16px; border-radius: 999px; }
.tm-body { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 14px; }
.tm-body > span { border: 1px solid; border-radius: 6px; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.tm-body i { height: 5px; }
.tm-foot { height: 14px; }
.theme-info { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.theme-info strong { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.theme-info em { font-style: normal; }
.theme-info small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.swatches { display: flex; gap: 4px; margin-top: 6px; }
.swatches i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.preview-link { margin-top: 6px; font-size: .82rem; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }

/* Login */
.login-body { min-height: 100vh; background: var(--navy-950); }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 60px 8vw; color: rgba(220, 233, 251, .75); background: radial-gradient(600px 400px at 20% 20%, rgba(79, 143, 224, .35), transparent), radial-gradient(400px 300px at 90% 90%, rgba(243, 168, 59, .15), transparent), linear-gradient(160deg, var(--navy-950), var(--navy-900)); overflow: hidden; }
.login-art h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 30px 0 16px; }
.login-art em { font-family: "Fraunces", serif; font-weight: 400; font-style: italic; color: var(--sky-300); }
.login-art p { max-width: 420px; font-size: 1.05rem; }
.login-card { align-self: center; justify-self: center; width: min(420px, calc(100% - 40px)); padding: 40px; border-radius: 22px; background: #fff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.login-logo { width: 110px; margin: 0 auto 18px; }
.login-card h2 { text-align: center; font-size: 1.25rem; margin-bottom: 22px; }
.login-card .btn { padding: 12px; margin-top: 6px; }
.back-link { display: block; text-align: center; margin-top: 18px; color: var(--muted); font-size: .88rem; }

/* Trafik & keamanan */
.kpi-ic.danger { background: #fdeaea; color: var(--danger); }
.kpi-ic.live { background: #e7f6ee; color: var(--success); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--success); margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(18, 161, 80, .5); animation: livePulse 2s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px rgba(18, 161, 80, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 161, 80, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.bars.danger .bar i { background: linear-gradient(180deg, #e67a7a, var(--danger)); }
.meter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.meter-list.scroll { max-height: 320px; overflow-y: auto; padding-right: 6px; }
.meter-list li { display: grid; grid-template-columns: 26px 1fr auto; gap: 2px 10px; align-items: center; }
.meter-list .ml-label { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter-list .ml-val { color: var(--ink); font-weight: 600; font-size: .88rem; }
.meter-list .ml-val small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.meter { grid-column: 2 / -1; height: 6px; border-radius: 999px; background: var(--sky-50); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.flag { font-size: 1.15rem; line-height: 1; display: inline-grid; place-items: center; color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem; }
code, .req { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; background: var(--bg); padding: 1px 6px; border-radius: 6px; color: var(--ink); word-break: break-all; }
.table td.cut { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table td.cut.wide { max-width: 460px; white-space: normal; }
.card-head.pad { padding: 18px 22px 0; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--body); font-size: .8rem; }
.chip b { color: var(--ink); }
.sev { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.sev-1 { background: var(--bg); color: var(--muted); }
.sev-2 { background: #fff4e3; color: #9a5a00; }
.sev-3 { background: #fdeaea; color: #a32424; }
.meter-list .sev { min-width: 22px; padding: 2px 0; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.inline-form input, .inline-form select, .clear-form select { padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; min-width: 0; }
.card-head .inline-form { margin: 0; }
.clear-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; margin-top: 14px; }
.monitor-card { display: block; color: var(--body); transition: transform .2s; }
.monitor-card:hover { transform: translateY(-2px); color: var(--body); }
.monitor-card h3 { display: flex; align-items: center; gap: 8px; }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini-stats div { display: flex; flex-direction: column; padding: 12px; border-radius: 12px; background: var(--bg); }
.mini-stats b { font-size: 1.35rem; color: var(--ink); line-height: 1.1; }
.mini-stats b.is-danger { color: var(--danger); }
.mini-stats small { color: var(--muted); font-size: .78rem; }
.monitor-row .card { margin-bottom: 0; }
.monitor-row { margin-bottom: 20px; grid-template-columns: 1fr 1fr; }

@media (max-width: 1200px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); }
  .sb-open .sidebar { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .4); }
  .main { margin-left: 0; }
  .sb-toggle { display: inline-grid; }
  .grid-2, .grid-3, .grid-side, .grid-side.reverse, .editor-grid, .settings, .login-wrap { grid-template-columns: 1fr; }
  .editor-side, .tabs-v { position: static; }
  .tabs-v { flex-direction: row; overflow-x: auto; }
  .login-art { display: none; }
  .search { margin-left: 0; width: 100%; }
  .search input { flex: 1; width: auto; }
}
@media (max-width: 640px) {
  .content { padding: 18px 14px 50px; }
  .topbar { padding: 0 14px; }
  .alert { margin: 14px 14px 0; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .mini-stats { grid-template-columns: 1fr 1fr; }
  .form-grid, .form-row { grid-template-columns: 1fr; }
  .hide-sm { display: none !important; }
  .card.flush { overflow-x: auto; }
  .table { min-width: 620px; }
  .sub-card { flex-direction: column; }
  .sub-meta { flex-direction: row; align-items: flex-start; }
}

/* Pengalih bahasa ID / EN */
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .04em; }
.lang-switch a { padding: 4px 9px; border-radius: 999px; color: var(--muted); line-height: 1.2; }
.lang-switch a:hover { color: var(--brand); }
.lang-switch a.active { background: var(--navy-900); color: #fff; }

/* Terjemahan */
.seg-wrap { flex-wrap: wrap; width: fit-content; max-width: 100%; }
.tr-bulk { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.push-right { margin-left: auto; }
.tr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.tr-cols > * { min-width: 0; }
.tr-lang { margin: 0 0 6px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tr-source { padding: 12px 14px; border-radius: 10px; background: var(--bg); color: var(--body); max-height: 520px; overflow-y: auto; font-size: .92rem; }
.tr-source.doc img { max-width: 100%; height: auto; border-radius: 8px; }
.tr-input { width: 100%; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: 0; resize: vertical; }
.tr-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 86, 168, .12); }
@media (max-width: 960px) { .tr-cols { grid-template-columns: 1fr; } }
