/* ======================================================== */
/* PULSE COMMUNICATOR - ULTRA-GLASS DESIGN SYSTEM           */
/* iOS 18 + Telegram Dark Glass Aesthetic                   */
/* ======================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700;800&display=swap');

:root {
  --bg-deep: #080c15;
  --bg-surface: #0e1524;
  --glass-panel: rgba(17, 24, 39, 0.75);
  --glass-card: rgba(22, 32, 54, 0.65);
  --glass-card-hover: rgba(30, 44, 74, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-focus: rgba(0, 240, 255, 0.45);

  --cyan-glow: #00f0ff;
  --cyan-subtle: rgba(0, 240, 255, 0.15);
  --emerald-glow: #10b981;
  --emerald-subtle: rgba(16, 185, 129, 0.15);
  --indigo-glow: #6366f1;
  --violet-glow: #8b5cf6;
  --red-call: #ea0038;
  --red-glow: rgba(234, 0, 56, 0.4);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --bubble-out: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  --bubble-in: rgba(24, 34, 53, 0.9);
  --ticks-blue: #38bdf8;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-deep);
  font-family: var(--font-main);
  color: var(--text-main);
  font-size: 15px;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(14, 165, 233, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
  background-attachment: fixed;
}

.glass-app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-width: 640px;
  margin: 0 auto;
  background: rgba(11, 16, 27, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--glass-border);
}

/* ======================================================== */
/* 1. TOP APP GLASS BAR                                     */
/* ======================================================== */
.glass-app-bar {
  background: rgba(13, 19, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 40;
  flex-shrink: 0;
}

.bar-hub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  height: 60px;
}

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

.brand-beacon-indicator {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.beacon-pulse-sm {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.25);
  animation: beaconPulseAnim 2.2s infinite ease-out;
}

.beacon-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan-glow);
  box-shadow: 0 0 12px var(--cyan-glow);
}

@keyframes beaconPulseAnim {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.brand-name {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #fff 40%, var(--cyan-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cyan-glow);
  background: var(--cyan-subtle);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 1px 6px;
  border-radius: 6px;
  margin-left: 4px;
}

.bar-hub-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-station-pill {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.btn-station-pill:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
}

.pill-arrow {
  font-size: 0.65rem;
  opacity: 0.8;
}

.btn-apk-pill {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 6px 11px;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
  transition: all 0.2s;
}

.btn-apk-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.6);
}

.btn-icon-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-icon-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ======================================================== */
/* State B: Active Conversation Header (Clean Unified Top Bar) */
/* Single 56px Bar with Integrated Route Subtitle & Actions */
/* ======================================================== */
.bar-conv-row {
  display: flex;
  align-items: center;
  height: 56px;
  min-height: 56px;
  padding: 0 12px;
  background: rgba(12, 17, 28, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  width: 100%;
}

.conv-main-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.btn-conv-back {
  background: transparent;
  border: none;
  color: #0a84ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.16s ease;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.btn-conv-back:hover {
  background: rgba(10, 132, 255, 0.12);
}

.back-label-text {
  display: none;
}

.conv-contact-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.conv-avatar-glass {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a84ff, #5e5ce6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(10, 132, 255, 0.3);
}

.conv-status-beacon {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34c759;
  border: 2px solid #080c14;
  box-shadow: 0 0 6px #34c759;
}

.conv-text-block {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.conv-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.conv-name-row h2 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.conv-line-tag {
  background: rgba(10, 132, 255, 0.15);
  color: #5ac8fa;
  border: 1px solid rgba(10, 132, 255, 0.3);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 5px;
  flex-shrink: 0;
}

/* Clean Contact Presence & Medium Subtitle Badge */
.conv-presence-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  width: fit-content;
  max-width: 100%;
  line-height: 1.3;
  margin-top: 2px;
  user-select: none;
}

.conv-presence-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.conv-presence-dot.online-webchat {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: presencePulse 2.2s infinite ease-in-out;
}

.conv-presence-dot.online-whatsapp {
  background: #25d366;
  box-shadow: 0 0 6px rgba(37, 211, 102, 0.45);
}

.conv-presence-dot.offline {
  background: #64748b;
  box-shadow: none;
}

@keyframes presencePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Legacy support for any lingering button usages */
.btn-call-mode-pill,
.conv-sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  cursor: pointer;
  width: fit-content;
  max-width: 100%;
  transition: all 0.16s ease;
  user-select: none;
  line-height: 1.3;
}

.btn-call-mode-pill:hover,
.conv-sub-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(56, 189, 248, 0.45);
}

.btn-call-mode-pill:active,
.conv-sub-pill:active {
  transform: scale(0.96);
}

.island-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 6px #34c759;
  flex-shrink: 0;
}

.island-chevron {
  font-size: 7.5px;
  opacity: 0.65;
  margin-left: 1px;
}

.conv-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Backward Compatibility: If client is on older APK with native floating gear button, shift actions left cleanly */
body.old-apk-gear-offset .conv-right-actions,
body.old-apk-gear-offset .bar-hub-actions {
  margin-right: 64px !important;
}

/* Apple FaceTime Call Button */
.btn-apple-call {
  background: linear-gradient(180deg, #34c759 0%, #28cd41 100%);
  color: #fff;
  border: none;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 10px rgba(52, 199, 89, 0.4);
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.btn-apple-call:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(52, 199, 89, 0.55);
}

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

/* Clean 3-Dots More Options Button */
.btn-chat-more,
.btn-apple-info {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.btn-chat-more:hover,
.btn-apple-info:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* ======================================================== */
/* 2. STAGE 1: WELCOME STATION PICKER OVERLAY               */
/* ======================================================== */
.station-welcome-overlay {
  position: absolute;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 12, 21, 0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 12px;
  animation: overlayFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.welcome-card-glass {
  background: rgba(17, 25, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 26px 20px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 240, 255, 0.12);
  text-align: center;
  margin: auto 0;
  box-sizing: border-box;
}

.welcome-hero {
  margin-bottom: 18px;
}

.welcome-beacon-icon {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.beacon-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.2);
  border: 1.5px solid rgba(0, 240, 255, 0.4);
  animation: beaconPulseAnim 2.2s infinite ease-out;
}

.beacon-core {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.4);
}

.welcome-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.welcome-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.welcome-apk-card {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.16), rgba(16, 185, 129, 0.14));
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}

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

.apk-icon-robot {
  font-size: 26px;
  flex-shrink: 0;
}

.apk-card-left strong {
  display: block;
  font-size: 0.85rem;
  color: #fff;
}

.apk-card-left span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-apk-glass {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 9px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.welcome-section-header {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--cyan-glow);
  text-align: left;
  margin-bottom: 8px;
}

.welcome-stations-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.btn-station-card {
  background: rgba(22, 32, 54, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  user-select: none;
}

.btn-station-card:hover {
  background: var(--glass-card-hover);
  border-color: var(--cyan-glow);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.2);
}

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

