/* ================================================================
   SULTAN HOLDINGS — SHARED SITE STYLES
   Linked by: index.php · listings.php · listing-details.php · instagram.php
   Edit once → applies everywhere.
================================================================ */

/* 1. :ROOT — CORE CUSTOM PROPERTIES
   (pages override page-specific scale vars in their own <style>)
================================================================ */
:root {
  /* Colors */
  --black:          #0A0A0A;
  --charcoal:       #141414;
  --graphite:       #1E1E1E;
  --white:          #F5F5F0;
  --off-white:      #EBEBE4;
  --gold:           #745500;
  --gold-dim:       #8A6E2F;
  --gold-tint:      rgba(201, 168, 76, 0.08);
  --muted:          #000000;
  --border:         rgba(255, 255, 255, 0.08);
  --border-gold:    rgba(201, 168, 76, 0.35);

  /* Light theme palette */
  --page-bg:        #FAF8F2;
  --sand:           #EDE4D4;
  --bronze:         #3D2B1F;
  --bronze-dim:     #7A6050;
  --border-light:   rgba(61, 43, 31, 0.14);

  /* Typography */
  --font-display:   'Cormorant', Georgia, serif;
  --font-body:      'DM Sans', system-ui, sans-serif;

  /* Type scale (pages override as needed) */
  --text-body:      15px;
  --text-ui:        13px;
  --text-label:     11px;

  /* Spacing */
  --section-pad-v:  110px;
  --section-pad-h:  80px;
  --container-max:  1280px;

  /* Easing */
  --ease-spring:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth:    cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:       cubic-bezier(0, 0, 0.2, 1);

  /* Z-index */
  --z-base:         1;
  --z-card:         10;
  --z-nav:          100;
  --z-overlay:      200;
  --z-loader:       400;
  --z-wa:           300;
  --z-message:      320;
  --z-message-modal: 340;
}

/* 2. RESET
================================================================ */
html { overflow-x: hidden; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.8;
  color: var(--bronze);
  background: var(--page-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { overflow-x: hidden; }
img  { display: block; width: 100%; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* 3. UTILITY CLASSES
================================================================ */
.eyebrow {
  display: inline-block;
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 14px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-section, clamp(34px, 5vw, 60px));
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--bronze);
}

.heading-white { color: var(--white); }

.gold-divider {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 28px 0;
}

.btn-gold, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 2px;
  font-size: var(--text-ui);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 300ms var(--ease-smooth),
              background 300ms var(--ease-smooth),
              border-color 300ms var(--ease-smooth),
              color 300ms var(--ease-smooth);
}
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-dim); transform: scale(1.02); }
.btn-ghost { border: 1.5px solid var(--border-gold); color: var(--bronze); background: transparent; }
.btn-ghost:hover { background: var(--gold-tint); border-color: var(--gold); color: var(--bronze); transform: scale(1.02); }

/* 4. ANNOUNCEMENT BAR
================================================================ */
.announce-bar {
  position: relative;
  height: 38px;
  background: var(--gold);
  overflow: hidden;
  z-index: calc(var(--z-nav) + 1);
}
.announce-track {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: announce-scroll 40s linear infinite;
  will-change: transform;
}
.announce-bar:hover .announce-track {
  animation-play-state: paused;
}

/* Clickable offer items */
.announce-item {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  padding: 0 28px;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 38px;
  position: relative;
  transition: color 180ms ease, background 180ms ease;
  border-radius: 0;
}
.announce-item:hover {
  color: var(--black);
  background: rgba(0, 0, 0, 0.10);
}
.announce-item::before {
  content: '▸';
  font-size: 9px;
  margin-right: 7px;
  opacity: 0.7;
  vertical-align: 1px;
}

/* Dot separator */
.announce-sep {
  font-size: 10px;
  color: rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  user-select: none;
}

.announce-phone {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding-left: 16px;
  z-index: 2;
  text-decoration: none;
  transition: opacity 180ms ease;
}
.announce-phone:hover { opacity: 0.75; }

