@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --accent-tx: #0b0d12;
  --bg: #0a0b10;
  --surface: #12141c;
  --surface-2: #1a1d27;
  --surface-3: #222632;
  --border: #2a2f3d;
  --text: #eef0f6;
  --muted: #8b92a8;
  --accent: #818cf8;
  --accent-hover: #a5b4fc;
  --accent-soft: rgba(129, 140, 248, 0.15);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --warn: #fbbf24;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(0,0,0,.35);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}
[data-theme="light"] {
  --accent-tx: #ffffff;
  --bg: #f4f5f9;
  --surface: #ffffff;
  --surface-2: #f0f2f7;
  --surface-3: #e8ebf2;
  --border: #dce0ea;
  --text: #111827;
  --muted: #6b7280;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: rgba(79, 70, 229, 0.1);
  --ok: #059669;
  --ok-soft: rgba(5, 150, 105, 0.1);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.08);
  --warn: #d97706;
  --shadow: 0 8px 30px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: 1.35rem; margin-bottom: 16px; }
h3 { font-size: 1rem; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 14px; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}
.anim-in { animation: fadeUp .4s ease both; }
.anim-scale { animation: scaleIn .3s ease both; }
.stagger > *:nth-child(1) { animation-delay: .04s; }
.stagger > *:nth-child(2) { animation-delay: .08s; }
.stagger > *:nth-child(3) { animation-delay: .12s; }
.stagger > *:nth-child(4) { animation-delay: .16s; }
.stagger > *:nth-child(5) { animation-delay: .2s; }
.stagger > *:nth-child(6) { animation-delay: .24s; }
.stagger > *:nth-child(n+7) { animation-delay: .28s; }

/* Auth */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card {
  width: 100%; max-width: 380px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 18px; padding: 32px;
  box-shadow: var(--shadow); animation: fadeUp .45s ease;
}
.auth-card h1 { text-align: center; font-size: 1.4rem; margin-bottom: 4px; }
.auth-card .muted { text-align: center; margin: 6px 0 0; }
.tabs {
  display: flex; gap: 4px; margin: 22px 0 18px; padding: 4px;
  background: var(--surface-2); border-radius: 12px;
  overflow-x: auto; overflow-y: hidden; white-space: nowrap; scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.tab {
  flex: 0 0 auto; padding: 9px 14px; border: 0; border-radius: 9px;
  background: transparent; color: var(--muted); cursor: pointer;
  font: inherit; font-weight: 500; transition: all .2s;
}
.tab.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
input, select, textarea {
  padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.msg { min-height: 20px; font-size: 14px; margin: 14px 0 0; text-align: center; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--ok); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border: 0; border-radius: 8px;
  background: var(--accent); color: var(--accent-tx, #fff);
  font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .18s;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(0); }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.primary { width: 100%; }
.btn.ghost {
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger {
  background: transparent; color: var(--danger); border: 1px solid var(--border);
}
.btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn.off {
  background: transparent; color: var(--muted); border: 1px solid var(--border);
}
.btn.off:hover { background: var(--surface-2); }
.btn.ok {
  background: var(--ok); color: #062; 
}
.btn.ok:hover { filter: brightness(.95); }
.icon-btn {
  background: none; border: 0; color: var(--text); font-size: 20px;
  cursor: pointer; padding: 6px 10px; border-radius: 8px; transition: background .15s;
}
.icon-btn:hover { background: var(--surface-2); }
.link-btn {
  background: none; border: 0; color: var(--danger); font: inherit;
  cursor: pointer; padding: 10px 16px; text-align: left; width: 100%;
}

/* Topbar & menu */
.topbar {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px);
}
.brand {
  flex: 1; font-weight: 700; font-size: 16px; color: var(--text);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.brand i { color: var(--accent); }
/* Side drawer: fixed overlay, independent of scroll position */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 40;
}
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(290px, 84vw);
  background: var(--surface); border-right: 1px solid var(--border);
  box-shadow: 4px 0 24px rgba(0,0,0,.25);
  transform: translateX(-100%); visibility: hidden;
  transition: transform .25s ease, visibility .25s;
  z-index: 50; display: flex; flex-direction: column; overflow-y: auto;
  overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom, 0px);
}
body.menu-open .drawer-overlay { opacity: 1; pointer-events: auto; }
body.menu-open .drawer { transform: none; visibility: visible; }
body.menu-open { overflow: hidden; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--border);
}
.drawer-title { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.drawer-title i { color: var(--accent); }
.drawer-links { padding: 8px 0; flex: 1; }
.drawer a, .drawer .link-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; color: var(--text); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: background .15s;
}
.drawer a:hover, .drawer .link-btn:hover { background: var(--surface-2); }
.drawer a i, .drawer .link-btn i { width: 20px; color: var(--muted); }
.drawer-foot { border-top: 1px solid var(--border); padding: 6px 0; }
.drawer .link-btn { color: var(--danger); }
.drawer .link-btn i { color: var(--danger); }

