/* ==========================================================================
   НЕЙРОГАРД • Офіційний інтерактивний консультаційний портал
   Консультація нейрохірурга та невролога Антона Шкіряка
   Повна адаптація для ПК (десктоп) та мобільних пристроїв
   ========================================================================== */

:root {
  /* Brand & Medical Colors */
  --crimson-primary: #b91c1c;
  --crimson-dark: #881337;
  --crimson-light: #fee2e2;
  --crimson-glow: rgba(185, 28, 28, 0.22);
  --crimson-gradient: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #991b1b 100%);
  
  --navy-deep: #0f172a;
  --navy-dark: #0a0f1d;
  --navy-surface: #1e293b;
  --navy-border: #334155;

  --neural-gold: #f59e0b;
  --neural-gold-glow: rgba(245, 158, 11, 0.35);

  --emerald-live: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.4);

  --bg-page: #f8fafc;
  --card-bg: #ffffff;
  
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #f8fafc;

  --bubble-bot-bg: #f8fafc;
  --bubble-bot-border: #e2e8f0;
  --bubble-user-bg: linear-gradient(135deg, #991b1b 0%, #b91c1c 100%);

  /* UI Tokens */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12);
  --shadow-crimson: 0 10px 25px -5px rgba(185, 28, 28, 0.35);

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

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: radial-gradient(circle at 50% 0%, #fee2e2 0%, #f1f5f9 45%, #e2e8f0 100%);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}

/* Main Container: Mobile default max-width, Desktop wide 2-column layout */
.portal-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.09);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Top Official Medical Verification Bar */
.top-notice-bar {
  background: var(--navy-dark);
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 500;
  padding: 9px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.2px;
}

.top-notice-bar .notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
}

.top-notice-bar .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald-live);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-live);
  animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.top-notice-bar .visitors-online {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #e2e8f0;
}

.top-notice-bar .visitors-online strong {
  color: var(--neural-gold);
}

/* Portal Grid Layout (Desktop 2-column, Mobile single column) */
.consultation-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  flex-grow: 1;
  background: #ffffff;
  position: relative;
}

/* LEFT SIDEBAR: Doctor Profile (Prominent on PC, Sticky Top on Mobile) */
.doctor-sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 24px 20px;
  border-right: 1px solid #334155;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 0;
  height: fit-content;
}

.doctor-hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.doctor-avatar-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 14px;
}

.doctor-main-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
  background: #0f172a;
}

.doctor-avatar-wrap .online-indicator {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  background: var(--emerald-live);
  border: 3.5px solid #0f172a;
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-live);
  animation: pulse-green 2s infinite;
}

.doctor-name-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #3b82f6;
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  border-radius: 50%;
}

.doctor-specialty-text {
  font-size: 13px;
  color: #cbd5e1;
  margin-top: 4px;
  line-height: 1.4;
}

.doctor-specialty-text strong {
  color: #fca5a5;
}

.doctor-credentials-list {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
}

.cred-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.cred-text strong {
  color: #ffffff;
  display: block;
}

.cred-text span {
  color: #94a3b8;
  font-size: 11px;
}

.sidebar-urgency-box {
  background: rgba(185, 28, 28, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: center;
}

.sidebar-urgency-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fca5a5;
  letter-spacing: 0.5px;
}

.sidebar-urgency-text {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 4px;
}

.sidebar-skip-btn {
  width: 100%;
  padding: 12px;
  background: var(--crimson-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.35);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sidebar-skip-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(185, 28, 28, 0.5);
}

/* RIGHT MAIN CONSOLE: Chat Feed & Options */
.consultation-main {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  min-height: 600px;
}

/* Mobile Header (Hidden on Desktop) */
.mobile-chat-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  align-items: center;
  justify-content: space-between;
}

.mobile-doc-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-doc-avatar {
  position: relative;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.mobile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ef4444;
}

.mobile-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: var(--emerald-live);
  border: 2px solid #0f172a;
  border-radius: 50%;
}

.mobile-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.mobile-sub {
  font-size: 11.5px;
  color: #cbd5e1;
}

.mobile-sub strong {
  color: #fca5a5;
}

.mobile-skip-btn {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: #b91c1c;
  border: 1px solid #ef4444;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
}

/* Diagnostic Progress Bar */
.diagnostic-progress-container {
  background: #1e293b;
  padding: 10px 20px;
  border-bottom: 1px solid #334155;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.progress-header span:last-child {
  color: #fca5a5;
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #334155;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, #ef4444, #f59e0b);
  border-radius: 4px;
  transition: width 0.5s ease-in-out;
}

/* Chat Messages Area */
.chat-messages {
  flex-grow: 1;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  min-height: 440px;
  background: #ffffff;
}