@keyframes announce-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 5. NAVIGATION
================================================================ */
#nav {
  position: fixed;
  top: 38px;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  transition: top 300ms var(--ease-smooth),
              background 300ms var(--ease-smooth),
              border-color 300ms var(--ease-smooth);
}
#nav.nav-scrolled {
  top: 0;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-h);
  height: 68px;
  gap: 20px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 200ms ease;
}
.nav-logo:hover .logo-img { transform: scale(1.04); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-link {
  position: relative;
  font-size: var(--text-ui);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 4px 0;
  transition: color 250ms var(--ease-smooth);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 220ms var(--ease-smooth);
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.btn-consult {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: transparent;
  color: var(--white);
  font-size: var(--text-ui);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1.5px solid var(--border-gold);
  transition: background 250ms var(--ease-smooth),
              border-color 250ms var(--ease-smooth),
              color 250ms var(--ease-smooth);
}
.btn-consult:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

/* 5b. PROJECTS DROPDOWN
================================================================ */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
}
.nav-dropdown-trigger .drop-chevron {
  flex-shrink: 0;
  transition: transform 220ms var(--ease-smooth);
}
.nav-dropdown:hover .drop-chevron,
.nav-dropdown.is-open .drop-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 210px;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(201, 168, 76, 0.25);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease,
              visibility 200ms ease,
              transform 200ms ease;
  z-index: calc(var(--z-nav) + 1);
  pointer-events: none;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.nav-dropdown-arrow {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgba(10, 10, 10, 0.97);
  border-left: 1px solid rgba(201, 168, 76, 0.25);
  border-top: 1px solid rgba(201, 168, 76, 0.25);
}
.nav-dropdown-all {
  display: block;
  padding: 10px 20px 11px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 3px;
  transition: color 200ms ease;
}
.nav-dropdown-all:hover { color: var(--white); }
.nav-dropdown-item {
  display: block;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.03em;
  transition: color 200ms ease, background 200ms ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}
.nav-dropdown-item:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}
.nav-dropdown-empty {
  display: block;
  padding: 10px 20px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

/* Mobile projects accordion
================================================================ */
.mobile-projects-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  gap: 12px;
}
.mobile-projects-chevron {
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 250ms var(--ease-smooth), color 250ms ease;
}
.mobile-projects-toggle.is-open .mobile-projects-chevron {
  transform: rotate(90deg);
  color: var(--gold);
}
.mobile-projects-list {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 10px 0 8px 20px;
  border-left: 1px solid rgba(201, 168, 76, 0.35);
  margin-left: 6px;
}
.mobile-projects-list.is-open { display: flex; }
.mobile-projects-all {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 8px;
  transition: color 200ms ease;
}
.mobile-projects-all:hover { color: var(--white); }
.mobile-projects-link {
  font-family: var(--font-body);
  font-size: clamp(18px, 3.2vw, 26px);
  font-weight: 300;
  color: rgba(245, 245, 240, 0.6);
  letter-spacing: 0.02em;
  padding: 7px 0;
  transition: color 200ms ease;
  display: block;
  text-decoration: none;
}
.mobile-projects-link:hover { color: var(--white); }

/* 6. HAMBURGER
================================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 300ms var(--ease-spring), opacity 200ms ease;
  transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* 7. MOBILE OVERLAY
================================================================ */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: calc(var(--z-nav) - 1);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 var(--section-pad-h);
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms var(--ease-smooth);
}
.mobile-overlay.is-open { opacity: 1; pointer-events: all; }
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.mobile-nav-link {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.1;
  display: inline-block;
  transition: color 200ms ease;
}
.mobile-nav-link:hover { color: var(--gold); }
.mobile-overlay-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  width: 100%;
}
.mobile-overlay-footer a {
  display: block;
  font-size: var(--text-ui);
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  transition: color 200ms ease;
}
.mobile-overlay-footer a:hover { color: var(--gold); }

