/* =====================================================================
   KID Banjar (Klinik Industri Digital) — Tema kustom di atas AdminLTE 4 / Bootstrap 5
   ===================================================================== */
/* Palet: Navy (kepercayaan & profesional) · Royal Blue (digital) · Cyan (inovasi) · Amber (aksen industri) */
:root,
[data-bs-theme=light] {
  --brand: #2563eb;
  --brand-rgb: 37, 99, 235;
  --brand-600: #1d4ed8;
  --brand-dark: #1e3a8a;
  --brand-50: #eff6ff;
  --navy: #0b1f4d;
  --cyan: #06b6d4;
  --accent: #f59e0b;
  --accent-rgb: 245, 158, 11;
  --gold: #fcd34d;
  --grad-brand: linear-gradient(120deg, #0b1f4d 0%, #1d4ed8 55%, #0891b2 100%);
  --bs-primary: var(--brand);
  --bs-primary-rgb: var(--brand-rgb);
  --bs-primary-text-emphasis: #1e3a8a;
  --bs-primary-bg-subtle: #dbeafe;
  --bs-primary-border-subtle: #bfdbfe;
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: var(--brand-rgb);
  --bs-link-hover-color: var(--brand-dark);
  --bs-link-hover-color-rgb: 30, 58, 138;
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-size: .925rem;
  --bs-border-radius: .6rem;
  --bs-border-radius-lg: .9rem;
  --bs-tertiary-bg: #f3f6fb;
  --bs-tertiary-bg-rgb: 243, 246, 251;
  --card-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .05);
  --soft-border: #e5eaf2;
}
[data-bs-theme=dark] {
  --brand: #3b82f6;
  --brand-rgb: 59, 130, 246;
  --brand-dark: #2563eb;
  --brand-50: rgba(59, 130, 246, .08);
  --bs-primary: var(--brand);
  --bs-primary-rgb: var(--brand-rgb);
  --bs-primary-text-emphasis: #93c5fd;
  --bs-primary-bg-subtle: rgba(59, 130, 246, .15);
  --bs-link-color: #60a5fa;
  --bs-link-color-rgb: 96, 165, 250;
  --bs-link-hover-color: #93c5fd;
  --bs-body-bg: #0d1322;
  --bs-body-bg-rgb: 13, 19, 34;
  --bs-tertiary-bg: #090e1a;
  --bs-tertiary-bg-rgb: 9, 14, 26;
  --bs-secondary-bg: #131b2e;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --soft-border: #1f2a40;
}

