/* The Quick Consult: design system
   Navy, yellow and black. Real photography, no pill filters, tight rhythm. Mobile-first. */

:root {
  --navy: #0A0F26;
  --navy-soft: #333854;
  --yellow: #FCC800;
  --yellow-dark: #E0B200;
  --black: #000000;
  --paper: #ffffff;
  --paper-raised: #F4F5F9;
  --line: #E3E5EE;
  --success: #1E7F4C;
  --danger: #B3261E;
  --white: #ffffff;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.75rem;
  --space-8: 3.5rem;

  --container: 1200px;
  --radius: 6px;
  --radius-lg: 10px;
  --header-height: 76px;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
/* Grid/flex items default to min-width:auto, which lets nested unconstrained content
   (long text, nested grids) force the whole row wider than the viewport ("grid blowout").
   Reset the common containers so children are always free to shrink and wrap. */
.grid > *, .hero-grid > *, .hero-stats > *, .stat-tiles > *, .directory-layout > *, .footer-grid > * {
  min-width: 0;
}
/* overflow-x: clip (not hidden) is deliberate: per spec, if one axis is non-"visible"
   the other axis's computed value is forced to "auto", which silently turns html/body
   into their own scroll container and breaks position:sticky for every descendant on
   the page. "clip" avoids that side effect while still stopping horizontal overflow. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
/* Every font-size and spacing token in this stylesheet is in rem, so scaling the root
   size here shrinks text (and, proportionally, padding/gaps) everywhere on phones,
   without needing to touch each component's own font-size individually. */
@media (max-width: 640px) {
  html { font-size: 93.75%; } /* 16px -> 15px base */
}
@media (max-width: 400px) {
  html { font-size: 87.5%; } /* 16px -> 14px base on the smallest phones */
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img.photo { object-fit: cover; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.02em;
  color: var(--navy);
}

h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 var(--space-3); color: var(--navy-soft); }
a { color: inherit; }
strong { color: var(--navy); }
mark { background: var(--yellow); color: var(--navy); padding: 0 0.15em; }

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

body.has-fixed-header { padding-top: var(--header-height); }
.impersonate-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
}
.impersonate-banner a { color: var(--navy); text-decoration: underline; }
body.impersonating.has-fixed-header { padding-top: calc(var(--header-height) + 36px); }
body.impersonating .topbar { top: 36px; }

/* ---------- Top bar: fixed, full-width, translucent. Content scrolls underneath it. ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(10, 15, 38, 0.08);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: var(--header-height);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}
.brand-logo { height: 38px; width: auto; }
.brand-logo-mark { height: 38px; width: auto; }
.nav-links {
  display: none;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--navy-soft);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); border-bottom-color: var(--yellow); }
.nav-actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.nav-actions .btn { display: none; }
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: var(--space-3) 0;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.mobile-menu a { text-decoration: none; color: var(--navy); font-size: 1rem; font-weight: 600; }

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-actions .btn { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid var(--navy);
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--black); border-color: var(--black); }
.btn-signal { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.btn-signal:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-raised); border-color: var(--navy); }
.call-end-ghost-btn { color: #fff; border-color: rgba(255,255,255,0.3); }
.call-end-ghost-btn:hover { color: var(--navy); }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* ---------- Sections (tight rhythm) ---------- */
section { padding: var(--space-7) 0; }
.section-tight { padding: var(--space-6) 0; }
.section-border-top { border-top: 1px solid var(--line); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark p { color: #C9CCDC; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow, .section-photo .eyebrow { color: var(--yellow); }
.section-dark .eyebrow::before { background: var(--yellow); }

.section-pattern-dark {
  position: relative;
  background-color: var(--black);
  background-image: url('/assets/img/patterns/dark_embroidery.png');
  background-repeat: repeat;
  background-size: 140px;
}
.section-pattern-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}
.section-pattern-dark > .container { position: relative; z-index: 1; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-2);
}
.eyebrow::before { content: ''; width: 16px; height: 3px; background: var(--yellow); display: inline-block; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-5);
}
.section-head p { max-width: 46ch; }
.section-head-split { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0; }
@media (max-width: 899px) {
  .hero-copy { text-align: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}
@media (max-width: 640px) {
  .hero { padding-top: 2rem; padding-bottom: 2rem; }
  .hero-actions {
    flex-wrap: nowrap;
    gap: var(--space-2);
  }
  .hero-actions .btn {
    flex: 1;
    min-width: 0;
    padding: 0.65rem 0.5rem;
    font-size: 0.82rem;
  }
  .hero-photo .badge { display: none; }
}

/* Headings, their descriptions and any button that follows them read better centered
   on a phone screen than left-aligned against a narrow column. */
@media (max-width: 640px) {
  .section-head { text-align: center; align-items: center; }
  .section-head p { margin-left: auto; margin-right: auto; }
  .section-head-split {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .section-head-split > div { display: flex; flex-direction: column; align-items: center; }
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}
.hero-copy p.lede { font-size: 0.98rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-4) 0; }
.trust-bar { background: var(--black); padding: var(--space-5) 0; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}
.hero-stats .stat {
  text-align: center;
  line-height: 1;
  min-width: 0;
  padding: 0 var(--space-3);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-stats .stat:first-child { border-left: none; }
.hero-stats .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--yellow);
}
.hero-stats .stat span {
  display: block;
  line-height: 1.2;
  font-size: 0.82rem;
  color: #C9CCDC;
}
@media (max-width: 640px) {
  .hero-stats .stat b { font-size: 1.2rem; }
  .hero-stats .stat span { font-size: 0.72rem; }
}
.hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
}
.hero-photo img, .hero-photo video { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-video-toggle {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 15, 38, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.15s ease;
  z-index: 2;
}
.hero-photo:hover .hero-video-toggle, .hero-video-toggle:focus-visible { opacity: 1; }
.hero-video-toggle:hover { background: rgba(10, 15, 38, 0.8); }
.hero-video-toggle svg { width: 16px; height: 16px; }
.hero-icon-off { display: none; }
.hero-photo .badge {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  box-shadow: 0 12px 30px rgba(10, 15, 38, 0.18);
  max-width: 250px;
  transition: background 0.2s ease;
}
.hero-photo .badge:hover {
  background: var(--white);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hero-photo .badge b { display: block; font-size: 1.05rem; color: var(--navy); }
.hero-photo .badge span { font-size: 0.78rem; color: var(--navy-soft); }
.hero-panel {
  border: 1px solid var(--line);
  background: var(--white);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
}
.hero-panel .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
}
.hero-panel .row:last-child { border-bottom: none; }
.hero-panel .tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-soft);
}
.contact-side-card {
  background: var(--navy);
  background-image: url('/assets/img/patterns/dark_embroidery.png');
  background-blend-mode: soft-light;
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.contact-side-card h3 { margin-top: var(--space-1); }
.contact-side-card .eyebrow { color: var(--yellow); }
.contact-side-card .social-icon { color: #fff; border-color: rgba(255,255,255,0.3); }
.contact-side-card .social-icon:hover { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.contact-method {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.contact-method .icon { color: var(--yellow); flex-shrink: 0; margin-top: 2px; }
.contact-method div { display: flex; flex-direction: column; gap: 2px; }
.contact-method a, .contact-method span { color: #fff; font-weight: 600; text-decoration: none; }
.contact-method a:hover { text-decoration: underline; }

@media (min-width: 900px) {
  /* Generic two-column layout, used by dashboard/contact/book/consultant pages: top-aligned, even split. */
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: var(--space-6); }
  /* The homepage hero specifically wants a wider media column and vertical centering. */
  .hero .hero-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: var(--space-8); }
}

/* ---------- Plain link lists (replaces pill filters) ---------- */
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--space-3) 0;
}
.link-row a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-soft);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.link-row a:hover, .link-row a.active { color: var(--navy); border-bottom-color: var(--yellow); }

/* ---------- Sidebar layout (experts directory) ---------- */
.directory-search-bar { margin-bottom: var(--space-2); }
.directory-search-bar input::placeholder { font-size: 0.8rem; }
.directory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}
@media (min-width: 900px) {
  .directory-layout { grid-template-columns: 240px minmax(0, 1fr); }
}
.sidebar-column { position: static; }
@media (min-width: 900px) {
  .sidebar-column { position: sticky; top: calc(var(--space-6) + 60px); }
}
.sidebar {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.sidebar h4 {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-soft);
  margin: 0 0 var(--space-3);
}
.sidebar-list { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: 2px; }
.sidebar-list a {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  color: var(--navy-soft);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius);
}
.sidebar-list a span.count { color: var(--navy-soft); font-weight: 500; font-size: 0.74rem; }
.sidebar-list a:hover { background: var(--paper-raised); color: var(--navy); }
.sidebar-list a.active { background: var(--navy); color: var(--white); }

/* Below the sidebar breakpoint, the field list becomes a single dropdown instead of a
   long stack of links. */
.sidebar-select { display: block; margin-bottom: var(--space-4); }
@media (min-width: 900px) {
  .sidebar-list { display: grid; }
  .sidebar-select { display: none; }
}
@media (max-width: 899px) {
  .sidebar-list { display: none; }
}
.sidebar-list a.active span.count { color: #C9CCDC; }
.sidebar hr { border: none; border-top: 1px solid var(--line); margin: var(--space-4) 0; }

/* ---------- Grid / cards ---------- */
.grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Real spacer element (not CSS-generated content) so the carousel's start/end inset is
   never dropped by a browser's scroll-container padding quirks. Hidden outside the
   mobile carousel breakpoint so it doesn't become a stray cell in the desktop grid. */
.carousel-spacer { display: none; }

/* Single-line horizontal scroll on phones, for teaser grids like the homepage expert list */
@media (max-width: 639px) {
  .carousel-mobile {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-3);
    margin: 0 calc(var(--space-4) * -1);
    padding: 0 0 var(--space-2);
    -webkit-overflow-scrolling: touch;
  }
  .carousel-mobile::-webkit-scrollbar { display: none; }
  /* Padding on the leading/trailing edge of a scrollable flex container isn't
     reliably rendered before the first/after the last item, so the inset is a real
     spacer element in the markup instead (see .carousel-spacer). */
  /* Without a snap point of its own, mandatory scroll-snap immediately snaps past this
     spacer to the first card on load, silently eating the inset it's meant to create. */
  .carousel-spacer { display: block; flex: 0 0 var(--space-4); scroll-snap-align: start; }
  .carousel-mobile .consultant-card {
    flex: 0 0 68%;
    scroll-snap-align: start;
  }
  .carousel-mobile .consultant-name { font-size: 0.95rem; }
  .carousel-mobile .consultant-body { padding: var(--space-3); gap: 6px; }
  .carousel-mobile .consultant-rate { font-size: 1rem; }
}