/* 8. FOOTER
================================================================ */
#footer {
  border-top: 1px solid rgba(201, 168, 76, 0.14);
  background: var(--charcoal);
  padding: 64px var(--section-pad-h) 24px;
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-brand .footer-tagline {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 8px;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}
.footer-social a { color: var(--muted); transition: color 200ms ease; }
.footer-social a:hover { color: var(--gold); }
.footer-col-title {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 16px;
}
.footer-links { display: grid; gap: 10px; }
.footer-links a,
.footer-address,
.footer-tagline,
.footer-phone,
.footer-email { color: var(--muted); font-style: normal; }
.footer-links a:hover,
.footer-phone:hover,
.footer-email:hover { color: var(--gold); transition: color 220ms ease; }
.footer-bottom {
  max-width: var(--container-max);
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-bottom a { color: var(--gold); opacity: 0.8; transition: opacity 180ms ease; }
.footer-bottom a:hover { opacity: 1; }

/* 9. MESSAGING LAUNCHER + POPUP
================================================================ */

/* ── Launcher Button ── */
.message-launcher {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: var(--z-message);
  height: 60px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #0a0a0a;
  background: linear-gradient(135deg, #e8c55a 0%, #c9a84c 45%, #a57b28 100%);
  box-shadow:
    0 0 0 0 rgba(201,168,76,0),
    0 8px 32px rgba(201,168,76,0.35),
    0 20px 60px rgba(0,0,0,0.4);
  border: none;
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  pointer-events: none;
  transition:
    transform 360ms var(--ease-spring),
    opacity 360ms var(--ease-smooth),
    box-shadow 300ms ease;
}
.message-launcher.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.message-launcher:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 0 0 6px rgba(201,168,76,0.14),
    0 12px 36px rgba(201,168,76,0.42),
    0 24px 64px rgba(0,0,0,0.44);
}
.message-launcher:active { transform: translateY(-1px) scale(0.99); }
.message-launcher svg { flex-shrink: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.18)); }
.message-launcher-label {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  line-height: 1;
}
.message-launcher-label strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.message-launcher-label span {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  opacity: 0.7;
}
.message-pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--gold);
  opacity: 0;
  animation: waPulse 3s var(--ease-out) 2s infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { transform: scale(1);    opacity: 0.55; }
  65%  { transform: scale(1.85); opacity: 0;    }
  100% { transform: scale(1.85); opacity: 0;    }
}

/* ── Backdrop ── */
.message-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-message-modal);
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease-smooth);
}
.message-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Modal Panel ── */
.message-modal {
  position: fixed;
  right: 32px;
  bottom: 108px;
  width: min(430px, calc(100vw - 28px));
  height: min(780px, calc(100dvh - 128px));
  max-height: min(780px, calc(100dvh - 128px));
  z-index: calc(var(--z-message-modal) + 1);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, #201d18 0%, #141312 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 18px 50px rgba(0,0,0,0.38);
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 280ms var(--ease-smooth), transform 280ms var(--ease-spring);
}
.message-modal.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.message-modal-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border-radius: 24px;
  overflow: hidden;
}

/* ── Modal Header ── */
.message-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 20px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.message-modal-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14) 40%, rgba(255,255,255,0.14) 60%, transparent);
}
.message-header-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 1;
  min-width: 0;
}
.message-header-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000000;
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: none;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: #201d18;
  letter-spacing: 0;
}
.message-header-avatar img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
}
.message-header-copy strong {
  display: block;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: 0;
}
.message-header-copy span {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255,255,255,0.65);
  opacity: 1;
}
.message-header-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74,222,128,0.7);
  animation: onlinePulse 2.4s ease-in-out infinite;
}
@keyframes onlinePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.message-close {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.72);
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease, transform 200ms ease;
}
.message-close:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  transform: none;
}

/* ── View Switching ── */
.message-view {
  display: none;
  flex: 1;
  min-height: 0;
}
.message-view.is-active {
  display: flex;
  flex-direction: column;
}
.message-home-body,
.message-flow-body {
  padding: 24px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* ── Home View ── */
.message-home-intro {
  color: rgba(201,168,76,0.65);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.message-home-intro::before {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3));
}
.message-home-intro::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,168,76,0.3), transparent);
}
.message-channel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 4px;
}

