:root {
  --brand: #4f46e5; --brand-dark: #4338ca; --brand-soft: #eef2ff;
  --bg: #f4f6fb; --surface: #fff; --surface-2: #f8fafc;
  --sidebar: #0f172a; --sidebar-2: #1e293b; --sidebar-text: #cbd5e1; --sidebar-muted: #64748b;
  --text: #1e293b; --text-2: #475569; --muted: #94a3b8; --border: #e2e8f0; --border-strong: #cbd5e1;
  --green: #16a34a; --green-soft: #dcfce7; --amber: #d97706; --amber-soft: #fef3c7;
  --red: #dc2626; --red-soft: #fee2e2; --blue: #2563eb; --blue-soft: #dbeafe; --violet: #7c3aed;
  --radius: 12px; --radius-sm: 8px; --shadow-sm: 0 1px 2px rgba(15,23,42,.06); --shadow: 0 4px 16px rgba(15,23,42,.08);
  --sidebar-w: 240px; --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); font-size: 14px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
.muted { color: var(--muted); } .mono { font-family: var(--mono); font-size: 12.5px; }
.small { font-size: 12.5px; } .strong { font-weight: 600; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mt-16 { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 10px; } .grow { flex: 1; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grid { display: grid; gap: 16px; } .grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.req { color: var(--red); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 15px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: #fff; color: var(--text-2); font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; } .btn-primary:hover { background: var(--brand-dark); }
.btn-danger { color: var(--red); border-color: #fecaca; } .btn-danger:hover { background: var(--red-soft); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; } .btn-block { width: 100%; } .btn-lg { padding: 12px 22px; font-size: 15px; }

/* Badges */
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; background: #f1f5f9; color: var(--text-2); }
.badge-green { background: var(--green-soft); color: #15803d; } .badge-red { background: var(--red-soft); color: var(--red); }
.badge-amber { background: var(--amber-soft); color: #b45309; } .badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-gray { background: #f1f5f9; color: var(--text-2); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 18px 20px; }
.card-head { padding: 15px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h3 { font-size: 15px; } .card-body { padding: 18px 20px; }

/* Stats */
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.stat-ico { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-weight: 800; font-size: 18px; }
.stat-val { font-size: 27px; font-weight: 750; letter-spacing: -.02em; } .stat-label { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.bg-brand { background: var(--brand-soft); color: var(--brand); } .bg-green { background: var(--green-soft); color: var(--green); }
.bg-amber { background: var(--amber-soft); color: var(--amber); } .bg-violet { background: #ede9fe; color: var(--violet); }

/* Tables */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th { text-align: left; padding: 11px 16px; color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2); }
table.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl tbody tr:hover { background: var(--surface-2); }
table.tbl td.actions { text-align: right; white-space: nowrap; }
.empty-cell { text-align: center; color: var(--muted); padding: 28px !important; }

/* Forms */
label.fld { display: block; margin-bottom: 16px; }
label.fld > .lbl { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--text-2); }
label.fld .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; display: block; }
.input, .select, .textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-family: inherit; font-size: 13.5px; color: var(--text); background: #fff; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.13); }
.textarea { resize: vertical; min-height: 74px; line-height: 1.55; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 34px; cursor: pointer; }
.select[multiple] { background-image: none; padding-right: 12px; }
select.select option { color: var(--text); }
a.btn { text-decoration: none; }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; cursor: pointer; }
.sr-label { font-weight: 600; font-size: 13px; }
.switch input { width: 18px; height: 18px; accent-color: var(--brand); }

/* Alerts */
.alert { display: block; padding: 13px 15px; border-radius: var(--radius-sm); font-size: 13px; line-height: 1.5; border: 1px solid; margin-bottom: 16px; }
.alert-info { background: var(--blue-soft); border-color: #bfdbfe; color: #1e40af; }
.alert-success { background: var(--green-soft); border-color: #bbf7d0; color: #166534; }
.alert-warn { background: var(--amber-soft); border-color: #fde68a; color: #92400e; }
.alert-danger { background: var(--red-soft); border-color: #fecaca; color: #991b1b; }

/* Log lines */
.log-line { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; align-items: baseline; }
.log-line:last-child { border-bottom: none; } .log-msg { color: var(--text-2); }

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(1200px 600px at 15% 10%, #312e81 0%, transparent 55%), radial-gradient(900px 500px at 90% 90%, #0e7490 0%, transparent 50%), var(--sidebar); }
.login-card { background: #fff; border-radius: 20px; width: 100%; max-width: 400px; padding: 36px 32px; box-shadow: 0 16px 48px rgba(15,23,42,.18); }
.login-card h1 { font-size: 20px; } .login-card .muted { font-size: 13.5px; }
.turnstile-note { font-size: 11.5px; color: var(--muted); text-align: center; margin-bottom: 16px; padding: 9px; background: var(--surface-2); border-radius: var(--radius-sm); }
.error-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.error-code { font-size: 60px; font-weight: 800; color: var(--brand); }

/* Shell */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: var(--sidebar); color: var(--sidebar-text); position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 20px 18px; }
.brand .mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--brand), #0ea5e9); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.brand .name { color: #fff; font-weight: 750; } .brand .sub { font-size: 11px; color: var(--sidebar-muted); }
.sidebar nav { flex: 1; overflow-y: auto; padding: 6px 12px 18px; }
.nav-section { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--sidebar-muted); padding: 16px 12px 7px; font-weight: 700; }
.nav-item { display: block; padding: 10px 12px; border-radius: 9px; color: var(--sidebar-text); font-size: 13.5px; font-weight: 550; margin-bottom: 2px; }
.nav-item:hover { background: var(--sidebar-2); color: #fff; text-decoration: none; }
.nav-item.active { background: var(--brand); color: #fff; }
.side-foot { padding: 14px 16px; border-top: 1px solid #1e293b; display: flex; align-items: center; gap: 10px; }
.side-foot .avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #0ea5e9); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.side-foot .uname { color: #fff; font-weight: 600; font-size: 13px; } .side-foot .urole { color: var(--sidebar-muted); font-size: 11px; }
.side-foot .logout { background: #1e293b; border: 1px solid #334155; color: #cbd5e1; border-radius: 8px; padding: 6px 10px; cursor: pointer; font-family: inherit; font-size: 12px; }
.main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 60px; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 14px; padding: 0 24px; position: sticky; top: 0; z-index: 40; }
.crumb { font-size: 13px; color: var(--muted); } .crumb b { color: var(--text); }
.env-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--brand); background: var(--brand-soft); padding: 4px 9px; border-radius: 7px; }
.content { padding: 26px 24px 60px; max-width: 1280px; width: 100%; }
.page-head { margin-bottom: 22px; } .page-head h1 { font-size: 22px; } .page-head p { margin: 5px 0 0; color: var(--muted); font-size: 13.5px; }

/* Toast */
#toast { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--sidebar); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: 13px; max-width: 360px; animation: pop .2s ease; }
.toast.err { background: #7f1d1d; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid[style] { grid-template-columns: 1fr !important; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow); }
  .shell.nav-open .sidebar { transform: none; }
  .main { margin-left: 0; }
  .burger { display: inline-flex; }
  .shell.nav-open .side-backdrop { display: block; }
  .topbar { padding: 0 14px; }
  .content { padding: 18px 16px 60px; }
  .page-head { flex-wrap: wrap; gap: 10px; }
  .tabs { overflow-x: auto; }
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .content { padding: 16px 12px 60px; }
  .card-pad, .card-body { padding-left: 14px; padding-right: 14px; }
  .stat-val { font-size: 23px; }
}

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab { padding: 10px 15px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--text-2); text-decoration: none; }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }

/* AI panel */
.ai-head { background: linear-gradient(135deg, #4f46e5, #7c3aed); border: none; }
.ai-head h3 { color: #fff; }
.ai-output { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; min-height: 140px; font-size: 13px; line-height: 1.6; color: var(--text-2); white-space: pre-wrap; max-height: 340px; overflow: auto; }
.ai-output.streaming::after { content: "▌"; color: var(--brand); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Media grid */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.media-item { overflow: hidden; }
.media-thumb { position: relative; height: 140px; background: linear-gradient(135deg, #e0e7ff, #cffafe); display: flex; align-items: center; justify-content: center; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-badge { position: absolute; top: 8px; right: 8px; }
.media-meta { padding: 10px 12px; }

/* Misc */
.strong { font-weight: 600; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Layout helpers */
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }

/* Category checklist */
.checkbox-list { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; max-height: 190px; overflow: auto; padding: 8px 10px; }
.checkbox-list label { display: flex; align-items: center; gap: 8px; padding: 5px 2px; font-size: 13px; cursor: pointer; }
.checkbox-list input { accent-color: var(--brand); }
.hint-inline { font-size: 11.5px; color: var(--muted); }

@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Spinner & status proses */
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border-strong); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.job-status { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.job-status.ok { color: var(--green); }
.job-status.err { color: var(--red); }
tr.row-busy { background: var(--brand-soft); }
tr.row-done { background: var(--green-soft); }
button.busy { opacity: .7; }

/* Plugin search results */
.plugin-row { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--border); }
.plugin-row:last-child { border-bottom: none; }
.plugin-info { min-width: 0; }
.plugin-name { font-weight: 650; font-size: 14px; }
.plugin-action { flex: none; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* Site picker */
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.site-card { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; text-decoration: none; color: inherit; transition: .15s; }
.site-card:hover { border-color: var(--brand); box-shadow: var(--shadow); text-decoration: none; transform: translateY(-1px); }
.site-avatar { position: relative; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, #e0e7ff, #cffafe); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.site-avatar.sm { width: 38px; height: 38px; border-radius: 10px; }
.site-avatar img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.site-avatar b { display: none; color: var(--brand); font-size: 18px; font-weight: 800; }
.site-avatar.fallback b { display: flex; align-items: center; justify-content: center; }
.site-meta { min-width: 0; }
.site-name { font-weight: 650; font-size: 14px; }
.ico { width: 20px; height: 20px; }
.stat .stat-ico .ico { width: 22px; height: 22px; }

/* Composer featured image */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.feat-thumb { padding: 0; border: 2px solid var(--border); border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; aspect-ratio: 1/1; }
.feat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feat-thumb.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.2); }
.feat-preview { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }

/* Icon button */
.icon-btn { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-strong); background: #fff; color: var(--text-2); border-radius: 8px; cursor: pointer; font-size: 15px; line-height: 1; transition: .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--brand); }
.icon-btn.light { background: rgba(255,255,255,.2); border-color: transparent; color: #fff; }
.icon-btn.light:hover { background: rgba(255,255,255,.35); color: #fff; }

/* Modal (AI perbesar) */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(2px); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-panel { background: #fff; border-radius: 16px; width: 100%; max-width: 1120px; height: min(90vh, 840px); display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(15,23,42,.35); overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.modal-head h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.modal-body { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 14px 18px; gap: 12px; }
.modal-editor-wrap { flex: 1; min-height: 0; }
.modal-editor-wrap .tox-tinymce { height: 100% !important; border-radius: 8px; }
.modal-foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-2); }
.ai-panel .card-head .icon-btn.light { width: 30px; height: 30px; }

/* Dropzone upload */
.dropzone { position: relative; border: 2px dashed var(--border-strong); border-radius: 12px; padding: 22px 18px; text-align: center; background: var(--surface-2); cursor: pointer; transition: .15s; }
.dropzone:hover, .dropzone.dragover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone .dz-icon { width: 34px; height: 34px; color: var(--brand); margin: 0 auto; }
.dropzone .dz-title { font-weight: 600; margin-top: 6px; }
.dropzone .dz-link { color: var(--brand); text-decoration: underline; }
.dropzone .small { margin-top: 2px; }
.dropzone.has-file { border-style: solid; border-color: var(--brand); }
.dropzone .dz-preview { max-height: 130px; max-width: 100%; border-radius: 8px; margin: 10px auto 0; display: block; }
.dropzone .dz-filename { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }

/* Site avatar sizes */
.site-avatar.xs { width: 30px; height: 30px; border-radius: 8px; }
.site-avatar.xs b { font-size: 13px; }
.site-avatar.lg { width: 64px; height: 64px; border-radius: 16px; }
.site-avatar.lg b { font-size: 26px; }

/* Shortcut grid (profil situs) */
.shortcut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.shortcut { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); text-decoration: none; font-weight: 600; font-size: 13.5px; transition: .15s; }
.shortcut:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); color: var(--brand); text-decoration: none; }
.shortcut .ico { width: 18px; height: 18px; color: var(--brand); }

/* Charts */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bar-label { width: 110px; flex: none; font-size: 12.5px; color: var(--text-2); }
.bar-track { flex: 1; height: 10px; background: var(--gray-soft); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; }
.bar-fill.bg-brand { background: var(--brand); }
.bar-fill.bg-green { background: var(--green); }
.bar-fill.bg-amber { background: var(--amber); }
.bar-fill.bg-red { background: var(--red); }
.bar-val { width: 36px; text-align: right; font-size: 12.5px; font-weight: 600; }
.spark { display: flex; align-items: flex-end; gap: 8px; height: 130px; padding-top: 8px; }
.spark-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.spark-bar { width: 70%; background: linear-gradient(180deg, var(--brand-2), var(--brand)); border-radius: 6px 6px 0 0; min-height: 4px; }
.spark-x { font-size: 11px; color: var(--muted); }
.view-toggle .btn { border-radius: 0; }
.view-toggle .btn:first-child { border-radius: 8px 0 0 8px; }
.view-toggle .btn:last-child { border-radius: 0 8px 8px 0; }

/* Mobile nav */
.burger { display: none; font-size: 18px; }
.side-backdrop { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 55; }
.sidebar { z-index: 60; }

@media (max-width: 860px) {
  .sidebar { z-index: 60; }
  .burger { display: inline-flex; }
}

/* Grid kartu situs: aksi tombol agar tidak keluar kotak */
.site-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.site-card { align-items: flex-start; gap: 14px; padding: 16px; }
.site-card .site-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.site-card .site-name { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; color: var(--text); display: block; }
.site-card .site-name:hover { color: var(--brand); }
.site-card .site-host { font-size: 12px; color: var(--muted); }
.site-card .site-status { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.site-card .site-status .badge { padding: 2px 7px; font-size: 11px; }
.site-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.site-actions .icon-btn { width: 30px; height: 30px; }
.site-actions .icon-btn .ico { width: 15px; height: 15px; }
.no-ul { text-decoration: none; }
.no-ul:hover { text-decoration: underline; }
.icon-link { display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); text-decoration: none; transition: .15s; }
.icon-link:hover { color: var(--brand); }
.icon-link .ico { width: 14px; height: 14px; }
.icon-link.wp { gap: 6px; font-size: 13px; color: var(--text-1); }
.icon-link.wp .ico { width: 18px; height: 18px; color: #21759b; }
.btn-wp { display: inline-flex; align-items: center; gap: 7px; background: #21759b; border-color: #21759b; color: #fff; }
.btn-wp:hover { background: #1a5d7a; border-color: #1a5d7a; color: #fff; }
.btn-wp .ico { width: 17px; height: 17px; color: #fff; }

/* IP whitelist header control */
.ipw-wrap { position: relative; }
.ipw-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 9px; background: #fff; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.ipw-btn:hover { background: var(--surface-2); }
.ipw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.ipw-dot.on { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.ipw-dot.off { background: var(--muted); }
.ipw-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 290px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 14px; display: none; z-index: 80; }
.ipw-pop.show { display: block; }
@media (max-width: 640px) { .ipw-btn #ipw-label { display: none; } }

/* Animasi hapus baris (rencana) */
tr.row-removing { opacity: 0; transform: translateX(24px); transition: opacity .35s ease, transform .35s ease; }