/* ---------- Testimonials: auto-sliding, looping carousel (JS-driven, see main.js) ---------- */
.testimonial-carousel, .blog-carousel { position: relative; padding: 0 var(--space-8); }
.testimonial-viewport, .blog-carousel-viewport { overflow: hidden; }
.testimonial-track, .blog-carousel-track {
  display: flex;
  gap: var(--space-4);
  will-change: transform;
}
.testimonial-track.no-transition, .blog-carousel-track.no-transition { transition: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .testimonial-track, .blog-carousel-track { transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1); }
}
.testimonial-card {
  flex: 0 0 calc(100% - var(--space-4));
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
@media (min-width: 640px) { .testimonial-card { flex-basis: calc(50% - var(--space-4) / 2); } }
@media (min-width: 960px) { .testimonial-card { flex-basis: calc(33.333% - var(--space-4) * 2 / 3); } }
.testimonial-stars { color: var(--yellow); letter-spacing: 1px; }
.testimonial-quote { font-size: 0.98rem; line-height: 1.5; color: var(--navy); margin: 0; }
.testimonial-attribution { margin-top: auto; }
.testimonial-attribution strong { display: block; font-size: 0.92rem; }
.testimonial-attribution span { font-size: 0.8rem; color: var(--navy-soft); }
.blog-carousel-track .consultant-card { flex: 0 0 calc(100% - var(--space-4)); }
@media (min-width: 640px) { .blog-carousel-track .consultant-card { flex-basis: calc(50% - var(--space-4) / 2); } }
@media (min-width: 960px) { .blog-carousel-track .consultant-card { flex-basis: calc(33.333% - var(--space-4) * 2 / 3); } }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s ease, color 0.15s ease;
}
.carousel-arrow:hover { background: var(--navy); color: var(--yellow); border-color: var(--navy); }
.carousel-arrow-prev { left: 8px; }
.carousel-arrow-next { right: 8px; }
@media (max-width: 480px) {
  .testimonial-carousel, .blog-carousel { padding: 0 var(--space-6); }
  .carousel-arrow { width: 34px; height: 34px; }
  .carousel-arrow-prev { left: 4px; }
  .carousel-arrow-next { right: 4px; }
}

.card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: 0 14px 28px rgba(10,15,38,0.1); transform: translateY(-2px); }
.card h3 { margin-bottom: var(--space-2); }
.card p { font-size: 0.92rem; margin-bottom: 0; }

.step {
  border-left: 1px solid var(--yellow);
  padding-left: var(--space-4);
  position: relative;
  transition: border-left-color 0.2s ease, transform 0.2s ease;
}
.step:hover { border-left-color: var(--navy); transform: translateX(3px); }
.section-dark .step:hover { border-left-color: var(--white); }
.step p { font-weight: 400; font-size: 0.9rem; }
.step .num {
  color: var(--navy);
  font-weight: 800;
  font-size: 0.8rem;
  display: block;
  margin-bottom: var(--space-1);
}

/* ---------- Consultant card ---------- */
.consultant-card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.consultant-card:hover { box-shadow: 0 18px 34px rgba(10,15,38,0.14); transform: translateY(-3px); }
.consultant-card:hover .consultant-rate { background: var(--navy); color: var(--yellow); margin: 0 calc(var(--space-4) * -1) calc(var(--space-4) * -1); padding: var(--space-3) var(--space-4); border-top-color: transparent; }
.consultant-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--navy);
  overflow: hidden;
}
.consultant-photo-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.consultant-card:hover .consultant-photo-wrap img { transform: scale(1.06); }
.consultant-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--yellow);
  background: var(--navy);
}
.consultant-status-pill {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--white);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 700;
}
.featured-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: var(--yellow);
  color: var(--navy);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 800;
}
.consultant-body { padding: var(--space-4); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.consultant-name { font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.consultant-name-check { display: inline-flex; vertical-align: middle; }
.consultant-name-check svg { width: 16px; height: 16px; }
.consultant-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy-soft);
}
.consultant-rate { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; margin-top: auto; padding-top: var(--space-2); border-top: 1px solid var(--line); transition: background 0.2s ease, color 0.2s ease; }
.consultant-rate .muted { transition: color 0.2s ease; }
.consultant-card:hover .consultant-rate .muted { color: #C9CCDC; }
.consultant-meta { display: flex; gap: var(--space-3); font-size: 0.8rem; color: var(--navy-soft); flex-wrap: wrap; }
.status-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; }
.status-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.status-dot.online::before { background: var(--success); }

/* Small avatar (used outside the card grid, e.g. hero panel) */
.avatar-photo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--paper-raised);
}

.field-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  background: var(--white);
}
.field-link:hover { border-color: var(--navy); }

/* ---------- Tags (small labels, not pills) ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }
.tag-item {
  background: var(--paper-raised);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius);
}

.admin-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(10,15,38,0.55);
  z-index: 20;
  padding: var(--space-4);
}
.admin-modal-overlay.show { display: flex; }
.admin-modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  max-width: 380px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ---------- Trusted partners ---------- */
/* Spotlight effect: hovering one partner card dims and blurs every other card in the
   same grid, so attention narrows onto the one you're actually looking at. */
/* Desktop pointers only: on phones a tap leaves :hover stuck on, which blurred every other card. */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) and (min-width: 768px) {
  .grid:has(.partner-card:hover) .partner-card:not(:hover) { filter: blur(3px); opacity: 0.55; }
}
.partner-card {
  border: 1px solid var(--line);
  background: var(--paper-raised);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: filter 0.25s ease, opacity 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.partner-logo { width: 56px; height: 56px; object-fit: contain; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: transform 0.25s ease; }
.partner-card:hover .partner-logo, .partner-card:hover .partner-logo-fallback { transform: scale(1.08) rotate(-2deg); }
.partner-name {
  font-weight: 800;
  font-size: 1.05rem;
  width: fit-content;
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 3px;
  transition: background-size 0.3s ease;
}
.partner-card:hover .partner-name { background-size: 100% 3px; }
.partner-logo-fallback {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  transition: transform 0.25s ease;
}
.partner-name { font-weight: 800; font-size: 1.05rem; }
.partner-category-chip {
  display: inline-block;
  align-self: flex-start;
  background: rgba(252, 200, 0, 0.18);
  color: var(--navy);
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius);
}
.partner-contact { display: flex; flex-direction: column; gap: var(--space-1); font-size: 0.8rem; }
.partner-contact a, .partner-contact span { display: flex; align-items: center; gap: 6px; color: var(--navy-soft); text-decoration: none; }
.partner-contact a:hover { color: var(--navy); text-decoration: underline; }
.partner-contact .icon { width: 14px; height: 14px; flex-shrink: 0; }
.partner-actions { display: flex; gap: var(--space-2); margin-top: auto; padding-top: var(--space-2); }
.partner-actions .btn { flex: 1; }
.btn-whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.btn-whatsapp:hover { background: #1DA851; border-color: #1DA851; }
.partner-cta-box {
  background: var(--black);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-7);
  text-align: center;
}
.partner-cta-box h3 { color: #fff; margin-bottom: var(--space-3); }
.partner-cta-box p { color: #C9CCDC; margin-bottom: var(--space-3); }
.job-card {
  position: relative;
  overflow: hidden;
  border: none;
  background: #FFF6E0;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: background 0.3s ease;
}
.job-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.65), transparent);
  transform: skewX(-18deg);
  transition: left 0.75s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}
.job-card:hover { background: #FFECAD; }
.job-card:hover::after { left: 120%; }
.job-card-head { display: flex; align-items: center; gap: var(--space-3); }
.job-card:hover .partner-logo, .job-card:hover .partner-logo-fallback { transform: scale(1.08) rotate(-2deg); }
.job-title { font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.job-card-closed { background: var(--paper-raised); filter: grayscale(0.6); opacity: 0.75; }
.job-card-closed::after { display: none; }
.job-card-closed .partner-logo, .job-card-closed .partner-logo-fallback { filter: grayscale(1); }
.job-meta-row { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.job-detail-head { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-4) 0 var(--space-3); }
.job-detail-head h1 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.job-content { margin-bottom: var(--space-6); }
.job-content:last-child { margin-bottom: 0; }
.job-content ul { padding-left: 1.3rem; margin: 0 0 var(--space-3); }
.job-content li { color: var(--navy-soft); line-height: 1.6; margin-bottom: var(--space-2); }
.job-content p { line-height: 1.6; }

.careers-cta-section {
  position: relative;
  background-image: url('/assets/img/careers/careers-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
}
.careers-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 38, 0.92);
}
.careers-cta-section > .container { position: relative; z-index: 1; }
.careers-cta-section h2, .careers-cta-section h3 { color: var(--white); }
.careers-cta-section p { color: #C9CCDC; }
.careers-cta-section .eyebrow { color: var(--yellow); }
.careers-cta-section .eyebrow::before { background: var(--yellow); }
.careers-cta-image-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.35); }
.careers-cta-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transform: scale(1);
  filter: saturate(1);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
}
.careers-cta-image-frame:hover .careers-cta-image { transform: scale(1.08); filter: saturate(1.15); }
@media (max-width: 767px) {
  .careers-cta-section { background-attachment: scroll; }
}
.partner-category-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  text-decoration: none;
  background: var(--navy);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.partner-category-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(10,15,38,0.25); }
.partner-category-tile span { color: #fff; font-weight: 700; font-size: 0.92rem; text-align: center; }

.review-list { display: flex; flex-direction: column; gap: var(--space-3); }
.review-item { border-top: 1px solid var(--line); padding-top: var(--space-3); }
.review-item-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); margin-bottom: var(--space-1); flex-wrap: wrap; }
.review-item-who { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.review-verified-chip {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--success);
  background: rgba(30, 127, 76, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius);
}
.review-stars { color: var(--yellow); letter-spacing: 1px; }

/* ---------- Profile (LinkedIn-style) ---------- */
.profile-cover {
  height: 140px;
  background: var(--navy);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
  overflow: hidden;
}
.profile-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, var(--yellow) 40%, var(--yellow) 42%, transparent 42%),
              linear-gradient(120deg, transparent 55%, rgba(252,200,0,0.35) 55%, rgba(252,200,0,0.35) 57%, transparent 57%);
}
.profile-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
}
.profile-body { padding: 0 var(--space-5) var(--space-5); position: relative; }
.profile-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 4px solid var(--white);
  object-fit: cover;
  margin-top: -56px;
  background: var(--paper-raised);
}
.profile-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }
.profile-name { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  position: relative;
}
.verified-badge svg { width: 20px; height: 20px; }
.verified-badge-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  z-index: 5;
  pointer-events: none;
}
.verified-badge-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--navy);
}
.verified-badge:hover .verified-badge-tooltip,
.verified-badge:focus .verified-badge-tooltip,
.verified-badge.show .verified-badge-tooltip {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 480px) {
  .verified-badge-tooltip { white-space: normal; width: 220px; }
}
.social-row { display: flex; gap: var(--space-2); margin: var(--space-3) 0; }
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  text-decoration: none;
}
.social-icon:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: var(--space-4) 0;
}
.profile-stats div b { display: block; font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.profile-stats div span { display: block; font-size: 0.78rem; color: var(--navy-soft); line-height: 1.2; }
.trust-badges { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.trust-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-soft);
  background: var(--paper-raised);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius);
}
.trust-badge-verified { color: var(--success); background: rgba(30, 127, 76, 0.1); }
.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-3);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--success);
}
.guarantee-note {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--navy-soft);
  text-align: center;
  margin: var(--space-3) 0 0;
}

