/* ============================================================
   MAX RSDK Panel - shared glass dark theme (ported from PHP UI)
   ============================================================ */

:root {
  --bg: #0a0c14;
  --bg2: #0f1420;
  --card: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --txt: #e8ecf4;
  --muted: #8a94a6;
  --accent: #ffd700;
  --blue: #60a5fa;
  --green: #22c55e;
  --red: #ef4444;
  --orange: #f97316;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: radial-gradient(circle at 50% -10%, #141a2c 0%, var(--bg) 60%);
  color: var(--txt);
  min-height: 100vh;
  font-size: 14px;
  overflow-x: hidden;
}

/* ---------- background layers ---------- */
.overlay { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(96,165,250,.06), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(255,215,0,.05), transparent 40%); }
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .05;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ---------- header ---------- */
.header {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  backdrop-filter: blur(14px);
  background: rgba(12, 15, 26, .65);
  border-bottom: 1px solid var(--card-border);
  gap: 14px;
}
.header-left { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px; background: var(--card); border: 1px solid var(--card-border);
  color: var(--txt); cursor: pointer; transition: .2s; font-size: 17px;
}
.icon-btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); }
.logo { font-weight: 800; letter-spacing: .3px; font-size: 20px; }
.logo .badge {
  font-size: 10px; background: rgba(255,215,0,.15); color: var(--accent);
  border: 1px solid rgba(255,215,0,.3); padding: 2px 8px; border-radius: 30px;
  vertical-align: 2px; margin-left: 6px; font-weight: 700; letter-spacing: .4px;
}
.header-right { display: flex; align-items: center; gap: 12px; }
.user-badge {
  display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px;
  border-radius: 30px; background: var(--card); border: 1px solid var(--card-border);
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #0a0c14;
}
.u-name { font-weight: 600; font-size: 13px; line-height: 1.15; }
.u-role { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.btn-logout {
  background: rgba(239,68,68,.12); color: #fca5a5; border: 1px solid rgba(239,68,68,.3);
  padding: 8px 14px; border-radius: 12px; font-weight: 600; font-size: 12.5px;
  cursor: pointer; text-decoration: none; transition: .2s; display: inline-flex; align-items: center; gap: 7px;
}
.btn-logout:hover { background: rgba(239,68,68,.22); color: #fff; }

/* ---------- sidebar ---------- */
.sidebar {
  position: fixed; top: 0; left: 0; z-index: 30;
  width: 270px; height: 100vh; padding: 22px 16px;
  background: rgba(10, 12, 20, .88);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--card-border);
  transform: translateX(-100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.sidebar.open { transform: translateX(0); }
.sidebar .sb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.sidebar .sb-title { font-weight: 800; font-size: 17px; }
.menu-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--muted); margin: 18px 12px 8px;
}
.nav-link {
  display: flex; align-items: center; gap: 13px; padding: 11px 13px;
  border-radius: 12px; color: #c3cbda; text-decoration: none; font-weight: 500;
  transition: .18s; margin-bottom: 3px; font-size: 13.5px;
}
.nav-link i { width: 20px; text-align: center; font-size: 15px; color: var(--muted); transition: .18s; }
.nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-link:hover i { color: var(--accent); }
.nav-link.active {
  background: linear-gradient(135deg, rgba(96,165,250,.16), rgba(255,215,0,.1));
  color: #fff; border: 1px solid rgba(96,165,250,.25);
}
.nav-link.active i { color: var(--accent); }
.menu-overlay {
  position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.55);
  opacity: 0; pointer-events: none; transition: .3s;
}
.menu-overlay.show { opacity: 1; pointer-events: auto; }

/* ---------- main area ---------- */
.main {
  position: relative; z-index: 10;
  padding: 26px;
  min-height: calc(100vh - 72px);
  width: 100%;
}
.page-title { font-size: 22px; font-weight: 800; margin-left: 6px; display: flex; align-items: center; gap: 12px; }
.page-title .p-icon {
  width: 40px; height: 40px; display: grid; place-items: center; font-size: 17px;
  border-radius: 13px; background: linear-gradient(135deg, rgba(96,165,250,.2), rgba(255,215,0,.14));
  border: 1px solid var(--card-border); color: var(--accent);
}
.page-sub { color: var(--muted); font-size: 12px; margin: 8px 0 20px 58px; }