.message-row {
  display: flex;
  width: 100%;
  animation: fadeInMsg 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.bot-row { justify-content: flex-start; }
.user-row { justify-content: flex-end; }

.message-bubble {
  max-width: 82%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.55;
  position: relative;
  word-wrap: break-word;
  box-shadow: var(--shadow-sm);
}

.bot-row .message-bubble {
  background: var(--bubble-bot-bg);
  border: 1px solid var(--bubble-bot-border);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}

.user-row .message-bubble {
  background: var(--bubble-user-bg);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
}

.message-bubble strong {
  color: #991b1b;
  font-weight: 700;
}

.user-row .message-bubble strong {
  color: #ffffff;
}

.message-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.user-row .message-meta-row {
  color: rgba(255, 255, 255, 0.8);
}

.check-marks {
  color: #38bdf8;
  font-size: 12px;
}

/* Typing Indicator */
.typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
  background: #f1f5f9;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  border: 1px solid #e2e8f0;
}

.typing-dot {
  width: 7px;
  height: 7px;
  background: #94a3b8;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-5px);
    opacity: 1;
    background: #b91c1c;
  }
}

/* Visual Micro-Cards in Chat */
.clinical-card {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-left: 4px solid #b91c1c;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin: 10px 0 6px;
  font-size: 14px;
  color: #881337;
}

.clinical-card-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #991b1b;
}

/* Product image preview inside chat message */
.chat-product-box {
  margin: 12px 0 10px;
  text-align: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  padding: 10px;
  border: 1.5px solid #fecdd3;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.12);
}

.chat-product-img {
  max-width: 250px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: inline-block;
  transition: transform 0.3s ease;
}

.chat-product-img:hover {
  transform: scale(1.03);
}

.pathology-diagram-card {
  margin-top: 10px;
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid #334155;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.diagram-header {
  font-size: 12px;
  font-weight: 700;
  color: #fca5a5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.comparison-col {
  background: #1e293b;
  padding: 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
}