.station-card-badge {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan-glow);
  border: 1px solid rgba(0, 240, 255, 0.35);
}

.card-alpha .station-card-badge {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
}

.card-bravo .station-card-badge {
  background: rgba(2, 132, 199, 0.18);
  color: #38bdf8;
  border-color: rgba(2, 132, 199, 0.4);
}

.card-charlie .station-card-badge {
  background: rgba(139, 92, 246, 0.18);
  color: #c084fc;
  border-color: rgba(139, 92, 246, 0.4);
}

.card-delta .station-card-badge {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

.card-executive .station-card-badge {
  background: rgba(0, 240, 255, 0.18);
  color: #00f0ff;
  border-color: rgba(0, 240, 255, 0.45);
}

.station-card-meta strong {
  display: block;
  font-size: 0.88rem;
  color: #fff;
}

.station-card-meta span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.station-card-action {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan-glow);
}

.welcome-custom-box {
  background: rgba(13, 20, 36, 0.8);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px;
  text-align: left;
}

.custom-box-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.custom-input-row {
  display: flex;
  gap: 6px;
}

.custom-input-row input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 8px 10px;
  color: #fff;
  font-size: 0.82rem;
  outline: none;
}

.custom-input-row input:first-child {
  flex: 1.5;
}

.custom-input-row input:nth-child(2) {
  flex: 1;
  font-family: var(--font-mono);
}

.custom-input-row input:focus {
  border-color: var(--cyan-glow);
}

.btn-custom-register {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #fff;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-dismiss-welcome {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.76rem;
  cursor: pointer;
  margin-top: 14px;
}

.btn-dismiss-welcome:hover {
  color: #fff;
}


/* ======================================================== */
/* 3. STAGE 3: COMMUNICATOR HUB VIEW                        */
/* ======================================================== */
.hub-viewport-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

/* Stories Active Stations Reel */
.stations-stories-reel-section {
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.reel-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.stations-stories-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.stations-stories-scroll::-webkit-scrollbar {
  display: none;
}

.reel-loading {
  font-size: 0.75rem;
  color: var(--text-dim);
  padding: 10px 0;
}

.story-station-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}

.story-ring-wrap {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, var(--cyan-glow), #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease;
}

.story-station-item:hover .story-ring-wrap {
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
}

.story-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}

.story-beacon-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--emerald-glow);
  border: 2px solid var(--bg-deep);
  box-shadow: 0 0 6px var(--emerald-glow);
}

.story-station-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  max-width: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Hub Search & Dial Bar */
.hub-search-section {
  padding: 10px 16px;
  flex-shrink: 0;
}

.hub-search-box {
  background: rgba(22, 32, 54, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.hub-search-box:focus-within {
  border-color: var(--cyan-glow);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.2);
}

.search-glass-icon {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.hub-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
}

.hub-search-box input::placeholder {
  color: var(--text-dim);
}

.btn-hub-dial-quick {
  background: var(--emerald-glow);
  color: #fff;
  border: none;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

/* Conversations Stream */
.hub-stream-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 16px 20px;
}

.stream-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-dim);
}

.conversations-glass-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stream-loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.glass-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(0, 240, 255, 0.2);
  border-top-color: var(--cyan-glow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Individual Glass Conversation Card */
.glass-conversation-card {
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.glass-conversation-card:hover {
  background: var(--glass-card-hover);
  border-color: rgba(0, 240, 255, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.card-avatar-glass {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.card-status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--emerald-glow);
  border: 2px solid var(--bg-surface);
  box-shadow: 0 0 8px var(--emerald-glow);
}

.card-info-block {
  flex: 1;
  min-width: 0;
}

.card-top-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.card-name-txt {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-line-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--cyan-glow);
  margin-left: 6px;
}

.card-preview-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-preview-txt {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-btn-call {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald-glow);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.card-btn-call:hover {
  background: var(--emerald-glow);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.5);
}

.card-btn-chat {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #38bdf8;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s;
  flex-shrink: 0;
  font-size: 1.1rem;
  margin-right: 6px;
}

.card-btn-chat:hover {
  background: #38bdf8;
  color: #0b0f19;
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.5);
}

.card-btn-save {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  margin-right: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.card-btn-save:hover {
  background: #fbbf24;
  color: #000;
}

.channel-pill-webchat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  letter-spacing: 0.3px;
}

.channel-pill-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(37, 211, 102, 0.16);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #25d366;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  letter-spacing: 0.3px;
}

.channel-pill-archived {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(148, 163, 184, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
}

.channel-pill-blocked {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
}

/* Contacts Filter Tabs */
.contacts-filter-bar {
  display: flex;
  gap: 8px;
  margin: 10px 0 14px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.contacts-filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 6px 13px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.filter-tab-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #f1f5f9;
}

.filter-tab-pill.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 16px;
}

.filter-tab-pill.active .tab-badge {
  background: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

/* Card More Options Button (⋮) */
.card-btn-more {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 15px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.card-btn-more:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Contact Action Bottom Sheet / Modal Rows */
.btn-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #f1f5f9;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-action-row:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-action-row .action-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.btn-action-row .action-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-action-row .action-text strong {
  font-size: 0.9rem;
}

.btn-action-row .action-text small {
  font-size: 0.74rem;
  color: #94a3b8;
}

.btn-action-danger:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
}


/* ======================================================== */
/* 4. STAGE 4: FLUID ACTIVE CONVERSATION SCREEN             */
/* ======================================================== */
.conversation-viewport-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.privacy-ribbon-glass {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--glass-border);
  padding: 5px 14px;
  font-size: 0.7rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ribbon-left {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-station-pill-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan-glow);
  background: var(--cyan-subtle);
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.chat-messages-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.chat-loading {
  margin: auto;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.messages-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.e2ee-glass-capsule {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9999px;
  padding: 4px 12px;
  margin: 6px auto 10px;
  max-width: 90%;
  text-align: center;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-self: center;
}

.e2ee-capsule-icon {
  font-size: 0.85rem;
  color: var(--cyan-glow);
  flex-shrink: 0;
}

/* Message Bubbles */
.msg-bubble {
  max-width: 82%;
  padding: 8px 12px 6px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.38;
  word-wrap: break-word;
  position: relative;
  animation: popBubble 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

@keyframes popBubble {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.msg-out {
  align-self: flex-end;
  background: var(--bubble-out);
  color: #fff;
  border-bottom-right-radius: 3px;
}

.msg-in {
  align-self: flex-start;
  background: var(--bubble-in);
  color: var(--text-main);
  border-bottom-left-radius: 3px;
  border: 1px solid var(--glass-border);
}

.msg-sender-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cyan-glow);
  margin-bottom: 2px;
  display: block;
}

.msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 3px;
}

.msg-ticks {
  color: var(--ticks-blue);
  font-weight: 800;
}

