/* ============ NOC Panel — tema gelap ============ */
:root {
  --bg: #070b14;
  --bg-2: #0b1220;
  --panel: #0f172a;
  --panel-2: #131d33;
  --line: #1e2b45;
  --line-soft: #17233a;
  --txt: #e6edf7;
  --muted: #8ba0bf;
  --dim: #5f7392;
  --accent: #22d3ee;
  --accent-2: #38bdf8;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --violet: #a78bfa;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .9);
  --radius: 14px;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--txt);
  background:
    radial-gradient(1100px 500px at 12% -10%, rgba(34, 211, 238, .10), transparent 60%),
    radial-gradient(900px 460px at 100% 0%, rgba(167, 139, 250, .10), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }
code { font-family: var(--mono); background: #0a1220; padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line); font-size: .85em; }

/* ================= LOGIN ================= */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.login-card {
  width: 100%; max-width: 380px; background: linear-gradient(180deg, var(--panel), #0c1424);
  border: 1px solid var(--line); border-radius: 18px; padding: 26px;
  box-shadow: var(--shadow); display: grid; gap: 14px;
}
.brand-lg { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.brand-lg h1 { font-size: 20px; }
.brand-lg p { margin: 2px 0 0; font-size: 12.5px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 19px; color: #04121a;
  background: linear-gradient(140deg, var(--accent), #6ee7b7);
  box-shadow: 0 6px 18px -6px rgba(34, 211, 238, .8);
}
.field { display: grid; gap: 6px; }
.field > span { font-size: 12.5px; color: var(--muted); }
input, select, textarea {
  width: 100%; background: #0a1220; color: var(--txt); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; font-size: 13.5px; font-family: inherit;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 211, 238, .14);
}
.msg-sm { margin: 0; font-size: 12.5px; color: var(--red); min-height: 16px; }
.hint { margin: 0; font-size: 11.5px; color: var(--dim); line-height: 1.5; }

/* ================= BUTTONS ================= */
.btn {
  cursor: pointer; border: 1px solid var(--line); background: var(--panel-2); color: var(--txt);
  border-radius: 10px; padding: 9px 14px; font-size: 13px; font-family: inherit; font-weight: 550;
  transition: transform .08s, background .15s, border-color .15s;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.btn:hover { background: #182543; border-color: #2b3d61; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(140deg, var(--accent), #0ea5e9); color: #04121a; border-color: transparent; font-weight: 700; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; }
.btn.danger { border-color: #4b1f28; color: #ffb4b4; background: #1b0f14; }
.btn.danger:hover { background: #2a1219; }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn.wide { width: 100%; justify-content: center; padding: 11px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn {
  background: transparent; border: none; color: var(--muted); font-size: 22px; line-height: 1;
  cursor: pointer; padding: 2px 6px; border-radius: 8px;
}
.icon-btn:hover { background: #16223a; color: var(--txt); }
.linklike { background: none; border: none; color: var(--accent-2); cursor: pointer; font: inherit; font-size: 12px; padding: 0; }

/* ================= LAYOUT ================= */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar {
  border-right: 1px solid var(--line-soft); padding: 18px 14px; display: flex;
  flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; background: rgba(8, 13, 24, .72);
  backdrop-filter: blur(8px);
}
.brand { display: flex; gap: 10px; align-items: center; padding: 0 6px; }
.brand strong { display: block; font-size: 14px; }
.brand small { font-size: 11px; }
.nav { display: grid; gap: 3px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px;
  color: var(--muted); font-size: 13.2px; font-weight: 550; border: 1px solid transparent;
}
.nav a svg { width: 17px; height: 17px; fill: currentColor; opacity: .85; }
.nav a:hover { background: #101b2f; color: var(--txt); }
.nav a.active { background: linear-gradient(90deg, rgba(34, 211, 238, .16), rgba(34, 211, 238, .02)); color: #d7fbff; border-color: #1d4152; }
.side-status {
  margin-top: auto; display: flex; gap: 9px; align-items: center; padding: 11px;
  border: 1px solid var(--line); border-radius: 12px; background: #0a1220; font-size: 12.3px;
}
.side-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); box-shadow: 0 0 0 4px rgba(255, 255, 255, .03); }
.side-status.online .dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.side-status.offline .dot { background: var(--red); box-shadow: 0 0 10px rgba(248, 113, 113, .8); }
.side-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); padding: 0 4px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 26px; border-bottom: 1px solid var(--line-soft);
  position: sticky; top: 0; z-index: 20; background: rgba(7, 11, 20, .82); backdrop-filter: blur(10px);
}
.topbar h2 { font-size: 18px; }
.topbar p { margin: 2px 0 0; font-size: 12.3px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill {
  display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); background: #0b1322; padding: 6px 11px; border-radius: 999px;
}
.pill b { color: var(--txt); font-family: var(--mono); font-size: 13px; }
.pill.ghost-pill b { color: var(--amber); }
.view { padding: 22px 26px 60px; display: grid; gap: 18px; }

/* ================= CARDS / GRID ================= */
.grid { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); }
.two { grid-template-columns: 1.45fr 1fr; }
.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1180px) { .two, .three { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, rgba(17, 26, 45, .92), rgba(11, 18, 32, .92));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow); min-width: 0;
}
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.card-head h3 { font-size: 13.6px; letter-spacing: .01em; }
.card-head .sub { font-size: 11.6px; color: var(--dim); }
.card-actions { display: flex; gap: 8px; align-items: center; }

.kpi { display: grid; gap: 8px; }
.kpi .label { font-size: 11.6px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.kpi .value { font-size: 27px; font-weight: 700; font-family: var(--mono); letter-spacing: -.02em; line-height: 1.1; }
.kpi .value small { font-size: 13px; color: var(--muted); font-family: var(--sans); font-weight: 500; }
.kpi .delta { font-size: 11.8px; color: var(--dim); }
.kpi .delta.up { color: var(--green); }
.kpi .delta.warn { color: var(--amber); }
.kpi.accent .value { color: var(--accent); }
.kpi.green .value { color: var(--green); }
.kpi.amber .value { color: var(--amber); }
.kpi.red .value { color: var(--red); }
.kpi.violet .value { color: var(--violet); }

/* ================= TABLE ================= */
.table-wrap { overflow: auto; border-radius: 12px; border: 1px solid var(--line-soft); }
table { width: 100%; border-collapse: collapse; font-size: 12.7px; }
thead th {
  text-align: left; padding: 10px 12px; font-size: 11.2px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--dim); background: #0a1220; position: sticky; top: 0;
  border-bottom: 1px solid var(--line); z-index: 1; white-space: nowrap;
}
tbody td { padding: 9px 12px; border-bottom: 1px solid #101b2e; vertical-align: middle; }
tbody tr:hover { background: #0d1728; }
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-family: var(--mono); }
td.name { font-weight: 550; }
.empty { padding: 26px; text-align: center; color: var(--dim); font-size: 13px; }

/* ================= BADGES ================= */
.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.2px; padding: 3px 8px;
  border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: #0b1322;
  white-space: nowrap;
}
.badge.on { color: #b8f5de; background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .35); }
.badge.off { color: #c3ccdb; background: rgba(148, 163, 184, .1); border-color: #26334b; }
.badge.isolir { color: #ffd7a8; background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .35); }
.badge.overdue { color: #ffc0c0; background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .35); }
.badge.paid { color: #b8f5de; background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .35); }
.badge.unpaid { color: #ffe6ab; background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .3); }
.badge.ghost { color: #ffe6ab; background: rgba(251, 191, 36, .13); border-color: rgba(251, 191, 36, .4); }
.badge.info { color: #cfe4ff; background: rgba(56, 189, 248, .1); border-color: rgba(56, 189, 248, .3); }

/* ================= TOOLBAR / FILTERS ================= */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar input[type=search], .toolbar input[type=text] { max-width: 260px; }
.toolbar select { max-width: 210px; }
.spacer { flex: 1; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button {
  background: #0b1322; border: 1px solid var(--line); color: var(--muted); border-radius: 9px;
  padding: 7px 12px; font-size: 12.3px; cursor: pointer; font-family: inherit;
}
.tabs button.active { color: #d7fbff; border-color: #1d4152; background: rgba(34, 211, 238, .12); }

/* ================= CHART ================= */
.chart { width: 100%; height: 150px; display: block; }
.chart-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.chart-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }

/* ================= MAP ================= */
.map-shell { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: radial-gradient(700px 400px at 50% 0%, #0d1a2e, #070d18 70%); height: calc(100vh - 210px); min-height: 460px; }
.map-shell svg { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.map-shell svg.dragging { cursor: grabbing; }
.map-tools {
  position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; z-index: 5;
  background: rgba(9, 15, 26, .85); border: 1px solid var(--line); border-radius: 10px; padding: 5px;
}
.map-tools button { background: transparent; border: none; color: var(--muted); cursor: pointer; font-size: 13px; padding: 5px 9px; border-radius: 7px; font-family: inherit; }
.map-tools button:hover { background: #16223a; color: var(--txt); }
.map-search { position: absolute; top: 12px; left: 12px; z-index: 5; display: flex; gap: 6px; }
.map-search input { width: 210px; padding: 7px 11px; font-size: 12.5px; background: rgba(9, 15, 26, .9); }
.map-legend {
  position: absolute; bottom: 12px; left: 12px; z-index: 5; display: flex; gap: 12px; flex-wrap: wrap;
  background: rgba(9, 15, 26, .85); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
  font-size: 11.3px; color: var(--muted);
}
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.node-label { font-family: var(--sans); fill: var(--txt); font-size: 10.5px; pointer-events: none; }
.node-sub { font-family: var(--mono); font-size: 9.5px; fill: #7fe9ff; pointer-events: none; }
.node-group { cursor: pointer; }
.node-group:hover .node-box { filter: brightness(1.25); }
.link { fill: none; stroke: #24405f; stroke-width: 1.2; }
.link.active { stroke: #2dd4bf; stroke-width: 1.6; stroke-dasharray: 5 7; animation: dashmove 1.1s linear infinite; }
.link.warn { stroke: rgba(251, 191, 36, .65); }
@keyframes dashmove { to { stroke-dashoffset: -24; } }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ================= DRAWER / MODAL ================= */
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 380px; max-width: 92vw; z-index: 60;
  background: linear-gradient(180deg, #0e1729, #090f1c); border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .95); display: flex; flex-direction: column;
  animation: slidein .16s ease-out;
}
@keyframes slidein { from { transform: translateX(24px); opacity: .6; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.drawer-body { padding: 16px 18px 40px; overflow: auto; font-size: 13px; }
.kv { display: grid; grid-template-columns: 112px 1fr; gap: 8px 12px; font-size: 12.7px; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; font-family: var(--mono); word-break: break-all; }
.section-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin: 20px 0 10px; }

.modal { position: fixed; inset: 0; z-index: 70; background: rgba(3, 6, 12, .7); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(3px); }
.modal-card { width: 100%; max-width: 560px; background: linear-gradient(180deg, #101a2e, #0a1220); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); max-height: 90vh; display: flex; flex-direction: column; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); }
.modal-body { padding: 16px 18px; overflow: auto; display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 90;
  background: #101c30; border: 1px solid var(--line); color: var(--txt); padding: 11px 16px;
  border-radius: 11px; font-size: 13px; box-shadow: var(--shadow); max-width: 90vw;
}
.toast.err { border-color: #55202b; color: #ffc9c9; }
.toast.ok { border-color: #1d4a3a; color: #b7f7dd; }

/* ================= MISC ================= */
.rate { font-family: var(--mono); font-size: 12.4px; }
.rate.hot { color: var(--green); }
.rate.idle { color: var(--dim); }
.bar { height: 5px; border-radius: 3px; background: #142137; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--green)); }
.sub-note { font-size: 11.6px; color: var(--dim); line-height: 1.55; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; }
  .nav { display: flex; }
  .side-status, .side-foot { display: none; }
  .view, .topbar { padding: 14px; }
  .form-row, .split { grid-template-columns: 1fr; }
}

/* ================= PETA SATELIT (geo) ================= */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #0a1220; }
.seg button { background: transparent; border: none; color: var(--muted); font-family: inherit; font-size: 12.5px; padding: 6px 12px; cursor: pointer; }
.seg button:hover { color: var(--txt); }
.seg button.on { background: #16223a; color: var(--txt); }

.map-shell.geo-mode { background: #0a1018; }
.map-shell.geo-mode svg { cursor: inherit; }
.geo { position: absolute; inset: 0; overflow: hidden; background: #0a1018; cursor: grab; touch-action: none; user-select: none; }
.geo.panning { cursor: grabbing; }
.geo-tiles { position: absolute; inset: 0; }
.geo-tile {
  position: absolute; top: 0; left: 0; width: 256px; height: 256px;
  pointer-events: none; user-select: none; background: #101826;
  filter: saturate(1.05) brightness(.92);
}
.geo-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.geo-link { fill: none; stroke: #5eead4; stroke-width: 1.5; opacity: .45; stroke-linecap: round; }
.geo-link.active { opacity: .95; stroke-dasharray: 5 7; animation: dashmove 1.1s linear infinite; }
.geo-link.r4 { stroke-width: 1; opacity: .32; }
.geo-link.r4.active { opacity: .8; }
.geo-markers { position: absolute; inset: 0; pointer-events: none; }
.geo-mark {
  position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: 5px;
  background: none; border: none; padding: 0; margin: 0; color: var(--txt);
  font-family: inherit; cursor: pointer; white-space: nowrap; touch-action: none;
  pointer-events: auto;
}
.geo-mark:focus-visible { outline: 2px solid #22d3ee; outline-offset: 4px; border-radius: 8px; }
.geo-pill {
  display: flex; flex-direction: column; gap: 1px; padding: 3px 7px; border-radius: 7px;
  background: rgba(9, 15, 26, .88); border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(2, 6, 14, .55); backdrop-filter: blur(3px);
}
.geo-pill b { font-size: 10.5px; font-weight: 600; letter-spacing: .2px; }
.geo-pill i { font-style: normal; font-family: var(--mono); font-size: 9.5px; color: #7fe9ff; }
.geo-mark-olt .geo-pill { border-color: #2c6a7d; }
.geo-mark-olt .geo-pill b { font-size: 11.5px; }
.geo-mark-odc .geo-pill { border-color: #3b5a86; }
.geo-mark-odp .geo-pill { border-color: #2f6b63; }
.geo-mark-router .geo-pill { border-color: #3f5f7a; background: rgba(13, 26, 44, .92); }
.geo-dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(9, 15, 26, .75); flex: 0 0 auto; }
.geo-dot.on { background: #34d399; }
.geo-dot.off { background: #64748b; }
.geo-mark-customer .geo-dot { width: 10px; height: 10px; transition: transform .15s ease; }
.geo-mark-customer.st-active .geo-dot { box-shadow: 0 0 0 3px rgba(9, 15, 26, .8), 0 0 10px rgba(52, 211, 153, .8); }
.geo-mark-customer.st-idle .geo-dot { background: #22d3ee; }
.geo-mark-customer.st-off .geo-dot { background: #475569; }
.geo-mark-customer.overdue .geo-dot { box-shadow: 0 0 0 2.5px #fb7185, 0 0 0 5px rgba(9, 15, 26, .8); }
.geo-mark-customer:hover .geo-dot { transform: scale(1.45); }
.geo-warn {
  position: absolute; top: -9px; right: -9px; width: 14px; height: 14px; border-radius: 50%;
  background: #fb7185; color: #0b1020; font-size: 9px; font-weight: 700; display: grid; place-items: center;
}
.geo.editing .geo-mark.movable { cursor: move; }
.geo.editing .geo-mark.movable:hover { z-index: 6; }
.geo .geo-mark.dragging { z-index: 9; filter: drop-shadow(0 0 8px rgba(45, 212, 191, .9)); }
.map-tools .map-layer {
  background: #0f1a2b; color: var(--txt); border: 1px solid var(--line); border-radius: 7px;
  font-family: inherit; font-size: 11.5px; padding: 4px 6px; cursor: pointer;
}
.map-tools button.on { background: #17283f; color: #5eead4; }
.geo-hud {
  position: absolute; right: 12px; bottom: 46px; z-index: 4; display: flex; gap: 10px;
  font-family: var(--mono); font-size: 10.5px; color: #9fb3cf;
  background: rgba(9, 15, 26, .78); border: 1px solid var(--line); padding: 4px 8px; border-radius: 8px;
}
.geo-attr { position: absolute; right: 10px; bottom: 26px; z-index: 4; font-size: 9.5px; color: #94a3b8; text-shadow: 0 1px 3px #000; }
.map-legend .legend-hint { color: #64748b; }
.geo-offline {
  position: absolute; left: 50%; bottom: 56px; transform: translateX(-50%); z-index: 6;
  background: #3b1220; border: 1px solid #7f1d3a; color: #fecdd3; font-size: 12px;
  padding: 8px 14px; border-radius: 9px;
}

/* ================= JALUR KABEL (waypoint) ================= */
.geo.route-mode { cursor: crosshair; }
.geo.route-mode .geo-mark { cursor: pointer; }
.geo-link.selected { stroke: #fbbf24; stroke-width: 2.4; opacity: 1; animation: none; stroke-dasharray: none; }
.geo-vertex-hit {
  fill: transparent; stroke: none; cursor: grab; pointer-events: all;
  touch-action: none;
}
.geo-vertex-hit:active { cursor: grabbing; }
.geo-vertex {
  fill: #0b1220; stroke: #fbbf24; stroke-width: 2;
  pointer-events: none; filter: drop-shadow(0 0 4px rgba(251, 191, 36, .7));
}
.geo-vertex-hit:hover + .geo-vertex { fill: #fbbf24; }
.geo-vertex-hit.dragging + .geo-vertex { fill: #fde68a; stroke-width: 3; }
.geo-route-panel {
  position: absolute; left: 50%; bottom: 56px; transform: translateX(-50%); z-index: 7;
  width: min(560px, calc(100% - 250px)); padding: 10px 12px; border-radius: 11px;
  background: rgba(9, 15, 26, .95); border: 1px solid #4a3d1c;
  box-shadow: 0 16px 40px rgba(2, 6, 14, .6); font-size: 12px; color: var(--txt);
}
.geo-route-head { font-weight: 600; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.geo-route-head .dim { color: var(--muted); font-weight: 400; font-family: var(--mono); font-size: 10.5px; }
.geo-route-hint { color: var(--muted); font-size: 11.5px; margin: 4px 0 8px; }
.geo-route-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.geo-route-actions button {
  background: #16223a; border: 1px solid var(--line); color: var(--txt);
  font-family: inherit; font-size: 11.5px; padding: 5px 10px; border-radius: 7px; cursor: pointer;
}
.geo-route-actions button:hover { border-color: #fbbf24; color: #fde68a; }
.geo-route-actions button[data-r="done"] { background: #1d3a2b; border-color: #2f6b4f; color: #bbf7d0; }
.map-shell.route-mode .geo-hud { bottom: 150px; }

/* ================= VOUCHER WIFI ================= */
.voucher-code { font-size: 12.5px; letter-spacing: .4px; color: #c7f9ee; }
.icon-btn.tiny { font-size: 13px; color: var(--muted); padding: 2px 4px; }
.icon-btn.tiny:hover { color: var(--txt); }
.code-list {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.9; letter-spacing: .6px;
  background: #0a1220; border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 12px; max-height: 320px; overflow: auto; white-space: pre-wrap;
}
.v-remain { color: #7fe9ff; }

/* ================= PESAN WHATSAPP ================= */
.wa-tpl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; margin-top: 6px; }
.wa-tpl textarea {
  font-family: var(--mono); font-size: 11.5px; line-height: 1.55; resize: vertical;
  background: #0b1421; color: var(--txt); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 9px; width: 100%;
}
.wa-tpl span em { font-style: normal; }
.wa-msg-body { max-width: 320px; font-size: 11.5px; color: #9fb3cf; }
.wa-msg-body, .wa-tpl textarea { white-space: pre-wrap; }

/* ================= OTOMATISASI BILLING ================= */
.auto-summary { display: grid; gap: 3px; margin-top: 10px; padding: 9px 11px; border-radius: 9px;
  background: #0c1626; border: 1px solid var(--line); font-size: 12px; }
.auto-summary b { color: #5eead4; }
.pick-list { display: grid; gap: 5px; margin: 6px 0 2px; }
.pick-row { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 4px 8px; border-radius: 7px; background: #0a1420; border: 1px solid rgba(148,163,184,.12); }
.pick-row .sub-note { font-size: 11px; }

/* ================= KONEKSI MIKROTIK ================= */
.mt-result { margin-top: 10px; padding: 10px 12px; border-radius: 9px; background: #0c1626;
  border: 1px solid var(--line); }
.mt-result .kv { margin: 0; }

/* banner status langganan */
.banner { padding:10px 14px; border-radius:10px; font-size:13px; margin:0 0 12px; }
.banner.info { background:rgba(56,189,248,.12); border:1px solid rgba(56,189,248,.35); color:#7dd3fc; }
.banner.danger { background:rgba(248,113,113,.12); border:1px solid rgba(248,113,113,.35); color:#fca5a5; }

/* tombol lihat/sembunyikan password */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 40px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; cursor: pointer; font-size: 15px;
  line-height: 1; opacity: .6; padding: 4px; }
.pw-eye:hover { opacity: 1; }