body { font-family: var(--bs-body-font-family); -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
a { text-decoration: none; }
.fw-extrabold { font-weight: 800; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: .6rem; }
.btn-primary {
  --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark);
  --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand);
}
.btn-outline-primary {
  --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark);
}
.btn-accent { --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-color: #1f1300; --bs-btn-hover-bg: #d97706; --bs-btn-hover-border-color: #d97706; --bs-btn-hover-color: #fff; }
.btn-light { --bs-btn-bg: #f1f5f9; --bs-btn-border-color: #f1f5f9; --bs-btn-hover-bg: #e2e8f0; }
[data-bs-theme=dark] .btn-light { --bs-btn-bg: #1f272c; --bs-btn-border-color: #1f272c; --bs-btn-color: #e2e8f0; --bs-btn-hover-bg: #2a343a; --bs-btn-hover-color: #fff; }
.btn-icon { width: 2.1rem; height: 2.1rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.btn-soft-primary { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); border: 0; }
.btn-soft-primary:hover { background: var(--brand); color: #fff; }
.btn-soft-danger { background: rgba(220, 53, 69, .1); color: #dc3545; border: 0; }
.btn-soft-danger:hover { background: #dc3545; color: #fff; }
.btn-soft-secondary { background: rgba(100, 116, 139, .12); color: #475569; border: 0; }
[data-bs-theme=dark] .btn-soft-secondary { color: #cbd5e1; }
.btn-soft-secondary:hover { background: #64748b; color: #fff; }

.form-control, .form-select { border-radius: .6rem; border-color: var(--soft-border); padding: .55rem .8rem; }
.form-control:focus, .form-select:focus { border-color: rgba(var(--brand-rgb), .6); box-shadow: 0 0 0 .2rem rgba(var(--brand-rgb), .15); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-label { font-weight: 600; font-size: .83rem; margin-bottom: .35rem; }
.form-text { font-size: .76rem; }
.input-group-text { border-color: var(--soft-border); }
.required::after { content: " *"; color: #dc3545; }
.page-link { color: var(--brand); border-radius: .45rem !important; margin: 0 2px; border-color: var(--soft-border); }
.page-item.active .page-link { background: var(--brand); border-color: var(--brand); }
.nav-pills .nav-link.active { background: var(--brand); }
.text-primary { color: var(--brand) !important; }
.bg-primary { background-color: var(--brand) !important; }
.text-bg-primary { background-color: var(--brand) !important; }
.progress-bar { background-color: var(--brand); }

/* ---------- Header ---------- */
.app-header { min-height: 3.75rem; backdrop-filter: saturate(180%) blur(8px); }
.header-search { max-width: 420px; }
.header-search .form-control, .header-search .input-group-text { background: var(--bs-tertiary-bg); border-color: transparent; }
.theme-icon-light { display: none; }
[data-bs-theme=dark] .theme-icon-light { display: inline; }
[data-bs-theme=dark] .theme-icon-dark { display: none; }
.user-menu .dropdown-toggle::after { display: none; }

/* ---------- Sidebar ---------- */
.app-sidebar { background: linear-gradient(180deg, #0f2257 0%, #0b1a44 55%, #081233 100%) !important; }
[data-bs-theme=dark] .app-sidebar { background: linear-gradient(180deg, #0a1433 0%, #070e24 100%) !important; }
.app-sidebar .sidebar-brand { border-bottom: 1px solid rgba(255, 255, 255, .08); height: 3.75rem; }
.app-sidebar .brand-link { display: flex; align-items: center; gap: .6rem; }
.app-sidebar .brand-image { width: 34px; height: 34px; max-height: 34px; margin: 0; box-shadow: none !important; }
.app-sidebar .brand-text { color: #fff; font-weight: 500; letter-spacing: .01em; }
.app-sidebar .brand-text b { color: #fcd34d; font-weight: 800; }
.app-sidebar .brand-text { line-height: 1.1; }
.app-sidebar .brand-text small { display: block; font-size: .66rem; color: rgba(255, 255, 255, .6); letter-spacing: .02em; margin-top: 2px; }
.sidebar-menu .nav-header { color: rgba(255, 255, 255, .45) !important; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 1rem 1rem .4rem; }
.sidebar-menu .nav-link { color: rgba(255, 255, 255, .78) !important; border-radius: .6rem; margin: 1px .6rem; width: auto; padding: .55rem .8rem; font-weight: 500; }
.sidebar-menu .nav-link:hover { background: rgba(255, 255, 255, .07) !important; color: #fff !important; }
.sidebar-menu .nav-link.active { background: rgba(255, 255, 255, .14) !important; color: #fff !important; box-shadow: inset 3px 0 0 #fcd34d; }
.sidebar-menu .nav-link p { display: inline-flex; align-items: center; width: calc(100% - 2.2rem); }
.sidebar-menu .nav-badge { font-size: .68rem; }
.sidebar-mini.sidebar-collapse .sidebar-menu .nav-badge { display: none; }

/* ---------- Content ---------- */
.app-content-header { padding: 1.25rem .5rem .5rem; }
.app-content { padding: 0 .5rem 1.5rem; }
.page-title { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.breadcrumb-item + .breadcrumb-item::before { content: "›"; }
.app-footer { background: transparent; border-top: 1px solid var(--soft-border); }

.card { border: 1px solid var(--soft-border); border-radius: var(--bs-border-radius-lg); box-shadow: var(--card-shadow); }
.card > .card-header { background: transparent; border-bottom: 1px solid var(--soft-border); padding: .9rem 1.15rem; }
.card > .card-header .card-title { font-weight: 700; font-size: 1rem; margin: 0; }
.card-body { padding: 1.15rem; }
.card-footer { background: transparent; border-top: 1px solid var(--soft-border); }
.card-title { float: none; }
.card-header.d-flex::after, .card-header.d-flex::before { display: none; }

/* KPI cards */
.stat-card { position: relative; overflow: hidden; height: 100%; transition: transform .15s ease, box-shadow .15s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16, 24, 40, .08); }
.stat-card .stat-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; flex-shrink: 0; }
.stat-card .stat-value { font-size: 1.65rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat-card .stat-label { font-size: .8rem; color: var(--bs-secondary-color); font-weight: 600; }
.stat-card .stat-foot { font-size: .75rem; color: var(--bs-secondary-color); }

.hero-card { background: var(--grad-brand); color: #fff; border: 0; position: relative; overflow: hidden; }
.hero-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 10%, rgba(56, 189, 248, .35), transparent 40%), radial-gradient(circle at 10% 120%, rgba(255, 255, 255, .15), transparent 45%); }
.hero-card > * { position: relative; }
.hero-card .text-white-75 { color: rgba(255, 255, 255, .8); }

.icon-bubble { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }

/* Soft badges */
.badge { font-weight: 600; letter-spacing: .01em; }
[class*="badge-soft-"] { padding: .38em .65em; border-radius: 999px; font-size: .72rem; }
.badge-soft-primary { background: rgba(var(--brand-rgb), .12); color: var(--bs-primary-text-emphasis); }
.badge-soft-success { background: rgba(22, 163, 74, .12); color: #15803d; }
.badge-soft-info { background: rgba(2, 132, 199, .12); color: #0369a1; }
.badge-soft-warning { background: rgba(245, 158, 11, .15); color: #b45309; }
.badge-soft-danger { background: rgba(220, 38, 38, .12); color: #b91c1c; }
.badge-soft-secondary { background: rgba(100, 116, 139, .14); color: #475569; }
.badge-soft-teal { background: rgba(13, 148, 136, .13); color: #0f766e; }
.badge-soft-indigo { background: rgba(79, 70, 229, .12); color: #4338ca; }
[data-bs-theme=dark] .badge-soft-success { color: #4ade80; }
[data-bs-theme=dark] .badge-soft-info { color: #38bdf8; }
[data-bs-theme=dark] .badge-soft-warning { color: #fbbf24; }
[data-bs-theme=dark] .badge-soft-danger { color: #f87171; }
[data-bs-theme=dark] .badge-soft-secondary { color: #cbd5e1; }
[data-bs-theme=dark] .badge-soft-teal { color: #2dd4bf; }
[data-bs-theme=dark] .badge-soft-indigo { color: #a5b4fc; }

/* Avatar */
.avatar { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; flex-shrink: 0; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar-md { width: 42px; height: 42px; font-size: .9rem; border-radius: 12px; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.3rem; border-radius: 16px; }
.avatar-xl { width: 96px; height: 96px; font-size: 2rem; border-radius: 22px; }

/* Tables */
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .75rem .85rem; border-bottom-color: var(--soft-border); }
.table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bs-secondary-color); font-weight: 700; background: var(--bs-tertiary-bg); border-bottom: 0; white-space: nowrap; }
.table thead th:first-child { border-top-left-radius: .6rem; border-bottom-left-radius: .6rem; }
.table thead th:last-child { border-top-right-radius: .6rem; border-bottom-right-radius: .6rem; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: rgba(var(--brand-rgb), .035); }
.sort-link { color: inherit; }
.sort-link:hover { color: var(--brand); }
.cell-title { font-weight: 700; color: var(--bs-emphasis-color); }
.cell-sub { font-size: .78rem; color: var(--bs-secondary-color); }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Mobile: tabel berubah menjadi kartu */
@media (max-width: 767.98px) {
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { border: 1px solid var(--soft-border); border-radius: .9rem; padding: .6rem .85rem; margin-bottom: .75rem; background: var(--bs-body-bg); }
  .table-cards > :not(caption) > * > * { border: 0; padding: .3rem 0; }
  .table-cards td[data-label] { display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
  .table-cards td[data-label]::before { content: attr(data-label); font-weight: 600; font-size: .75rem; color: var(--bs-secondary-color); text-align: left; flex-shrink: 0; }
  .table-cards td.td-main { text-align: left; border-bottom: 1px dashed var(--soft-border); padding-bottom: .55rem; margin-bottom: .25rem; }
  .table-cards td.td-actions { display: flex; justify-content: flex-end; gap: .35rem; border-top: 1px dashed var(--soft-border); margin-top: .25rem; padding-top: .55rem; }
  .table-cards td.td-hide-sm { display: none; }
  .page-title { font-size: 1.25rem; }
  .app-content-header { padding-top: 1rem; }
  .page-actions .btn { flex: 1 1 auto; }
}

/* Filter bar */
.filter-bar { background: var(--bs-body-bg); border: 1px solid var(--soft-border); border-radius: var(--bs-border-radius-lg); padding: .85rem; box-shadow: var(--card-shadow); }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; background: var(--bs-tertiary-bg); font-size: .78rem; font-weight: 600; color: var(--bs-body-color); border: 1px solid var(--soft-border); }
.chip.active, .chip:hover { background: rgba(var(--brand-rgb), .1); border-color: rgba(var(--brand-rgb), .35); color: var(--bs-primary-text-emphasis); }

/* Detail list */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem 1.5rem; margin: 0; }
.dl-grid dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bs-secondary-color); font-weight: 700; margin-bottom: .15rem; }
.dl-grid dd { margin: 0; font-weight: 600; word-break: break-word; }

.nav-tabs-modern { border-bottom: 1px solid var(--soft-border); gap: 0 .25rem; flex-wrap: wrap; }
@media (max-width: 575.98px) { .nav-tabs-modern .nav-link { padding: .6rem .7rem; font-size: .85rem; } }
.nav-tabs-modern::-webkit-scrollbar { display: none; }
.nav-tabs-modern .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--bs-secondary-color); font-weight: 600; padding: .7rem 1rem; white-space: nowrap; border-radius: 0; background: none; }
.nav-tabs-modern .nav-link.active { color: var(--brand); border-bottom-color: var(--brand); background: none; }
.nav-tabs-modern .nav-link .badge { font-size: .65rem; }

/* Empty state */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--bs-secondary-color); }
.empty-state i { font-size: 2.6rem; opacity: .35; display: block; margin-bottom: .5rem; }

/* Timeline */
.timeline-lite { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline-lite::before { content: ""; position: absolute; left: 19px; top: 6px; bottom: 6px; width: 2px; background: var(--soft-border); }
.timeline-lite li { position: relative; padding-left: 52px; padding-bottom: 1.1rem; }
.timeline-lite li:last-child { padding-bottom: 0; }
.timeline-lite .tl-icon { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bs-body-bg); border: 1px solid var(--soft-border); }

/* Checklist wasdal */
.check-pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; padding: .25rem .55rem; border-radius: 999px; }
.check-pill.ok { background: rgba(22, 163, 74, .12); color: #15803d; }
.check-pill.no { background: rgba(220, 38, 38, .1); color: #b91c1c; }
.check-pill.na { background: rgba(100, 116, 139, .12); color: #64748b; }
.aspek-row { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; border-bottom: 1px dashed var(--soft-border); gap: 1rem; }
.aspek-row:last-child { border-bottom: 0; }
.btn-check + .btn-mt { border: 1px solid var(--soft-border); font-weight: 600; font-size: .78rem; padding: .3rem .7rem; }
.btn-check:checked + .btn-mt.ok { background: #16a34a; border-color: #16a34a; color: #fff; }
.btn-check:checked + .btn-mt.no { background: #dc2626; border-color: #dc2626; color: #fff; }

/* Produk */
.product-card .product-img { aspect-ratio: 4/3; background: var(--bs-tertiary-bg); display: grid; place-items: center; overflow: hidden; border-radius: var(--bs-border-radius-lg) var(--bs-border-radius-lg) 0 0; }
.product-card .product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .product-img i { font-size: 2.5rem; opacity: .25; }

/* Program */
.program-card { transition: transform .15s ease; }
.program-card:hover { transform: translateY(-2px); }
.date-badge { width: 58px; text-align: center; border-radius: 12px; overflow: hidden; border: 1px solid var(--soft-border); flex-shrink: 0; background: var(--bs-body-bg); }
.date-badge .m { background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; padding: .15rem 0; }
.date-badge .d { font-size: 1.35rem; font-weight: 800; padding: .15rem 0; }

/* Confirm modal */
.confirm-icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: rgba(220, 53, 69, .1); color: #dc3545; font-size: 1.8rem; }

/* Toasts */
.toast { border-radius: .8rem; min-width: 300px; }
.toast-success { background: #ecfdf5; color: #065f46; }
.toast-danger { background: #fef2f2; color: #991b1b; }
.toast-warning { background: #fffbeb; color: #92400e; }
.toast-info { background: #eff6ff; color: #1e40af; }

/* Progress ring */
.progress-thin { height: 6px; border-radius: 999px; background: var(--bs-tertiary-bg); }
.bar-list .bar-item { margin-bottom: .8rem; }
.bar-list .bar-item:last-child { margin-bottom: 0; }

/* =====================================================================
   Halaman Auth & Landing
   ===================================================================== */
.auth-body { min-height: 100vh; background: var(--bs-tertiary-bg); }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-side { background: linear-gradient(145deg, #0b1f4d 0%, #1d4ed8 62%, #0891b2 100%); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; width: 480px; height: 480px; right: -160px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(56, 189, 248, .35), transparent 65%); }
.auth-side::after { content: ""; position: absolute; width: 420px; height: 420px; left: -160px; bottom: -180px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .05); }
.auth-side > * { position: relative; z-index: 1; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.auth-card { width: 100%; max-width: 440px; }
.auth-feature { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1.1rem; }
.auth-feature i { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }
.demo-box { border: 1px dashed rgba(var(--brand-rgb), .4); background: rgba(var(--brand-rgb), .05); border-radius: .8rem; }
@media (max-width: 991.98px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}

.landing-nav { background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--soft-border); }
[data-bs-theme=dark] .landing-nav { background: rgba(15, 20, 23, .85); }
.landing-hero { background: linear-gradient(135deg, #0b1f4d 0%, #1d4ed8 58%, #0891b2 100%); color: #fff; position: relative; overflow: hidden; padding: 5rem 0 7rem; }
.landing-hero::before { content: ""; position: absolute; width: 640px; height: 640px; right: -200px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(56, 189, 248, .35), transparent 65%); }
.landing-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 80px; background: var(--bs-tertiary-bg); clip-path: ellipse(75% 100% at 50% 100%); }
.landing-hero > .container { position: relative; z-index: 1; }
.landing-hero h1 { font-weight: 800; letter-spacing: -.03em; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; }
.landing-hero .lead { color: rgba(255, 255, 255, .85); }
.hero-stat { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 1rem; padding: 1rem 1.2rem; backdrop-filter: blur(6px); }
.hero-stat .v { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; }
.hero-stat .l { font-size: .8rem; color: rgba(255, 255, 255, .8); }
.section-title { font-weight: 800; letter-spacing: -.02em; }
.sektor-tile { border-radius: 1rem; padding: 1.1rem; height: 100%; border: 1px solid var(--soft-border); background: var(--bs-body-bg); transition: transform .15s ease, box-shadow .15s ease; }
.sektor-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(16, 24, 40, .08); }

@media print {
  .app-header, .app-sidebar, .app-footer, .page-actions, .no-print, .filter-bar, .toast-container { display: none !important; }
  .app-main { margin: 0 !important; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  body { background: #fff !important; }
}

@media (max-width: 575.98px) {
  .stat-card .card-body { flex-direction: column; align-items: flex-start !important; gap: .6rem !important; padding: 1rem; }
  .stat-card .stat-icon { width: 40px; height: 40px; font-size: 1.15rem; border-radius: 12px; }
  .stat-card .stat-value { font-size: 1.4rem; }
  .hero-card .card-body { padding: 1.25rem !important; }
}

/* Brand di atas form login */
.auth-brand { display: flex; align-items: center; gap: .85rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--soft-border); color: var(--bs-body-color); }
.auth-brand:hover { color: var(--bs-body-color); }
.auth-brand img { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; box-shadow: 0 6px 18px rgba(var(--brand-rgb), .25); }
.auth-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.auth-brand-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.auth-brand-sub { font-size: .8rem; color: var(--bs-secondary-color); margin-top: .15rem; }
@media (max-width: 575.98px) {
  .auth-brand { margin-bottom: 1.5rem; padding-bottom: 1.25rem; }
  .auth-brand img { width: 46px; height: 46px; border-radius: 12px; }
  .auth-brand-name { font-size: 1.15rem; }
}

/* =====================================================================
   WA Broadcast
   ===================================================================== */
.step-no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 800; margin-right: .55rem; vertical-align: 1px; }
.seg-tile { display: flex; flex-direction: column; gap: .15rem; height: 100%; padding: .75rem .8rem; border: 1px solid var(--soft-border); border-radius: .8rem; cursor: pointer; background: var(--bs-body-bg); transition: border-color .15s, box-shadow .15s, background .15s; line-height: 1.25; }
.seg-tile i { font-size: 1.15rem; color: var(--brand); margin-bottom: .2rem; }
.seg-tile small { color: var(--bs-secondary-color); font-size: .72rem; }
.seg-tile:hover { border-color: rgba(var(--brand-rgb), .45); }
.btn-check:checked + .seg-tile { border-color: var(--brand); background: rgba(var(--brand-rgb), .07); box-shadow: 0 0 0 .15rem rgba(var(--brand-rgb), .18); }
.btn-check:focus-visible + .seg-tile { outline: 2px solid var(--brand); outline-offset: 2px; }
.wa-sticky { position: sticky; top: 4.75rem; }
@media (max-width: 1199.98px) { .wa-sticky { position: static; } }
.wa-count { text-align: center; padding: .9rem; border-radius: .9rem; background: rgba(37, 211, 102, .08); border: 1px dashed rgba(37, 211, 102, .45); }
.wa-count .big { font-size: 2.2rem; font-weight: 800; color: #128c4b; letter-spacing: -.03em; line-height: 1; }
[data-bs-theme=dark] .wa-count .big { color: #4ade80; }
.wa-phone { border-radius: 1rem; overflow: hidden; border: 1px solid var(--soft-border); }
.wa-head { display: flex; align-items: center; gap: .6rem; padding: .6rem .85rem; background: #075e54; color: #fff; }
.wa-head img { width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.wa-head b { display: block; font-size: .9rem; line-height: 1.1; }
.wa-head small { display: block; font-size: .72rem; opacity: .8; }
.wa-body { background: #efeae2; background-image: radial-gradient(rgba(0, 0, 0, .04) 1px, transparent 1px); background-size: 14px 14px; padding: 1rem .85rem 1.2rem; max-height: 420px; overflow-y: auto; }
[data-bs-theme=dark] .wa-body { background-color: #0b141a; background-image: radial-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px); }
.wa-bubble { position: relative; background: #fff; color: #111b21; padding: .5rem .65rem 1.15rem; border-radius: 0 .6rem .6rem .6rem; max-width: 92%; font-size: .85rem; line-height: 1.45; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); word-wrap: break-word; }
.wa-bubble::before { content: ""; position: absolute; top: 0; left: -8px; border-top: 8px solid #fff; border-left: 8px solid transparent; }
[data-bs-theme=dark] .wa-bubble { background: #202c33; color: #e9edef; }
[data-bs-theme=dark] .wa-bubble::before { border-top-color: #202c33; }
.wa-time { position: absolute; right: .55rem; bottom: .2rem; font-size: .66rem; color: #667781; }
.wa-time i { color: #53bdeb; }
.wa-attach { font-size: .78rem; background: rgba(0, 0, 0, .05); border-radius: .4rem; padding: .35rem .5rem; margin-bottom: .4rem; }
.wa-list { max-height: 360px; overflow-y: auto; }
.wa-item { display: flex; align-items: center; gap: .6rem; padding: .55rem 1rem; border-bottom: 1px solid var(--soft-border); }
.wa-item:last-child { border-bottom: 0; }
.wa-quick { transition: transform .15s ease, box-shadow .15s ease; }
.wa-quick:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, .08); color: inherit; }
.btn-soft-success { background: rgba(22, 163, 74, .12); color: #15803d; border: 0; }
.btn-soft-success:hover { background: #16a34a; color: #fff; }
