/* =========================================================
   RTNet Billing — Design System v2 "NOC Pro"
   Gaya dashboard ISP besar: sidebar navy, aksen gradient,
   KPI cards, topbar glass, tabel & form premium.
   ========================================================= */
:root {
  --rtnet-primary: #2563eb;
  --rtnet-primary-dark: #1d4ed8;
  --rtnet-accent: #06b6d4;
  --rtnet-bg: #eef2f8;
  --rtnet-border: #e4e9f2;
  --rtnet-ink: #0f172a;
  --rtnet-muted: #64748b;
  --rtnet-sidebar-w: 268px;
  --rtnet-topbar-h: 64px;
  --rtnet-navy-1: #0b1526;
  --rtnet-navy-2: #101d38;
  --rtnet-navy-3: #16264a;
  --grad-brand: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  --grad-violet: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  --grad-green: linear-gradient(135deg, #059669 0%, #34d399 100%);
  --grad-orange: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
  --grad-red: linear-gradient(135deg, #dc2626 0%, #f87171 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, .08);
  --shadow-lg: 0 12px 34px -6px rgba(15, 23, 42, .14);
  --bs-primary: #2563eb;
  --bs-link-color: #1d4ed8;
  --bs-link-hover-color: #1e40af;
}

html { -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--rtnet-bg);
  color: var(--rtnet-ink);
  font-size: 14.5px;
}
a { text-decoration: none; }
.min-w-0 { min-width: 0; }
::selection { background: rgba(37, 99, 235, .18); }
h1, h2, h3, h4, h5, h6 { letter-spacing: -.01em; }

/* Scrollbar halus */
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: #c3ccdb; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: #9fabc0; background-clip: content-box; }
.sidebar *::-webkit-scrollbar-thumb { background: #2b3d66; border: 2px solid transparent; background-clip: content-box; }

/* ---------- Komponen dasar ---------- */
.card {
  border: 1px solid var(--rtnet-border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  background: #fff;
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
  background: #fff;
  border-bottom: 1px solid var(--rtnet-border);
  padding: .95rem 1.15rem;
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  border-radius: 16px 16px 0 0 !important;
}
.card-title { font-size: .95rem; font-weight: 700; margin: 0; display: flex; align-items: center; }
.card-title i { font-size: 1.05rem; }
.card-subtitle { font-size: .76rem; color: var(--rtnet-muted); margin: 0; }
.card-footer { background: #fff; border-top: 1px solid var(--rtnet-border); border-radius: 0 0 16px 16px; }

.btn {
  border-radius: 10px; font-weight: 600;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  --bs-btn-bg: #2563eb; --bs-btn-border-color: #2563eb;
  --bs-btn-hover-bg: #1d4ed8; --bs-btn-hover-border-color: #1d4ed8;
  --bs-btn-active-bg: #1e40af; --bs-btn-active-border-color: #1e40af;
  box-shadow: 0 4px 12px -2px rgba(37, 99, 235, .38);
}
.btn-primary:hover { box-shadow: 0 6px 16px -2px rgba(37, 99, 235, .48); }
.btn-gradient {
  background: var(--grad-brand); color: #fff; border: 0;
  box-shadow: 0 4px 14px -2px rgba(37, 99, 235, .45);
}
.btn-gradient:hover { color: #fff; filter: brightness(1.06); box-shadow: 0 7px 18px -2px rgba(37, 99, 235, .55); }
.btn-outline-primary { --bs-btn-color: var(--rtnet-primary-dark); --bs-btn-border-color: #c9d8f7; --bs-btn-hover-bg: var(--rtnet-primary); --bs-btn-hover-border-color: var(--rtnet-primary); }
.btn-light { --bs-btn-bg: #f4f6fb; --bs-btn-border-color: #e4e9f2; }
.btn-light:hover { --bs-btn-bg: #e9edf6; --bs-btn-border-color: #d9e0ee; }

.form-control, .form-select {
  border-radius: 10px; border-color: #d9e0ec;
  padding: .48rem .8rem; font-size: .9rem;
}
.form-control:focus, .form-select:focus {
  border-color: #8db1f9; box-shadow: 0 0 0 .22rem rgba(37, 99, 235, .13);
}
.form-label { font-weight: 600; font-size: .82rem; color: #334155; }
.input-group-text { background: #f6f8fc; border-color: #d9e0ec; color: var(--rtnet-muted); }

.table { --bs-table-hover-bg: #f4f7fd; margin-bottom: 0; }
.table thead th {
  background: #f7f9fd;
  color: #6b7a90;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  border-bottom: 1px solid var(--rtnet-border);
  white-space: nowrap;
  padding: .7rem .9rem;
}
.table td { vertical-align: middle; padding: .72rem .9rem; }
.table tbody tr:last-child td { border-bottom: 0; }
.table-sm td, .table-sm th { padding: .55rem .75rem; }

.badge { font-weight: 600; border-radius: 8px; padding: .38em .6em; letter-spacing: .01em; }
.pagination .page-link { border-radius: 9px; margin: 0 2px; border-color: var(--rtnet-border); font-weight: 600; color: #475569; }
.pagination .page-item.active .page-link { background: var(--rtnet-primary); border-color: var(--rtnet-primary); box-shadow: 0 3px 10px -2px rgba(37, 99, 235, .4); }
.alert { border-radius: 13px; border: 0; box-shadow: var(--shadow-sm); }
code { background: #eef2f8; padding: 2px 7px; border-radius: 6px; font-size: .85em; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-online { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); animation: pulse-dot 2s infinite; }
.dot-offline { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .18); }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .35); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.list-group-item { border-color: var(--rtnet-border); }
.list-group-item:first-child { border-top: 0; }
.list-group-item:last-child { border-bottom: 0; }
.nav-pills .nav-link { border-radius: 10px; font-weight: 600; color: #475569; }
.nav-pills .nav-link.active { background: var(--rtnet-primary); }
.dropdown-menu { border-radius: 14px; border-color: var(--rtnet-border); box-shadow: var(--shadow-lg); padding: .45rem; }
.dropdown-item { border-radius: 9px; padding: .5rem .75rem; font-size: .9rem; }
.dropdown-item i { color: var(--rtnet-muted); width: 1.2rem; }
.dropdown-header { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }

/* ---------- Sidebar admin (gelap navy) ---------- */
.admin-body .main-content { margin-left: var(--rtnet-sidebar-w); min-height: 100vh; display: flex; flex-direction: column; transition: margin .25s ease; }
.sidebar {
  position: fixed; inset: 0 auto 0 0;
  width: var(--rtnet-sidebar-w);
  background: linear-gradient(180deg, var(--rtnet-navy-2) 0%, var(--rtnet-navy-1) 60%, #0a1120 100%);
  color: #cbd5e1;
  display: flex; flex-direction: column; z-index: 1040;
  transition: transform .25s ease;
  box-shadow: inset -1px 0 0 rgba(148, 163, 184, .08);
}
.sidebar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 260px at -20% 0%, rgba(59, 130, 246, .16), transparent 65%);
}
.sidebar-brand {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 18px; min-height: var(--rtnet-topbar-h);
  border-bottom: 1px solid rgba(148, 163, 184, .12);
  position: relative;
}
.brand-logo {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-brand); color: #fff;
  border-radius: 12px; flex: 0 0 auto;
  box-shadow: 0 6px 16px -4px rgba(14, 120, 233, .55);
}
.brand-logo-lg { width: 68px; height: 68px; border-radius: 20px; }
.brand-text strong { display: block; font-size: .98rem; line-height: 1.15; color: #fff; letter-spacing: -.01em; }
.brand-text small { color: #7d8db1; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 12px; position: relative; }
.nav-section {
  font-size: .64rem; text-transform: uppercase; letter-spacing: .12em;
  color: #5b6b8f; font-weight: 700;
  margin: 16px 10px 6px;
}
.nav-link-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9.5px 12px; border-radius: 11px;
  color: #a9b6cf; font-weight: 500; margin-bottom: 2px;
  font-size: .895rem; position: relative;
  transition: background .15s ease, color .15s ease;
}
.nav-link-item i { font-size: 1.08rem; color: #6b7ba1; width: 1.25rem; text-align: center; transition: color .15s ease; }
.nav-link-item:hover { background: rgba(148, 163, 184, .1); color: #fff; }
.nav-link-item:hover i { color: #c7d5f5; }
.nav-link-item.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, .28), rgba(14, 165, 233, .12));
  color: #fff; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(96, 140, 235, .28);
}
.nav-link-item.active::before {
  content: ""; position: absolute; left: -12px; top: 18%;
  height: 64%; width: 4px; border-radius: 0 4px 4px 0;
  background: var(--grad-brand); box-shadow: 0 0 12px rgba(59, 130, 246, .8);
}
.nav-link-item.active i { color: #7db4ff; }
.sidebar-footer {
  border-top: 1px solid rgba(148, 163, 184, .12);
  padding: 13px 15px; position: relative;
  background: rgba(10, 17, 32, .45);
}
.sidebar-footer .avatar { box-shadow: 0 0 0 2px rgba(96, 140, 235, .35); }
.sidebar-footer .text-muted { color: #8395b8 !important; }
.sidebar-footer .btn-light { background: rgba(148, 163, 184, .12); border-color: rgba(148, 163, 184, .18); color: #cbd5e1; }
.sidebar-footer .btn-light:hover { background: rgba(148, 163, 184, .22); color: #fff; }
.sidebar-version { font-size: .66rem; color: #4c5c80; text-align: center; margin-top: 10px; letter-spacing: .08em; text-transform: uppercase; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad-brand);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .92rem; flex: 0 0 auto;
}
.avatar-lg { width: 68px; height: 68px; font-size: 1.6rem; border-radius: 22px; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 1030;
  height: var(--rtnet-topbar-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rtnet-border);
  display: flex; align-items: center; gap: 12px;
  padding: 0 24px;
}
.topbar-title h1 { font-size: 1.06rem; font-weight: 750; margin: 0; letter-spacing: -.01em; }
.topbar-title p { font-size: .75rem; color: var(--rtnet-muted); margin: 0; }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.topbar-badge { position: absolute; top: -4px; right: -4px; font-size: .6rem; }
.topbar-search { position: relative; }
.topbar-search .form-control {
  width: 210px; border-radius: 999px; padding-left: 2.3rem;
  background: #f2f5fa; border-color: transparent; font-size: .87rem;
}
.topbar-search .form-control:focus { background: #fff; border-color: #8db1f9; width: 250px; }
.topbar-search i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--rtnet-muted); font-size: .9rem; pointer-events: none; }
.topbar-icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f2f5fa; border: 1px solid transparent; color: #475569;
  font-size: 1.05rem; position: relative;
  transition: background .15s ease, color .15s ease;
}
.topbar-icon-btn:hover { background: #e7ecf6; color: var(--rtnet-primary-dark); }
.topbar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 6px; border-radius: 999px;
  background: #f2f5fa; border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease;
}
.topbar-user:hover { background: #e7ecf6; }
.topbar-user .name { font-size: .84rem; font-weight: 700; line-height: 1.1; }
.topbar-user .role { font-size: .68rem; color: var(--rtnet-muted); text-transform: capitalize; }
.page-content { flex: 1; padding: 24px; }
.page-footer {
  padding: 13px 24px; color: #8a97ab; font-size: .78rem;
  display: flex; gap: 10px; border-top: 1px solid var(--rtnet-border);
  background: #fff;
}

/* ---------- KPI / statistik ---------- */
.stat-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px !important; position: relative; overflow: hidden;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card::after {
  content: ""; position: absolute; right: -22px; top: -22px;
  width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .07), transparent 70%);
}
.stat-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex: 0 0 auto; color: #fff;
  box-shadow: 0 6px 14px -4px rgba(15, 23, 42, .22);
}
.stat-icon.si-blue { background: var(--grad-brand); box-shadow: 0 6px 14px -4px rgba(37, 99, 235, .55); }
.stat-icon.si-green { background: var(--grad-green); box-shadow: 0 6px 14px -4px rgba(5, 150, 105, .5); }
.stat-icon.si-orange { background: var(--grad-orange); box-shadow: 0 6px 14px -4px rgba(234, 88, 12, .5); }
.stat-icon.si-red { background: var(--grad-red); box-shadow: 0 6px 14px -4px rgba(220, 38, 38, .5); }
.stat-icon.si-violet { background: var(--grad-violet); box-shadow: 0 6px 14px -4px rgba(124, 58, 237, .5); }
.stat-value { font-size: 1.42rem; font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.stat-label { font-size: .74rem; color: var(--rtnet-muted); font-weight: 600; }
.stat-sub { font-size: .72rem; font-weight: 600; margin-top: 2px; }
.stat-sub.up { color: #059669; }
.stat-sub.down { color: #dc2626; }

/* KPI gradient penuh (dashboard) */
.kpi-card {
  border: 0; border-radius: 18px; padding: 20px !important;
  color: #fff; position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.kpi-card:hover { transform: translateY(-3px); }
.kpi-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(340px 150px at 100% 0%, rgba(255, 255, 255, .18), transparent 60%);
  pointer-events: none;
}
.kpi-card.kpi-blue { background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%); box-shadow: 0 14px 30px -10px rgba(29, 78, 216, .55); }
.kpi-card.kpi-green { background: linear-gradient(135deg, #047857 0%, #34d399 100%); box-shadow: 0 14px 30px -10px rgba(4, 120, 87, .5); }
.kpi-card.kpi-violet { background: linear-gradient(135deg, #6d28d9 0%, #a855f7 100%); box-shadow: 0 14px 30px -10px rgba(109, 40, 217, .5); }
.kpi-card.kpi-orange { background: linear-gradient(135deg, #c2410c 0%, #f59e0b 100%); box-shadow: 0 14px 30px -10px rgba(194, 65, 12, .5); }
.kpi-card.kpi-navy { background: linear-gradient(135deg, #0f172a 0%, #334155 100%); box-shadow: 0 14px 30px -10px rgba(15, 23, 42, .5); }
.kpi-icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem; backdrop-filter: blur(4px);
}
.kpi-value { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.kpi-label { font-size: .78rem; font-weight: 600; opacity: .85; }
.kpi-sub { font-size: .74rem; font-weight: 600; opacity: .92; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 2px 10px; display: inline-block; }

.mini-stat { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px !important; color: var(--rtnet-ink); }
.mini-stat:hover { border-color: #c9d8f7; transform: translateY(-1px); }
.mini-stat-icon { font-size: 1.7rem; opacity: .85; }

/* Quick actions */
.quick-action {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px; border-radius: 14px; text-align: center;
  border: 1px dashed #d3dcec; color: #475569; font-size: .78rem; font-weight: 600;
  background: #fbfcfe; height: 100%;
  transition: all .15s ease;
}
.quick-action i { font-size: 1.45rem; color: var(--rtnet-primary); }
.quick-action:hover { border-color: var(--rtnet-primary); background: #f2f7ff; color: var(--rtnet-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- FAB ---------- */
.fab {
  position: fixed; right: 26px; bottom: 26px;
  width: 54px; height: 54px; border-radius: 17px;
  font-size: 1.3rem; z-index: 1035; border: 0;
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 10px 24px -4px rgba(37, 99, 235, .55);
}
.fab:hover { color: #fff; filter: brightness(1.07); }

/* ---------- Login / Auth split-screen ---------- */
.auth-body {
  background: var(--rtnet-bg); min-height: 100vh;
  display: flex; align-items: stretch;
}
.auth-shell { display: flex; min-height: 100vh; width: 100%; }
.auth-hero {
  flex: 1 1 52%;
  background:
    radial-gradient(900px 460px at 110% -10%, rgba(14, 165, 233, .35), transparent 60%),
    radial-gradient(700px 420px at -20% 110%, rgba(124, 58, 237, .28), transparent 55%),
    linear-gradient(160deg, var(--rtnet-navy-2) 0%, #0d1730 55%, #091120 100%);
  color: #e2e8f0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 46px 52px; position: relative; overflow: hidden;
}
.auth-hero::after {
  content: ""; position: absolute; right: -140px; top: 50%; transform: translateY(-50%);
  width: 460px; height: 460px; border-radius: 50%;
  border: 1px solid rgba(125, 180, 255, .16);
  box-shadow: 0 0 0 60px rgba(59, 130, 246, .05), 0 0 0 120px rgba(59, 130, 246, .04);
  pointer-events: none;
}
.auth-hero .brand-row { display: flex; align-items: center; gap: 12px; }
.auth-hero h2 { color: #fff; font-weight: 800; letter-spacing: -.02em; }
.auth-feature { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 20px; }
.auth-feature i {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px;
  background: rgba(96, 140, 235, .16); border: 1px solid rgba(96, 140, 235, .3);
  color: #7db4ff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.auth-feature strong { color: #fff; display: block; font-size: .95rem; margin-bottom: 2px; }
.auth-feature span { font-size: .84rem; color: #93a4c4; }
.auth-panel {
  flex: 1 1 48%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px max(6vw, 40px);
}
.auth-card {
  background: #fff; border: 1px solid var(--rtnet-border);
  border-radius: 20px; padding: 34px 30px;
  box-shadow: var(--shadow-lg);
}
.auth-card-narrow { max-width: 440px; width: 100%; margin: 0 auto; }
@media (max-width: 991.98px) {
  .auth-hero { display: none; }
  .auth-panel { padding: 32px 20px; background: var(--rtnet-bg); }
}

/* ---------- Invoice print ---------- */
.invoice-card { border: 0; }
.invoice-number { font-size: 1.25rem; font-weight: 800; color: var(--rtnet-primary-dark); }
.invoice-table th { text-transform: none; font-size: .8rem; }
.invoice-total td { background: #f7f9fd; font-size: 1.05rem; }
.qr-placeholder {
  display: inline-block; border: 1.5px dashed #cbd5e1; border-radius: 12px;
  padding: 14px 18px; font-size: .78rem; color: var(--rtnet-muted);
}
@media print {
  body.admin-body .sidebar, body.admin-body .topbar, body.admin-body .page-footer,
  body.admin-body .btn, body.admin-body .fab, body.admin-body .card-header .btn,
  body.admin-body form.d-print-none, body.admin-body .alert, body.admin-body .col-lg-4:last-child { display: none !important; }
  body.admin-body .main-content { margin-left: 0; }
  body.admin-body .page-content { padding: 0; }
  .card { border: 0 !important; box-shadow: none !important; }
}

/* ---------- Voucher print ---------- */
.voucher-grid { width: 100%; border-collapse: collapse; margin-top: 10px; }
.voucher-grid td { border: 1.5px dashed #94a3b8; padding: 10px 8px; text-align: center; width: 25%; }
.vc-brand { font-weight: 800; font-size: 11px; color: #1d4ed8; text-transform: uppercase; }
.vc-package { font-size: 10px; color: #64748b; }
.vc-code { font-size: 15px; font-weight: 800; letter-spacing: 1px; margin: 4px 0 2px; font-family: Consolas, monospace; }
.vc-pass { font-size: 10px; }
.vc-info { font-size: 9.5px; color: #64748b; }
.vc-price { font-size: 11px; font-weight: 700; color: #16a34a; }
@media print {
  body.admin-body .print-area { display: block !important; }
  body.admin-body .sidebar, body.admin-body .topbar, body.admin-body .page-footer,
  body.admin-body .fab, body.admin-body .card:not(:has(.print-area)), body.admin-body .alert:not(.print-area) { display: none !important; }
  body.admin-body .main-content { margin-left: 0; }
}

/* ---------- Portal pelanggan ---------- */
.portal-body { background: var(--rtnet-bg); min-height: 100vh; display: flex; flex-direction: column; }
.portal-topbar {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rtnet-border);
  position: sticky; top: 0; z-index: 1030;
}
.portal-nav { margin-left: 18px; gap: 4px; }
.portal-nav a { color: #475569; font-weight: 600; font-size: .9rem; padding: 8px 14px; border-radius: 10px; }
.portal-nav a:hover { background: #eef2f8; color: var(--rtnet-ink); }
.portal-nav a.active { background: #e4edfd; color: var(--rtnet-primary-dark); }
.portal-main { flex: 1; padding: 24px 16px; }
.portal-footer { background: #fff; border-top: 1px solid var(--rtnet-border); }
.hero-card {
  background:
    radial-gradient(600px 240px at 110% -20%, rgba(14, 165, 233, .4), transparent 60%),
    radial-gradient(400px 220px at -10% 120%, rgba(124, 58, 237, .3), transparent 55%),
    linear-gradient(120deg, #16264a 0%, #1d4ed8 55%, #0ea5e9 100%);
  border: 0; border-radius: 20px;
  box-shadow: 0 18px 40px -12px rgba(29, 78, 216, .45);
  color: #fff;
}
.hero-card .text-muted { color: rgba(226, 232, 240, .8) !important; }
.pay-amount { font-size: 2.3rem; font-weight: 800; color: var(--rtnet-primary-dark); letter-spacing: -.02em; }
.payment-option { border-radius: 15px; }
.service-card { transition: transform .15s ease, box-shadow .15s ease; border-radius: 15px; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg) !important; }

/* ---------- Installer ---------- */
.inst-body { background: var(--rtnet-bg); min-height: 100vh; }

/* ---------- Responsif ---------- */
.sidebar-backdrop { display: none; }
@media (max-width: 991.98px) {
  .admin-body .main-content { margin-left: 0; }
  .sidebar { transform: translateX(-100%); box-shadow: none; }
  body.sidebar-open .sidebar { transform: translateX(0); box-shadow: 30px 0 60px rgba(2, 8, 20, .45); }
  body.sidebar-open .sidebar-backdrop {
    display: block; position: fixed; inset: 0;
    background: rgba(9, 14, 26, .5); z-index: 1039;
    backdrop-filter: blur(2px);
  }
  .page-content { padding: 15px; }
  .topbar { padding: 0 14px; }
  .topbar-search { display: none; }
  .kpi-value { font-size: 1.4rem; }
}
@media (max-width: 575.98px) {
  .topbar-user .meta { display: none; }
  .stat-value { font-size: 1.2rem; }
}
