/* ===================================================================
   Dubai New Year Cruise — homepage redesign
   Palette sampled from the live site's own section gradients
   (rgb(23,9,58) -> rgb(18,11,63)) and button gold (#f4b000 / #ffa800).
   =================================================================== */

:root {
  --navy-900: #0a0620;
  --navy-800: #130b3f;
  --navy-700: #1a0e3c;
  --navy-600: #241a52;
  --navy-500: #332568;
  --gold: #f4b000;
  --gold-light: #ffcc4d;
  --white: #ffffff;
  --ink: #1c1730;
  --body-muted: #6b6a7c;
  --on-dark-muted: #c7c2e0;
  --border-soft: #e7e4f2;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 14px 34px rgba(16, 9, 48, 0.16);
  --shadow-card-hover: 0 20px 44px rgba(16, 9, 48, 0.26);
  --max-width: 1240px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --white: #ffffff;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; margin: 0 0 0.6em; color: var(--ink); }
p { line-height: 1.7; color: var(--body-muted); margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  margin: -1px; padding: 0; border: 0;
}

.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  background: var(--gold);
  color: var(--navy-900);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 8px; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  min-height: 44px;
}
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(244, 176, 0, 0.35); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.65); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn-outline-navy { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn-outline-navy:hover { background: var(--navy-800); color: var(--white); transform: translateY(-2px); }
.btn-whatsapp { background: #25d366; color: #063d1e; }
.btn-whatsapp:hover { background: #2fe375; transform: translateY(-2px); }

/* Top bar */
.topbar {
  background: linear-gradient(90deg, var(--navy-800), var(--navy-700));
  color: var(--on-dark-muted);
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(244, 176, 0, 0.35);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 6px;
}
.topbar-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-light); font-weight: 600; }
.topbar-link:hover { color: var(--gold); }
.topbar-email { color: var(--on-dark-muted); font-weight: 400; }
.topbar-social { display: flex; gap: 10px; }
.topbar-social a {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
}
.topbar-social a:hover { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }

/* Header */
.site-header {
  background: var(--navy-900);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 18px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { border-radius: 50%; }
.brand-name {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0.3px;
}

.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--gold); border-color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-cta { padding: 11px 22px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--white); margin: 0 auto; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero — the banner image itself (sourced from the live site) already carries
   the title, tagline and feature icons, so no HTML text is overlaid on it. */
.hero { position: relative; overflow: hidden; line-height: 0; }
.hero-bg { display: block; width: 100%; height: auto; }

/* Section base */
.section { padding: 44px 0; }
.section-eyebrow { text-align: center; font-size: clamp(1.6rem, 3.2vw, 2.1rem); }

/* Welcome / H1 section */
.welcome-section { background: var(--white); padding: 32px 0 28px; }
.welcome-grid { text-align: left; }
.welcome-copy h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 14px; }
.welcome-copy > p { margin-bottom: 18px; }
.readmore-content { text-align: left; }
.readmore-content[hidden] { display: none; }
.btn-readmore {
  background: var(--gold);
  color: var(--navy-900);
  border: none;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 40px;
}
.btn-readmore:hover { background: var(--gold-light); }

/* Category tiles */
.category-tiles { padding: 0 0 56px; }
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 170px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tile img { width: 100%; height: 170px; object-fit: cover; transition: transform 0.4s ease; }
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,6,32,0) 40%, rgba(10,6,32,0.85) 100%);
}
.tile span {
  position: absolute; left: 18px; bottom: 14px; z-index: 1;
  color: var(--white); font-weight: 700; font-size: 1.1rem;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.tile:hover img { transform: scale(1.06); }

/* Packages */
.packages-section {
  background: #f7f6fb;
  color: var(--ink);
}
.packages-heading { text-align: left; }
.packages-eyebrow {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.packages-eyebrow::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold);
}
.packages-section .section-eyebrow { color: var(--ink); margin-bottom: 10px; text-align: left; }
.packages-subtitle { color: var(--body-muted); margin: 0; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 44px;
}
.filter-pill {
  background: var(--white);
  border: 1px solid var(--border-soft);
  color: var(--navy-700);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  min-height: 40px;
  box-shadow: 0 2px 8px rgba(16, 9, 48, 0.06);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.filter-pill:hover { border-color: var(--gold); color: var(--navy-900); }
.filter-pill.is-active { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }

.product-group { margin-bottom: 52px; }
.product-group:last-child { margin-bottom: 0; }
.product-group + .product-group { padding-top: 44px; border-top: 1px solid var(--border-soft); }
.product-group-head { margin: 0 0 26px; text-align: left; }
.product-group-head h3 { color: var(--ink); font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.product-group-head p { color: var(--body-muted); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.product-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-600); }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card-media img { transform: scale(1.07); }

.wishlist-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 9, 48, 0.2);
  color: var(--navy-700);
  transition: color 0.15s ease, transform 0.15s ease;
}
.wishlist-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.wishlist-btn:hover { transform: scale(1.08); }
.wishlist-btn[aria-pressed="true"] { color: #e0485a; }
.wishlist-btn[aria-pressed="true"] svg { fill: currentColor; }

.product-card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.product-card-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.74rem;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card-price { color: var(--navy-800); font-weight: 800; font-size: 1rem; margin-bottom: 12px; }
.product-card-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--navy-800);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.product-card-cta:hover { background: var(--navy-900); }
.product-card-cta .cta-arrow {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}
.product-card.is-unavailable .product-card-cta {
  background: rgba(28, 23, 48, 0.12);
  color: var(--body-muted);
  cursor: not-allowed;
  pointer-events: none;
}
.product-card.is-unavailable .cta-arrow { background: rgba(28, 23, 48, 0.18); color: var(--body-muted); }
.product-card.is-sold-out .product-card-media img { filter: grayscale(0.7) brightness(0.85); }
.product-card-soldout {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: #c0392b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(16, 9, 48, 0.25);
}
.product-card-flag {
  font-size: 0.72rem;
  color: #a3372f;
  background: #fdeceb;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
  display: inline-block;
}