/* ── Channel + Option Cards ── */
.message-card,
.message-option {
  position: relative;
  width: 100%;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(160deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.02) 100%);
  padding: 20px 18px 18px;
  overflow: hidden;
  transition:
    border-color 240ms ease,
    transform 240ms var(--ease-spring),
    background 240ms ease,
    box-shadow 240ms ease;
}
.message-card::before,
.message-option::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(255,255,255,0.12) 50%, transparent 90%);
  border-radius: 16px 16px 0 0;
}
.message-card:hover,
.message-option:hover {
  border-color: rgba(201,168,76,0.38);
  background: linear-gradient(160deg, rgba(201,168,76,0.1) 0%, rgba(201,168,76,0.04) 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(201,168,76,0.12);
}
.message-option.is-selected {
  border-color: rgba(201,168,76,0.6);
  background: linear-gradient(160deg, rgba(201,168,76,0.15) 0%, rgba(201,168,76,0.06) 100%);
  box-shadow: 0 8px 32px rgba(201,168,76,0.15), 0 0 0 1px rgba(201,168,76,0.2);
}
.message-option.is-selected::after {
  content: '✓';
  position: absolute;
  top: 14px; right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: #0a0a0a;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.message-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 22px;
}
.message-card-icon.is-chat {
  background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(201,168,76,0.08));
  border: 1px solid rgba(201,168,76,0.2);
}
.message-card-icon.is-wa {
  background: linear-gradient(135deg, rgba(37,211,102,0.22), rgba(37,211,102,0.08));
  border: 1px solid rgba(37,211,102,0.22);
}
.message-card-label,
.message-option-title {
  display: block;
  color: var(--white);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.message-card-copy,
.message-option-copy {
  display: block;
  color: rgba(180,180,170,0.75);
  font-size: 12px;
  line-height: 1.65;
  margin-top: 6px;
}
.message-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}
.message-option-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}
.message-option-grid.is-project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ── Flow Progress Bar ── */
.message-flow-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}
.message-flow-dot {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  transition: background 320ms ease, box-shadow 320ms ease;
}
.message-flow-dot.is-active {
  background: rgba(255,255,255,0.55);
  box-shadow: none;
}
.message-flow-dot.is-complete {
  background: rgba(255,255,255,0.24);
}

/* ── Question Card ── */
.message-question-card {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  padding: 20px 20px 18px;
  margin-bottom: 4px;
}
.message-question-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.9;
}
.message-question-eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: rgba(255,255,255,0.24);
  opacity: 1;
}
.message-question-title {
  font-family: var(--font-body);
  font-size: 24px;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -0.01em;
  font-weight: 700;
}
.message-question-copy {
  color: rgba(255,255,255,0.66);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 8px;
}

.message-phone-panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.message-field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.message-field-control {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
.message-field-control::placeholder {
  color: rgba(180,180,170,0.4);
}
.message-field-control:focus {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
}
.message-field-note {
  margin-top: 10px;
  color: rgba(180,180,170,0.62);
  font-size: 12px;
  line-height: 1.65;
}

/* ── Flow Actions ── */
.message-flow-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 4px;
  flex-wrap: wrap;
}
.message-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(180,180,170,0.5);
  transition: color 200ms ease;
  padding: 6px 0;
}
.message-back::before {
  content: '←';
  font-size: 14px;
  transition: transform 200ms ease;
}
.message-back:hover {
  color: var(--white);
}
.message-back:hover::before { transform: translateX(-3px); }
.message-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8c55a 0%, #c9a84c 50%, #a57b28 100%);
  color: #0a0a0a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 6px 24px rgba(201,168,76,0.3);
  transition: transform 220ms var(--ease-spring), box-shadow 220ms ease, opacity 200ms ease;
}
.message-cta:hover:not([disabled]) {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(201,168,76,0.42);
}
.message-cta[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}
.message-flow-status {
  flex: 1 1 220px;
  min-width: 0;
  order: 2;
  color: rgba(180,180,170,0.58);
  font-size: 11.5px;
  line-height: 1.6;
  text-align: center;
}

/* ── Flow Summary ── */
.message-flow-summary {
  display: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .message-modal {
    right: 20px;
    bottom: 96px;
    width: min(430px, calc(100vw - 28px));
  }
  .message-launcher {
    right: 22px;
    bottom: 26px;
  }
}

@media (max-width: 540px) {
  .message-channel-grid,
  .message-option-grid.is-project-grid {
    grid-template-columns: 1fr;
  }
  .message-flow-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .message-launcher {
    right: 16px;
    bottom: 20px;
    height: 56px;
    padding: 0 16px 0 14px;
    gap: 10px;
  }
  .message-launcher-label span { display: none; }
  .message-modal {
    left: 8px;
    right: 8px;
    bottom: 78px;
    width: auto;
    height: calc(100dvh - 94px);
    max-height: calc(100dvh - 94px);
    border-radius: 20px;
  }
  .message-modal-shell {
    min-height: 0;
    height: 100%;
    max-height: 100%;
    border-radius: 20px;
  }
  .message-modal-header,
  .message-home-body,
  .message-flow-body {
    padding: 16px 16px 14px;
  }
  .message-question-title {
    font-size: 22px;
  }
  .message-header-copy strong {
    font-size: 17px;
  }
  .message-header-avatar {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
  .message-flow-status {
    order: 3;
    flex-basis: 100%;
    text-align: left;
  }
  .message-cta {
    padding: 0 20px;
    min-height: 46px;
    font-size: 10.5px;
  }
  .message-flow-actions {
    gap: 10px;
  }
  .message-home-body,
  .message-flow-body {
    padding-bottom: 18px;
  }
}

/* ================================================================
   REQUIREMENT FINDER SECTION (#requirement-finder)
================================================================ */
.req-section {
  padding: var(--section-pad-v) var(--section-pad-h);
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(201,168,76,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(201,168,76,0.05) 0%, transparent 55%),
    var(--sand);
  position: relative;
  overflow: hidden;
}
.req-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.30), transparent);
}

