/* ==========================================================================
   NexSales AI - Ultra-Premium Design System & Aesthetics
   Typography: Outfit & Inter | Theme: Obsidian Slate & Emerald / Indigo
   ========================================================================== */

:root {
  --bg-primary: #0a0c10;
  --bg-secondary: #11151c;
  --bg-card: rgba(18, 22, 31, 0.75);
  --bg-card-hover: rgba(26, 32, 44, 0.85);
  --bg-input: #151a24;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);

  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-emerald: #10b981;
  --accent-emerald-soft: rgba(16, 185, 129, 0.15);
  --accent-indigo-soft: rgba(99, 102, 241, 0.15);
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

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

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.2);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Ambient Gradient Background */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 25%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(16, 185, 129, 0.03) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

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

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

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-ai {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.brand-subtitle {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.35);
}

.nav-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.nav-badge.alert {
  background: var(--accent-emerald);
}

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

.engine-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.status-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6ee7b7;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.icon-btn.active {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   Main Container & Tabs
   ========================================================================== */
.main-container {
  flex: 1;
  position: relative;
  z-index: 1;
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 28px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.tab-pane.active {
  display: block;
}

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

/* Buttons */
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-primary), #4f46e5);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   TAB 1: LIVE CHAT SIMULATOR
   ========================================================================== */
.chat-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  height: calc(100vh - 128px);
  min-height: 600px;
}

.chat-main-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.chat-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.015);
}

.agent-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.online-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2px solid #0f131a;
  border-radius: 50%;
}

.agent-info h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}
.agent-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.chat-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.web-toggle-pill input[type="checkbox"] {
  display: none;
}
.web-toggle-pill label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.web-toggle-pill input:checked + label {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
}

/* Persona Chips Bar */
.persona-chips-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  white-space: nowrap;
}

.persona-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 4px;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}
.chip-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.welcome-box {
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  max-width: 580px;
  margin: 20px auto;
}
.welcome-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.welcome-box h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.welcome-box p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.message-row {
  display: flex;
  gap: 12px;
  max-width: 82%;
  animation: messageSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes messageSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.message-row.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.message-row.bot {
  align-self: flex-start;
}

.message-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.message-row.user .message-avatar {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}
.message-row.bot .message-avatar {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
}

.message-bubble {
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.93rem;
  line-height: 1.55;
}
.message-row.user .message-bubble {
  background: #2563eb;
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.message-row.bot .message-bubble {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}

.message-bubble p {
  margin-bottom: 8px;
}
.message-bubble p:last-child {
  margin-bottom: 0;
}
.message-bubble strong {
  color: #fff;
}

/* Product recommendation card inside chat */
.chat-product-card {
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.2s;
}
.chat-product-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(0, 0, 0, 0.45);
}
.prod-meta h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}
.prod-meta .prod-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #34d399;
}
.prod-meta .prod-stock {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.prod-cta-btn {
  background: var(--accent-emerald);
  color: #0f172a;
  border: none;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.prod-cta-btn:hover {
  transform: scale(1.04);
  background: #34d399;
}

/* Market Pill in Chat */
.market-intel-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.74rem;
  color: #6ee7b7;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 18px;
}
.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Chat Input Bar */
.chat-input-bar {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.015);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 6px 8px 6px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-wrapper:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.input-wrapper textarea {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.92rem;
  resize: none;
  max-height: 120px;
  outline: none;
  line-height: 1.4;
}

.send-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.send-btn:hover {
  background: var(--accent-primary-hover);
  transform: scale(1.05);
}

/* Sidebar in Chat */
.chat-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.sidebar-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.card-header-styled {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.card-header-styled h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}
.card-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.icon-circle.net-icon {
  background: rgba(16, 185, 129, 0.15);
}
.icon-circle.cat-icon {
  background: rgba(245, 158, 11, 0.15);
}

.empty-quote-state p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.active-quote-box {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.quote-item-title {
  font-weight: 600;
  color: #fff;
  font-size: 0.88rem;
  margin-bottom: 4px;
}
.quote-price-tag {
  font-size: 1.25rem;
  font-weight: 800;
  color: #34d399;
  margin-bottom: 8px;
}
.quote-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #073815;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.quote-action-btn:hover {
  background: #22c55e;
}

.styled-input-sm {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--text-main);
  outline: none;
  margin-bottom: 10px;
}

.quick-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}
.quick-prod-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.quick-prod-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.3);
}

/* ==========================================================================
   TAB 2: PRICE LIST & EXCEL MANAGER
   ========================================================================== */
.catalog-page-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.upload-section-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.upload-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.upload-header h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.upload-header p {
  color: var(--text-secondary);
  max-width: 720px;
}

.upload-quick-actions {
  display: flex;
  gap: 10px;
}

.dropzone {
  border: 2px dashed rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  background: rgba(99, 102, 241, 0.025);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
  transform: scale(1.005);
}

