:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #131b2e;
  --bg-card: #1a253a;
  --bg-card-hover: #23324f;
  --accent: #00f2fe;
  --accent-glow: rgba(0, 242, 254, 0.3);
  --accent-secondary: #4facfe;
  --text-main: #f0f4f8;
  --text-muted: #8ca3ba;
  --border: #263859;
  --success: #00e676;
  --warning: #ffab00;
  --danger: #ff5252;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  position: relative;
  padding-bottom: 64px; /* Space for bottom nav */
}

@media (max-width: 500px) {
  .app-container {
    border-left: none;
    border-right: none;
  }
}

/* SMS / Message Top Toast Banner */
.sms-toast-banner {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 150;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 12px var(--accent-glow);
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.toast-icon { font-size: 1.3rem; }
.toast-content { flex: 1; overflow: hidden; }
.toast-title { font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.toast-body { font-size: 0.75rem; color: var(--text-main); text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.toast-close { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; font-size: 1rem; }
.toast-close:hover { color: var(--text-main); }

/* Header */
.app-header {
  height: 56px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.brand-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-title span {
  color: var(--accent);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.status-dot.disconnected {
  background-color: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

.status-dot.connected {
  background-color: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.status-dot.connecting {
  background-color: var(--warning);
  box-shadow: 0 0 8px var(--warning);
}

.user-identity-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.user-identity-pill:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.user-identity-pill .pill-text {
  color: var(--accent);
  font-family: var(--font-mono);
}

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

.relative { position: relative; }

.unread-badge {
  position: absolute;
  top: 4px;
  right: 18px;
  background: var(--accent);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
  border: 1.5px solid var(--bg-secondary);
}

.btn-icon-round {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon-round:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

/* Active Call Card */
.active-call-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 230, 118, 0.12);
  border-bottom: 1.5px solid var(--success);
  padding: 10px 14px;
  animation: fadeIn 0.3s ease;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 15;
}

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

.active-call-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.active-call-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.call-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.active-call-target {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.active-call-timer {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--success);
}

.btn-speaker-active, .btn-screenshare-active {
  background: rgba(0, 242, 254, 0.2) !important;
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}

/* Main Content Area & App Views */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
}

.app-view {
  display: none;
  flex: 1;
  flex-direction: column;
  padding: 14px;
}

.app-view.active {
  display: flex;
}

.dialer-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* Collapsible Video Container */
.video-collapsible-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.btn-toggle-video {
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.video-icon { font-size: 1rem; margin-right: 6px; }
.chevron { font-size: 1rem; transition: transform 0.3s ease; }
.chevron.open { transform: rotate(180deg); }

.video-stage-body {
  max-height: 500px;
  opacity: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.35s ease;
  border-top: 1px solid var(--border);
}

.video-stage-body.collapsed {
  max-height: 0;
  opacity: 0;
  padding: 0 12px;
  border-top: 1px solid transparent;
  overflow: hidden;
  pointer-events: none;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.video-card {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.user-label {
  background: rgba(10, 14, 23, 0.85);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
}

.candidate-tag {
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
}

.no-peer-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  gap: 6px;
  font-size: 0.7rem;
}

.radar-scan {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: radar 2s infinite ease-out;
}

@keyframes radar {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.stage-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn-control {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-main);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-control.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent);
}

.btn-control.disabled {
  background: rgba(255, 82, 82, 0.15);
  border-color: var(--danger);
}

/* Phone Dialer Card */
.phone-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.dialer-display {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 12px;
}

.dial-lcd {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 700;
  outline: none;
  letter-spacing: 2px;
}

.dial-lcd::placeholder {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0;
}

.btn-lcd-action {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
}

.btn-lcd-action:hover, .btn-lcd-action:active {
  color: var(--text-main);
  background: var(--bg-card);
}

.route-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.18);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--accent);
  line-height: 1.3;
}

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

.dial-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.1s ease;
  user-select: none;
  touch-action: manipulation;
}

.dial-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.dial-btn:active {
  transform: scale(0.96);
  background: var(--accent-glow);
  border-color: var(--accent);
}

.dial-btn .digit {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-main);
  line-height: 1;
}

.dial-btn .letters {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.dial-btn.prefix-btn {
  border-color: rgba(0, 242, 254, 0.35);
  background: rgba(0, 242, 254, 0.06);
}

.dial-btn.prefix-btn .digit { color: var(--accent); }
.dial-btn.action-clear .digit { color: var(--danger); font-size: 1.2rem; }
.dial-btn.action-paste .digit { font-size: 1.2rem; }

.dial-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.btn-call {
  height: 46px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  user-select: none;
  touch-action: manipulation;
}

.btn-audio { background: linear-gradient(135deg, #00c853, #00e676); color: #000; }
.btn-video { background: linear-gradient(135deg, #00b4db, #0083b0); color: #fff; }
.btn-chat-action { background: linear-gradient(135deg, #8a2387, #e94057); color: #fff; }

.keyboard-tip {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: -4px;
}

/* Recent Calls Section */
.recent-calls-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recent-header h4 {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
}

.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-primary);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  cursor: pointer;
}

.recent-item:hover, .recent-item:active {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.recent-num { font-family: var(--font-mono); font-weight: 600; color: var(--accent); }
.recent-time { font-size: 0.7rem; color: var(--text-muted); }
.empty-history { font-size: 0.75rem; color: var(--text-muted); text-align: center; padding: 6px 0; }

/* ================= VIEW 2: MESSENGER & FILES ================= */
.messenger-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
  gap: 8px;
}

.messenger-recipient-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 10px;
}

.recipient-input-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.recipient-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.recipient-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
}

.recipient-input::placeholder {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
}

.messenger-peer-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 0 4px;
}

.peer-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--danger);
}

.peer-status-dot.connected {
  background-color: var(--success);
  box-shadow: 0 0 6px var(--success);
}

.chat-messages.full-height {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 280px;
}

.chat-bubble {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  max-width: 82%;
  word-wrap: break-word;
}

.chat-bubble.mine {
  align-self: flex-end;
  background: linear-gradient(135deg, #00b4db, #0083b0);
  color: #fff;
}

.chat-bubble.peer {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.chat-sender { font-size: 0.65rem; font-weight: 700; margin-bottom: 2px; opacity: 0.8; }

.file-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4px;
}

.file-header { display: flex; align-items: center; gap: 8px; }
.file-icon { font-size: 1.3rem; }
.file-details { flex: 1; overflow: hidden; }
.file-name { font-size: 0.75rem; font-weight: 700; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.file-size { font-size: 0.65rem; opacity: 0.75; font-family: var(--font-mono); }

.btn-file-download {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.file-transfer-progress-box {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--accent);
  font-family: var(--font-mono);
}

.progress-track {
  height: 6px;
  background: var(--bg-primary);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  transition: width 0.1s ease;
}

.system-msg {
  align-self: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 12px;
  text-align: center;
}

.chat-input-area {
  display: flex;
  gap: 6px;
}

.chat-input-area input[type="text"] {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--text-main);
  outline: none;
  font-size: 0.85rem;
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 1.15rem;
}

/* ================= BOTTOM NAVIGATION BAR ================= */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 30;
}

.nav-item {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  touch-action: manipulation;
}

.nav-item.active {
  color: var(--accent);
}

.nav-item:hover {
  background: var(--bg-card-hover);
}

.nav-icon { font-size: 1.25rem; }
.nav-label { font-size: 0.7rem; font-weight: 600; }

/* Buttons & Inputs */
.btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); color: #000; font-weight: 700; }
.btn-primary:hover { box-shadow: 0 0 12px var(--accent-glow); }
.btn-secondary { background: var(--bg-card); color: var(--text-main); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--accent); }
.btn-accent { background: var(--accent); color: #000; font-weight: 700; }
.btn-success { background: var(--success); color: #000; font-weight: 700; }
.btn-danger { background: var(--danger); color: #fff; font-weight: 700; }
.btn-sm { padding: 4px 10px; font-size: 0.75rem; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.modal-backdrop.show { display: flex; }

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.settings-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.settings-modal-header h2 { font-size: 1.15rem; }

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px 8px;
}

.btn-close-modal:hover { color: var(--text-main); }

/* Settings Tabs */
.settings-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-primary);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  padding: 8px 4px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.settings-tab-content {
  display: none;
  flex-direction: column;
  overflow-y: auto;
  gap: 12px;
}

.settings-tab-content.active { display: flex; }

.tab-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.sim-details-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.sim-key { color: var(--text-muted); }
.sim-val { font-weight: 600; }
.sim-val.highlight { color: var(--accent); font-family: var(--font-mono); font-size: 0.95rem; }
.sim-val.mono.small { font-family: var(--font-mono); font-size: 0.65rem; color: var(--accent-secondary); word-break: break-all; }

.sim-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.file-upload-btn { cursor: pointer; }
.modal-divider { border: none; border-top: 1px solid var(--border); margin: 6px 0; }

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

.form-group label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.form-group input, .form-group select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  color: var(--text-main);
  outline: none;
  font-size: 0.85rem;
}

/* Diagnostics */
.diag-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
}

.diag-group h3 {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.diag-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 0.75rem;
}

.diag-key { color: var(--text-muted); }
.diag-val { font-weight: 600; }
.diag-val.highlight { color: var(--accent); }
.diag-val.mono { font-family: var(--font-mono); font-size: 0.65rem; }

.candidate-log {
  height: 100px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: var(--bg-primary);
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Incoming Call Modal */
.incoming-call-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.incoming-pulse {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  animation: pulse 1.2s infinite;
}

.ringing-icon { font-size: 1.8rem; }
.caller-number-display {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}
.caller-name-display { font-size: 1rem; margin-top: 2px; }
.incoming-type-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; margin-bottom: 18px; }
.incoming-actions { display: flex; gap: 12px; width: 100%; justify-content: center; }
