@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700;800&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-headline: 'Space Grotesk', sans-serif;

  /* Cyberpunk Palette */
  --bg: #07090e;
  --surface: #0f1626;
  --surface-hover: #162238;
  --border: rgba(0, 229, 255, 0.22);
  --border-focus: #00e5ff;
  --text: #f0f4fc;
  --text-muted: #849396;
  --primary: #00e5ff;
  --primary-dim: rgba(0, 229, 255, 0.15);
  --success: #00ff9f;
  --danger: #ff007a;
  --warning: #ffdd00;
  --error: #ff007a;

  --neon-cyan: #00e5ff;
  --neon-green: #00ff9f;
  --neon-pink: #ff007a;
  --neon-purple: #bf00ff;
  --neon-amber: #ffb800;

  /* Google Stitch & Material Tokens compatibility */
  --surface-container-lowest: #0b101c;
  --surface-container-high: #131c30;
  --on-surface: #f0f4fc;
  --on-surface-variant: #9aa8ba;
  --outline: #6b7c96;
  --outline-variant: rgba(0, 229, 255, 0.18);
  --primary-container: #00e5ff;
  --accent-magenta: #ff007a;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  --radius-card: 20px;
  --radius-btn: 14px;
  --radius-input: 14px;
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0, 229, 255, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.08) 0%, transparent 60%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 229, 255, 0.012) 2px, rgba(0, 229, 255, 0.012) 4px);
}

/* Subtle scanlines */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(0, 0, 0, 0.12) 1px, rgba(0, 0, 0, 0.12) 2px);
  z-index: 99999;
  opacity: 0.5;
}

/* ==========================================================================
   HEADER (NEZPANEL STYLE)
   ========================================================================== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(15, 22, 38, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.greeting {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.username-label {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
}

.status-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* ==========================================================================
   SCROLL AREA & PANES (NEZPANEL STYLE)
   ========================================================================== */
.scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px 110px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.pane {
  display: none;
  animation: fadeSlide 0.2s ease-out;
}
.pane.active {
  display: block;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: "//";
  color: var(--primary);
  font-family: var(--font-mono);
}

/* Cards & Inputs */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.input-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.input-body input, .input-body select {
  width: 100%;
  background: rgba(7, 9, 14, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 14px 18px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-body input:focus, .input-body select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.3);
}

