/* ============================================================
   LINKBIO — Premium Design System
   Zero emojis, all SVG. Mobile-first. No AI vibes.
   ============================================================ */

:root {
  --bg: #5C5C5C;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-dark: rgba(20, 20, 20, 0.85);
  --bg-dark-soft: rgba(30, 30, 30, 0.85);
  --bg-chat: #F7F2ED;
  --bg-bubble: rgba(237, 237, 235, 0.9);
  --bg-user-bubble: rgba(42, 42, 42, 0.9);

  --text-primary: #141414;
  --text-secondary: #6B6B6B;
  --text-white: #FFFFFF;
  --text-muted: #9A9A9A;

  --green: #5A7D5A;
  --green-light: #6B8E6B;
  --warm: #8B7B6B;
  --gold: #B89B5E;
  --red: #C0392B;

  --max-w: 420px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-full: 50%;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.18);
  --shadow-chat: 0 -2px 40px rgba(0,0,0,0.3);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 180ms;
  --normal: 280ms;
  --slow: 420ms;
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #121214;
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/fundoempresa.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
  filter: blur(6px);
  z-index: -1;
  pointer-events: none;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── Page ─── */
.page-wrapper {
  width: 100%;
  max-width: var(--max-w);
  padding: 28px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ─── Glassmorphism Utility ─── */
.chat-trigger-banner,
.calendar-section,
.whatsapp-card,
.service-modal-content,
.chat-widget,
.calendar-pane .time-slot,
.calendar-pane .service-opt,
.calendar-form input {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ============================================================
   PROFILE
   ============================================================ */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}

.profile-avatar {
  width: 82px;
  height: 82px;
  border-radius: var(--r-full);
  overflow: hidden;
  border: 2.5px solid rgba(255,255,255,0.2);
  margin-bottom: 10px;
  background: #444;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.profile-tagline {
  font-size: 0.75rem;
  color: #F26522; /* Laranja inspirado na logo */
  margin-top: 3px;
  line-height: 1.45;
  font-weight: 600;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  transition: all var(--fast) var(--ease);
}
.social-icon:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-2px);
}

/* ============================================================
   CHAT TRIGGER BANNER
   ============================================================ */
.chat-trigger-banner {
  margin: 0 16px;
  background: var(--bg-dark);
  border-radius: var(--r-lg);
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all var(--normal) var(--ease);
}
.chat-trigger-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}
.chat-trigger-banner:active { transform: scale(0.99); }

.banner-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  flex-shrink: 0;
}

.banner-text { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.banner-title { font-size: 0.8rem; font-weight: 600; color: var(--text-white); }
.banner-subtitle { font-size: 0.68rem; color: var(--text-muted); }
.banner-arrow { color: var(--text-muted); flex-shrink: 0; }

/* ============================================================
   SERVICES CAROUSEL
   ============================================================ */
.services-section { padding: 0; margin: 0 24px; }

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  margin-bottom: 10px;
}

.section-icon {
  width: 22px;
  height: 22px;
  border-radius: var(--r-full);
  background: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
}

.section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-white);
}

/* Carousel Track */
.carousel-container {
  position: relative;
  width: 100%;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--bg-dark);
  color: var(--text-white);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all var(--fast) var(--ease);
}
.carousel-arrow:hover {
  background: var(--brand-orange);
  color: #fff;
}
.carousel-arrow.left {
  left: -26px;
}
.carousel-arrow.right {
  right: -26px;
}
.carousel-arrow svg {
  width: 18px;
  height: 18px;
}

.carousel-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 6px 0;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

/* Carousel Card */
.carousel-card {
  min-width: 140px;
  max-width: 140px;
  scroll-snap-align: start;
  flex-shrink: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-card);
  transition: transform var(--fast) var(--ease);
  display: flex;
  flex-direction: column;
}
.carousel-card:hover { transform: translateY(-2px); }

.carousel-card-img {
  position: relative;
  width: 100%;
  height: 155px;
  overflow: hidden;
}
.carousel-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.card-overlay-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.carousel-card-footer {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
  justify-content: space-between;
}

.carousel-card-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.carousel-card-btn {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 7px 12px;
  border-radius: var(--r-xl);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all var(--fast) var(--ease);
  text-align: center;
}
.carousel-card-btn:hover { background: #333; }
.carousel-card-btn:active { transform: scale(0.97); }

/* ============================================================
   SERVICE DETAIL MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all var(--normal) var(--ease);
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.service-modal {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 380px;
  max-height: 85vh;
  background: var(--bg-card);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  z-index: 901;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transition: transform var(--slow) var(--ease);
}
.service-modal.active {
  transform: translateX(-50%) translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all var(--fast) var(--ease);
}
.modal-close:hover { background: rgba(0,0,0,0.6); }

.modal-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
}
.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-image .modal-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 40%, transparent);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.modal-image .modal-img-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.modal-body { padding: 18px 20px 20px; }
.modal-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.modal-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.modal-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 14px;
  border-radius: var(--r-lg);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all var(--fast) var(--ease);
}
.modal-cta:hover { background: #2a2a2a; }
.modal-cta:active { transform: scale(0.98); }

/* ============================================================
   CALENDAR
   ============================================================ */
.calendar-section {
  margin: 0 16px;
  background: var(--bg-dark-soft);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--shadow-chat);
  border: 1px solid rgba(255,255,255,0.05);
}

