/* =========================================================
   Lambda Billing - gaya halaman auth & dashboard
   Warna senada dengan landing page (Royal Blue + Sky Cyan)
   ========================================================= */
:root {
  --primary-700: #1d4ed8;
  --primary-600: #2563eb;
  --primary-500: #3b82f6;
  --primary-50: #eff6ff;
  --accent-500: #0284c7;
  --brand: #2a5db0;
  --bg-page: #f1f5f9;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --text-dark: #0f172a;
  --text-body: #475569;
  --text-muted: #94a3b8;
  --green-600: #059669;
  --red-600: #dc2626;
  --amber-600: #d97706;
  --orange-500: #168fd5;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.06);
  --sidebar-w: 248px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Paket langganan admin ---------- */
.package-intro { align-items: center; }
.dashboard-section-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 40px; }
.dashboard-section-toolbar__count { color: var(--dash-muted, #737686); font-size: .78rem; font-weight: 700; }
.package-admin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.admin-plan { position: relative; display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid #dbe8f4; border-radius: 16px; background: #fff; box-shadow: 0 10px 26px rgba(18, 77, 136, .08); }
.admin-plan--featured { border-color: #78c3f2; background: linear-gradient(180deg, #e3f3fd 0%, #fff 48%); box-shadow: 0 16px 36px rgba(2, 132, 199, .16); }
.admin-plan--inactive { opacity: .65; }
.admin-plan__popular { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; color: #fff; background: #2563eb; font-size: .66rem; font-weight: 700; }
.admin-plan__head { min-height: 145px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 16px 12px 17px; color: #fff; background: linear-gradient(160deg, #0a8fe4, #0670cc); text-align: center; }
.admin-plan__head::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -28px; height: 62px; border-radius: 50%; background: #fff; box-shadow: 0 -16px 0 rgba(255,255,255,.18); }
.admin-plan__head h3, .admin-plan__head > span { position: relative; z-index: 1; }
.admin-plan__head h3 { margin: 0 0 6px; color: #fff; font-size: 1.35rem; }
.admin-plan__head > span { padding: 3px 10px; border-radius: 999px; color: #0670cc; background: #fff; font-size: .61rem; font-weight: 800; letter-spacing: .04em; }
.admin-plan__mascot { position: absolute; top: -53px; left: 50%; width: 112px; height: 112px; object-fit: contain; transform: translateX(-50%); filter: drop-shadow(0 8px 10px rgba(4,44,97,.25)); }
.admin-plan__body { display: flex; flex: 1; flex-direction: column; padding: 20px 17px 18px; }
.admin-plan__description { min-height: 48px; margin: 0 0 12px; color: #475569; font-size: .78rem; line-height: 1.5; }
.admin-plan__discount { align-self: flex-start; margin-bottom: 5px; padding: 3px 8px; border-radius: 6px; color: #1d6fd8; background: #dbeafe; font-size: .68rem; font-weight: 700; }
.admin-plan__price { color: #0f172a; font-size: 1.55rem; line-height: 1.2; }
.admin-plan__price small { margin-left: 3px; font-size: .78rem; }
.admin-plan__yearly { min-height: 32px; margin: 4px 0 13px; color: #64748b; font-size: .7rem; }
.admin-plan__limits { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }
.admin-plan__limits span { padding: 4px 7px; border-radius: 6px; color: #315273; background: #eff6ff; font-size: .64rem; font-weight: 600; }
.admin-plan__body h4 { margin: 0 0 10px; color: #0f172a; font-size: .82rem; }
.admin-plan__body ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.admin-plan__body li { display: flex; align-items: flex-start; gap: 7px; color: #475569; font-size: .72rem; line-height: 1.35; }
.admin-plan__body li .icon { width: 14px; height: 14px; flex: 0 0 14px; color: #22b573; stroke-width: 2.5; }
.admin-plan__actions { display: flex; gap: 8px; padding: 14px 17px; border-top: 1px solid #e2e8f0; }
.admin-plan__actions .btn { flex: 1; padding-inline: 8px; }
.admin-plan__actions form { display: flex; flex: 1; }
.btn--danger, .btn.btn--danger { color: #dc2626; border-color: #fecaca; background: #fff; }
.btn--danger:hover, .btn.btn--danger:hover { color: #b91c1c; border-color: #fca5a5; background: #fef2f2; }
.package-empty { grid-column: 1 / -1; }
.package-form { display: grid; gap: 20px; }
.package-form__section { padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.package-form__section h3 { margin: 0 0 4px; font-size: 1rem; }
.package-form__section p { margin: 0; color: var(--text-muted); font-size: .82rem; }
.package-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.package-form__wide { grid-column: 1 / -1; }
.field textarea { width: 100%; resize: vertical; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: 10px; font: inherit; color: var(--text-dark); }
.field textarea:focus { outline: none; border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(59,130,246,.2); }
.check-field { display: flex; align-items: center; gap: 8px; color: var(--text-body); font-size: .88rem; }
.check-field input { width: 17px; height: 17px; accent-color: var(--primary-600); }
.package-form__actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }

/* ---------- Langganan tenant ---------- */
.tenant-list { display: grid; gap: 16px; }
.tenant-subscription-card { display: grid; gap: 22px; }
.tenant-subscription-card__identity { display: flex; align-items: center; gap: 13px; }
.tenant-subscription-card__identity h3 { margin: 0 0 3px; font-size: 1rem; }
.tenant-subscription-card__identity p { margin: 0 0 8px; color: #64748b; font-size: .78rem; }
.tenant-avatar { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #2563eb, #0284c7); font-size: 1.05rem; font-weight: 800; }
.subscription-form { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: end; padding-top: 18px; border-top: 1px solid var(--border); }
.subscription-form__field label { display: block; margin-bottom: 5px; color: #64748b; font-size: .7rem; font-weight: 700; }
.subscription-form__field select, .subscription-form__field input { width: 100%; min-height: 39px; padding: .5rem .6rem; border: 1px solid var(--border); border-radius: 9px; color: var(--text-dark); background: #fff; font: inherit; font-size: .78rem; }
.subscription-form__field select:focus, .subscription-form__field input:focus { outline: none; border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(59,130,246,.16); }
.subscription-form__submit { min-height: 39px; grid-column: span 2; }
.subscription-summary { display: flex; align-items: center; gap: 14px; padding: 17px 20px; border: 1px solid #cfe8fa; border-radius: 16px; background: linear-gradient(110deg, #f6fbff, #e7f5ff); }
.subscription-summary__icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 44px; border-radius: 13px; color: #087fc4; background: #d9f0fc; }
.subscription-summary__content { min-width: 0; flex: 1; }
.subscription-summary__content > span, .subscription-summary__period small { display: block; color: #4e7dab; font-size: .7rem; font-weight: 700; }
.subscription-summary__content strong { display: block; margin: 2px 0; color: #0b2050; font-size: 1rem; }
.subscription-summary__content p { margin: 0; color: #5d83a9; font-size: .75rem; }
.subscription-summary__period { padding-left: 18px; border-left: 1px solid #cfe1ef; text-align: right; }
.subscription-summary__period strong { display: block; margin-top: 3px; color: #0b2050; font-size: .76rem; }
.invoice-panel { padding: 0; overflow: hidden; }
.invoice-table { min-width: 900px; }
.invoice-status { display: inline-flex; padding: .28rem .62rem; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.invoice-status--pending { color: #0369a1; background: #e0f2fe; }
.invoice-status--paid { color: #047857; background: #d1fae5; }
.invoice-status--overdue { color: #b45309; background: #fef3c7; }
.invoice-status--cancelled { color: #b91c1c; background: #fee2e2; }
.invoice-actions { display: flex; align-items: center; gap: 7px; }
.payment-page { width: 100%; }
.back-link { display: inline-flex; margin-bottom: 1rem; color: var(--muted); text-decoration: none; font-weight: 600; }
.payment-card { padding: clamp(1.25rem, 3vw, 2rem); }
.payment-card__head { display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.payment-card__head h1 { margin: .35rem 0 .4rem; color: var(--ink); }
.payment-card__head p { margin: 0; color: var(--muted); }
.eyebrow { color: var(--primary); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.payment-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 1.5rem 0; }
.payment-summary div { padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fbfdff; }
.payment-summary span { display: block; color: var(--muted); font-size: .85rem; margin-bottom: .35rem; }
.payment-summary strong { color: var(--ink); }
.payment-total { color: var(--primary) !important; font-size: 1.3rem; }
.payment-note { color: var(--muted); font-size: .9rem; margin: .9rem 0 0; }
.invoice-actions form { display: inline-flex; }
.customer-page { display: grid; gap: 18px; }
.customer-table-card { overflow: hidden; padding: 0; }
.customer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--dash-border); }
.customer-search { flex: 1 1 280px; max-width: 420px; margin-right: auto; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--dash-border); border-radius: 10px; background: var(--dash-card); color: var(--dash-muted); }
.customer-search:focus-within { border-color: #9ed8f5; box-shadow: 0 0 0 3px rgba(22, 143, 213, .12); }
.customer-search input { width: 100%; min-height: 38px; border: 0; outline: 0; color: var(--dash-text); background: transparent; font: inherit; font-size: .8rem; }
.customer-filter-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px 5px 11px; border-radius: 999px; color: #087fc4; background: #eaf6fd; font-size: .72rem; font-weight: 600; }
.customer-filter-chip:hover { color: #065f93; text-decoration: none; }
.customer-add { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--dash-border); border-radius: 9px; color: #4b5060; background: var(--dash-card); font-size: 1.15rem; }
.customer-add:hover { color: var(--dash-accent); border-color: #9ed8f5; background: #f2f9fe; text-decoration: none; }

.has-modal { overflow: hidden; }
.confirm-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.confirm-modal[hidden] { display: none; }
.confirm-modal__overlay { position: absolute; inset: 0; background: rgba(15, 18, 25, .48); animation: modal-fade .15s ease; }
.confirm-modal__dialog { position: relative; width: min(400px, 100%); padding: 26px 24px 20px; border-radius: 16px; background: var(--dash-card, #fff); box-shadow: 0 24px 60px rgba(15, 18, 25, .25); text-align: center; animation: modal-pop .18s ease; }
.confirm-modal__icon { width: 52px; height: 52px; display: inline-grid; place-items: center; margin-bottom: 12px; border-radius: 50%; color: #dc2626; background: #fef2f2; font-size: 1.3rem; }
.confirm-modal__dialog h2 { margin: 0 0 6px; color: var(--dash-text, #111827); font-size: 1.05rem; }
.confirm-modal__dialog p { margin: 0 0 20px; color: var(--dash-muted, #7a7d8d); font-size: .84rem; line-height: 1.55; }
.confirm-modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.confirm-modal__actions .btn { justify-content: center; }
.btn.btn--danger-solid { color: #fff; border-color: #dc2626; background: #dc2626; box-shadow: 0 6px 16px rgba(220, 38, 38, .22); }
.btn.btn--danger-solid:hover { color: #fff; background: #b91c1c; border-color: #b91c1c; }
@keyframes modal-fade { from { opacity: 0; } }
@keyframes modal-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }

.customer-list { width: 100%; min-width: 1080px; border-collapse: collapse; }
.customer-list th, .customer-list td { padding: 14px 16px; border-bottom: 1px solid #f0f0f3; text-align: left; vertical-align: middle; }
.customer-list th { padding-top: 12px; padding-bottom: 12px; color: #8a8d9b; background: #fafafa; font-size: .68rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.customer-list td { color: #4b5060; font-size: .8rem; }
.customer-list tbody tr:last-child td { border-bottom: 0; }
.customer-list tbody tr:hover { background: #fafcff; }
.customer-list td > strong { display: block; color: var(--dash-text); font-size: .82rem; font-weight: 600; }
.customer-list td > small { display: block; margin-top: 3px; color: var(--dash-muted); font-size: .72rem; }
.customer-list td > .pill + small { margin-top: 5px; }
.customer-list__check { width: 44px; padding-right: 0 !important; }
.customer-list__check input { width: 15px; height: 15px; accent-color: var(--dash-accent); cursor: pointer; }
.customer-list__action { width: 1%; text-align: right !important; white-space: nowrap; }
.customer-list__empty td { padding: 28px 16px; color: var(--dash-muted); text-align: center; }
.customer-list--compact { min-width: 860px; }
.customer-cell { display: flex; align-items: center; gap: 12px; min-width: 230px; }
.customer-cell > div { min-width: 0; }
.customer-cell__name { display: block; color: var(--dash-text); font-size: .84rem; font-weight: 700; }
.customer-cell__name:hover { color: var(--dash-accent); text-decoration: none; }
.customer-cell__meta { display: flex; align-items: center; gap: 5px; margin-top: 3px; color: var(--dash-muted); font-size: .72rem; white-space: nowrap; }
.customer-cell__meta .bi { font-size: .75rem; }
.customer-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #168fd5; font-size: .76rem; font-weight: 700; }
.customer-cell--large .customer-avatar { width: 54px; height: 54px; flex-basis: 54px; font-size: 1.1rem; background: var(--dash-accent); }
.customer-cell--large h1 { margin: 4px 0; color: var(--dash-text); font-size: 1.35rem; }
.customer-cell--large p { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--dash-muted); font-size: .82rem; }
.mini-badge { display: inline-flex; padding: 1px 6px; border-radius: 5px; font-size: .62rem; font-weight: 700; line-height: 1.5; }
.mini-badge--orange { color: #087fc4; background: #eaf6fd; }
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; border: 1px solid transparent; font-size: .7rem; font-weight: 600; white-space: nowrap; }
.pill--success { color: #16a34a; background: #ecfdf3; border-color: #c9f2d9; }
.pill--danger { color: #dc2626; background: #fef2f2; border-color: #fcd5d5; }
.pill--info { color: #087fc4; background: #eaf6fd; border-color: #cbe9fa; }
.pill--muted { color: #6b7080; background: #f3f4f6; border-color: #e7e7ec; }
.text-danger { color: #dc2626 !important; }
.text-faint { color: var(--dash-muted); }
.action-group { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--dash-border); border-radius: 9px; background: #fafafa; }
.action-group form { display: inline-flex; margin: 0; }
.action-group__btn { width: 28px; height: 28px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 6px; color: #4b5060; background: transparent; font-size: .85rem; cursor: pointer; }
.action-group__btn:hover { color: var(--dash-accent); background: #fff; box-shadow: 0 1px 2px rgba(17, 24, 39, .08); text-decoration: none; }
.action-group__btn--danger:hover { color: #dc2626; }
.text-muted { color: var(--dash-muted); }
.customer-detail-page, .form-page { width: 100%; min-width: 0; }
.customer-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding: 22px; }
.customer-detail-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.customer-detail-page { display: grid; gap: 18px; }
.customer-detail-page .back-link, .customer-detail-page .customer-detail-head { margin-bottom: 0; }
.customer-detail-grid { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 18px; align-items: start; }
.customer-detail-head__tags { display: flex; align-items: center; gap: 8px; color: var(--dash-muted); font-size: .72rem; font-weight: 600; }
.customer-detail-head__contacts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; color: var(--dash-muted); font-size: .8rem; }
.customer-detail-head__contacts li { display: inline-flex; align-items: center; gap: 6px; }
.customer-detail-head__contacts a { color: inherit; }
.customer-detail-head__contacts a:hover { color: var(--dash-accent); }
.customer-detail-page .metric-card__body { min-height: 140px; }
.customer-list--narrow { min-width: 640px; }
.customer-empty-action { margin-top: 14px; }
.customer-info { margin: 0; padding: 6px 22px 14px; }
.customer-info--flush { padding: 0; margin: 14px 0; text-align: left; }
.customer-info > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #f0f0f3; }
.customer-info > div:last-child { border-bottom: 0; }
.customer-info dt { color: var(--dash-muted); font-size: .78rem; }
.customer-info dd { margin: 0; color: var(--dash-text); font-size: .82rem; font-weight: 600; text-align: right; word-break: break-word; }
.form-card { padding: 22px; }
.form-card .dashboard-card__head { margin-bottom: 20px; }
.form-card h1 { margin: 4px 0; color: var(--dash-text); font-size: 1.35rem; }
.customer-form-page { width: 100%; min-width: 0; display: grid; gap: 18px; }
.customer-form-page .back-link { margin-bottom: 0; }
.customer-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.customer-form { overflow: hidden; }
.customer-form__section { margin: 0; padding: 22px; border: 0; border-bottom: 1px solid var(--dash-border); }
.customer-form__section legend { float: left; width: 100%; display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; padding: 0; }
.customer-form__section legend + * { clear: both; }
.customer-form__section legend > span { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 10px; color: #087fc4; background: #e8f5fc; font-size: 1rem; }
.customer-form__section legend strong { display: block; color: var(--dash-text); font-size: .9rem; }
.customer-form__section legend small { display: block; margin-top: 2px; color: var(--dash-muted); font-size: .75rem; font-weight: 400; }
.customer-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field label { display: block; margin-bottom: 6px; color: #374151; font-size: .78rem; font-weight: 600; }
.form-field__req { color: #dc2626; }
.form-field input { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--dash-border); border-radius: 10px; color: var(--dash-text); background: var(--dash-card); font: inherit; font-size: .84rem; transition: border-color .15s, box-shadow .15s; }
.form-field input::placeholder { color: #a8abb7; }
.form-field input:focus { outline: none; border-color: #63bdea; box-shadow: 0 0 0 3px rgba(22, 143, 213, .14); }
.form-field__control { position: relative; }
.form-field__control > .bi { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); color: #9a9dab; font-size: .9rem; pointer-events: none; }
.form-field__control input { padding-left: 36px; }
.form-field__hint { margin: 6px 0 0; color: var(--dash-muted); font-size: .72rem; }
.form-field__error { display: flex; align-items: center; gap: 5px; margin: 6px 0 0; color: #dc2626; font-size: .74rem; font-weight: 500; }
.form-field--error input { border-color: #f5a3a3; background: #fffafa; }
.form-field--error input:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.customer-form__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; background: #fafafa; }
.customer-form__footer > div { display: flex; gap: 10px; }
.customer-form-aside { padding: 24px 22px; text-align: center; }
.customer-form-aside h3 { margin: 12px 0 4px; color: var(--dash-text); font-size: 1rem; }
.customer-form-aside > p { margin: 0; color: var(--dash-muted); font-size: .8rem; line-height: 1.55; }
.customer-form-aside__icon { width: 54px; height: 54px; display: inline-grid; place-items: center; border-radius: 50%; color: #087fc4; background: #e8f5fc; font-size: 1.4rem; }
.customer-avatar--lg { width: 64px; height: 64px; margin: 0 auto; font-size: 1.25rem; background: var(--dash-accent); }
.customer-form-aside .customer-info > div { padding: 9px 0; }
.customer-form-aside__note { display: flex; gap: 7px; padding: 10px 12px; border-radius: 10px; color: #4e7dab !important; background: #f2f9fe; font-size: .74rem !important; text-align: left; }
@media (max-width: 1100px) { .customer-detail-grid, .customer-form-layout { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .customer-detail-head { align-items: flex-start; flex-direction: column; } .customer-detail-actions { justify-content: flex-start; } .customer-search { max-width: none; } .customer-form__grid { grid-template-columns: 1fr; } .customer-form__footer { flex-direction: column-reverse; align-items: stretch; } .customer-form__footer > div { justify-content: flex-end; } }
.invoice-actions form { display: inline-flex; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gateway-card { overflow: hidden; }
.gateway-card .dashboard-card__head { align-items: center; }
.gateway-card .dashboard-card__head p { max-width: 390px; }
.gateway-active-badge, .gateway-status { padding: 5px 10px; border-radius: 999px; color: #64748b; background: #f1f5f9; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.gateway-active-badge { color: #047857; background: #d1fae5; }
.gateway-status.is-active { color: #047857; background: #d1fae5; }
.gateway-choice { display: flex; align-items: center; gap: 12px; margin: 0 22px 18px; padding: 13px; border: 1px solid var(--dash-border); border-radius: 12px; background: #fafcff; }
.gateway-choice__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: #2563eb; font-size: .7rem; font-weight: 800; }
.gateway-choice__icon--green { background: #16a34a; }
.gateway-choice strong, .gateway-choice small { display: block; }
.gateway-choice strong { color: var(--dash-text); font-size: .84rem; }
.gateway-choice small { margin-top: 2px; color: var(--dash-muted); font-size: .7rem; }
.gateway-form { display: grid; gap: 13px; padding: 0 22px 22px; }
.gateway-form .field input, .gateway-form .field select { width: 100%; padding: .66rem .8rem; border: 1px solid var(--dash-border); border-radius: 9px; color: var(--dash-text); background: var(--dash-card); font: inherit; font-size: .8rem; }
.gateway-form .field label { display: block; margin-bottom: 5px; color: var(--dash-muted); font-size: .72rem; font-weight: 700; }
.settings-card { overflow: hidden; }
.gateway-form--single { padding: 0 22px 22px; }
.gateway-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gateway-form__method { max-width: 530px; margin-top: 16px; }
.gateway-form__actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.callback-settings { margin: 18px 0 0; padding: 16px; border: 1px solid var(--dash-border); border-radius: 14px; background: #f8fbff; }
.callback-settings legend { padding: 0 7px; color: var(--dash-text); font-size: .88rem; font-weight: 700; }
.callback-settings > p { margin: 0 0 14px; color: var(--dash-muted); font-size: .76rem; line-height: 1.5; }
.callback-settings__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.callback-settings input[readonly] { color: var(--dash-muted); background: #fff; cursor: copy; }
.field-help { margin: 5px 0 0; color: var(--dash-muted); font-size: .72rem; }
.payment-methods { margin: 20px 0 0; padding: 18px; border: 1px solid var(--dash-border); border-radius: 14px; }
.payment-methods legend { padding: 0 7px; color: var(--dash-text); font-size: .88rem; font-weight: 700; }
.payment-methods > p { margin: 0 0 16px; color: var(--dash-muted); font-size: .76rem; line-height: 1.55; }
.payment-methods__group + .payment-methods__group { margin-top: 18px; }
.payment-methods__group h3 { margin: 0 0 9px; color: var(--dash-text); font-size: .76rem; }
.payment-methods__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.payment-method { display: grid; grid-template-columns: 17px minmax(0, 1fr); column-gap: 8px; align-items: center; padding: 9px; border: 1px solid var(--dash-border); border-radius: 9px; cursor: pointer; }
.payment-method:has(input:checked) { border-color: #8bd2f7; background: #f0f9ff; }
.payment-method input { width: 15px; height: 15px; margin: 0; accent-color: var(--dash-accent); }
.payment-method span { color: var(--dash-text); font-size: .75rem; font-weight: 600; }
.payment-method small { grid-column: 2; margin-top: 2px; color: var(--dash-muted); font-size: .65rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-log-card { overflow: hidden; }
.login-log-table { min-width: 920px; }
.login-role { display: inline-flex; padding: .28rem .62rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.login-role--admin { color: #1d4ed8; background: #dbeafe; }
.login-role--client { color: #047857; background: #d1fae5; }
.login-role--unknown { color: #64748b; background: #e2e8f0; }
.login-log-table code { padding: 3px 6px; border-radius: 6px; color: #475569; background: #f1f5f9; font-size: .76rem; }
.login-user-agent { display: block; max-width: 280px; overflow: hidden; color: #64748b; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1250px) { .package-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .package-admin-grid, .package-form__grid { grid-template-columns: 1fr; } .package-form__wide { grid-column: auto; } .package-intro { align-items: flex-start; flex-direction: column; } }
@media (max-width: 900px) { .subscription-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .subscription-form__submit { grid-column: auto; } }
@media (max-width: 620px) { .subscription-summary { align-items: flex-start; flex-wrap: wrap; } .subscription-summary__period { width: 100%; padding: 12px 0 0; border-top: 1px solid #cfe1ef; border-left: 0; text-align: left; } .subscription-form { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .gateway-form__grid, .payment-methods__grid, .callback-settings__grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .payment-card__head, .payment-summary { display: block; } .payment-card__head .invoice-status { display: inline-flex; margin-top: 1rem; } .payment-summary div { margin-top: .75rem; } }

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--text-dark); line-height: 1.25; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
a { color: var(--primary-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.2rem; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px; }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
  box-shadow: 0 6px 16px rgba(37, 99, 235, .25);
}
.btn--primary:hover { background: linear-gradient(135deg, var(--primary-700), var(--primary-600)); }
.btn--ghost { color: var(--primary-600); background: var(--bg-white); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary-500); background: var(--primary-50); }
.btn--sm { padding: .45rem .8rem; font-size: .875rem; }
.btn--block { width: 100%; }

/* ---------- Alert & badge ---------- */
.alert {
  padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem;
  font-size: .925rem; border: 1px solid;
}
.alert--success { color: #065f46; background: #ecfdf5; border-color: #a7f3d0; }
.alert--error   { color: #991b1b; background: #fef2f2; border-color: #fecaca; }
.alert--warning { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.alert--info    { color: #1e40af; background: var(--primary-50); border-color: #bfdbfe; }

.badge {
  display: inline-block; padding: .15rem .6rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .02em;
}
.badge--admin  { color: #fff; background: var(--brand); }
.badge--client { color: var(--accent-500); background: #e0f2fe; }
.badge--soon   { color: var(--orange-500); background: #eaf6fd; }

/* ---------- Form ---------- */
.form { display: grid; gap: 1rem; }
.field label { display: block; font-weight: 600; color: var(--text-dark); margin-bottom: .35rem; font-size: .9rem; }
.field input {
  width: 100%; padding: .7rem .9rem; font: inherit; color: var(--text-dark);
  background: var(--bg-white); border: 1px solid var(--border); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }
.field--error input { border-color: var(--red-600); }
.field__error { color: var(--red-600); font-size: .825rem; margin: .35rem 0 0; }
.field__hint { color: var(--text-muted); font-size: .825rem; margin: .35rem 0 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Halaman auth & error (login, register, logout, 403/404/...): lihat auth.css. */

/* ---------- Dashboard ---------- */
.dash { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: var(--bg-white);
  border-right: 1px solid var(--border); padding: 1.5rem 1rem;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar__logo { padding: 0 .5rem 1.25rem; }
.sidebar__logo img { height: 32px; width: auto; }
.sidebar__label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); padding: 0 .75rem; margin-bottom: .5rem;
}
.sidebar__nav { display: grid; gap: .25rem; }
.sidebar__link {
  display: flex; align-items: center; gap: .75rem; padding: .65rem .75rem; border-radius: 10px;
  color: var(--text-body); font-weight: 500; font: inherit; width: 100%;
  background: none; border: 0; cursor: pointer; text-align: left;
}
.sidebar__link:hover { background: var(--bg-page); color: var(--primary-600); text-decoration: none; }
.sidebar__link.is-active { background: var(--primary-50); color: var(--primary-700); font-weight: 600; }
.sidebar__logout { margin-top: auto; border-top: 1px solid var(--border); padding-top: 1rem; }
.sidebar-backdrop { display: none; }

.dash__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 1rem; padding: .9rem 2rem;
  background: rgba(255, 255, 255, .9); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px);
}
.topbar__toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: .4rem; color: var(--text-dark); cursor: pointer;
}
.topbar__title { font-size: 1.15rem; margin: 0; flex: 1; }
.topbar__user { display: flex; align-items: center; gap: .75rem; }
.topbar__user-text { display: flex; flex-direction: column; line-height: 1.2; }
.topbar__user-text strong { color: var(--text-dark); font-size: .9rem; }
.topbar__user-text small { color: var(--text-muted); font-size: .78rem; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
}

.dash__content { padding: 2rem; display: grid; gap: 1.5rem; align-content: start; flex: 1; }
.dash__footer { padding: 1rem 2rem; font-size: .8rem; color: var(--text-muted); }

.card {
  background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { font-size: 1rem; }

.welcome {
  border-radius: var(--radius); padding: 1.75rem 2rem; color: #e0f2fe;
  background: linear-gradient(135deg, var(--primary-700), var(--accent-500));
}
.welcome h2 { color: #fff; font-size: 1.4rem; }
.welcome p { margin: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.stat {
  display: flex; align-items: center; gap: 1rem; background: var(--bg-white);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem;
}
.stat__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: var(--primary-600); background: var(--primary-50);
}
.stat__icon .icon { width: 22px; height: 22px; }
.stat__label { font-size: .825rem; margin: 0; }
.stat__value { font-size: 1.4rem; font-weight: 700; color: var(--text-dark); margin: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.placeholder-text { color: var(--text-muted); margin: 0; }
.shortcut-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.shortcut-list a {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 10px;
  background: var(--bg-page); color: var(--text-dark); font-weight: 500;
}
.shortcut-list a:hover { background: var(--primary-50); color: var(--primary-700); text-decoration: none; }
.steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }

.coming-soon { text-align: center; padding: 3rem 1.5rem; max-width: 640px; justify-self: center; width: 100%; }
.coming-soon__icon {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 18px; display: grid; place-items: center;
  color: var(--primary-600); background: var(--primary-50);
}
.coming-soon__icon .icon { width: 30px; height: 30px; }
.coming-soon h2 { margin-top: .75rem; }

/* ---------- Dashboard SaaS: akun penyewa billing ---------- */
.welcome--admin { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.welcome--admin > div { max-width: 720px; }
.welcome__eyebrow,
.page-intro__eyebrow {
  display: block; margin-bottom: .35rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
}
.welcome__eyebrow { color: #bae6fd; }
.btn--welcome { color: var(--primary-700); background: #fff; flex-shrink: 0; }
.btn--welcome:hover { background: #eff6ff; }

.page-intro {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 1.75rem; border: 1px solid #dbeafe; border-radius: var(--radius);
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
}
.page-intro h2 { margin-bottom: .35rem; font-size: 1.35rem; }
.page-intro p { margin: 0; max-width: 720px; color: #64748b; }
.page-intro__eyebrow { color: var(--primary-600); }
.page-intro__count {
  padding: .45rem .8rem; border-radius: 999px; color: #1d4ed8;
  background: #dbeafe; font-size: .82rem; font-weight: 700; white-space: nowrap;
}

.tenant-panel { padding: 0; overflow: hidden; }
.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
}
.card__head h3 { margin: 0 0 .2rem; }
.card__head p { margin: 0; color: #64748b; font-size: .84rem; }
.table-wrap { width: 100%; overflow-x: auto; }
.tenant-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.tenant-table th,
.tenant-table td { padding: .9rem 1.25rem; border-bottom: 1px solid #eef2f7; text-align: left; vertical-align: middle; }
.tenant-table th {
  color: #64748b; background: #f8fafc; font-size: .72rem;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.tenant-table td { color: #475569; font-size: .84rem; }
.tenant-table tbody tr:last-child td { border-bottom: 0; }
.tenant-table tbody tr:hover { background: #f8fbff; }
.tenant-table td strong { display: block; color: #0f172a; font-size: .88rem; }
.tenant-table td small { display: block; margin-top: .1rem; color: #94a3b8; }
.tenant-table td a { font-weight: 500; }
.tenant-status {
  display: inline-flex; padding: .28rem .62rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.tenant-status--active { color: #047857; background: #d1fae5; }
.tenant-status--pending { color: #b45309; background: #fef3c7; }
.tenant-status--inactive { color: #64748b; background: #e2e8f0; }
.empty-state { padding: 3rem 1.5rem; text-align: center; }
.empty-state__icon {
  width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 1rem;
  color: var(--primary-600); background: var(--primary-50); border-radius: 18px;
}
.empty-state__icon .icon { width: 28px; height: 28px; }
.empty-state h3,
.empty-state h4 { margin-bottom: .35rem; color: var(--text-dark); }
.empty-state p { margin: 0; color: #64748b; }

/* ---------- Responsif ---------- */
@media (max-width: 900px) {
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 30; transform: translateX(-100%);
    transition: transform .2s ease; box-shadow: 0 0 40px rgba(15, 23, 42, .15);
  }
  .dash.is-sidebar-open .sidebar { transform: translateX(0); }
  .dash.is-sidebar-open .sidebar-backdrop {
    display: block; position: fixed; inset: 0; z-index: 20; background: rgba(15, 23, 42, .4);
  }
  .topbar { padding: .75rem 1rem; }
  .topbar__toggle { display: inline-flex; }
  .topbar__user-text, .topbar__user .badge { display: none; }
  .dash__content { padding: 1.25rem 1rem; }
  .welcome--admin { align-items: flex-start; flex-direction: column; }
  .page-intro { align-items: flex-start; flex-direction: column; }
}

/* =========================================================
   Dashboard 2026 - gaya SaaS seperti referensi pengguna
   ========================================================= */
.dash-body {
  --dash-accent: #168fd5;
  --dash-accent-soft: #eaf6fd;
  --dash-bg: #f6f6f8;
  --dash-card: #ffffff;
  --dash-border: #e7e7ec;
  --dash-text: #111827;
  --dash-muted: #7a7d8d;
  --dash-sidebar: 232px;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--dash-text);
  background: var(--dash-bg);
}
.dash-body .dash { min-height: 100vh; }

.dash-body .sidebar {
  width: var(--dash-sidebar); height: 100vh; padding: 18px 12px 14px;
  border-right: 1px solid var(--dash-border); background: #fff; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: #a9a9ad transparent;
}
.dash-body .sidebar__logo { display: flex; align-items: center; min-height: 64px; padding: 0 8px 14px; }
.dash-body .sidebar__logo img { width: 168px; height: auto; max-height: 52px; object-fit: contain; object-position: left center; }
.sidebar__search {
  height: 38px; display: flex; align-items: center; gap: 8px; margin: 0 4px 14px;
  padding: 0 11px; border: 1px solid var(--dash-border); border-radius: 10px;
  color: #8b8d98; background: #fbfbfc;
}
.sidebar__search .icon { width: 16px; height: 16px; }
.sidebar__search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--dash-text); background: transparent; font-size: .8rem; }
.sidebar__search input::placeholder { color: #8b8d98; }
.dash-body .sidebar__nav { display: block; }
.dash-body .sidebar__label {
  margin: 16px 10px 6px; padding: 0; color: #898c9b;
  font-size: .62rem; font-weight: 700; letter-spacing: .07em;
}
.dash-body .sidebar__link {
  min-height: 38px; gap: 10px; padding: 8px 10px; margin-bottom: 2px; border-radius: 9px;
  color: #323746; font-size: .82rem; font-weight: 500;
}
.dash-body .sidebar__link .icon { width: 17px; height: 17px; flex: 0 0 17px; }
.dash-body .sidebar__link .bi { width: 17px; flex: 0 0 17px; font-size: 17px; line-height: 1; text-align: center; }
.dash-body .sidebar__link:hover { color: var(--dash-accent); background: #f2f9fe; }
.dash-body .sidebar__link.is-active { color: #087fc4; background: var(--dash-accent-soft); font-weight: 600; }
.dash-body .sidebar__logout { margin-top: 20px; padding: 12px 4px 0; border-color: var(--dash-border); }
.dash-body .sidebar__logout .sidebar__link { color: #ef4444; }

.dash-body .dash__main { min-height: 100vh; }
.dash-body .topbar {
  min-height: 96px; padding: 16px 34px; gap: 14px; z-index: 40;
  border-color: var(--dash-border); background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
}
.dash-body .topbar__title { color: #101322; font-size: 1.22rem; font-weight: 700; }
.topbar__notification {
  position: relative; width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--dash-border); border-radius: 50%; color: #4e5261; background: #fff; cursor: pointer;
}
.topbar__notification .icon { width: 19px; height: 19px; }
.topbar__notification span { position: absolute; top: 11px; right: 11px; width: 6px; height: 6px; border: 2px solid #fff; border-radius: 50%; background: var(--dash-accent); }
.profile-menu { position: relative; }
.profile-menu__trigger {
  min-width: 232px; height: 58px; display: flex; align-items: center; gap: 11px;
  padding: 7px 13px 7px 8px; border: 1px solid #dddde4; border-radius: 14px;
  color: var(--dash-text); background: #fff; cursor: pointer; text-align: left;
}
.dash-body .avatar { width: 43px; height: 43px; background: linear-gradient(135deg, #28a8ed, #087fc4); font-size: .92rem; }
.dash-body .avatar { overflow: hidden; border: 2px solid #d9effb; }
.dash-body .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transform: scale(1.12); }
.dash-body .topbar__user-text { flex: 1; gap: 4px; }
.dash-body .topbar__user-text strong { color: #101322; font-size: .86rem; }
.dash-body .topbar__user-text small { color: #858896; font-size: .76rem; }
.profile-menu__chevron { width: 16px; height: 16px; color: #7b7e8c; transition: transform .2s; }
.profile-menu__trigger[aria-expanded="true"] .profile-menu__chevron { transform: rotate(180deg); }
.profile-menu__panel {
  position: absolute; top: calc(100% + 12px); right: 0; width: 300px; padding: 16px;
  border: 1px solid var(--dash-border); border-radius: 16px; background: #fff;
  box-shadow: 0 24px 55px rgba(17, 24, 39, .16); opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: .18s ease;
}
.profile-menu__panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.profile-menu__label { margin: 0 0 10px; color: #8a8d9b; font-size: .69rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.theme-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; border-radius: 12px; background: #f1f1f4; }
.theme-switch button {
  min-height: 42px; display: flex; align-items: center; justify-content: center; padding: 9px;
  border: 0; border-radius: 9px; color: #767988; background: transparent; cursor: pointer; font-weight: 600;
}
.theme-switch button.is-active { color: #252836; background: #fff; box-shadow: 0 2px 7px rgba(17, 24, 39, .08); }
.theme-switch .icon { width: 17px; height: 17px; }
.theme-switch button:first-child .icon { color: var(--dash-accent); }
.profile-menu__identity { display: flex; flex-direction: column; gap: 3px; margin-top: 14px; padding: 14px 2px; border-bottom: 1px solid var(--dash-border); }
.profile-menu__identity strong { font-size: .86rem; }
.profile-menu__identity small { color: var(--dash-muted); font-size: .75rem; }
.profile-menu__logout { width: 100%; display: flex; align-items: center; gap: 10px; padding: 13px 2px 2px; border: 0; color: #ef4444; background: transparent; cursor: pointer; font-weight: 600; }

.dashboard-workspace { display: block; min-width: 0; flex: 1; background: var(--dash-bg); }
.dash-body .dash__content { min-width: 0; padding: 28px 24px 36px 34px; gap: 22px; background: var(--dash-bg); }
.dash-body .dash__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 34px 22px; color: #9a9ca7; background: var(--dash-bg); }
.dash-body .dash__footer p { margin: 0; }
.dash-body .dash__footer span { font-size: .76rem; }
.dashboard-welcome {
  position: relative; min-height: 228px; display: flex; align-items: center; overflow: hidden;
  padding: 30px 54% 30px 34px; border: 1px solid #d6ebfa; border-radius: 19px; color: #0c2556;
  background:
    radial-gradient(circle at 26% 10%, rgba(255,255,255,.96), transparent 34%),
    linear-gradient(104deg, #f7fbff 0%, #e7f5ff 48%, #cae9ff 100%);
  box-shadow: 0 12px 30px rgba(47, 137, 198, .10);
}
.dashboard-welcome::before,
.dashboard-welcome::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); }
.dashboard-welcome::before { width: 220px; height: 220px; left: -135px; bottom: -155px; background: rgba(95, 188, 242, .11); }
.dashboard-welcome::after { width: 160px; height: 160px; left: 37%; top: -112px; background: rgba(255,255,255,.42); }
.dashboard-welcome__copy { position: relative; z-index: 2; max-width: 510px; }
.dashboard-welcome h2 { margin: 0 0 12px; color: #0b2050; font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.12; letter-spacing: -.04em; }
.dashboard-welcome h2 span,
.dashboard-welcome h2 strong { display: block; }
.dashboard-welcome h2 strong { margin-top: 3px; font-weight: 800; }
.dashboard-welcome h2 i { display: inline-block; margin-left: 5px; font-size: .78em; font-style: normal; transform: rotate(-7deg); }
.dashboard-welcome p { max-width: 450px; margin: 0; color: #4e7dab; font-size: .86rem; font-weight: 500; line-height: 1.65; }
.dashboard-welcome img { position: absolute; z-index: 1; right: 1%; bottom: -4px; width: min(55%, 610px); max-height: 245px; object-fit: contain; object-position: right bottom; filter: drop-shadow(0 13px 20px rgba(24, 104, 170, .13)); }
.dashboard-tabs { width: fit-content; display: flex; gap: 3px; padding: 5px; border: 1px solid var(--dash-border); border-radius: 14px; background: #fff; }
.dashboard-tabs button { min-width: 118px; padding: 10px 16px; border: 0; border-radius: 10px; color: #737686; background: transparent; cursor: pointer; font-weight: 500; }
.dashboard-tabs button.is-active { color: #111827; background: #f1f1f3; font-weight: 700; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.metric-card { min-width: 0; border: 1px solid var(--dash-border); border-radius: 17px; background: var(--dash-card); overflow: hidden; box-shadow: 0 1px 2px rgba(17, 24, 39, .02); }
.metric-card__body { position: relative; min-height: 174px; padding: 25px 22px 20px; overflow: hidden; }
.metric-card__label { margin: 0 0 14px; color: var(--dash-muted); font-size: .85rem; font-weight: 500; }
.metric-card__value { display: block; margin-bottom: 12px; color: #080b16; font-size: 2rem; line-height: 1; letter-spacing: -.04em; }
.metric-card__value--text { max-width: 170px; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.02em; }
.metric-card__icon { position: absolute; top: 22px; right: 21px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: #087fc4; background: #e8f5fc; }
.metric-card__icon .icon { width: 22px; height: 22px; }
.metric-card__body small { display: block; color: var(--dash-muted); font-size: .74rem; }
.metric-card__footer { height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; border-top: 1px solid var(--dash-border); color: #161923; font-size: .8rem; font-weight: 700; }
.metric-card__footer:hover { color: var(--dash-accent); text-decoration: none; }
.metric-card__footer span { font-size: 1.3rem; font-weight: 400; }
.trend { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; font-size: .68rem; font-weight: 700; }
.trend .icon { width: 12px; height: 12px; }
.trend--up { color: #059669; background: #e8f9f1; }
.trend--warning { color: #087fc4; background: #eaf6fd; }
.trend--neutral { color: #667085; background: #f0f1f3; }
.trend--down { color: #ef4444; background: #feecec; }
.metric-card__caption { display: inline !important; margin-left: 4px; }
.spark-bars { position: absolute; right: 20px; bottom: 18px; height: 78px; display: flex; align-items: flex-end; gap: 5px; }
.spark-bars i { width: 9px; border-radius: 6px 6px 2px 2px; background: #bfe3f7; }
.spark-bars i:nth-child(1) { height: 52%; }.spark-bars i:nth-child(2) { height: 72%; }.spark-bars i:nth-child(3) { height: 92%; }.spark-bars i:nth-child(4) { height: 36%; }.spark-bars i:nth-child(5) { height: 8%; background: var(--dash-accent); }
.spark-bars--soft i:nth-child(1) { height: 25%; }.spark-bars--soft i:nth-child(2) { height: 50%; }.spark-bars--soft i:nth-child(3) { height: 75%; }.spark-bars--soft i:nth-child(4) { height: 42%; }
.spark-bars--low i { height: 9% !important; }.spark-bars--low i:first-child { height: 68% !important; }
.metric-card__body--ring { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-right: 28px; }
.mini-ring { --ring-color: var(--dash-accent); width: 78px; height: 78px; flex: 0 0 78px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--ring-color) calc(var(--value) * 1%), #f0f0f3 0); }
.mini-ring::before { content: ""; width: 57px; height: 57px; border-radius: 50%; background: var(--dash-card); grid-area: 1 / 1; }
.mini-ring span { position: relative; grid-area: 1 / 1; font-size: .75rem; font-weight: 800; }
.mini-ring--success { --ring-color: #20b486; }

.analytics-grid { display: grid; grid-template-columns: minmax(290px, .36fr) minmax(520px, 1fr); gap: 18px; }
.dashboard-card { border: 1px solid var(--dash-border); border-radius: 17px; background: var(--dash-card); box-shadow: 0 1px 2px rgba(17, 24, 39, .02); }
.dashboard-card__head { min-height: 77px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 22px 12px; }
.dashboard-card__head h2 { margin: 0 0 4px; color: var(--dash-text); font-size: 1rem; }
.dashboard-card__head p { margin: 0; color: var(--dash-muted); font-size: .76rem; }
.period-chip { padding: 7px 12px; border-radius: 999px; color: #5f6371; background: #f3f3f5; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.score-gauge { --ring-color: var(--dash-accent); width: 150px; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 10px auto 18px; border-radius: 50%; background: radial-gradient(circle at center, var(--dash-card) 61%, transparent 62%), conic-gradient(var(--ring-color) calc(var(--score) * 1%), #edeef2 0); }
.score-gauge strong { color: #0f1320; font-size: 2.1rem; line-height: 1; }
.score-gauge span { margin-top: 8px; color: var(--dash-muted); font-size: .72rem; }
.attention-box { margin: 0 22px 18px; padding: 15px 16px; border: 1px solid var(--dash-border); border-radius: 12px; background: #fafafa; }
.attention-box strong { display: block; margin-bottom: 5px; font-size: .82rem; }
.attention-box p { margin: 0; color: var(--dash-muted); font-size: .75rem; line-height: 1.55; }
.card-action { height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; border-top: 1px solid var(--dash-border); color: #111827; font-size: .78rem; font-weight: 700; }
.card-action:hover { color: var(--dash-accent); text-decoration: none; }
.chart-card { min-height: 390px; overflow: hidden; }
.bar-chart { position: relative; height: 285px; display: flex; align-items: flex-end; justify-content: space-around; gap: 32px; margin: 4px 22px 22px; padding: 20px 34px 38px; border-bottom: 1px solid var(--dash-border); }
.bar-chart__grid { position: absolute; inset: 20px 0 38px; display: flex; flex-direction: column; justify-content: space-between; }
.bar-chart__grid span { border-top: 1px solid #ececf0; }
.bar-chart__item { position: relative; z-index: 1; height: 100%; width: min(82px, 18%); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.bar-chart__item i { width: 100%; min-height: 8px; border-radius: 10px 10px 3px 3px; background: repeating-linear-gradient(135deg, #eff0f4 0 5px, #fafafa 5px 10px); border: 1px solid #eeeef2; }
.bar-chart__item:nth-of-type(3) i { background: linear-gradient(180deg, #55bff2, var(--dash-accent)); border-color: #39aae1; }
.bar-chart__value { margin-bottom: 8px; padding: 3px 7px; border-radius: 7px; color: #696c78; background: #fff; font-size: .68rem; font-weight: 700; }
.bar-chart__item small { position: absolute; top: calc(100% + 11px); color: #848795; font-size: .69rem; white-space: nowrap; }
.dashboard-card__head--table { align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--dash-border); }
.outline-action { display: inline-flex; align-items: center; justify-content: center; padding: 9px 14px; border: 1px solid var(--dash-border); border-radius: 10px; color: #262a36; background: #fff; font-size: .75rem; font-weight: 700; }
.outline-action:hover { color: var(--dash-accent); border-color: #9ed8f5; text-decoration: none; }

.dash-body .tenant-panel { padding: 0; overflow: hidden; }
.dash-body .tenant-table th { color: #868997; background: #fafafa; }
.dash-body .tenant-table td { border-color: var(--dash-border); }
.dash-body .tenant-table tbody tr:hover { background: #f5fbff; }
.dash-body .tenant-status--active { color: #07845f; background: #e8f8f1; }
.dash-body .badge--soon { color: #087fc4; background: #eaf6fd; }

.empty-chart { min-height: 290px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.empty-chart__bars { height: 80px; display: flex; align-items: flex-end; gap: 8px; margin-bottom: 18px; }
.empty-chart__bars i { width: 17px; border-radius: 6px 6px 2px 2px; background: #ececf0; }
.empty-chart__bars i:nth-child(1) { height: 25%; }.empty-chart__bars i:nth-child(2) { height: 48%; }.empty-chart__bars i:nth-child(3) { height: 34%; }.empty-chart__bars i:nth-child(4) { height: 68%; }.empty-chart__bars i:nth-child(5) { height: 45%; }.empty-chart__bars i:nth-child(6) { height: 18%; background: #bfe3f7; }
.empty-chart strong { margin-bottom: 6px; font-size: .9rem; }
.empty-chart p { margin: 0 0 16px; color: var(--dash-muted); font-size: .78rem; }
.onboarding-card { overflow: hidden; }
.onboarding-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--dash-border); }
.onboarding-steps article { display: flex; gap: 13px; padding: 22px; border-right: 1px solid var(--dash-border); }
.onboarding-steps article:last-child { border-right: 0; }
.onboarding-steps article > span { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 50%; color: #737686; background: #f0f0f3; font-size: .76rem; font-weight: 800; }
.onboarding-steps article.is-complete > span { color: #fff; background: #20b486; }
.onboarding-steps strong { display: block; margin-bottom: 5px; font-size: .8rem; }
.onboarding-steps p { margin: 0; color: var(--dash-muted); font-size: .72rem; line-height: 1.5; }

/* Mode gelap dari menu profil. */
.dash-body.theme-dark { --dash-bg: #17181d; --dash-card: #222329; --dash-border: #33353d; --dash-text: #f4f4f5; --dash-muted: #a5a7b1; background: var(--dash-bg); color: var(--dash-text); }
.theme-dark .sidebar, .theme-dark .topbar, .theme-dark .profile-menu__trigger, .theme-dark .profile-menu__panel, .theme-dark .dashboard-tabs, .theme-dark .outline-action { background: #202126; }
.theme-dark .customer-list th, .theme-dark .action-group, .theme-dark .customer-filter a.is-active { background: #282a30; }
.theme-dark .customer-list td, .theme-dark .customer-list th, .theme-dark .customer-info > div { border-color: var(--dash-border); }
.theme-dark .customer-list tbody tr:hover { background: #26272d; }
.theme-dark .customer-list td > strong, .theme-dark .customer-cell__name, .theme-dark .customer-info dd, .theme-dark .customer-cell--large h1, .theme-dark .action-group__btn { color: #f4f4f5; }
.theme-dark .sidebar__search, .theme-dark .attention-box, .theme-dark .tenant-table th { background: #282a30; }
.theme-dark .topbar__title, .theme-dark .topbar__user-text strong, .theme-dark .profile-menu__trigger, .theme-dark .metric-card__value, .theme-dark .dashboard-card__head h2, .theme-dark .metric-card__footer, .theme-dark .card-action, .theme-dark .tenant-table td strong { color: #f4f4f5; }
.theme-dark .sidebar__link { color: #d2d3d8; }
.theme-dark .sidebar__link.is-active { color: #67c7f4; background: #19394b; }
.theme-dark .theme-switch { background: #17181d; }.theme-dark .theme-switch button.is-active { color: #fff; background: #33353d; }
.theme-dark .mini-ring::before { background: var(--dash-card); }

@media (max-width: 1280px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-grid { grid-template-columns: minmax(280px, .42fr) minmax(460px, 1fr); }
}

@media (max-width: 1000px) {
  .dash-body .sidebar { position: fixed; width: min(var(--dash-sidebar), 84vw); z-index: 60; transform: translateX(-100%); transition: transform .22s ease; }
  .dash-body .dash.is-sidebar-open .sidebar { transform: translateX(0); }
  .dash-body .dash.is-sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(15, 18, 25, .46); }
  .dash-body .topbar { min-height: 78px; padding: 10px 18px; }
  .dash-body .topbar__toggle { display: inline-flex; }
  .dashboard-workspace { grid-template-columns: 1fr; }
  .dash-body .dash__content { padding: 20px 18px 22px; }
  .analytics-grid { grid-template-columns: 1fr; }
  .profile-menu__trigger { min-width: auto; }
  .profile-menu__trigger .topbar__user-text, .profile-menu__chevron { display: none; }
  .onboarding-steps { grid-template-columns: 1fr; }
  .onboarding-steps article { border-right: 0; border-bottom: 1px solid var(--dash-border); }
  .dashboard-welcome { padding-right: 48%; }
  .dashboard-welcome img { right: -2%; width: 52%; }
}

@media (max-width: 680px) {
  .dash-body .topbar { gap: 8px; }
  .dash-body .topbar__title { font-size: 1rem; }
  .topbar__notification { width: 40px; height: 40px; }
  .profile-menu__trigger { width: 44px; height: 44px; padding: 3px; border-radius: 12px; }
  .dash-body .avatar { width: 36px; height: 36px; }
  .profile-menu__panel { position: fixed; top: 68px; right: 12px; width: min(300px, calc(100vw - 24px)); }
  .dash-body .dash__content { padding: 16px 12px 24px; gap: 16px; }
  .dashboard-welcome { min-height: 238px; align-items: flex-start; padding: 27px 21px; }
  .dashboard-welcome__copy { max-width: 100%; }
  .dashboard-welcome p { max-width: 82%; font-size: .8rem; }
  .dashboard-welcome img { right: -58px; bottom: -7px; width: 68%; max-height: 176px; opacity: .38; }
  .dashboard-tabs { width: 100%; overflow-x: auto; }
  .dashboard-tabs button { min-width: 104px; flex: 1; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card__body { min-height: 160px; }
  .bar-chart { gap: 14px; padding-inline: 10px; }
  .bar-chart__item { width: 20%; }
  .dashboard-card__head { padding: 18px 16px 10px; }
  .attention-box { margin-inline: 16px; }
  .dash-body .dash__footer { padding-inline: 16px; }
  .dash-body .dash__footer { align-items: flex-start; flex-direction: column; gap: 4px; }
}

/* =========================================================
   Kartu paket (admin & client) — meniru kartu harga landing (assets/css/pricing.css)
   ========================================================= */
.pkg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 16px; padding-top: 78px; }
.pkg-card { --cloud: #0a8fe4; position: relative; display: flex; min-width: 0; flex-direction: column; border: 1px solid #dbe8f4; border-radius: 14px; background: #fff; box-shadow: 0 10px 26px rgba(18, 77, 136, .08); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.pkg-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(18, 77, 136, .14); }
.pkg-card--featured { --cloud: #3aa8ee; border-color: #7cc6f3; background: linear-gradient(180deg, #e3f3fd 0%, #f4faff 45%, #fff 100%); box-shadow: 0 16px 36px rgba(2, 132, 199, .18); }
.pkg-card.is-inactive { opacity: .62; }
.pkg-card__head { position: relative; display: flex; flex-direction: column; align-items: center; padding: 58px 12px 15px; border-radius: 14px 14px 0 0; background: linear-gradient(160deg, var(--cloud) 0%, #0670cc 100%); text-align: center; }
.pkg-card--featured .pkg-card__head { background: linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(160deg, #5bb8f2 0%, #1f8be0 100%); }
.pkg-card__head::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 14px); height: 40px; background: radial-gradient(circle at 22% 100%, var(--cloud) 26px, transparent 27px), radial-gradient(circle at 50% 100%, var(--cloud) 40px, transparent 41px), radial-gradient(circle at 78% 100%, var(--cloud) 26px, transparent 27px); pointer-events: none; }
.pkg-card--featured .pkg-card__head::before { --cloud: #5bb8f2; }
.pkg-card__mascot { position: absolute; top: -76px; left: 50%; z-index: 2; width: 124px; height: 124px; object-fit: contain; transform: translateX(-50%); filter: drop-shadow(0 10px 12px rgba(4, 44, 97, .28)); transition: transform .2s ease; }
.pkg-card:hover .pkg-card__mascot { transform: translateX(-50%) translateY(-5px) scale(1.04); }
.pkg-card__name { position: relative; margin: 0; color: #fff; font-size: 1.4rem; font-weight: 800; line-height: 1.15; text-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.pkg-card__badge { position: relative; margin-top: 6px; padding: 3px 12px; border-radius: 999px; color: #0670cc; background: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .05em; }
.pkg-card__popular { position: absolute; top: -13px; right: 12px; z-index: 3; padding: 4px 12px; border: 1.5px solid rgba(255,255,255,.7); border-radius: 999px; color: #fff; background: #2f6fea; box-shadow: 0 4px 12px rgba(37, 99, 235, .4); font-size: .68rem; font-weight: 700; }
.pkg-card__state { position: absolute; top: -13px; left: 12px; z-index: 3; padding: 4px 10px; border-radius: 999px; color: #6b7080; background: #f3f4f6; border: 1px solid #e5e7eb; font-size: .66rem; font-weight: 700; }
.pkg-card__body { display: flex; flex: 1; flex-direction: column; padding: 16px 16px 18px; }
.pkg-card__tagline { min-height: 40px; margin: 0 0 10px; color: #334155; font-size: .78rem; line-height: 1.5; }
.pkg-card__tags { display: flex; align-items: center; gap: 8px; min-height: 24px; margin-bottom: 4px; }
.pkg-card__tag { padding: 3px 10px; border-radius: 6px; color: #64748b; background: #f1f5f9; font-size: .68rem; font-weight: 600; }
.pkg-card__tag--discount { color: #1d6fd8; background: #dbeafe; font-weight: 700; }
.pkg-card__tags del, .pkg-card__yearly del { color: #94a3b8; font-size: .72rem; }
.pkg-card__price { margin: 0; color: #0f172a; font-size: 1.5rem; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.pkg-card__price span { font-size: .82rem; font-weight: 700; }
.pkg-card__yearly { min-height: 34px; margin: 4px 0 14px; color: #64748b; font-size: .7rem; line-height: 1.45; }
.pkg-card__features-title { margin: 6px 0 10px; color: #0f172a; font-size: .8rem; font-weight: 700; }
.pkg-card__features { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pkg-card__features li { display: flex; align-items: center; gap: 8px; color: #334155; font-size: .74rem; line-height: 1.35; }
.pkg-card__features b { color: #0f172a; }
.pkg-card__features .bi { flex-shrink: 0; color: #22b573; font-size: .9rem; }
.pkg-card__features li.is-off { color: #94a3b8; }
.pkg-card__features li.is-off .bi { color: #c4ccd6; }
.pkg-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-top: 1px solid #e2e8f0; border-radius: 0 0 14px 14px; background: rgba(250, 250, 250, .8); }
.pkg-card__footer small { color: var(--dash-muted); font-size: .7rem; }
.pkg-card__footer small b { color: var(--dash-text); }
.pkg-card__select { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 4px; padding: 10px 14px; border-radius: 10px; color: #fff; background: #0f1d3a; box-shadow: 0 6px 16px rgba(15, 29, 58, .22); font-size: .82rem; font-weight: 700; cursor: pointer; transition: background .15s, transform .15s; user-select: none; }
.pkg-card--featured .pkg-card__select { background: linear-gradient(135deg, #168fd5, #1d4ed8); box-shadow: 0 8px 22px rgba(22, 143, 213, .28); }
.pkg-card__select:hover { transform: translateY(-1px); }
.pkg-card__select input { position: absolute; opacity: 0; pointer-events: none; }
.pkg-card__select .bi-check2-circle { display: none; }
.pkg-card__select:focus-within { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px; }
.pkg-card.is-selected { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .22), 0 16px 36px rgba(18, 77, 136, .14); }
.pkg-card.is-selected .pkg-card__select { background: #16a34a; box-shadow: 0 6px 16px rgba(22, 163, 74, .3); }
.pkg-card.is-selected .pkg-card__select .bi-plus-circle { display: none; }
.pkg-card.is-selected .pkg-card__select .bi-check2-circle { display: inline; }
.pkg-card__owned { display: flex; align-items: center; justify-content: center; gap: 6px; margin: -2px 0 4px; color: #16a34a; font-size: .7rem; font-weight: 600; }
.pkg-empty { grid-column: 1 / -1; margin-top: -60px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0 0 4px; color: var(--dash-text); font-size: 1.2rem; }
.page-head p { margin: 0; color: var(--dash-muted); font-size: .8rem; }
.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.landing-sync-note { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px dashed #b8dcf3; border-radius: 11px; color: #3e6d96; background: #f5fbff; font-size: .76rem; }
@media (max-width: 1250px) { .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 96px; } }
@media (max-width: 640px) { .pkg-grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; } .pkg-card__tagline, .pkg-card__yearly { min-height: 0; } }

/* Form tambahan: select, textarea, checkbox, radio maskot */
.form-field select, .form-field textarea { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--dash-border); border-radius: 10px; color: var(--dash-text); background: var(--dash-card); font: inherit; font-size: .84rem; }
.form-field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.form-field select:focus, .form-field textarea:focus { outline: none; border-color: #63bdea; box-shadow: 0 0 0 3px rgba(22, 143, 213, .14); }
.form-field--error select, .form-field--error textarea { border-color: #f5a3a3; background: #fffafa; }
.form-field--wide { grid-column: 1 / -1; }
.form-field__suffix { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: #9a9dab; font-size: .78rem; pointer-events: none; }
.form-switches { display: flex; flex-wrap: wrap; gap: 12px; }
.form-switch { flex: 1 1 240px; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--dash-border); border-radius: 11px; cursor: pointer; }
.form-switch input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--dash-accent); }
.form-switch strong { display: block; color: var(--dash-text); font-size: .8rem; }
.form-switch small { display: block; color: var(--dash-muted); font-size: .72rem; }
.mascot-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.mascot-picker label { position: relative; display: grid; place-items: center; gap: 4px; padding: 8px; border: 1px solid var(--dash-border); border-radius: 11px; color: var(--dash-muted); font-size: .66rem; text-align: center; cursor: pointer; }
.mascot-picker img { width: 62px; height: 62px; object-fit: contain; }
.mascot-picker input { position: absolute; opacity: 0; }
.mascot-picker label:has(input:checked) { border-color: var(--dash-accent); background: #f2f9fe; box-shadow: 0 0 0 2px rgba(22, 143, 213, .2); color: #087fc4; }
.mascot-picker label:focus-within { outline: 2px solid rgba(22, 143, 213, .4); }
.mascot-picker__none { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: #f3f4f6; font-size: 1.3rem; }
.pkg-preview { padding: 92px 18px 20px; }
.pkg-preview .pkg-card:hover { transform: none; }

/* Katalog sewa client */
.template-picker { margin-bottom: 8px; overflow: hidden; }
.template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 8px 22px 22px; }
.template-option { position: relative; display: grid; gap: 7px; padding: 15px; border: 1px solid var(--dash-border); border-radius: 14px; background: var(--dash-card); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.template-option:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(18,77,136,.1); }
.template-option input { position: absolute; opacity: 0; }
.template-option:has(input:checked) { border-color: #168fd5; box-shadow: 0 0 0 3px rgba(22,143,213,.15); }
.template-option__visual { display: flex; align-items: center; gap: 8px; color: #fff; padding: 13px; border-radius: 10px; background: linear-gradient(135deg,#168fd5,#1d4ed8); }
.template-option--violet .template-option__visual { background: linear-gradient(135deg,#7c3aed,#4f46e5); }
.template-option--navy .template-option__visual { background: linear-gradient(135deg,#0f172a,#164e63); }
.template-option__visual .bi { font-size: 1.2rem; }
.template-option > strong { color: var(--dash-text); font-size: .82rem; }
.template-option > small { min-height: 48px; color: var(--dash-muted); font-size: .72rem; line-height: 1.5; }
.template-option > a { color: var(--dash-accent); font-size: .72rem; font-weight: 700; }
.template-inline { display: flex; align-items: center; gap: 7px; }
.template-inline select { max-width: 130px; padding: 7px 9px; border: 1px solid var(--dash-border); border-radius: 8px; background: var(--dash-card); font-size: .74rem; }
.rent-bar { position: sticky; bottom: 14px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 18px; border: 1px solid #cfe8fa; border-radius: 16px; background: rgba(255, 255, 255, .97); box-shadow: 0 16px 40px rgba(18, 77, 136, .16); backdrop-filter: blur(10px); }
.rent-bar__cycle { display: flex; gap: 4px; padding: 4px; border-radius: 11px; background: #f1f5f9; }
.rent-bar__cycle label { position: relative; padding: 7px 14px; border-radius: 8px; color: #64748b; font-size: .78rem; font-weight: 600; cursor: pointer; }
.rent-bar__cycle input { position: absolute; opacity: 0; }
.rent-bar__cycle label:has(input:checked) { color: #0f172a; background: #fff; box-shadow: 0 2px 6px rgba(17, 24, 39, .08); }
.rent-bar__cycle label:focus-within { outline: 2px solid rgba(22, 143, 213, .4); }
.rent-bar__summary { margin-left: auto; text-align: right; }
.rent-bar__summary small { display: block; color: var(--dash-muted); font-size: .72rem; }
.rent-bar__summary strong { color: #0f172a; font-size: 1.2rem; }
.rent-bar .btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* Halaman payment */
.pay-layout { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.pay-layout > .back-link { grid-column: 1 / -1; margin-bottom: 0; }
.pay-items { width: 100%; border-collapse: collapse; }
.pay-items th, .pay-items td { padding: 12px 22px; border-bottom: 1px solid #f0f0f3; text-align: left; font-size: .8rem; }
.pay-items th { color: #8a8d9b; background: #fafafa; font-size: .68rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.pay-items td:last-child, .pay-items th:last-child { text-align: right; white-space: nowrap; }
.pay-items tfoot td { border-bottom: 0; color: var(--dash-text); font-weight: 700; font-size: .9rem; }
.pay-items tfoot td:last-child { color: #087fc4; font-size: 1.1rem; }
.pay-gateway { padding: 22px; }
.pay-gateway__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pay-gateway__logo { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #e11d48, #be123c); font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.pay-gateway__brand strong { display: block; color: var(--dash-text); font-size: .92rem; }
.pay-gateway__brand small { color: var(--dash-muted); font-size: .72rem; }
.pay-gateway__status { display: flex; gap: 10px; margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; font-size: .76rem; line-height: 1.5; }
.pay-gateway__status .bi { font-size: 1.05rem; line-height: 1.3; }
.pay-gateway__status--wait { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; }
.pay-gateway__status--ready { color: #065f46; background: #ecfdf5; border: 1px solid #a7f3d0; }
.pay-gateway__status--paid { color: #065f46; background: #ecfdf5; border: 1px solid #a7f3d0; }
.pay-gateway__status--error { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }
.pay-gateway .btn { width: 100%; }
.pay-gateway .btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.pay-gateway__note { margin: 12px 0 0; color: var(--dash-muted); font-size: .72rem; line-height: 1.5; text-align: center; }
.pay-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--dash-border); }
.pay-total span { color: var(--dash-muted); font-size: .78rem; }
.pay-total strong { color: #087fc4; font-size: 1.45rem; letter-spacing: -.02em; }
.pill--warning { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.invoice-reminder { color: #dc2626 !important; font-weight: 700; }

/* Pengaturan & panduan */
.setup-steps { margin: 0; padding: 0 22px 22px 42px; color: #4b5060; font-size: .78rem; line-height: 1.6; }
.setup-steps li + li { margin-top: 6px; }
.setup-steps code, .copy-field code { padding: 2px 6px; border-radius: 6px; color: #0f4c75; background: #eef7fd; font-size: .74rem; word-break: break-all; }
.copy-field { display: grid; gap: 4px; margin: 0 22px 16px; padding: 10px 12px; border: 1px dashed #b8dcf3; border-radius: 10px; background: #f8fcff; }
.copy-field small { color: var(--dash-muted); font-size: .7rem; font-weight: 600; }

/* Dashboard & profil */
.quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.quick-action { display: flex; align-items: center; gap: 13px; padding: 16px 18px; border: 1px solid var(--dash-border); border-radius: 15px; color: var(--dash-text); background: var(--dash-card); transition: border-color .15s, box-shadow .15s, transform .15s; }
.quick-action:hover { border-color: #9ed8f5; box-shadow: 0 10px 24px rgba(18, 77, 136, .1); transform: translateY(-2px); text-decoration: none; }
.quick-action > .bi { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 12px; color: #087fc4; background: #e8f5fc; font-size: 1.15rem; }
.quick-action strong { display: block; font-size: .84rem; }
.quick-action small { display: block; color: var(--dash-muted); font-size: .72rem; }
.quick-action--accent > .bi { color: #fff; background: linear-gradient(135deg, #168fd5, #1d4ed8); }
.metric-card__icon .bi { font-size: 1.25rem; }
.dash-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.dash-two-col .dashboard-card { overflow: hidden; }
.profile-layout { width: 100%; min-width: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.profile-forms { display: grid; gap: 18px; }
.customer-detail-grid--activity { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.activity-list { display: grid; padding: 6px 22px 18px; }
.activity-item { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--dash-border); }
.activity-item:last-child { border-bottom: 0; }
.activity-item > span { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; color: var(--dash-accent); background: #eaf6fd; }
.activity-item strong, .activity-item small { display: block; }
.activity-item strong { color: var(--dash-text); font-size: .78rem; }
.activity-item small { margin-top: 3px; color: var(--dash-muted); font-size: .69rem; }

/* Preview template billing */
.template-preview-page { display: grid; gap: 18px; }
.template-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.template-preview-head span { color: var(--dash-accent); font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
.template-preview-head h1 { margin: 5px 0; color: var(--dash-text); font-size: 1.45rem; }
.template-preview-head p { margin: 0; color: var(--dash-muted); font-size: .8rem; }
.template-browser { overflow: hidden; border: 1px solid var(--dash-border); border-radius: 18px; background: #fff; box-shadow: 0 20px 50px rgba(15,23,42,.12); }
.template-browser__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid #e5e7eb; background: #f8fafc; }
.template-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #f87171; }
.template-browser__bar i:nth-child(2) { background: #fbbf24; }.template-browser__bar i:nth-child(3) { background: #34d399; }
.template-browser__bar span { margin-left: 10px; padding: 6px 14px; border-radius: 7px; color: #64748b; background: #fff; font-size: .68rem; }
.template-demo { min-height: 560px; display: grid; grid-template-columns: 210px minmax(0,1fr); background: #f4f7fb; }
.template-demo > aside { padding: 24px 16px; color: #cbd5e1; background: #0f2747; }
.template-preview-page--violet .template-demo > aside { background: #312e81; }.template-preview-page--navy .template-demo > aside { background: #071525; }
.template-demo > aside b { display: block; margin: 0 10px 28px; color: #fff; letter-spacing: .1em; }
.template-demo nav { display: grid; gap: 7px; }.template-demo nav span { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 9px; font-size: .72rem; }.template-demo nav .is-active { color: #fff; background: rgba(255,255,255,.14); }
.template-demo > main { padding: 24px; }.template-demo header { display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.template-demo header small{color:#64748b}.template-demo header h2{margin:3px 0;color:#0f172a}.template-demo__avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;color:#fff;background:#168fd5;font-size:.7rem;font-weight:800}
.template-demo__metrics { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.template-demo__metrics article,.template-demo__content article{padding:16px;border:1px solid #e5e7eb;border-radius:13px;background:#fff}.template-demo__metrics small,.template-demo__metrics em{display:block;color:#64748b;font-size:.65rem;font-style:normal}.template-demo__metrics strong{display:block;margin:8px 0;color:#0f172a;font-size:1.15rem}.template-demo__content{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(220px,.8fr);gap:12px;margin-top:12px}.template-demo__content article>div:first-child{display:flex;justify-content:space-between}.template-demo__content h3{margin:0;color:#0f172a;font-size:.8rem}.template-chart{height:250px!important;display:flex!important;align-items:flex-end!important;gap:8px;margin-top:18px}.template-chart i{flex:1;border-radius:5px 5px 0 0;background:linear-gradient(#55bff2,#168fd5)}.template-demo__content ul{margin:15px 0 0;padding:0;list-style:none}.template-demo__content li{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid #eef2f7;color:#64748b;font-size:.7rem}.template-demo__content li b{color:#059669}
@media (max-width: 1100px) { .pay-layout, .profile-layout, .dash-two-col { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .template-grid, .customer-detail-grid--activity { grid-template-columns: 1fr; } .template-demo { grid-template-columns: 1fr; }.template-demo>aside{display:none}.template-demo__metrics{grid-template-columns:repeat(2,1fr)} }
@media (max-width: 760px) { .quick-actions { grid-template-columns: 1fr; } .rent-bar__summary { margin-left: 0; text-align: left; } .rent-bar .btn { width: 100%; } .template-preview-head{align-items:flex-start;flex-direction:column}.template-demo__content{grid-template-columns:1fr}.template-demo__metrics{grid-template-columns:1fr 1fr}.template-demo>main{padding:14px} }
.theme-dark .pkg-card, .theme-dark .rent-bar { background: var(--dash-card); border-color: var(--dash-border); }
.theme-dark .pkg-card__tagline, .theme-dark .pkg-card__features li { color: #d2d3d8; }
.theme-dark .pkg-card__price, .theme-dark .pkg-card__features b, .theme-dark .pkg-card__features-title, .theme-dark .rent-bar__summary strong { color: #f4f4f5; }
.theme-dark .pkg-card__footer, .theme-dark .pay-items th { background: #282a30; }.form-field__label { display: block; margin-bottom: 6px; color: #374151; font-size: .78rem; font-weight: 600; }
.form-switches--spaced { margin-top: 16px; }
.form-required-note { color: var(--dash-muted); font-size: .74rem; }
.aside-eyebrow { margin: 0 0 4px !important; color: var(--dash-muted); font-size: .7rem !important; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.customer-form-aside__note--spaced { margin-top: 14px !important; }
.pkg-preview { padding: 84px 0 4px; text-align: left; }.bar-chart--revenue { gap: 14px; padding-inline: 16px; }
.bar-chart--revenue .bar-chart__item { width: min(70px, 14%); }
.bar-chart--revenue .bar-chart__item:nth-of-type(3) i { background: repeating-linear-gradient(135deg, #eff0f4 0 5px, #fafafa 5px 10px); border-color: #eeeef2; }
.bar-chart--revenue .bar-chart__item.is-current i { background: linear-gradient(180deg, #55bff2, var(--dash-accent)); border-color: #39aae1; }
.performance-card .customer-info dt .pill { font-size: .68rem; }.dash-two-col .customer-list--narrow { min-width: 0; }
.dash-two-col .customer-list th, .dash-two-col .customer-list td { padding-inline: 12px; }
.dash-two-col .customer-list td:not(:first-child) { white-space: nowrap; }.log-ip { padding: 2px 7px; border-radius: 6px; color: #475569; background: #f1f5f9; font-size: .74rem; }
.customer-list td > small.log-agent { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-toolbar .outline-action { padding: 7px 12px; }
.payments-list td:nth-child(n+2) { white-space: nowrap; }
.payments-list td:first-child small { max-width: 260px; }
.page-head h1:only-child, .page-head > h1 { margin: 0; }
.theme-dark .log-ip { color: #d2d3d8; background: #282a30; }
.pill--orange { color: #087fc4; background: #eaf6fd; border-color: #cbe9fa; }
.pkg-card__renew { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin: 0 0 6px; color: #087fc4; font-size: .7rem; font-weight: 600; line-height: 1.4; text-align: center; }
.pay-items td .pill { margin-left: 6px; vertical-align: middle; }
.pay-items__note { display: block; margin-top: 3px; color: var(--dash-muted); font-size: .72rem; }
.ticket-toolbar__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ticket-list td:not(.ticket-list__subject) { white-space: nowrap; }
.ticket-list__subject { min-width: 220px; }
.ticket-page { width: 100%; min-width: 0; display: grid; gap: 18px; }
.ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; }
.ticket-head__code { display: inline-flex; align-items: center; gap: 6px; color: var(--dash-muted); font-size: .74rem; font-weight: 700; letter-spacing: .03em; }
.ticket-head h1 { margin: 6px 0 10px; color: var(--dash-text); font-size: 1.2rem; line-height: 1.35; word-break: break-word; }
.ticket-head__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.ticket-side { display: grid; gap: 18px; min-width: 0; }
.ticket-thread { overflow: hidden; }
.ticket-messages { display: grid; gap: 18px; margin: 0; padding: 22px; list-style: none; }
.ticket-msg { display: flex; align-items: flex-start; gap: 10px; max-width: 82%; }
.ticket-msg--mine { flex-direction: row-reverse; margin-left: auto; }
.ticket-msg__avatar { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #94a3b8; font-size: .82rem; font-weight: 700; }
.ticket-msg--admin .ticket-msg__avatar { background: var(--dash-accent); }
.ticket-msg__body { min-width: 0; }
.ticket-msg__meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; font-size: .74rem; }
.ticket-msg--mine .ticket-msg__meta { justify-content: flex-end; }
.ticket-msg__meta strong { color: var(--dash-text); font-size: .8rem; }
.ticket-msg__meta time { color: var(--dash-muted); }
.ticket-msg__role { padding: 1px 8px; border-radius: 999px; color: #6b7080; background: #f3f4f6; font-size: .66rem; font-weight: 700; }
.ticket-msg--admin .ticket-msg__role { color: #087fc4; background: #eaf6fd; }
.ticket-msg__bubble { padding: 12px 15px; border: 1px solid var(--dash-border); border-radius: 4px 14px 14px 14px; color: var(--dash-text); background: #f8fafc; font-size: .84rem; line-height: 1.6; overflow-wrap: anywhere; }
.ticket-msg--admin .ticket-msg__bubble { border-color: #cbe9fa; background: #eef8fe; }
.ticket-msg--mine .ticket-msg__bubble { border-radius: 14px 4px 14px 14px; }
.ticket-reply { padding: 18px 22px 20px; border-top: 1px solid var(--dash-border); background: #fafafa; }
.ticket-reply textarea { min-height: 110px; }
.ticket-reply input[type="file"], .customer-form input[type="file"] { width: 100%; padding: 10px; border: 1px dashed var(--dash-border); border-radius: 10px; background: #fff; color: var(--dash-muted); font-size: .78rem; }
.ticket-upload { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; color: var(--dash-accent); font-size: .78rem; font-weight: 700; cursor: pointer; }
.ticket-upload + input[type="file"] { margin-top: 8px; }
.form-field__optional { color: var(--dash-muted); font-size: .72rem; font-weight: 500; }
.ticket-attachments { overflow: hidden; }
.ticket-attachment-list { display: grid; gap: 9px; margin: 0; padding: 10px 22px 18px; list-style: none; }
.ticket-attachment-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 7px; font-size: .78rem; }
.ticket-attachment-list li > i { color: var(--dash-accent); }
.ticket-attachment-list a { min-width: 0; overflow: hidden; color: var(--dash-accent); text-overflow: ellipsis; white-space: nowrap; }
.ticket-attachment-list small { color: var(--dash-muted); }
.ticket-reply__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.ticket-reply__footer small { color: var(--dash-muted); font-size: .74rem; }
.ticket-closed-note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 16px 22px; border-top: 1px solid var(--dash-border); color: #6b7080; background: #f6f7f9; font-size: .8rem; }
.ticket-info .customer-info, .ticket-status-form__body { padding: 8px 22px 18px; }
.ticket-info .customer-info a { color: var(--dash-accent); }
.ticket-status-form__body { display: grid; gap: 14px; padding-top: 18px; }
.ticket-status-form__body .btn { justify-self: end; }
@media (max-width: 1100px) { .ticket-layout { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
    .ticket-head { align-items: flex-start; flex-direction: column; }
    .ticket-messages { padding: 16px; }
    .ticket-msg { max-width: 100%; }
    .ticket-reply { padding: 16px; }
    .ticket-reply__footer { flex-direction: column; align-items: stretch; }
    .ticket-reply__footer .btn { justify-content: center; }
}
.theme-dark .pill--orange { color: #8ed8ff; background: #123451; border-color: #1e5b83; }
.theme-dark .ticket-msg__bubble { background: #22242a; }
.theme-dark .ticket-msg--admin .ticket-msg__bubble { border-color: #1f4a66; background: #142a38; }
.theme-dark .ticket-reply, .theme-dark .ticket-closed-note { background: #1c1e23; }

/* Katalog template client */
.template-catalog-page,
.service-page { width: 100%; min-width: 0; }
.template-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.template-showcase { min-width: 0; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.template-showcase:hover { border-color: #b9dff5; box-shadow: 0 18px 38px rgba(18, 77, 136, .12); transform: translateY(-3px); }
.template-showcase__screen { position: relative; height: 210px; overflow: hidden; background: linear-gradient(145deg, #e8f7ff 0%, #caebfb 100%); }
.template-showcase__screen::before { content: ""; position: absolute; inset: 18px 20px; border: 6px solid rgba(255, 255, 255, .9); border-radius: 13px; background: #f8fbfd; box-shadow: 0 14px 28px rgba(25, 76, 122, .18); }
.template-showcase__screen::after { content: ""; position: absolute; left: 20px; right: 20px; top: 18px; height: 22px; border-radius: 13px 13px 0 0; background: rgba(255, 255, 255, .95); }
.template-showcase__sidebar { position: absolute; z-index: 1; top: 46px; bottom: 24px; left: 26px; width: 58px; display: grid; align-content: start; gap: 10px; padding: 15px 10px; border-radius: 7px 0 0 7px; background: #106fa9; }
.template-showcase__sidebar i { display: block; height: 6px; border-radius: 5px; background: rgba(255, 255, 255, .48); }
.template-showcase__sidebar i:first-child { width: 70%; height: 10px; margin-bottom: 7px; background: #fff; }
.template-showcase__content { position: absolute; z-index: 1; top: 52px; right: 29px; bottom: 29px; left: 94px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 22px 40px 1fr; gap: 8px; }
.template-showcase__content b { grid-column: 1 / -1; width: 48%; border-radius: 6px; background: #dce5ec; }
.template-showcase__content i { border: 1px solid #e5edf2; border-radius: 7px; background: #fff; box-shadow: 0 4px 10px rgba(15, 23, 42, .04); }
.template-showcase__content em { grid-column: 1 / -1; border-radius: 7px; background: linear-gradient(180deg, #fff, #f7fafc); }
.template-showcase__icon { position: absolute; z-index: 2; right: 12px; bottom: 10px; width: 48px; height: 48px; display: grid; place-items: center; border: 4px solid rgba(255, 255, 255, .9); border-radius: 15px; color: #fff; background: #168fd5; box-shadow: 0 8px 18px rgba(22, 143, 213, .3); font-size: 1.15rem; }
.template-showcase--violet .template-showcase__screen { background: linear-gradient(145deg, #f1ecff, #ddd5ff); }
.template-showcase--violet .template-showcase__sidebar { background: #5b4ac9; }
.template-showcase--violet .template-showcase__icon { background: #6553dc; box-shadow: 0 8px 18px rgba(101, 83, 220, .3); }
.template-showcase--navy .template-showcase__screen { background: linear-gradient(145deg, #dcecf5, #c8dde9); }
.template-showcase--navy .template-showcase__sidebar { background: #102f46; }
.template-showcase--navy .template-showcase__icon { background: #164e63; box-shadow: 0 8px 18px rgba(22, 78, 99, .3); }
.template-showcase__body { display: flex; min-height: 248px; flex-direction: column; align-items: flex-start; padding: 20px; }
.template-showcase__body .mini-badge { color: #087fc4; background: #eaf6fd; }
.template-showcase__body h2 { margin: 12px 0 3px; color: var(--dash-text); font-size: 1.05rem; }
.template-showcase__body > strong { color: #334155; font-size: .82rem; }
.template-showcase__body p { flex: 1; margin: 10px 0 18px; color: var(--dash-muted); font-size: .76rem; line-height: 1.6; }
.template-showcase__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.template-showcase__actions .btn { min-width: 116px; justify-content: center; }

/* Pengelolaan layanan client */
.service-form { display: grid; gap: 16px; padding: 20px 22px 22px; }
.service-form .form-field label { display: block; margin-bottom: 6px; color: #374151; font-size: .76rem; font-weight: 700; }
.service-form input:not([type="radio"]),
.service-form select { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--dash-border); border-radius: 10px; color: var(--dash-text); background: var(--dash-card); font: inherit; font-size: .8rem; }
.service-form input:focus,
.service-form select:focus { outline: none; border-color: #63bdea; box-shadow: 0 0 0 3px rgba(22, 143, 213, .13); }
.service-domain-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.service-domain-choice label { position: relative; min-width: 0; cursor: pointer; }
.service-domain-choice input { position: absolute; opacity: 0; pointer-events: none; }
.service-domain-choice span { height: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; padding: 12px; border: 1px solid var(--dash-border); border-radius: 11px; transition: border-color .15s, background .15s, box-shadow .15s; }
.service-domain-choice i { grid-row: 1 / 3; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #087fc4; background: #eaf6fd; }
.service-domain-choice b { overflow: hidden; color: var(--dash-text); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.service-domain-choice small { color: var(--dash-muted); font-size: .66rem; line-height: 1.4; }
.service-domain-choice input:checked + span { border-color: #48aee2; background: #f3faff; box-shadow: 0 0 0 2px rgba(22, 143, 213, .13); }
.service-domain-choice input:focus-visible + span { outline: 2px solid rgba(22, 143, 213, .4); outline-offset: 2px; }
.domain-input { display: flex; min-width: 0; }
.domain-input input { min-width: 0; border-radius: 10px 0 0 10px !important; }
.domain-input span { display: flex; align-items: center; flex: 0 0 auto; padding: 0 12px; border: 1px solid var(--dash-border); border-left: 0; border-radius: 0 10px 10px 0; color: #64748b; background: #f8fafc; font-size: .72rem; }
.service-form .form-field__hint { margin: 7px 0 0; color: var(--dash-muted); font-size: .68rem; line-height: 1.5; }
.service-form .form-field__error { margin: 6px 0 0; color: #dc2626; font-size: .7rem; }
.service-form footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 2px; }

@media (max-width: 1180px) {
    .template-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .template-catalog { grid-template-columns: 1fr; }
    .template-showcase__body { min-height: 0; }
    .service-domain-choice { grid-template-columns: 1fr; }
    .domain-input { display: block; }
    .domain-input input { border-radius: 10px 10px 0 0 !important; }
    .domain-input span { min-height: 38px; border-top: 0; border-left: 1px solid var(--dash-border); border-radius: 0 0 10px 10px; }
}
.theme-dark .template-showcase__body > strong,
.theme-dark .service-form .form-field label { color: #d8dbe2; }
.theme-dark .service-domain-choice input:checked + span { background: #142a38; }
.theme-dark .domain-input span { color: #b9bec8; background: #282a30; }

/* =========================================================
   Komponen bersama dashboard (admin & client)
   Tipografi, kartu, tombol, tabel, badge, toolbar, state kosong.
   ========================================================= */
[hidden] { display: none !important; }
.dash-body { --dash-radius: 16px; --dash-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .03); font-size: 14px; }
.dash-body h1, .dash-body h2, .dash-body h3 { font-weight: 600; letter-spacing: -.01em; }
.dash-body strong, .dash-body b { font-weight: 600; }
.dash-body ::selection { background: #cfe8fa; }

/* Topbar & area konten */
.dash-body .topbar__title { font-size: 1.12rem; font-weight: 600; }
@media (min-width: 1001px) {
  .dash-body .topbar { min-height: 76px; padding: 12px 32px; }
  .dash-body .profile-menu__trigger { height: 50px; min-width: 220px; border-radius: 13px; }
  .dash-body .avatar { width: 36px; height: 36px; }
  .dash-body .topbar__notification { width: 42px; height: 42px; }
  .dash-body .topbar__notification span { top: 10px; right: 10px; }
}
.dash-body .dash__content { padding: 28px 32px 40px; gap: 20px; }
.dash-body .dash__footer { padding: 16px 32px 22px; border-top: 1px solid var(--dash-border); }

/* Header halaman: judul + tombol aksi di kanan */
.page-head { min-height: 40px; }
.page-head h1 { margin: 0; color: var(--dash-text); font-size: 1.22rem; font-weight: 600; line-height: 1.3; }
.page-head p { margin: 4px 0 0; }

/* Tombol */
.dash-body .btn { min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: .8rem; font-weight: 600; line-height: 1; white-space: nowrap; }
.dash-body .btn--sm { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: .76rem; }
.dash-body .btn .bi { font-size: 1em; }
.dash-body .btn--primary { color: #fff; border-color: transparent; background: linear-gradient(135deg, #1f7ae0, #168fd5); box-shadow: 0 4px 12px rgba(22, 120, 213, .22); }
.dash-body .btn--primary:hover { background: linear-gradient(135deg, #1868c4, #0f7fc2); box-shadow: 0 6px 16px rgba(22, 120, 213, .28); }
.dash-body .btn--ghost { color: #273142; border-color: var(--dash-border); background: var(--dash-card); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.dash-body .btn--ghost:hover { color: #087fc4; border-color: #9ed8f5; background: #f2f9fe; }
.dash-body .btn--danger { min-height: 40px; }
.dash-body .btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.dash-body .outline-action { min-height: 34px; padding: 0 13px; border-radius: 9px; font-size: .74rem; font-weight: 600; }

/* Kartu */
.dash-body .dashboard-card, .dash-body .metric-card, .dash-body .card { border-color: var(--dash-border); border-radius: var(--dash-radius); box-shadow: var(--dash-shadow); }
.dash-body .card { background: var(--dash-card); }
.dash-body .dashboard-card__head { min-height: 0; padding: 18px 22px 14px; }
.dash-body .dashboard-card__head h2 { font-size: .98rem; font-weight: 600; }
.dash-body .dashboard-card__head p { font-size: .74rem; }
.dash-body .dashboard-card__head--table { padding-bottom: 16px; }
.dash-body .metric-card__label { font-size: .8rem; }
.dash-body .metric-card__value { font-weight: 700; }
.dash-body .metric-card__footer { height: 46px; font-size: .76rem; font-weight: 600; }

/* Kartu statistik bersama (partial stat-card) */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card { --stat-accent: #168fd5; --stat-soft: #bfe3f7; container-type: inline-size; min-width: 0; display: flex; flex-direction: column; border: 1px solid #eceef2; border-radius: 20px; background: var(--dash-card, #fff); box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px rgba(16, 24, 40, .04); transition: border-color .15s, box-shadow .15s; }
.stat-card.is-active { border-color: #7cc6f3; box-shadow: 0 0 0 3px rgba(22, 143, 213, .12); }
.stat-card__label { margin: 0; padding: 22px 22px 0; color: #6b7080; font-size: .8rem; font-weight: 500; line-height: 1.35; }
.stat-card__body { flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-auto-rows: min-content; align-content: start; align-items: start; column-gap: 14px; padding: 10px 22px 20px; }
.stat-card__main { display: contents; }
.stat-card__value { grid-column: 1 / -1; min-width: 0; color: #15171c; font-size: clamp(1.25rem, 11cqi, 1.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-card__trend, .stat-card__caption { grid-column: 1; justify-self: start; }
.stat-card__bars, .stat-card__ring, .stat-card__dots { grid-column: 2; grid-row: 2 / span 2; }
.stat-card__trend { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
.stat-card__trend i { font-size: .82rem; }
.stat-card__trend--bad { color: #e5484d; background: #fdecec; }
.stat-card__trend--good { color: #16a34a; background: #e8f8ee; }
.stat-card__trend--flat { color: #6b7080; background: #f1f3f6; }
.stat-card__caption { margin-top: 10px; color: #7a7f8e; font-size: .74rem; line-height: 1.45; }
.stat-card__trend + .stat-card__caption { margin-top: 8px; }
.stat-card__bars { flex: 0 0 auto; align-self: flex-end; display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.stat-card__bars span { width: 9px; min-height: 3px; border-radius: 3px; background: var(--stat-soft); }
.stat-card__bars span.is-current { background: var(--stat-accent); }
.stat-card__ring { --ring: 0; flex: 0 0 auto; width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--stat-accent) calc(var(--ring) * 1%), #e5f3fb 0); }
.stat-card__ring span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: #15171c; background: var(--dash-card, #fff); font-size: .74rem; font-weight: 700; }
.stat-card__dots { flex: 0 0 auto; align-self: flex-end; display: flex; align-items: center; gap: 6px; padding-bottom: 4px; }
.stat-card__dots span { width: 7px; height: 7px; border-radius: 50%; background: #e5f3fb; }
.stat-card__dots span.is-on { background: var(--stat-soft); }
.stat-card__dots span.is-current { background: var(--stat-accent); }
.stat-card__link { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 16px; border-top: 1px solid #eceef2; color: #15171c; font-size: .8rem; font-weight: 600; text-decoration: none; border-radius: 0 0 20px 20px; transition: background .15s, color .15s; }
.stat-card__link i { font-size: .72rem; transition: transform .15s; }
.stat-card__link:hover { color: #087fc4; background: #f2f9fe; text-decoration: none; }
.stat-card__link:hover i { transform: translateX(2px); }
.theme-dark .stat-card { border-color: var(--dash-border); }
.theme-dark .stat-card__value, .theme-dark .stat-card__ring span, .theme-dark .stat-card__link { color: #f4f4f5; }
.theme-dark .stat-card__link { border-color: var(--dash-border); }
.theme-dark .stat-card__link:hover { background: #26272d; }

/* Toolbar daftar: pencarian + filter status */
.list-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--dash-border); }
.list-search { position: relative; flex: 1 1 260px; max-width: 360px; height: 40px; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 12px; border: 1px solid var(--dash-border); border-radius: 10px; color: #8b8fa0; background: var(--dash-card); transition: border-color .15s, box-shadow .15s; }
.list-search:focus-within { border-color: #7cc6f3; box-shadow: 0 0 0 3px rgba(22, 143, 213, .12); }
.list-search input { width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; color: var(--dash-text); background: transparent; font: inherit; font-size: .8rem; }
.list-search input::placeholder { color: #9a9dab; }
.list-search input::-webkit-search-cancel-button { display: none; }
.list-search__clear { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 6px; color: #8b8fa0; font-size: .72rem; }
.list-search__clear:hover { color: var(--dash-text); background: #f1f3f6; }
.segmented { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; padding: 3px; overflow-x: auto; border-radius: 11px; background: #f1f3f6; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented > a, .segmented > button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 0; border-radius: 8px; color: #5b6070; background: transparent; font: inherit; font-size: .76rem; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.segmented > a:hover, .segmented > button:hover { color: var(--dash-text); text-decoration: none; }
.segmented > .is-active { color: var(--dash-text); background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .1); font-weight: 600; }
.segmented__count { min-width: 20px; padding: 0 6px; border-radius: 999px; color: #5b6070; background: #e3e6ec; font-size: .66rem; font-weight: 600; line-height: 18px; text-align: center; }
.segmented > .is-active .segmented__count { color: #087fc4; background: #e3f2fc; }
.list-toolbar__meta { margin-left: auto; color: var(--dash-muted); font-size: .74rem; white-space: nowrap; }

/* Tabel */
.dash-body .customer-list th, .dash-body .tenant-table th, .dash-body .pay-items th {
  padding-top: 11px; padding-bottom: 11px; color: #858a9a; background: #f8f9fb;
  font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.dash-body .customer-list td { padding-top: 13px; padding-bottom: 13px; color: #4b5162; font-size: .79rem; }
.dash-body .customer-list td > strong, .dash-body .customer-list td > div > strong { display: block; color: var(--dash-text); font-size: .8rem; font-weight: 600; }
.dash-body .customer-list td > small, .dash-body .customer-list td > div > small { display: block; margin-top: 2px; color: var(--dash-muted); font-size: .7rem; }
.dash-body .customer-list td > div .customer-cell__name { display: block; }
.dash-body .customer-list tbody tr { transition: background .12s; }
.dash-body .customer-list tbody tr:hover { background: #f7fbff; }
.dash-body .customer-list th:first-child, .dash-body .customer-list td:first-child { padding-left: 20px; }
.dash-body .customer-list th:last-child, .dash-body .customer-list td:last-child { padding-right: 20px; }
.customer-list .is-num, .tenant-table .is-num, .pay-items .is-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.payments-list { min-width: 1040px; }
@media (min-width: 721px) {
    .payments-list th:last-child, .payments-list td:last-child { position: sticky; right: 0; z-index: 1; background: #fff; box-shadow: -8px 0 10px -8px rgba(15, 23, 42, .18); }
    .payments-list thead th:last-child { background: #f8f9fb; }
    .payments-list tbody tr:hover td:last-child { background: #f7fbff; }
    .theme-dark .payments-list td:last-child { background: var(--dash-card); }
    .theme-dark .payments-list thead th:last-child { background: #282a30; }
    .theme-dark .payments-list tbody tr:hover td:last-child { background: #26272d; }
}
.table-stack__primary strong { white-space: nowrap; }
.gateway-tag { display: inline-flex; padding: 2px 7px; border-radius: 6px; color: #475569; background: #f1f5f9; font-size: .66rem; font-weight: 600; letter-spacing: .04em; }
.customer-list__empty td { padding: 36px 16px !important; font-size: .8rem; }

/* Badge status */
.pill { gap: 6px; padding: 3px 10px; font-size: .69rem; font-weight: 600; line-height: 1.5; }
.meta-inline { display: flex !important; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; }
.meta-inline > span { min-width: 0; }
.pill--success { color: #15803d; background: #effbf3; border-color: #cdeed9; }
.pill--warning { color: #b45309; background: #fff8eb; border-color: #fbe3b4; }
.pill--danger { color: #c81e1e; background: #fff1f1; border-color: #fbd0d0; }
.pill--info { color: #0a76b8; background: #ecf7fe; border-color: #c7e6f9; }
.pill--muted { color: #5f6576; background: #f3f4f6; border-color: #e5e7eb; }
.dash-body .mini-badge { padding: 2px 7px; border-radius: 6px; font-size: .64rem; font-weight: 600; }

/* Tombol ikon aksi */
.dash-body .action-group { gap: 2px; padding: 3px; border-radius: 10px; background: #f8f9fb; }
.dash-body .action-group__btn { width: 30px; height: 30px; border-radius: 7px; color: #525a6b; font-size: .88rem; }
/* State kosong */
.dash-body .empty-state { padding: 48px 24px; text-align: center; }
.dash-body .empty-state__icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 20px; color: #087fc4; background: linear-gradient(135deg, #eef8fe, #dff0fc); box-shadow: inset 0 0 0 1px #cfe8fa; font-size: 1.6rem; }
.dash-body .empty-state h3, .dash-body .empty-state h4 { margin: 0 0 6px; color: var(--dash-text); font-size: 1rem; font-weight: 600; }
.dash-body .empty-state p { max-width: 440px; margin: 0 auto; color: var(--dash-muted); font-size: .8rem; line-height: 1.6; }
.dash-body .empty-state .btn { margin-top: 18px; }

/* Form */
.dash-body .form-field label, .dash-body .form-field__label, .dash-body .service-form .form-field label { color: #344054; font-size: .76rem; font-weight: 600; }
.dash-body .form-field input, .dash-body .form-field select, .dash-body .form-field textarea,
.dash-body .gateway-form .field input, .dash-body .gateway-form .field select, .dash-body .subscription-form__field select, .dash-body .subscription-form__field input { border-color: #dfe2e8; border-radius: 10px; font-size: .82rem; box-shadow: 0 1px 2px rgba(16, 24, 40, .03); }
.dash-body .form-field input, .dash-body .form-field select { min-height: 42px; }
.dash-body .form-field input:hover, .dash-body .form-field select:hover, .dash-body .form-field textarea:hover { border-color: #c9ced8; }
.dash-body .form-field input:focus, .dash-body .form-field select:focus, .dash-body .form-field textarea:focus,
.dash-body .gateway-form .field input:focus, .dash-body .gateway-form .field select:focus { border-color: #63bdea; outline: none; box-shadow: 0 0 0 3px rgba(22, 143, 213, .14); }
.dash-body .customer-form__section legend strong { font-weight: 600; }
.dash-body .customer-form__footer { background: #f8f9fb; }

/* Alert flash */
.dash-body .alert { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; border-radius: 12px; font-size: .82rem; font-weight: 500; }
.dash-body .alert::before { font-family: "bootstrap-icons"; font-size: 1rem; line-height: 1; }
.dash-body .alert--success::before { content: "\F26A"; }
.dash-body .alert--error::before { content: "\F622"; }
.dash-body .alert--warning::before { content: "\F33A"; }
.dash-body .alert--info::before { content: "\F430"; }

/* Bar pemberitahuan tagihan */
.notice-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid #fbe3b4; border-radius: 14px; background: linear-gradient(90deg, #fffaf0, #fff6e5); }
.notice-bar__icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 11px; color: #d97706; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.notice-bar p { flex: 1; margin: 0; color: #7a4a0c; font-size: .8rem; line-height: 1.5; }
.notice-bar p strong { color: #5c3606; }

/* Halaman layanan client */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 18px; align-items: start; }
.svc-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .18s, border-color .18s; }
.svc-card:hover { border-color: #cfe3f2; box-shadow: 0 12px 30px rgba(18, 77, 136, .08); }
.svc-card__head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 20px 16px; }
.svc-card__logo { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #1f7ae0, #22b0f0); box-shadow: 0 8px 18px rgba(31, 122, 224, .25); font-size: 1.25rem; }
.svc-card--pending .svc-card__logo { background: linear-gradient(135deg, #168fd5, #1d4ed8); box-shadow: 0 8px 18px rgba(22, 143, 213, .25); }
.svc-card--ended .svc-card__logo { background: linear-gradient(135deg, #94a3b8, #64748b); box-shadow: none; }
.svc-card__title { flex: 1; min-width: 0; }
.svc-card__title h2 { margin: 2px 0 3px; overflow: hidden; color: var(--dash-text); font-size: 1.05rem; text-overflow: ellipsis; white-space: nowrap; }
.svc-card__title p { margin: 0; color: var(--dash-muted); font-size: .74rem; }
.svc-card__badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.svc-period { margin: 0 20px; padding: 14px 16px 16px; border: 1px solid #e6eef6; border-radius: 14px; background: linear-gradient(180deg, #f8fbfe, #f3f8fc); }
.svc-period__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.svc-period__top span { display: block; color: var(--dash-muted); font-size: .7rem; }
.svc-period__top strong { display: block; color: var(--dash-text); font-size: .82rem; }
.svc-period__days { text-align: right; }
.svc-period__days strong { font-size: 1.15rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.svc-period__days--ok strong { color: #087fc4; }
.svc-period__days--warning strong { color: #d97706; }
.svc-period__days--danger strong { color: #dc2626; }
.svc-period__days--muted strong { color: #64748b; font-size: .95rem; }
.svc-progress { height: 8px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: #e3eaf2; }
.svc-progress > span { display: block; height: 100%; min-width: 0; border-radius: inherit; background: linear-gradient(90deg, #22b0f0, #1f7ae0); transition: width .4s ease; }
.svc-progress--warning > span { background: linear-gradient(90deg, #55bff2, #168fd5); }
.svc-progress--danger > span { background: linear-gradient(90deg, #fb7185, #dc2626); }
.svc-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 16px 20px; }
.svc-meta > div { min-width: 0; }
.svc-meta dt { margin-bottom: 3px; color: var(--dash-muted); font-size: .68rem; }
.svc-meta dd { display: flex; align-items: baseline; gap: 6px; margin: 0; color: var(--dash-text); font-size: .78rem; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.svc-callout { display: flex; align-items: center; gap: 12px; margin: 0 20px 18px; padding: 12px 14px; border: 1px solid #d3eafa; border-radius: 13px; background: #f4faff; }
.svc-callout--warning { border-color: #fbe3b4; background: #fffaf0; }
.svc-callout--muted { border-color: var(--dash-border); background: #f8f9fb; }
.svc-callout__icon { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 10px; color: #087fc4; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.svc-callout--warning .svc-callout__icon { color: #d97706; }
.svc-callout--muted .svc-callout__icon { color: #64748b; }
.svc-callout__text { flex: 1; min-width: 0; }
.svc-callout__text strong { display: block; color: var(--dash-text); font-size: .8rem; }
.svc-callout__text small { display: block; margin-top: 1px; color: var(--dash-muted); font-size: .7rem; }
.svc-settings { margin-top: auto; border-top: 1px solid var(--dash-border); background: #fbfcfd; }
.svc-settings > summary { display: flex; align-items: center; gap: 10px; padding: 14px 20px; color: var(--dash-text); font-size: .8rem; font-weight: 600; list-style: none; cursor: pointer; user-select: none; }
.svc-settings > summary::-webkit-details-marker { display: none; }
.svc-settings > summary > span:first-child { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; }
.svc-settings > summary > span:first-child .bi { color: #087fc4; }
.svc-settings > summary:hover { background: #f5f9fc; }
.svc-settings__chevron { color: var(--dash-muted); transition: transform .2s; }
.svc-settings[open] .svc-settings__chevron { transform: rotate(180deg); }
.svc-settings[open] > summary { border-bottom: 1px dashed var(--dash-border); }
.svc-settings .service-form { padding: 18px 20px 20px; background: var(--dash-card); }
.svc-empty { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 24px; overflow: hidden; padding: 36px 40px; background: radial-gradient(circle at 85% 30%, #dff1fd 0, transparent 55%), linear-gradient(120deg, #ffffff 0%, #f3f9ff 100%); }
.svc-empty__eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; padding: 4px 11px; border-radius: 999px; color: #087fc4; background: #e6f4fd; font-size: .72rem; font-weight: 600; }
.svc-empty h2 { margin: 0 0 10px; color: #0b2050; font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 700; line-height: 1.25; }
.svc-empty p { max-width: 560px; margin: 0 0 16px; color: #52627a; font-size: .84rem; line-height: 1.7; }
.svc-empty__points { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.svc-empty__points li { display: flex; align-items: center; gap: 8px; color: #334155; font-size: .8rem; }
.svc-empty__points .bi { color: #16a34a; }
.svc-empty__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-empty__art { width: 100%; max-width: 460px; height: auto; justify-self: center; filter: drop-shadow(0 16px 24px rgba(24, 104, 170, .15)); }


/* Penyesuaian halaman lain */
.pkg-grid { row-gap: 100px; }
.dash-body .customer-detail-head, .dash-body .ticket-head { padding: 22px 24px; }
.dash-body .template-showcase__body h2 { font-weight: 600; }
.dash-body .pay-items td { color: #4b5162; }
.dash-body .landing-sync-note { border-radius: 12px; }
.dash-body .rent-bar { border-radius: 16px; }

/* Tema gelap untuk komponen baru */
.theme-dark .svc-settings .service-form { background: var(--dash-card); }
.theme-dark .segmented { background: #17181d; }
.theme-dark .segmented > .is-active { color: #fff; background: #33353d; }
.theme-dark .segmented__count { color: #c9ccd4; background: #2b2d34; }
.theme-dark .customer-list th, .theme-dark .tenant-table th, .theme-dark .pay-items th, .theme-dark .action-group { background: #26282e; }
.theme-dark .customer-list tbody tr:hover { background: #26272d; }
.theme-dark .svc-period, .theme-dark .svc-callout, .theme-dark .svc-settings, .theme-dark .notice-bar { border-color: var(--dash-border); background: #1d1f24; }
.theme-dark .svc-settings > summary, .theme-dark .svc-period__top strong, .theme-dark .svc-callout__text strong, .theme-dark .svc-meta dd, .theme-dark .notice-bar p, .theme-dark .notice-bar p strong { color: #f4f4f5; }
.theme-dark .svc-empty { background: var(--dash-card); }
.theme-dark .svc-empty h2 { color: #f4f4f5; }
.theme-dark .btn--ghost { color: #e5e7eb; background: #26282e; }
.theme-dark .gateway-tag { color: #d2d3d8; background: #2b2d34; }

/* Responsif */
@media (max-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .stat-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid--3 > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .stat-grid, .stat-grid--3 { grid-template-columns: 1fr; gap: 12px; }
  .stat-grid--3 > :last-child { grid-column: auto; }
  .stat-card { border-radius: 16px; }
  .stat-card__label { padding: 16px 18px 0; }
  .stat-card__body { padding: 8px 18px 14px; }
  .stat-card__value { font-size: 1.45rem; }
  .stat-card__trend { margin-top: 10px; }
  .stat-card__bars { height: 52px; }
  .stat-card__ring { width: 60px; height: 60px; }
  .stat-card__ring span { width: 44px; height: 44px; font-size: .68rem; }
  .stat-card__link { min-height: 44px; border-radius: 0 0 16px 16px; }
}
@media (max-width: 1000px) {
  .dash-body .topbar { min-height: 68px; padding: 10px 18px; }
  .dash-body .dash__content { padding: 22px 18px 28px; }
  .dash-body .dash__footer { padding-inline: 18px; }
  .svc-empty { grid-template-columns: 1fr; padding: 28px 24px; }
  .svc-empty__art { max-width: 340px; order: -1; }
}
@media (max-width: 720px) {
  .list-toolbar { padding: 12px 14px; gap: 10px; }
  .list-search { flex-basis: 100%; max-width: none; }
  .segmented { flex: 1 1 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .segmented > a, .segmented > button { justify-content: center; padding: 0 8px; }
  .list-toolbar__meta { display: none; }
  .notice-bar { flex-wrap: wrap; }
  .notice-bar p { flex-basis: calc(100% - 52px); }
  .notice-bar .btn { width: 100%; }

  /* Tabel bertumpuk menjadi kartu per baris */
  .table-stack { min-width: 0 !important; }
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .dash-body .table-stack tr { padding: 14px 16px; border-bottom: 1px solid var(--dash-border); }
  .dash-body .table-stack tbody tr:last-child { border-bottom: 0; }
  .dash-body .table-stack td { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 5px 0 !important; border: 0; text-align: right; white-space: normal !important; }
  .table-stack td::before { content: attr(data-label); flex: 0 0 auto; padding-top: 1px; color: var(--dash-muted); font-size: .68rem; font-weight: 500; text-align: left; }
  .table-stack td > div { min-width: 0; }
  .dash-body .table-stack td.table-stack__primary { justify-content: flex-start; padding-bottom: 8px !important; text-align: left; }
  .table-stack td.table-stack__primary::before, .table-stack td.customer-list__action::before { display: none; }
  .dash-body .table-stack td.table-stack__primary strong { font-size: .86rem; }
  .dash-body .table-stack td.customer-list__action { justify-content: flex-end; width: 100%; padding-top: 10px !important; }
  .table-stack td.is-num strong { color: var(--dash-text); font-size: .9rem; }

  .svc-card__head { flex-wrap: wrap; padding: 16px 16px 14px; }
  .svc-card__badges { width: 100%; justify-content: flex-start; padding-left: 62px; margin-top: -6px; }
  .svc-period { margin-inline: 16px; }
  .svc-meta { grid-template-columns: 1fr 1fr; padding: 14px 16px; }
  .svc-meta > div:nth-child(2) { grid-column: 1 / -1; order: 3; }
  .svc-callout { flex-wrap: wrap; margin-inline: 16px; }
  .svc-callout .btn { width: 100%; }
  .svc-settings > summary { padding-inline: 16px; }
  .svc-settings .service-form { padding-inline: 16px; }
  .svc-empty { padding: 22px 18px; }
  .svc-empty__actions .btn { flex: 1 1 100%; }
  .page-head { gap: 10px; }
  .page-head h1 { font-size: 1.1rem; }
}