.req-wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* ── Left copy column ── */
.req-heading {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--bronze);
  margin-bottom: 20px;
}
.req-copy {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 40px;
}
.req-steps-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.req-step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.req-step-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  min-width: 28px;
}
.req-step-item > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.req-step-item strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--bronze);
  letter-spacing: -0.01em;
}
.req-step-item span {
  font-size: 12.5px;
  color: var(--muted);
}

/* ── Right finder card ── */
.req-finder {
  position: relative;
}
.req-card {
  background:
    linear-gradient(170deg, rgba(30,26,18,0.98) 0%, rgba(14,14,14,0.99) 100%);
  border: 1px solid rgba(201,168,76,0.20);
  border-radius: 20px;
  padding: 36px 32px 28px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 2px 0 rgba(255,255,255,0.06) inset,
    0 32px 80px rgba(0,0,0,0.55);
  position: relative;
  overflow: hidden;
}

/* ── Progress bar ── */
.req-progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  margin-bottom: 24px;
  overflow: hidden;
}
.req-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #c9a84c, #e8c96b);
  border-radius: 99px;
  transition: width 380ms cubic-bezier(0.22,1,0.36,1);
  width: 0%;
}

/* ── Step label ── */
.req-step-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 20px;
}

/* ── Question area ── */
.req-question-area {
  min-height: 180px;
}
.req-q-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.req-q-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ── Chips ── */
.req-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.req-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.req-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms, background 180ms, transform 140ms;
}
.req-chip:hover {
  border-color: rgba(201,168,76,0.45);
  background: rgba(201,168,76,0.06);
  transform: translateY(-2px);
}
.req-chip.is-sel {
  border-color: rgba(201,168,76,0.75);
  background: rgba(201,168,76,0.12);
  box-shadow: 0 0 0 1px rgba(201,168,76,0.30) inset;
}
.req-chip-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}
.req-chip.is-sel .req-chip-label { color: var(--gold); }
.req-chip-sub {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.3;
}

/* ── Skip link ── */
.req-skip {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  padding: 0;
  margin-top: 4px;
  transition: color 150ms;
}
.req-skip:hover { color: var(--gold); }

/* ── Phone input ── */
.req-phone-wrap { margin-top: 4px; }
.req-phone-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 180ms, background 180ms;
}
.req-phone-input::placeholder { color: rgba(140,140,133,0.6); }
.req-phone-input:focus {
  border-color: rgba(201,168,76,0.55);
  background: rgba(255,255,255,0.08);
}
.req-phone-note {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* ── Navigation ── */
.req-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
  gap: 12px;
}
.req-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.req-hint {
  font-size: 11.5px;
  color: var(--muted);
}
.req-btn-back {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 150ms;
}
.req-btn-back:hover { color: var(--white); }
.req-btn-next {
  height: 42px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #c9a84c 0%, #a07830 100%);
  color: #0a0a0a;
  border: none;
  cursor: pointer;
  transition: opacity 160ms, transform 160ms;
  white-space: nowrap;
}
.req-btn-next:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.req-btn-next:active:not(:disabled) { transform: translateY(0); }
.req-btn-next:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Success state ── */
.req-success {
  background:
    linear-gradient(170deg, rgba(30,26,18,0.98) 0%, rgba(14,14,14,0.99) 100%);
  border: 1px solid rgba(201,168,76,0.20);
  border-radius: 20px;
  padding: 60px 32px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.55);
}
.req-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.40);
  color: var(--gold);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.req-success h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.req-success p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 340px;
  margin: 0 auto 28px;
}
.req-restart {
  height: 42px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold);
  cursor: pointer;
  transition: background 150ms;
}
.req-restart:hover { background: rgba(201,168,76,0.17); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .req-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .req-intro { order: 1; }
  .req-finder { order: 2; }
  .req-copy { max-width: 100%; }
}
@media (max-width: 540px) {
  .req-section {
    padding: 64px 20px;
  }
  .req-card, .req-success {
    padding: 28px 20px 22px;
  }
  .req-chips-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   INVESTOR TRUST METRICS
================================================================ */
.inv-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(201,168,76,.18);
  border: 1px solid rgba(201,168,76,.22);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 2rem;
}
.inv-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 1.6rem 1.4rem;
  background: var(--page-bg);
  transition: background .25s;
}
.inv-metric:hover { background: var(--sand); }
.inv-metric-num {
  font-size: 2.4rem;
  font-weight: 700;
  color: #C9A84C;
  line-height: 1;
  letter-spacing: -.5px;
}
.inv-metric-num sup {
  font-size: .9rem;
  font-weight: 600;
  vertical-align: super;
  color: #C9A84C;
}
.inv-metric-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--bronze);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.inv-metric-sub {
  font-size: .74rem;
  color: var(--bronze-dim);
  line-height: 1.4;
}