.calendar-header-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--text-muted);
}
.calendar-header-info div { display: flex; flex-direction: column; }
.calendar-label { font-size: 0.68rem; color: rgba(255, 255, 255, 0.8); }
.calendar-sublabel {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-white);
  margin-top: 1px;
}

.calendar-tabs {
  display: flex;
  gap: 3px;
  margin-bottom: 10px;
  background: rgba(0,0,0,0.3);
  border-radius: var(--r-xl);
  padding: 3px;
}

.calendar-tab {
  flex: 1;
  padding: 6px 2px;
  border-radius: var(--r-xl);
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--fast) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
}
.calendar-tab.active {
  background: var(--bg-dark);
  color: var(--text-white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cal-month {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
  color: var(--text-white);
}

.cal-prev, .cal-next {
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--fast) var(--ease);
}
.cal-prev:hover, .cal-next:hover { background: #f0f0f0; }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.cal-day-name {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-white);
  padding: 3px 0;
}

.calendar-days {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: var(--r-full);
  cursor: pointer;
  color: var(--text-white);
  transition: all var(--fast) var(--ease);
}
.cal-day:hover { background: #f0f0f0; color: #141414; }
.cal-day.today { background: var(--bg-dark); color: white; font-weight: 700; }
.cal-day.other-month { color: #d5d5d5; }
.cal-day.selected { background: var(--green); color: white; }

.calendar-legend {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  color: var(--text-secondary);
}
.legend-dot { width: 7px; height: 7px; border-radius: var(--r-full); }
.legend-dot.available { background: var(--green); }
.legend-dot.busy { background: var(--red); }

/* ============================================================
   CALENDAR PANES
   ============================================================ */
.calendar-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}
.calendar-pane.active {
  display: block;
}

.time-slots, .service-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 15px;
}
.time-slot, .service-opt {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  padding: 12px;
  color: var(--text-white);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}
.time-slot:hover, .service-opt:hover {
  background: rgba(255, 255, 255, 0.08);
}
.time-slot.selected, .service-opt.selected {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
  font-weight: 600;
}

.calendar-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}
.calendar-form input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  padding: 12px 14px;
  color: var(--text-white);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.calendar-form input:focus {
  border-color: var(--brand-orange);
}
.calendar-form .submit-btn {
  background: var(--brand-orange);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 5px;
  transition: opacity 0.2s;
}
.calendar-form .submit-btn:hover {
  opacity: 0.9;
}

/* ============================================================
   WHATSAPP
   ============================================================ */
.whatsapp-section {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.whatsapp-card {
  border-radius: var(--r-lg);
  padding: 14px;
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}
.wa-green { background: var(--green); }
.wa-warm { background: var(--warm); }

.whatsapp-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 110px;
  height: 110px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.05);
}

.wa-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3px;
}

.wa-info { display: flex; flex-direction: column; gap: 0; }
.wa-title { font-size: 0.76rem; font-weight: 700; }
.wa-number { font-size: 0.62rem; opacity: 0.65; }
.wa-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  background: rgba(255,255,255,0.16);
  border-radius: var(--r-xl);
  padding: 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-white);
  transition: all var(--fast) var(--ease);
  position: relative;
  z-index: 1;
}
.wa-btn:hover { background: rgba(255,255,255,0.26); }

/* ============================================================
   FOOTER
   ============================================================ */
.page-footer {
  text-align: center;
  padding: 30px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.footer-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.footer-signature {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: var(--text-white);
  font-weight: 600;
  line-height: 1;
}

/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */
body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
body::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
body::-webkit-scrollbar-thumb {
  background: var(--brand-orange);
  border-radius: 10px;
}
body::-webkit-scrollbar-thumb:hover {
  background: #d85515;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.page-wrapper {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  position: relative;
  padding-bottom: 40px;
}

/* ============================================================
   CHAT WIDGET
   ============================================================ */
.chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--normal) var(--ease);
}
.chat-overlay.active { opacity: 1; visibility: visible; }

.chat-widget {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  visibility: hidden;
  width: 100%;
  max-width: 440px;
  height: 85vh;
  max-height: 620px;
  background: var(--bg-chat);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-chat);
  transition: transform var(--slow) var(--ease), visibility var(--slow);
  overflow: hidden;
}
.chat-widget.active {
  transform: translateX(-50%) translateY(0);
  visibility: visible;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.chat-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-header-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  overflow: hidden;
  background: #ddd;
}
.chat-header-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-header-text { display: flex; flex-direction: column; }
.chat-header-name { font-size: 0.84rem; font-weight: 700; }
.chat-header-status {
  font-size: 0.65rem;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: #4CAF50;
}
.chat-close {
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--fast) var(--ease);
}
.chat-close:hover { background: #f0f0f0; }

/* Chat Body */
.chat-body {
  flex: 1;
  overflow-y: auto;
  position: relative;
}

.chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  height: 100%;
}
.chat-welcome.hidden { display: none; }