.msg-dlp-badge {
  background: rgba(234, 0, 56, 0.2);
  color: #ff6b81;
  border: 1px solid rgba(234, 0, 56, 0.35);
  border-radius: 4px;
  font-size: 0.62rem;
  padding: 1px 4px;
  margin-top: 3px;
  display: inline-block;
}

/* Ephemeral Photos */
.ephemeral-media-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 4px;
  background: #000;
  max-width: 260px;
}

.ephemeral-img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}

.ephemeral-blur {
  filter: blur(20px);
}

.ephemeral-reveal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 21, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  text-align: center;
}

.btn-reveal-media {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.ephemeral-timer-text {
  font-size: 0.65rem;
  color: #fbbf24;
  padding: 4px;
  display: flex;
  justify-content: space-between;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 0.72rem;
  color: var(--cyan-glow);
  background: rgba(11, 16, 27, 0.9);
  flex-shrink: 0;
}

.typing-dots span {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan-glow);
  margin-right: 2px;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typingBounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

/* Floating Glass Input Dock */
.chat-input-bar {
  padding: 8px 12px;
  background: rgba(13, 19, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.input-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-dock-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s;
  flex-shrink: 0;
}

.btn-dock-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.input-glass-capsule {
  flex: 1;
  background: rgba(24, 34, 53, 0.75);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  transition: border-color 0.2s;
}

.input-glass-capsule:focus-within {
  border-color: var(--cyan-glow);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.2);
}

.input-glass-capsule textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  resize: none;
  max-height: 90px;
  line-height: 1.35;
}

.input-glass-capsule textarea::placeholder {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.btn-dock-send {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45);
}

.btn-dock-send:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.65);
}

/* Voice Message Microphone Button in Input Capsule */
.btn-dock-mic {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  margin-left: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: transform 0.15s ease, opacity 0.15s ease;
  flex-shrink: 0;
  user-select: none;
}

.btn-dock-mic:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.btn-dock-mic:active {
  transform: scale(0.92);
}

/* Voice Recording Active Dock */
.voice-record-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  animation: slideInRecordDock 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.btn-voice-cancel {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-voice-cancel:hover {
  background: rgba(239, 68, 68, 0.28);
  color: #fff;
  border-color: #ef4444;
}

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

.voice-record-center {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
  background: rgba(24, 34, 53, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 6px 14px;
  min-height: 40px;
  box-sizing: border-box;
}

.voice-record-blinker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444, 0 0 18px rgba(239, 68, 68, 0.6);
  animation: voicePulse 1s infinite alternate ease-in-out;
  flex-shrink: 0;
}

@keyframes voicePulse {
  0% {
    transform: scale(0.85);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.voice-record-timer {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.6px;
  flex-shrink: 0;
}

.voice-live-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}

.voice-live-wave span {
  width: 3px;
  min-height: 4px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(180deg, #38bdf8, #00f0ff);
  transition: height 0.08s ease;
}

.btn-voice-send {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45);
}

.btn-voice-send:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.65);
}

.btn-voice-send:active {
  transform: scale(0.95);
}

/* ======================================================== */
/* VOICE MESSAGE BUBBLE & AUDIO PLAYER                      */
/* ======================================================== */
.voice-player-bubble {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  max-width: 320px;
  padding: 4px 2px 2px 2px;
  box-sizing: border-box;
  user-select: none;
}

.btn-voice-play-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #0284c7, #00f0ff);
  color: #030712;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-voice-play-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 240, 255, 0.55);
}

.btn-voice-play-toggle:active {
  transform: scale(0.94);
}

.btn-voice-play-toggle svg {
  margin-left: 2px;
}

.btn-voice-play-toggle .icon-pause-bars {
  margin-left: 0;
}

.voice-player-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.voice-waveform-track {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 2px 0;
}

.voice-waveform-bars {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: 2px;
}

.voice-bar {
  width: 3px;
  min-height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.32);
  transition: background-color 0.1s ease, box-shadow 0.1s ease;
}

.voice-bar.bar-played {
  background: #00f0ff;
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.5);
}

.msg-out .voice-bar.bar-played {
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}

.voice-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
  padding-right: 2px;
}

.voice-timer-wrap {
  display: flex;
  align-items: center;
  gap: 3px;
}

.voice-time-sep {
  opacity: 0.5;
}

.btn-voice-speed-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-voice-speed-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border-color: #00f0ff;
}

@media (max-width: 480px) {
  .voice-player-bubble {
    min-width: 190px;
    max-width: 100%;
    gap: 8px;
  }
  .btn-voice-play-toggle {
    width: 38px;
    height: 38px;
  }
  .btn-voice-cancel {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
  .voice-record-center {
    padding: 5px 8px;
    gap: 8px;
  }
  .voice-record-timer {
    font-size: 0.88rem;
  }
}


/* ======================================================== */
/* 5. STAGE 5: FACETIME-STYLE IN-APP VOICE CALL OVERLAY     */
/* ======================================================== */
.facetime-call-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: radial-gradient(circle at 50% 25%, #152238 0%, #080c14 100%);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 48px 20px 48px;
  box-sizing: border-box;
  animation: callOverlayIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@keyframes callOverlayIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.call-top-capsule {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.call-e2ee-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan-glow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.call-top-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.call-center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.call-avatar-ambient-wrap {
  position: relative;
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ambient-glow-pulse {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.4);
  animation: ambientWave 2s infinite ease-out;
}

.ambient-glow-pulse.delay {
  animation-delay: 0.7s;
}

@keyframes ambientWave {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.call-avatar-disc {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  border: 3px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.35);
}

.call-caller-identity h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.call-line-badge {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cyan-glow);
  margin-bottom: 6px;
}

.call-connection-state {
  font-size: 0.92rem;
  color: var(--emerald-glow);
  font-weight: 600;
}

.call-live-timer {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
}

.call-waveform-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  margin-top: 6px;
}

.wave-bar {
  width: 4px;
  height: 14px;
  background: var(--cyan-glow);
  border-radius: 2px;
  animation: waveEqualizer 1.2s ease-in-out infinite alternate;
}

.wave-bar:nth-child(2) {
  animation-delay: 0.2s;
  height: 22px;
}

.wave-bar:nth-child(3) {
  animation-delay: 0.4s;
  height: 32px;
}

.wave-bar:nth-child(4) {
  animation-delay: 0.1s;
  height: 18px;
}

.wave-bar:nth-child(5) {
  animation-delay: 0.5s;
  height: 28px;
}

.wave-bar:nth-child(6) {
  animation-delay: 0.3s;
  height: 20px;
}

.wave-bar:nth-child(7) {
  animation-delay: 0.6s;
  height: 12px;
}

@keyframes waveEqualizer {
  0% {
    transform: scaleY(0.4);
  }

  100% {
    transform: scaleY(1.3);
  }
}

/* Floating Glass Control Capsule */
.call-controls-capsule {
  background: rgba(18, 26, 43, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.btn-call-island {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}

.btn-call-island:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}

.btn-end {
  width: 72px;
  height: 72px;
  background: var(--red-call);
  border: none;
  font-size: 30px;
  box-shadow: 0 6px 24px var(--red-glow);
}

.btn-end:hover {
  background: #c70030;
  transform: scale(1.06);
}


/* ======================================================== */
/* 6. MODALS & POPUPS                                       */
/* ======================================================== */
.modal-overlay {
  position: absolute;
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 2000;
  animation: overlayFadeIn 0.2s ease-out;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
}

.modal-card {
  background: rgba(20, 26, 40, 0.94);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 20px 22px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
  box-sizing: border-box !important;
}

/* Apple iOS 18 Sheet Grab Handle */
.ios-sheet-handle {
  width: 38px;
  height: 5px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 9999px;
  margin: 0 auto 14px;
}

/* iOS 18 Segmented Control for Duration Presets */
#call-method-dur-chips {
  background: rgba(0, 0, 0, 0.45);
  padding: 3px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-dur-chip {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border-radius: 8px !important;
}

.btn-dur-chip.active {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.modal-badge-icon {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.modal-card h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 4px;
}

.modal-prompt {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.btn-choice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.btn-choice-save {
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.35);
  color: #38bdf8;
}

.btn-choice-destruct {
  background: rgba(234, 0, 56, 0.12);
  border: 1px solid rgba(234, 0, 56, 0.35);
  color: #ff6b81;
}

.choice-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.choice-content strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.choice-content span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-cancel-modal {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 6px;
}

.btn-cancel-modal:hover {
  color: #fff;
}

/* Incoming Call Modal */
.incoming-glass-card {
  background: rgba(14, 21, 36, 0.95);
  border: 2px solid var(--cyan-glow);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.4);
}

.incoming-avatar-beacon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.beacon-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--cyan-glow);
  animation: ambientWave 1.8s ease-out infinite;
}

