:root {
  --primary: #3C9B7A;
  --primary-dark: #2c755c;
  --primary-light: #BFE7D6;
  --bg-soft: #F3FBF7;
  --white: #FFFFFF;
  --text-dark: #1F2937;
  --text-muted: #4B5563;
  --border: #D1EBE1;
  --shadow: 0 4px 20px rgba(60, 155, 122, 0.08);
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-soft);
  color: var(--text-dark);
  line-height: 1.5;
}
.main-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.header-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
}
.brand-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo-icon-wrapper {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.brand-name { font-size: 1.2rem; font-weight: 700; color: var(--primary-dark); display: block; }
.brand-tagline { font-size: 0.75rem; color: var(--text-muted); display: block; }
.desktop-nav { display: flex; align-items: center; gap: 24px; }
.nav-link {
  display: flex; align-items: center; gap: 6px; text-decoration: none;
  color: var(--text-muted); font-weight: 600; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 8px; transition: 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--bg-soft); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-quick-chat {
  display: flex; align-items: center; gap: 8px;
  background: var(--primary); color: var(--white);
  border: none; padding: 8px 16px; border-radius: 99px;
  font-weight: 600; cursor: pointer; transition: 0.2s;
}
.btn-quick-chat:hover { background: var(--primary-dark); }
.mockup-mode-toggle { display: none; }
.mobile-dots-btn {
  display: none; background: none; border: none;
  color: var(--text-dark); cursor: pointer; padding: 6px; border-radius: 8px;
}
.mobile-menu-drawer {
  position: fixed; top: 0; right: -300px; width: 280px; height: 100%;
  background: var(--white); z-index: 100; transition: right 0.3s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1); padding: 20px; display: flex; flex-direction: column;
}
.mobile-menu-drawer.open { right: 0; }
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 99; display: none;
}
.drawer-backdrop.open { display: block; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.drawer-close-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; }
.drawer-body { display: flex; flex-direction: column; gap: 16px; }
.drawer-item { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; padding: 8px; border-radius: 8px; }
.drawer-item:hover { background: var(--bg-soft); }
.app-viewport { max-width: 1200px; margin: 0 auto; padding: 24px 20px; }
.app-view { display: none; }
.app-view.active { display: block; }
.content-wrapper { display: flex; flex-direction: column; gap: 32px; }
.content-wrapper.max-narrow { max-width: 700px; margin: 0 auto; }
.welcome-header-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--primary-light) 100%);
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: var(--shadow);
}
.greeting-badge {
  display: inline-block; background: var(--white); color: var(--primary);
  padding: 4px 12px; border-radius: 99px; font-size: 0.8rem; font-weight: 700; margin-bottom: 8px;
}
.user-greeting { font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); }
.user-name { color: var(--primary); }
.greeting-sub { color: var(--text-muted); font-size: 0.95rem; margin-top: 4px; }
.avatar-ring { position: relative; width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--primary); }
.user-avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.status-indicator.online {
  position: absolute; bottom: 2px; right: 2px; width: 14px; height: 14px;
  background: #10B981; border: 2px solid var(--white); border-radius: 50%;
}
.appointment-card {
  margin-top: 16px; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden;
}
.appointment-tag {
  background: var(--primary); color: var(--white); padding: 8px 20px;
  font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.appointment-card-inner { padding: 20px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.appointment-date-badge {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 18px; display: flex; flex-direction: column; min-width: 140px;
}
.badge-day { font-weight: 800; color: var(--primary); font-size: 1.1rem; }
.badge-date { font-weight: 600; font-size: 0.9rem; }
.badge-time { font-size: 0.85rem; color: var(--text-muted); }
.badge-facility { font-size: 0.75rem; color: var(--primary-dark); font-weight: 700; margin-top: 4px; }
.appointment-doctor-info { display: flex; flex: 1; align-items: center; gap: 16px; flex-wrap: wrap; }
.doc-thumb { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.doc-meta { flex: 1; min-width: 180px; }
.doc-name { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); }
.doc-specialty { font-size: 0.85rem; color: var(--primary); font-weight: 600; }
.clinic-room { font-size: 0.8rem; color: var(--text-muted); }
.appointment-action-btns { display: flex; gap: 10px; }
.btn-card-chat {
  background: var(--primary); color: var(--white); border: none;
  padding: 8px 16px; border-radius: 8px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 6px; font-size: 0.85rem;
}
.btn-card-detail {
  background: var(--bg-soft); color: var(--primary); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 0.85rem;
}
.section-title-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
.section-eyebrow { font-size: 0.75rem; font-weight: 700; color: var(--primary); letter-spacing: 0.05em; display: block; }
.section-heading { font-size: 1.4rem; font-weight: 800; color: var(--primary-dark); }
.section-subtext { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }
.announcement-pill {
  background: var(--primary-light); color: var(--primary-dark); font-size: 0.8rem;
  font-weight: 700; padding: 4px 12px; border-radius: 99px;
}
.chips-scroll-container { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; }
.filter-chip {
  background: var(--white); border: 1px solid var(--border); padding: 6px 16px;
  border-radius: 99px; font-size: 0.85rem; font-weight: 600; cursor: pointer; color: var(--text-muted);
  white-space: nowrap; transition: 0.2s;
}
.filter-chip.active, .filter-chip:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.article-card {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.article-img-wrap { position: relative; height: 160px; }
.article-img { width: 100%; height: 100%; object-fit: cover; }
.article-badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 6px;
  font-size: 0.7rem; font-weight: 800; color: var(--white);
}
.badge-warning { background: #EF4444; }
.badge-info { background: #3B82F6; }
.badge-success { background: var(--primary); }
.article-content { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.article-date { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 6px; }
.article-title { font-size: 1.05rem; font-weight: 700; line-height: 1.4; color: var(--text-dark); margin-bottom: 8px; }
.article-snippet { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; flex: 1; }
.article-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--bg-soft); padding-top: 12px; }
.read-time { font-size: 0.75rem; color: var(--text-muted); }
.btn-read-more { background: none; border: none; color: var(--primary); font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.live-status-indicator { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--primary); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }
.poli-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.poli-card {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--border);
  padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.poli-card-header { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.poli-icon-badge {
  width: 48px; height: 48px; border-radius: 12px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
}
.poli-number { font-size: 0.7rem; font-weight: 700; color: var(--primary); display: block; }
.poli-name { font-size: 1.15rem; font-weight: 700; color: var(--text-dark); }
.poli-status-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.status-open { background: #D1FAE5; color: #065F46; }
.status-ready { background: #E0E7FF; color: #3730A3; }
.poli-body { flex: 1; margin-bottom: 16px; }
.poli-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.4; }
.doctor-on-duty { display: flex; gap: 10px; align-items: center; background: var(--bg-soft); padding: 8px 12px; border-radius: 10px; }
.duty-doc-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.duty-doc-info { display: flex; flex-direction: column; }
.duty-doc-title { font-size: 0.7rem; color: var(--text-muted); }
.duty-doc-name { font-size: 0.8rem; color: var(--text-dark); }
.duty-doc-slots { font-size: 0.7rem; color: var(--primary); font-weight: 600; }
.poli-footer { display: flex; gap: 8px; }
.btn-poli-action {
  flex: 1; background: var(--primary-light); color: var(--primary-dark);
  border: none; padding: 8px 12px; border-radius: 8px; font-weight: 700;
  font-size: 0.8rem; cursor: pointer; transition: 0.2s;
}
.btn-poli-action:hover { background: var(--primary); color: var(--white); }
.btn-poli-chat {
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 1rem;
}
.location-card {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--border);
  padding: 28px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.location-title { font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); }
.location-type-badge { font-size: 0.75rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.location-details-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.detail-item { display: flex; gap: 12px; font-size: 0.85rem; }
.detail-icon { font-size: 1.1rem; }
.location-actions-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-gmaps {
  display: inline-flex; align-items: center; gap: 8px; background: var(--primary);
  color: var(--white); padding: 10px 18px; border-radius: 8px; text-decoration: none;
  font-weight: 700; font-size: 0.9rem; transition: 0.2s;
}
.btn-gmaps:hover { background: var(--primary-dark); }
.btn-preview-map {
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--primary-dark);
  padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; cursor: pointer;
}
.map-preview-frame {
  background: #E5E7EB; border-radius: 12px; overflow: hidden; height: 100%; min-height: 220px;
  position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 16px;
}
.map-header-badge { display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: 700; }
.gmaps-logo { background: var(--white); padding: 4px 8px; border-radius: 4px; color: #EA4335; }
.dist-badge { background: var(--primary); color: var(--white); padding: 4px 8px; border-radius: 4px; }
.map-mockup-graphic { text-align: center; margin: auto 0; }
.pin-pulse-wrapper { font-size: 2rem; position: relative; display: inline-block; }
.map-street-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; margin-top: 4px; }
.map-clinic-name { font-size: 1.1rem; font-weight: 800; color: var(--primary-dark); }
.map-footer-info { font-size: 0.75rem; color: var(--text-muted); text-align: center; background: rgba(255,255,255,0.8); padding: 4px 8px; border-radius: 6px; }
.subview-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.btn-subview-back {
  display: flex; align-items: center; gap: 6px; background: none; border: none;
  color: var(--primary-dark); font-weight: 700; font-size: 1rem; cursor: pointer;
}
.subview-title { font-size: 1.4rem; font-weight: 800; color: var(--primary-dark); }
.topbar-space { width: 80px; }
.doctor-switcher-strip { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 20px; padding-bottom: 6px; }
.doc-pill {
  background: var(--white); border: 1px solid var(--border); padding: 6px 14px;
  border-radius: 99px; font-size: 0.8rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.doc-pill.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.doctor-profile-card {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow); overflow: hidden;
}
.doc-card-hero-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #2c755c 100%);
  color: var(--white); padding: 28px; display: flex; justify-content: space-between; align-items: center;
}
.doc-tag-pill { background: rgba(255,255,255,0.2); padding: 4px 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 600; display: inline-block; margin-bottom: 8px; }
.doc-name-large { font-size: 1.6rem; font-weight: 800; }
.doc-hospital-loc { font-size: 0.85rem; opacity: 0.9; display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.doc-schedule-badge { font-size: 0.8rem; background: rgba(255,255,255,0.15); padding: 4px 10px; border-radius: 6px; margin-top: 8px; display: inline-block; }
.doc-avatar-large-wrap { position: relative; width: 90px; height: 90px; border-radius: 50%; border: 3px solid var(--white); }
.doc-avatar-large { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.online-badge-dot { position: absolute; bottom: 4px; right: 4px; width: 16px; height: 16px; border-radius: 50%; background: #10B981; border: 2px solid var(--white); }
.doc-card-body { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.doc-bio-box { background: var(--bg-soft); padding: 14px 18px; border-radius: 12px; font-size: 0.9rem; color: var(--text-dark); line-height: 1.5; }
.doc-metrics-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.metric-box {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px; display: flex; align-items: center; gap: 14px;
}
.metric-icon-wrap { width: 44px; height: 44px; border-radius: 10px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.metric-num { font-size: 1.3rem; font-weight: 800; color: var(--primary-dark); display: block; }
.metric-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; letter-spacing: 0.05em; }
.btn-doc-chat-primary {
  width: 100%; background: var(--primary-light); border: 2px solid var(--primary);
  border-radius: 12px; padding: 14px 18px; display: flex; justify-content: space-between;
  align-items: center; cursor: pointer; transition: 0.2s;
}
.btn-doc-chat-primary:hover { background: #aee0cd; }
.chat-btn-left { display: flex; align-items: center; gap: 12px; text-align: left; }
.chat-icon-circle { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; }
.chat-btn-text strong { display: block; font-size: 0.95rem; color: var(--primary-dark); }
.chat-btn-text span { font-size: 0.8rem; color: var(--text-muted); }
.chat-btn-arrow { font-size: 0.9rem; font-weight: 800; color: var(--primary-dark); }
.booking-header-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.booking-group-label { font-size: 0.8rem; font-weight: 800; color: var(--primary-dark); letter-spacing: 0.05em; }
.month-label { font-size: 0.8rem; font-weight: 700; color: var(--primary); }
.date-chips-container { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.date-chip {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 14px; min-width: 60px; text-align: center; cursor: pointer; display: flex; flex-direction: column; transition: 0.2s;
}
.date-chip.active, .date-chip:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.day-name { font-size: 0.75rem; font-weight: 700; }
.day-number { font-size: 1.1rem; font-weight: 800; }
.time-capsules-container { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.time-capsule {
  background: var(--white); border: 1px solid var(--border); border-radius: 99px;
  padding: 8px 18px; font-size: 0.85rem; font-weight: 700; cursor: pointer; color: var(--text-dark); transition: 0.2s;
}
.time-capsule.active, .time-capsule:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-create-appointment {
  width: 100%; background: var(--primary); color: var(--white); border: none;
  padding: 14px; border-radius: 99px; font-size: 1rem; font-weight: 800; cursor: pointer;
  letter-spacing: 0.05em; box-shadow: 0 4px 15px rgba(60, 155, 122, 0.3); transition: 0.2s;
}
.btn-create-appointment:hover { background: var(--primary-dark); }
.mandatory-attendance-note {
  background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 12px;
  padding: 14px; display: flex; gap: 12px; align-items: flex-start;
}
.mandatory-attendance-note .note-content strong { color: #92400E; font-size: 0.85rem; display: block; }
.mandatory-attendance-note .note-content p { color: #78350F; font-size: 0.85rem; font-weight: 700; margin: 2px 0; }
.mandatory-attendance-note .note-content small { color: #B45309; font-size: 0.75rem; }
.chat-screen-wrapper {
  max-width: 700px; margin: 0 auto; background: var(--white);
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; height: 75vh; min-height: 550px;
}
.chat-header {
  background: var(--primary); color: var(--white); padding: 12px 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.chat-header-left { display: flex; align-items: center; gap: 10px; }
.btn-chat-back { background: none; border: none; color: var(--white); cursor: pointer; padding: 4px; display: flex; }
.chat-doctor-profile { display: flex; align-items: center; gap: 10px; }
.chat-avatar-wrap { position: relative; width: 42px; height: 42px; border-radius: 50%; }
.chat-doc-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.chat-status-dot.online { position: absolute; bottom: 0; right: 0; width: 10px; height: 10px; border-radius: 50%; background: #10B981; border: 2px solid var(--white); }
.chat-doc-name { font-size: 1rem; font-weight: 700; }
.chat-doc-status { font-size: 0.75rem; opacity: 0.85; }
.chat-header-right { display: flex; gap: 6px; }
.btn-header-icon { background: none; border: none; color: var(--white); padding: 6px; border-radius: 6px; cursor: pointer; }
.chat-messages-container {
  flex: 1; padding: 20px; overflow-y: auto; background: var(--white);
  display: flex; flex-direction: column; gap: 14px;
}
.chat-date-separator { text-align: center; margin: 6px 0; }
.chat-date-separator span { background: var(--bg-soft); color: var(--text-muted); font-size: 0.75rem; padding: 4px 12px; border-radius: 99px; }
.chat-disclaimer-pill { text-align: center; }
.chat-disclaimer-pill span { background: #FEF3C7; color: #92400E; font-size: 0.75rem; padding: 4px 12px; border-radius: 99px; }
.chat-bubble-row { display: flex; gap: 10px; max-width: 82%; }
.chat-bubble-row.doc-row { align-self: flex-start; }
.chat-bubble-row.user-row { align-self: flex-end; justify-content: flex-end; }
.bubble-avatar-small { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.bubble-avatar-small img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.chat-bubble { padding: 12px 16px; border-radius: 16px; font-size: 0.9rem; line-height: 1.4; position: relative; }
.doc-bubble { background: var(--bg-soft); color: var(--text-dark); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.bubble-sender-name { font-size: 0.75rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.user-bubble { background: var(--primary); color: var(--white); border-bottom-right-radius: 4px; }
.bubble-meta, .bubble-time { display: block; font-size: 0.7rem; margin-top: 4px; text-align: right; opacity: 0.8; }
.read-ticks { color: #A7F3D0; margin-left: 4px; font-weight: 800; }
.typing-indicator-row { display: flex; gap: 10px; align-items: center; align-self: flex-start; }
.typing-bubble { background: var(--bg-soft); border: 1px solid var(--border); padding: 8px 14px; border-radius: 16px; display: flex; gap: 4px; }
.typing-dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; animation: typing 1s infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.vn-recording-bar { background: #FEE2E2; padding: 10px 18px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #FECACA; }
.vn-rec-info { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #DC2626; font-size: 0.85rem; }
.rec-red-dot { width: 10px; height: 10px; border-radius: 50%; background: #DC2626; animation: pulse 1s infinite; }
.vn-rec-actions button { border: none; padding: 6px 12px; border-radius: 6px; font-weight: 700; font-size: 0.8rem; cursor: pointer; }
.btn-cancel-vn { background: none; color: #DC2626; }
.btn-send-vn { background: #DC2626; color: var(--white); }
.attachment-preview-tray { background: var(--bg-soft); padding: 8px 16px; border-top: 1px solid var(--border); }
.attached-file-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--border); padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; }
.btn-remove-attach { background: none; border: none; cursor: pointer; color: #EF4444; }
.chat-input-bar { padding: 12px 16px; background: var(--white); border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: center; }
.input-inner-wrapper { flex: 1; display: flex; align-items: center; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 99px; padding: 4px 8px; }
.btn-chat-tool { background: none; border: none; padding: 6px 8px; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; }
.chat-text-input { flex: 1; border: none; background: none; outline: none; font-size: 0.9rem; padding: 6px 8px; font-family: inherit; }
.btn-send-circle { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: var(--white); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; flex-shrink: 0; }
.btn-send-circle:hover { background: var(--primary-dark); }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal-card { background: var(--white); border-radius: var(--radius); padding: 24px; max-width: 440px; width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.15); text-align: center; }
.modal-card.modal-wide { max-width: 600px; text-align: left; }
.modal-header-icon.success { width: 50px; height: 50px; border-radius: 50%; background: #D1FAE5; color: #065F46; font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.modal-title { font-size: 1.25rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 4px; }
.modal-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.ticket-receipt { background: var(--bg-soft); border: 1px dashed var(--primary); border-radius: 12px; padding: 16px; text-align: left; margin-bottom: 20px; }
.receipt-row { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 8px; }
.queue-number { color: var(--primary); font-size: 1.1rem; }
.receipt-note { border-top: 1px dashed var(--border); padding-top: 10px; margin-top: 10px; font-size: 0.75rem; font-weight: 700; color: #92400E; text-align: center; }
.modal-actions { display: flex; gap: 10px; flex-direction: column; }
.btn-modal-primary { background: var(--primary); color: var(--white); border: none; padding: 10px; border-radius: 8px; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; }
.btn-modal-secondary { background: var(--bg-soft); color: var(--primary); border: 1px solid var(--border); padding: 10px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.modal-top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-close-x { background: none; border: none; font-size: 1.2rem; cursor: pointer; }
.faq-list { display: flex; flex-direction: column; gap: 12px; text-align: left; margin-bottom: 16px; }
.faq-item strong { font-size: 0.9rem; color: var(--primary-dark); display: block; }
.faq-item p { font-size: 0.8rem; color: var(--text-muted); }
.hidden { display: none !important; }
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast-item { background: var(--primary-dark); color: var(--white); padding: 12px 18px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; box-shadow: 0 4px 15px rgba(0,0,0,0.2); animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .mobile-dots-btn { display: block; }
  .location-card { grid-template-columns: 1fr; }
}