@media (max-width: 540px) {
  .inv-metrics { grid-template-columns: 1fr 1fr; }
  .inv-metric { padding: 1.2rem 1rem; }
  .inv-metric-num { font-size: 2rem; }
}

/* ================================================================
   AI CHAT WIDGET
================================================================ */

/* ── AI Launcher Button ── */
.ai-launcher {
  position: fixed;
  right: 32px;
  bottom: 108px; /* sits above the WhatsApp launcher */
  z-index: var(--z-message);
  height: 52px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--white);
  background: linear-gradient(135deg, #2a2a2a 0%, #141414 100%);
  border: 1px solid rgba(201,168,76,0.30);
  box-shadow:
    0 0 0 0 rgba(201,168,76,0),
    0 6px 24px rgba(0,0,0,0.55),
    0 1px 0 rgba(255,255,255,0.06) inset;
  opacity: 0;
  transform: translateY(16px) scale(0.92);
  pointer-events: none;
  transition:
    transform 360ms var(--ease-spring),
    opacity 360ms var(--ease-smooth),
    box-shadow 300ms ease,
    border-color 200ms ease;
}
.ai-launcher.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.ai-launcher:hover {
  border-color: rgba(201,168,76,0.65);
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 0 0 5px rgba(201,168,76,0.10),
    0 10px 32px rgba(0,0,0,0.6),
    0 1px 0 rgba(255,255,255,0.08) inset;
}
.ai-launcher:active { transform: translateY(-1px) scale(0.99); }
.ai-launcher svg { flex-shrink: 0; color: var(--gold); }

.ai-launcher-label {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
}
.ai-launcher-label strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.ai-launcher-label span {
  font-size: 10px;
  letter-spacing: 0.03em;
  opacity: 0.55;
  color: var(--white);
}

/* ── AI Chat Panel ── */
.ai-chat-panel {
  position: fixed;
  right: 32px;
  bottom: 172px; /* above AI launcher */
  width: min(390px, calc(100vw - 28px));
  max-height: min(560px, calc(100vh - 200px));
  z-index: calc(var(--z-message-modal) + 2);
  border-radius: 22px;
  border: 1px solid rgba(201,168,76,0.18);
  background:
    radial-gradient(ellipse 80% 35% at 50% 0%, rgba(201,168,76,0.10) 0%, transparent 60%),
    linear-gradient(175deg, rgba(24,20,14,0.99) 0%, rgba(10,10,10,0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 2px 0 rgba(255,255,255,0.05) inset,
    0 36px 100px rgba(0,0,0,0.70),
    0 8px 28px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--ease-smooth), transform 260ms var(--ease-spring);
}
.ai-chat-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ── AI Chat Header ── */
.ai-chat-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.025);
  position: relative;
}
.ai-chat-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.35), transparent);
}
.ai-chat-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #c9a84c 0%, #8a6e2f 100%);
  color: #0a0a0a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-chat-header-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.ai-chat-header-copy strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.ai-chat-header-copy span {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.ai-chat-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5ecb6d;
  box-shadow: 0 0 5px rgba(94,203,109,0.7);
  display: inline-block;
  flex-shrink: 0;
}
.ai-chat-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  transition: background 150ms, border-color 150ms, color 150ms;
  cursor: pointer;
  flex-shrink: 0;
}
.ai-chat-close:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.10);
  color: var(--white);
}