/* ---------- Forms ---------- */
.field { margin-bottom: var(--space-4); }
/* Pairs two fields side by side on wider screens, to cut down the vertical scroll on
   long admin edit forms; stacks back to one column on narrow viewports. */
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 var(--space-4); margin-bottom: var(--space-4); }
.field-row .field { margin-bottom: var(--space-4); }
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; margin-bottom: 0; }
  .field-row .field { margin-bottom: var(--space-4); }
}
.field-checkbox-group { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-2); }
.field-checkbox-group label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9rem; }
.field-checkbox-group input[type="checkbox"] { width: auto; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.field .hint { font-size: 0.76rem; color: var(--navy-soft); margin-top: var(--space-1); }
input, select, textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--navy);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }
/* Native <select> chrome (arrow, padding, border-radius rendering) looks rougher than
   a text input even with identical CSS, so give it its own consistent arrow instead of
   the browser default. */
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333854' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 16px;
  cursor: pointer;
}
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--navy); cursor: pointer; }
.field-password-wrap { position: relative; }
.field-password-wrap input { padding-right: 2.75rem; }
.password-toggle-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--navy-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}
.password-toggle-btn:hover { color: var(--navy); background: var(--paper-raised); }
.password-toggle-btn svg { pointer-events: none; }
.form-panel {
  border: 1px solid var(--line);
  background: var(--white);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  max-width: 460px;
}
.radio-row { display: flex; gap: var(--space-3); }
.radio-card {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
}
.radio-card input { width: auto; margin-right: var(--space-2); }
.radio-card.checked { border-color: var(--yellow); background: #FFF8DF; }

/* ---------- Auth pages (login/register) ---------- */
.auth-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}
.auth-logo { height: 34px; width: auto; margin-bottom: var(--space-4); }
.auth-shell .eyebrow { justify-content: center; }
.auth-heading { font-size: 1.5rem; margin-bottom: var(--space-2); }
.auth-subtext { color: var(--navy-soft); font-size: 0.92rem; margin-bottom: var(--space-5); max-width: 34ch; }
.auth-panel {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: 0 20px 40px rgba(10, 15, 38, 0.06);
  text-align: left;
}
.auth-footer { margin-top: var(--space-5); font-size: 0.9rem; color: var(--navy-soft); }
.auth-footer a { font-weight: 700; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--yellow); }
.auth-footer a:hover { color: var(--navy-soft); }

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
}
.btn-google:hover { background: var(--paper-raised); border-color: var(--navy-soft); }
.auth-divider { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-4) 0; color: var(--navy-soft); font-size: 0.8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.segmented-toggle { display: flex; gap: 2px; background: var(--paper-raised); border-radius: var(--radius); padding: 3px; }
.segmented-toggle input { display: none; }
.segmented-toggle label {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.5rem;
  border-radius: calc(var(--radius) - 3px);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.segmented-toggle label.checked { background: var(--white); color: var(--navy); box-shadow: 0 2px 6px rgba(10,15,38,0.12); }

.alert {
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow-dark);
  padding: var(--space-3);
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: var(--space-4);
  background: var(--white);
}
.alert-success { border-left-color: var(--success); }

/* ---------- Booking summary ---------- */
.summary-line {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
}
.summary-line:last-of-type { border-bottom: none; }
.summary-total {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-3);
  margin-top: var(--space-2);
  border-top: 2px solid var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
}

/* ---------- Table ---------- */
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); }
th { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--navy-soft); }
tbody tr { transition: background 0.15s ease; }
tbody tr:hover { background: var(--paper-raised); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-7) 0 var(--space-5);
  background: var(--navy);
  color: #C9CCDC;
  font-size: 0.88rem;
}
.site-footer p, .site-footer span { color: #C9CCDC; }
.footer-grid {
  display: grid;
  row-gap: var(--space-7);
  column-gap: var(--space-8);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-6);
}
.footer-grid h4 {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--yellow);
  margin-bottom: var(--space-3);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.footer-logo { height: 46px; width: auto; margin-bottom: var(--space-3); }
/* Trustindex's own widget defaults to centered layout — left-align it to match the
   rest of this footer column. Colors are left untouched (light-mode widget, own
   styling is correct as-is). */
.trustindex-badge { display: flex; justify-content: flex-start; margin-top: var(--space-3); }
.trustindex-badge > * { margin-left: 0 !important; margin-right: auto !important; }
.footer-grid a { text-decoration: none; color: #C9CCDC; }
.footer-grid a:hover { color: var(--white); }
.footer-social { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.footer-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C9CCDC;
}
.footer-social a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--space-4);
  font-size: 0.8rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; column-gap: var(--space-4); } }

/* ---------- Call room ---------- */
.call-shell { background: var(--navy); height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.call-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
}
.call-timer { color: var(--yellow); font-weight: 800; }
.call-timer.over-time { color: #FF6B4A; }

#callApp { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.call-stage {
  flex: 1;
  min-height: 0;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.call-status {
  position: absolute;
  top: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  z-index: 2;
}
.call-stage.connected .call-status { opacity: 0; transition: opacity 0.6s ease 1.5s; }
.call-remote-video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.call-local-video {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-4);
  width: 260px;
  height: 195px;
  max-width: 32vw;
  max-height: 32vh;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255,255,255,0.25);
  background: #111;
  z-index: 2;
  transform: scaleX(-1);
}
.call-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--navy);
}
.call-control-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.call-control-btn:hover { background: rgba(255,255,255,0.22); }
.call-control-btn.off { background: rgba(255,255,255,0.9); color: var(--navy); }
.call-control-btn.active { background: var(--yellow); color: var(--navy); }
.call-control-btn .icon { stroke: currentColor; fill: none; }
.call-control-btn { position: relative; }
.call-hangup { background: #E5484D; }
.call-hangup:hover { background: #C93B3F; }

.call-chat-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #E5484D;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-chat-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 340px;
  max-width: 88vw;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 5;
  box-shadow: -8px 0 30px rgba(0,0,0,0.25);
}
.call-chat-panel.open { transform: translateX(0); }
.call-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  color: var(--navy);
}
.call-chat-close { background: none; border: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--navy-soft); }
.call-chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.chat-msg { max-width: 80%; padding: 0.5rem 0.8rem; border-radius: var(--radius-md); font-size: 0.88rem; line-height: 1.35; }
.chat-msg .chat-msg-name { display: block; font-size: 0.72rem; font-weight: 700; margin-bottom: 2px; opacity: 0.7; }
.chat-msg.them { align-self: flex-start; background: var(--paper-raised); color: var(--navy); }
.chat-msg.me { align-self: flex-end; background: var(--yellow); color: var(--navy); }
.chat-msg.system { align-self: center; background: none; color: var(--navy-soft); font-size: 0.78rem; text-align: center; }
.call-chat-form {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--line);
}
.call-chat-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.8rem;
  font: inherit;
}

.call-end-screen {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-2);
  color: #fff;
  text-align: center;
  padding: var(--space-4);
}
.call-end-screen.show { display: flex; }

.call-timeup-overlay {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(10,15,38,0.55);
  z-index: 3;
}
.call-timeup-overlay.show { display: flex; }
.call-timeup-card {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  max-width: 320px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.call-timeup-icon { color: #FF6B4A; }
.call-timeup-card p { color: #fff; font-weight: 600; margin: 0; }
.call-timeup-card .small { color: #C9CCDC; }
.call-timeup-card .btn { margin-top: var(--space-1); }

.call-consent-overlay {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(10,15,38,0.55);
  z-index: 4;
  padding: var(--space-4);
}
.call-consent-overlay.show { display: flex; }

.call-recording-indicator {
  display: none;
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  align-items: center;
  gap: 6px;
  background: rgba(179, 38, 30, 0.9);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  z-index: 3;
}
.call-recording-indicator.show { display: flex; }
.call-recording-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: recordingPulse 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .call-recording-dot { animation: none; }
}
@keyframes recordingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
#btnRecord.active { background: var(--danger); color: #fff; }

/* ---------- Blog ---------- */
.post-card { border-bottom: 1px solid var(--line); padding: var(--space-5) 0; }
.post-card:first-child { padding-top: 0; }
.post-meta { font-size: 0.8rem; color: var(--navy-soft); margin-bottom: var(--space-1); }
.post-card h2 { margin-bottom: var(--space-2); }
article.prose h2 { margin-top: var(--space-6); font-size: 1.35rem; }
article.prose h3 { margin-top: var(--space-5); font-size: 1.1rem; }
article.prose p, article.prose li { color: var(--navy-soft); font-size: 1rem; line-height: 1.7; }
article.prose ul, article.prose ol { padding-left: 1.3rem; }

/* ---------- Admin ---------- */
.admin-shell { display: flex; min-height: 100vh; background: var(--paper-raised); }
.admin-sidebar {
  width: 220px;
  background: var(--navy);
  color: var(--white);
  flex-shrink: 0;
  padding: var(--space-4);
  display: none;
}
.admin-sidebar .brand { color: var(--white); margin-bottom: var(--space-5); }
.admin-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.admin-nav a {
  display: block;
  text-decoration: none;
  color: #C9CCDC;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
}
.admin-nav a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.admin-nav a.active { background: var(--yellow); color: var(--navy); }
.admin-nav-group-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7C829E;
  margin: var(--space-5) 0 var(--space-2) 0.75rem;
}
.admin-nav-group-label:first-of-type { margin-top: var(--space-4); }
.admin-main { flex: 1; min-width: 0; padding: var(--space-5) var(--space-4); }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-5); flex-wrap: wrap; gap: var(--space-3); }
.admin-search-form { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.admin-search-form input[type="text"] { width: auto; min-width: 220px; }
.admin-search-form input[type="date"] { width: auto; min-width: 150px; }
.admin-search-form .btn { white-space: nowrap; }
.admin-search-form input::placeholder { font-size: 0.8rem; }
.admin-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--paper-raised); flex-shrink: 0; }
.admin-avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}
.admin-name-cell { display: flex; align-items: center; gap: var(--space-2); }
.format-toolbar {
  display: flex;
  gap: 2px;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 4px;
  background: var(--paper-raised);
}
.format-toolbar-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--navy);
}
.format-toolbar-btn:hover { background: var(--white); }
.format-toolbar + textarea { border-radius: 0 0 var(--radius) var(--radius); }
.stat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin-bottom: var(--space-5); }
.stat-tile {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-tile:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(10,15,38,0.1); }
.stat-tile b { display: block; font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.stat-tile span { font-size: 0.8rem; color: var(--navy-soft); }
.stat-tile-a { background: rgba(252, 200, 0, 0.14); }
.stat-tile-b { background: rgba(10, 15, 38, 0.06); }
.stat-tile-c { background: rgba(28, 63, 148, 0.08); }
.stat-tile-d { background: rgba(30, 127, 76, 0.1); }
.admin-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); margin-bottom: var(--space-5); }
.badge { display: inline-block; padding: 0.2rem 0.55rem; border-radius: var(--radius); font-size: 0.72rem; font-weight: 700; }
.badge-yes { background: #DFF3E6; color: var(--success); }
.badge-no { background: #F4E3E1; color: var(--danger); }
.badge-pending { background: #FFF3D0; color: #8A6600; }
.admin-mobile-nav {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
}
.admin-mobile-nav a {
  flex: 0 0 auto;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.8rem;
  background: var(--white);
}
.admin-mobile-nav a.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
@media (min-width: 960px) {
  .admin-sidebar { display: block; }
  .admin-mobile-nav { display: none; }
  .stat-tiles { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Photo section (background image + overlay) ---------- */
.section-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.section-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10,15,38,0.94), rgba(10,15,38,0.8));
}
.section-photo .container { position: relative; z-index: 1; }
.section-photo p { color: #D8DAE6; }
.section-photo h2, .section-photo h3 { color: var(--white); }

/* ---------- Subtle background patterns ---------- */
.pattern-light {
  background-image: url('/assets/img/patterns/hex.png');
  background-repeat: repeat;
  background-size: 260px;
}
.pattern-faint {
  background-image: linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.88)), url('/assets/img/patterns/hex.png');
  background-repeat: repeat;
  background-size: 260px;
}
.pattern-whirlpool {
  background-image: url('/assets/img/patterns/whirlpool.png');
  background-repeat: repeat;
  background-size: 300px;
}
.pattern-waves {
  background-image: linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0.4)), url('/assets/img/patterns/subtle-white-mini-waves.png');
  background-repeat: repeat;
  background-size: 130px;
}
.pattern-dark {
  background-color: var(--navy);
  background-image: url('/assets/img/patterns/webb-dark.png');
  background-repeat: repeat;
  background-size: 220px;
  background-blend-mode: screen;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.small { font-size: 0.85rem; }
.muted { color: var(--navy-soft); }
.divider { border: none; border-top: 1px solid var(--line); margin: var(--space-5) 0; }
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.brand-mark { display: block; stroke: none; }

/* .card always keeps its own white surface and dark text, even when a dark section
   (.section-dark) wraps it and would otherwise force its headings/paragraphs white. */
.card h3 { color: var(--navy); }
.card p { color: var(--navy-soft); }
.card .eyebrow { color: var(--navy); }

/* Expert profile: keep the "Book a session" panel in view while the profile scrolls (desktop only,
   where it sits beside the profile in the two-column layout). */
@media (min-width: 900px) {
  .profile-book-panel { position: sticky; top: calc(var(--header-height) + var(--space-4)); align-self: start; }
}


/* ---------- Home: "Do you need to talk to someone?" (therapist / doctor) ---------- */
.talk-section { padding: var(--space-8) 0; background: var(--paper-raised); }
.talk-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-items: center; }
.talk-photo { margin: 0; position: relative; }
.talk-photo img { border-radius: var(--radius-lg); display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.talk-chip {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--navy);
  font-size: 0.8rem; font-weight: 700;
  padding: 0.55rem 0.85rem; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(10, 15, 38, 0.18);
  white-space: nowrap;
}
.talk-chip svg { width: 16px; height: 16px; stroke: var(--navy); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.talk-chip-a { top: 6%; left: -2%; }
.talk-chip-b { top: 44%; right: -2%; }
.talk-chip-c { bottom: 8%; left: 4%; }
@media (prefers-reduced-motion: no-preference) {
  .talk-chip { animation: talk-float 6s ease-in-out infinite; }
  .talk-chip-b { animation-delay: -2s; }
  .talk-chip-c { animation-delay: -4s; }
}
@keyframes talk-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 640px) {
  .talk-chip { font-size: 0.72rem; padding: 0.45rem 0.7rem; }
  .talk-chip-a { left: 2%; } .talk-chip-b { right: 2%; }
}
.talk-copy h2 { margin-bottom: var(--space-3); }
.talk-lede { max-width: 52ch; }
.talk-cta-line { font-weight: 800; font-size: 1.15rem; color: var(--navy); margin: var(--space-4) 0 0; }
.talk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin: var(--space-4) 0 0; }
.talk-option { min-width: 0; }
.talk-option .btn { width: 100%; white-space: nowrap; }
.talk-option p { font-size: 0.85rem; line-height: 1.5; margin: var(--space-3) 0 0; }
@media (min-width: 900px) {
  .talk-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-8); }
}
@media (max-width: 767px) {
  .talk-copy { text-align: center; }
  .talk-lede { margin-left: auto; margin-right: auto; }
}
@media (max-width: 400px) {
  .talk-option .btn { padding-left: 0.4rem; padding-right: 0.4rem; font-size: 0.8rem; }
}