.dropzone-icon {
  color: var(--accent-primary);
  margin-bottom: 12px;
}
.dropzone-text h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.dropzone-text p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 10px;
}
.highlight-link {
  color: #818cf8;
  text-decoration: underline;
}
.file-badges {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.upload-options {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 18px;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.upload-feedback {
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}
.upload-feedback.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}
.upload-feedback.error {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fca5a5;
}
.hidden { display: none !important; }

/* Catalog Table Card */
.catalog-table-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-filter-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 640px;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  flex: 1;
  gap: 10px;
  color: var(--text-muted);
}
.search-input-wrap input {
  background: transparent;
  border: none;
  color: var(--text-main);
  outline: none;
  font-size: 0.88rem;
  width: 100%;
}

.styled-select {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 9px 16px;
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
}

/* Data Table */
.table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 14px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.sku-tag {
  font-family: monospace;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.prod-name-cell {
  font-weight: 600;
  color: #fff;
}

.category-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
}

.price-cell {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #34d399;
  font-size: 0.95rem;
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.stock-badge.in-stock {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}
.stock-badge.low-stock {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
}

.actions-col {
  text-align: right;
}
.action-btn-danger {
  background: transparent;
  border: none;
  color: var(--accent-rose);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.action-btn-danger:hover {
  background: rgba(244, 63, 94, 0.15);
}

/* ==========================================================================
   TAB 3: REAL-TIME WEB MARKET INTELLIGENCE
   ========================================================================== */
.market-page-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.market-header-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.market-header-card h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.market-header-card p {
  color: var(--text-secondary);
  max-width: 740px;
  margin-bottom: 22px;
}

.market-search-bar {
  max-width: 780px;
}
.search-lg {
  padding: 8px 12px 8px 18px;
}
.search-lg input {
  font-size: 1rem;
}

.market-results-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.empty-market-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
}
.icon-circle.large {
  width: 56px;
  height: 56px;
  font-size: 1.8rem;
  margin: 0 auto 16px;
}
.empty-market-state h3 {
  font-family: var(--font-heading);
  color: #fff;
  margin-bottom: 6px;
}
.empty-market-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Market Analysis Result Card */
.market-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
}

.market-price-stat {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.stat-big-price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #34d399;
  line-height: 1.1;
  margin-bottom: 12px;
}
.stat-range {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.market-sources-list h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}
.source-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 10px;
}
.source-card h5 {
  font-size: 0.88rem;
  color: #818cf8;
  margin-bottom: 4px;
}
.source-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   TAB 4: LEADS & QUOTATIONS
   ========================================================================== */
.leads-page-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.leads-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.leads-header h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
}
.leads-header p {
  color: var(--text-secondary);
}

.leads-table-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   TAB 5: CONFIG & WEBHOOKS
   ========================================================================== */
.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.config-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.config-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.card-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 22px;
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.styled-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 10px 14px;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
}
.styled-input:focus {
  border-color: var(--border-focus);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.webhook-info-block {
  margin-bottom: 20px;
}
.webhook-info-block label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.copy-input-box {
  display: flex;
  gap: 8px;
}
.copy-input-box input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  padding: 8px 12px;
  font-family: monospace;
  font-size: 0.82rem;
  outline: none;
}

.api-snippet-block {
  margin-bottom: 24px;
}
.snippet-header {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.code-block {
  background: #080a0e;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: #93c5fd;
  overflow-x: auto;
}

.status-summary-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}
.status-summary-box h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 12px;
}
.status-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.status-row:last-child {
  border-bottom: none;
}
.status-val.success {
  color: #34d399;
  font-weight: 600;
}

/* ==========================================================================
   Modal Dialog
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.2s ease;
}
.modal-dialog {
  background: #11151c;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.15rem;
}
.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-body {
  padding: 24px;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(255, 255, 255, 0.015);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .chat-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .config-grid {
    grid-template-columns: 1fr;
  }
  .market-summary-card {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   WHATSAPP WEB & PROVIDERS STYLING
   ========================================================================== */
.whatsapp-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 24px;
}

.whatsapp-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.wa-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 211, 102, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-header h2, .wa-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 4px;
}
.wa-header p {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.wa-status-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.status-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b;
}
.status-indicator-dot.connected {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}
.status-indicator-dot.error {
  background: #f43f5e;
}

.wa-qr-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 270px;
  margin-bottom: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
.qr-img {
  width: 240px;
  height: 240px;
  object-fit: contain;
}
.qr-placeholder {
  text-align: center;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 500;
}
.qr-placeholder .pulse-dot.large {
  width: 16px;
  height: 16px;
  margin: 0 auto 12px;
}

