:root {
  --primary: #374151;
  --primary-dark: #1f2937;
  --primary-soft: #eceef1;
  --sidebar-bg: #f3f4f6;
  --sidebar-text: #4b5563;
  --sidebar-active: #e5e7eb;
  --bg: #f8f9fa;
  --text: #3a4150;
  --muted: #677080;
  --border: #e6e9ef;
  --radius: 12px;
  --sidebar-w: 240px;
  --brand-h: 60px;
  --bs-body-font-family: 'Quicksand', system-ui, sans-serif;
  --bs-primary: var(--primary);
  --bs-primary-rgb: 55, 65, 81;
  --bs-link-color: #1f2937;
  --bs-link-color-rgb: 31, 41, 55;
  --bs-link-hover-color: #000;
}

html { font-size: 14px; }
body { font-family: 'Quicksand', system-ui, sans-serif; color: var(--text); font-weight: 500; background: var(--bg); line-height: 1.45; }
a { text-decoration: none; }
.fw-semibold, b, strong { font-weight: 700; }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100vh; background: linear-gradient(to bottom, #fff var(--brand-h), var(--primary) var(--brand-h)); }
.sidebar {
  width: var(--sidebar-w); position: fixed; inset: 0 auto 0 0; z-index: 1040;
  display: flex; flex-direction: column; background: var(--primary); transition: transform .25s ease;
}
.sidebar-brand {
  height: var(--brand-h); flex: 0 0 var(--brand-h); background: #fff;
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 20px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 700; font-size: 17px; }
.brand img { max-height: 36px; max-width: 150px; }
/* Nama situs panjang: satu baris dengan elipsis (nama lengkap tetap ada di tooltip). */
.brand { min-width: 0; }
.brand-text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sidebar-brand .brand-text { max-width: 165px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 15px; }
.brand-light { color: #fff; }
.brand-light .brand-mark { background: #fff; color: var(--primary); }
.btn-icon { border: 0; background: transparent; font-size: 21px; color: #444; line-height: 1; padding: 4px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 0 6px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.35) transparent; }
.nav-heading { color: rgba(255,255,255,.75); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 14px 20px 4px; }
.nav-heading:first-child { padding-top: 8px; }
.nav-link-s {
  display: flex; align-items: center; gap: 14px; position: relative;
  color: rgba(255,255,255,.93); padding: 7px 20px; font-weight: 600; font-size: 13.5px;
}
.nav-link-s i { font-size: 15px; width: 18px; text-align: center; }
.nav-link-s:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-link-s.active { color: #fff; font-weight: 700; background: rgba(255,255,255,.06); }
.nav-link-s.active::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; background: #fff; border-radius: 0 4px 4px 0; }
.nav-badge { margin-left: auto; background: #b45309; color: #fff; border-radius: 20px; font-size: 10px; font-weight: 700; padding: 1px 7px; }
.sidebar-footer { color: rgba(255,255,255,.85); font-size: 13px; padding: 24px 28px 28px; }

.main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); background: var(--bg); border-radius: 24px 0 0 24px; min-height: 100vh; transition: margin .25s ease; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px 8px; min-height: var(--brand-h); }
.page-title { font-size: 18px; font-weight: 700; margin: 0; color: #1f2937; }
.btn-avatar { border: 0; background: transparent; font-size: 28px; color: #222; line-height: 1; }
.content { padding: 6px 24px 70px; }

body.sidebar-collapsed .sidebar { transform: translateX(-100%); }
body.sidebar-collapsed .main { margin-left: 0; border-radius: 0; }
body.sidebar-collapsed .show-when-collapsed { display: inline-block !important; }
.sidebar-backdrop { display: none; }

@media (max-width: 991.98px) {
  .app { background: var(--bg); }
  .sidebar { transform: translateX(-100%); box-shadow: 0 0 40px rgba(0,0,0,.2); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 1030; }
  .main { margin-left: 0; border-radius: 0; }
  .topbar { padding: 10px 12px 4px; min-height: 52px; }
  .content { padding: 4px 12px 70px; }
  .page-title { font-size: 16px; }
  body.sidebar-collapsed .show-when-collapsed { display: none !important; }
}

/* ---------- components ---------- */
.card { border: 0; border-radius: var(--radius); box-shadow: 0 6px 24px rgba(30, 50, 80, .05); }
.card-header {
  background: #fff; border-bottom: 1px solid var(--border); padding: 11px 16px;
  display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700;
  border-radius: var(--radius) var(--radius) 0 0 !important;
}
.card-header .ms-auto { font-size: 13px; }
.card-body { padding: 16px; }
.card-header-soft { background: var(--primary-soft); color: var(--primary-dark); }

.stat-card .card-body { padding: 12px 14px; }
.stat-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 19px; flex: 0 0 42px; }
.stat-icon.green { background: #5cb85c; }
.stat-icon.red { background: #ef6f6c; }
.stat-label { color: var(--muted); font-size: 12.5px; margin-bottom: 1px; }
.stat-value { font-size: 18px; font-weight: 700; color: #1f2937; white-space: nowrap; }
.stat-card .card-body > div:last-child { min-width: 0; }

.btn { border-radius: 8px; font-weight: 600; }
.btn-primary { --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-bg: var(--primary-dark); --bs-btn-hover-border-color: var(--primary-dark); --bs-btn-active-bg: var(--primary-dark); --bs-btn-active-border-color: var(--primary-dark); --bs-btn-disabled-bg: var(--primary); --bs-btn-disabled-border-color: var(--primary); }
.btn-outline-primary { --bs-btn-color: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-bg: var(--primary); --bs-btn-hover-border-color: var(--primary); --bs-btn-active-bg: var(--primary-dark); }
.btn-success { --bs-btn-bg: #5cb85c; --bs-btn-border-color: #5cb85c; --bs-btn-hover-bg: #4cae4c; --bs-btn-hover-border-color: #4cae4c; }
.btn-warning { --bs-btn-bg: #f6c343; --bs-btn-border-color: #f6c343; --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #eab52e; --bs-btn-hover-border-color: #eab52e; }
.btn-sq { width: 30px; height: 30px; padding: 0; display: inline-grid; place-items: center; font-size: 13px; }

.form-control, .form-select { border-radius: 8px; border-color: var(--border); padding: 6px 11px; font-weight: 500; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(55,65,81,.15); }
.form-label { font-weight: 600; margin-bottom: 4px; font-size: 13px; }
.form-control[readonly] { background: #f3f5f8; }
.input-group .btn { border-radius: 0 8px 8px 0; }
.desc-box { border: 1px solid var(--primary); border-radius: 8px; padding: 9px 12px; min-height: 42px; white-space: normal; font-size: 13px; overflow-wrap: anywhere; }
/* filter yang sedang aktif diberi penanda agar jelas daftar sedang tersaring */
.form-select.filter-on, .combo:has(.filter-on) .combo-toggle { border-color: var(--primary); box-shadow: inset 3px 0 0 var(--primary); font-weight: 600; }
.pk-method { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.desc-box p { margin: 0 0 6px; }
.desc-box p:last-child, .desc-box ul:last-child, .desc-box ol:last-child { margin-bottom: 0; }
.desc-box ul, .desc-box ol { margin: 0 0 6px; padding-left: 20px; }
.desc-box a { text-decoration: underline; }

.alert { border-radius: 10px; border: 0; padding: 10px 14px; font-size: 13px; }
.alert-warning { background: #fdf4e3; color: #7a520a; }
.alert-info { background: #e2f4fb; color: #1f6f8b; }

.badge { font-weight: 700; font-size: 10.5px; border-radius: 5px; padding: 4px 7px; }
/* warna status dengan kontras teks putih >= 4.5 (WCAG AA) */
.bg-warning { background-color: #b45309 !important; }
.bg-info { background-color: #0e7490 !important; }
.bg-success { background-color: #15803d !important; }
.bg-danger { background-color: #c62828 !important; }
.badge-type { background: var(--primary); color: #fff; border-radius: 20px; font-size: 10px; }
.badge-min { background: var(--primary); color: #fff; border-radius: 10px; font-size: 10px; }

.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: 8px 10px; font-size: 13px; border-color: var(--border); vertical-align: middle; }
.table thead th { font-weight: 600; color: #3b4250; white-space: nowrap; background: #fafbfc; }
.table-wrap { border: 1px solid var(--border); border-radius: 10px; overflow-x: auto; }
.table-wrap .table > :not(caption) > * > *:first-child { padding-left: 14px; }
.text-muted-2 { color: #c3c8d0 !important; }
.nowrap { white-space: nowrap; }
.target-cell { min-width: 150px; max-width: 260px; }

.filter-bar .form-control, .filter-bar .form-select { background: #fff; }
.search-group .btn { width: 48px; }

.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
.platform-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--primary); color: #fff; border: 0; border-radius: 8px; padding: 6px 10px; font-size: 13px;
  font-weight: 600; box-shadow: 0 2px 6px rgba(55,65,81,.2); transition: background .15s;
}
.platform-btn:hover, .platform-btn.active { background: var(--primary-dark); color: #fff; }
.platform-grid.narrow { max-width: 940px; margin-left: auto; margin-right: auto; }
@media (max-width: 767.98px) { .platform-grid, .platform-grid.narrow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } }

.rec-cat { font-size: 12px; font-weight: 700; color: #5d6574; margin: 12px 0 2px; }
.rec-cat:first-child { margin-top: 0; }
.rec-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.rec-item:last-child { border-bottom: 0; }
.rec-id { color: var(--muted); font-size: 12px; flex: 0 0 44px; }
.rec-name { flex: 1; font-size: 13px; }

.news-item { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.news-item + .news-item { margin-top: 10px; }
.news-meta { font-size: 12px; color: #5d6574; margin-bottom: 3px; }
.news-title { font-weight: 700; margin-bottom: 4px; font-size: 15px; }
.news-content { font-size: 13px; }
.rich img { max-width: 100%; height: auto; }
.rich p:last-child { margin-bottom: 0; }

.method-card { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.method-card { margin-bottom: 10px; }
.method-logo { width: 52px; height: 40px; object-fit: contain; flex: 0 0 52px; display: grid; place-items: center; font-size: 24px; color: var(--primary); }
.method-meta { font-size: 12px; color: #6b7280; line-height: 1.45; }
.btn-online { background: #15803d; color: #fff; border-radius: 20px; width: 100%; margin-top: 8px; padding: 4px; font-size: 13px; }
.btn-online:hover { background: #166534; color: #fff; }

.stars i { color: #9aa1ab; font-size: 15px; margin-right: 2px; }
.stars i.on { color: #f6b33c; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: center; gap: 6px; }
.star-input input { display: none; }
.star-input label { font-size: 34px; color: #d3d7de; cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f6b33c; }

.doc-nav .nav-link { color: #3b4250; font-weight: 600; border-radius: 8px; padding: 7px 12px; font-size: 13px; }
.doc-nav .nav-link.active { background: var(--primary); color: #fff; }
pre.code { background: #1f2430; color: #e6e9ef; border-radius: 12px; padding: 16px; font-size: 13px; }

.faq-card { position: relative; overflow: hidden; }
.faq-card::after { content: '?'; position: absolute; right: -6px; top: -14px; font-size: 90px; font-weight: 700; color: var(--primary-soft); line-height: 1; }
.faq-card h5 { font-weight: 700; position: relative; z-index: 1; padding-right: 40px; font-size: 15px; }
.faq-card .answer { color: #6b7280; position: relative; z-index: 1; }

.chat-msg { max-width: 80%; width: fit-content; min-width: 180px; border-radius: 10px; padding: 7px 11px; margin-bottom: 6px; font-size: 13px; line-height: 1.45; word-break: break-word; }
.chat-text { white-space: pre-wrap; }
.chat-msg.me { margin-left: auto; background: var(--primary-soft); }
.chat-msg.admin { background: #f3f4f7; }
.chat-meta { font-size: 11px; color: var(--muted); margin-bottom: 2px; }

.rank-no { width: 26px; height: 26px; font-size: 12px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); display: inline-grid; place-items: center; font-weight: 700; }
.rank-no.r1 { background: #f6c343; color: #fff; }
.rank-no.r2 { background: #b8c1cc; color: #fff; }
.rank-no.r3 { background: #d89a6a; color: #fff; }

.fab-chat {
  position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 20px;
  box-shadow: 0 6px 16px rgba(55,65,81,.35); z-index: 1020;
}
.fab-chat:hover { color: #fff; background: var(--primary-dark); }

.loader-overlay { position: fixed; inset: 0; background: rgba(20,25,35,.55); z-index: 2000; display: none; align-items: center; justify-content: center; flex-direction: column; color: #fff; font-weight: 600; }

/* ---------- auth ---------- */
.auth-body { background: var(--bg); }
.auth-wrap { display: flex; min-height: 100vh; }
.auth-side { flex: 0 0 40%; background: linear-gradient(160deg, #374151, #1f2937); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 0 28px 28px 0; }
.auth-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .card-body { padding: 28px !important; }
.auth-card h3 { font-size: 20px; }
@media (max-width: 991.98px) { .auth-side { display: none; } }

/* ---------- topbar extras ---------- */
.balance-chip { align-items: center; gap: 6px; background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; border-radius: 30px; padding: 5px 11px; font-size: 12.5px; }
.balance-chip:hover { background: var(--primary); color: #fff; }
.theme-toggle { font-size: 18px; }
.btn .spinner-border { width: 1rem; height: 1rem; border-width: .15em; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; }
tr.row-updated td { animation: flashRow 1.6s ease; }
@keyframes flashRow { from { background: rgba(55,65,81,.15); } to { background: transparent; } }

/* ---------- dark mode ---------- */
[data-bs-theme="dark"] {
  --bg: #12161f;
  --text: #d6dae3;
  --muted: #8f98a8;
  --border: #283042;
  --primary-soft: #1c2c4f;
}
[data-bs-theme="dark"] body { background: var(--bg); }
[data-bs-theme="dark"] .app { background: linear-gradient(to bottom, var(--sidebar-bg) var(--brand-h), var(--sidebar-bg) var(--brand-h)); }
[data-bs-theme="dark"] .sidebar, [data-bs-theme="dark"] .auth-side { background: #1f2937; }
[data-bs-theme="dark"] .sidebar-brand { background: #1a202c; }
[data-bs-theme="dark"] .card, [data-bs-theme="dark"] .card-header, [data-bs-theme="dark"] .modal-content, [data-bs-theme="dark"] .dropdown-menu { background: #1a202c; color: var(--text); }
[data-bs-theme="dark"] .card-header-soft { background: var(--primary-soft); color: #e5e7eb; }
[data-bs-theme="dark"] .page-title, [data-bs-theme="dark"] .stat-value, [data-bs-theme="dark"] .btn-icon, [data-bs-theme="dark"] .btn-avatar { color: #eef1f6; }
[data-bs-theme="dark"] .table thead th { background: #20283a; color: #dfe3ea; }
[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select, [data-bs-theme="dark"] .filter-bar .form-control, [data-bs-theme="dark"] .filter-bar .form-select { background-color: #141a24; color: var(--text); border-color: var(--border); }
[data-bs-theme="dark"] .form-control[readonly] { background: #20283a; }
[data-bs-theme="dark"] .news-item, [data-bs-theme="dark"] .method-card { box-shadow: none; }
[data-bs-theme="dark"] .news-meta, [data-bs-theme="dark"] .rec-cat, [data-bs-theme="dark"] .method-meta, [data-bs-theme="dark"] .faq-card .answer { color: var(--muted); }
[data-bs-theme="dark"] .chat-msg.admin, [data-bs-theme="dark"] .bg-light { background: #20283a !important; }
[data-bs-theme="dark"] .alert-warning { background: #3a3120; color: #f2d493; }
[data-bs-theme="dark"] .alert-info { background: #173744; color: #9fdcef; }
[data-bs-theme="dark"] .btn-light { --bs-btn-bg: #20283a; --bs-btn-color: #d6dae3; --bs-btn-border-color: #283042; }
[data-bs-theme="dark"] .faq-card::after { color: #22335a; }
[data-bs-theme="dark"] .balance-chip { color: #e5e7eb; }

/* ---------- responsif: tabel jadi kartu di layar kecil ---------- */
@media (max-width: 767.98px) {
  .table-wrap.stacked { border: 0; overflow: visible; }
  .table-wrap.stacked > table > thead { display: none; }
  .table-wrap.stacked > table, .table-wrap.stacked > table > tbody, .table-wrap.stacked > table > tbody > tr, .table-wrap.stacked > table > tbody > tr > td { display: block; width: 100%; }
  .table-wrap.stacked > table > tbody > tr { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; padding: 4px 0; background: var(--bs-body-bg); }
  .table-wrap.stacked > table > tbody > tr > td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right;
    border: 0 !important; padding: 4px 12px !important; min-width: 0 !important; max-width: none !important; width: auto !important; white-space: normal;
  }
  .table-wrap.stacked > table > tbody > tr > td::before { content: attr(data-label); flex: 0 0 38%; text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; }
  /* isi sel boleh turun baris (mis. beberapa tombol aksi, badge berteks panjang) agar tidak melebar ke samping */
  .table-wrap.stacked > table > tbody > tr > td { flex-wrap: wrap; row-gap: 6px; }
  .table-wrap.stacked > table > tbody > tr > td.nowrap { white-space: normal; }
  .table-wrap.stacked > table > tbody > tr > td.text-end { justify-content: flex-end; }
  .table-wrap.stacked > table > tbody > tr > td.text-end::before { margin-right: auto; }
  .table-wrap.stacked .badge { white-space: normal; text-align: right; line-height: 1.35; }
  .table-wrap.stacked > table > tbody > tr > td[colspan] { justify-content: center; text-align: center; }
  .table-wrap.stacked > table > tbody > tr > td[colspan]::before { display: none; }
  .table-wrap.stacked .d-grid { width: 60%; }
  .table-wrap.stacked form.d-flex { justify-content: flex-end; }
  .stat-value { font-size: 16px; }
  .card-header { padding: 10px 14px; font-size: 14px; flex-wrap: wrap; }
  .card-body { padding: 12px; }
  .news-item { padding: 10px 12px; }
  .chat-msg { max-width: 92%; }
  .fab-chat { width: 42px; height: 42px; font-size: 18px; right: 12px; bottom: 12px; }
  .balance-chip { padding: 6px 10px; font-size: 13px; }
}
@media (min-width: 1600px) {
  .content { padding-left: 40px; padding-right: 40px; }
}

/* ---------- OTP & popup ---------- */
.otp-input { letter-spacing: .5em; font-weight: 700; font-size: 22px; }
.prompt-icon { width: 58px; height: 58px; font-size: 28px !important; margin: 0 auto; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center; font-size: 34px; }

/* ---------- pilih & salin massal ---------- */
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border: 1px dashed var(--border); border-radius: 8px; background: var(--bg); }
.bulk-bar.has-selection { border-style: solid; border-color: var(--primary); }
.bulk-all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; cursor: pointer; margin: 0; }
.bulk-all .form-check-input { margin: 0; width: 1.15em; height: 1.15em; }
.bulk-count { font-size: 13px; color: var(--muted); padding-right: 4px; border-right: 1px solid var(--border); margin-right: 2px; }
.bulk-bar.has-selection .bulk-count { color: var(--text); }
.bulk-bar .form-select { width: auto; min-width: 200px; max-width: 100%; }
.pager-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.per-page { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.per-page label { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.per-page label { white-space: nowrap; flex-wrap: nowrap; }
.per-page .form-select { width: auto; min-width: 5.75rem; flex: 0 0 auto; padding-top: 3px; padding-bottom: 3px; padding-left: 10px; padding-right: 2rem; background-position: right 8px center; }
.table-mode-toggle { display: none; align-items: center; gap: 6px; margin: 0; font-size: 14px; white-space: nowrap; cursor: pointer; }
@media (max-width: 767.98px) {
  .table-mode-toggle { display: inline-flex; }
  .table-wrap.force-table > table { font-size: 13px; }
  .table-wrap.force-table > table td, .table-wrap.force-table > table th { white-space: nowrap; }
  .table-wrap.force-table > table td[style*="min-width"] { white-space: normal; }
}
@media (max-width: 575.98px) { .bulk-bar .form-select { min-width: 0; flex: 1 1 100%; } .pager-bar { justify-content: center; } }
[data-bs-theme="dark"] .bulk-bar { background: #141a24; }
.col-check { width: 42px; text-align: center; }
.col-check .form-check-input { width: 1.15em; height: 1.15em; cursor: pointer; margin: 0; }
tr.row-selected > td { background: var(--primary-soft) !important; }
.target-copy { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.target-copy .target-text { flex: 1 1 auto; }
.target-copy .btn { padding: 2px 7px; flex: 0 0 auto; }
@media (max-width: 767.98px) {
  .table-wrap.stacked > table > tbody > tr > td.col-check { justify-content: flex-start; }
  .table-wrap.stacked > table > tbody > tr > td.col-check::before { content: 'Pilih'; }
  .table-wrap.stacked .target-cell { max-width: none; min-width: 0; overflow: hidden; }
  .table-wrap.stacked .target-copy { flex: 1 1 auto; min-width: 0; }
}

/* ---------- ringkas: penyesuaian tambahan ---------- */
.platform-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.platform-btn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 575.98px) {
  .stat-card .card-body { padding: 10px; gap: 8px !important; }
  .stat-icon { width: 34px; height: 34px; flex-basis: 34px; font-size: 16px; border-radius: 8px; }
  .stat-label { font-size: 11px; line-height: 1.25; }
  .stat-value { font-size: 15px; }
  .row.g-3 { --bs-gutter-x: .6rem; --bs-gutter-y: .6rem; }
  .platform-btn { font-size: 12px; padding: 6px 8px; }
}


/* ================= Tema abu muda + arang ================= */
.app { background: var(--sidebar-bg); }
.sidebar { background: var(--sidebar-bg); border-right: 1px solid var(--border); }
.sidebar-brand { background: var(--sidebar-bg); border-bottom: 1px solid var(--border); }
.brand { color: var(--primary-dark); }
.btn-icon { color: #374151; }
.nav-heading { color: #9ca3af; }
.nav-link-s { color: var(--sidebar-text); margin: 1px 8px; padding-left: 12px; padding-right: 12px; border-radius: 7px; }
.nav-link-s:hover { color: #111827; background: #e9eaee; }
.nav-link-s.active { color: #111827; background: var(--sidebar-active); }
.nav-link-s.active::before { left: -8px; background: var(--primary); }
.sidebar-footer { color: #6b7280; }
.sidebar-nav { scrollbar-color: #d1d5db transparent; }
.main { border-radius: 0; }
.auth-side { background: linear-gradient(160deg, #374151, #1f2937); }
.card { box-shadow: 0 1px 3px rgba(17,24,39,.06), 0 1px 2px rgba(17,24,39,.04); }
.alert-info { background: #f1f3f5; color: #374151; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-check-input:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(55,65,81,.15); }
.pagination { --bs-pagination-color: var(--primary-dark); --bs-pagination-active-bg: var(--primary); --bs-pagination-active-border-color: var(--primary); --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(55,65,81,.15); }
.dropdown-item:active { background: var(--primary); }
.card-body a:not(.btn):not(.page-link):not(.dropdown-item), .rich a, .auth-card a, .form-text a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 991.98px) { .app { background: var(--bg); } }

[data-bs-theme="dark"] {
  --primary: #4b5563;
  --primary-dark: #374151;
  --primary-soft: #262b33;
  --sidebar-bg: #15181e;
  --sidebar-text: #cbd5e1;
  --sidebar-active: #262b33;
  --bs-link-color: #e5e7eb;
  --bs-link-color-rgb: 229, 231, 235;
  --bs-link-hover-color: #fff;
}
[data-bs-theme="dark"] .app, [data-bs-theme="dark"] .sidebar, [data-bs-theme="dark"] .sidebar-brand { background: var(--sidebar-bg); }
[data-bs-theme="dark"] .auth-side { background: linear-gradient(160deg, #262b33, #111418); }
[data-bs-theme="dark"] .brand { color: #f3f4f6; }
[data-bs-theme="dark"] .nav-link-s:hover, [data-bs-theme="dark"] .nav-link-s.active { color: #fff; background: var(--sidebar-active); }
[data-bs-theme="dark"] .nav-link-s.active::before { background: #e5e7eb; }
[data-bs-theme="dark"] .card-header-soft, [data-bs-theme="dark"] .balance-chip { color: #e5e7eb; }
[data-bs-theme="dark"] .faq-card::after { color: #262b33; }
[data-bs-theme="dark"] .alert-info { background: #262b33; color: #d1d5db; }

/* ---------- dasbor: accordion layanan & promosi ---------- */
.dash-acc { --bs-accordion-border-color: var(--border); --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-active-bg: var(--primary-soft); --bs-accordion-active-color: var(--primary-dark); --bs-accordion-btn-padding-y: .7rem; --bs-accordion-btn-padding-x: 1rem; --bs-accordion-body-padding-y: .5rem; --bs-accordion-body-padding-x: 1rem; }
.dash-acc .accordion-item:first-of-type, .dash-acc .accordion-item:first-of-type > .accordion-header .accordion-button { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.dash-acc .accordion-item:last-of-type, .dash-acc .accordion-item:last-of-type > .accordion-header .accordion-button.collapsed { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.dash-acc .accordion-button { font-size: 13.5px; font-weight: 600; color: var(--text); }
.dash-acc .accordion-button:not(.collapsed) { box-shadow: inset 0 -1px 0 var(--border); }
.rec-meta { font-size: 11.5px; color: var(--muted); margin-top: 1px; display: flex; align-items: center; gap: 6px; }
.rec-meta .rank-no { width: 18px; height: 18px; font-size: 10px; }
.promo-carousel { border-radius: 10px; overflow: hidden; }
.promo-carousel img { aspect-ratio: 12 / 5; object-fit: cover; background: var(--primary-soft); }
.promo-carousel .carousel-control-prev, .promo-carousel .carousel-control-next { width: 12%; opacity: 1; }
.promo-nav { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.85); color: #1f2937; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.promo-carousel .carousel-indicators { margin-bottom: .4rem; }
.promo-carousel .carousel-indicators [data-bs-target] { width: 18px; height: 4px; border-radius: 2px; }
[data-bs-theme="dark"] .dash-acc .accordion-button { color: var(--text); background: #1a202c; }
[data-bs-theme="dark"] .dash-acc .accordion-button:not(.collapsed) { background: var(--primary-soft); color: #e5e7eb; }
[data-bs-theme="dark"] .dash-acc .accordion-item, [data-bs-theme="dark"] .dash-acc .accordion-body { background: #1a202c; }

/* ---------- Info Halaman ---------- */
.page-notice { font-size: 13px; }
.page-notice-title { font-weight: 700; margin-bottom: 4px; }
.page-notice .rich ul { padding-left: 1.2rem; }
.page-notice .rich p:last-child, .page-notice .rich ul:last-child { margin-bottom: 0; }
.alert-danger { background: #fdecec; color: #9b1c1c; }
.alert-success { background: #e8f6ee; color: #17603a; }
[data-bs-theme="dark"] .alert-danger { background: #3b1f22; color: #f5b5b5; }
[data-bs-theme="dark"] .alert-success { background: #183326; color: #a7e3c0; }

/* ================= Landing page ================= */
body.landing { background: #fff; }
.lp-nav { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); padding: 10px 0; }
.lp-nav .nav-link { font-weight: 600; color: #374151; padding: 6px 14px !important; }
.lp-nav .nav-link:hover { color: #111827; }
.lp-hero { padding: 64px 0 40px; background: linear-gradient(180deg, #f3f4f6 0%, #ffffff 100%); }
.lp-kicker { display: inline-block; background: #e5e7eb; color: #374151; font-weight: 700; font-size: 12px; padding: 5px 12px; border-radius: 20px; margin-bottom: 14px; }
.lp-title { font-size: clamp(28px, 4.2vw, 46px); font-weight: 700; line-height: 1.15; color: #111827; margin-bottom: 14px; }
.lp-sub { font-size: 16px; color: #4b5563; max-width: 560px; }
.lp-mock { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px; box-shadow: 0 20px 50px rgba(17,24,39,.08); max-width: 460px; margin-left: auto; }
.lp-mock-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; }
.lp-mock-row + .lp-mock-row { border-top: 1px solid var(--border); }
.lp-dot { width: 36px; height: 36px; border-radius: 10px; background: #374151; flex: 0 0 36px; }
.lp-mock-foot { margin-top: 8px; padding: 10px 12px; background: #f3f4f6; border-radius: 10px; font-size: 13px; font-weight: 600; color: #374151; }
.lp-stats { margin-top: 36px; }
.lp-stat { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.lp-stat i { font-size: 22px; color: #374151; }
.lp-stat-value { font-size: 20px; font-weight: 700; color: #111827; line-height: 1.1; }
.lp-stat-label { font-size: 12px; color: #6b7280; }
.lp-section { padding: 56px 0; }
.lp-alt { background: #f8f9fa; }
.lp-muted { color: #6b7280; font-weight: 600; }
.lp-h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: #111827; text-align: center; margin-bottom: 28px; }
.lp-platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lp-chip { background: #fff; border: 1px solid var(--border); border-radius: 30px; padding: 6px 14px; font-weight: 600; font-size: 13px; color: #374151; }
.lp-card, .lp-step, .lp-price { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; }
.lp-card h3, .lp-step h3 { font-size: 16px; font-weight: 700; margin: 10px 0 6px; color: #111827; }
.lp-card p, .lp-step p { font-size: 13.5px; color: #6b7280; margin: 0; }
.lp-icon { width: 44px; height: 44px; border-radius: 12px; background: #374151; color: #fff; display: grid; place-items: center; font-size: 20px; }
.lp-step-no { width: 32px; height: 32px; border-radius: 50%; background: #111827; color: #fff; display: grid; place-items: center; font-weight: 700; }
.lp-price-value { font-size: 20px; font-weight: 700; color: #111827; }
.lp-price-value small { font-size: 12px; color: #6b7280; font-weight: 600; }
.lp-faq .accordion-button { font-weight: 600; font-size: 14.5px; }
.lp-faq .accordion-button:not(.collapsed) { background: #f3f4f6; color: #111827; box-shadow: none; }
.lp-cta { background: linear-gradient(135deg, #374151, #111827); color: #fff; padding: 56px 0; }
.lp-cta h2 { font-weight: 700; font-size: clamp(22px, 3vw, 30px); }
.lp-cta p { color: #d1d5db; }
.lp-footer { padding: 40px 0 24px; border-top: 1px solid var(--border); }
.lp-footer a { display: block; color: #4b5563; font-size: 13.5px; padding: 3px 0; text-decoration: none; }
.lp-footer a:hover { color: #111827; }
.lp-copy { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 16px; font-size: 12.5px; color: #6b7280; }
@media (max-width: 991.98px) { .lp-mock { margin: 0 auto; } .lp-hero { padding: 36px 0 28px; } .lp-section { padding: 40px 0; } }
[data-bs-theme="dark"] body.landing, [data-bs-theme="dark"] .lp-card, [data-bs-theme="dark"] .lp-step, [data-bs-theme="dark"] .lp-price, [data-bs-theme="dark"] .lp-stat, [data-bs-theme="dark"] .lp-mock, [data-bs-theme="dark"] .lp-chip { background: #1a202c; }
[data-bs-theme="dark"] .lp-nav { background: rgba(21,24,30,.92); }
[data-bs-theme="dark"] .lp-hero { background: linear-gradient(180deg, #15181e 0%, #1a202c 100%); }
[data-bs-theme="dark"] .lp-alt { background: #15181e; }
[data-bs-theme="dark"] .lp-title, [data-bs-theme="dark"] .lp-h2, [data-bs-theme="dark"] .lp-card h3, [data-bs-theme="dark"] .lp-step h3, [data-bs-theme="dark"] .lp-price-value, [data-bs-theme="dark"] .lp-stat-value, [data-bs-theme="dark"] .lp-nav .nav-link { color: #f3f4f6; }
[data-bs-theme="dark"] .lp-kicker, [data-bs-theme="dark"] .lp-mock-foot { background: #262b33; color: #e5e7eb; }

/* ---------- logo mahkota ---------- */
.brand-logo { width: 32px; height: 32px; border-radius: 8px; flex: 0 0 32px; box-shadow: 0 2px 6px rgba(17,24,39,.25); }
.brand-light .brand-logo { box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.lp-nav .brand-logo, .lp-footer .brand-logo { width: 34px; height: 34px; flex-basis: 34px; }

.setup-list li { padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.setup-list li:last-child { border-bottom: 0; }

/* ---- dropdown dengan pencarian (pengganti select) & cari layanan */
.combo, .svc-search { position: relative; }
/* select asli tetap di DOM untuk submit & validasi required; selektor lebih spesifik dari .form-select:disabled milik Bootstrap */
.combo > select.combo-native { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.combo-toggle { display: flex; flex-direction: column; justify-content: center; width: 100%; min-height: 38px; height: auto; text-align: left; white-space: normal; line-height: 1.35; padding-top: 7px; padding-bottom: 7px; padding-right: 2.25rem; background-color: #fff; }
.combo-toggle:disabled { background-color: var(--bg); color: var(--muted); opacity: 1; }
.combo-toggle.is-invalid { border-color: #dc3545; }
.combo.open .combo-toggle { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(55,65,81,.12); }
.combo-placeholder { color: var(--muted); }
.combo-main { display: block; overflow-wrap: anywhere; }
.combo-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.combo-panel, .svc-results { position: absolute; z-index: 1060; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 10px 28px rgba(17,24,39,.14); padding: 6px; }
.combo-search { margin-bottom: 6px; }
.combo-list, .svc-results { max-height: min(380px, 55vh); overflow-y: auto; overscroll-behavior: contain; }
.combo-item { padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 13.5px; line-height: 1.35; }
.combo-item + .combo-item { margin-top: 2px; }
.combo-item:hover, .combo-item.active { background: var(--bg); }
.combo-item.selected { background: rgba(55,65,81,.1); font-weight: 700; }
.combo-empty { padding: 10px; text-align: center; color: var(--muted); font-size: 13px; }
[data-bs-theme="dark"] .combo-toggle { background-color: #141a24; }
[data-bs-theme="dark"] .combo-toggle:disabled { background-color: #1a202c; }
[data-bs-theme="dark"] .combo-panel, [data-bs-theme="dark"] .svc-results { background: #1a202c; border-color: var(--border); }
[data-bs-theme="dark"] .combo-item:hover, [data-bs-theme="dark"] .combo-item.active { background: #232b3a; }
[data-bs-theme="dark"] .combo-item.selected { background: #2b3446; }

/* ---------- blog */
.blog-card { color: inherit; transition: transform .15s ease, box-shadow .15s ease; overflow: hidden; }
.blog-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(17,24,39,.08); }
/* gambar blog: atribut width/height hanya untuk rasio (anti layout shift); tinggi mengikuti lebar, tidak pernah terpotong */
.blog-card .card-img-top { height: auto; aspect-ratio: 1200 / 630; object-fit: contain; background: var(--bs-tertiary-bg, #f3f4f6); }
.blog-cover { display: block; width: 100%; height: auto; max-height: none; }
.article-body { font-size: 15px; line-height: 1.75; }
.article-body h2 { font-size: 20px; font-weight: 700; margin: 1.6em 0 .6em; }
.article-body h3 { font-size: 17px; font-weight: 700; margin: 1.3em 0 .5em; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; }
.lp-social a { color: inherit; opacity: .75; } .lp-social a:hover { opacity: 1; }
.lp-seo h2 { font-size: 22px; font-weight: 700; margin: 1.2em 0 .5em; } .lp-seo p { line-height: 1.75; }

/* ---------- halaman publik untuk pengunjung (navbar + footer situs) */
.skip-link { position: absolute; left: 8px; top: 8px; z-index: 2000; background: #111827; color: #fff; padding: 8px 14px; border-radius: 8px; }
.public-main { padding: 28px 0 56px; min-height: 60vh; background: var(--bg); }
.public-head { margin-bottom: 18px; }
.public-title { font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin: 0 0 4px; color: #111827; }
.public-intro { color: #4b5563; margin: 0; font-size: 15px; }
.lp-nav .nav-link.active { color: #111827; background: var(--primary-soft); border-radius: 8px; }
.lp-nav .btn-icon { min-width: 40px; min-height: 40px; }
a.lp-chip { text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
a.lp-chip:hover { border-color: #9ca3af; transform: translateY(-1px); }
.lp-pay { padding-top: 40px; padding-bottom: 40px; }
.lp-foot-title { font-size: 14px; font-weight: 700; margin: 0 0 8px; color: #111827; }
.lp-foot-note { display: block; font-size: 13px; color: #4b5563; padding: 3px 0; }
.lp-footer a { color: #374151; padding: 5px 0; }
.lp-copy { color: #4b5563; }
.lp-social a { display: inline-flex !important; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px; font-size: 18px; opacity: 1; padding: 0 !important; }
.blog-ph { aspect-ratio: 1200 / 630; display: flex; align-items: center; justify-content: center; font-size: 42px; color: rgba(255,255,255,.92); background: linear-gradient(135deg, #374151, #111827); }
.blog-card:nth-child(1) .blog-ph, .col-md-6:nth-child(3n+2) .blog-ph, .col-md-4:nth-child(3n+2) .blog-ph { background: linear-gradient(135deg, #1f4e79, #111827); }
.col-md-6:nth-child(3n) .blog-ph, .col-md-4:nth-child(3n) .blog-ph { background: linear-gradient(135deg, #3b5d50, #111827); }
.auth-brand-mobile { display: none; justify-content: center; margin-bottom: 18px; text-decoration: none; color: inherit; }
@media (max-width: 991.98px) { .auth-brand-mobile { display: flex; } }
/* kontras & ukuran sentuh */
.nav-heading { color: #556070; font-size: 11px; }
.sidebar-footer { color: #4b5563; }
.btn-icon { min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.lp-mock .badge.bg-success { background: #15803d !important; }
.lp-mock .badge.bg-info { background: #0e7490 !important; }
.lp-mock .badge.bg-warning { background: #b45309 !important; color: #fff !important; }
.lp-mock .badge { font-size: 12px; }
@media (max-width: 767.98px) {
  .lp-footer a { padding: 9px 0; font-size: 14.5px; }
  .article-body + hr + div .btn-sm, .public-page .btn-sm { padding: 8px 12px; font-size: 14px; }
  .public-main { padding-top: 20px; }
}
[data-bs-theme="dark"] .public-title, [data-bs-theme="dark"] .lp-foot-title { color: #f3f4f6; }
[data-bs-theme="dark"] .public-intro, [data-bs-theme="dark"] .lp-footer a, [data-bs-theme="dark"] .lp-copy, [data-bs-theme="dark"] .lp-foot-note { color: #cbd5e1; }
[data-bs-theme="dark"] .nav-heading { color: #9ca3af; }
[data-bs-theme="dark"] .lp-nav .nav-link.active { color: #fff; background: #283042; }

/* ---------- halaman masuk/daftar */
.brand.brand-light, .brand.brand-light .brand-text { color: #fff; }
a.brand { text-decoration: none; }
.auth-side { flex: 0 0 42%; max-width: 620px; padding: 44px 48px; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.10), rgba(255,255,255,0) 70%); pointer-events: none; }
.auth-side > * { position: relative; z-index: 1; }
.auth-side-title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; line-height: 1.25; margin: 0 0 12px; color: #fff; }
.auth-side-sub { color: rgba(255,255,255,.82); margin: 0 0 28px; font-size: 15px; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.auth-points li { display: flex; gap: 14px; align-items: flex-start; }
.auth-point-ic { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; }
.auth-points b { display: block; font-size: 15px; color: #fff; }
.auth-points span:not(.auth-point-ic) { display: block; font-size: 13.5px; color: rgba(255,255,255,.78); line-height: 1.5; }
.auth-side-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 13px; color: rgba(255,255,255,.82); }
.auth-side-foot a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.auth-card { max-width: 440px; }
.auth-card .card-body { display: flex; flex-direction: column; }
.auth-card .card-body > * { order: 3; }
.auth-card .card-body > h1 { order: 0; }
.auth-card .card-body > p.text-muted:first-of-type { order: 1; margin-bottom: 18px !important; }
.auth-card .card-body > .alert { order: 2; margin: 0 0 18px; }
.pw-meter { display: flex; gap: 5px; margin-top: 8px; visibility: hidden; }
.pw-meter span { flex: 1; height: 5px; border-radius: 4px; background: var(--border); transition: background .2s ease; }
.pw-meter[data-level="0"] span:nth-child(-n+1), .pw-meter[data-level="1"] span:nth-child(-n+1) { background: #dc2626; }
.pw-meter[data-level="2"] span:nth-child(-n+2) { background: #d97706; }
.pw-meter[data-level="3"] span:nth-child(-n+3) { background: #16a34a; }
.pw-meter[data-level="4"] span { background: #15803d; }

input[type="password"]::-ms-reveal, input[type="password"]::-ms-clear { display: none; }

/* ---------- skema cara kerja beranimasi (halaman depan) */
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flow-step { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; position: relative; overflow: hidden; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; color: inherit; }
.flow-step:hover { border-color: #9ca3af; }
.flow-step:focus-visible { outline: 3px solid rgba(55,65,81,.35); outline-offset: 2px; }
.flow-step.is-active { border-color: var(--primary); box-shadow: 0 8px 24px rgba(17,24,39,.08); transform: translateX(4px); }
.flow-ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; background: var(--primary-soft); color: var(--primary); transition: background .2s ease, color .2s ease; }
.flow-step.is-active .flow-ic, .flow-step.is-done .flow-ic { background: var(--primary); color: #fff; }
.flow-txt b { display: block; font-size: 15.5px; color: #111827; }
.flow-txt small { display: block; font-size: 13px; color: #4b5563; line-height: 1.45; }
.flow-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.flow-bar i { display: block; height: 100%; width: 0; background: var(--primary); }
.flow-step.run .flow-bar i { animation: flowBar var(--flow-ms, 5600ms) linear forwards; }
.flow-step.is-done .flow-bar i { width: 100%; opacity: .25; }
@keyframes flowBar { from { width: 0; } to { width: 100%; } }
.flow-window { border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 18px 44px rgba(17,24,39,.10); overflow: hidden; max-width: 560px; margin: 0 auto; }
.flow-topbar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #f3f4f6; border-bottom: 1px solid var(--border); }
.flow-topbar > span { width: 10px; height: 10px; border-radius: 50%; background: #d1d5db; }
.flow-topbar em { flex: 1; margin-left: 8px; font-style: normal; font-size: 12.5px; color: #4b5563; background: #fff; border-radius: 999px; padding: 4px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-topbar em b { font-weight: 600; color: #111827; }
.flow-toggle { border: 0; background: #fff; width: 32px; height: 32px; border-radius: 50%; color: #374151; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.flow-toggle:hover { background: #e5e7eb; }
.flow-stage { position: relative; min-height: 368px; padding: 20px 22px 22px; }
.flow-scene { animation: flowIn .35s ease both; }
.flow-scene[hidden] { display: none; }
@keyframes flowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.flow-title { font-weight: 700; font-size: 17px; color: #111827; margin-bottom: 12px; }
.flow-field { margin-bottom: 10px; }
.flow-field label { display: block; font-size: 12.5px; font-weight: 600; color: #374151; margin-bottom: 4px; }
.flow-input { min-height: 38px; display: flex; align-items: center; padding: 6px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; color: #111827; background: #fff; white-space: nowrap; overflow: hidden; }
.flow-input .typing::after, .flow-otp-box .typing::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; background: #111827; margin-left: 1px; vertical-align: -2px; animation: flowCaret .7s steps(1) infinite; }
@keyframes flowCaret { 50% { opacity: 0; } }
.flow-btn { margin-top: 4px; text-align: center; font-weight: 700; font-size: 14px; color: #fff; background: var(--primary); border-radius: 10px; padding: 9px 12px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.flow-btn.press { transform: scale(.96); background: var(--primary-dark); box-shadow: 0 0 0 6px rgba(55,65,81,.16); }
[data-flow] [data-at]:not([data-type]):not([data-count]) { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
[data-flow] [data-at].show:not([data-type]):not([data-count]) { opacity: 1; transform: none; }
.flow-toast { margin-top: 10px; font-size: 13px; font-weight: 600; border-radius: 10px; padding: 9px 12px; background: #dcfce7; color: #166534; }
.flow-otp { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px dashed #9ca3af; border-radius: 10px; padding: 8px 12px; }
.flow-otp small { color: #374151; font-weight: 600; font-size: 12.5px; }
.flow-otp-box { font-family: Consolas, Menlo, monospace; font-size: 18px; font-weight: 700; letter-spacing: 6px; min-width: 120px; text-align: right; color: #111827; }
.flow-balance { font-size: 13px; font-weight: 700; color: #111827; background: var(--primary-soft); border-radius: 999px; padding: 5px 12px; }
.flow-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.flow-chip { font-size: 12.5px; font-weight: 600; border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; color: #374151; opacity: 1 !important; transform: none !important; transition: background .2s ease, color .2s ease, border-color .2s ease !important; }
.flow-chip.pick.show { background: var(--primary); border-color: var(--primary); color: #fff; }
.flow-pay { margin-top: 10px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.flow-pay b { display: block; font-size: 14px; color: #111827; }
.flow-pay small { display: block; font-size: 12.5px; color: #4b5563; }
.flow-pay .flow-paid { color: #166534; font-weight: 600; }
.flow-pay .flow-paid.show ~ .flow-wait, .flow-pay:has(.flow-paid.show) .flow-wait { display: none; }
.flow-qr { flex: 0 0 68px; width: 68px; height: 68px; border-radius: 8px; background-color: #fff; border: 4px solid #fff; outline: 1px solid var(--border);
  background-image: linear-gradient(90deg, #111827 50%, transparent 0), linear-gradient(#111827 50%, transparent 0), radial-gradient(#111827 35%, transparent 36%);
  background-size: 12px 12px, 12px 12px, 8px 8px; background-blend-mode: difference; }
.flow-cost { font-size: 13.5px; color: #374151; margin-bottom: 6px; }
.flow-cost b { color: #111827; }
.flow-status { margin-top: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.flow-status-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #111827; }
.flow-badges { position: relative; display: inline-grid; }
.flow-badges span { grid-area: 1 / 1; justify-self: end; font-size: 12px; font-weight: 700; color: #fff; border-radius: 999px; padding: 3px 12px; }
.flow-badges .b-pending { background: #b45309; }
.flow-badges .b-process { background: #0e7490; }
.flow-badges .b-success { background: #15803d; }
.flow-progress { height: 6px; border-radius: 6px; background: var(--primary-soft); margin-top: 9px; overflow: hidden; }
.flow-progress i { display: block; height: 100%; width: 8%; background: #b45309; border-radius: 6px; transition: width .7s ease, background .4s ease; }
.flow-status:has(.b-process.show) .flow-progress i { width: 55%; background: #0e7490; }
.flow-status:has(.b-success.show) .flow-progress i { width: 100%; background: #15803d; }
.flow-note { text-align: center; font-size: 12.5px; color: #4b5563; margin: 10px 0 0; }
.flow.is-paused .flow-step .flow-bar i { animation: none; }
@media (max-width: 991.98px) {
  .flow-steps { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .flow-step { flex-direction: column; gap: 6px; padding: 10px 6px 12px; text-align: center; transform: none !important; }
  .flow-txt small { display: none; }
  .flow-txt b { font-size: 12.5px; }
  .flow-ic { flex-basis: 40px; width: 40px; height: 40px; font-size: 18px; }
  .flow-stage { min-height: 372px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-scene, .flow-step, .flow-btn, [data-flow] [data-at] { animation: none !important; transition: none !important; }
}
[data-bs-theme="dark"] .flow-step, [data-bs-theme="dark"] .flow-window, [data-bs-theme="dark"] .flow-input { background: #1a202c; }
[data-bs-theme="dark"] .flow-topbar { background: #111418; }
[data-bs-theme="dark"] .flow-topbar em, [data-bs-theme="dark"] .flow-toggle { background: #1a202c; color: #cbd5e1; }
[data-bs-theme="dark"] .flow-txt b, [data-bs-theme="dark"] .flow-title, [data-bs-theme="dark"] .flow-input, [data-bs-theme="dark"] .flow-status-row, [data-bs-theme="dark"] .flow-pay b, [data-bs-theme="dark"] .flow-cost b, [data-bs-theme="dark"] .flow-otp-box, [data-bs-theme="dark"] .flow-topbar em b, [data-bs-theme="dark"] .flow-balance { color: #f3f4f6; }
[data-bs-theme="dark"] .flow-txt small, [data-bs-theme="dark"] .flow-field label, [data-bs-theme="dark"] .flow-pay small, [data-bs-theme="dark"] .flow-cost, [data-bs-theme="dark"] .flow-note, [data-bs-theme="dark"] .flow-otp small, [data-bs-theme="dark"] .flow-chip { color: #cbd5e1; }
[data-bs-theme="dark"] .flow-input .typing::after, [data-bs-theme="dark"] .flow-otp-box .typing::after { background: #f3f4f6; }
[data-bs-theme="dark"] .flow-step.is-active { border-color: #9ca3af; }
[data-bs-theme="dark"] .flow-ic, [data-bs-theme="dark"] .flow-balance, [data-bs-theme="dark"] .flow-progress { background: #283042; color: #e5e7eb; }
.flow-steps li { display: flex; }
.flow-step { height: 100%; }
@media (max-width: 991.98px) { .flow-txt b { line-height: 1.25; } .flow-step { justify-content: flex-start; } }
.flow-qr { position: relative; background-blend-mode: normal; background-color: #fff;
  background-image: linear-gradient(45deg, #111827 25%, transparent 25%, transparent 75%, #111827 75%), linear-gradient(45deg, #111827 25%, transparent 25%, transparent 75%, #111827 75%);
  background-size: 10px 10px, 10px 10px; background-position: 0 0, 5px 5px; }
.flow-qr::before, .flow-qr::after { content: ""; position: absolute; width: 20px; height: 20px; background: #fff; border: 5px solid #111827; box-shadow: 0 0 0 3px #fff; }
.flow-qr::before { top: 0; left: 0; }
.flow-qr::after { bottom: 0; right: 0; }
.flow-badges span { min-width: 96px; text-align: center; }
/* detail pesanan yang baru dibuat */
.order-created { position: relative; padding: 16px 44px 16px 18px; border-radius: 14px; }
.order-created > .btn-close { position: absolute; top: 14px; right: 14px; }
.order-created-head { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.order-created-head > i { font-size: 20px; line-height: 1.2; }
.order-created-list { list-style: none; margin: 12px 0 0; padding: 0 0 0 30px; }
.order-created-list li { display: flex; gap: 8px; padding: 3px 0; line-height: 1.45; }
.order-created-list li > span:first-child { flex: 0 0 120px; opacity: .8; }
.order-created-list li > span:first-child::after { content: ":"; }
.order-created-table { margin: 12px 0 0; background: var(--bs-body-bg); border-radius: 10px; }
.order-created-table .table { margin: 0; }
@media (max-width: 575.98px) { .order-created-list { padding-left: 0; } .order-created-list li > span:first-child { flex-basis: 108px; } }
/* petunjuk lampiran gambar tiket: ringkas, warna netral mengikuti tema */
.attach-hint { display: flex; gap: 8px; align-items: baseline; padding: 7px 12px; margin: 0 0 12px; border: 1px dashed var(--bs-border-color); border-radius: 10px; background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); font-size: 13px; line-height: 1.6; }
.attach-hint > i { font-size: 14px; color: var(--bs-body-color); }
.attach-hint b { color: var(--bs-body-color); font-weight: 600; margin-right: 4px; }
.attach-step { display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; white-space: nowrap; }
.attach-step em { font-style: normal; display: inline-flex; width: 16px; height: 16px; border-radius: 50%; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; background: var(--bs-body-color); color: var(--bs-body-bg); }
.attach-hint a { color: var(--bs-body-color); font-weight: 600; }
.chat-text a { word-break: break-all; }

/* dasbor: ponsel = statistik, layanan, promosi, berita; desktop = dua kolom */
.dash-grid { display: flex; flex-direction: column; gap: 1rem; }
.dash-col { display: contents; }
.dash-stats { order: 1; } .dash-svc { order: 2; } .dash-promo { order: 3; } .dash-news { order: 4; }
@media (min-width: 1200px) {
  .dash-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .dash-col { display: flex; flex-direction: column; gap: 1rem; }
}
#newsPopup .news-item:last-child { margin-bottom: 0; }
/* halaman Kontak Kami */
.contact-card { color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.contact-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(17,24,39,.09); color: inherit; }
.contact-card .card-body { padding: 22px; }
.contact-ic { display: inline-flex; width: 48px; height: 48px; border-radius: 14px; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px; color: #fff; background: #374151; }
.contact-card.is-wa .contact-ic { background: #25d366; }
.contact-card.is-mail .contact-ic { background: #1f4e79; }
.contact-val { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.contact-tips { list-style: none; padding: 0; margin: 0; }
.contact-tips li { display: flex; gap: 10px; padding: 7px 0; line-height: 1.5; }
.contact-tips li > i { color: var(--bs-secondary-color); margin-top: 2px; }
/* halaman Sewa SMM Panel */
.rent-plan { border: 1px solid var(--bs-border-color); }
.rent-plan.is-platinum { border: 2px solid #111827; }
.rent-ic { display: inline-flex; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center; font-size: 20px; color: #fff; background: linear-gradient(135deg, #d4a017, #a77b06); }
.rent-plan.is-platinum .rent-ic { background: linear-gradient(135deg, #6b7280, #111827); }
.rent-badge { background: #111827; color: #fff; }
.rent-price { font-size: 32px; font-weight: 800; margin: 10px 0 4px; }
.rent-price small { font-size: 15px; font-weight: 500; color: var(--bs-secondary-color); margin-left: 4px; }
.rent-year { margin-bottom: 14px; line-height: 1.6; }
.rent-features { list-style: none; padding: 0; margin: 0 0 20px; }
.rent-features li { display: flex; gap: 8px; padding: 5px 0; line-height: 1.5; }
.rent-features li > i { color: #16a34a; margin-top: 2px; }
[data-bs-theme=dark] .rent-plan.is-platinum { border-color: #9ca3af; }

/* Admin -> Sistem: pengaturan email peringatan cron */
.cron-alert-form { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); font-size: 14px; }

/* impor artikel massal dari ZIP */
.zip-table td { font-size: 14px; }
.zip-table thead th { position: sticky; top: 0; background: var(--bs-body-bg); z-index: 1; }
.zip-thumb { width: 64px; height: 34px; object-fit: cover; border-radius: 4px; display: block; }

/* langkah pembayaran deposit manual */
.pay-steps { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.pay-steps li { margin-bottom: 4px; }

/* grup menu admin (dropdown) */
.nav-group { margin: 0; }
.nav-group > summary { list-style: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group-head { display: flex; align-items: center; gap: 12px; margin: 1px 8px; padding: 9px 12px; border-radius: 7px; cursor: pointer; color: var(--sidebar-text); font-weight: 600; user-select: none; }
.nav-group-head:hover { color: #111827; background: #e9eaee; }
.nav-group-head > .bi:first-child { font-size: 15px; width: 18px; text-align: center; }
.nav-group-head .nav-badge { margin-left: auto; }
.nav-caret { margin-left: auto; font-size: 12px; transition: transform .15s ease; }
.nav-group-head .nav-badge + .nav-caret { margin-left: 8px; }
.nav-group[open] > .nav-group-head .nav-caret { transform: rotate(180deg); }
.nav-group-body { padding-left: 14px; }
.nav-group-body .nav-link-s { font-size: 14px; padding-top: 7px; padding-bottom: 7px; }
[data-bs-theme=dark] .nav-group-head:hover { color: #fff; background: rgba(255,255,255,.08); }

/* Admin → Pesanan Ditolak Provider */
.rej-top { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--bs-border-color); }
.rej-top:last-child { border-bottom: 0; }
.rej-reason { word-break: break-word; font-size: 13px; }
.alert code { color: inherit; font-weight: 600; }
@media (max-width: 575.98px) { td .small, td.small { font-size: 12px; } }

/* target pesanan: satu baris rata kiri, sisa yang terlalu panjang dipotong "…" (teks lengkap di tooltip & tombol salin) */
.target-text { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; }
.target-copy { min-width: 0; }

/* QRIS bernominal di invoice */
.qris-box { width: 100%; max-width: 280px; }
.qris-canvas { display: block; width: 100%; height: auto; background: #fff; border-radius: 12px; }