/* ---------- Experts: category explainer ---------- */
.category-blurb {
  background: #FFF8DF;
  border: 1px solid rgba(252, 200, 0, 0.55);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
  font-size: 0.9rem;
  color: var(--navy);
}

/* ---------- Become a partner: plan picker + steps ---------- */
.apply-step { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-5) 0 var(--space-3); }
.apply-step:first-child { margin-top: 0; }
.apply-step-num {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--yellow); font-weight: 800; font-size: 0.9rem;
}
.plan-picker { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.plan-option {
  position: relative;
  display: flex; flex-direction: column; gap: 2px;
  padding: var(--space-4);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.plan-option.checked { border-color: var(--navy); background: #FFF8DF; box-shadow: 0 0 0 3px rgba(252, 200, 0, 0.45); }
.plan-name { font-weight: 800; font-size: 0.95rem; }
.plan-price { font-weight: 800; font-size: 1.2rem; color: var(--navy); }
.plan-note { font-size: 0.76rem; color: var(--navy-soft); }
.plan-flag {
  align-self: flex-start;
  background: var(--yellow); color: var(--navy);
  font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem; border-radius: 999px; margin-bottom: 4px;
}
.benefit-list { margin: var(--space-3) 0 0; padding-left: 1.1rem; display: grid; gap: var(--space-2); }
@media (max-width: 340px) { .plan-picker { grid-template-columns: 1fr; } }

/* =====================================================================================
   Phone "app" experience (public site, below 768px)
   Bottom tab bar, compact app bar, bottom-sheet menu, app-style cards and touch targets.
   Everything is scoped to body.has-app-nav so the live call screen, dashboard and admin
   are untouched, and desktop/tablet layouts are unchanged.
   ===================================================================================== */
.app-tabbar, .app-sheet-backdrop, .app-avatar { display: none; }

@media (max-width: 767px) {
  body.has-app-nav {
    --header-height: 58px;
    --tabbar-height: 64px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --radius: 12px;
    --radius-lg: 18px;
    background: #F2F4F8;
    padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    padding-bottom: calc(var(--tabbar-height) + var(--safe-bottom) + var(--space-3));
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
  }
  body.has-app-nav.impersonating { padding-top: calc(var(--header-height) + 36px); }
  body.sheet-open { overflow: hidden; }

  /* App bar: compact, centered logo, no hamburger (the tab bar replaces it). */
  .has-app-nav .topbar {
    padding-top: env(safe-area-inset-top, 0px);
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: none;
    backdrop-filter: none; /* a backdrop-filter would trap the fixed bottom sheet inside the bar */
    border-bottom: 1px solid rgba(10, 15, 38, 0.06);
  }
  .has-app-nav .topbar-inner { justify-content: space-between; height: var(--header-height); }
  .has-app-nav .brand-logo { height: 32px; }
  .has-app-nav .nav-actions { display: flex; }
  .has-app-nav .nav-actions .btn, .has-app-nav .nav-toggle { display: none; }
  .has-app-nav .app-avatar {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--paper-raised);
    border: 2px solid var(--line);
    color: var(--navy);
  }
  .has-app-nav .app-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
  .has-app-nav .app-avatar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .has-app-nav .app-avatar:active { transform: scale(0.94); }

  /* Bottom tab bar */
  .app-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 80;
    height: calc(var(--tabbar-height) + var(--safe-bottom));
    padding: 6px 4px var(--safe-bottom);
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid rgba(10, 15, 38, 0.08);
    box-shadow: 0 -6px 24px rgba(10, 15, 38, 0.06);
  }
  .app-tab {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    background: none; border: 0; padding: 0;
    color: #7A7F99;
    font: inherit; font-size: 0.68rem; font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.12s ease;
  }
  .app-tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
  .app-tab:active { transform: scale(0.92); }
  .app-tab.active { color: var(--navy); }
  .app-tab.active::before {
    content: '';
    position: absolute; top: -7px; left: 50%;
    width: 28px; height: 4px; margin-left: -14px;
    border-radius: 0 0 4px 4px;
    background: var(--yellow);
  }
  .app-tab.active svg { stroke-width: 2.2; transform: translateY(-1px); }

  /* More: bottom sheet (reuses the existing menu markup) */
  .app-sheet-backdrop {
    display: block;
    position: fixed; inset: 0; z-index: 49; /* below .topbar (50): the sheet lives inside it, so it must sit above this layer */
    background: rgba(10, 15, 38, 0.5);
    animation: app-fade 0.2s ease;
  }
  .app-sheet-backdrop[hidden] { display: none; }
  .has-app-nav .mobile-menu {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 75;
    border: 0;
    background: var(--white);
    border-radius: 24px 24px 0 0;
    padding: var(--space-3) 0 calc(var(--tabbar-height) + var(--safe-bottom) + var(--space-3));
    box-shadow: 0 -20px 50px rgba(10, 15, 38, 0.25);
    transform: translateY(105%);
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0.28s;
    max-height: 80vh; overflow-y: auto;
  }
  .has-app-nav .mobile-menu::before {
    content: '';
    display: block; width: 38px; height: 4px; border-radius: 4px;
    background: var(--line);
    margin: 0 auto var(--space-3);
  }
  .has-app-nav .mobile-menu.open { transform: none; visibility: visible; transition-delay: 0s; }
  .has-app-nav .mobile-menu ul { gap: 0; }
  .has-app-nav .mobile-menu li > a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.95rem var(--space-2);
    border-bottom: 1px solid var(--paper-raised);
    font-size: 1rem;
  }
  .has-app-nav .mobile-menu li > a::after { content: '\203A'; color: #B0B4C6; font-size: 1.4rem; line-height: 1; }
  .has-app-nav .mobile-menu li.menu-legal { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); padding: var(--space-4) 0 0; }
  .has-app-nav .mobile-menu li.menu-legal a {
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    background: var(--paper-raised);
  }
  .has-app-nav .mobile-menu li.menu-legal a::after { content: none; }

  /* Surfaces: grey canvas, white rounded cards, soft shadows instead of hairlines */
  .has-app-nav .section-border-top { border-top: 0; }
  .has-app-nav section { padding: var(--space-6) 0; }
  .has-app-nav .section-tight { padding: var(--space-4) 0 var(--space-5); }
  .has-app-nav .hero { padding: var(--space-4) 0 var(--space-5); }
  .has-app-nav .hero-photo { border-radius: 22px; overflow: hidden; box-shadow: 0 14px 34px rgba(10, 15, 38, 0.16); }
  .has-app-nav .hero-photo img { border-radius: 0; }
  .has-app-nav .consultant-card,
  .has-app-nav .partner-card,
  .has-app-nav .testimonial-card,
  .has-app-nav .card,
  .has-app-nav .hero-panel,
  .has-app-nav .form-panel,
  .has-app-nav .profile-card,
  .has-app-nav .sidebar,
  .has-app-nav .blog-card {
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 2px rgba(10, 15, 38, 0.05), 0 8px 22px rgba(10, 15, 38, 0.06);
  }
  .has-app-nav .section-dark .card { box-shadow: none; }
  .has-app-nav .trust-bar { margin: 0 var(--space-4); border-radius: var(--radius-lg); padding: var(--space-4) 0; }

  /* Touch: 46px+ targets, 16px inputs (no iOS focus-zoom), press feedback */
  .has-app-nav .btn { min-height: 46px; border-radius: 14px; }
  .has-app-nav .btn-sm { min-height: 40px; }
  .has-app-nav .btn, .has-app-nav .consultant-card, .has-app-nav .partner-category-tile { transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.15s ease; }
  .has-app-nav .btn:active, .has-app-nav .consultant-card:active, .has-app-nav .partner-category-tile:active { transform: scale(0.97); }
  .has-app-nav input:not([type="checkbox"]):not([type="radio"]),
  .has-app-nav select,
  .has-app-nav textarea { font-size: 16px; min-height: 48px; border-radius: 12px; }
  .has-app-nav textarea { min-height: 96px; }

  /* Footer becomes a quiet app footer: legal/contact live in the More sheet */
  .has-app-nav .site-footer { margin-top: var(--space-5); border-radius: 24px 24px 0 0; padding-top: var(--space-6); }
  .has-app-nav .footer-grid > div:not(:first-child) { display: none; }
  .has-app-nav .footer-grid > div:nth-child(5) { display: block; }

  /* Screens ease in like app views */
  @media (prefers-reduced-motion: no-preference) {
    .has-app-nav > section, .has-app-nav > main { animation: app-in 0.32s ease both; }
  }
}
@keyframes app-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes app-fade { from { opacity: 0; } to { opacity: 1; } }