/* Preset Chips */
.presets-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.preset-chip {
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.preset-chip:hover {
  background: rgba(0, 229, 255, 0.18);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

/* Format Toggles */
.format-toggles {
  display: flex;
  gap: 8px;
  background: rgba(7, 9, 14, 0.8);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px;
  margin-bottom: 20px;
}

.fmt-radio {
  flex: 1;
  position: relative;
  cursor: pointer;
  text-align: center;
}
.fmt-radio input {
  position: absolute;
  opacity: 0;
}
.fmt-label {
  display: block;
  padding: 10px 0;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  transition: 0.2s;
  font-family: var(--font-mono);
}
.fmt-radio input:checked ~ .fmt-label {
  background: var(--surface-hover);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

/* Toolbar Buttons */
.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.btn-primary {
  flex: 1;
  padding: 16px;
  border-radius: var(--radius-btn);
  background: var(--primary);
  color: #07090e;
  border: none;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.btn-primary:hover:not(:disabled) {
  background: #33ebff;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.6);
  transform: translateY(-1px);
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.icon-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.icon-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
}

/* ==========================================================================
   NOMOR AKTIF LIST (NEZPANEL SLEEK CARDS)
   ========================================================================== */
.otp-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.otp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  transition: all 0.2s;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.otp-card.done {
  border-color: var(--success);
  background: rgba(0, 255, 159, 0.05);
  box-shadow: 0 0 16px rgba(0, 255, 159, 0.15);
}

/* Number copied/clicked feedback: red glow for 20s, then fades back */
.otp-card.num-copied {
  border-color: var(--danger);
  background: rgba(255, 0, 85, 0.08);
  box-shadow: 0 0 18px rgba(255, 0, 85, 0.25);
  transition: box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease, color 0.4s ease;
}
.otp-card.num-copied .num-val {
  color: var(--danger);
}
.otp-card.num-copied .copy-hint {
  color: var(--danger);
}

/* OTP code copied/clicked feedback: yellow glow for 20s, then fades back */
.otp-card.otp-copied {
  border-color: var(--warning);
  background: rgba(255, 221, 0, 0.08);
  box-shadow: 0 0 18px rgba(255, 221, 0, 0.28);
  transition: box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease, color 0.4s ease;
}
.otp-card.otp-copied .otp-val-display {
  color: var(--warning) !important;
  text-shadow: 0 0 16px rgba(255, 221, 0, 0.65);
}
.otp-card.otp-copied .otp-hint {
  color: var(--warning) !important;
}

/* Both number and OTP clicked on the same card */
.otp-card.num-copied.otp-copied {
  border-color: var(--warning);
  box-shadow: 0 0 18px rgba(255, 221, 0, 0.28), 0 0 18px rgba(255, 0, 85, 0.25);
}

.otp-hint {
  color: var(--success);
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.close-btn:hover { color: var(--danger); }

.num-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-hint {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-timer {
  color: var(--warning);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  background: rgba(255, 221, 0, 0.12);
  border: 1px solid rgba(255, 221, 0, 0.3);
  padding: 6px 12px;
  border-radius: 8px;
}

.otp-val-display {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--success);
  letter-spacing: 3px;
  text-shadow: 0 0 12px rgba(0, 255, 159, 0.5);
}

/* ==========================================================================
   GLOBAL TERMINAL / CONSOLE WRAP (NEZPANEL STYLE)
   ========================================================================== */
.console-wrap {
  background: rgba(7, 9, 14, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  height: 65vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.console-head {
  padding: 14px 20px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 800;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  color: var(--primary);
}

.console-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.log-item {
  background: var(--surface);
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.log-item:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
}

/* ==========================================================================
   2FA GENERATOR & TOOLS (NEZPANEL STYLE)
   ========================================================================== */
.tools-tabs {
  display: flex;
  gap: 8px;
  background: rgba(7, 9, 14, 0.8);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px;
  margin-bottom: 20px;
}

.tool-tab {
  flex: 1;
  padding: 10px 0;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  transition: 0.2s;
  font-family: var(--font-mono);
}
.tool-tab.active {
  background: var(--surface-hover);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.fa-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  text-align: center;
  margin-top: 16px;
  cursor: pointer;
}
.fa-code {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 6px;
  margin: 8px 0;
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.5);
}

/* ==========================================================================
   FLOATING BOTTOM NAVIGATION (NEZPANEL SIGNATURE)
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 480px;
  background: rgba(15, 22, 38, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 32px;
  display: flex;
  padding: 6px;
  z-index: 100;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 229, 255, 0.15);
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 0;
  border-radius: 24px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.nav-btn svg {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  transition: 0.2s;
}

.nav-btn:hover {
  color: var(--primary);
}
.nav-btn:hover svg {
  opacity: 1;
  stroke: var(--primary);
}

.nav-btn.active {
  background: var(--primary-dim);
  color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}
.nav-btn.active svg {
  opacity: 1;
  stroke: var(--primary);
}

/* Toast */
#toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #07090e;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 12px;
  font-family: var(--font-mono);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
}

/* ==========================================================================
   STITCH & ADMIN CONSOLE STYLES (CYBERPUNK NEZPANEL COMPATIBILITY)
   ========================================================================== */
.stitch-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: rgba(15, 22, 38, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-badge-stitch {
  display: flex;
  align-items: center;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--primary);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}
.brand-badge-stitch .brand-rj {
  background: var(--primary);
  color: #07090e;
  padding: 4px 8px;
}
.brand-badge-stitch .brand-track {
  color: var(--primary);
  padding: 4px 8px;
}

.brand-telemetry-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.quick-cluster-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.quick-cluster-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: var(--transition);
}
.quick-cluster-link:hover {
  color: var(--primary);
  background: rgba(0, 229, 255, 0.08);
}
.quick-cluster-link.active {
  color: var(--primary);
  background: rgba(0, 229, 255, 0.15);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.stitch-main {
  flex: 1;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.balance-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.stitch-metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}
.stitch-metric-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.card-corner-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  opacity: 0.8;
}
.metric-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.metric-number-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}
.metric-val-main {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.metric-currency {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}
.metric-footer-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

/* Tables & Toolbars */
.table-panel-stitch {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.table-toolbar-stitch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(7, 9, 14, 0.6);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.stitch-data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 12px;
}
.stitch-data-table th {
  background: rgba(11, 16, 28, 0.95);
  padding: 12px 18px;
  text-align: left;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.stitch-data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text);
  vertical-align: middle;
}
.stitch-data-table tr:hover td {
  background: rgba(0, 229, 255, 0.03);
}

.stitch-input, .stitch-select {
  background: rgba(7, 9, 14, 0.85);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  outline: none;
  transition: var(--transition);
}
.stitch-input:focus, .stitch-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
}

.btn-stitch-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #07090e;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}
.btn-stitch-primary:hover {
  background: #26edff;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.5);
  transform: translateY(-1px);
}
.btn-stitch-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Badges */
.badge-e164 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
}
.badge-service {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
}
.badge-otp-received {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 255, 159, 0.15);
  border: 1px solid var(--success);
  color: var(--success);
  font-weight: 800;
}
.badge-awaiting {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid var(--warning);
  color: var(--warning);
  font-size: 10px;
  font-weight: 700;
}
.copy-btn-inline {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}
.copy-btn-inline:hover {
  color: var(--primary);
}
.msisdn-e164 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--primary);
}

