/* Modern High-End Styling for Click-to-Call CRM */
:root {
  --bg-dark: #0b0f19;
  --bg-card: rgba(20, 27, 44, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #3b82f6;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-emerald: #059669;
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --glow-green: 0 0 25px rgba(16, 185, 129, 0.35);
  --glow-blue: 0 0 25px rgba(59, 130, 246, 0.35);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.app-container {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--glow-blue);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.header-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-green);
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

/* Grid Layout */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 20px;
}

@media (max-width: 860px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 2px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.disconnected {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.status-badge.connected {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  box-shadow: var(--glow-green);
}

.status-badge.idle {
  background: rgba(100, 116, 139, 0.15);
  border: 1px solid rgba(100, 116, 139, 0.3);
  color: var(--text-secondary);
}

.status-badge.active-call {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--accent-green);
  color: #fff;
  animation: pulse-border 1.5s infinite;
}

.pulse-dot, .state-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* QR Code Section */
.pairing-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.qr-wrapper {
  position: relative;
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 212px;
  min-height: 212px;
}

.qr-canvas img, .qr-canvas canvas {
  display: block;
}

.qr-loader {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #333;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.pairing-instructions h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.pairing-instructions ol {
  text-align: left;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 20px;
}

.session-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.78rem;
}

.session-info code {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-cyan);
}

.btn-text {
  background: none;
  border: none;
  color: var(--accent-blue);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0 4px;
}

.btn-text:hover {
  color: #60a5fa;
}

/* Paired Device Info */
.paired-info-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.device-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
}

.device-icon {
  width: 54px;
  height: 54px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.device-meta {
  font-size: 0.82rem;
  color: var(--accent-green);
}

.device-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spec-item {
  background: rgba(0, 0, 0, 0.25);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-value {
  font-size: 0.88rem;
  font-weight: 600;
}

.spec-value.highlight {
  color: var(--accent-cyan);
}

.text-green {
  color: var(--accent-green);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.btn-full {
  width: 100%;
}

/* Call Active Banner */
.call-active-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.calling-animation {
  position: relative;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-avatar {
  width: 46px;
  height: 46px;
  background: var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 2;
  box-shadow: 0 0 15px var(--accent-green);
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  animation: pulse 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.pulse-ring.delay-1 { animation-delay: 0.6s; }
.pulse-ring.delay-2 { animation-delay: 1.2s; }

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.call-live-info {
  display: flex;
  flex-direction: column;
}

.call-live-status {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.call-live-target {
  font-size: 1.15rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.call-timer {
  font-size: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
}

/* Dialer Form */
.dialer-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lead-quick-select {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lead-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.lead-chip:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent-blue);
  color: #fff;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-input-wrapper:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.country-prefix {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding-right: 10px;
  border-right: 1px solid var(--border-color);
  user-select: none;
}

.phone-input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  padding: 10px 12px;
}

.phone-input-wrapper input::placeholder {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 4px;
}

.clear-btn:hover {
  color: #fff;
}

/* Keypad */
.dial-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 320px;
  margin: 0 auto;
}

.key-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.15s;
}

.key-btn span {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
}

.key-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.key-btn:active {
  transform: scale(0.96);
}

/* Primary Call Button */
.call-action-box {
  margin-top: 8px;
}

.btn-call {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-call-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-call:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #34d399, #10b981);
}

.btn-call:active:not(:disabled) {
  transform: translateY(0);
}

.btn-call:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

/* Activity Log */
.log-card {
  padding: 18px 24px;
}

.log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.activity-log-stream {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  max-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-row {
  display: flex;
  gap: 10px;
  color: var(--text-secondary);
}

.log-row.info .log-time { color: var(--accent-cyan); }
.log-row.success .log-time { color: var(--accent-green); }
.log-row.warning .log-time { color: var(--accent-amber); }
.log-row.call .log-time { color: #60a5fa; }
.log-row.call .log-msg { color: #fff; font-weight: 600; }

/* Pairing Code Card */
.code-pairing-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.code-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
}

.code-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 6px;
  color: #38bdf8;
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
  user-select: all;
  margin: 2px 0;
}

.server-ip-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.server-ip-info strong {
  font-family: 'JetBrains Mono', monospace;
  color: #f8fafc;
}

.or-divider {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: center;
  margin: 4px 0;
}

.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.or-divider span {
  padding: 0 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Audio Mode Pill */
.audio-mode-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #38bdf8;
}

/* SIM Selector */
.sim-selector-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
}

.sim-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sim-pill-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}

.sim-pill-btn:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(59, 130, 246, 0.4);
}

.sim-pill-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(6, 182, 212, 0.2));
  border-color: #38bdf8;
  color: #f8fafc;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.sim-slot-tag {
  background: #1e293b;
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.sim-pill-btn.active .sim-slot-tag {
  background: #0284c7;
  color: #ffffff;
}

.sim-carrier-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.call-meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.badge-sim {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.text-cyan {
  color: #38bdf8;
}

/* Bluetooth Setup Tip Banner */
.bt-setup-banner {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.4), rgba(15, 23, 42, 0.6));
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.bt-banner-icon {
  background: #2563eb;
  color: #ffffff;
  padding: 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bt-banner-content {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.bt-banner-content strong {
  color: #38bdf8;
}

/* Header Pills */
.bt-audio-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #60a5fa;
}

.rec-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #f87171;
}

.rec-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px #ef4444; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.live-rec-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid #ef4444;
  color: #fca5a5;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.rec-blink-dot {
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse-red 1s infinite;
}

/* CRM Recordings Section */
.recordings-card {
  margin-top: 20px;
}

.rec-total-badge {
  background: #1e293b;
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.recordings-table-wrapper {
  overflow-x: auto;
  margin-top: 14px;
}

.crm-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.crm-table th {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.crm-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  vertical-align: middle;
}

.crm-table tr:hover td {
  background: rgba(30, 41, 59, 0.4);
}

.empty-state-cell {
  text-align: center;
  color: var(--text-muted);
  padding: 30px 16px !important;
  font-style: italic;
}

.audio-cell audio {
  height: 34px;
  max-width: 220px;
  outline: none;
}

.btn-download-rec {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #38bdf8;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-download-rec:hover {
  background: #2563eb;
  color: #ffffff;
}

/* Mode Pill in Header */
.mode-pill-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #c084fc;
}

.mode-icon-tag {
  font-size: 0.7rem;
  color: #94a3b8;
}

/* Channel Switcher Tabs */
.channel-switcher-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 15px;
  flex-wrap: wrap;
}

.channel-switch-tabs {
  display: flex;
  background: #0f172a;
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 4px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-config-voxbay {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

/* Voxbay Panel */
.voxbay-overview-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.voxbay-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.voxbay-logo-box {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c084fc;
}

.voxbay-quick-settings {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(15, 23, 42, 0.5);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.voxbay-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.voxbay-field-group label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.voxbay-field-group input {
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
}

.voxbay-field-group input:focus {
  border-color: #38bdf8;
}

/* Voxbay Route Visualizer */
.voxbay-route-info-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  font-size: 0.8rem;
}

.route-step {
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-num {
  width: 18px;
  height: 18px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.route-arrow {
  color: var(--text-muted);
  font-weight: bold;
}

.text-yellow {
  color: #facc15;
}


/* End Active Call Button */
.btn-end-call {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
  transition: all 0.2s ease;
}
.btn-end-call:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.55);
}
.btn-end-call:active {
  transform: translateY(0);
}