.welcome-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--r-full);
  overflow: hidden;
  border: 2.5px solid rgba(0,0,0,0.05);
  margin-bottom: 14px;
  background: #ddd;
}
.welcome-avatar img { width: 100%; height: 100%; object-fit: cover; }
.welcome-title { font-size: 1.05rem; font-weight: 700; }
.welcome-subtitle { font-size: 0.8rem; color: var(--text-secondary); margin-top: 3px; }
.welcome-btn {
  margin-top: 20px;
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 12px 30px;
  border-radius: var(--r-xl);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--fast) var(--ease);
}
.welcome-btn:hover { background: #2a2a2a; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* Messages */
.chat-messages {
  display: none;
  flex-direction: column;
  padding: 14px;
  gap: 6px;
  overflow-y: auto;
  height: 100%;
}
.chat-messages.active { display: flex; }

.message {
  max-width: 82%;
  animation: msgIn var(--normal) var(--ease);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.message.bot { align-self: flex-start; }
.message.user { align-self: flex-end; }
.message-bubble {
  padding: 9px 13px;
  border-radius: var(--r-lg);
  font-size: 0.8rem;
  line-height: 1.45;
}
.message.bot .message-bubble {
  background: var(--bg-bubble);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.message.user .message-bubble {
  background: var(--bg-user-bubble);
  color: var(--text-white);
  border-bottom-right-radius: 4px;
}

/* Options */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
  animation: msgIn var(--normal) var(--ease);
}
.option-btn {
  padding: 9px 13px;
  border: 1.5px solid #ddd;
  border-radius: var(--r-lg);
  font-size: 0.76rem;
  color: var(--text-primary);
  text-align: left;
  line-height: 1.35;
  background: var(--bg-card);
  transition: all var(--fast) var(--ease);
}
.option-btn:hover { border-color: var(--text-primary); }
.option-btn:active { transform: scale(0.98); }
.option-btn.selected {
  border-color: var(--bg-user-bubble);
  background: var(--bg-user-bubble);
  color: var(--text-white);
}

/* Typing */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  align-self: flex-start;
}
.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: #bbb;
  animation: bounce 1.3s infinite ease-in-out;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.12s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.24s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Chat Input */
.input-wrapper {
  margin-top: 4px;
  animation: msgIn var(--normal) var(--ease);
}
.chat-input-container {
  display: flex;
  gap: 6px;
  background: var(--bg-card);
  border: 1.5px solid #ddd;
  border-radius: var(--r-lg);
  padding: 3px 3px 3px 12px;
  align-items: center;
  transition: border-color var(--fast) var(--ease);
}
.chat-input-container:focus-within { border-color: var(--text-primary); }
.chat-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--text-primary);
  background: transparent;
  padding: 7px 0;
}
.chat-input::placeholder { color: #bbb; }
.chat-send {
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  background: var(--bg-dark);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--fast) var(--ease);
}
.chat-send:hover { background: #333; }

/* Analysis Card */
.analysis-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 14px;
  margin-top: 4px;
  box-shadow: var(--shadow-sm);
  animation: msgIn var(--slow) var(--ease);
  border-left: 3px solid var(--gold);
}
.analysis-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}
.analysis-icon-wrap {
  width: 22px;
  height: 22px;
  border-radius: var(--r-full);
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.analysis-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.analysis-text {
  font-size: 0.76rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Result Card */
.result-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 6px;
  box-shadow: var(--shadow-md);
  animation: resultIn var(--slow) var(--ease);
}
@keyframes resultIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.result-badge {
  padding: 10px 14px 0;
}
.badge-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}
.badge-icon {
  width: 18px;
  height: 18px;
  border-radius: var(--r-full);
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.result-image-wrap {
  width: calc(100% - 24px);
  height: 160px;
  margin: 8px 12px;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
}
.result-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.result-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.65), transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.result-image-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: white;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.result-body { padding: 0 14px 14px; }
.result-service-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.result-service-desc {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.result-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: #25D366;
  color: var(--text-white) !important;
  padding: 13px;
  border-radius: var(--r-lg);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--fast) var(--ease);
}
.result-cta:hover { background: #1ebe5d; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
.chat-body::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-body::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-body::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 10px; }

/* ============================================================
   SHAKE
   ============================================================ */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15%, 45%, 75% { transform: translateX(-3px); }
  30%, 60%, 90% { transform: translateX(3px); }
}
.shake { animation: shake 0.45s ease-in-out; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Mobile: Chat fullscreen */
@media (max-width: 480px) {
  .chat-widget {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .service-modal {
    max-width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
  }

  .carousel-card {
    min-width: 140px;
    max-width: 140px;
  }
  .carousel-card-img { height: 150px; }
}

/* Desktop */
@media (min-width: 481px) {
  .chat-widget {
    bottom: 16px;
    border-radius: var(--r-xl);
  }
}

/* Very small */
@media (max-width: 360px) {
  .page-wrapper { padding: 20px 0 24px; }
  .carousel-card { min-width: 130px; max-width: 130px; }
  .carousel-card-img { height: 140px; }
}