.view-all-wrap { text-align: center; margin-top: 12px; }
.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 2px solid var(--gold);
  color: var(--navy-900);
  font-weight: 700;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.btn-view-all:hover { background: #fff8e8; }
.btn-view-all .cta-arrow {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.data-loading { text-align: center; color: var(--body-muted); }

/* About */
.about-section { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: center;
}
.trust-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.trust-badges li {
  background: linear-gradient(145deg, var(--navy-800), var(--navy-700));
  color: var(--white);
  padding: 20px 18px;
  border-radius: var(--radius-md);
  border-top: 3px solid var(--gold);
}
.trust-badges strong { display: block; font-size: 0.98rem; margin-bottom: 6px; }
.trust-badges span { color: var(--on-dark-muted); font-size: 0.82rem; line-height: 1.5; }

/* Why section */
.why-section { background: #f7f5fc; }
.why-section .container { text-align: left; }
.why-section .readmore-content { text-align: left; }

/* Best packages / tabs / accordion */
.best-section { background: var(--white); }
.best-section > .container { text-align: left; }
.best-section .readmore-content, .tabs, .accordion { text-align: left; }

.tabs { margin-top: 36px; }
.tab-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.tab-btn {
  flex: 1 1 220px;
  background: #f1eefa;
  border: 1px solid var(--border-soft);
  color: var(--ink);
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
}
.tab-btn.is-active { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.tab-panel { background: #f7f5fc; border-radius: var(--radius-md); padding: 24px 26px; }
.tab-panel[hidden] { display: none; }
.tab-panel p { margin: 0; color: var(--ink); }

.accordion { margin-top: 28px; border-top: 1px solid var(--border-soft); }
.accordion-item { border-bottom: 1px solid var(--border-soft); }
.accordion-item h3 { margin: 0; }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.accordion-trigger::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
}
.accordion-trigger.is-active::after { content: "\2212"; }
.accordion-panel { padding: 0 4px 20px; }
.accordion-panel[hidden] { display: none; }
.accordion-panel ul { padding-left: 1.2em; list-style: disc; }
.accordion-panel li { margin-bottom: 8px; line-height: 1.6; color: var(--body-muted); }
.accordion-panel p { margin-bottom: 12px; }

.faq-list dt { font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.faq-list dd { margin: 0 0 18px; color: var(--body-muted); line-height: 1.65; }

/* CTA banner */
.cta-banner { position: relative; padding: 90px 0; overflow: hidden; color: var(--white); }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(10,6,32,0.92), rgba(19,11,63,0.75)); }
.cta-content { position: relative; z-index: 1; max-width: 640px; }
.cta-content h2 { color: var(--white); font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.cta-content p { color: var(--on-dark-muted); }

/* Breadcrumb (used on every inner page) */
.breadcrumb { background: #f7f6fb; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.82rem; color: var(--body-muted); list-style: none; margin: 0; padding: 0; }
.breadcrumb a { color: var(--navy-700); font-weight: 600; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--border-soft); }
.breadcrumb li[aria-current] { color: var(--body-muted); }

/* WhatsApp strip */
.whatsapp-strip { background: var(--navy-900); padding: 36px 0; }
.whatsapp-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.whatsapp-inner h2 { color: var(--white); font-size: 1.3rem; margin-bottom: 6px; }
.whatsapp-inner p { color: var(--on-dark-muted); margin: 0; }

/* Newsletter */
.newsletter-section { background: #f7f5fc; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.newsletter-inner h2 { font-size: 1.3rem; margin-bottom: 6px; }
.newsletter-inner p { margin: 0; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  min-width: 260px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-family: var(--font-body);
  font-size: 0.9rem;
  min-height: 44px;
}
.newsletter-note { width: 100%; margin-top: 10px; font-weight: 600; color: var(--navy-700); }

/* Footer */
.site-footer { background: var(--navy-900); color: var(--on-dark-muted); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; padding-bottom: 40px; }
.footer-brand p { color: var(--on-dark-muted); font-size: 0.88rem; margin: 14px 0; }
.footer-social { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-social a { font-size: 0.82rem; font-weight: 600; color: var(--gold-light); }
.footer-social a:hover { color: var(--gold); }
.footer-col h3 { color: var(--white); font-family: var(--font-body); font-size: 1rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold); }
.site-footer address { font-style: normal; font-size: 0.9rem; margin-bottom: 14px; line-height: 1.6; }
.site-footer .footer-col a[href^="tel:"], .site-footer .footer-col a[href^="https://wa.me"] { display: inline-block; margin-top: 4px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.82rem; }
.footer-bottom a:hover { color: var(--gold); }

/* ===================== Responsive ===================== */
@media (max-width: 1080px) {
  .about-grid { grid-template-columns: 1fr; }
  .trust-badges { max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-900);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 10px 20px 20px;
  }
  .main-nav.is-open ul { flex-direction: column; gap: 4px; }
  .main-nav.is-open a { display: block; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); }

  .tiles-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-email { display: none; }
  .tiles-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .newsletter-inner, .whatsapp-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { flex: 1; min-width: 0; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* ---------- Floating WhatsApp button + greeting popup (built by main.js on
   pages whose <body> has data-wa-widget) ---------- */
.wa-widget { position: fixed; right: 20px; bottom: 20px; z-index: 990; font-family: var(--font-body); }
.wa-fab {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(10, 6, 32, 0.32); transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.wa-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 30px rgba(10, 6, 32, 0.38); }
.wa-fab:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wa-fab svg { width: 32px; height: 32px; }
.wa-fab .wa-icon-close { display: none; width: 22px; height: 22px; }
.wa-widget.is-open .wa-fab .wa-icon-chat { display: none; }
.wa-widget.is-open .wa-fab .wa-icon-close { display: block; }
.wa-fab-badge {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: #ff3b30; color: #fff; font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.wa-widget.is-open .wa-fab-badge, .wa-widget.is-seen .wa-fab-badge { display: none; }

.wa-panel {
  position: absolute; right: 0; bottom: 76px; width: min(340px, calc(100vw - 32px));
  background: #efeae2; border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(10, 6, 32, 0.3);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.98); transform-origin: bottom right;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.wa-widget.is-open .wa-panel { opacity: 1; visibility: visible; transform: none; }
.wa-panel-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--navy-800); color: #fff; }
.wa-panel-head img { width: 42px; height: 42px; border-radius: 50%; background: var(--navy-900); flex-shrink: 0; }
.wa-panel-head strong { display: block; font-size: 0.95rem; }
.wa-panel-head span { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--on-dark-muted); }
.wa-panel-head span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #25d366; }
.wa-panel-close {
  margin-left: auto; background: transparent; border: 0; color: #fff; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%; font-size: 1.3rem; line-height: 1;
}
.wa-panel-close:hover { background: rgba(255, 255, 255, 0.12); }
.wa-panel-body { padding: 18px 16px 8px; min-height: 96px; }
.wa-bubble {
  position: relative; background: #fff; color: var(--ink); border-radius: 0 12px 12px 12px;
  padding: 10px 14px 18px; font-size: 0.9rem; line-height: 1.5; max-width: 92%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}
.wa-bubble::before {
  content: ""; position: absolute; top: 0; left: -8px;
  border-top: 10px solid #fff; border-left: 8px solid transparent;
}
.wa-bubble-name { display: block; font-weight: 700; font-size: 0.8rem; color: #128c7e; margin-bottom: 2px; }
.wa-bubble-time { position: absolute; right: 10px; bottom: 4px; font-size: 0.68rem; color: #8a8a8a; }
.wa-typing { display: inline-flex; gap: 4px; background: #fff; border-radius: 0 12px 12px 12px; padding: 12px 14px; }
.wa-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9a9a9a; animation: wa-dot 1s infinite ease-in-out; }
.wa-typing i:nth-child(2) { animation-delay: .15s; }
.wa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wa-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.wa-panel-foot { padding: 8px 16px 16px; }
.wa-start {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 12px 16px; border-radius: 999px; background: #25d366; color: #063d1e;
  font-weight: 700; font-size: 0.95rem; text-decoration: none; transition: background .2s;
}
.wa-start:hover { background: #2fe375; }
.wa-start svg { width: 20px; height: 20px; }

@media (max-width: 640px) {
  .wa-widget { right: 16px; bottom: 16px; }
  .wa-fab { width: 54px; height: 54px; }
  .wa-fab svg { width: 28px; height: 28px; }
  .wa-panel { bottom: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-panel, .wa-fab { transition: none; }
  .wa-typing i { animation: none; }
}
