:root {
  --bg: #070B14;
  --surface: #0E1626;
  --surface2: #13223C;
  --border: #1E2A40;
  --border-hi: #24344F;
  --primary: #1E88E5;
  --primary-hi: #42A5F5;
  --primary-dark: #1565C0;
  --green: #2EDD85;
  --amber: #FFB74D;
  --red: #FF5D5D;
  --violet: #B388FF;
  --whatsapp: #25D366;
  --text: #E8ECF4;
  --text2: #B9C4D8;
  --dim: #7E8CA6;
  --faint: #56678A;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  overscroll-behavior-y: none;
}
a { color: var(--primary-hi); }
button { font-family: inherit; cursor: pointer; border: none; }
svg { flex-shrink: 0; }

/* ============ LOGIN ============ */
.login-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.radar-rings { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 500px; height: 380px; pointer-events: none; }
.radar-rings span {
  position: absolute; left: 50%; top: 90px; transform: translate(-50%, -50%);
  border: 1px solid rgba(30,136,229,0.20); border-radius: 50%;
}
.radar-rings span:nth-child(1) { width: 130px; height: 130px; animation: ringPulse 3.6s ease-out infinite; }
.radar-rings span:nth-child(2) { width: 220px; height: 220px; border-color: rgba(30,136,229,0.12); animation: ringPulse 3.6s ease-out 1.2s infinite; }
.radar-rings span:nth-child(3) { width: 320px; height: 320px; border-color: rgba(30,136,229,0.07); animation: ringPulse 3.6s ease-out 2.4s infinite; }
@keyframes ringPulse {
  0% { opacity: 0.9; }
  50% { opacity: 0.25; }
  100% { opacity: 0.9; }
}
.login-head { text-align: center; position: relative; margin-bottom: 28px; }
.login-logo {
  width: 76px; height: 76px; border-radius: 20px; object-fit: contain;
  background: var(--surface2); padding: 10px; border: 1px solid var(--border-hi);
  margin-bottom: 14px;
}
.login-head h1 { font-size: 24px; font-weight: 700; margin: 0; }
.login-head h1 span { color: var(--primary-hi); }
.login-head .tagline { color: var(--dim); font-size: 12px; letter-spacing: 3px; margin: 6px 0 0; }
.login-card { width: 100%; max-width: 340px; position: relative; }
.input-group {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 0 14px; margin-bottom: 12px; transition: border-color 0.18s;
}
.input-group:focus-within { border-color: var(--primary); }
.input-group svg { color: var(--faint); width: 18px; height: 18px; }
.input-group input {
  flex: 1; border: none; background: transparent; color: var(--text);
  font-size: 15px; padding: 14px 0; outline: none; min-width: 0;
}
.input-group input::placeholder { color: var(--faint); }
.input-group .eye-btn { background: none; padding: 8px 0 8px 8px; color: var(--faint); display: flex; }
.btn { border-radius: 14px; padding: 14px 18px; font-size: 14px; font-weight: 600; transition: transform 0.1s, opacity 0.15s; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:active { background: var(--primary-dark); }
.btn-block { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-danger { background: var(--red); color: #fff; }
.btn-outline-danger { background: transparent; color: var(--red); border: 1px solid rgba(255,93,93,0.4); }
.btn-whatsapp { background: transparent; color: var(--green); border: 1px solid rgba(46,221,133,0.45); }
.btn-ghost { background: var(--surface); color: var(--text2); border: 1px solid var(--border); }
.btn-text { background: transparent; color: var(--primary-hi); padding: 8px; }
.login-error { color: var(--red); font-size: 13px; min-height: 18px; margin: 2px 0 10px; text-align: center; }
.login-foot { color: var(--faint); font-size: 11px; margin-top: 18px; display: flex; align-items: center; gap: 6px; }
.shake { animation: shake 0.4s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-7px)} 75%{transform:translateX(7px)} }

/* ============ APP SHELL ============ */
.main { padding: 18px 16px calc(96px + var(--safe-bottom)); max-width: 640px; margin: 0 auto; }
.view-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.view-head h2 { margin: 0; font-size: 19px; }
.greeting .hi { color: var(--dim); font-size: 12px; margin: 0; }
.greeting .who { color: var(--text); font-size: 18px; font-weight: 700; margin: 2px 0 0; }
.avatar-chip {
  width: 38px; height: 38px; border-radius: 50%; background: var(--surface2);
  border: 1px solid var(--border-hi); color: var(--primary-hi);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(46,221,133,0.10); border: 1px solid rgba(46,221,133,0.32);
  color: var(--green); font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 20px;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.btn-spinner {
  display: inline-block; width: 15px; height: 15px; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%;
  animation: spin 0.7s linear infinite; margin-right: 2px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading { display: flex; align-items: center; justify-content: center; gap: 9px; opacity: 1 !important; }

/* ============ STAT CARDS ============ */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 10px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 15px;
  text-align: left; color: var(--text); transition: transform 0.1s;
}
button.stat-card:active { transform: scale(0.97); }
.stat-card.warn-edge { border-color: rgba(255,183,77,0.35); }
.stat-card .ic { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.stat-card .ic svg { width: 17px; height: 17px; }
.stat-card .num { font-size: 23px; font-weight: 700; line-height: 1; }
.stat-card .label { color: var(--dim); font-size: 11px; margin-top: 5px; }

.system-strip {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 11px 14px; margin-bottom: 12px; cursor: pointer; width: 100%; text-align: left; color: var(--text);
}
.system-strip .st-title { font-size: 13px; font-weight: 600; margin: 0; }
.system-strip .st-sub { color: var(--dim); font-size: 11px; margin: 2px 0 0; }
.system-strip .grow { flex: 1; min-width: 0; }
.system-strip svg { color: var(--faint); }
.system-strip .ok-ic { color: var(--green); }
.system-strip .bad-ic { color: var(--red); }

/* ============ SEARCH & LIST ============ */
.search-box {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 13px;
  padding: 11px 14px; margin-bottom: 12px;
}
.search-box:focus-within { border-color: var(--primary); }
.search-box input { flex: 1; border: none; background: transparent; color: var(--text); font-size: 14px; outline: none; min-width: 0; }
.search-box input::placeholder { color: var(--faint); }
.search-box svg { color: var(--faint); width: 16px; height: 16px; }

.reminder-banner {
  background: rgba(255,183,77,0.08); border: 1px solid rgba(255,183,77,0.30);
  border-radius: 14px; padding: 13px 15px; margin-bottom: 12px;
}
.reminder-banner .title { color: var(--amber); font-weight: 700; font-size: 12px; margin-bottom: 7px; display: flex; align-items: center; gap: 6px; }
.reminder-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 13px; gap: 8px; }
.reminder-row .name { color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reminder-row .days { color: var(--dim); font-size: 11px; }
.reminder-row .btn { padding: 6px 11px; font-size: 11px; border-radius: 9px; }
.reminder-banner.danger { background: rgba(255,93,93,0.08); border-color: rgba(255,93,93,0.30); }
.reminder-banner.danger .title { color: var(--red); margin-bottom: 2px; }
.reminder-banner.danger .body { color: var(--text2); font-size: 12px; margin: 0; }

.cust-card {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 13px 14px; margin-bottom: 8px; color: var(--text); transition: transform 0.1s;
}
.cust-card:active { transform: scale(0.985); }
.cust-avatar {
  width: 40px; height: 40px; border-radius: 12px; background: var(--surface2);
  color: var(--primary-hi); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.cust-card .info { flex: 1; min-width: 0; }
.cust-card .nm { font-size: 14px; font-weight: 600; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-card .meta { color: var(--dim); font-size: 11.5px; margin: 3px 0 0; display: flex; align-items: center; gap: 5px; overflow: hidden; white-space: nowrap; }
.cust-card .meta.warn { color: var(--amber); }
.cust-card .meta.off { color: var(--red); font-weight: 600; }
.cust-card .meta svg { width: 11px; height: 11px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-on { background: var(--green); }
.dot-off { background: var(--red); }
.chev { color: var(--faint); width: 17px; height: 17px; }

.empty-state { text-align: center; padding: 52px 20px; color: var(--dim); }
.empty-state svg { width: 42px; height: 42px; opacity: 0.45; margin-bottom: 12px; }
.empty-state .title { color: var(--text); font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.empty-state .body { font-size: 13px; line-height: 1.5; }

/* ============ MONITOR ============ */
.mon-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 15px; margin-bottom: 10px; }
.mon-card .mc-title {
  color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: 1px;
  margin: 0 0 12px; display: flex; align-items: center; gap: 7px;
}
.mon-card .mc-title svg { width: 14px; height: 14px; }
.meter { margin-bottom: 10px; }
.meter:last-child { margin-bottom: 0; }
.meter .m-head { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 12px; }
.meter .m-label { color: var(--text2); }
.meter .m-val { color: var(--text); font-weight: 600; }
.meter .m-track { height: 6px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.meter .m-fill { height: 100%; border-radius: 4px; background: var(--primary-hi); transition: width 0.6s ease; }
.meter .m-fill.ok { background: var(--green); }
.meter .m-fill.warn { background: var(--amber); }
.meter .m-fill.bad { background: var(--red); }
.svc-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 13px; }
.svc-row .sv-name { color: var(--text2); }
.pill { font-size: 11px; font-weight: 700; padding: 3px 11px; border-radius: 20px; }
.pill-on { background: rgba(46,221,133,0.12); color: var(--green); }
.pill-off { background: rgba(255,93,93,0.12); color: var(--red); }
.pill-warn { background: rgba(255,183,77,0.12); color: var(--amber); }
.msrv-row {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: none; color: var(--text); padding: 9px 2px; border-radius: 10px;
  border-bottom: 1px solid var(--border);
}
.msrv-row:last-child { border-bottom: none; }
.msrv-row .sv-name { flex: 1; min-width: 0; font-size: 13px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msrv-row .sv-online { color: var(--dim); font-size: 12px; display: flex; align-items: center; gap: 4px; }
.msrv-row .sv-online svg { width: 12px; height: 12px; }
.mon-updated { text-align: center; color: var(--faint); font-size: 11px; margin-top: 6px; }

/* ============ BERANDA: pendapatan & aktivitas ============ */
.rev-card {
  background: linear-gradient(135deg, #13223C 0%, #0E1626 70%);
  border: 1px solid var(--border-hi); border-radius: 16px; padding: 15px 16px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 13px;
}
.rev-card .ic {
  width: 40px; height: 40px; border-radius: 12px; background: rgba(46,221,133,0.12);
  color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rev-card .rv-label { color: var(--dim); font-size: 11px; margin: 0; }
.rev-card .rv-num { color: var(--text); font-size: 20px; font-weight: 700; margin: 3px 0 0; }
.rev-card .rv-sub { color: var(--faint); font-size: 10.5px; margin: 3px 0 0; }
.section-row { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 9px; }
.section-row .section-label { margin: 0; }
.see-all { background: none; color: var(--primary-hi); font-size: 12px; padding: 4px 0; }

/* ============ SERVER VIEW: filter chips ============ */
.filter-chips { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.fchip {
  padding: 7px 13px; border-radius: 20px; font-size: 12px; white-space: nowrap; flex-shrink: 0;
  background: var(--surface); color: var(--dim); border: 1px solid var(--border); cursor: pointer;
}
.fchip.selected { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }
.fchip .cnt { opacity: 0.75; font-size: 11px; }

/* ============ MINI MENU (popup "Lainnya": Keuangan/Setelan) ============ */
.minimenu-overlay {
  position: fixed; inset: 0; z-index: 18; background: rgba(2,5,10,0.45);
}
.minimenu-overlay.hidden { display: none; }
.minimenu {
  position: absolute; right: 14px; bottom: calc(78px + var(--safe-bottom));
  width: 210px; background: var(--surface); border: 1px solid var(--border-hi);
  border-radius: 16px; padding: 6px; box-shadow: 0 14px 34px rgba(0,0,0,0.5);
  animation: minimenuIn 0.16s cubic-bezier(0.32, 0.72, 0.28, 1);
}
@keyframes minimenuIn { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.minimenu .set-row { padding: 12px 10px; border-radius: 11px; border-bottom: none; }
.minimenu .set-row:active { background: var(--surface2); }

/* ============ KEUANGAN ============ */
.fin-hero {
  background: linear-gradient(135deg, #13223C 0%, #0E1626 75%);
  border: 1px solid var(--border-hi); border-radius: 18px; padding: 20px; margin-bottom: 10px;
}
.fin-hero .fh-label { color: var(--dim); font-size: 12px; margin: 0; }
.fin-hero .fh-num { color: var(--text); font-size: 30px; font-weight: 700; margin: 6px 0 0; letter-spacing: -0.5px; }
.fin-trend { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; margin-top: 8px; padding: 3px 10px; border-radius: 20px; }
.fin-trend.up { background: rgba(46,221,133,0.12); color: var(--green); }
.fin-trend.down { background: rgba(255,93,93,0.12); color: var(--red); }
.fin-trend.flat { background: rgba(126,140,166,0.12); color: var(--dim); }
.fin-trend svg { width: 12px; height: 12px; }

.fin-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.fin-mini { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 13px 14px; }
.fin-mini .fm-label { color: var(--dim); font-size: 11px; margin: 0; }
.fin-mini .fm-num { color: var(--text); font-size: 17px; font-weight: 700; margin: 5px 0 0; }

.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 15px 12px; margin-bottom: 16px; }
.bar-chart { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; height: 110px; padding-top: 6px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar-col .bc-val { font-size: 10px; color: var(--dim); margin-bottom: 5px; white-space: nowrap; }
.bar-col .bc-bar { width: 60%; min-width: 14px; background: var(--surface2); border-radius: 5px 5px 2px 2px; transition: height 0.5s ease; }
.bar-col.now .bc-bar { background: var(--primary); }
.bar-col .bc-label { font-size: 10.5px; color: var(--faint); margin-top: 7px; }
.bar-col.now .bc-label { color: var(--primary-hi); font-weight: 600; }

.paket-share-row { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.paket-share-row:last-child { border-bottom: none; }
.paket-share-row .ps-dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.paket-share-row .ps-info { flex: 1; min-width: 0; }
.paket-share-row .ps-name { font-size: 13px; font-weight: 600; margin: 0; }
.paket-share-row .ps-count { color: var(--dim); font-size: 11px; margin: 2px 0 0; }
.paket-share-row .ps-sum { color: var(--text); font-size: 13px; font-weight: 600; }

.tagihan-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.tagihan-row:last-child { border-bottom: none; }
.tagihan-row .tg-info { flex: 1; min-width: 0; }
.tagihan-row .tg-name { font-size: 13px; font-weight: 600; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tagihan-row .tg-meta { color: var(--amber); font-size: 11px; margin: 2px 0 0; }
.tagihan-row .tg-sum { color: var(--text); font-size: 12.5px; font-weight: 600; white-space: nowrap; }

.pay-row { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.pay-row:last-child { border-bottom: none; }
.pay-row .pr-ic { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(46,221,133,0.12); color: var(--green); }
.pay-row .pr-ic svg { width: 15px; height: 15px; }
.pay-row .pr-info { flex: 1; min-width: 0; }
.pay-row .pr-name { font-size: 13px; font-weight: 600; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-row .pr-meta { color: var(--dim); font-size: 11px; margin: 2px 0 0; }
.pay-row .pr-sum { color: var(--green); font-size: 13px; font-weight: 700; white-space: nowrap; }

/* ============ SHEET (bottom modal) ============ */
.sheet-overlay {
  position: fixed; inset: 0; background: rgba(2,5,10,0.65); z-index: 20;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 1; transition: opacity 0.2s;
}
.sheet-overlay.hidden { display: none; }
.sheet {
  background: var(--bg); width: 100%; max-width: 480px;
  border-radius: 22px 22px 0 0; border: 1px solid var(--border); border-bottom: none;
  padding: 14px 20px calc(24px + var(--safe-bottom));
  max-height: 90vh; max-height: 90dvh; overflow-y: auto;
  animation: sheetUp 0.26s cubic-bezier(0.32, 0.72, 0.28, 1);
}
@keyframes sheetUp { from { transform: translateY(60px); opacity: 0.4; } to { transform: translateY(0); opacity: 1; } }
.sheet-handle { width: 38px; height: 4px; background: var(--border-hi); border-radius: 4px; margin: 0 auto 16px; }
.sheet h3 { margin: 0 0 4px; font-size: 17px; }
.sheet .sheet-sub { color: var(--dim); font-size: 13px; margin: 0 0 16px; }

.detail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.detail-head .cust-avatar { width: 48px; height: 48px; border-radius: 14px; font-size: 16px; }
.detail-head .dh-info { flex: 1; min-width: 0; }
.detail-head .dh-name { font-size: 16px; font-weight: 700; margin: 0; }
.detail-head .dh-sub { color: var(--dim); font-size: 11.5px; margin: 3px 0 0; }

.conn-box {
  background: var(--surface); border: 1px dashed var(--border-hi); border-radius: 13px;
  padding: 12px 14px; font-family: ui-monospace, 'Cascadia Mono', monospace; font-size: 12.5px;
}
.conn-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.conn-row .cr-label { color: var(--dim); width: 74px; flex-shrink: 0; }
.conn-row .cr-val { color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { background: none; color: var(--faint); padding: 5px; display: flex; border-radius: 7px; }
.icon-btn:active { background: var(--surface2); }
.icon-btn svg { width: 15px; height: 15px; }

.online-box { background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 12px 14px; margin-top: 9px; }
.online-box .ob-title { color: var(--dim); font-size: 10.5px; font-weight: 700; letter-spacing: 1px; margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }
.online-box .ob-title svg { width: 12px; height: 12px; }
.user-chipset { display: flex; gap: 6px; flex-wrap: wrap; }
.user-chip { background: var(--surface2); color: var(--text2); font-size: 11px; padding: 4px 10px; border-radius: 16px; }

.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; }
.action-grid .btn { padding: 11px 8px; font-size: 12.5px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.action-grid .btn svg { width: 15px; height: 15px; }
.danger-link { display: block; width: 100%; background: none; color: var(--red); font-size: 12.5px; text-align: center; padding: 12px 0 2px; }

.uline-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border);
}
.uline-row:last-child { border-bottom: none; }
.uline-row .u-info { flex: 1; min-width: 0; }
.uline-row .u-name { font-size: 13.5px; font-weight: 600; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uline-row .u-meta { color: var(--dim); font-size: 11px; margin: 2px 0 0; }
.uline-row .mic-ic { color: var(--faint); width: 15px; height: 15px; }
.uline-row .mic-ic.muted { color: var(--amber); }
.kick-btn { background: transparent; border: 1px solid rgba(255,93,93,0.4); color: var(--red); font-size: 11px; padding: 6px 11px; border-radius: 9px; }
.kick-btn.armed { background: var(--red); color: #fff; border-color: var(--red); }

/* ============ FORMS ============ */
label.field-label { display: block; font-size: 12px; color: var(--dim); margin: 13px 0 6px; }
label.field-label:first-of-type { margin-top: 0; }
.sheet input[type=text], .sheet input[type=number], .sheet input[type=password], .sheet input:not([type]) {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 15px; outline: none;
}
.sheet input:focus { border-color: var(--primary); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 14px; border-radius: 20px; font-size: 13px;
  background: var(--surface2); color: var(--text2); border: 1px solid var(--border); cursor: pointer;
}
.chip.selected { background: var(--primary); color: #fff; border-color: var(--primary); }

.pw-row { display: flex; gap: 8px; align-items: center; }
.pw-row input { flex: 1; font-family: ui-monospace, 'Cascadia Mono', monospace; letter-spacing: 0.5px; }
.pw-row .btn-gen { flex-shrink: 0; padding: 12px 13px; border-radius: 12px; display: flex; }
.pw-row .btn-gen svg { width: 16px; height: 16px; }

.copy-box {
  background: var(--surface); border: 1px dashed var(--border-hi); border-radius: 12px;
  padding: 14px; font-family: ui-monospace, 'Cascadia Mono', monospace; font-size: 13px; margin-top: 12px;
  line-height: 1.8; color: var(--text2); word-break: break-all;
}

/* ============ RIWAYAT ============ */
.log-date { color: var(--dim); font-size: 11.5px; font-weight: 700; letter-spacing: 0.5px; margin: 16px 0 8px; }
.log-date:first-child { margin-top: 0; }
.log-row {
  display: flex; align-items: flex-start; gap: 11px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 13px;
  padding: 11px 13px; margin-bottom: 7px;
}
.log-row .lg-ic { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.log-row .lg-ic svg { width: 15px; height: 15px; }
.log-row .lg-body { flex: 1; min-width: 0; }
.log-row .lg-text { font-size: 12.5px; margin: 0; line-height: 1.45; color: var(--text2); }
.log-row .lg-time { color: var(--faint); font-size: 10.5px; margin: 3px 0 0; }

/* ============ SETELAN ============ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.admin-row { display: flex; align-items: center; gap: 12px; }
.admin-row .info { flex: 1; }
.admin-row .nm { font-size: 15px; font-weight: 700; margin: 0; }
.admin-row .sub { color: var(--dim); font-size: 12px; margin: 2px 0 0; }
.set-row {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  background: none; color: var(--text); padding: 12px 2px; font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.set-row:last-child { border-bottom: none; }
.set-row svg { width: 17px; height: 17px; color: var(--dim); }
.set-row .grow { flex: 1; }
.set-row.danger { color: var(--red); }
.set-row.danger svg { color: var(--red); }
.section-label { color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: 0.5px; margin: 18px 0 9px; }
.paket-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 14px; margin-bottom: 8px;
}
.paket-row .pk-info { flex: 1; min-width: 0; }
.paket-row .pk-name { font-size: 13.5px; font-weight: 600; margin: 0; }
.paket-row .pk-meta { color: var(--dim); font-size: 11.5px; margin: 2px 0 0; }
.paket-row .pk-price { color: var(--primary-hi); font-size: 12.5px; font-weight: 600; }

/* ============ BOTTOM NAV ============ */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(11,17,29,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 7px 6px calc(8px + var(--safe-bottom));
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--faint); font-size: 10px; background: none;
  padding: 5px 12px; border-radius: 11px; transition: color 0.15s;
}
.nav-item.active { color: var(--primary-hi); }
.nav-item svg { width: 20px; height: 20px; }
.fab {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  margin-top: -28px; box-shadow: 0 6px 18px rgba(30,136,229,0.45); border: 4px solid var(--bg);
  transition: transform 0.12s;
}
.fab:active { transform: scale(0.92); }
.fab svg { width: 22px; height: 22px; }

/* ============ TOAST ============ */
.toast-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  background: var(--surface2); border: 1px solid var(--border-hi); color: var(--text);
  padding: 11px 17px; border-radius: 12px; font-size: 13px; box-shadow: 0 10px 28px rgba(0,0,0,0.5);
  max-width: 90%; display: flex; align-items: center; gap: 8px;
  animation: toastIn 0.25s ease;
}
@keyframes toastIn { from { transform: translateY(-14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.toast svg { width: 15px; height: 15px; }
.toast.success svg { color: var(--green); }
.toast.error svg { color: var(--red); }

/* ============ SKELETON ============ */
.skel { background: var(--surface); border-radius: 14px; position: relative; overflow: hidden; }
.skel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.045), transparent);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.hidden { display: none !important; }

@media (min-width: 720px) {
  .main { padding: 26px 32px calc(96px + var(--safe-bottom)); max-width: 760px; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}