/* Content */
.content { padding: 24px 18px 48px; max-width: 920px; margin: 0 auto; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 18px;
  transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: var(--border); }
.card p { margin: 0; color: var(--muted); }
.section-title { margin: 28px 0 14px; font-size: 15px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.between { justify-content: space-between; }
.list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Package & panel cards */
.pkg {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  animation: fadeUp .4s ease both;
}
.pkg:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,.12);
}
.pkg ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.pkg li { padding: 3px 0; display: flex; align-items: center; gap: 8px; }
.pkg .price { font-size: 1.25rem; font-weight: 700; margin-top: auto; }
.pkg .price span { font-size: 13px; font-weight: 400; color: var(--muted); }
.pkg .btn { margin-top: 6px; }
.pkg .pkg-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  margin-bottom: 4px;
}

.item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; cursor: pointer; transition: border-color .18s, background .18s;
}
.item:hover { border-color: var(--accent); background: var(--surface-2); }
.item.sel { border-color: var(--accent); background: var(--accent-soft); }
.item .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.stat { font-size: 13px; color: var(--muted); line-height: 1.75; margin: 6px 0; }
.stat b { color: var(--text); font-weight: 500; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
}
.badge.on { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.badge.off { color: var(--danger); background: var(--danger-soft); border-color: transparent; }

/* Horizontal tabs for panel groups */
.htabs-wrap {
  margin: 16px 0 12px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.htabs {
  display: flex; gap: 6px; padding-bottom: 4px; min-width: max-content;
}
.htab {
  padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--muted); cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: all .2s;
}
.htab:hover { border-color: var(--accent); color: var(--text); }
.htab.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* Search */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0 14px; margin-bottom: 14px;
  transition: border-color .2s;
}
.search-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-bar i { color: var(--muted); font-size: 14px; }
.search-bar input {
  flex: 1; border: 0; background: transparent; padding: 12px 0;
  outline: none; box-shadow: none;
}
.search-bar input:focus { box-shadow: none; }

/* Step & tab admin */
.step { margin-top: 16px; }
.tabpane { margin-top: 16px; animation: fadeIn .25s ease; }
.card.form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.card.form h3 { margin: 0 0 2px; }

/* Payment */
.qr {
  width: 220px; max-width: 100%; background: #fff; border-radius: var(--radius);
  padding: 12px; display: block; margin: 0 auto 16px;
}
.pay p { margin: 6px 0; color: var(--text); }
.pay p.muted { color: var(--muted); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 50; animation: fadeIn .2s ease;
  backdrop-filter: blur(4px);
}
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; width: 100%; max-width: 400px;
  display: flex; flex-direction: column; gap: 14px;
  animation: scaleIn .25s ease; box-shadow: var(--shadow);
}
.modal h3 { font-size: 1.1rem; }
.modal p { margin: 0; color: var(--muted); font-size: 14px; }
.copy-row { display: flex; flex-direction: column; gap: 6px; }
.copy-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.copy-box { display: flex; gap: 8px; }
.copy-box input { flex: 1; min-width: 0; }
.countdown { font-weight: 600; text-align: center; color: var(--text) !important; margin: 2px 0; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--surface-3); border: 1px solid var(--border); color: var(--text);
  padding: 12px 20px; border-radius: 12px; font-size: 14px; font-weight: 500;
  z-index: 60; box-shadow: var(--shadow); animation: fadeUp .3s ease;
}