/* ── Messages area ── */
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.ai-chat-messages::-webkit-scrollbar { width: 4px; }
.ai-chat-messages::-webkit-scrollbar-track { background: transparent; }
.ai-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(201,168,76,0.2);
  border-radius: 4px;
}

/* ── Individual message ── */
.ai-msg {
  display: flex;
  animation: aiMsgIn 220ms var(--ease-spring) both;
}
@keyframes aiMsgIn {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0);   }
}
.ai-msg-bot  { justify-content: flex-start; }
.ai-msg-user { justify-content: flex-end;   }

.ai-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.65;
  word-break: break-word;
}
.ai-msg-bot .ai-bubble {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(245,245,240,0.92);
  border-bottom-left-radius: 5px;
}
.ai-msg-user .ai-bubble {
  background: linear-gradient(135deg, #c9a84c 0%, #a07830 100%);
  color: #0a0a0a;
  font-weight: 500;
  border-bottom-right-radius: 5px;
  border: none;
}

/* ── Typing indicator ── */
.ai-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 14px !important;
}
.ai-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  animation: aiDot 1.2s ease-in-out infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.18s; }
.ai-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes aiDot {
  0%, 80%, 100% { transform: scale(0.65); opacity: 0.35; }
  40%            { transform: scale(1);    opacity: 1;    }
}

/* ── Input row ── */
.ai-chat-input-row {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.ai-chat-input {
  flex: 1;
  min-height: 38px;
  max-height: 100px;
  padding: 9px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 13px;
  line-height: 1.5;
  resize: none;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
  overflow-y: auto;
}
.ai-chat-input::placeholder { color: rgba(140,140,133,0.7); }
.ai-chat-input:focus {
  border-color: rgba(201,168,76,0.50);
  background: rgba(255,255,255,0.08);
}
.ai-chat-input:disabled { opacity: 0.4; cursor: not-allowed; }

.ai-chat-send {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c9a84c 0%, #a07830 100%);
  color: #0a0a0a;
  border: none;
  cursor: pointer;
  transition: opacity 160ms ease, transform 160ms ease;
}
.ai-chat-send:hover   { opacity: 0.88; transform: scale(1.06); }
.ai-chat-send:active  { transform: scale(0.96); }
.ai-chat-send:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

/* ── Responsive ── */
@media (max-width: 540px) {
  .ai-chat-panel {
    right: 14px;
    bottom: 158px;
    width: calc(100vw - 28px);
    max-height: min(520px, calc(100vh - 180px));
  }
  .ai-launcher {
    right: 14px;
    bottom: 100px;
  }
}


/* ================================================================
   AI CHAT WIDGET
   Floating assistant launcher + chat panel (bottom-right, above WA)
================================================================ */

/* ── AI Launcher Button ─────────────────────────────────────────────────── */
.ai-launcher {
  position: fixed;
  right: 32px;
  bottom: 108px;               /* stacks above the 60px WA button at 32px   */
  z-index: var(--z-message);
  height: 52px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--white);
  background: var(--graphite);
  border: 1px solid rgba(201, 168, 76, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 6px 24px rgba(0, 0, 0, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  pointer-events: none;
  transition:
    transform 360ms var(--ease-spring),
    opacity   360ms var(--ease-smooth),
    box-shadow 300ms ease,
    border-color 200ms ease;
}
.ai-launcher.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.ai-launcher:hover {
  background: #252525;
  border-color: rgba(201, 168, 76, 0.52);
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 0 0 5px rgba(201, 168, 76, 0.10),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 10px 30px rgba(0, 0, 0, 0.6);
}
.ai-launcher:active {
  transform: translateY(-1px) scale(0.99);
}
.ai-launcher svg {
  flex-shrink: 0;
  color: var(--gold);
  opacity: 0.9;
}
.ai-launcher-label {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
}
.ai-launcher-label strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}
.ai-launcher-label span {
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

/* ── AI Chat Panel ──────────────────────────────────────────────────────── */
.ai-chat-panel {
  position: fixed;
  right: 32px;
  bottom: 174px;               /* above the AI launcher button               */
  width: min(400px, calc(100vw - 28px));
  height: min(560px, calc(100dvh - 200px));
  max-height: min(560px, calc(100dvh - 200px));
  z-index: calc(var(--z-message-modal) + 2);
  border-radius: 22px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  background:
    radial-gradient(ellipse 70% 35% at 50% 0%, rgba(201, 168, 76, 0.10) 0%, transparent 55%),
    linear-gradient(170deg, rgba(26, 22, 16, 0.98) 0%, rgba(10, 10, 10, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 2px 0 rgba(255, 255, 255, 0.05) inset,
    0 40px 100px rgba(0, 0, 0, 0.65),
    0 8px 28px rgba(0, 0, 0, 0.4);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 260ms var(--ease-smooth), transform 260ms var(--ease-spring);
}
.ai-chat-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ai-chat-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

/* ── Panel Header ───────────────────────────────────────────────────────── */
.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  position: relative;
}
.ai-chat-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.25), transparent);
}
.ai-chat-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.22) 0%, rgba(201, 168, 76, 0.08) 100%);
  border: 1px solid rgba(201, 168, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  flex-shrink: 0;
}
.ai-chat-header-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ai-chat-header-copy strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.ai-chat-header-copy span {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}
.ai-chat-status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5ecb6e;
  box-shadow: 0 0 5px rgba(94, 203, 110, 0.6);
  flex-shrink: 0;
}
.ai-chat-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
  flex-shrink: 0;
}
.ai-chat-close:hover {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.3);
  color: #f87171;
}

