/* =========================================================
   Tema modern: dominan putih, aksen biru (selaras logo)
   ========================================================= */
:root {
  --brand: #1d63ed;
  --brand-2: #4f8bff;
  --brand-dark: #0f3fa8;
  --brand-soft: #edf3ff;
  --brand-softer: #f6f9ff;
  --accent: #22b07d;
  --ink: #0f1b33;
  --ink-2: #3b4a66;
  --muted: #7a879e;
  --line: #edf1f7;
  --bg: #f7f9fc;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 51, .04), 0 1px 1px rgba(15, 27, 51, .02);
  --shadow: 0 10px 30px -12px rgba(15, 27, 51, .12), 0 2px 6px rgba(15, 27, 51, .04);
  --shadow-brand: 0 10px 24px -8px rgba(29, 99, 237, .55);
  --grad: linear-gradient(135deg, #1d63ed 0%, #3b82f6 55%, #60a5fa 100%);

  --bs-primary: #1d63ed;
  --bs-primary-rgb: 29, 99, 237;
  --bs-link-color: #1d63ed;
  --bs-link-color-rgb: 29, 99, 237;
  --bs-link-hover-color: #0f3fa8;
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-color: #0f1b33;
  --bs-border-color: #e6ebf3;
  --bs-border-radius: 12px;
  --bs-border-radius-sm: 9px;
  --bs-border-radius-lg: 14px;
}
body { background: var(--bg); color: var(--ink); font-size: .9rem; letter-spacing: -.005em; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
::selection { background: #cfe0ff; }
* { scrollbar-width: thin; scrollbar-color: #cdd6e4 transparent; }

/* ---------- Tombol ---------- */
.btn { font-weight: 600; border-radius: 11px; padding: .5rem 1rem; transition: all .15s ease; }
.btn-sm { border-radius: 9px; padding: .32rem .7rem; font-size: .8rem; }
.btn-lg { border-radius: 14px; padding: .8rem 1.3rem; font-size: 1rem; }
.btn-primary { background: var(--grad); border: 0; box-shadow: var(--shadow-brand); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: linear-gradient(135deg, #1656d6 0%, #2f74ec 60%, #4f95fb 100%); transform: translateY(-1px); color: #fff; }
.btn-primary:disabled { background: #a9c4f7; box-shadow: none; }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: #cddcfb; --bs-btn-bg: #fff; --bs-btn-hover-bg: var(--brand-soft);
  --bs-btn-hover-color: var(--brand-dark); --bs-btn-hover-border-color: #b5cbf8; --bs-btn-active-bg: #dfe9ff; --bs-btn-active-color: var(--brand-dark); }
.btn-outline-danger { --bs-btn-border-color: #f6d0d0; --bs-btn-hover-bg: #fff0f0; --bs-btn-hover-color: #c62828; --bs-btn-hover-border-color: #f1b4b4; }
.btn-outline-secondary { --bs-btn-color: var(--ink-2); --bs-btn-border-color: #e1e7f0; --bs-btn-hover-bg: #f3f6fb; --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: #d5dde9; }
.btn-outline-warning { --bs-btn-color: #b26a00; --bs-btn-border-color: #f6dfb8; --bs-btn-hover-bg: #fff6e6; --bs-btn-hover-color: #8a5200; --bs-btn-hover-border-color: #f1cf96; }
.btn-light { background: #f2f5fa; border-color: #f2f5fa; color: var(--ink-2); }
.btn-light:hover { background: #e8edf5; border-color: #e8edf5; }
.btn-icon { width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center; border-radius: 10px; }

/* ---------- Form ---------- */
.form-label { font-weight: 600; font-size: .82rem; color: var(--ink-2); margin-bottom: .4rem; }
.form-control, .form-select { border-color: #e3e9f2; background-color: #fbfcfe; border-radius: 11px; padding: .55rem .85rem; font-size: .9rem; transition: all .15s; }
.form-control-sm, .form-select-sm { border-radius: 9px; padding: .35rem .65rem; font-size: .82rem; }
.form-control:hover, .form-select:hover { border-color: #d3dceb; }
.form-control:focus, .form-select:focus { background: #fff; border-color: #8fb3fb; box-shadow: 0 0 0 4px rgba(29, 99, 237, .12); }
.form-check-input { border-color: #c9d3e3; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(29, 99, 237, .14); border-color: #8fb3fb; }
.input-group-text { background: #f3f6fb; border-color: #e3e9f2; color: var(--muted); }
.input-group > .btn { box-shadow: none; transform: none; }

/* ---------- Layout ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: 268px; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; z-index: 1040; transition: transform .25s ease; }
.sidebar .brand { display: block; padding: 22px 22px 16px; }
.sidebar .brand img { width: 100%; max-width: 205px; display: block; }
.sidebar .nav { padding: 6px 14px 14px; overflow-y: auto; flex: 1; gap: 2px; }
.sidebar .nav-label { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: #a3aec1; padding: 16px 12px 8px; font-weight: 700; }
.sidebar .nav-link { display: flex; align-items: center; gap: 12px; color: var(--ink-2); border-radius: 12px; padding: 9px 12px; font-weight: 600; font-size: .87rem; position: relative; }
.sidebar .nav-link .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #f3f6fb; color: #7d8aa3; font-size: 1rem; transition: all .15s; }
.sidebar .nav-link:hover { background: var(--brand-softer); color: var(--brand); }
.sidebar .nav-link:hover .ic { background: #e3ecff; color: var(--brand); }
.sidebar .nav-link.active { background: var(--brand-soft); color: var(--brand-dark); }
.sidebar .nav-link.active .ic { background: var(--grad); color: #fff; box-shadow: 0 6px 14px -6px rgba(29, 99, 237, .7); }
.sidebar .nav-link.active::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand); }
.sidebar-cta { margin: 0 14px 14px; padding: 16px; border-radius: 16px; background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.sidebar-cta::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .12); right: -40px; top: -40px; }
.sidebar-cta .t { font-weight: 700; font-size: .9rem; }
.sidebar-cta .s { font-size: .75rem; opacity: .85; margin-bottom: 10px; }
.sidebar-cta .btn { background: #fff; color: var(--brand-dark); box-shadow: none; position: relative; z-index: 1; }
.sidebar-cta .btn:hover { background: #f0f5ff; }

.main { margin-left: 268px; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: 14px; background: rgba(247, 249, 252, .82);
  backdrop-filter: saturate(180%) blur(12px); padding: 16px 32px; }
.page-head .crumb { font-size: .75rem; color: var(--muted); font-weight: 500; }
.page-head .crumb i { font-size: .65rem; margin: 0 4px; }
.page-title { font-size: 1.35rem; font-weight: 800; margin: 0; color: var(--ink); letter-spacing: -.02em; }
.topbar .clock { font-size: .8rem; color: var(--muted); font-weight: 500; }
.btn-user { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 5px 12px 5px 5px; box-shadow: var(--shadow-sm); font-weight: 600; }
.btn-user:hover { border-color: #dbe3ef; }
.btn-user .who { text-align: left; line-height: 1.15; }
.btn-user .who small { display: block; color: var(--muted); font-weight: 500; font-size: .7rem; }
.avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.dropdown-menu { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; }
.dropdown-item { border-radius: 9px; padding: 8px 12px; font-weight: 500; }
.dropdown-item:hover { background: var(--brand-softer); }
.content { padding: 8px 32px 48px; }
.sidebar-backdrop { display: none; }
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  body.sidebar-open .sidebar { transform: none; box-shadow: 0 0 60px rgba(15, 27, 51, .2); }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 27, 51, .35); z-index: 1035; }
  .main { margin-left: 0; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
  .topbar .clock { display: none; }
}

/* ---------- Kartu ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff; }
.card-header { background: transparent; border-bottom: 1px solid var(--line); font-weight: 700; padding: 16px 20px; font-size: .95rem; color: var(--ink); }
.card-header:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.card-header .step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-size: .78rem; margin-right: 8px; }
.card-body { padding: 20px; }
.card-footer { background: #fff; border-top: 1px solid var(--line); padding: 14px 20px; border-radius: 0 0 var(--radius) var(--radius) !important; }
.help { color: var(--muted); font-size: .78rem; }
code { color: #c2185b; }
code.tag { background: var(--brand-soft); color: var(--brand-dark); padding: 2px 7px; border-radius: 6px; font-size: .78rem; font-weight: 600; }
.tag-btn { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .74rem; background: var(--brand-softer); border: 1px dashed #c7d8fb; color: var(--brand-dark); border-radius: 8px; }
.tag-btn:hover { background: var(--brand-soft); border-style: solid; color: var(--brand-dark); }
.code-area { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .8rem; background: #0f172a !important; color: #dbe7ff !important; border-color: #0f172a !important; border-radius: 14px; line-height: 1.6; }
.code-area:focus { box-shadow: 0 0 0 4px rgba(29, 99, 237, .25) !important; }

/* Hero dashboard */
.hero { position: relative; overflow: hidden; border-radius: 22px; background: var(--grad); color: #fff; padding: 28px 30px; box-shadow: 0 20px 40px -20px rgba(29, 99, 237, .65); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.hero::before { width: 320px; height: 320px; right: -80px; top: -140px; }
.hero::after { width: 200px; height: 200px; right: 160px; bottom: -120px; background: rgba(255, 255, 255, .07); }
.hero h2 { font-weight: 800; letter-spacing: -.02em; font-size: 1.6rem; margin-bottom: 6px; position: relative; z-index: 1; }
.hero p { opacity: .9; margin-bottom: 18px; max-width: 560px; position: relative; z-index: 1; }
.hero .btn { position: relative; z-index: 1; }
.hero .btn-white { background: #fff; color: var(--brand-dark); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .35); }
.hero .btn-white:hover { background: #f2f6ff; transform: translateY(-1px); }
.hero .btn-ghost { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .24); }
.hero-art { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.hero-art .mail { background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 14px; padding: 10px 14px; width: 250px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .35); display: flex; gap: 10px; align-items: center; font-size: .78rem; }
.hero-art .mail:nth-child(2) { margin-left: 34px; opacity: .92; }
.hero-art .mail:nth-child(3) { margin-left: 12px; opacity: .8; }
.hero-art .mail .dot { width: 32px; height: 32px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.hero-art .mail b { display: block; font-size: .8rem; }
.hero-art .mail span { color: var(--muted); }
@media (max-width: 1199.98px) { .hero-art { display: none; } }

/* Stat */
.stat-card { padding: 18px 20px; display: flex; gap: 14px; align-items: center; height: 100%; transition: transform .15s, box-shadow .15s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card .ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.stat-card .num { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat-card .lbl { color: var(--muted); font-size: .78rem; font-weight: 500; }
.ico-blue { background: #eaf1ff; color: #1d63ed; }
.ico-green { background: #e7f8f0; color: #18a06d; }
.ico-amber { background: #fff4e3; color: #d98a04; }
.ico-violet { background: #f1ecff; color: #7247e8; }
.ico-rose { background: #ffecef; color: #e0435f; }
.mini-progress { height: 6px; border-radius: 99px; background: #eef2f8; overflow: hidden; }
.mini-progress > div { height: 100%; border-radius: 99px; background: var(--grad); }

.quick { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: all .15s; }
.quick:hover { border-color: #cfdcf6; background: var(--brand-softer); transform: translateY(-1px); color: var(--ink); }
.quick .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.quick b { display: block; font-size: .86rem; }
.quick span { color: var(--muted); font-size: .75rem; }
.quick .bi-arrow-right-short { margin-left: auto; color: #a7b3c7; font-size: 1.3rem; }

/* Badge lembut */
.badge { font-weight: 600; border-radius: 8px; padding: .38em .62em; letter-spacing: .01em; }
.b-soft { display: inline-flex; align-items: center; gap: 5px; }
.b-soft::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-blue { background: #eaf1ff; color: #1d4fd0; }
.b-green { background: #e5f7ef; color: #11855a; }
.b-amber { background: #fff3df; color: #b26a00; }
.b-red { background: #ffeceb; color: #c62828; }
.b-gray { background: #eff2f7; color: #5b6880; }
.b-dark { background: #e6e9ef; color: #2b3445; }

/* Tabel */
.table { --bs-table-hover-bg: #f8faff; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .8rem 1rem; border-bottom-color: var(--line); }
.table thead th { background: #f8fafd; color: #8592a8; font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-sm > :not(caption) > * > * { padding: .55rem .8rem; }
.card > .table-responsive:last-child .table tr:last-child td { border-bottom: 0; }
.table-responsive { border-radius: 0 0 var(--radius) var(--radius); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty i { font-size: 2.2rem; color: #c3cfe2; display: block; margin-bottom: 8px; }

/* Nav tabs modern (segmented) */
.nav-tabs { border: 0; gap: 6px; background: #f2f5fa; padding: 5px; border-radius: 13px; display: inline-flex; }
.nav-tabs .nav-link { border: 0; border-radius: 10px; color: var(--ink-2); font-weight: 600; padding: .45rem 1rem; margin: 0; }
.nav-tabs .nav-link:hover { color: var(--brand); }
.nav-tabs .nav-link.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm), 0 2px 8px rgba(15, 27, 51, .06); }
.card-header-tabs { margin: 0; }

.progress { background: #eef2f8; border-radius: 99px; }
.progress-bar { background: var(--grad); border-radius: 99px; }
.alert { border-radius: 14px; border: 0; }
.alert-info { background: #eef5ff; color: #1f4e9c; }
.alert-warning { background: #fff6e8; color: #8a5600; }
.alert-danger { background: #fff0f0; color: #b3261e; }
.alert-success { background: #eafaf2; color: #0f7a51; }
.modal-content { border: 0; border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(15, 27, 51, .35); }
.modal-header { border-bottom: 1px solid var(--line); padding: 18px 22px; }
.modal-title { font-weight: 800; letter-spacing: -.01em; }
.modal-footer { border-top: 1px solid var(--line); }
.toast { border-radius: 12px; }

/* ---------- Login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.auth-side { position: relative; overflow: hidden; background: var(--grad); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; }
.auth-side::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255, 255, 255, .08); right: -180px; top: -160px; }
.auth-side::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, .06); left: -140px; bottom: -160px; }
.auth-side .chip { display: inline-flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); padding: 6px 12px; border-radius: 99px; font-size: .78rem; font-weight: 600; width: fit-content; }
.auth-side h1 { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 22px 0 14px; max-width: 480px; position: relative; z-index: 1; }
.auth-side p { opacity: .88; max-width: 440px; position: relative; z-index: 1; }
.auth-feats { margin-top: auto; display: grid; gap: 12px; position: relative; z-index: 1; max-width: 440px; }
.auth-feat { display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 12px 14px; backdrop-filter: blur(4px); }
.auth-feat i { width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--brand); display: grid; place-items: center; font-size: 1.05rem; flex: none; }
.auth-feat b { display: block; font-size: .88rem; }
.auth-feat span { font-size: .76rem; opacity: .85; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-form { width: 100%; max-width: 380px; }
.auth-form .logo { width: 230px; margin-bottom: 30px; }
.auth-form h2 { font-weight: 800; letter-spacing: -.02em; font-size: 1.6rem; margin-bottom: 4px; }
.auth-form .sub { color: var(--muted); margin-bottom: 26px; }
.auth-form .form-control { padding: .72rem .95rem; }
.auth-form .input-icon { position: relative; }
.auth-form .input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9aa7bd; z-index: 5; }
.auth-form .input-icon .form-control { padding-left: 2.6rem; }
.auth-foot { color: var(--muted); font-size: .76rem; margin-top: 26px; text-align: center; }
@media (max-width: 991.98px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }
/* kartu sederhana (unsubscribe, installer) */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(1200px 500px at 50% -10%, #e6efff 0%, #fff 60%); padding: 24px; }
.login-card { width: 100%; max-width: 420px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); padding: 36px 32px; }
.login-card .logo { display: block; width: 100%; max-width: 250px; margin: 0 auto 18px; }
.login-card .sub { text-align: center; color: var(--muted); margin-bottom: 22px; }

/* ---------- Broadcast ---------- */
.prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; max-height: 340px; overflow: auto; padding: 2px; }
.prov-grid label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer; margin: 0; border: 1px solid var(--line); background: #fff; transition: all .12s; font-weight: 500; }
.prov-grid label:hover { border-color: #cddcfb; background: var(--brand-softer); }
.prov-grid label:has(input:checked) { border-color: #9fbefb; background: var(--brand-soft); color: var(--brand-dark); box-shadow: 0 0 0 3px rgba(29, 99, 237, .08); }
.prov-grid .count { margin-left: auto; color: var(--muted); font-size: .72rem; background: #f2f5fa; border-radius: 6px; padding: 1px 7px; font-weight: 600; }
.prov-grid label:has(input:checked) .count { background: #fff; color: var(--brand); }
.target-opt { display: flex; gap: 10px; flex-wrap: wrap; }
.target-opt label { flex: 1; min-width: 170px; border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; transition: all .12s; }
.target-opt label:hover { background: var(--brand-softer); }
.target-opt label:has(input:checked) { border-color: #9fbefb; background: var(--brand-soft); }
.target-opt b { display: block; font-size: .85rem; }
.target-opt span { font-size: .74rem; color: var(--muted); }
.exclude-list { max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
.exclude-list label { display: flex; gap: 10px; padding: 9px 14px; border-bottom: 1px solid #f2f5f9; margin: 0; cursor: pointer; font-size: .84rem; }
.exclude-list label:hover { background: var(--brand-softer); }
.exclude-list label.is-excluded { background: #fff6f6; }
.exclude-list label.is-excluded .fw-semibold { text-decoration: line-through; color: #c0392b; }
.summary-box { background: linear-gradient(180deg, #f4f8ff 0%, #edf3ff 100%); border: 1px solid #dde8fd; border-radius: 16px; padding: 18px; }
.summary-big { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.preview-frame { width: 100%; height: 540px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.mail-head { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fff; }
.mail-head .avatar { width: 40px; height: 40px; border-radius: 50%; }
.sticky-side { position: sticky; top: 92px; }
.att-item { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 13px; padding: 11px 14px; margin-bottom: 8px; cursor: pointer; transition: all .12s; }
.att-item:hover { background: var(--brand-softer); }
.att-item:has(input:checked) { border-color: #9fbefb; background: var(--brand-soft); }
.att-item .fi { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 1.15rem; flex: none; }

/* ---------- Editor posisi PDF ---------- */
.pdf-stage-wrap { overflow: auto; background: repeating-linear-gradient(45deg, #f1f5fb, #f1f5fb 10px, #eef2f9 10px, #eef2f9 20px); border-radius: 14px; border: 1px solid var(--line); padding: 20px; max-height: 78vh; }
.pdf-stage { position: relative; margin: 0 auto; box-shadow: 0 12px 30px -10px rgba(15, 27, 51, .3); background: #fff; cursor: crosshair; border-radius: 4px; }
.pdf-stage canvas { display: block; border-radius: 4px; }
.pdf-marker { position: absolute; border: 1.5px dashed var(--brand); background: rgba(29, 99, 237, .07); color: #0f3fa8; padding: 0 3px; white-space: nowrap; cursor: move; line-height: 1.3; border-radius: 4px; user-select: none; }
.pdf-marker.selected { border-style: solid; background: rgba(29, 99, 237, .15); box-shadow: 0 0 0 3px rgba(29, 99, 237, .2); }
.field-row { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; background: #fff; transition: all .12s; }
.field-row.selected { border-color: #9fbefb; box-shadow: 0 0 0 3px rgba(29, 99, 237, .1); }
.dropzone-hint { border: 2px dashed #cfdcf6; border-radius: 14px; padding: 18px; text-align: center; background: var(--brand-softer); color: var(--ink-2); }

/* ---------- DataTables ---------- */
div.dt-container { padding: 0; }
div.dt-container .dt-layout-row { margin: 0 !important; padding: 0 20px; }
div.dt-container .dt-layout-row:first-child { padding-top: 16px; padding-bottom: 6px; }
div.dt-container .dt-layout-row:last-child { padding-top: 10px; padding-bottom: 16px; }
div.dt-container .dt-layout-table { padding: 0 !important; overflow-x: auto; }
div.dt-container .dt-search input { border-radius: 11px; padding: .45rem .85rem; min-width: 260px; background: #fbfcfe; border-color: #e3e9f2; }
div.dt-container .dt-length select { border-radius: 10px; }
div.dt-container .dt-info { color: var(--muted); font-size: .8rem; }
div.dt-container .dt-paging .pagination { gap: 4px; }
div.dt-container .dt-paging .page-link { border-radius: 9px !important; border: 1px solid var(--line); color: var(--ink-2); min-width: 34px; text-align: center; font-weight: 600; }
div.dt-container .dt-paging .page-item.active .page-link { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--shadow-brand); }
div.dt-processing > div:last-child > div { background: var(--brand); }
table.dataTable > thead > tr > th { border-bottom: 1px solid var(--line) !important; }
#tbl td:nth-child(2) { min-width: 220px; }
.stat-card { flex-direction: row; }
.hero { min-height: 250px; padding: 34px 34px; display: flex; flex-direction: column; justify-content: center; }
.hero h2, .hero p, .hero .d-flex { max-width: 560px; }
.hero-art { gap: 8px; }
.hero-art .mail { padding: 9px 12px; width: 240px; }
#tbl { font-size: .84rem; }
#tbl td { vertical-align: middle; }
#tbl .em { word-break: break-all; }

/* ---------- Installer ---------- */
.install-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px;
  background: radial-gradient(900px 420px at 50% -5%, #dfeaff 0%, rgba(255,255,255,0) 70%), #fff; }
.install-card { width: 100%; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 34px 36px; }
.install-head { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.install-logo { width: 220px; }
.install-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: .8rem; font-weight: 600; color: var(--muted); }
.install-steps li { display: flex; align-items: center; gap: 7px; }
.install-steps li:not(:last-child)::after { content: ""; width: 26px; height: 2px; background: var(--line); margin-left: 4px; border-radius: 2px; }
.install-steps span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #f0f3f8; font-size: .72rem; }
.install-steps li.active { color: var(--brand-dark); }
.install-steps li.active span { background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); }
.install-steps li.done span { background: #e5f7ef; color: #11855a; }
.install-steps li.done { color: #11855a; }
.install-card h2 { letter-spacing: -.02em; font-size: 1.45rem; }
.req-ok { display: flex; gap: 8px; align-items: center; background: #eafaf2; color: #0f7a51; border-radius: 12px; padding: 10px 14px; font-size: .84rem; font-weight: 600; }
.req-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.req-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: .86rem; }
.req-list li.ok i { color: #18a06d; }
.req-list li.bad { background: #fff5f5; border-color: #f7d4d4; }
.req-list li.bad i { color: #d93025; }
.adv { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.adv summary { cursor: pointer; font-weight: 600; font-size: .86rem; color: var(--ink-2); }
.install-ok { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-size: 2.2rem; color: #fff;
  background: linear-gradient(135deg, #22b07d, #34d399); box-shadow: 0 14px 30px -10px rgba(34, 176, 125, .6); }
.cred { border: 1px solid #dde8fd; background: var(--brand-softer); border-radius: 16px; padding: 6px 18px; }
.cred-row { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px dashed #d6e2f8; font-size: .9rem; }
.cred-row:last-child { border-bottom: 0; }
.cred-row span { color: var(--muted); width: 120px; flex: none; }
.cred-row b { word-break: break-all; }
.install-foot { color: var(--muted); font-size: .76rem; margin-top: 18px; }

/* Sidebar: menu selalu menurun ke bawah & bisa di-scroll (tidak melebar ke samping) */
.sidebar .nav { flex-wrap: nowrap !important; flex-direction: column; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.sidebar .nav-link { flex: none; white-space: nowrap; }
.sidebar .nav-label { flex: none; }
@media (max-height: 760px) { .sidebar-cta { display: none; } .sidebar .brand { padding: 14px 22px 8px; } .sidebar .nav-link { padding: 6px 12px; } .sidebar .nav-link .ic { width: 28px; height: 28px; } }

/* WhatsApp */
.btn-success-grad { background: linear-gradient(135deg, #16a34a 0%, #22c55e 60%, #4ade80 100%); color: #fff; border: 0; box-shadow: 0 10px 24px -8px rgba(22, 163, 74, .55); }
.btn-success-grad:hover, .btn-success-grad:focus { color: #fff; transform: translateY(-1px); background: linear-gradient(135deg, #15803d 0%, #16a34a 60%, #22c55e 100%); }
.btn-success-grad:disabled { background: #a7d7b8; box-shadow: none; color: #fff; }
.wa-screen { background: #efeae2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='%23d9d2c7'/%3E%3C/svg%3E"); padding: 18px 14px; border-radius: 0 0 var(--radius) var(--radius); min-height: 220px; }
.wa-bubble { background: #d9fdd3; border-radius: 12px 0 12px 12px; padding: 8px 10px 6px; margin-left: 28px; font-size: .84rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.08); position: relative; word-wrap: break-word; }
.wa-bubble::after { content: ""; position: absolute; right: -7px; top: 0; border-left: 8px solid #d9fdd3; border-bottom: 10px solid transparent; }
.wa-file { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.05); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; font-weight: 600; font-size: .8rem; }
.wa-file i { color: #e0435f; font-size: 1.4rem; }
.wa-time { text-align: right; font-size: .68rem; color: #667781; margin-top: 2px; }
.wa-time i { color: #53bdeb; }
.wa-quote { background: #f6faf6; border-left: 4px solid #22c55e; border-radius: 10px; padding: 12px 14px; font-size: .86rem; max-height: 160px; overflow: auto; }
.ico-wa { background: #e5f7ec; color: #16a34a; }
/* menu lebih rapat agar semua (termasuk Pengaturan) terlihat tanpa scroll di layar laptop */
.sidebar .brand { padding: 18px 22px 10px; }
.sidebar .nav { padding-bottom: 24px; }
.sidebar .nav-label { padding: 12px 12px 5px; }
.sidebar .nav-link { padding: 6px 10px; font-size: .85rem; }
.sidebar .nav-link .ic { width: 30px; height: 30px; border-radius: 9px; font-size: .95rem; }
.sidebar .nav-link.active::before { top: 8px; bottom: 8px; }
@media (max-height: 860px) { .sidebar .brand { padding: 12px 22px 4px; } .sidebar .brand img { max-width: 170px; } .sidebar .nav-label { padding: 7px 12px 2px; } .sidebar .nav-link { padding: 3px 10px; } .sidebar .nav-link .ic { width: 26px; height: 26px; font-size: .85rem; } }
.pdf-auto { position: absolute; border: 1.5px dashed #18a06d; background: rgba(24, 160, 109, .08); border-radius: 3px; pointer-events: none; }
.launch-card { border: 1px solid #cfdcf6; background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%); }
.btn-danger { --bs-btn-bg: #e5484d; --bs-btn-border-color: #e5484d; --bs-btn-hover-bg: #c93a3f; --bs-btn-hover-border-color: #c93a3f; }