/* Home: jobs/careers section copy is centred on phones */
@media (max-width: 767px) {
  .careers-cta-section .hero-grid > div:first-child { text-align: center; }
  .careers-cta-section .eyebrow { justify-content: center; }
}

/* Home: trusted service provider categories. Grid on larger screens; on phones a looping
   carousel that drifts left to right on its own and can be swiped either way (see main.js). */
.partner-tile-dup { display: none; }
@media (max-width: 767px) {
  .partner-tiles-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 calc(var(--space-4) * -1);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .partner-tiles-wrap::-webkit-scrollbar { display: none; }
  .partner-tiles-wrap .partner-tiles {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    width: max-content;
  }
  .partner-tiles-wrap .partner-category-tile {
    flex: 0 0 auto;
    width: 168px;
    min-height: 76px;
    margin-right: var(--space-3);
  }
  .partner-tiles-wrap .partner-tile-dup { display: flex; }
}

/* ---------- PWA install banner (phones) ---------- */
.pwa-banner {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(10, 15, 38, 0.35);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.pwa-banner.show { transform: none; opacity: 1; }
.pwa-banner-icon { border-radius: 12px; flex: 0 0 auto; }
.pwa-banner-text { flex: 1; min-width: 0; display: grid; gap: 2px; line-height: 1.3; }
.pwa-banner-text strong { color: #fff; font-size: 0.92rem; }
.pwa-banner-text span { color: #C9CCDC; font-size: 0.78rem; }
.pwa-banner-text svg { display: inline; width: 14px; height: 14px; vertical-align: -2px; stroke: #FCC800; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pwa-banner-text b { color: #fff; }
.pwa-banner-install { flex: 0 0 auto; background: var(--yellow); color: var(--navy); border: 0; border-radius: 12px; padding: 0.6rem 1rem; font: inherit; font-weight: 800; font-size: 0.88rem; cursor: pointer; }
.pwa-banner-close { flex: 0 0 auto; background: none; border: 0; color: #C9CCDC; font-size: 1.6rem; line-height: 1; padding: 0 4px; cursor: pointer; }
@media (min-width: 768px) { .pwa-banner { display: none; } }

/* ---------- Phone app shell: pull-to-refresh, simpler auth pages, no footer ---------- */
.ptr { display: none; }
@media (max-width: 767px) {
  .has-app-nav .ptr {
    display: grid; place-items: center;
    position: fixed; z-index: 45;
    top: calc(var(--header-height) + env(safe-area-inset-top, 0px) - 44px);
    left: 50%; width: 40px; height: 40px; margin-left: -20px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 6px 18px rgba(10, 15, 38, 0.2);
    opacity: 0;
    pointer-events: none;
  }
  .ptr.ptr-anim { transition: transform 0.25s ease, opacity 0.25s ease; }
  .ptr svg { width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s ease; }
  .ptr.ptr-loading svg { animation: ptr-spin 0.8s linear infinite; transform: none !important; }

  /* Sign in / create account: the app bar already carries the logo and the heading says the rest */
  .has-app-nav .auth-shell .auth-logo,
  .has-app-nav .auth-shell .eyebrow { display: none; }

  /* No footer on phones: Terms and Privacy live in the More menu */
  .has-app-nav .site-footer { display: none; }
}
@keyframes ptr-spin { to { transform: rotate(360deg); } }

/* Phones: never blur or fade partner cards */
@media (max-width: 767px), (hover: none) {
  .grid .partner-card, .grid:has(.partner-card:hover) .partner-card:not(:hover) { filter: none !important; opacity: 1 !important; }
}

/* ---------- Dashboard: empty state + phone "Explore" menu ---------- */
.empty-state { text-align: center; padding: var(--space-6) var(--space-3); display: grid; justify-items: center; gap: var(--space-2); }
.empty-state-title { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin: 0; }
.empty-state p { margin: 0; max-width: 34ch; }
.empty-state .btn { margin-top: var(--space-3); }

/* ---------- Client/consultant dashboard on phones: app bar + slide-in menu ---------- */
.dash-appbar, .dash-backdrop, .dash-explore-group { display: none; }
@media (max-width: 959px) {
  .dash-shell { display: block; }
  .dash-appbar {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 60;
    height: 58px; padding: 0 var(--space-4);
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--white);
    border-bottom: 1px solid rgba(10, 15, 38, 0.08);
  }
  .dash-menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 42px; height: 42px; margin-left: -6px;
    background: none; border: 0; border-radius: 12px; cursor: pointer;
  }
  .dash-menu-btn span { display: block; width: 22px; height: 2.5px; background: var(--navy); border-radius: 2px; }
  .dash-menu-btn:active { background: var(--paper-raised); }
  .dash-appbar-logo img { height: 32px; width: auto; }

  .dash-shell .admin-sidebar {
    display: block;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
    width: 280px; max-width: 84vw;
    padding: var(--space-5) var(--space-4) var(--space-6);
    overflow-y: auto;
    transform: translateX(-102%);
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0.28s;
    box-shadow: 20px 0 50px rgba(10, 15, 38, 0.3);
  }
  body.dash-menu-open .dash-shell .admin-sidebar { transform: none; visibility: visible; transition-delay: 0s; }
  body.dash-menu-open { overflow: hidden; }
  .dash-backdrop { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(10, 15, 38, 0.5); }
  .dash-backdrop[hidden] { display: none; }
  .dash-explore-group { display: block; }
  .dash-explore-group .admin-nav-group-label { margin-top: var(--space-5); }
  .dash-shell .admin-nav a { padding: 0.8rem 0.75rem; font-size: 0.95rem; }
  .dash-desktop-only, .dash-role-label { display: none; }
  .dash-shell .admin-main { padding-top: var(--space-4); }
}

/* ---------- Safety note, admin messages, nav count ---------- */
.safety-note { margin: var(--space-6) 0; padding: var(--space-4) 0 0; border-top: 1px solid rgba(10, 15, 38, 0.18); }
.safety-note-title { margin: 0 0 4px; font-size: 1rem; font-weight: 700; color: var(--navy); }
.safety-note-intro { margin: 0 0 var(--space-3); max-width: 60ch; font-size: 0.92rem; line-height: 1.5; color: var(--navy-soft); }
.safety-lines { margin: 0 0 var(--space-3); }
.safety-line { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: 10px 0; border-bottom: 1px solid rgba(10, 15, 38, 0.08); }
.safety-line:last-child { border-bottom: 0; }
.safety-line dt { font-size: 0.92rem; color: var(--navy); }
.safety-line dd { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: 0.01em; color: var(--navy); text-align: right; }
.safety-line dd a { color: inherit; text-decoration: none; }
.safety-line dd a:hover { text-decoration: underline; }
.safety-note .safety-note-foot { margin: 0; max-width: 60ch; font-size: 0.8rem; color: var(--navy-soft); }
.talk-urgent { margin: var(--space-3) 0 0; font-size: 0.82rem; }
.talk-urgent a { color: var(--navy-soft); text-decoration: underline; }
.category-blurb a { color: var(--danger); font-weight: 700; white-space: nowrap; }
.nav-count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: 0.7rem; font-weight: 800; text-align: center; line-height: 18px; }
.message-card { margin-bottom: var(--space-3); }
.message-new { border-left: 4px solid var(--yellow); }
.message-head { display: flex; justify-content: space-between; gap: var(--space-3); align-items: flex-start; }
.message-body { margin: var(--space-3) 0; color: var(--navy); }
.message-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
@media (max-width: 767px) { .talk-urgent { text-align: center; } }
.filter-check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.filter-check input { width: auto; }

/* ---------- Help me choose quiz ---------- */
.quiz fieldset { border: 0; padding: 0; margin: 0 0 var(--space-5); }
.quiz legend { font-weight: 800; font-size: 1.05rem; margin-bottom: var(--space-3); padding: 0; }
.quiz-option { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border: 2px solid var(--line); border-radius: var(--radius-lg); margin-bottom: var(--space-2); cursor: pointer; }
.quiz-option:has(input:checked) { border-color: var(--navy); background: #FFF8DF; }
.quiz-option input { width: auto; margin-top: 4px; }
.quiz-option small { display: block; color: var(--navy-soft); font-size: 0.82rem; font-weight: 400; }
.quiz-label { display: block; font-weight: 700; font-size: 0.85rem; margin: var(--space-3) 0 var(--space-2); }

/* ---------- Push opt-in ---------- */
.push-prompt { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4); background: #FFF8DF; border: 1px solid rgba(252, 200, 0, 0.55); border-radius: var(--radius-lg); }
.push-prompt.push-on { background: #E9F6EE; border-color: #BFE3CD; }
.push-prompt[hidden] { display: none; }

.credit-pack { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); display: grid; gap: var(--space-2); background: var(--white); }
.credit-pack-credit { font-size: 1.3rem; font-weight: 800; color: var(--navy); }

.security-steps { padding-left: 1.2rem; display: grid; gap: var(--space-3); }
.security-key { margin: var(--space-2) 0; padding: var(--space-3); background: var(--paper-raised); border-radius: var(--radius); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: 0.06em; word-break: break-all; }

.report-bar { height: 10px; background: var(--paper-raised); border-radius: 999px; overflow: hidden; }
.report-bar span { display: block; height: 100%; background: var(--yellow); border-radius: 999px; }

/* ---------- Language switcher ---------- */
.lang-links { display: inline-flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.lang-links a { font-size: 0.78rem; font-weight: 600; text-decoration: none; color: var(--navy-soft); }
.lang-links a:hover { color: var(--navy); text-decoration: underline; }
.lang-links a.active { color: var(--navy); font-weight: 800; border-bottom: 2px solid var(--yellow); }
.lang-desktop { display: none; }
@media (min-width: 860px) { .lang-desktop { display: block; } }
.footer-bottom .lang-links a { color: #C9CCDC; }
.footer-bottom .lang-links a.active { color: #fff; }
@media (max-width: 767px) {
  .has-app-nav .mobile-menu li.menu-lang { padding: var(--space-3) var(--space-2) 0; }
  .has-app-nav .mobile-menu li.menu-lang .lang-links a { font-size: 0.9rem; padding: 0.4rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; border-bottom-width: 1px; }
  .has-app-nav .mobile-menu li.menu-lang .lang-links a::after { content: none; }
  .has-app-nav .mobile-menu li.menu-lang .lang-links a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
}

/* ---------- Language: globe icon + dropdown in the top bar ---------- */
.lang-menu { position: relative; }
.lang-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer; padding: 0; }
.lang-btn:hover { background: var(--paper-raised); }
.lang-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 120; min-width: 160px; margin: 0; padding: 6px; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(10, 15, 38, 0.18); }
.lang-list[hidden] { display: none; }
.lang-list a { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 0.65rem 0.8rem; border-radius: 10px; text-decoration: none; color: var(--navy); font-size: 0.92rem; font-weight: 600; }
.lang-list a:hover { background: var(--paper-raised); }
.lang-list a.active { background: #FFF8DF; font-weight: 800; }
@media (max-width: 767px) { .has-app-nav .nav-actions { gap: var(--space-2); } }

/* Urgent help page: everything centred */
.urgent-page { text-align: center; }
.urgent-page .eyebrow { justify-content: center; }
.urgent-page .lede { margin-left: auto; margin-right: auto; }
.urgent-page .safety-note { text-align: center; max-width: 520px; margin-left: auto; margin-right: auto; }
.urgent-page .safety-note-intro, .urgent-page .safety-note-foot { margin-left: auto; margin-right: auto; }
.urgent-page .safety-line { flex-direction: column; align-items: center; gap: 2px; }
.urgent-page .safety-line dd { text-align: center; font-size: 1.6rem; }

/* ---------- Notification banner (signed-in people) ---------- */
.push-banner {
  position: fixed; left: 0; right: 0; z-index: 55;
  top: var(--header-height, 76px);
  display: flex; align-items: center; justify-content: center; gap: var(--space-3);
  padding: 0.6rem var(--space-4);
  background: var(--yellow); color: var(--navy);
  font-size: 0.88rem; font-weight: 600;
  box-shadow: 0 6px 18px rgba(10, 15, 38, 0.15);
  transform: translateY(-110%); opacity: 0; transition: transform 0.28s ease, opacity 0.28s ease;
}
.push-banner.show { transform: none; opacity: 1; }
.push-banner[hidden] { display: none; }
.push-banner-text { flex: 0 1 auto; }
.push-banner-close { background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--navy); cursor: pointer; padding: 0 4px; }
@media (max-width: 767px) {
  body.has-app-nav .push-banner { top: calc(var(--header-height) + env(safe-area-inset-top, 0px)); font-size: 0.8rem; padding: 0.5rem var(--space-3); }
  body.has-app-nav.impersonating .push-banner { top: calc(var(--header-height) + 36px); }
}

/* ---------- Bookings tables become cards on phones; the Join button is the biggest thing ---------- */
@media (max-width: 767px) {
  .responsive-table { display: block; width: 100%; border: 0; }
  .responsive-table thead { display: none; }
  .responsive-table tbody { display: block; }
  .responsive-table tr {
    display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: center;
    padding: var(--space-4); margin-bottom: var(--space-3);
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: 0 1px 2px rgba(10, 15, 38, 0.05), 0 6px 16px rgba(10, 15, 38, 0.05);
  }
  .responsive-table td { display: block; border: 0; padding: 0; min-width: 0; }
  .responsive-table td[data-col="name"] { grid-column: 1; grid-row: 1; font-weight: 800; font-size: 1.05rem; color: var(--navy); }
  .responsive-table td[data-col="status"] { grid-column: 2; grid-row: 1; }
  .responsive-table td[data-col="actions"] { grid-column: 1 / -1; grid-row: 2; display: flex !important; flex-wrap: wrap; gap: var(--space-2); }
  .responsive-table td[data-col="actions"]:empty { display: none !important; }
  .responsive-table td[data-label] {
    grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3);
    padding-top: 8px; border-top: 1px dashed var(--line); font-size: 0.92rem; text-align: right;
  }
  .responsive-table td[data-label]::before { content: attr(data-label); font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy-soft); text-align: left; }
  /* The one thing you came here for */
  .responsive-table .btn-join { flex: 1 1 100%; min-height: 54px; font-size: 1.1rem; background: var(--yellow); color: var(--navy); border-color: var(--yellow); box-shadow: 0 6px 16px rgba(252, 200, 0, 0.45); }
  .responsive-table td[data-col="actions"] .btn:not(.btn-join) { flex: 1 1 auto; }
}

/* "Buy more time": the options are listed one under another on phones, each a big tap target */
@media (max-width: 767px) {
  .radio-row.radio-stack { flex-direction: column; gap: var(--space-2); }
  .radio-row.radio-stack .radio-card {
    display: flex; align-items: center; gap: var(--space-3);
    min-height: 58px; padding: var(--space-3) var(--space-4);
    font-size: 1.02rem; border-width: 2px;
  }
  .radio-row.radio-stack .radio-card input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; }
}

/* ---------- Admin: notification preview ---------- */
.notif-preview { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); background: var(--paper-raised); border-radius: 16px; box-shadow: 0 8px 24px rgba(10, 15, 38, 0.12); }
.notif-preview img { border-radius: 10px; flex: 0 0 auto; }
.notif-preview strong { display: block; font-size: 0.95rem; color: var(--navy); }
.notif-preview p { margin: 2px 0 4px; font-size: 0.85rem; color: var(--navy-soft); line-height: 1.35; }
.notif-preview span { font-size: 0.72rem; color: #8A90A8; }

/* ---------- Booking: pick a time ---------- */
.slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin-top: var(--space-2); }
@media (min-width: 640px) { .slot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.slot-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 48px; padding: 0.4rem 0.25rem;
  border: 2px solid var(--line); border-radius: 12px; background: var(--white); color: var(--navy);
  font: inherit; font-size: 0.92rem; font-weight: 700; cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.1s ease;
}
.slot-chip:hover { border-color: var(--navy); }
.slot-chip:active { transform: scale(0.97); }
.slot-chip.selected { background: var(--navy); border-color: var(--navy); color: #fff; }
.slot-chip.slot-booked { background: var(--paper-raised); color: #9AA0B8; border-style: dashed; cursor: not-allowed; }
.slot-chip.slot-booked span { text-decoration: line-through; }
.slot-chip.slot-booked small { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--danger); }
.slot-chosen { margin-top: var(--space-3); padding: var(--space-3) var(--space-4); background: #FFF8DF; border: 1px solid rgba(252, 200, 0, 0.6); border-radius: var(--radius); font-weight: 700; color: var(--navy); }
.slot-chosen[hidden] { display: none; }

/* ---------- Dashboard: "Book an expert" stays visible ---------- */
.book-another-bar { display: flex; justify-content: flex-end; margin-bottom: var(--space-4); }
.topbar-buttons { display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 767px) {
  .book-another-bar .btn { width: 100%; min-height: 50px; font-size: 1.02rem; }
  .topbar-buttons { width: 100%; }
  .topbar-buttons .btn { flex: 1 1 auto; }
}

/* Chat / notes on phones: a compact bottom sheet (not a full-height wall) with a big,
   easy-to-hit close button, so it can be dismissed without pinching or zooming. */
.call-chat-close { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem; }
@media (max-width: 640px) {
  .call-chat-panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 42vh;
    max-height: 42vh;
    border-radius: 16px 16px 0 0;
    transform: translateY(105%);
    box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
  }
  .call-chat-panel.open { transform: translateY(0); }
  .call-chat-header { padding: 0 var(--space-2) 0 var(--space-4); min-height: 48px; background: var(--paper-raised); border-radius: 16px 16px 0 0; }
  .call-chat-form { padding: var(--space-2) var(--space-3); }
  .call-chat-form input { font-size: 16px; }
}

/* ---------- Notification bell (dashboard header) ---------- */
.notif-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper-raised); color: var(--navy); cursor: pointer; }
.notif-bell svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.notif-bell:active { transform: scale(0.94); }
.notif-badge { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #d93025; color: #fff; font-size: 0.68rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.notif-badge[hidden] { display: none; }
.dash-appbar-right { display: flex; align-items: center; gap: 12px; }
.notif-desktop { display: inline-flex; }
@media (max-width: 959px) { .notif-desktop { display: none; } }
.notif-panel { position: fixed; top: 64px; right: 16px; z-index: 120; width: 380px; max-width: calc(100vw - 24px); max-height: 70vh; display: flex; flex-direction: column; background: var(--white); border-radius: 16px; box-shadow: 0 18px 50px rgba(10, 15, 38, 0.28); overflow: hidden; }
.notif-panel[hidden] { display: none; }
.notif-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 16px; border-bottom: 1px solid rgba(10, 15, 38, 0.08); }
.notif-close { width: 44px; height: 44px; border: 0; background: none; font-size: 1.8rem; line-height: 1; color: var(--navy-soft); cursor: pointer; }
.notif-actions { display: flex; gap: 8px; padding: 8px 12px; border-bottom: 1px solid rgba(10, 15, 38, 0.06); }
.notif-list { overflow-y: auto; }
.notif-empty { margin: 0; padding: 28px 16px; text-align: center; color: var(--navy-soft); }
.notif-item { border-bottom: 1px solid rgba(10, 15, 38, 0.06); }
.notif-head { display: block; width: 100%; text-align: left; padding: 12px 16px; background: none; border: 0; cursor: pointer; font: inherit; color: var(--navy); }
.notif-item.unread { background: #fff9e0; }
.notif-item.unread .notif-head strong::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #d93025; }
.notif-body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 0.9rem; color: var(--navy-soft); }
.notif-item.expanded .notif-body { display: block; -webkit-line-clamp: unset; }
.notif-head small { display: block; margin-top: 4px; font-size: 0.74rem; color: var(--navy-soft); opacity: 0.8; }
.notif-item-actions { display: none; gap: 8px; padding: 0 16px 12px; }
.notif-item.expanded .notif-item-actions { display: flex; }
@media (max-width: 959px) {
  .notif-panel { top: 58px; right: 0; left: 0; width: auto; max-width: none; border-radius: 0 0 16px 16px; max-height: 75vh; }
}
.profile-lang .lang-links { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-lang .lang-links a { padding: 0.55rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--navy); font-weight: 600; }
.profile-lang .lang-links a.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Terms consent (sign-up pages): checkbox beside a normal-weight sentence, wrapped lines stay aligned with the text */
.field.terms-consent { margin-top: 4px; }
.field.terms-consent label.terms-check {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0; font-weight: 400; font-size: 0.8125rem; line-height: 1.5; color: #4b5160; cursor: pointer;
}
.field.terms-consent label.terms-check input[type="checkbox"] {
  flex: 0 0 auto; width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: #0b1020;
}
.field.terms-consent label.terms-check a { color: #0b1020; font-weight: 600; text-decoration: underline; }
.terms-continue { text-align: center; margin: 10px 0 0; line-height: 1.5; font-size: 0.75rem; }

@media (max-width: 820px), (display-mode: standalone) {
  .field.terms-consent label.terms-check { font-size: 13px; }
  .field.terms-consent label.terms-check input[type="checkbox"] { width: 20px; height: 20px; }
  .terms-continue { font-size: 12px; }
}

/* Admin overview tiles: one row on desktop, never wrapping onto a second line (pages that set their own columns are left alone) */
@media (min-width: 900px) {
  .stat-tiles:not([style*="grid-template-columns"]) { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .stat-tiles:not([style*="grid-template-columns"]) .stat-tile b { white-space: nowrap; font-size: clamp(1.15rem, 1.7vw, 1.6rem); }
  .stat-tiles:not([style*="grid-template-columns"]) .stat-tile span { white-space: nowrap; }
}

/* ---------- Site-wide popup dialogs (replace browser confirm / alert / prompt) ---------- */
.qd-lock { overflow: hidden; }
.qd-overlay { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px;
  background: rgba(10, 15, 38, 0.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .16s ease; }
.qd-overlay.qd-in { opacity: 1; }
.qd-card { width: min(400px, 100%); background: var(--qa-card, #fff); color: var(--qa-ink, #0A0F26); border-radius: 22px; padding: 26px 22px 18px;
  text-align: center; box-shadow: 0 24px 60px rgba(10, 15, 38, 0.35); transform: translateY(8px) scale(.98); transition: transform .16s ease; }
.qd-in .qd-card { transform: none; }
.qd-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; }
.qd-icon svg { width: 26px; height: 26px; fill: currentColor; }
.qd-info { background: #E8ECFA; color: #0A0F26; }
.qd-warn { background: #FFF1B8; color: #7A5A00; }
.qd-danger { background: #FDE7E5; color: #D92D20; }
.qd-title { margin: 0 0 6px; font-size: 1.15rem; font-weight: 800; line-height: 1.25; }
.qd-msg { margin: 0 0 18px; font-size: .95rem; line-height: 1.5; color: var(--qa-muted, #4b5160); white-space: pre-line; }
.qd-field { text-align: left; margin: 0 0 16px; }
.qd-label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.qd-input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--qa-line, #cfd3dc); border-radius: 12px; font-size: 1rem; background: var(--qa-card, #fff); color: inherit; box-sizing: border-box; }
.qd-input:focus { outline: 2px solid #FCC800; outline-offset: 1px; }
.qd-error { min-height: 1.1em; margin-top: 6px; color: #D92D20; font-size: .85rem; }
.qd-actions { display: flex; gap: 10px; }
.qd-btn { flex: 1; height: 48px; border-radius: 14px; border: 1px solid transparent; font-size: .95rem; font-weight: 700; cursor: pointer; font-family: inherit; }
.qd-btn-primary { background: #FCC800; color: #0A0F26; }
.qd-btn-danger { background: #D92D20; color: #fff; }
.qd-btn-ghost { background: transparent; border-color: var(--qa-line, #cfd3dc); color: inherit; }
.qd-btn:focus-visible { outline: 3px solid rgba(10, 15, 38, .35); outline-offset: 2px; }
@media (max-width: 420px) { .qd-actions { flex-direction: column-reverse; } }
@media (prefers-reduced-motion: reduce) { .qd-overlay, .qd-card { transition: none; } }
a.qd-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.qd-actions.qd-stack { flex-direction: column; }
.qd-static { opacity: 1; transition: none; }
.qd-actions.qd-stack .qd-btn { flex: none; width: 100%; }
@media (max-width: 420px) { .qd-actions { flex-direction: column-reverse; } .qd-actions .qd-btn { flex: none; width: 100%; } }

/* "Documents you will need" box on the expert sign-up page */
.reg-docs { text-align: left; background: var(--qa-card, #FFFBEA); border: 1px solid #F1E3A6; border-radius: 16px; padding: 16px 18px; margin: 0 0 var(--space-4, 20px); color: var(--qa-ink, #0A0F26); }
.reg-docs h2 { margin: 0 0 4px; font-size: 1.05rem; line-height: 1.3; }
.reg-docs h3 { margin: 14px 0 6px; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; color: var(--qa-muted, #4b5160); }
.reg-docs-lede { margin: 0 0 10px; font-size: .9rem; line-height: 1.5; color: var(--qa-muted, #4b5160); }
.reg-docs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.reg-docs-list li { position: relative; padding: 8px 12px 8px 38px; background: rgba(252, 200, 0, .13); border-radius: 12px; font-size: .92rem; line-height: 1.35; }
.reg-docs-list li::before { content: ""; position: absolute; left: 12px; top: 11px; width: 16px; height: 16px; border-radius: 50%; background: #0A0F26 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FCC800' d='M9.5 16.2 5.3 12l1.4-1.4 2.8 2.8 7.8-7.8L18.7 7z'/%3E%3C/svg%3E") center / 14px no-repeat; }
.reg-docs-list b { display: block; font-weight: 700; }
.reg-docs-list span { display: block; font-size: .84rem; color: var(--qa-muted, #4b5160); margin-top: 1px; }
.reg-docs-steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: .9rem; line-height: 1.45; }
[data-theme="dark"] .reg-docs { background: var(--qa-card, #151A2C); border-color: rgba(252, 200, 0, .3); }

/* Session attachments and links */
.call-attach-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.1rem; cursor: pointer; }
.call-file-chip { font-size: .78rem; color: #C9CCDC; word-break: break-word; }
.chat-link { color: inherit; text-decoration: underline; font-weight: 600; word-break: break-all; }
.chat-file { display: flex; align-items: center; gap: 8px; margin-top: 2px; padding: 6px 10px; border-radius: 10px; background: rgba(11,16,32,.08); color: inherit; text-decoration: none; }
.chat-file-name { font-weight: 700; word-break: break-all; }
.chat-file-size { font-size: .72rem; opacity: .7; margin-left: auto; white-space: nowrap; }

/* Report links (reviews and profiles) */
.report-link { background: none; border: 0; padding: 4px 0; margin-top: 4px; color: var(--navy-soft); font-size: .75rem; text-decoration: underline; cursor: pointer; }
.report-link:disabled { opacity: .5; cursor: default; text-decoration: none; }

/* Admin overview charts */
.chart-svg { width: 100%; height: auto; max-height: 230px; display: block; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-4); }
.chart-grid .admin-panel { margin-bottom: 0; }
.hbar { display: grid; grid-template-columns: minmax(80px, 38%) 1fr auto; align-items: center; gap: 8px; font-size: .82rem; margin: 6px 0; }
.hbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar em { display: block; height: 10px; border-radius: 6px; background: #ECEEF5; overflow: hidden; min-width: 0; }
.hbar i { display: block; height: 100%; border-radius: 6px; background: var(--yellow); }
.hbar b { font-weight: 700; }
.big-figure { font-size: 2rem; font-weight: 800; margin: 0; color: var(--navy); }

/* Trust badges on expert profiles */
.trust-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.trust-badge { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #E8F6EE; color: #0F6B3A; }
.trust-badge.tb-top_rated { background: #FFF3C4; color: #7A5B00; }

/* Session bundles */
.bundle-list { display: grid; gap: 10px; margin-bottom: var(--space-4); }
.bundle-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line, #E3E6F0); border-radius: 14px; background: #fff; }
.bundle-item b { display: block; font-size: .92rem; }
.bundle-use { display: flex; align-items: center; gap: 8px; font-weight: 600; }

/* Group sessions */
.grp-list { display: grid; gap: 14px; margin-top: var(--space-4); }
.grp-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line, #E3E6F0); border-radius: 16px; background: #fff; margin-bottom: 12px; }
.grp-when { flex: none; width: 76px; text-align: center; background: var(--navy, #0A0F26); color: #fff; border-radius: 12px; padding: 8px 4px; }
.grp-when b { display: block; font-size: .85rem; } .grp-when span { font-size: .7rem; color: #B8BED6; }
.grp-main { flex: 1; min-width: 0; } .grp-main h3 { margin: 0 0 4px; font-size: 1rem; }
.grp-act { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
@media (max-width: 560px) { .grp-card { flex-wrap: wrap; } .grp-act { flex-direction: row; width: 100%; justify-content: flex-start; } }

/* Call: whiteboard and weak-connection notice */
.wb-panel { position: fixed; inset: 0; z-index: 60; display: none; flex-direction: column; background: #fff; padding-top: env(safe-area-inset-top); }
.wb-panel.open { display: flex; }
.wb-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #0A0F26; }
.wb-colors { display: flex; gap: 8px; flex: 1; }
.wb-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.wb-dot.on { border-color: #FBC900; box-shadow: 0 0 0 2px #fff; }
.wb-btn { height: 34px; padding: 0 14px; border-radius: 10px; border: 0; background: rgba(255,255,255,.14); color: #fff; font: 600 13px Inter, sans-serif; cursor: pointer; }
.wb-close { font-size: 22px; line-height: 1; padding: 0 12px; }
.wb-canvas { flex: 1; width: 100%; touch-action: none; background: #fff; }
#btnWhiteboard.on { background: #FBC900; color: #0A0F26; }
.call-lowbw { position: absolute; left: 12px; right: 12px; bottom: 90px; z-index: 30; display: flex; align-items: center; gap: 10px; background: rgba(10,15,38,.92); color: #fff; border-radius: 14px; padding: 10px 12px; font-size: 13px; }
.call-lowbw span { flex: 1; } .call-lowbw button { height: 34px; padding: 0 14px; border-radius: 10px; border: 0; background: #FBC900; color: #0A0F26; font: 700 13px Inter, sans-serif; cursor: pointer; }
.call-lowbw button.x { background: transparent; color: #fff; font-size: 20px; padding: 0 6px; }

/* Payment details and payout card */
.pd-line { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; background: var(--paper-raised, #F4F5F9); border-radius: 12px; padding: 12px 14px; margin-bottom: var(--space-3); font-size: .86rem; }
.pd-line a { white-space: nowrap; font-weight: 700; }
[data-pd][hidden] { display: none !important; }
.pd-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #FFF3C4; color: #5A4300; border-radius: 14px; padding: 12px 14px; margin-bottom: var(--space-4); font-size: .86rem; font-weight: 600; }
.pd-banner a { background: #0A0F26; color: #fff; border-radius: 10px; padding: 8px 14px; text-decoration: none; font-weight: 700; white-space: nowrap; }


/* Round-two design fixes */
.admin-actions { white-space: nowrap; text-align: right; width: 1%; }
.admin-actions > form, .admin-actions > details { display: inline-block; vertical-align: middle; margin: 0 0 0 6px; }
.row-menu { position: relative; }
.row-menu summary { list-style: none; cursor: pointer; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 150px; background: #fff; border: 1px solid #E3E6F0; border-radius: 12px; box-shadow: 0 10px 28px rgba(10,15,38,.16); padding: 6px; text-align: left; }
.row-menu-list a, .row-menu-list button { display: block; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; font: 600 .82rem var(--font-body, Inter, sans-serif); color: #0A0F26; text-align: left; text-decoration: none; cursor: pointer; }
.row-menu-list a:hover, .row-menu-list button:hover { background: #F4F5F9; }
.row-menu-list .danger { color: #C62828; }
.row-menu-list form { margin: 0; display: block; }
.pd-banner a, :root body .pd-banner a { color: #fff !important; }
.empty-card { text-align: center; padding: 36px 20px; border: 1px dashed var(--line, #D9DDEA); border-radius: 18px; background: #fff; max-width: 560px; margin: var(--space-5) auto; }
.empty-card .empty-ic { width: 56px; height: 56px; border-radius: 50%; background: #FFF3C4; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.empty-card .empty-ic svg { width: 28px; height: 28px; fill: none; stroke: #0A0F26; stroke-width: 1.8; }
.empty-card h3 { margin: 0 0 6px; }
.empty-card p { color: var(--navy-soft, #5B6385); margin: 0 0 14px; }
@media (min-width: 821px) { .grp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Admin tables: tighter cells so every column and the action buttons stay inside the card */
.admin-panel table th, .admin-panel table td { padding-left: 8px; padding-right: 8px; }
.admin-panel table td .btn-sm { padding-left: 12px; padding-right: 12px; }
.admin-panel table { font-size: .88rem; }
.admin-panel table td { word-break: normal; overflow-wrap: break-word; }
.admin-panel table td:nth-child(n+4) { white-space: nowrap; }
.admin-panel table td.small, .admin-panel table td.muted { white-space: normal; }

.row-menu-list .menu-note { display: block; padding: 8px 10px; font-size: .78rem; color: #6B7390; }
.admin-actions .btn-sm { white-space: nowrap; }

.admin-panel table td.nowrap { white-space: nowrap !important; }
.admin-actions > a.btn { margin-left: 6px; }

/* Admin: add users */
.adduser-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3); }
.adduser-tabs { display: flex; gap: 8px; margin: var(--space-3) 0; }
.radio-line { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0; font-weight: 500; }
.radio-line input { width: auto; margin-top: 3px; }
.admin-title-actions { margin-bottom: var(--space-4); }

/* Get the app badges (website only: hidden inside the installed app) */
.app-badges { margin-top: var(--space-5); }
.app-badges-label { margin: 0 0 8px; font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--navy-soft, #5B6385); }
.app-badges-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-badge { position: relative; display: inline-block; height: 44px; overflow: visible; text-decoration: none; line-height: 0; }
.store-badge img { display: block; width: auto; height: 44px; }
/* The Google Play image has built-in clear space: crop it to the badge so both badges are the same size. */
.store-badge-play { overflow: hidden; border-radius: 7px; }
.store-badge-play img { height: 66px; margin: -11px -12px; max-width: none; }
.store-badge-apple img { width: 132px; height: 44px; }
.store-badge.is-soon { cursor: default; pointer-events: none; user-select: none; }
.store-badge.is-soon img { opacity: .45; filter: grayscale(.5); }
.store-badge.is-soon em { position: absolute; right: -6px; top: -9px; white-space: nowrap; font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; line-height: 1.4; background: #FBC900; color: #0A0F26; padding: 2px 8px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.app-badges-footer { margin-top: var(--space-4); }
.app-badges-footer .store-badge, .app-badges-footer .store-badge img { height: 40px; }
.app-badges-footer .store-badge-apple img { width: 120px; }
.app-badges-footer .store-badge-play img { height: 60px; margin: -10px -11px; }
.store-badge-play:focus-visible { outline: 2px solid #FBC900; outline-offset: 3px; }
@media (max-width: 820px) { .app-badges-hero { text-align: center; margin-bottom: var(--space-4); } .app-badges-hero .app-badges-row { justify-content: center; } }
@media (display-mode: standalone) { .app-badges { display: none !important; } }

/* "Get the app" band on the home page */
.app-band { background: var(--navy, #0A0F26); color: #fff; padding: var(--space-8, 56px) 0; }
.app-band-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6, 32px); flex-wrap: wrap; }
.app-band-copy { max-width: 560px; }
.app-band-copy h2 { color: #fff; margin: 4px 0 8px; }
.app-band-copy p { color: #C9CCDC; margin: 0; }
.app-band .eyebrow { color: var(--yellow, #FBC900); }
.app-badges-band { margin: 0; }
.app-badges-band .app-badges-row { gap: 16px; }
.app-badges-band .store-badge, .app-badges-band .store-badge img { height: 52px; }
.app-badges-band .store-badge-apple img { width: 156px; }
.app-badges-band .store-badge-play img { height: 78px; margin: -13px -14px; }
.app-badges-band .store-badge.is-soon em { background: #FBC900; }
@media (max-width: 820px) { .app-band { padding: var(--space-6, 36px) 0; text-align: center; } .app-band-inner { justify-content: center; } .app-badges-band .app-badges-row { justify-content: center; } }
@media (display-mode: standalone) { .app-band { display: none !important; } }

/* Admin: edit reviews */
.review-edit { border: 1px solid #E3E6F0; border-radius: 14px; padding: 14px; margin-bottom: 12px; background: #fff; }
.review-edit.is-hidden { background: #FAF3F3; }
.review-edit-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 10px; }
.review-edit-body { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.review-edit-body label { display: block; }
.review-edit-body textarea { width: 100%; min-width: 260px; }
.review-edit-actions { display: flex; gap: 8px; margin-top: 10px; }

/* App band: phone image left, words and store badges right (desktop) */
.app-band-inner { justify-content: center; flex-wrap: nowrap; gap: var(--space-8, 56px); }
.app-band-shot { display: block; width: 240px; height: auto; margin: -28px 0; flex: none; }
.app-band-copy { max-width: 520px; }
.app-band-copy .app-badges { margin-top: 22px; }
.app-band-copy .app-badges-row { justify-content: flex-start; }
@media (max-width: 820px) { .app-band-shot { display: none; } .app-band-inner { flex-wrap: wrap; } .app-band-copy .app-badges-row { justify-content: center; } }

/* App band v2: balanced two columns, smaller phone, animations */
.app-band { overflow: hidden; padding: 48px 0; }
.app-band-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; justify-content: normal; }
.app-band-visual { position: relative; justify-self: end; width: 190px; margin-right: 40px; }
.app-band-glow { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%; background: radial-gradient(circle, rgba(251,201,0,.28), rgba(251,201,0,0) 68%); animation: appGlow 4s ease-in-out infinite; }
.app-band-shot { position: relative; display: block; width: 190px; height: auto; margin: -12px 0; filter: drop-shadow(0 18px 28px rgba(0,0,0,.45)); transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .5s; transform-origin: 50% 80%; }
.app-band-visual:hover .app-band-shot { transform: translateY(-8px) rotate(-3deg) scale(1.05); filter: drop-shadow(0 28px 36px rgba(0,0,0,.55)); }
.app-band-copy { max-width: 480px; justify-self: start; }
.app-band-copy .app-badges .store-badge { transition: transform .25s; }
.app-band-copy .app-badges a.store-badge:hover { transform: translateY(-3px); }
.app-band.is-pre .app-band-visual { opacity: 0; transform: translateX(-40px); }
.app-band.is-pre .app-band-copy > * { opacity: 0; transform: translateY(18px); }
.app-band.is-in .app-band-visual { animation: appSlideIn .8s cubic-bezier(.2,.8,.2,1) both; }
.app-band.is-in .app-band-copy > * { animation: appRise .7s cubic-bezier(.2,.8,.2,1) both; }
.app-band.is-in .app-band-copy > :nth-child(2) { animation-delay: .12s; }
.app-band.is-in .app-band-copy > :nth-child(3) { animation-delay: .24s; }
.app-band.is-in .app-band-copy > :nth-child(4) { animation-delay: .36s; }
@keyframes appSlideIn { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes appRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes appGlow { 0%,100% { transform: scale(.92); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .app-band *, .app-band-glow { animation: none !important; transition: none !important; } .app-band.is-pre .app-band-visual, .app-band.is-pre .app-band-copy > * { opacity: 1; transform: none; } }
@media (max-width: 820px) { .app-band-inner { display: block; } .app-band-visual { display: none; } .app-band-copy { margin: 0 auto; } }
.app-band .app-band-inner { grid-template-columns: auto auto; justify-content: center; gap: 80px; }
.app-band .app-band-visual { justify-self: auto; margin-right: 0; }
.app-band .app-band-copy { justify-self: auto; }
/* App band: words left, phone right */
.app-band .app-band-visual { order: 2; }
.app-band .app-band-copy { order: 1; }
.app-band.is-pre .app-band-visual { transform: translateX(40px); }
@keyframes appSlideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.app-band-visual:hover .app-band-shot { transform: translateY(-8px) rotate(3deg) scale(1.05); }
/* App band: boxed card with rounded corners instead of full-width */
.app-band { background: transparent; padding: 48px 0; }
.app-band .app-band-inner { background: var(--navy, #0A0F26); border-radius: 28px; padding: 48px 40px; overflow: hidden; box-shadow: 0 18px 40px rgba(10,15,38,.18); }
@media (max-width: 820px) { .app-band { padding: 28px 0; } .app-band .app-band-inner { border-radius: 22px; padding: 32px 22px; } }

/* No-show guarantee, review replies, how it works */
.guarantee-badge { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: #EAF7EF; color: #14532D; border: 1px solid #BFE5CD; }
.guarantee-badge svg { flex: none; margin-top: 1px; }
.guarantee-badge b { display: block; font-size: 13px; }
.guarantee-badge span { display: block; font-size: 12px; line-height: 1.45; }
.section-tight .guarantee-badge { max-width: 560px; margin: 0 0 16px; }
.review-reply { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--yellow, #FBC900); background: #F6F7FB; border-radius: 0 10px 10px 0; }
.review-reply b { display: block; font-size: 12px; margin-bottom: 2px; }
.hiw-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.hiw-step { border: 1px solid var(--line, #E3E6F0); border-radius: 16px; padding: 18px; background: #fff; }
.hiw-step i { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center; background: var(--navy, #0A0F26); color: var(--yellow, #FBC900); font-style: normal; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.hiw-step h3 { font-size: 16px; margin: 0 0 6px; }
.hiw-step p { font-size: 13px; margin: 0; }
.faq-list { max-width: 820px; margin: 24px auto 0; display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line, #E3E6F0); border-radius: 14px; background: #fff; }
.faq-item summary { cursor: pointer; padding: 14px 16px; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--navy, #0A0F26); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 16px 16px; font-size: 14px; color: #4B5169; }
.hiw-cta { background: var(--navy, #0A0F26); color: #fff; border-radius: 28px; padding: 40px 28px; text-align: center; }
.hiw-cta h2 { color: #fff; margin-top: 0; }
@media (max-width: 900px) { .hiw-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .hiw-steps { grid-template-columns: 1fr; } }
/* App band: tighter gap above the card */
.app-band { padding-top: 0; margin-top: -44px; position: relative; }
@media (max-width: 820px) { .app-band { margin-top: -20px; padding-bottom: 28px; } }
.cal-menu { position: relative; }
.cal-menu summary { list-style: none; cursor: pointer; }
.cal-menu summary::-webkit-details-marker { display: none; }
.cal-menu-list { position: absolute; z-index: 20; left: 0; top: calc(100% + 6px); min-width: 200px; background: #fff; border: 1px solid #E3E6F0; border-radius: 12px; box-shadow: 0 12px 28px rgba(10,15,38,.14); padding: 6px; }
.cal-menu-list a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 13px; color: #0A0F26; text-decoration: none; }
.cal-menu-list a:hover { background: #F3F4FA; }
/* App band: same vertical rhythm as every other section */
.app-band { margin-top: 0; padding: var(--space-7) 0; }
@media (max-width: 820px) { .app-band { margin-top: 0; padding: var(--space-7) 0; } }

/* Share rows, profile meter, cookie notice, admin alerts */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 var(--space-5); }
.share-card input[type=text] { margin: 6px 0 12px; }
.meter { margin: 0 0 var(--space-5); padding: 16px; border: 1px solid #E3E6F0; border-radius: 16px; background: #fff; }
.meter-bar { height: 8px; border-radius: 99px; background: #ECEEF5; overflow: hidden; margin: 8px 0 10px; }
.meter-bar i { display: block; height: 100%; border-radius: 99px; background: var(--yellow, #FBC900); }
.meter ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.meter li::before { content: '\25CB'; margin-right: 8px; color: #8A90A8; }
.meter li.done { color: #6B7190; text-decoration: line-through; }
.meter li.done::before { content: '\2713'; color: #1E8E4E; }
.cookie-note { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: #0A0F26; color: #E7E9F4; border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.3); font-size: 12.5px; }
.cookie-note a { color: #FBC900; }
.cookie-note button { flex: none; height: 36px; padding: 0 16px; border: 0; border-radius: 10px; background: #FBC900; color: #0A0F26; font-weight: 700; cursor: pointer; }
@media (display-mode: standalone) { .cookie-note { display: none !important; } }
.admin-alerts { display: grid; gap: 8px; margin-bottom: var(--space-4); }
.admin-alerts a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #FFF6DB; border: 1px solid #F3DE8C; color: #5C4A00; text-decoration: none; font-size: 13px; }
.admin-alerts a b { color: #0A0F26; }
.review-edit-body input[type=number], .review-edit-body select, .review-edit-body input[type=month] { height: 40px; }