.theme-btn {
  background: none; border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; width: 36px; height: 36px; cursor: pointer;
  font-size: 15px; display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.theme-btn:hover { background: var(--surface-2); }
.auth-top { position: absolute; top: 16px; right: 16px; }
.auth-wrap { position: relative; }

.specs { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.spec { color: var(--text); display: flex; align-items: center; gap: 5px; }
.spec i { color: var(--muted); }
.sub { color: var(--muted); font-size: 13px; }
.pkg .row { margin-top: 4px; }
.btn.ghost i { font-size: 12px; }
.modal .list { max-height: 55vh; overflow: auto; }

.pay-options { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.summary .sum-row {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.summary .sum-row:last-child { border-bottom: 0; font-weight: 600; }

/* Verify page */
.verify-hero {
  text-align: center; padding: 28px 16px 8px;
  animation: fadeUp .4s ease;
}
.verify-hero .icon-big {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 18px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.verify-hero h2 { margin-bottom: 8px; }
.verify-status {
  display: flex; flex-direction: column; gap: 10px; margin-top: 20px;
}
.verify-status .info-row {
  display: flex; justify-content: space-between; padding: 12px 0;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.verify-status .info-row span:first-child { color: var(--muted); }

/* Admin package cards */
.admin-pkg-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.admin-pkg {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s, transform .2s;
  animation: fadeUp .35s ease both;
}
.admin-pkg:hover { border-color: var(--accent); transform: translateY(-2px); }
.admin-pkg .pkg-icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}

/* Bot status */
.bot-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.bot-status.running { background: var(--ok-soft); color: var(--ok); }
.bot-status.stopped { background: var(--danger-soft); color: var(--danger); }
.bot-status .dot {
  width: 8px; height: 8px; border-radius: 50%; background: currentColor;
}
.bot-status.running .dot { animation: pulse 1.5s infinite; }

/* Empty state */
.empty-state {
  text-align: center; padding: 48px 20px; color: var(--muted);
  animation: fadeUp .4s ease;
}
.empty-state i { font-size: 40px; margin-bottom: 12px; opacity: .5; }
.empty-state p { margin: 0 0 16px; }

/* Form page dedicated */
.form-page-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.form-page-header a {
  color: var(--muted); text-decoration: none; font-size: 14px;
  display: flex; align-items: center; gap: 6px;
}
.form-page-header a:hover { color: var(--text); }

/* Free package highlight */
.free-badge {
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #062; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; text-transform: uppercase;
}

/* Responsive */
@media (max-width: 560px) {
  .content { padding: 18px 14px 40px; }
  .grid { grid-template-columns: 1fr; }
  .topbar .btn.small span { display: none; }
}

/* Hamburger & close icons are inline SVG so they show even if Font Awesome fails to load */
#menu-btn, #drawer-close { display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
#menu-btn .ico, #drawer-close .ico { display: block; }

/* ===== Auth v2 ===== */
.auth2 { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
.auth2-brand {
  display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 64px;
  background: var(--surface);
  border-right: 1px solid var(--border);
}
.auth2-brand h2 { font-size: 2rem; letter-spacing: -.02em; margin: 6px 0 0; }
.auth2-brand p { color: var(--muted); max-width: 380px; line-height: 1.6; margin: 0; }
.auth2-brand ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.auth2-brand li { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 14.5px; }
.auth2-brand li i {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent); font-size: 14px;
}
.auth2-logo {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; font-size: 22px;
  background: var(--accent); color: var(--accent-tx, #fff); box-shadow: 0 8px 24px var(--accent-soft);
}
.auth2-logo.sm { display: none; width: 44px; height: 44px; font-size: 18px; margin: 0 auto 14px; }
.auth2-card {
  align-self: center; justify-self: center; width: 100%; max-width: 420px; padding: 40px 32px;
  animation: fadeUp .45s ease;
}
.auth2-head { text-align: center; margin-bottom: 24px; }
.auth2-head h1 { font-size: 1.6rem; letter-spacing: -.02em; margin: 0 0 6px; }
.auth2-head .muted { margin: 0; font-size: 14px; }
.setup-note {
  display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 8px 12px;
  border-radius: 10px; font-size: 13px; color: var(--warn); background: rgba(251,191,36,.1);
}
.seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 22px;
  background: var(--surface-2); border-radius: 12px;
}
.seg-btn {
  padding: 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted);
  font: inherit; font-weight: 600; cursor: pointer; transition: background .15s, color .15s;
}
.seg-btn.hidden { display: none; }
.seg-btn.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.afform { display: flex; flex-direction: column; gap: 16px; }
.afield { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.afield-box {
  display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 46px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.afield-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.afield-box > i { color: var(--muted); font-size: 14px; width: 16px; text-align: center; }
.afield-box input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  color: var(--text); font: inherit; font-size: 14.5px; font-weight: 500; box-shadow: none; padding: 0;
}
.afield-box input::placeholder { color: var(--muted); font-weight: 400; opacity: .7; }
.eye { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; }
.eye:hover { color: var(--text); }
.abtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; margin-top: 4px;
  border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-tx, #fff);
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .15s, transform .1s;
}
.abtn:hover { background: var(--accent-hover); }
.abtn:active { transform: scale(.99); }
.auth2-foot { text-align: center; margin: 18px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 860px) {
  .auth2 { grid-template-columns: 1fr; }
  .auth2-brand { display: none; }
  .auth2-logo.sm { display: grid; }
  .auth2-card { padding: 72px 22px 32px; }
}

/* ===== Tab Panels ===== */
.panels-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.panel-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.panel-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13.5px; }
.panel-kv dt { color: var(--muted); }
.panel-kv dd { margin: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pill.ok { background: rgba(52,211,153,.15); color: var(--ok); }
.pill.bad { background: rgba(248,113,113,.15); color: var(--danger); }

.panel-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.panel-pick { margin-top: 10px; }
.panel-pick select { width: 100%; }

/* ===== Kartu ringkasan di drawer ===== */
.drawer-card {
  margin: 14px 16px 6px; padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface-2));
  border: 1px solid var(--border);
}
.drawer-card-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.drawer-card-row strong { font-size: 16px; font-variant-numeric: tabular-nums; }

/* ===== Gaya baru: field & pilihan ===== */
.field-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-top: 6px; }
.field-title i { color: var(--accent); }
.field-hint { margin: 4px 0 10px; font-size: 13px; color: var(--muted); }
.choices { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice {
  display: flex; align-items: flex-start; gap: 12px; text-align: left; padding: 14px;
  border-radius: 14px; background: var(--surface); border: 1.5px solid var(--border);
  color: var(--text); font: inherit; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s, background .2s;
}
.choice:hover { transform: translateY(-1px); border-color: var(--accent); }
.choice.sel { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.choice-ic {
  width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 12px;
  background: var(--surface-2); color: var(--accent); font-size: 16px; transition: background .2s;
}
.choice.sel .choice-ic { background: var(--accent); color: var(--accent-tx, #fff); }
.choice-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.choice-txt b { font-size: 14.5px; }
.choice-txt .sub { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.hidden { display: none !important; }

/* ===== Kartu Free di Create Panel ===== */
.pkg.free-card { border: 1.5px dashed var(--accent); }
.pkg.free-card.disabled { opacity: .6; cursor: not-allowed; border-style: solid; }
.pkg.free-card.disabled:hover { transform: none; }
.free-info { display: grid; gap: 4px; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.free-block { margin: 10px 0 0; font-size: 13px; color: var(--danger); }

/* ===== Toggle sistem ===== */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.switch-row span { display: flex; flex-direction: column; gap: 3px; }
.switch-row small { font-size: 12.5px; }
.switch-row input[type="checkbox"] { width: 64px; height: 28px; appearance: none; -webkit-appearance: none; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; position: relative; cursor: pointer; transition: background .2s; flex: 0 0 64px; margin: 0; }
.switch-row input[type="checkbox"]::before { content: "OFF"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 10px; font-weight: 700; letter-spacing: .5px; color: var(--text-muted, #8a93a6); }
.switch-row input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch-row input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.switch-row input[type="checkbox"]:checked::before { content: "ON"; right: auto; left: 9px; color: #fff; }
.switch-row input[type="checkbox"]:checked::after { transform: translateX(37px); }
.switch-row input[type="checkbox"]:disabled { opacity: .45; cursor: not-allowed; }

/* ===== Tombol Pilih di kartu paket ===== */
.pick-btn { width: 100%; margin-top: 12px; }

/* ===== Beranda publik ===== */
.landing { max-width: 1040px; margin: 0 auto; padding: 24px 18px 60px; }
.hero { text-align: center; padding: 56px 8px 36px; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.03em; line-height: 1.1; margin: 18px 0 12px; }
.grad { background: linear-gradient(90deg, var(--accent), #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: 1.05rem; margin: 0 auto; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.btn.big { padding: 14px 24px; font-size: 15px; border-radius: 12px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 26px 0 40px; }
.feature { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.feature i { font-size: 20px; color: var(--accent); margin-bottom: 4px; }
.feature span { color: var(--muted); font-size: 14px; }
.pricing h2 { font-size: 1.4rem; margin: 0 0 16px; }
.pricing h2 i { color: var(--accent); }

/* ===== Diskon pengguna baru ===== */
.old-price, .price s { color: var(--muted); font-weight: 500; font-size: 13px; margin-right: 2px; }
.off-tag { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(52,211,153,.15); color: var(--ok); }
.promo-banner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 16px; border-radius: 14px; background: linear-gradient(90deg, var(--accent-soft), var(--surface-2)); border: 1px solid var(--border); font-size: 14px; }
.promo-banner i { color: var(--accent); }

/* ===== Flex ===== */
.flex-box { margin-top: 14px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 16px; }
.flex-row { display: grid; gap: 8px; }
.flex-head { display: flex; justify-content: space-between; font-size: 14px; }
.flex-head b { font-variant-numeric: tabular-nums; color: var(--accent); }
.flex-box input[type="range"] { width: 100%; accent-color: var(--accent); }
.flex-quote { font-weight: 600; font-size: 15px; }
.flex-quote.ok { color: var(--ok); }
.flex-quote.err { color: var(--danger); font-size: 13px; font-weight: 500; }
.pkg.flex-card { border: 1.5px solid var(--accent); }

/* tombol sedang memproses */
.abtn:disabled, .btn:disabled { opacity: .75; cursor: wait; }
.abtn.loading i.fa-spin, .btn.loading i.fa-spin { margin-right: 6px; }

/* kartu node di halaman Create */
.node-card { display: flex; flex-direction: column; gap: 8px; }
.node-head { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.node-head i { color: var(--accent); }
.node-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); word-break: break-all; }
.node-meta i { width: 16px; text-align: center; }
.node-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.node-ping { font-size: 13px; }

/* tombol nonaktif (data belum lengkap) */
.btn:disabled, button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }


/* kartu aplikasi */
.app-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.app-card h3 { margin: 4px 0 0; }
.app-ico { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft, #1e293b); font-size: 22px; }
.app-card .btn { margin-top: auto; }

/* ===== v91: paket, flex & checkout — tampilan lebih rapi ===== */
.pkg { padding: 22px; gap: 14px; }
.pkg h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pkg ul {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border);
}
.pkg li { padding: 0; font-size: 14px; }
.pkg li i { width: 16px; text-align: center; color: var(--accent); }
.pkg .price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px;
  font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.pkg .price span { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.pkg .old-price { font-size: 14px; font-weight: 500; color: var(--muted); }
.pkg .off-tag {
  font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: var(--ok-soft); color: var(--ok);
}
.pkg .btn { width: 100%; justify-content: center; align-items: center; gap: 8px; margin-top: 2px; }
.pkg.free-card .free-info { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.pkg .free-block { margin: 0; font-size: 13px; color: var(--warn); }

.flex-box {
  padding: 24px; gap: 24px; margin-top: 18px; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.flex-row { gap: 12px; }
.flex-head {
  align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px;
}
.flex-head b {
  font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.flex-box input[type="range"] { height: 6px; margin: 6px 0; cursor: pointer; }
.flex-quote {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 12px; background: var(--surface-2);
  border: 1px solid var(--border); font-size: 15px; font-variant-numeric: tabular-nums;
}
.flex-quote.ok { color: var(--text); }
.flex-quote.ok::before { content: "Harga bulanan"; color: var(--muted); font-weight: 500; font-size: 13px; }
.flex-quote.err { background: var(--danger-soft); border-color: transparent; }
.flex-box > .btn { width: 100%; justify-content: center; align-items: center; gap: 8px; margin-top: 0; }
.pkg.flex-card { border: 1.5px solid var(--accent); }
.pkg.flex-card .free-badge { margin-left: 0; }

.summary { padding: 0; overflow: hidden; }
.summary .sum-row { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.summary .sum-row:last-child { font-weight: 700; font-size: 16px; background: var(--surface-2); border-bottom: 0; }
#pay-options.card, .card:has(> .pay-options) { padding: 22px; }
.pay-options { gap: 12px; margin-top: 0; }
.pay-options .btn { width: 100%; justify-content: center; align-items: center; gap: 8px; }
.card .row { gap: 12px; }

/* ---------- Pembayaran manual: kartu & pop-up ---------- */
.modal-overlay { overflow-y: auto; }
.modal {
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.modal .modal-foot { position: sticky; bottom: -24px; margin: 0 -24px -24px; padding: 14px 24px 18px; background: var(--surface); border-top: 1px solid var(--border); display: flex; gap: 10px; }
.modal .modal-foot .btn { flex: 1; justify-content: center; }
.modal .step { display: flex; gap: 12px; align-items: flex-start; }
.modal .step-no { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.modal .step p { color: var(--text); }
.modal .drop { border: 1.5px dashed var(--border); border-radius: 12px; padding: 16px; text-align: center; cursor: pointer; }
.modal .drop input { display: none; }
.modal .drop small { display: block; margin-top: 6px; }
.modal input[type="text"] { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; box-sizing: border-box; }
.modal .prev-img { width: 100%; max-height: 320px; object-fit: contain; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }

.manual-box { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.manual-box .notice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: rgba(255, 180, 0, .12); color: var(--text); font-size: 14px; }
.manual-box .notice i { margin-top: 3px; }
.manual-box .id-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.manual-box .id-row code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--text); background: var(--surface); padding: 4px 8px; border-radius: 8px; border: 1px solid var(--border); word-break: break-all; }
.manual-box .state { font-size: 14px; color: var(--muted); }
.manual-box .state.done { color: var(--text); }

/* ---------- Progres pembayaran manual ---------- */
.pstep-list { display: flex; flex-direction: column; gap: 0; padding: 4px 0; }
.pstep { display: flex; align-items: center; gap: 12px; position: relative; padding: 8px 0; }
.pstep:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 34px; width: 2px; height: calc(100% - 26px); background: var(--border); }
.pstep.done:not(:last-child)::after { background: var(--accent); }
.pstep-dot { flex: 0 0 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: var(--surface); border: 2px solid var(--border); color: var(--muted); }
.pstep.done .pstep-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.pstep.current .pstep-dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px rgba(120, 140, 255, .18); }
.pstep-label { font-size: 15px; color: var(--muted); }
.pstep.done .pstep-label { color: var(--text); }
.pstep.current .pstep-label { color: var(--text); font-weight: 600; }


/* ---------- PKG Ress: kartu responsif ---------- */
.pkg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}
@media (min-width: 640px) { .pkg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pkg-grid { grid-template-columns: repeat(3, 1fr); } }

.pkg-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s, transform .2s;
}
.pkg-card:hover { border-color: var(--accent); }

.pkg-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.pkg-title { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--text); }
.pkg-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}
.pkg-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.pkg-badge.ok { background: var(--ok-soft); color: var(--ok); }

.pkg-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pkg-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-2, var(--bg));
  border: 1px solid var(--border);
  min-width: 0;
  cursor: text;
}
.pkg-stat:focus-within { border-color: var(--accent); }
.pkg-stat-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pkg-stat-label i { color: var(--accent); margin-right: 2px; }
.pkg-stat input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  outline: none;
  -moz-appearance: textfield;
}
.pkg-stat input::-webkit-outer-spin-button,
.pkg-stat input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pkg-note { margin: 0; font-size: 12px; color: var(--muted); }

.pkg-foot { margin-top: auto; }
.pkg-save { width: 100%; justify-content: center; }
.pkg-save:disabled { opacity: .55; cursor: default; }

@media (max-width: 380px) {
  .pkg-stats { grid-template-columns: 1fr; }
}

/* ---------- PKG Ress: perbaikan lebar layar HP ---------- */
#tab-pkgress, #pk-list, .pkg-grid { min-width: 0; max-width: 100%; box-sizing: border-box; }
#tab-pkgress { overflow-x: hidden; }
.pkg-grid > * { min-width: 0; max-width: 100%; }
.pkg-stat input { max-width: 100%; }


/* ---------- Pemakaian server (tab Panel) ---------- */
.usage-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
@media (min-width: 640px) { .usage-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .usage-grid { grid-template-columns: repeat(3, 1fr); } }
.usage-card { background: var(--surface-2, var(--bg)); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.usage-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.usage-title { margin: 0 0 2px; font-size: 15px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.usage-row { display: flex; flex-direction: column; gap: 5px; }
.usage-top { display: flex; justify-content: space-between; font-size: 12px; }
.usage-label { color: var(--muted); font-weight: 600; }
.usage-val { font-weight: 700; color: var(--text); }
.usage-track { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.usage-fill { height: 100%; border-radius: 999px; transition: width .4s ease; }
.usage-fill.ok { background: var(--ok); }
.usage-fill.warn { background: var(--warn); }
.usage-fill.danger { background: var(--danger); }
.usage-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text); flex-wrap: wrap; }
.usage-err { margin: 0; font-size: 13px; color: var(--danger); }
.pkg-badge.danger { background: var(--danger-soft); color: var(--danger); }


/* ---------- Anti Abuse ---------- */
.abuse-hero { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--surface); }
.abuse-hero-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.abuse-shield { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--accent-tx); font-size: 20px; flex-shrink: 0; }
.abuse-title { margin: 0; font-size: 18px; }
.abuse-status { font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px; }
.abuse-status.on { background: var(--ok-soft); color: var(--ok); }
.abuse-status.off { background: var(--border); color: var(--muted); }
.abuse-settings { margin-top: 12px; }
.abuse-metrics { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 6px 0; }
@media (min-width: 640px) { .abuse-metrics { grid-template-columns: 1fr 1fr; } }
.abuse-metric { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; background: var(--surface-2, var(--bg)); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.abuse-metric-head { display: flex; align-items: center; gap: 8px; color: var(--text); }
.abuse-metric-head i { color: var(--accent); }
.abuse-metric label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); }
.abuse-input { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.abuse-input:focus-within { border-color: var(--accent); }
.abuse-input input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 12px; font: inherit; font-size: 16px; font-weight: 700; color: var(--text); outline: none; }
.abuse-input span { padding: 0 12px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.abuse-help { font-size: 12.5px; line-height: 1.5; margin: 4px 0 0; }
.abuse-log-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.abuse-logs { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
@media (min-width: 720px) { .abuse-logs { grid-template-columns: 1fr 1fr; } }
.abuse-log { background: var(--surface-2, var(--bg)); border: 1px solid var(--border); border-left: 3px solid var(--warn); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.abuse-log.critical { border-left-color: var(--danger); }
.abuse-log-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.abuse-log-title { margin: 0 0 2px; font-size: 14.5px; overflow-wrap: anywhere; color: var(--text); }
.abuse-tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.abuse-tag.warn { background: var(--warn); color: #111; }
.abuse-tag.danger { background: var(--danger); color: #fff; }
.abuse-tag.ok { background: var(--ok-soft); color: var(--ok); }
.abuse-facts { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--text); }
.abuse-facts .muted { font-weight: 400; }
.abuse-unsuspend { width: 100%; justify-content: center; }
.abuse-empty { text-align: center; padding: 20px 0; }


/* ---------- Segmented capsule (tab Panel: Sewa / Usage) ---------- */
.seg { display: inline-flex; gap: 4px; padding: 4px; margin: 4px 0 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; max-width: 100%; }
.seg-btn { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 18px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: background .2s, color .2s; }
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: var(--accent); color: var(--accent-tx); box-shadow: 0 4px 14px var(--accent-soft); }
.usage-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.usage-actions .usage-btn { flex: 1 1 110px; justify-content: center; text-decoration: none; }
.usage-btn.danger-btn { color: var(--danger); border-color: var(--danger-soft); }
.usage-btn.danger-btn:hover { background: var(--danger-soft); }

/* Form tambah node: responsif, 1 kolom di HP, 2+ kolom di layar lebar */
.node-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.node-grid label { min-width: 0; }
.node-grid input { width: 100%; min-width: 0; box-sizing: border-box; }
#node-inline { min-width: 0; max-width: 100%; box-sizing: border-box; }
#node-inline .row { flex-wrap: wrap; }