.comparison-col.bad { border-left: 3px solid #ef4444; }
.comparison-col.good { border-left: 3px solid #10b981; }

.col-label { font-weight: 700; margin-bottom: 3px; }
.comparison-col.bad .col-label { color: #f87171; }
.comparison-col.good .col-label { color: #34d399; }

/* Interactive Multiple-Choice Panel */
.chat-options-panel {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid #e2e8f0;
  padding: 16px 20px;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
  z-index: 40;
}

.options-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  background: #ffffff;
  color: var(--text-main);
  border: 1.5px solid #cbd5e1;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.option-btn:hover {
  border-color: #b91c1c;
  background: #fff1f2;
  color: #991b1b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.15);
}

.option-btn .btn-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #b91c1c;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.option-btn:hover .btn-bullet {
  background: #b91c1c;
  transform: scale(1.15);
}

/* ==========================================================================
   OFFER & ORDER SECTION: 2 PACKS FREE PROMOTION
   ========================================================================== */
.offer-order-wrapper {
  background: #ffffff;
  border-top: 2px solid #fecdd3;
  animation: fadeInMsg 0.6s ease;
}

/* Big Promo Banner */
.special-promo-hero-bar {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 50%, #15803d 100%);
  color: #ffffff;
  padding: 16px 20px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.promo-tag-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.promo-title-main {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.promo-sub-text {
  font-size: 14px;
  color: #dcfce7;
  margin-top: 4px;
}

/* 2-Column Product & Form Showcase on Desktop */
.product-order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 30px 24px;
  background: radial-gradient(circle at 50% 0%, #fff1f2 0%, #ffffff 60%);
}

/* Left Col: Product presentation & Neurogard details */
.product-info-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.product-photo-box {
  width: 100%;
  max-width: 320px;
  position: relative;
  margin-bottom: 16px;
  filter: drop-shadow(0 15px 25px rgba(185, 28, 28, 0.25));
  transition: transform 0.3s ease;
}

.product-photo-box:hover {
  transform: translateY(-4px) scale(1.02);
}

.product-photo-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.free-gift-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #dc2626;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
  animation: pulseSpin 2s infinite;
}

@keyframes pulseSpin {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.neurogard-name {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  color: #991b1b;
  line-height: 1.2;
}

.neurogard-desc {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 4px;
  margin-bottom: 16px;
}

/* Detailed Neurogard Actions Grid */
.neurogard-action-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  text-align: left;
  margin-bottom: 20px;
}

.action-card-item {
  background: #ffffff;
  border: 1px solid #fee2e2;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}

.action-card-item .action-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

.action-card-item .action-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.action-card-item .action-text {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.35;
}

/* Pricing block */
.free-pricing-box {
  background: #ffffff;
  border: 2px solid #ef4444;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.12);
}

.price-calculation-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.old-strike-price {
  font-size: 19px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
}

.new-promo-price {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 900;
  color: #dc2626;
  letter-spacing: -0.5px;
}

.pricing-note {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

/* Right Col: Order Card & Urgency */
.order-form-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.order-box-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-lg);
}

.order-box-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  text-align: center;
}

.order-box-sub {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 18px;
}

/* Urgency Counters */
.urgency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.urgency-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.urgency-pill .icon { font-size: 22px; }
.urgency-pill .lbl { font-size: 10.5px; text-transform: uppercase; color: #64748b; font-weight: 600; }
.urgency-pill .val { font-family: var(--font-heading); font-size: 16px; font-weight: 800; color: #b91c1c; }
.urgency-pill .val.stock { color: #d97706; }

/* Form Fields */
.order-form-actual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.input-lbl {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.input-ctrl {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  color: #0f172a;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.input-ctrl:focus {
  outline: none;
  border-color: #b91c1c;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}

.submit-btn-glow {
  width: 100%;
  height: 60px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 50%, #991b1b 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(185, 28, 28, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  margin-top: 6px;
}

.submit-btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(185, 28, 28, 0.55);
  background: linear-gradient(135deg, #f87171 0%, #dc2626 50%, #991b1b 100%);
}

.submit-btn-glow:active { transform: translateY(0); }

.form-trust-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #475569;
  font-weight: 600;
  background: #f8fafc;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
}

/* ==========================================================================
   EXPANDED PRODUCT EDUCATION SECTION
   ========================================================================== */
.neurogard-deep-dive {
  padding: 36px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.deep-dive-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.deep-dive-sub {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 24px;
}

/* Recovery Timeline Phase Cards */
.timeline-phases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 30px;
}

.phase-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.phase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #ef4444;
}

.phase-card:nth-child(2)::before { background: #f59e0b; }
.phase-card:nth-child(3)::before { background: #10b981; }

.phase-time-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #b91c1c;
  margin-bottom: 6px;
}

.phase-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.phase-list {
  font-size: 12.5px;
  color: #475569;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phase-list li {
  position: relative;
  padding-left: 14px;
}

.phase-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 800;
}

/* Comparison Table (Neurogard vs Standard pills) */
.comparison-table-wrap {
  overflow-x: auto;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
}

.med-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.med-comparison-table th, .med-comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.med-comparison-table th {
  background: #0f172a;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.med-comparison-table th.highlight-th {
  background: #991b1b;
  color: #ffffff;
}

.med-comparison-table tr:last-child td { border-bottom: none; }
.med-comparison-table td.highlight-td {
  background: #fff1f2;
  font-weight: 700;
  color: #991b1b;
}

/* ==========================================================================
   PATIENT REVIEWS & CLINICAL STORIES
   ========================================================================== */
.reviews-section {
  padding: 36px 24px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.reviews-header {
  text-align: center;
  margin-bottom: 24px;
}

.reviews-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.reviews-sub {
  font-size: 13.5px;
  color: #64748b;
  margin-top: 4px;
}

.reviews-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.review-patient-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.patient-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fee2e2;
  color: #991b1b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

.patient-name {
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
}

.patient-location {
  font-size: 12px;
  color: #64748b;
}

.review-stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 1px;
}

.review-diagnosis-tag {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.review-text {
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
  margin-bottom: 12px;
}

.review-photo-wrapper {
  margin-top: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
}

.review-photo {
  width: 100%;
  height: auto;
  display: block;
}

.review-photo-caption {
  padding: 8px 12px;
  font-size: 12px;
  color: #475569;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-style: italic;
}

.doctor-review-note {
  margin-top: 12px;
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #166534;
}

.doctor-review-note strong {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
  color: #15803d;
}

/* Page Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 28px 20px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  border-top: 1px solid #1e293b;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: #ef4444; }

.footer-disclaimer {
  max-width: 600px;
  margin: 0 auto;
  color: #64748b;
  font-size: 10.5px;
}

/* Dynamic Order Alert Toast */
.order-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 320px;
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid #334155;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 100;
  font-size: 12.5px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.order-toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.toast-img-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid #ef4444;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  background: #ffffff;
}

.toast-prod-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toast-action-highlight {
  color: #4ade80;
  font-weight: 700;
}

.patient-avatar-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ef4444;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.toast-text strong { color: #fca5a5; }

/* ==========================================================================
   RESPONSIVE DESIGN (PC & MOBILE OPTIMIZATIONS)
   ========================================================================== */
@media (max-width: 900px) {
  .consultation-layout {
    grid-template-columns: 1fr;
  }

  .doctor-sidebar {
    display: none; /* Replaced by mobile-chat-header on smaller screens */
  }

  .mobile-chat-header {
    display: flex;
  }

  .product-order-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px 16px;
  }

  .timeline-phases-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .portal-container {
    box-shadow: none;
  }

  .promo-title-main {
    font-size: 21px;
  }

  .message-bubble {
    max-width: 90%;
    font-size: 14px;
  }

  .neurogard-action-cards {
    grid-template-columns: 1fr;
  }

  .form-trust-badges {
    grid-template-columns: 1fr;
  }
}