.wa-instructions {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
}
.wa-instructions h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 8px;
}
.wa-instructions ol {
  padding-left: 20px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.wa-instructions li {
  margin-bottom: 4px;
}

.wa-actions-row {
  display: flex;
  gap: 12px;
}
.action-danger {
  color: var(--accent-rose);
  border-color: rgba(244, 63, 94, 0.3);
}
.action-danger:hover {
  background: rgba(244, 63, 94, 0.15);
}

.wa-chat-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
}
.wa-feed-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
}
.wa-feed-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.wa-feed-incoming {
  font-size: 0.88rem;
  color: #fff;
  margin-bottom: 8px;
}
.wa-feed-reply {
  font-size: 0.84rem;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid #10b981;
  padding: 8px 12px;
  border-radius: 4px;
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.model-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.m-tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  cursor: pointer;
  transition: all 0.15s;
}
.m-tag:hover {
  background: rgba(99, 102, 241, 0.3);
  color: #fff;
}

.field-hint {
  display: block;
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.provider-test-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.test-feedback {
  font-size: 0.8rem;
  font-weight: 600;
}
.test-feedback.success { color: #34d399; }
.test-feedback.error { color: #f43f5e; }

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

/* ==========================================================================
   Voice Note Recording & Audio Message Styling
   ========================================================================== */
.mic-record-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}
.mic-record-btn:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}
.mic-record-btn.recording {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.15);
  animation: pulseMic 1.2s infinite ease-in-out;
}
@keyframes pulseMic {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.4); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(244, 63, 94, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

.voice-bubble-player {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  padding: 8px 12px;
  margin-top: 6px;
}
.voice-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--accent-primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.voice-wave-anim {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  flex: 1;
}
.voice-wave-bar {
  width: 3px;
  height: 6px;
  background: #818cf8;
  border-radius: 2px;
  transition: height 0.15s ease;
}
.voice-wave-anim.playing .voice-wave-bar:nth-child(odd) {
  animation: waveBar 0.5s infinite alternate ease-in-out;
}
.voice-wave-anim.playing .voice-wave-bar:nth-child(even) {
  animation: waveBar 0.7s infinite alternate ease-in-out;
}
@keyframes waveBar {
  from { height: 4px; }
  to { height: 18px; }
}

/* ==========================================================================
   Live Conversational Voice Call Modal & Dashboard
   ========================================================================== */
.call-modal-dialog {
  max-width: 480px;
  background: linear-gradient(180deg, #0d121f 0%, #080a10 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(99, 102, 241, 0.2);
  overflow: hidden;
  text-align: center;
}
.call-avatar-container {
  margin: 28px auto 16px;
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.call-avatar-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.5);
  position: relative;
  z-index: 2;
}
.call-ripple {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, 0.6);
  opacity: 0;
  z-index: 1;
}
.call-avatar-container.active-speaking .call-ripple {
  animation: callRipple 1.6s infinite ease-out;
}
@keyframes callRipple {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.call-timer {
  font-family: monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: #38bdf8;
  margin: 4px 0 12px;
}
.call-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.call-live-transcript-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
  margin: 16px 20px;
  max-height: 160px;
  overflow-y: auto;
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.5;
}
.call-transcript-line {
  margin-bottom: 8px;
}
.call-transcript-line.agent {
  color: #a5b4fc;
}
.call-transcript-line.user {
  color: #f8fafc;
}

.call-actions-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 16px 20px 24px;
}
.call-circle-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.call-circle-btn:hover {
  transform: scale(1.08);
}
.call-circle-btn.mute {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.call-circle-btn.hangup {
  background: #f43f5e;
  color: #fff;
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.5);
}
.call-circle-btn.speak {
  background: #10b981;
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
}

/* ==========================================================================
   Screen Compatibility Family Cards
   ========================================================================== */
.screen-family-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
  transition: border-color 0.2s ease;
}
.screen-family-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
}
.screen-family-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.screen-compat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.screen-chip {
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  font-size: 0.78rem;
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-weight: 500;
}



/* ==========================================================================
   MOBILE RESPONSIVENESS FIXES (Injected)
   ========================================================================== */
@media (max-width: 768px) {
  /* Fix header */
  .app-header {
    flex-direction: column;
    padding: 10px;
    gap: 12px;
  }
  .header-left, .header-right {
    width: 100%;
    justify-content: space-between;
  }
  
  /* Make tabs scrollable horizontally */
  .nav-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 6px;
    justify-content: flex-start;
  }
  .nav-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  /* Fix chat layout */
  .app-main {
    padding: 10px;
  }
  .chat-layout {
    grid-template-columns: 1fr;
    height: calc(100vh - 150px);
  }
  .chat-sidebar {
    display: none; /* Hide sidebar on mobile to prioritize chat */
  }
  
  /* Fix forms and grids */
  .form-row {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .modal-dialog, .call-modal-dialog {
    margin: 15px;
    width: calc(100% - 30px);
  }
  .market-results-grid {
    grid-template-columns: 1fr;
  }
  .message {
    max-width: 95%;
  }
}