@media (min-width: 1000px) {
  .main { margin-left: 270px; width: calc(100% - 270px); }
  .sidebar { transform: translateX(0); }
  .icon-btn.menu-toggle { display: none; }
  .menu-overlay { display: none; }
}

/* ---------- cards & KPIs ---------- */
.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 20px; backdrop-filter: blur(10px);
}
.card-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; font-weight: 700; margin-bottom: 16px;
}
.kpi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px;
}
.kpi {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--card-border);
  padding: 18px 18px 14px; border-radius: var(--radius); backdrop-filter: blur(10px);
}
.kpi .k-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 16px; margin-bottom: 12px;
}
.kpi .k-value { font-size: 26px; font-weight: 800; line-height: 1; }
.kpi .k-label { font-size: 11.5px; color: var(--muted); margin-top: 8px; letter-spacing: .4px; text-transform: uppercase; }
.k-red   .k-icon { background: rgba(239,68,68,.16); color: #f87171; }
.k-green .k-icon { background: rgba(34,197,94,.16); color: #4ade80; }
.k-gold  .k-icon { background: rgba(255,215,0,.16); color: var(--accent); }
.k-blue  .k-icon { background: rgba(96,165,250,.16); color: var(--blue); }
.k-purple.k-icon { background: rgba(192,132,252,.16); color: #c084fc; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table.glass {
  width: 100%; border-collapse: collapse; min-width: 640px; font-size: 13px;
}
table.glass thead th {
  text-align: left; padding: 13px 14px; font-size: 11px; letter-spacing: .8px;
  text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--card-border);
  white-space: nowrap;
}
table.glass tbody td {
  padding: 13px 14px; border-bottom: 1px solid var(--card-border); vertical-align: middle;
}
table.glass tbody tr { transition: .15s; }
table.glass tbody tr:hover { background: rgba(255,255,255,.04); }
table.glass tbody tr:last-child td { border-bottom: none; }
.glass-row { background: rgba(60,70,110,.14) !important; }

/* ---------- badges / status dots ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 30px; font-size: 11px; font-weight: 700; letter-spacing: .3px;
}
.badge-green { background: rgba(34,197,94,.14); color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.badge-red { background: rgba(239,68,68,.14); color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }
.badge-gold { background: rgba(255,215,0,.14); color: var(--accent); border: 1px solid rgba(255,215,0,.3); }
.badge-blue { background: rgba(96,165,250,.14); color: #93c5fd; border: 1px solid rgba(96,165,250,.3); }
.badge-muted { background: rgba(148,163,184,.14); color: #cbd5e1; border: 1px solid rgba(148,163,184,.3); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-green { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,.8); }
.dot-red { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,.8); }
.dot-gold { background: var(--accent); box-shadow: 0 0 8px rgba(255,215,0,.8); }
.dot-grey { background: #64748b; }

.role-badge {
  padding: 3px 10px; border-radius: 30px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase;
}
.role-owner { background: rgba(255,215,0,.15); color: var(--accent); border: 1px solid rgba(255,215,0,.35); }
.role-admin { background: rgba(96,165,250,.15); color: #93c5fd; border: 1px solid rgba(96,165,250,.35); }
.role-user { background: rgba(34,197,94,.15); color: #4ade80; border: 1px solid rgba(34,197,94,.35); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 13px; cursor: pointer; transition: .2s;
  text-decoration: none; color: var(--txt);
}
.btn-primary { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; }
.btn-primary:hover { filter: brightness(1.12); }
.btn-ios {
  background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; font-weight: 700;
  box-shadow: 0 6px 18px rgba(249,115,22,.35);
}
.btn-ios:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-green { background: rgba(34,197,94,.15); border-color: rgba(34,197,94,.4); color: #4ade80; }
.btn-green:hover { background: rgba(34,197,94,.26); color: #fff; }
.btn-red { background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.4); color: #fca5a5; }
.btn-red:hover { background: rgba(239,68,68,.26); color: #fff; }
.btn-blue { background: rgba(96,165,250,.15); border-color: rgba(96,165,250,.4); color: #93c5fd; }
.btn-blue:hover { background: rgba(96,165,250,.26); color: #fff; }
.btn-gold { background: rgba(255,215,0,.14); border-color: rgba(255,215,0,.4); color: var(--accent); }
.btn-gold:hover { background: rgba(255,215,0,.26); color: #0a0c14; }
.btn-glass { background: var(--card); border-color: var(--card-border); color: var(--txt); }
.btn-glass:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 6px 11px; font-size: 12px; }

/* ---------- forms ---------- */
label { font-size: 12px; color: var(--muted); font-weight: 600; display: block; margin-bottom: 6px; letter-spacing: .3px; }
.input, select, textarea {
  width: 100%; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; color: var(--txt);
  background: rgba(255,255,255,.06); border: 1px solid var(--card-border); outline: none; transition: .2s;
  font-family: inherit;
}
.input:focus, select:focus, textarea:focus {
  border-color: var(--blue); background: rgba(96,165,250,.07); box-shadow: 0 0 0 3px rgba(96,165,250,.15);
}
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: #141a2c; color: var(--txt); }
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 14px; }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } .form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }
.help { font-size: 11px; color: var(--muted); margin-top: 5px; }