/* ── Messages List ──────────────────────────────────────────────────────── */
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.ai-chat-messages::-webkit-scrollbar { width: 4px; }
.ai-chat-messages::-webkit-scrollbar-track { background: transparent; }
.ai-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

/* ── Individual Messages ────────────────────────────────────────────────── */
.ai-msg {
  display: flex;
  max-width: 86%;
  animation: aiMsgIn 220ms var(--ease-spring) forwards;
}
@keyframes aiMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ai-msg-user {
  align-self: flex-end;
}
.ai-msg-bot {
  align-self: flex-start;
}
.ai-bubble {
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.65;
  word-break: break-word;
}
.ai-msg-bot .ai-bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-bottom-left-radius: 4px;
}
.ai-msg-user .ai-bubble {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.22) 0%, rgba(201, 168, 76, 0.14) 100%);
  border: 1px solid rgba(201, 168, 76, 0.28);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

/* ── Typing Indicator ───────────────────────────────────────────────────── */
.ai-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 12px 14px !important;
}
.ai-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.4;
  animation: aiTypeDot 1.2s ease-in-out infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.18s; }
.ai-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes aiTypeDot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.35; }
  40%           { transform: scale(1.1); opacity: 1;    }
}

/* ── Input Row ──────────────────────────────────────────────────────────── */
.ai-chat-input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}
.ai-chat-input {
  flex: 1;
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: var(--font-body);
  line-height: 1.55;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  resize: none;
  height: auto;
  min-height: 40px;
  max-height: 100px;
  outline: none;
  transition: border-color 180ms ease;
}
.ai-chat-input::placeholder { color: var(--muted); }
.ai-chat-input:focus { border-color: rgba(201, 168, 76, 0.45); }
.ai-chat-input:disabled { opacity: 0.45; cursor: not-allowed; }
.ai-chat-send {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gold);
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  transition: background 180ms ease, transform 150ms ease, opacity 180ms ease;
}
.ai-chat-send:hover  { background: #d4ae62; transform: scale(1.05); }
.ai-chat-send:active { transform: scale(0.96); }
.ai-chat-send:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .ai-launcher {
    right: 16px;
    bottom: 100px;
    height: 48px;
    padding: 0 14px 0 12px;
  }
  .ai-launcher-label span { display: none; }
  .ai-chat-panel {
    left: 10px;
    right: 10px;
    bottom: 88px;
    width: auto;
    height: min(560px, calc(100dvh - 108px));
    max-height: calc(100dvh - 108px);
  }
}
@media (max-width: 400px) {
  .ai-launcher {
    right: 12px;
    bottom: 96px;
  }
  .ai-chat-panel {
    left: 8px;
    right: 8px;
    bottom: 84px;
    width: auto;
    height: min(540px, calc(100dvh - 100px));
    max-height: calc(100dvh - 100px);
  }
}
.heading-white {

  color: var(--white) !important;
}