:root {
  --bg-main: #0b1120;
  --bg-sidebar: #070d19;
  --bg-card: #111a2e;
  --bg-card-inner: #0d1526;
  --border-subtle: #1e293b;
  --border-neon: rgba(99, 102, 241, 0.5);
  --neon: #38bdf8;
  --neon-dim: rgba(56, 189, 248, 0.14);
  --neon-glow: 0 0 20px rgba(99, 102, 241, 0.28);
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.14);
  --blue: #818cf8;
  --purple: #c084fc;
  --danger: #f43f5e;
  --success: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 18% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 82% 10%, rgba(14, 165, 233, 0.12) 0%, transparent 50%);
}

button, input, select, textarea {
  font-family: inherit;
}

.mono {
  font-family: var(--font-mono);
}

.hidden {
  display: none !important;
}

/* =====================================================================
   1. LANDING PAGE
   ===================================================================== */
#screen-landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-nav {
  height: 62px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(7, 13, 25, 0.88);
  backdrop-filter: blur(10px);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  color: #fff;
  cursor: pointer;
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4f46e5, #0284c7);
  border: 1px solid var(--neon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: var(--neon-glow);
}

.lang-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-pill {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.15s;
}

.lang-pill.active, .lang-pill:hover {
  border-color: var(--neon);
  color: var(--neon);
  background: var(--neon-dim);
}

.landing-hero {
  max-width: 960px;
  margin: 56px auto 40px;
  padding: 0 24px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--neon);
  border: 1px solid var(--border-neon);
  background: rgba(99, 102, 241, 0.12);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  letter-spacing: 0.6px;
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.hero-title .neon-text {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto 28px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
}

.btn-neon {
  background: linear-gradient(135deg, #4f46e5, #0284c7);
  border: 1px solid var(--neon);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.18s;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
}

.btn-neon:hover {
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.45);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.18s;
}

.btn-outline:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.why-card {
  max-width: 660px;
  margin: 0 auto 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 24px 28px;
}

.why-card h3 {
  color: var(--neon);
  font-size: 14px;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.why-card .highlight {
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.modules-divider {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: 10px;
  padding: 20px;
  position: relative;
}

.module-card .hex {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.module-card .mod-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--neon-dim);
  border: 1px solid var(--border-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon);
  margin-bottom: 16px;
  font-size: 16px;
}

.module-card h4 {
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 8px;
  color: #fff;
}

.module-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =====================================================================
   2. LOGIN / REGISTER SCREEN
   ===================================================================== */
#screen-auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-header .title {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.auth-header .title span {
  color: var(--neon);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: 10px;
  padding: 28px;
  box-shadow: var(--neon-glow);
}

.auth-card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.input-term {
  width: 100%;
  background: #070d19;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: 0.15s;
}

.input-term:focus {
  border-color: var(--neon);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.22);
}

.auth-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--neon);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

#screen-loader {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  gap: 8px;
}

/* =====================================================================
   3. MAIN APP SHELL + SIDEBAR
   ===================================================================== */
#screen-app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 225px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
}

.sidebar-brand {
  height: 62px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
}

.nav-list {
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: 0.15s;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.nav-item.active {
  background: rgba(56, 189, 248, 0.12);
  color: var(--neon);
  border-left-color: var(--neon);
  font-weight: 600;
}

.nav-item .nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  opacity: 0;
}

.nav-item.active .dot {
  opacity: 1;
  box-shadow: 0 0 8px var(--neon);
}

.sidebar-bottom {
  padding: 12px;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-user {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--neon-dim);
  border: 1px solid var(--border-neon);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-area {
  margin-left: 225px;
  flex: 1;
  padding: 28px 36px 80px;
  max-width: 1420px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 26px;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.breadcrumb span {
  color: var(--neon);
}

.page-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.wallet-top-box {
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: 8px;
  padding: 10px 16px;
  text-align: right;
  min-width: 220px;
  box-shadow: var(--neon-glow);
}

.wallet-top-box .bal {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--neon);
}

.wallet-top-box .sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* =====================================================================
   CARDS & CONTAINERS
   ===================================================================== */
.p1-box {
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 20px;
}

.kpi-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.kpi-card {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px 18px;
}

.kpi-card .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.kpi-card .val {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.kpi-card .sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* =====================================================================
   SIP ACCOUNTS & CRYPTO TOP-UP
   ===================================================================== */
.sip-row {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  transition: 0.15s;
}

.sip-row.online {
  border-color: var(--border-neon);
  background: rgba(56, 189, 248, 0.05);
}

.sip-title {
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.sip-creds {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 14px;
}

.sip-creds strong {
  color: var(--text-main);
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
}

.icon-btn:hover {
  color: var(--neon);
}

.badge-status {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.badge-registrato {
  background: rgba(16, 185, 129, 0.14);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-offline {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.badge-attesa {
  background: var(--amber-dim);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.ricarica-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}

.crypto-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card-inner);
  cursor: pointer;
  margin-bottom: 10px;
  transition: 0.15s;
}

.crypto-option.selected {
  border-color: var(--neon);
  background: var(--neon-dim);
}

.crypto-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--amber);
  color: #000;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.invoice-box {
  text-align: center;
  padding: 10px 0;
}

.invoice-crypto-amount {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--neon);
  margin-bottom: 4px;
}

.invoice-qr-wrap {
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  display: inline-block;
  margin: 16px 0;
}

.invoice-addr-box {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  margin: 10px auto;
  max-width: 440px;
}

/* =====================================================================
   CAMPAIGNS & LIVE MONITOR
   ===================================================================== */
.camp-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 10px 0 16px;
}