.beacon-ring.delay {
  animation-delay: 0.6s;
}

.beacon-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
}

.incoming-type-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--cyan-glow);
  background: var(--cyan-subtle);
  padding: 2px 10px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.incoming-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.btn-inc-decline,
.btn-inc-answer {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s;
}

.btn-inc-decline {
  background: var(--red-call);
  color: #fff;
}

.btn-inc-answer {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45);
}

.btn-inc-decline:hover,
.btn-inc-answer:hover {
  transform: scale(1.03);
}

/* WhatsApp-style Full Screen Incoming Call Overlay on Mobile */
@media (max-width: 600px) {
  #incoming-call-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: radial-gradient(circle at top, #0f172a 0%, #030712 100%) !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 50px 24px 40px !important;
    z-index: 999999 !important;
  }

  #incoming-call-modal .incoming-glass-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 !important;
  }

  #incoming-call-modal .incoming-avatar-beacon {
    width: 120px !important;
    height: 120px !important;
    margin: 40px auto 16px !important;
  }

  #incoming-call-modal .beacon-icon-wrap {
    width: 96px !important;
    height: 96px !important;
    font-size: 42px !important;
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.45) !important;
  }

  #incoming-call-modal #incoming-caller-title {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 14px 0 6px !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
  }

  #incoming-call-modal .incoming-actions-row {
    width: 100% !important;
    max-width: 320px !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    gap: 36px !important;
    margin-bottom: 24px !important;
  }

  #incoming-call-modal .btn-inc-decline,
  #incoming-call-modal .btn-inc-answer {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 26px !important;
    padding: 0 !important;
    flex: none !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6) !important;
  }

  #incoming-call-modal .btn-inc-answer {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.55) !important;
    animation: answerPulse 1.8s infinite !important;
  }

  #incoming-call-modal .btn-inc-decline {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  }
}

@keyframes answerPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1.06);
    box-shadow: 0 0 0 16px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Toast Popup */
.toast-popup {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(18, 26, 43, 0.95);
  border: 1px solid var(--cyan-glow);
  color: #fff;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 0.8rem;
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 14px rgba(0, 240, 255, 0.3);
  z-index: 2800;
  white-space: nowrap;
}

.toast-popup.toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Ring Permission Alert */
.ring-permission-alert {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(99, 102, 241, 0.15));
  border-bottom: 1px solid rgba(0, 240, 255, 0.3);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.76rem;
}

.ring-alert-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-enable-ring {
  background: var(--cyan-glow);
  color: #080c14;
  border: none;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

/* ======================================================== */
/* 7. NEW COMPACT RESPONSIVE & PRIVACY COMPONENTS           */
/* ======================================================== */

/* Compact Header */
.bar-hub-row {
  min-height: 52px;
  height: auto;
  padding: 8px 12px;
  gap: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.bar-hub-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.bar-hub-actions .btn-icon-glass {
  width: 32px;
  height: 32px;
  min-width: 32px;
  max-width: 32px;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-apk-pill {
  height: 32px;
  min-height: 32px;
  flex-shrink: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Device Settings & Permissions Modal Styles */
.perm-setting-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
}

.perm-setting-row.perm-highlight {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.28);
}

.perm-setting-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.perm-setting-icon {
  font-size: 20px;
  flex-shrink: 0;
  display: inline-flex;
}

.perm-setting-text {
  flex: 1;
  min-width: 0;
}

.perm-setting-title {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.perm-setting-desc {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.perm-setting-btn {
  background: #0284c7;
  color: #fff;
  border: none;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  text-align: center;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.perm-setting-btn:hover {
  background: #0369a1;
  color: #fff;
}

.perm-modal-bottom-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.btn-perm-auth-all {
  flex: 1.6;
  min-width: 0;
  padding: 12px 10px;
  background: linear-gradient(135deg, #0284c7, #10b981);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  box-sizing: border-box;
}

.btn-perm-close {
  flex: 1;
  min-width: 0;
  padding: 12px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  box-sizing: border-box;
}

/* Call Duration Grid & Call Choices */
.call-dur-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 4px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.call-dur-grid .btn-dur-chip {
  min-width: 0 !important;
  width: 100% !important;
  padding: 6px 2px !important;
  font-size: 11px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
  cursor: pointer !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.call-dur-grid .btn-dur-chip.active {
  border-color: #10b981 !important;
  background: #065f46 !important;
  color: #34d399 !important;
  font-weight: 800 !important;
}

.btn-call-choice {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: left !important;
}

.btn-call-choice > div:first-child {
  flex-shrink: 0 !important;
}

.btn-call-choice > div:nth-child(2) {
  flex: 1 !important;
  min-width: 0 !important;
}

.btn-call-choice > span:last-child {
  flex-shrink: 0 !important;
}

.bar-conv-row {
  min-height: 56px;
  height: auto;
  padding: 4px 10px 6px;
  gap: 4px;
}

.btn-station-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 4px 10px;
  border-radius: 9999px;
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-station-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--cyan-glow);
}

.pill-avatar {
  font-size: 13px;
}

.btn-add-highlight {
  background: rgba(0, 240, 255, 0.12) !important;
  border-color: rgba(0, 240, 255, 0.4) !important;
  color: var(--cyan-glow) !important;
  font-size: 14px !important;
}

/* Auto-Assigned Communicator ID Hero Card */
.assigned-id-hero-card {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.id-hero-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--cyan-glow);
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.id-hero-number {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.6);
  letter-spacing: 1px;
}

.id-hero-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.3;
}

/* Profile Form Card */
.profile-input-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  text-align: left;
}

.form-group-compact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group-compact label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.form-group-compact input {
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.form-group-compact input:focus {
  border-color: var(--cyan-glow);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.btn-primary-action {
  background: linear-gradient(135deg, #0284c7, #10b981);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  text-align: center;
  display: block;
  width: 100%;
}

.btn-primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

.btn-secondary-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: #f8fafc;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}

.btn-secondary-action:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Live Instant Lookup Preview Card in Search */
.hub-lookup-preview-card {
  background: rgba(2, 132, 199, 0.14);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: overlayFadeIn 0.2s ease-out;
}

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

.lookup-card-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}

.lookup-preview-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
}

.lookup-preview-id {
  font-size: 0.72rem;
  color: var(--cyan-glow);
  font-family: var(--font-mono);
}

.lookup-card-actions {
  display: flex;
  gap: 6px;
}

.btn-compact-chat,
.btn-compact-call {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
}

.btn-compact-chat {
  background: #0284c7;
  color: #fff;
}

.btn-compact-call {
  background: #10b981;
  color: #fff;
}

/* Empty Contacts State Card */
.empty-contacts-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 30px 20px;
  text-align: center;
  margin: 20px 8px;
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.empty-contacts-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 6px;
}

.empty-contacts-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 320px;
  margin: 0 auto 18px;
}

.empty-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 260px;
  margin: 0 auto;
}