/* custom checkbox (status toggle style) */
.checkbox-row { display: flex; align-items: center; gap: 10px; }
input[type=checkbox].ios-check { width: 40px; height: 22px; appearance: none; position: relative; border-radius: 30px; background: #334155; cursor: pointer; transition: .2s; }
input[type=checkbox].ios-check::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; }
input[type=checkbox].ios-check:checked { background: var(--green); }
input[type=checkbox].ios-check:checked::after { left: 20px; }

/* ---------- messages / toasts ---------- */
.alert {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 100;
  padding: 14px 22px; border-radius: 14px; font-weight: 600; font-size: 13.5px;
  display: flex; align-items: center; gap: 11px; max-width: 92vw;
  box-shadow: 0 14px 40px rgba(0,0,0,.5); border: 1px solid var(--card-border);
  animation: dropIn .35s cubic-bezier(.2,.9,.3,1.4);
}
@keyframes dropIn { from { transform: translateX(-50%) translateY(-20px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }
.alert-green { background: rgba(22,101,52,.92); color: #bbf7d0; }
.alert-red { background: rgba(127,29,29,.92); color: #fecaca; }
.alert-gold { background: rgba(120,90,0,.92); color: #fde68a; }
.alert-blue { background: rgba(30,58,138,.92); color: #bfdbfe; }

/* inline error/success box for auth pages */
.msg-box { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border-radius: 12px; font-weight: 600; font-size: 12.5px; margin-bottom: 14px; }
.msg-box.error { background: rgba(239,68,68,.13); border: 1px solid rgba(239,68,68,.35); color: #fca5a5; }
.msg-box.success { background: rgba(34,197,94,.13); border: 1px solid rgba(34,197,94,.35); color: #4ade80; }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); padding: 18px; }
.modal.show { display: flex; }
.modal-dialog { background: #12182a; border: 1px solid var(--card-border); border-radius: 18px; width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto; box-shadow: 0 24px 70px rgba(0,0,0,.6); animation: popIn .25s cubic-bezier(.2,.9,.3,1.3); }
@keyframes popIn { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--card-border); }
.modal-head h4 { font-size: 16px; font-weight: 700; }
.modal-body { padding: 22px; }
.modal-close { cursor: pointer; color: var(--muted); font-size: 18px; background: none; border: none; }
.device-list { display: grid; gap: 8px; }
.device-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--card-border); padding: 10px 13px; border-radius: 11px; font-size: 12.5px; }
.device-item .d-dev { font-family: monospace; font-size: 11px; color: #b6c2d8; word-break: break-all; }

/* ---------- license cards (dashboard) ---------- */
.license-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.license-card {
  background: rgba(255,255,255,.045); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 18px; transition: border-color .2s, transform .2s, box-shadow .2s; display: flex; flex-direction: column; gap: 12px;
}
.license-card:hover { transform: translateY(-3px); border-color: rgba(96,165,250,.4); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.lic-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lic-key { font-family: 'SF Mono', Menlo, monospace; font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(96,165,250,.1); border: 1px solid rgba(96,165,250,.22); padding: 5px 10px; border-radius: 9px; letter-spacing: .5px; word-break: break-all; user-select: all; }
.lic-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; font-size: 12px; color: var(--muted); }
.lic-meta b { color: var(--txt); font-weight: 600; }
.lic-footer { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

/* rgb animated title */
.rgb-title {
  background: linear-gradient(90deg,#ff4d4d,#ffb84d,#4dff4d,#4dd2ff,#8f5eff,#ff4d9d);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text;
  color: transparent; animation: rgb 5s linear infinite;
}
@keyframes rgb { to { background-position: 300% 0; } }

/* ==========================================================
   AUTH PAGES — clean professional split-panel (perf-friendly)
   ========================================================== */
.auth-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; overflow: hidden; }

/* two soft, slow ambient blobs - transform-only animation, no blend-mode,
   no backdrop-filter stacking on top of them, so they're cheap even on
   low-end/mobile devices. */
.liquid-blob {
  position: fixed; z-index: 0; border-radius: 50%; filter: blur(70px); pointer-events: none;
  opacity: .28; will-change: transform;
}
.liquid-blob.b1 { width: 420px; height: 420px; top: -140px; left: -120px; background: radial-gradient(circle, #e11d48, transparent 70%); animation: blobFloat1 26s ease-in-out infinite; }
.liquid-blob.b2 { width: 420px; height: 420px; bottom: -160px; right: -120px; background: radial-gradient(circle, #2563eb, transparent 70%); animation: blobFloat2 30s ease-in-out infinite; }
@keyframes blobFloat1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,30px); } }
@keyframes blobFloat2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-35px,-25px); } }

.auth-shell {
  position: relative; z-index: 10; width: 100%; max-width: 920px;
  display: grid; grid-template-columns: 1fr; border-radius: 24px; overflow: hidden;
  background: rgba(16, 19, 32, .78);
  border: 1px solid rgba(255,255,255,.12);
  border-top-color: rgba(255,255,255,.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 90px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
}
@media (min-width: 900px) { .auth-shell { grid-template-columns: 0.95fr 1.05fr; min-height: 560px; } }

/* -------- left / brand panel -------- */
.auth-brand {
  position: relative; padding: 40px 34px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 6px;
  background:
    radial-gradient(circle at 30% 15%, rgba(96,165,250,.12), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(255,215,0,.08), transparent 50%),
    rgba(255,255,255,.02);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (min-width: 900px) { .auth-brand { border-bottom: none; border-right: 1px solid rgba(255,255,255,.1); } }
.auth-brand .brand-kicker {
  font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
  font-weight: 700; margin-bottom: 4px;
}
.auth-brand h2 { font-size: 19px; font-weight: 800; margin: 4px 0 6px; }
.auth-brand p.brand-sub { color: var(--muted); font-size: 12.5px; max-width: 260px; line-height: 1.6; }
.brand-stats { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }
.brand-stat {
  display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: #c3cbda;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 7px 12px; border-radius: 30px;
}
.brand-stat i { color: var(--accent); font-size: 11px; }

/* simple flat brand icon (replaces heart / spinning-glass orb) */
.brand-orb {
  width: 72px; height: 72px; border-radius: 22px; margin-bottom: 14px;
  display: grid; place-items: center; font-size: 27px; color: #fff;
  background: linear-gradient(135deg, rgba(96,165,250,.28), rgba(255,215,0,.16));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 32px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.2);
}

/* -------- right / form panel -------- */
.auth-panel { padding: 38px 34px 30px; display: flex; flex-direction: column; justify-content: center; }
.auth-card { width: 100%; max-width: 380px; margin: 0 auto; }
.auth-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 24px; }
.auth-logo .al-icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 19px; background: linear-gradient(135deg, rgba(96,165,250,.25), rgba(255,215,0,.2)); border: 1px solid rgba(255,255,255,.14); margin-bottom: 10px; }
.auth-logo h1 { font-size: 22px; font-weight: 800; }
.auth-logo p { color: var(--muted); font-size: 12.5px; }
.auth-field { margin-bottom: 15px; }
.auth-sub {
  width: 100%; margin-top: 8px; padding: 13px; font-size: 13.5px; letter-spacing: .3px;
}
.auth-card .footer-note { margin-top: 18px; text-align: center; font-size: 12px; color: var(--muted); }
.auth-card .footer-note a { color: var(--blue); text-decoration: none; font-weight: 600; }
.auth-card .footer-note a:hover { text-decoration: underline; }
.remember-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 16px; font-size: 12.5px; color: var(--muted); }
.remember-row a { color: var(--blue); text-decoration: none; }
.remember-row a:hover { text-decoration: underline; }

.auth-panel .input {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
}
.auth-panel .input:focus {
  border-color: rgba(96,165,250,.6); box-shadow: 0 0 0 3px rgba(96,165,250,.16);
}

/* ---------- owner credit line ---------- */
.auth-credit { margin-top: 14px; text-align: center; font-size: 10.5px; letter-spacing: 1.2px; color: var(--muted); }
.auth-credit b { color: var(--accent); }
.auth-credit a { color: var(--blue); text-decoration: none; }

/* ---------- API connect info box (generate_ui / welcome) ---------- */
.api-box {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; padding: 16px 18px;
}
.api-box .api-url {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: 'SF Mono', Menlo, monospace; font-size: 13px; color: #fff;
  background: rgba(0,0,0,.3); border: 1px solid rgba(96,165,250,.25);
  padding: 10px 14px; border-radius: 10px; margin-top: 10px; word-break: break-all;
}


/* ---------- password show/hide ---------- */
.pw-wrap { position: relative; }
.pw-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); font-size: 15px;
  cursor: pointer; padding: 6px; border-radius: 8px; transition: .2s;
}
.pw-eye:hover { color: var(--accent); }

/* sidebar credit */
.sb-credit {
  margin-top: 18px; padding: 12px; text-align: center; border-radius: 12px;
  background: rgba(255,215,0,.08); border: 1px dashed rgba(255,215,0,.28);
  font-size: 10.5px; letter-spacing: .7px; color: var(--muted); line-height: 1.7;
}
.sb-credit span { color: var(--accent); font-weight: 800; }
.sb-credit a { color: var(--blue); text-decoration: none; font-weight: 700; }

/* ---------- misc utilities ---------- */
.mono { font-family: 'SF Mono', Menlo, monospace; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 14px; } .mt-3 { margin-top: 22px; }
.mb-2 { margin-bottom: 14px; }
.text-center { text-align: center; }
.flex { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.w-100 { width: 100%; }
.text-red { color: #f87171; } .text-green { color: #4ade80; } .text-gold { color: var(--accent); } .text-blue { color: #93c5fd; }
.empty-state { text-align: center; padding: 46px 16px; color: var(--muted); }
.empty-state i { font-size: 40px; opacity: .5; display: block; margin-bottom: 12px; }
.divider { height: 1px; background: var(--card-border); margin: 18px 0; }
pre.debug { background: rgba(0,0,0,.4); border: 1px solid var(--card-border); padding: 12px; border-radius: 10px; font-size: 12px; overflow: auto; color: #a5f3fc; }

/* glow status card (online_server live status) */
.status-pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 18px; border-radius: 40px; font-weight: 800; letter-spacing: .5px; }
.status-pill.on { background: rgba(34,197,94,.13); color: #4ade80; border: 1px solid rgba(34,197,94,.4); box-shadow: 0 0 26px rgba(34,197,94,.25); }
.status-pill.off { background: rgba(239,68,68,.13); color: #fca5a5; border: 1px solid rgba(239,68,68,.4); box-shadow: 0 0 26px rgba(239,68,68,.25); }

/* responsive tweaks */
@media (max-width: 640px) {
  .main { padding: 16px; }
  .license-grid { grid-template-columns: 1fr; }
  .lic-meta { grid-template-columns: 1fr; }
  .u-name, .u-role { display: none; }
  .user-badge { padding: 4px; }
}