/* Right Rail Feed Item */
.carrier-meter-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
}
.rail-feed-item {
  background: rgba(11, 16, 28, 0.85);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  transition: var(--transition);
}
.rail-feed-item:hover {
  border-color: var(--primary);
}
.feed-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-family: var(--font-mono);
}
.feed-service-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 700;
}
.feed-message-quote {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin: 6px 0;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-left: 2px solid var(--primary);
  word-break: break-all;
}
.feed-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-family: var(--font-mono);
  margin-top: 6px;
}

/* Batch chip helper */
.batch-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition);
}
.batch-chip:hover {
  border-color: var(--primary);
  color: var(--text);
}
.batch-chip.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

/* ==========================================================================
   STEXSMS 3-MODE RANGE SELECTOR (CYBERPUNK NEZPANEL DESIGN)
   ========================================================================== */
.range-mode-nav {
  display: flex;
  gap: 6px;
  background: rgba(7, 9, 14, 0.85);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 5px;
  margin-bottom: 18px;
}

.range-mode-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}
.range-mode-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.range-mode-tab.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: rgba(0, 229, 255, 0.4);
  color: var(--primary);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.25);
}

.mode-panel {
  display: none;
  animation: fadeSlide 0.2s ease-out;
}
.mode-panel.active {
  display: block;
}

/* Service Grid in Mode A */
.service-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.service-chip-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(7, 9, 14, 0.7);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}
.service-chip-btn:hover {
  border-color: var(--primary);
  background: rgba(0, 229, 255, 0.08);
}
.service-chip-btn.active {
  border-color: var(--primary);
  background: rgba(0, 229, 255, 0.18);
  color: var(--primary);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

/* Active Ranges Grid */
.active-ranges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.range-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  background: rgba(0, 229, 255, 0.06);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.range-badge-btn:hover {
  background: rgba(0, 229, 255, 0.16);
  border-color: var(--primary);
}
.range-badge-btn.active {
  background: var(--primary);
  color: #07090e;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

/* Target Selection HUD Banner */
.selection-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  padding: 10px 16px;
  margin-top: 16px;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  flex-wrap: wrap;
  gap: 8px;
}

/* Quantity Batch Chips */
.qty-chips-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.qty-chip {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(7, 9, 14, 0.7);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.qty-chip:hover {
  border-color: var(--primary);
  color: var(--text);
}
.qty-chip.active {
  background: rgba(0, 229, 255, 0.2);
  border-color: var(--primary);
  color: var(--primary);
}