/* In-Chat Interactive Contact Card Bubble */
.bubble-contact-card {
  background: rgba(14, 23, 42, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 14px;
  padding: 12px;
  width: 100%;
  max-width: 280px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cc-header {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--cyan-glow);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cc-body {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.cc-meta {
  overflow: hidden;
}

.cc-name {
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-id {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.cc-actions {
  display: flex;
  gap: 6px;
}

.btn-cc-add,
.btn-cc-call {
  flex: 1;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-cc-add {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: #f8fafc;
}

.btn-cc-call {
  background: #10b981;
  color: #fff;
}

/* Profile Modal Details Box */
.profile-card-header {
  margin-bottom: 16px;
  text-align: center;
}

.profile-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.4);
}

.my-modal-id-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--cyan-glow);
  background: var(--cyan-subtle);
  padding: 3px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.profile-details-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  text-align: left;
}

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

.p-label {
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.7rem;
}

.p-value {
  color: #f8fafc;
  font-family: var(--font-mono);
}

.p-value-green {
  color: #10b981;
  font-weight: 700;
}

.profile-explainer {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 14px;
}

/* Add Contact Search Wrap */
.add-input-wrap {
  display: flex;
  gap: 8px;
}

.add-input-wrap input {
  flex: 1;
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
}

.add-input-wrap input:focus {
  border-color: var(--cyan-glow);
}

/* ======================================================== */
/* FLUID & PROPORTIONAL MOBILE DESIGN SYSTEM (320px - 640px) */
/* Optimized for compact devices, safe-areas & thumb ergonomics */
/* ======================================================== */

@media (max-width: 640px) {
  .glass-app-container {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    border: none;
    box-shadow: none;
    position: fixed;
    inset: 0;
    overflow: hidden;
  }
}

@media (max-width: 520px) {

  html,
  body {
    font-size: 14px;
  }

  /* Safe Area & App Bar */
  .glass-app-bar {
    padding-top: env(safe-area-inset-top, 0px);
  }

  /* ---------------- Hub Header ---------------- */
  .bar-hub-row {
    min-height: 52px;
    height: auto;
    padding: 6px 10px;
    gap: 6px;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .bar-brand {
    gap: 6px;
    flex-shrink: 0;
  }

  .brand-beacon-indicator {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .beacon-dot {
    width: 8px;
    height: 8px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-tag {
    font-size: 0.6rem;
    padding: 1px 4px;
    letter-spacing: 0.5px;
  }

  .btn-station-pill {
    padding: 4px 8px;
    font-size: 0.72rem;
    max-width: 95px;
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    gap: 3px;
  }

  .btn-station-pill .pill-avatar {
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  .bar-hub-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    flex-wrap: nowrap;
  }

  .bar-hub-actions .btn-icon-glass {
    width: 32px;
    height: 32px;
    min-width: 32px;
    max-width: 32px;
    flex-shrink: 0;
    font-size: 0.95rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .btn-apk-pill {
    height: 32px;
    min-height: 32px;
    padding: 4px 8px;
    font-size: 0.7rem;
    gap: 3px;
    flex-shrink: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* ---------------- Active Conversation Header (Clean Unified Bar) ---------------- */
  .bar-conv-row {
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 10px !important;
    display: flex !important;
    align-items: center !important;
  }

  .conv-main-bar {
    gap: 6px;
  }

  .btn-conv-back {
    padding: 0;
    width: 32px;
    height: 32px;
  }

  .back-label-text {
    display: none !important;
  }

  .conv-contact-info {
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .conv-avatar-glass {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
    flex-shrink: 0;
  }

  .conv-status-beacon {
    width: 8px;
    height: 8px;
  }

  .conv-text-block {
    min-width: 0;
    flex: 1 1 auto;
    gap: 1px;
  }

  .conv-name-row {
    gap: 4px;
    min-width: 0;
  }

  .conv-name-row h2 {
    font-size: 0.86rem;
    max-width: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .conv-line-tag {
    font-size: 0.6rem;
    padding: 1px 4px;
    flex-shrink: 0;
  }

  .conv-sub-pill {
    font-size: 9.5px;
    padding: 1px 6px;
    gap: 3px;
  }

  .conv-right-actions {
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
  }

  .btn-apple-call {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .btn-apple-call .btn-call-label {
    display: none !important;
  }

  .btn-chat-more,
  .btn-apple-info {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  /* Hide the annoying redundant privacy ribbon on mobile */
  .privacy-ribbon-glass {
    display: none !important;
  }

  /* ---------------- Hub Streams & Search ---------------- */
  .hub-search-section {
    padding: 8px 10px;
  }

  .hub-search-box {
    height: 40px;
    padding: 0 10px;
  }

  .hub-search-box input {
    font-size: 0.82rem;
  }

  .hub-stream-section {
    padding: 0 10px 16px;
  }

  .stream-header-row {
    padding: 6px 0;
    font-size: 0.68rem;
  }

  .contacts-filter-bar {
    gap: 6px;
    margin-bottom: 8px;
  }

  .filter-tab-pill {
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  .glass-conversation-card {
    padding: 10px 10px;
    gap: 10px;
    border-radius: 12px;
  }

  .card-avatar-glass {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .card-name-txt {
    font-size: 0.88rem;
  }

  .card-last-msg {
    font-size: 0.75rem;
  }

  /* ---------------- Chat Viewport & Floating Dock ---------------- */
  .privacy-ribbon-glass {
    padding: 4px 10px;
    font-size: 0.65rem;
  }

  .chat-messages-container {
    padding: 10px;
    gap: 6px;
  }

  .msg-bubble {
    max-width: 88%;
    font-size: 0.84rem;
    padding: 7px 11px 5px;
    border-radius: 14px;
  }

  .e2ee-glass-capsule {
    padding: 6px 10px;
    font-size: 0.68rem;
    margin: 4px auto 10px;
    max-width: 95%;
  }

  .chat-input-bar {
    padding: 6px 8px max(env(safe-area-inset-bottom, 8px), 8px);
  }

  .input-form {
    gap: 6px;
  }

  .btn-dock-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .btn-dock-send {
    width: 38px;
    height: 38px;
  }

  .input-glass-capsule {
    padding: 6px 12px;
    border-radius: 18px;
  }

  .input-glass-capsule textarea {
    font-size: 0.84rem;
    line-height: 1.3;
  }

  /* ---------------- Mobile Bottom Sheets for Modals ---------------- */
  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    margin: auto 0 0 0 !important;
    max-height: 92dvh !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    padding: 14px 14px max(env(safe-area-inset-bottom, 16px), 16px) !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7) !important;
    box-sizing: border-box !important;
  }

  #modal-call-method .modal-card {
    padding: 12px 12px max(env(safe-area-inset-bottom, 14px), 14px) !important;
  }

  #chat-call-env-scan-box {
    padding: 6px 8px !important;
    margin-bottom: 8px !important;
    border-radius: 10px !important;
  }

  #chat-call-env-scan-box > div:nth-child(2) {
    gap: 4px !important;
    margin-bottom: 4px !important;
  }

  #chat-call-env-scan-box > div:nth-child(2) > div {
    padding: 4px 6px !important;
    font-size: 10px !important;
  }

  #chat-scan-recommendation-box {
    padding: 4px 8px !important;
    font-size: 10.5px !important;
  }

  .call-dur-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 4px !important;
    width: 100% !important;
  }

  .call-dur-grid .btn-dur-chip {
    padding: 5px 1px !important;
    font-size: 10.5px !important;
    min-width: 0 !important;
    width: 100% !important;
    white-space: nowrap !important;
  }

  .btn-call-choice {
    padding: 8px 10px !important;
    gap: 8px !important;
    border-radius: 10px !important;
  }

  .btn-call-choice>div:first-child,
  .call-choice-icon-disc {
    width: 34px !important;
    height: 34px !important;
    font-size: 18px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  .btn-call-choice div[id^="chat-desc-"],
  .call-choice-desc {
    font-size: 10px !important;
    line-height: 1.25 !important;
    margin-top: 1px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* ---------------- Voice Call Overlay (FaceTime Style) ---------------- */
  .facetime-call-overlay {
    padding: 32px 14px max(env(safe-area-inset-bottom, 24px), 24px) !important;
  }

  .call-avatar-ambient-wrap {
    width: 100px;
    height: 100px;
  }

  .call-avatar-disc {
    width: 72px;
    height: 72px;
  }

  .call-avatar-disc span {
    font-size: 34px !important;
  }

  .call-caller-identity h2 {
    font-size: 1.25rem;
  }

  .call-controls-capsule {
    gap: 18px;
    padding: 10px 18px;
  }

  .btn-call-island {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }

  .btn-call-island.btn-end {
    width: 60px;
    height: 60px;
  }
}

/* Screens under 420px (e.g. iPhone SE, Galaxy A-series) */
@media (max-width: 420px) {
  .back-label-text {
    display: none;
  }

  .conv-name-row h2 {
    max-width: 95px;
    font-size: 0.84rem;
  }

  /* Compact Call button & 3-dots menu */
  .btn-apple-call {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-apple-call .btn-call-label {
    display: none;
  }

  .btn-chat-more,
  .btn-apple-info {
    width: 32px;
    height: 32px;
  }

  .conv-right-actions {
    gap: 6px;
  }

  /* Compact APK button */
  .btn-apk-pill {
    width: 32px;
    height: 32px;
    min-width: 32px;
    max-width: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
  }

  .btn-apk-pill .apk-label {
    display: none;
  }

  .bar-hub-actions {
    gap: 3px !important;
  }

  .bar-hub-actions .btn-icon-glass {
    width: 31px !important;
    height: 31px !important;
    min-width: 31px !important;
    max-width: 31px !important;
  }

  .btn-station-pill {
    max-width: 80px;
    font-size: 0.68rem;
    padding: 3px 6px;
  }

  .btn-station-pill .pill-arrow {
    display: none;
  }

  .brand-tag {
    display: none;
  }

  /* Compact input dock */
  .chat-input-bar {
    padding: 5px 6px max(env(safe-area-inset-bottom, 6px), 6px);
  }

  /* Hide contact card share button in input bar to maximize typing area */
  .btn-apple-card {
    display: none !important;
  }

  .input-form {
    gap: 4px;
  }

  .btn-dock-icon {
    width: 33px;
    height: 33px;
    font-size: 0.95rem;
  }

  .btn-dock-send {
    width: 35px;
    height: 35px;
  }

  .input-glass-capsule {
    padding: 5px 10px;
  }

  .input-glass-capsule textarea {
    font-size: 0.82rem;
  }
}

/* Micro screens (<= 360px: iPhone 5/SE1, compact Androids) */
@media (max-width: 360px) {
  .bar-brand .brand-name {
    display: none;
  }

  .btn-station-pill {
    max-width: 72px;
  }

  .conv-name-row h2 {
    max-width: 75px;
    font-size: 0.8rem;
  }

  .conv-avatar-glass {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .btn-conv-back {
    width: 30px;
    height: 30px;
  }

  .btn-apple-call {
    width: 30px;
    height: 30px;
  }

  .btn-chat-more,
  .btn-apple-info {
    width: 30px;
    height: 30px;
  }

  .conv-right-actions {
    gap: 4px;
  }

  .btn-call-mode-pill,
  .conv-sub-pill {
    max-width: 100% !important;
    padding: 1px 5px !important;
    font-size: 9px !important;
    gap: 3px !important;
  }
}

/* Short vertical viewports / landscape orientation / mobile keyboards */
@media (max-height: 680px) {
  .facetime-call-overlay {
    padding: 14px 12px max(env(safe-area-inset-bottom, 12px), 12px) !important;
    gap: 8px !important;
    justify-content: space-around !important;
  }

  .call-top-capsule {
    gap: 3px !important;
  }

  .call-center-stage {
    gap: 8px !important;
  }

  .call-avatar-ambient-wrap {
    width: 76px !important;
    height: 76px !important;
  }

  .call-avatar-disc {
    width: 60px !important;
    height: 60px !important;
  }

  .call-avatar-disc span {
    font-size: 26px !important;
  }

  .call-caller-identity h2 {
    font-size: 1.1rem !important;
  }

  .call-live-timer {
    font-size: 1.05rem !important;
    margin-top: 2px !important;
  }

  .call-waveform-box {
    height: 20px !important;
    margin-top: 2px !important;
  }

  .call-controls-capsule {
    gap: 14px !important;
    padding: 6px 14px !important;
  }

  .btn-call-island {
    width: 44px !important;
    height: 44px !important;
    font-size: 18px !important;
  }

  .btn-call-island.btn-end {
    width: 50px !important;
    height: 50px !important;
  }

  .modal-card {
    padding-top: 10px !important;
    padding-bottom: 12px !important;
  }

  .ios-sheet-handle {
    margin-bottom: 8px !important;
  }
}

/* ======================================================== */
/* WHATSAPP-STYLE HEADS-UP IN-CHAT NOTIFICATION BANNER     */
/* ======================================================== */
.in-chat-heads-up-banner {
  position: absolute;
  top: 36px;
  left: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.25);
  animation: bannerSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@keyframes bannerSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.banner-avatar-glass {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.banner-content {
  flex: 1;
  min-width: 0;
}

.banner-top-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.banner-top-line strong {
  font-size: 0.85rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner-line-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #38bdf8;
  font-weight: 800;
}

.banner-time-txt {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-left: auto;
}

.banner-msg-txt {
  font-size: 0.78rem;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-banner-switch {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-banner-switch:hover {
  background: #0284c7;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

.btn-banner-dismiss {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  padding: 4px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.btn-banner-dismiss:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.1);
}

.back-unread-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #10b981;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  border: 1.5px solid #0f172a;
}

.card-unread-pill {
  background: #10b981;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: auto;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.card-time-txt {
  font-size: 0.7rem;
  color: #64748b;
  margin-left: auto;
}

/* ======================================================== */
/* BENTO MINIMALIST UX & THUMB ERGONOMICS (CONCEPT 4)       */
/* ======================================================== */
.bento-title {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #f8fafc !important;
}

.bento-profile-pill {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  padding: 4px 10px !important;
  transition: all 0.2s ease !important;
}

.bento-profile-pill:hover,
.bento-profile-pill:active {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
}

.bento-shield-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

.bento-shield-btn:active {
  transform: scale(0.92) !important;
}

.btn-bento-call {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.btn-bento-call:active {
  transform: scale(0.96) !important;
}

/* Bento Bottom Navigation Dock (Thumb-Optimized) */
.bento-bottom-dock {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 12px;
  padding-bottom: max(env(safe-area-inset-bottom, 8px), 8px);
  background: rgba(13, 19, 32, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 50;
  flex-shrink: 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.bento-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.bento-nav-item:hover,
.bento-nav-item:active {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
}

.bento-nav-item.active {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.15);
}

.bento-nav-icon {
  font-size: 18px;
  line-height: 1;
}

.bento-nav-label {
  font-size: 10px;
  letter-spacing: 0.2px;
}

/* Bento Chat Bubble Elegance */
.msg-bubble.bubble-me {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%) !important;
  border-radius: 18px 18px 4px 18px !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25) !important;
}

.msg-bubble.bubble-them {
  background: rgba(30, 41, 59, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px 18px 18px 4px !important;
}

/* Bento Cards in Hub */
.conversation-card-glass {
  border-radius: 16px !important;
  padding: 12px 14px !important;
  margin-bottom: 8px !important;
  background: rgba(22, 30, 46, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.conversation-card-glass:hover,
.conversation-card-glass:active {
  background: rgba(30, 41, 59, 0.85) !important;
  border-color: rgba(168, 85, 247, 0.3) !important;
  transform: translateY(-1px) !important;
}

/* ======================================================== */
/* BENTO MINIMALIST UX & THUMB ERGONOMICS (CONCEPT 4)       */
/* ======================================================== */
.bento-title {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #f8fafc !important;
}

.bento-profile-pill {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  padding: 4px 10px !important;
  transition: all 0.2s ease !important;
}

.bento-profile-pill:hover,
.bento-profile-pill:active {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
}

.bento-shield-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

.bento-shield-btn:active {
  transform: scale(0.92) !important;
}

.btn-bento-call {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.btn-bento-call:active {
  transform: scale(0.96) !important;
}

/* Bento Bottom Navigation Dock (Thumb-Optimized) */
.bento-bottom-dock {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 12px;
  padding-bottom: max(env(safe-area-inset-bottom, 8px), 8px);
  background: rgba(13, 19, 32, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 50;
  flex-shrink: 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.bento-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.bento-nav-item:hover,
.bento-nav-item:active {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
}

.bento-nav-item.active {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.15);
}

.bento-nav-icon {
  font-size: 18px;
  line-height: 1;
}

.bento-nav-label {
  font-size: 10px;
  letter-spacing: 0.2px;
}

/* Bento Chat Bubble Elegance */
.msg-bubble.bubble-me {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%) !important;
  border-radius: 18px 18px 4px 18px !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25) !important;
}

.msg-bubble.bubble-them {
  background: rgba(30, 41, 59, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px 18px 18px 4px !important;
}

/* Bento Cards in Hub */
.conversation-card-glass {
  border-radius: 16px !important;
  padding: 12px 14px !important;
  margin-bottom: 8px !important;
  background: rgba(22, 30, 46, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.conversation-card-glass:hover,
.conversation-card-glass:active {
  background: rgba(30, 41, 59, 0.85) !important;
  border-color: rgba(168, 85, 247, 0.3) !important;
  transform: translateY(-1px) !important;
}

/* ======================================================== */
/* BENTO CALL ROUTING MODAL & SHEET                         */
/* ======================================================== */
.bento-call-card {
  border-radius: 20px !important;
  background: linear-gradient(180deg, #131c2e 0%, #0d1525 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.2) !important;
  padding: 18px 18px 16px !important;
  box-sizing: border-box !important;
}

.bento-call-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 12px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.bento-call-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(59, 130, 246, 0.25));
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #c084fc;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.2);
}

.bento-call-title {
  margin: 0 !important;
  color: #f8fafc !important;
  font-size: 1.12rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.bento-call-subtitle {
  font-size: 11.5px !important;
  color: #94a3b8 !important;
  margin-top: 2px !important;
}

.bento-call-close-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.bento-call-close-btn:hover,
.bento-call-close-btn:active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Recommendation Banner */
.bento-call-rec-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 11.5px;
}

.bento-call-rec-banner .rec-icon {
  font-size: 15px;
  color: #34d399;
  flex-shrink: 0;
}

.bento-call-rec-banner .rec-text-wrap {
  color: #cbd5e1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  line-height: 1.3;
}

.bento-call-rec-banner .rec-label {
  color: #94a3b8;
}

.bento-call-rec-banner .rec-channel {
  color: #34d399;
}

.bento-call-rec-banner .rec-sep {
  color: #64748b;
}

.bento-call-rec-banner .rec-reason {
  color: #94a3b8;
}

/* Bento Call Choices */
.bento-call-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bento-call-tile {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
}

.bento-call-tile:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-1px) !important;
}

.bento-call-tile:active {
  transform: scale(0.99) !important;
}

.call-choice-icon-disc {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  flex-shrink: 0 !important;
}

.disc-cascade {
  background: rgba(168, 85, 247, 0.16) !important;
  border: 1px solid rgba(168, 85, 247, 0.35) !important;
}

.disc-whatsapp {
  background: rgba(16, 185, 129, 0.16) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.disc-gsm {
  background: rgba(245, 158, 11, 0.16) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

.disc-enclave {
  background: rgba(59, 130, 246, 0.16) !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
}

.call-choice-body {
  flex: 1 !important;
  min-width: 0 !important;
}

.call-choice-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  margin-bottom: 2px !important;
}

.call-choice-title {
  font-weight: 700 !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
}

.text-cascade { color: #c084fc !important; }
.text-whatsapp { color: #34d399 !important; }
.text-gsm { color: #fbbf24 !important; }
.text-enclave { color: #60a5fa !important; }

.call-choice-badge {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  padding: 1.5px 6px !important;
  border-radius: 4px !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
}

.badge-cascade {
  background: rgba(168, 85, 247, 0.2) !important;
  color: #c084fc !important;
}

.badge-whatsapp {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #34d399 !important;
}

.badge-gsm {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
}

.badge-enclave {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #60a5fa !important;
}

.call-choice-desc {
  color: #94a3b8 !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.call-choice-action {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #94a3b8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  flex-shrink: 0 !important;
  transition: all 0.2s !important;
}

.bento-call-tile:hover .call-choice-action {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  transform: translateX(2px) !important;
}

/* Collapsible Settings & Diagnostics */
.bento-call-advanced {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-top: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.bento-call-advanced-trigger {
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background 0.15s;
}

.bento-call-advanced-trigger::-webkit-details-marker {
  display: none;
}

.bento-call-advanced-trigger:hover {
  background: rgba(255, 255, 255, 0.03);
}

.trigger-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.trigger-icon {
  font-size: 13px;
}

.trigger-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
}

.trigger-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dur-summary-pill {
  font-size: 10px;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 9999px;
  padding: 1.5px 7px;
}

.details-chevron {
  font-size: 11px;
  color: #64748b;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

details[open] .details-chevron {
  transform: rotate(180deg);
}

.bento-call-advanced-content {
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Diagnostics Sections */
.bento-diag-section {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px 10px;
}

.bento-diag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.bento-diag-label {
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
}

.bento-diag-dur-val {
  font-size: 11px;
  font-weight: 800;
  color: #34d399;
}

.bento-diag-scan-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
}

.bento-diag-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.bento-diag-scan-title {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #38bdf8;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bento-diag-client-pill {
  font-size: 9.5px;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 9999px;
  padding: 1px 6px;
}

.bento-diag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  font-size: 10.5px;
}

.bento-diag-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 6px;
  border-radius: 5px;
}

.diag-cell-name {
  color: #94a3b8;
}

.diag-cell-val {
  font-weight: 700;
}

.bento-diag-tip {
  margin-top: 6px;
  padding: 5px 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 6px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bento-diag-apk-link {
  color: #38bdf8;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
  margin-left: 6px;
}

/* Call Footer */
.bento-call-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bento-call-remember {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.bento-call-remember input[type="checkbox"] {
  accent-color: #3b82f6;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.bento-call-cancel-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.bento-call-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Session Expired In-Stream Banner */
.session-expired-stream-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  padding: 12px 16px;
  margin: 16px 8px 8px;
  color: #f8fafc;
  animation: fadeIn 0.3s ease-out;
}
.session-expired-stream-banner strong {
  display: block;
  font-size: 0.92rem;
  color: #fbbf24;
}

/* ======================================================== */
/* CHAT DELIVERY ROUTE SELECTOR (AUTO / WHATSAPP / WEBCHAT)  */
/* ======================================================== */

.conv-presence-badge[role="button"] {
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.conv-presence-badge[role="button"]:active {
  transform: scale(0.97);
}

.route-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.route-mode-pill.route-auto {
  background: rgba(14, 165, 233, 0.16);
  color: #38bdf8;
  border-color: rgba(14, 165, 233, 0.4);
}

.route-mode-pill.route-whatsapp {
  background: rgba(37, 211, 102, 0.16);
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.4);
}

.route-mode-pill.route-webchat {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.4);
}

.btn-route-mode {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.btn-route-mode:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.bento-call-tile.active-route-tile {
  border-color: rgba(56, 189, 248, 0.5) !important;
  background: rgba(56, 189, 248, 0.08) !important;
}

.route-check {
  font-weight: 800;
  color: #38bdf8;
  font-size: 15px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.msg-channel-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  margin-right: 5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.2px;
}

.msg-channel-tag.wa-tag {
  color: #25d366;
  background: rgba(37, 211, 102, 0.14);
  border: 1px solid rgba(37, 211, 102, 0.25);
}

.msg-channel-tag.web-tag {
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(14, 165, 233, 0.25);
}

/* ======================================================== */
/* FRIENDLY HUB QUICK ACTIONS & CONTACT CARD POLISH (v130)   */
/* ======================================================== */
.bento-profile-pill,
.btn-station-pill {
  max-width: 240px !important;
  padding: 5px 12px !important;
  gap: 6px !important;
}

.hub-quick-actions-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.hub-quick-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(22, 32, 54, 0.7);
  color: #e2e8f0;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.hub-quick-pill:hover {
  transform: translateY(-1px);
  background: rgba(30, 44, 74, 0.9);
}

.hub-quick-pill:active {
  transform: scale(0.97);
}

.hub-quick-pill.pill-add {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.12);
  color: #38bdf8;
}

.hub-quick-pill.pill-call {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}

.hub-quick-pill.pill-share {
  border-color: rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
}

.card-btn-chat.friendly-pill,
.card-btn-call.friendly-pill {
  width: auto !important;
  height: 34px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  gap: 5px !important;
  margin-right: 0 !important;
  white-space: nowrap !important;
}

.card-btn-more {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.18s;
}

.card-btn-more:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

@media (max-width: 440px) {
  .card-btn-chat.friendly-pill .btn-pill-txt,
  .card-btn-call.friendly-pill .btn-pill-txt {
    display: none;
  }
  .card-btn-chat.friendly-pill,
  .card-btn-call.friendly-pill {
    width: 34px !important;
    padding: 0 !important;
  }
  .hub-quick-pill {
    font-size: 0.72rem;
    padding: 8px 6px;
  }
}