.camp-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card-inner);
  color: var(--text-muted);
}

.camp-pill.green {
  color: var(--neon);
  border-color: var(--border-neon);
  background: var(--neon-dim);
}

.camp-pill.amber {
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.4);
  background: var(--amber-dim);
}

.camp-stats-8 {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.stat-mini {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
}

.stat-mini .lbl {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-mini .num {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
}

.p1-green-box {
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid var(--border-neon);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.p1-yellow-box {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.p1-contact-row {
  background: rgba(11, 17, 32, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.p1-contact-row.ringing-op {
  border-color: var(--amber);
  background: rgba(245, 158, 11, 0.1);
}

.p1-contact-row.connected-op {
  border-color: var(--neon);
  background: rgba(56, 189, 248, 0.12);
}

.monitor-kpi-7 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.progress-bar-wrap {
  height: 10px;
  background: #111827;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  margin: 10px 0;
}

.flusso-row {
  display: grid;
  grid-template-columns: 120px 1fr 190px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* =====================================================================
   MODALS
   ===================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.82);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--neon-glow);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 12.5px;
}

.switch-pill {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #1e293b;
  position: relative;
  transition: 0.2s;
}

.switch-pill::after {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #94a3b8;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: 0.2s;
}

.switch-pill.on {
  background: rgba(56, 189, 248, 0.25);
  border: 1px solid var(--neon);
}

.switch-pill.on::after {
  left: 17px;
  background: var(--neon);
}

/* =====================================================================
   ADMIN PANEL (/teammoney) DEDICATED CLEAN GRID & COMPONENTS
   ===================================================================== */
:root {
  --green: #10b981;
  --red: #f43f5e;
  --border: #1e293b;
  --bg-panel: #0d1526;
}

#screen-admin-auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#screen-admin-app {
  display: flex;
  min-height: 100vh;
}

.kpi-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1150px) {
  .kpi-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

@media (max-width: 1150px) {
  .admin-hero-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-hero-card {
  background: linear-gradient(180deg, rgba(17, 26, 46, 0.95) 0%, rgba(13, 21, 38, 0.95) 100%);
  border: 1px solid var(--border-neon);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.admin-hero-card .lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.admin-hero-card .big-val {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 6px;
}

.admin-hero-card .meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.fin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1150px) {
  .fin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fin-card {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 16px 18px;
}

.fin-card .period {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--neon);
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.fin-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.fin-row:last-child {
  border-bottom: none;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.chip-btn {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--neon);
  padding: 6px 12px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.chip-btn:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: var(--neon);
}

.btn-danger-outline {
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 6px 11px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.clean-table th {
  text-align: left;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.clean-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--neon);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

/* =====================================================================
   ZOIPER LIVE QUEUE, PROVISIONING QR & SETUP GUIDE
   ===================================================================== */
.zoiper-live-bar {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.14), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.55);
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.14);
}

.zoiper-live-bar.ringing {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.16), rgba(56, 189, 248, 0.1));
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.18);
}

.zoiper-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.zoiper-step-card {
  background: rgba(7, 13, 25, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11.5px;
  line-height: 1.45;
}

.zoiper-step-card strong {
  color: var(--neon);
  font-family: var(--font-mono);
  display: block;
  margin-bottom: 3px;
}

.sip-action-group {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.zoiper-qr-wrap {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  display: inline-block;
  margin: 8px auto 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.zoiper-ext-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.zoiper-ext-pill {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.zoiper-ext-pill.registered {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.08);
}

@media (max-width: 820px) {
  .sip-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .sip-creds {
    flex-wrap: wrap;
    gap: 8px;
  }
}



