/* =====================================================================
   QAVUNA — Centralized design system
   ---------------------------------------------------------------------
   Single source of truth for every custom style on the site.
   Loaded AFTER Bootstrap 5.3, so it wins on equal specificity and can
   use Bootstrap's own custom properties (--bs-*) as a base.

   Structure:
     1.  Design tokens (root variables)
     2.  Global typography
     3.  Global layout & containers
     4.  Bootstrap enhancements (reusable)
     5.  Buttons & form elements
     6.  Cards & common components
     7.  Navigation & header
     8.  Footer
     9.  Shared sections & reusable elements
     10. Responsive adjustments
     11. Exceptional page-specific styles

   Anything that does not have a Bootstrap equivalent lives here.
   Anything that DOES have a Bootstrap equivalent is applied as a
   utility class in the markup instead of being re-declared here.
   ===================================================================== */


/* =====================================================================
   1. DESIGN TOKENS
   ---------------------------------------------------------------------
   The existing brand palette, preserved verbatim. --c-* are the site's
   own tokens; --bs-* bridge the same values into Bootstrap's
   custom-property API so components (buttons, badges, forms) inherit
   the brand automatically.
   ===================================================================== */
:root {
  /* --- Brand core --------------------------------------------------- */
  --c-primary:            #3d2f23;   /* brand brown — buttons, headings  */
  --c-primary-dark:       #2a1f17;   /* hover / pressed variant         */
  --c-primary-light:      #2a201a;   /* deep brown — dark surfaces      */
  --c-primary-rgb:        61, 47, 35;
  --c-primary-dark-rgb:   42, 32, 26;
  --c-accent:             #a85f38;   /* terracotta — links, highlights   */
  --c-accent-rgb:         168, 95, 56;
  /* Violet used by the two signup-flow steps to mark them as the
     multi-step onboarding stage, separate from the brand terracotta. */
  --c-wizard-accent:      #6c5ce7;
  --c-wizard-accent-rgb:  108, 92, 231;

  /* --- Surfaces ----------------------------------------------------- */
  --c-background:         #ffffff;
  --c-surface:            #f8f9fa;   /* neutral card / panel surface    */
  --c-surface-muted:      #f5efe7;   /* warm tinted surface             */

  /* --- Text --------------------------------------------------------- */
  --c-text:               #2a201a;
  --c-text-rgb:           42, 32, 26;
  --c-text-muted:         #6c757d;
  --c-text-invert:        #ffffff;

  /* --- Lines & focus ------------------------------------------------ */
  --c-border:             #e9ecef;
  --c-border-strong:      #b8aa9a;
  --c-focus-ring:         rgba(61, 47, 35, .35);

  /* --- Status ------------------------------------------------------- */
  --c-success:            #198754;
  --c-success-dark:       #146c43;
  --c-warning:            #ffc107;
  --c-warning-dark:       #856404;
  --c-danger:             #842029;
  --c-danger-light:       #f8d7da;
  --c-danger-border:      #f1aeb5;
  /* Gold accent marking a photo as protected. */
  --c-gold:               #d4af37;

  /* --- Typography ---------------------------------------------------- */
  --c-font-body:          'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --c-font-heading:       'Outfit', Georgia, serif;
  --c-font-display:       'Playfair Display', Georgia, serif;

  /* --- Shape --------------------------------------------------------- */
  --c-radius-sm:          .5rem;
  --c-radius:             .75rem;
  --c-radius-lg:          1rem;
  --c-shadow-sm:          0 .5rem 1.25rem rgba(42, 32, 26, .18);
  --c-shadow:             0 .5rem 1.5rem rgba(42, 32, 26, .25);

  /* --- Bridge into Bootstrap's custom-property API -------------------- */
  --bs-body-font-family:   var(--c-font-body);
  --bs-body-color:         var(--c-text);
  --bs-body-color-rgb:     var(--c-text-rgb);
  --bs-body-bg:            var(--c-background);
  --bs-link-color:         var(--c-primary);
  --bs-link-hover-color:   var(--c-accent);
  --bs-link-color-rgb:     var(--c-primary-rgb);
  --bs-link-hover-color-rgb: var(--c-accent-rgb);
  --bs-primary:            var(--c-primary);
  --bs-primary-rgb:        var(--c-primary-rgb);
  --bs-border-color:       var(--c-border);
}


/* =====================================================================
   2. GLOBAL TYPOGRAPHY
   ---------------------------------------------------------------------
   One scale for every heading level on the site. Sizes come from
   Bootstrap's own rem scale so the type matches the framework.
   ===================================================================== */
body {
  font-family: var(--c-font-body);
  color: var(--c-text);
}

/* Headings use the display face. The scale below is authoritative for
   every heading on the site, so an H1 is identical on every page
   regardless of which Bootstrap utility a page happens to add.

   Bootstrap's own .fs-* / .display-* / .h* utilities only set a size,
   so they are neutralised here — a heading's size comes from its
   semantic level, never from a per-page utility class. Colour, weight
   and alignment utilities keep working normally. */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--c-font-heading);
  font-weight: 600 !important;
  letter-spacing: -.01em;
  line-height: 1.25;
}
h4, h5, h6,
.h4, .h5, .h6 {
  font-family: var(--c-font-body);
  font-weight: 600;
}

.h6 {
  font-family: var(--c-font-body);
  font-weight: 500 !important;
}

/* Legacy alias kept for markup that marks up a heading as display type. */
.display-font { font-family: var(--c-font-heading); }

h1, .h1 {
  font-size: 2rem !important;
  line-height: 1.2;
}
h2, .h2 {
  font-size: 1.5rem !important;
  line-height: 1.25;
}
h3, .h3 {
  font-size: 1.25rem !important;
  line-height: 1.3;
}
h4, .h4 {
  font-size: 1.125rem !important;
  line-height: 1.35;
}
h5, .h5 {
  font-size: 1rem !important;
  line-height: 1.4;
}
h6, .h6 {
  font-size: .875rem !important;
  line-height: 1.4;
}

@media (min-width: 768px) {
  h1, .h1 { font-size: 2.75rem !important; }
  h2, .h2 { font-size: 2rem !important; }
  h3, .h3 { font-size: 1.5rem !important; }
  h4, .h4 { font-size: 1.25rem !important; }
}

/* Bootstrap's own .modal-title carries a dedicated size for dialog
   headings; it stays exempt from the site-wide heading scale. */
.modal-title {
  font-size: 1.25rem !important;
  line-height: 1.3;
}

/* A heading marked .small is a caption, not a heading. Bootstrap's
   .small is a relative size, so it is resolved against the heading's
   own scale rather than replacing it. */
h1.small, h2.small, h3.small, h4.small, h5.small, h6.small,
.h1.small, .h2.small, .h3.small, .h4.small, .h5.small, .h6.small {
  font-size: .875rem !important;
  line-height: 1.4;
}
h1.text-uppercase.small, h2.text-uppercase.small,
h3.text-uppercase.small, h4.text-uppercase.small,
h5.text-uppercase.small, h6.text-uppercase.small {
  letter-spacing: .05em;
}

/* The display scale is used on marketing hero copy only. It is opt-in
   via an explicit .display-* class, so it never competes with the
   heading scale above. */
.display-1, .display-2, .display-3,
.display-4, .display-5, .display-6 {
  font-family: var(--c-font-heading);
  font-weight: 600;
  letter-spacing: -.02em;
}
.display-6 { font-size: 2rem !important; }
@media (min-width: 768px) {
  .display-5 { font-size: 3rem !important; }
  .display-6 { font-size: 2.75rem !important; }
}

/* Links use the accent on hover so the interaction reads across
   the whole site. */
a { transition: color .15s ease; }

/* Bootstrap 5.3.3 has no fs-7 (added in 5.3.4). Defined once here
   instead of per page. */
.fs-7 { font-size: .75rem !important; }

/* Responsive type helpers — Bootstrap ships the .fs-* / .display-* scales
   unprefixed, so the breakpoint behaviour a few pages need is restored
   here using the site's own scale values. */
@media (min-width: 768px) {
  .display-md-5 { font-size: 3rem !important; font-weight: 600; line-height: 1.2; }
  .fs-md-5     { font-size: 1.25rem !important; }
}
@media (min-width: 1400px) {
  .display-md-5 { font-size: 3.5rem !important; }
}


/* =====================================================================
   3. GLOBAL LAYOUT & CONTAINERS
   ===================================================================== */

/* Keep overflowing page content clipped without creating a scroll
   container that changes the viewport width when Bootstrap opens a
   modal. */
html, body { max-width: 100%; }
body { overflow-x: clip; }
@supports not (overflow: clip) {
  body { overflow-x: hidden; }
}

/* On the profile page the floating action bar + Back-to-Dashboard
   button already fill the bottom area, so hide the compact site
   footer to avoid stacking redundant navigation. */
body.page-profile footer.site-footer { display: none !important; }

/* Sticky footer for the logged-in app shell (the pages rendered with
   layout/main-header.php + layout/main-footer.php, marked with the
   `app-shell` body class).
   The body becomes a full-height flex column, <main> grows to absorb
   the leftover space, and the footer is pushed to the bottom edge with
   `margin-top: auto`. Without this the footer floats right below the
   content, so short pages (an empty inbox, for example) leave a large
   blank gap below the footer.
   --kbv-viewport-height is set by assets/js/keyboard-viewport.js and
   tracks the actually visible viewport on mobile, so the footer stays
   in view while a soft keyboard is open. */
body.app-shell {
  min-height: var(--kbv-viewport-height, 100dvh);
  display: flex;
  flex-direction: column;
}
body.app-shell > main#main-content {
  flex: 1 0 auto;
}
body.app-shell > footer.site-footer {
  margin-top: auto;
  padding-bottom: 1.5rem;
}

/* On phones the app shell renders a fixed bottom navigation bar
   (layout/main-footer.php). It is position:fixed, so it floats over the
   footer content — with the footer now pinned to the bottom of the
   viewport, its last row would sit behind the bar. Add enough bottom
   padding so the footer text stays readable and tappable. */
@media (max-width: 767.98px) {
  body.app-shell > footer.site-footer {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
  }
}

/* Main page container — the shared max-width wrapper. */
.page-container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: .75rem;
}
@media (min-width: 576px)  { .page-container { padding-inline: 1.5rem; } }
@media (min-width: 992px)  { .page-container { padding-inline: 1.5rem; } }

/* Vertical rhythm between top-level page sections. */
.section { padding-block: 3rem; }
@media (min-width: 768px) { .section { padding-block: 4.5rem; } }
.section-sm { padding-block: 2rem; }
@media (min-width: 768px) { .section-sm { padding-block: 3rem; } }

/* Section heading + description pair, used across marketing pages. */
.section-title { margin-bottom: .75rem; }
.section-description { color: var(--c-text-muted); max-width: 42rem; }


/* =====================================================================
   4. BOOTSTRAP ENHANCEMENTS
   ---------------------------------------------------------------------
   Small, reusable additions to Bootstrap components. Used only where
   Bootstrap has no equivalent utility.
   ===================================================================== */

/* Glass/frosted surface used on top of photos. */
.surface-glass {
  background-color: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  box-shadow: var(--c-shadow);
}

/* Tinted panel that reuses the warm brand surface. */
.surface-warm { background-color: var(--c-surface-muted); }

/* Responsive image container — keeps an <img> cropped to a fixed
   aspect ratio regardless of source dimensions. */
.img-ratio {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.img-ratio > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-ratio-1x1  { aspect-ratio: 1 / 1; }
.img-ratio-4x3  { aspect-ratio: 4 / 3; }
.img-ratio-3x2  { aspect-ratio: 3 / 2; }
.img-ratio-16x9 { aspect-ratio: 16 / 9; }

/* Rounded media helper matching the brand radius. */
.rounded-brand { border-radius: var(--c-radius) !important; }

/* Protected-photo marker — a gold frame around a photo the user chose
   to protect from being copied. */
.photo-protected {
  border: 3px solid var(--c-gold) !important;
  box-shadow: 0 0 0 4px #ffd700, 0 8px 24px rgba(0, 0, 0, .15);
}

/* Photo carousel placeholder shown before a photo loads. */
.photo-placeholder { background: var(--c-surface); }

/* =====================================================================
   PHOTO STUDIO — first-time upload state
   ---------------------------------------------------------------------
   A single, centered portrait dropzone that combines the gender
   placeholder image with the upload affordance: dashed frame, camera
   icon in the middle and a floating round "+" button in the corner. */

.photo-studio {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-studio__title {
  font-weight: 700;
  font-style: italic;
  letter-spacing: -.01em;
}

.photo-studio__subtitle {
  color: var(--c-text-muted);
}

/* The dropzone keeps the 3:4 portrait ratio of a profile photo. */
.photo-studio__drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 3 / 4;
  border: 2px dashed var(--c-border-strong);
  border-radius: var(--c-radius-lg);
  background: rgba(255, 255, 255, .55);
  overflow: visible;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.photo-studio__drop:hover,
.photo-studio__drop:focus-within {
  border-color: var(--c-primary);
  background: rgba(255, 255, 255, .8);
  transform: translateY(-2px);
}

/* Placeholder silhouette sits behind the camera icon. */
.photo-studio__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .28;
  pointer-events: none;
}

.photo-studio__camera {
  position: relative;
  font-size: 2.75rem;
  color: var(--c-primary);
  line-height: 1;
}

/* Round "+" button overlapping the bottom-right corner of the frame. */
.photo-studio__add {
  position: absolute;
  right: -14px;
  bottom: -14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #fff;
  color: var(--c-primary);
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  pointer-events: none;
  transition: transform .2s ease;
}

.photo-studio__drop:hover .photo-studio__add,
.photo-studio__drop:focus-within .photo-studio__add {
  transform: scale(1.08);
}

.photo-studio__hint {
  color: var(--c-text-muted);
  text-decoration: none;
}

.photo-studio__hint:hover {
  color: var(--c-primary);
}

.photo-studio__empty {
  max-width: 30rem;
  margin-inline: auto;
}

/* =====================================================================
   UPLOAD TILE — the "add another photo" tile inside the photo grid
   ---------------------------------------------------------------------
   A soft circular camera badge with a small floating "+" button in the
   bottom-right corner, echoing the first-time photo studio dropzone. */

.photo-upload-tile {
  position: relative;
  transition: border-color .2s ease, background-color .2s ease;
}

.photo-upload-tile:hover,
.photo-upload-tile:focus-within {
  border-color: var(--c-primary) !important;
  background-color: rgba(255, 255, 255, .6);
}

/* Round camera badge. */
.photo-upload-tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--c-surface-muted);
  color: var(--c-primary);
  font-size: 1.5rem;
  line-height: 1;
  transition: background-color .2s ease, transform .2s ease;
}

.photo-upload-tile:hover .photo-upload-tile__icon,
.photo-upload-tile:focus-within .photo-upload-tile__icon {
  background: var(--c-primary);
  color: #fff;
  transform: scale(1.06);
}

/* Small round "+" overlapping the bottom-right of the tile. */
.photo-upload-tile__plus {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-size: .9rem;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .16);
  pointer-events: none;
}

/* Gradient scrims over a photo, used to keep overlay badges readable.
   --scrim-top fades downwards, --scrim-bottom fades upwards. */
.photo-scrim {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
}
.photo-scrim--top {
  top: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 100%);
}
.photo-scrim--bottom {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Text shadow that keeps overlay labels legible on a photo. */
.text-shadow-photo { text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }

/* Consistent focus ring across interactive elements. */
.focus-brand:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

/* Visually hidden text that becomes visible on keyboard focus. */
.sr-only-focusable:focus {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: inherit !important;
  margin: inherit !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
}


/* =====================================================================
   5. BUTTONS & FORM ELEMENTS
   ===================================================================== */

/* Buttons use the small size on phones, revert to .btn-lg from the md
   breakpoint upwards. */
.btn-sm-md {
  --bs-btn-padding-y: .25rem;
  --bs-btn-padding-x: .75rem;
  --bs-btn-font-size: 1rem;
  --bs-btn-border-radius: var(--c-radius-sm);
}
@media (min-width: 768px) {
  .btn-sm-md {
    --bs-btn-padding-y: .75rem;
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-font-size: 1.25rem;
    --bs-btn-border-radius: var(--c-radius-sm);
  }
}

/* Primary / secondary button variants built on Bootstrap's .btn. */
.btn-brand {
  --bs-btn-bg: var(--c-primary);
  --bs-btn-border-color: var(--c-primary);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--c-primary-dark);
  --bs-btn-hover-border-color: var(--c-primary-dark);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--c-primary-dark);
  --bs-btn-active-border-color: var(--c-primary-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-bg: var(--c-primary);
  --bs-btn-disabled-border-color: var(--c-primary);
  --bs-btn-disabled-color: #fff;
  --bs-btn-focus-shadow-rgb: var(--c-primary-rgb);
}

.btn-brand-outline {
  --bs-btn-color: var(--c-primary);
  --bs-btn-border-color: var(--c-primary);
  --bs-btn-bg: transparent;
  --bs-btn-hover-bg: var(--c-primary);
  --bs-btn-hover-border-color: var(--c-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--c-primary);
  --bs-btn-active-border-color: var(--c-primary);
  --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: var(--c-primary-rgb);
}

/* Round pill CTA. */
.btn-pill-brand {
  --bs-btn-border-radius: 999px;
}

/* Country select in the phone modal: match the phone input's height so
   both controls line up side by side. */
.phone-country-select {
  min-height: calc(1.5em + 1rem + (var(--bs-border-width) * 2));
  padding-top: .5rem;
  padding-bottom: .5rem;
  border-top-left-radius: var(--bs-border-radius-lg);
  border-bottom-left-radius: var(--bs-border-radius-lg);
}

/* Bigger marketing opt-in checkbox in the e-mail modal. Only the box is
   enlarged — the label text keeps its own (smaller) size. */
.marketing-opt-in {
  width: 1.35em;
  height: 1.6em;
  margin-top: 0;
}
.marketing-opt-in-label {
  font-size: .78rem;
  padding-left: 0;
  margin-left: 0;
}
/* Pull the whole check row closer to the left edge so the enlarged box
   does not push the (now smaller) label out of view. */
.form-check:has(.marketing-opt-in) {
  padding-left: 1.75rem;
}


/* =====================================================================
   6. CARDS & COMMON COMPONENTS
   ===================================================================== */

/* The shared content card. Bootstrap's .card provides the structure;
   this only adds the brand border radius and shadow. */
.card-brand {
  border-radius: var(--c-radius-lg);
  box-shadow: var(--c-shadow-sm);
  overflow: hidden;
}

/* Card header / body padding that matches the brand rhythm. */
.card-brand-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--c-border);
  font-weight: 600;
}
.card-brand-body {
  padding: 1.25rem;
}

/* Feature tile — icon + title + text, used on the marketing pages. */
.feature-tile {
  text-align: center;
  padding: 1.5rem 1rem;
}
.feature-tile-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.feature-tile-title {
  font-family: var(--c-font-heading);
  font-weight: 600;
  margin-bottom: .5rem;
}

/* Stat block — big number over a short label. */
.stat-value {
  font-family: var(--c-font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}
.stat-label {
  color: var(--c-text-muted);
  font-size: .9rem;
}

/* Settings page — page title + subtitle pair above the tabbed panel. */
.settings-page__title { margin-bottom: .25rem !important; }
.settings-page__subtitle {
  color: var(--c-text-muted);
  margin-bottom: 1.5rem !important;
}


/* =====================================================================
   7. NAVIGATION & HEADER
   ===================================================================== */
.site-header {
  background-color: var(--c-background);
}

/* Active nav link marker. */
.site-header .nav-link.active {
  color: var(--c-accent);
}

/* Breadcrumb bar uses the brand border colour. */
.breadcrumb-bar {
  border-bottom: 1px solid var(--c-border);
  background-color: var(--c-background);
}
.breadcrumb-bar .breadcrumb { margin-bottom: 0; }


/* =====================================================================
   8. FOOTER
   ===================================================================== */
/* The site footer comes in two variants:
   - the public one (layout/footer.php) is dark — light text on dark
   - the compact app one (layout/main-footer.php) is white — it keeps
     the normal body text colours so it stays readable.
   The light-text rules below therefore only apply to the dark
   variant; without that scope the white footer rendered white text on
   a white background and was invisible. */
.site-footer {
  background-color: var(--c-primary-light);
  color: #fff;
}
.site-footer.bg-dark,
.site-footer.bg-dark a { color: rgba(255, 255, 255, .85); }
.site-footer.bg-dark a:hover { color: #fff; }
.site-footer.bg-dark .text-body-secondary { color: rgba(255, 255, 255, .85) !important; }

/* Social icons in the footer are external SVG files loaded through <img>,
   so `fill="currentColor"` inside them resolves to black and the glyphs
   were nearly invisible on the dark footer background. Inverting them
   turns the black glyph into a white one; the light footer variant keeps
   the original dark glyph. */
.site-footer .footer-social img { filter: invert(1); }
.site-footer.bg-white .footer-social img { filter: none; }

/* Compact white footer (logged-in app pages). */
.site-footer.bg-white { color: var(--c-text); }
.site-footer.bg-white a { color: var(--c-text); }
.site-footer.bg-white a:hover { color: var(--c-accent); }
.site-footer.bg-white .text-body-secondary { color: var(--c-text-muted) !important; }

/* Watermark wordmark above the footer. The letters are pushed down so their
   lower part overlaps the top of the dark footer, and the glyph colour is
   painted with a gradient that is clipped to the text: dark grey over the
   white page area, light over the dark footer. A plain text-body-secondary
   colour (near-black) would be invisible there.

   The font size is fluid: "QAVUNA" needs 4.45x its own font size in width,
   so the size is derived from the space the wordmark actually has (the
   Bootstrap container minus its 12px gutter padding) and capped at 200px.
   A fixed 200px wrapped the word onto up to six lines on narrow phones.
   Vertical padding and the overlap into the footer are expressed in "em",
   so the geometry stays proportional to the font size at every viewport. */
.qavuna-wordmark {
  color: transparent;
  font-size: 200px;
  line-height: 1;
  padding-top: .08em !important;
  padding-bottom: .08em !important;
  margin-bottom: -.525em;
  position: relative;
  z-index: 1;
  background-image: linear-gradient(
    to bottom,
    rgba(42, 32, 26, .30) 0%,
    rgba(42, 32, 26, .30) 30%,
    rgba(255, 255, 255, .55) 55%
  );
  -webkit-background-clip: text;
  background-clip: text;
}

/* The wordmark is sized from the space it actually has. A container query
   measures the .container it sits in exactly, so the word always stays on a
   single line - also on phones where the scrollbar makes the viewport
   narrower than 100vw. The vw rules below are the fallback for browsers
   without container query support. */
.qavuna-wordmark-container { container-type: inline-size; }
@media (max-width: 575.98px) {
  .qavuna-wordmark { font-size: calc((100vw - 86px) / 4.45); }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  .qavuna-wordmark { font-size: calc((540px - 24px) / 4.45); }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .qavuna-wordmark { font-size: calc((720px - 24px) / 4.45); }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .qavuna-wordmark { font-size: min(200px, calc((960px - 24px) / 4.45)); }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .qavuna-wordmark { font-size: min(200px, calc((1140px - 24px) / 4.45)); }
}
@media (min-width: 1400px) {
  .qavuna-wordmark { font-size: min(200px, calc((1320px - 24px) / 4.45)); }
}
/* Declared last so it wins over the viewport based fallback above. */
@supports (container-type: inline-size) {
  .qavuna-wordmark { font-size: min(200px, calc((100cqw - 24px) / 4.45)); }
}


/* =====================================================================
   9. SHARED SECTIONS & REUSABLE ELEMENTS
   ===================================================================== */

/* ---------------------------------------------------------------------
   Hero carousel (home page)
   Three photos in one horizontal row that rotates continuously. Exactly
   three <img> elements live in the DOM; the JavaScript only swaps their
   order and their position class, so no image is ever duplicated and
   nothing is re-fetched.

   Positions are absolute inside a fixed-aspect stage so the slide cannot
   push the page layout around while the images change size. The middle
   slot gets the larger scale, the outer two are slightly smaller and
   dimmed.
   --------------------------------------------------------------------- */
.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto 1.5rem;
  height: clamp(190px, 34vw, 300px);
  overflow: hidden;
}
.hero-carousel__stage { position: absolute; inset: 0; }
.hero-carousel__item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(120px, 24vw, 210px);
  aspect-ratio: 3 / 4;
  transform-origin: center center;
  /* Position, scale and dimming are animated together so the image
     slides, grows and fades as one movement instead of three. The
     duration matches the JavaScript slide time, so the movement
     completes exactly when the next hold begins. */
  transition:
    transform 1s cubic-bezier(.4, 0, .2, 1),
    opacity 1s cubic-bezier(.4, 0, .2, 1),
    filter 1s cubic-bezier(.4, 0, .2, 1);
  z-index: 1;
  opacity: .85;
  filter: grayscale(.35) brightness(.9);
  will-change: transform, opacity;
}
.hero-carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--c-radius);
  box-shadow: var(--c-shadow-sm);
}

/* Slot positions. The percentages keep the row centred while the
   carousel shrinks on small screens, and the gaps stay identical on
   every side so the row never drifts.

   The centre slot owns the highest z-index so an incoming image always
   slides in from behind it. Because z-index is not transitioned, the
   stacking order swaps the moment the class changes — which is exactly
   what the rotating sequence needs: the image moving to the right
   keeps stacking underneath the new centre image for the whole slide. */
.hero-carousel__item--left {
  transform: translate(-160%, -50%) scale(.72);
  z-index: 1;
}
.hero-carousel__item--center {
  transform: translate(-50%, -50%) scale(1);
  z-index: 3;
  opacity: 1;
  filter: none;
}
.hero-carousel__item--right {
  transform: translate(60%, -50%) scale(.72);
  z-index: 1;
}

/* Phones: tighten the row so all three images stay on screen. */
@media (max-width: 575.98px) {
  .hero-carousel__item--left  { transform: translate(-140%, -50%) scale(.7); }
  .hero-carousel__item--right { transform: translate(40%, -50%) scale(.7); }
}

/* Users who ask for less motion get a static row instead of the
   rotating animation. */
@media (prefers-reduced-motion: reduce) {
  .hero-carousel__item { transition: none; }
}

/* ---------------------------------------------------------------------
   Photo slider (home page)
   A horizontal strip of portrait photos that can be dragged/scrolled
   sideways, with previous/next arrow buttons.

   The track is a flex row that is translated horizontally; each slide
   keeps a fixed flex-basis so the layout never reflows while sliding.
   Scroll-snap makes the strip settle on a whole photo on touch
   devices, while the buttons drive the same track programmatically.
   --------------------------------------------------------------------- */
.photo-slider {
  position: relative;
}
.photo-slider__viewport {
  overflow: hidden;
  /* The rounded corners of the track would be clipped by the viewport,
     so the radius lives on the viewport itself. */
  border-radius: var(--c-radius-lg);
  /* Dragging across the photos must not start the browser's own image
     drag or select the text around them, otherwise the pointer events
     are cancelled halfway through the gesture. */
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
.photo-slider__viewport img {
  -webkit-user-drag: none;
  pointer-events: none;
}
.photo-slider__track {
  display: flex;
  gap: 1rem;
  padding: .25rem;
  will-change: transform;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}
.photo-slider__track--no-anim { transition: none; }
.photo-slider__slide {
  flex: 0 0 clamp(150px, 18vw, 230px);
  margin: 0;
  position: relative;
  /* The caption is a rectangle that sits on top of the photo, so the
     slide clips it to the rounded shape of the image underneath. */
  border-radius: var(--c-radius);
  overflow: hidden;
  box-shadow: var(--c-shadow-sm);
}
.photo-slider__slide img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform .3s ease, filter .3s ease;
}
.photo-slider__slide:hover img,
.photo-slider__slide:focus-within img {
  transform: scale(1.04);
}

/* Caption that sits at the centre of the bottom edge of every photo.
   A soft gradient scrim behind the name keeps the white text readable
   on bright photos without hiding the picture behind a solid box. */
.photo-slider__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  margin: 0;
  padding: 1.75rem .5rem .5rem;
  background: linear-gradient(to top, rgba(42, 32, 26, .75), rgba(42, 32, 26, 0));
  color: #fff;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
  pointer-events: none;
}

/* Arrow buttons. They are absolutely positioned over the strip and
   hidden on very small screens, where the strip is swiped instead. */
.photo-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--c-primary);
  box-shadow: var(--c-shadow-sm);
  line-height: 1;
  transition: background .2s ease, opacity .2s ease;
}
.photo-slider__btn:hover { background: #fff; }
.photo-slider__btn--prev { left: .5rem; }
.photo-slider__btn--next { right: .5rem; }
/* Disabled arrows stay visible but become non-interactive. */
.photo-slider__btn[disabled] {
  opacity: .35;
  pointer-events: none;
}

@media (max-width: 575.98px) {
  .photo-slider__btn { display: none; }
}

/* Users who ask for less motion get an instant track movement. */
@media (prefers-reduced-motion: reduce) {
  .photo-slider__track { transition: none; }
  .photo-slider__slide img { transition: none; }
}

/* ---------------------------------------------------------------------
   WhatsApp-style chat widget
   Shared between the profile page and message-enabled.php.

   The two screens render the same widget at different scales: the
   profile page embeds it inside a narrow profile column, so its
   bubbles are compact, while message-enabled.php shows it full-width.
   The shared base below holds what both have in common; the
   .wa-bubble--compact / .wa-bubble--roomy modifiers carry the
   scale difference so neither screen has to redefine the rules.
   --------------------------------------------------------------------- */
.wa-chat-wrapper {
  background: #ece5dd;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.wa-header { background: #075e54; }
.wa-messages {
  background: #ece5dd;
  padding: 10px;
}
.wa-message-row {
  display: flex;
  margin: 4px 0;
}
.wa-message-row.sent     { justify-content: flex-end; }
.wa-message-row.received { justify-content: flex-start; }
.wa-bubble {
  max-width: 75%;
  padding: 8px 12px;
  border-radius: 12px;
  box-shadow: 0 1px .5px rgba(0, 0, 0, .13);
}
.wa-bubble-text {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: .95rem;
}
.wa-bubble-time {
  font-size: .7rem;
  margin-top: 4px;
  text-align: right;
}

/* Delivery ticks on outgoing messages, WhatsApp style.
   Both check glyphs are always rendered; the "sent" state hides the
   second one (so you see a single tick) while the "read" state shows
   both and tints them blue. The second glyph is pulled over the first
   with a negative margin so they overlap into the classic double
   check instead of sitting side by side. */
.wa-ticks {
  display: inline-flex;
  align-items: center;
  margin-left: .3em;
  font-size: .95em;
  line-height: 1;
  vertical-align: -.08em;
}
.wa-ticks i { font-weight: 700; }
/* The second tick overlaps the first one. */
.wa-ticks i + i { margin-left: -.38em; }
/* Delivered but not yet read by the partner: only the first tick shows. */
.wa-ticks--sent i + i { display: none; }
/* Read by the partner: both ticks, tinted blue like WhatsApp. */
.wa-ticks--read i { color: #53bdeb; }
.wa-ticks--read i + i { display: inline-block; }
.wa-input {
  border-radius: 20px;
  padding: 8px 12px;
  border: 1px solid #ddd;
}

/* Scrollable chat viewport. The two heights mirror the two placements
   of the thread: the locked preview is shorter than the live thread. */
.wa-messages-scroll {
  overflow-y: auto;
  background: #ece5dd;
  padding: 10px;
  border-radius: 12px;
}
.wa-messages-scroll--preview { height: 240px; }
.wa-messages-scroll--live     { height: 360px; }

/* System notice rows inside a thread (encryption warning, paywall). */
.wa-system-notice {
  text-align: center;
  padding: 5px 10px;
  border-radius: 8px;
  margin: 0 auto 10px;
  max-width: 90%;
}
.wa-system-notice--info {
  background: #fff9c4;
  color: #333;
  font-size: .68rem;
}
.wa-system-notice--paywall {
  background: var(--c-danger-light);
  color: var(--c-danger);
  font-size: .66rem;
  border: 1px solid var(--c-danger-border);
}

/* Compact bubble scale — used inside the narrow profile column. */
.wa-bubble--compact {
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
  font-size: .78rem;
  line-height: 1.25;
}
.wa-bubble--compact .wa-bubble-text { font-size: inherit; }
.wa-bubble--compact .wa-bubble-time {
  font-size: .6rem;
  margin-top: 2px;
}

/* Roomy bubble scale — used on the full-width message screen. */
.wa-bubble--roomy {
  padding: 8px 12px;
  border-radius: 12px;
  box-shadow: 0 1px .5px rgba(0, 0, 0, .13);
  font-size: .95rem;
  line-height: 1.4;
}
.wa-bubble--roomy .wa-bubble-text { font-size: inherit; }
.wa-bubble--roomy .wa-bubble-time {
  font-size: .7rem;
  margin-top: 4px;
}

/* The single-page chat variant used on the profile page. */
.wa-conversation-card { overflow: hidden; }
.wa-conversation-header {
  background: #075e54;
  color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.wa-conversation-header .fw-semibold { color: #fff; }

/* Blue contact-verification badge next to a user's name.
   Everything else is done with Bootstrap utility classes; this rule
   only strips the button chrome that .btn-link leaves behind so the
   glyph sits flush with the name. */
.qavuna-verified-badge {
  text-decoration: none;
  vertical-align: middle;
  line-height: 1;
}
.qavuna-verified-badge:focus-visible {
  outline: 2px solid rgba(83, 189, 235, .9);
  outline-offset: 2px;
  border-radius: 2px;
}
.qavuna-verified-badge > i { font-size: .95em; }

/* The "Verified" chip in the profile header keeps the white glyph it
   always had (it sits on the dark gradient header) — the popover
   explains what the tick means, the chip itself stays unchanged. */
.profile-header-gradient .qavuna-verified-badge,
.profile-header-gradient .qavuna-verified-badge:hover,
.profile-header-gradient .qavuna-verified-badge:focus {
  color: #fff;
}
.profile-header-gradient .qavuna-verified-badge > i {
  font-size: 1rem;
}
.wa-conversation-body {
  background-color: #ece5dd;
  background-image:
    radial-gradient(circle at 20px 20px, rgba(255, 255, 255, .45) 2px, transparent 3px),
    radial-gradient(circle at 60px 60px, rgba(0, 0, 0, .04) 2px, transparent 3px);
  background-size: 80px 80px;
  padding: 0;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.wa-chat-bubble {
  max-width: 78%;
  padding: .55rem .65rem .35rem .65rem;
  border-radius: 10px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .12);
  font-size: .92rem;
  line-height: 1.35;
  position: relative;
}
.wa-chat-bubble--in {
  background: #fff;
  color: #303030;
  align-self: flex-start;
  border-top-left-radius: 0;
}
.wa-chat-bubble--in::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  border: 8px solid transparent;
  border-top-color: #fff;
  border-right-color: #fff;
}
.wa-chat-bubble-text {
  white-space: pre-wrap;
  word-break: break-word;
}
.wa-chat-bubble-time {
  font-size: .65rem;
  color: #667781;
  text-align: right;
  margin-top: 4px;
}
.wa-online-indicator {
  color: rgba(255, 255, 255, .75);
  font-size: .75rem;
}
.wa-online-indicator::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25d366;
  margin-right: 4px;
  vertical-align: 1px;
}
.wa-online-indicator--private::before { display: none; }

/* Animated conic-gradient ring rendered as a ::before pseudo-element so
   it doesn't perturb the card's layout. The ring sits inset by 2px so it
   never bleeds into the rounded corners (which overflow:hidden would
   clip if it did). Pure CSS, no JS. */
.wa-conversation-card--invite-pulse { position: relative; }
.wa-conversation-card--invite-pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  /* The ring is a decorative overlay that spans the whole card. Without
     this it paints above the in-flow content and swallows every click
     on the Accept / Reject buttons. */
  pointer-events: none;
  background: conic-gradient(
    from var(--wa-pulse-angle, 0deg),
    #ff5d5d 0deg,
    #ff9e3d 60deg,
    #ffd83d 120deg,
    #ff5d5d 180deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: wa-pulse-spin 2.4s linear infinite;
}
@keyframes wa-pulse-spin {
  to { --wa-pulse-angle: 360deg; }
}
.wa-conversation-card--invite-pulse:hover::before { animation-duration: 1.8s; }
@media (prefers-reduced-motion: reduce) {
  .wa-conversation-card--invite-pulse::before { animation: none; }
}

/* Gold "Unlocked" pill rendered in the header. Pairs with the card
   border so the unlocked state reads as a single visual treatment:
   border + badge + small crown glyph. The gradient is anchored to the
   top-left so the light highlight gives it a "polished metal" look. */
.wa-unlocked-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .35rem .75rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #3a2906;
  background: linear-gradient(135deg, #ffe082 0%, #ffc107 50%, #d4a017 100%);
  border: 1px solid #b8860b;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 2px rgba(184, 134, 11, .35);
}
.wa-unlocked-badge i { font-size: .85rem; color: #6b4f0a; }

/* The unlocked conversation body gets the same gold accent border, with
   the top edge removed so it meets the header cleanly. The body already
   has a dotted pattern background, so the border picks up a slightly
   warmer tone to read cleanly against the off-white base. Static. */
.wa-conversation-card--unlocked > .wa-conversation-body {
  border: 1px solid #d4a017;
  border-top: 0;
  border-radius: 0 0 calc(var(--bs-border-radius-xl, 1rem) - 2px) calc(var(--bs-border-radius-xl, 1rem) - 2px);
}
.wa-conversation-card--unlocked:hover {
  box-shadow: 0 0 0 6px rgba(212, 160, 23, .18), 0 2px 6px rgba(0, 0, 0, .10);
}

/* The invite CTA. */
.wa-invite-form {
  align-self: flex-end;
  margin-top: auto;
}
.wa-invite-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .85rem 1.4rem;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .18);
  transition: background-color .15s ease, transform .15s ease;
}
.wa-invite-btn:hover:not(:disabled) { background: #1ebe5d; }
.wa-invite-btn:active:not(:disabled) { transform: scale(.98); }
.wa-invite-btn:disabled { opacity: .6; cursor: progress; }
.wa-invite-btn--accept { background: var(--c-success); }
.wa-invite-btn--accept:hover:not(:disabled) { background: var(--c-success-dark); }
.wa-invite-btn--reject {
  background: transparent;
  color: var(--c-danger);
  border: 1px solid var(--c-danger-border);
}
.wa-invite-btn--reject:hover:not(:disabled) {
  background: var(--c-danger-light);
  color: #58151c;
}

/* "New messages" jump pill — same look WhatsApp uses when the user has
   scrolled up and a new bubble lands below. The pill is hidden by
   default, slides up + fades in when JS marks it visible, and snaps back
   out when the user is back at the bottom of the thread. Clicking it
   scrolls the chat down. */
.wa-messages-wrap > .wa-jump-pill {
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px 5px 9px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .22);
  cursor: pointer;
  transform: translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.wa-messages-wrap > .wa-jump-pill.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.wa-messages-wrap > .wa-jump-pill:hover { background: #1ebe5d; }
.wa-messages-wrap > .wa-jump-pill:focus-visible {
  outline: 2px solid #075e54;
  outline-offset: 2px;
}
.wa-messages-wrap > .wa-jump-pill i { font-size: .95rem; line-height: 1; }
.wa-messages-wrap > .wa-jump-pill .wa-jump-pill-count {
  background: #fff;
  color: #075e54;
  border-radius: 999px;
  padding: 1px 6px;
  margin-left: 4px;
  font-size: .68rem;
  font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
  .wa-messages-wrap > .wa-jump-pill { transition: none; }
}

/* "Load older messages" pill at the top of the chat. Sits as a centered,
   soft-bordered button above the first message bubble. When clicked it
   fetches the next page and prepends the older rows. The pill hides
   itself once the server reports has_older=false. */
.wa-messages > .wa-load-older {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  width: fit-content;
  margin: 0 auto .5rem auto;
  padding: .2rem .7rem;
  background: #ffffff;
  border: 1px solid #d6cdc1;
  border-radius: 999px;
  color: var(--c-primary);
  font-size: .7rem;
  line-height: 1.2;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}
.wa-messages > .wa-load-older:hover { background: var(--c-surface-muted); border-color: var(--c-border-strong); }
.wa-messages > .wa-load-older:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}
.wa-messages > .wa-load-older:disabled,
.wa-messages > .wa-load-older.wa-load-older--loading {
  opacity: .6;
  cursor: progress;
}
.wa-messages > .wa-load-older i { font-size: .95rem; line-height: 1; }
@media (prefers-reduced-motion: reduce) {
  .wa-messages > .wa-load-older { transition: none; }
}

/* "Messages not encrypted" banner that sits ABOVE the chat scroll area.
   Same WhatsApp-style yellow pill the message-enabled page uses, so the
   chat feels familiar. The banner does not scroll with the messages; it
   is a fixed intro row that the user reads once. */
.wa-encryption-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  background: #fff9c4;
  color: #5b4a00;
  border: 1px solid #ffe69c;
  border-radius: 999px;
  padding: .2rem .65rem;
  font-size: .68rem;
  line-height: 1.2;
  font-weight: 500;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto .5rem auto;
}
.wa-encryption-banner i { font-size: .85rem; }

/* Small payment confirmation pill that sits centred inside the read-only
   thread preview after the user's first free message has been sent.
   Unobtrusive so it doesn't distract from the message bubbles above. */
.wa-pay-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .8rem;
  font-size: .72rem;
  font-weight: 600;
  background: var(--c-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
  transition: background-color .15s ease, transform .15s ease;
  width: fit-content;
  margin: 0 auto;
}
.wa-pay-pill:hover:not(:disabled) { background: var(--c-primary-dark); }
.wa-pay-pill:active:not(:disabled) { transform: scale(.97); }
.wa-pay-pill:disabled { opacity: .6; cursor: progress; }
.wa-encryption-warning i { font-size: .72rem; }

/* Thin, unobtrusive scrollbar — the chat bubbles need the scroll
   affordance, but the default 16px-wide system scrollbar eats into the
   chat area and feels heavy next to the WhatsApp-style bubbles. Firefox
   gets the native `scrollbar-width: thin`, while WebKit (Chrome, Edge,
   Safari) gets a custom 6px-wide rounded thumb. */
.wa-messages,
.wa-messages-locked {
  scrollbar-width: thin;
  scrollbar-color: rgba(61, 47, 35, .28) transparent;
}
.wa-messages::-webkit-scrollbar,
.wa-messages-locked::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.wa-messages::-webkit-scrollbar-track,
.wa-messages-locked::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px 0;
}
.wa-messages::-webkit-scrollbar-thumb,
.wa-messages-locked::-webkit-scrollbar-thumb {
  background-color: rgba(61, 47, 35, .22);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background-color .15s ease;
}
.wa-messages:hover::-webkit-scrollbar-thumb,
.wa-messages-locked:hover::-webkit-scrollbar-thumb,
.wa-messages:focus-within::-webkit-scrollbar-thumb,
.wa-messages-locked:focus-within::-webkit-scrollbar-thumb {
  background-color: rgba(61, 47, 35, .42);
}
/* Hide the up/down buttons WebKit would otherwise render at the ends of
   the track — they take vertical space and look out of place. */
.wa-messages::-webkit-scrollbar-button,
.wa-messages-locked::-webkit-scrollbar-button {
  display: none;
  height: 0;
  width: 0;
}
/* Corner where horizontal + vertical scrollbars meet — keep it transparent
   so the chat background pattern shows through uninterrupted. */
.wa-messages::-webkit-scrollbar-corner,
.wa-messages-locked::-webkit-scrollbar-corner {
  background: transparent;
}

/* Protected bubble text: the body of the message has been replaced with
   placeholder 'x' characters so the bubble keeps a stable, realistic
   width on screen. This rule applies the visual "blurred" effect on top
   of the placeholder so the user clearly understands they are not looking
   at the real message, and applies only while the conversation is in the
   pending_payment state. */
.wa-bubble-text--protected {
  filter: blur(3px);
  user-select: none;
  pointer-events: none;
  -webkit-user-select: none;
  color: rgba(0, 0, 0, .35);
  letter-spacing: .02em;
}
/* Aggregate "N messages" summary bubbles in a locked chat. Override the
   blur + user-select from the individual protected rows: the user IS
   supposed to read this number — it tells them how many messages are
   waiting behind the paywall — so we keep the lock icon + frosted pill
   feel but show real characters. */
.wa-bubble-text--summary {
  filter: none;
  user-select: text;
  pointer-events: auto;
  -webkit-user-select: text;
  letter-spacing: 0;
  font-weight: 500;
  font-size: .72rem;
  color: rgba(0, 0, 0, .55);
  display: inline-flex;
  align-items: center;
  gap: .15rem;
}
.wa-message-row.sent .wa-bubble-text--summary     { color: rgba(255, 255, 255, .85); }
.wa-message-row.received .wa-bubble-text--summary { color: rgba(33, 37, 41, .65); }
@media (prefers-reduced-motion: reduce) {
  .wa-bubble-text--protected { filter: blur(2px); }
}
.wa-message-row.sent .wa-bubble     { border-bottom-right-radius: 0; }
.wa-message-row.received .wa-bubble { border-bottom-left-radius: 0; }

/* Collapsible "about" block with a gradient fade at the bottom. */
.wa-collapsible {
  position: relative;
  overflow: hidden;
  transition: max-height .35s ease;
}
.wa-collapsible--collapsed::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .92) 75%, #ffffff 100%);
}
/* Toggle variant: the content is either fully shown or fully hidden, but it
   animates between the two states via max-height so it opens and closes as
   smoothly as the faded Details card. No fade mask — the block is either
   there or it isn't, it just eases into place. */
.wa-collapsible--toggle {
  max-height: none;
  transition: max-height .35s ease;
}
.wa-collapsible--toggle::after {
  display: none;
}
/* [hidden] must win over any display declaration. */
.wa-collapsible--toggle[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .wa-collapsible { transition: none; }
}

/* "Read more" button that expands the collapsed block. */
.wa-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  padding: .35rem 1.1rem;
  background: var(--c-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(61, 47, 35, .25);
  transition: background-color .15s ease, transform .15s ease;
}
.wa-read-more:hover { background: var(--c-primary-dark); }
.wa-read-more:active { transform: scale(.97); }
.wa-read-more:focus-visible {
  outline: 2px solid var(--c-primary-dark);
  outline-offset: 2px;
}
.wa-read-more-icon {
  font-size: .85rem;
  line-height: 1;
  transition: transform .15s ease;
}

/* Tiny inline spinner that sits to the left of the "waiting for … to pay
   for a coffee" line. Slightly smaller than Bootstrap's spinner-border-sm
   so the indicator reads as a single inline glyph next to the coffee
   icon, not as a standalone loader. */
.wa-wait-spinner {
  width: .8rem;
  height: .8rem;
  border-width: .15rem;
  color: var(--c-text-muted);
  vertical-align: -.12em;
}
.wa-bubble-spinner {
  width: .65rem;
  height: .65rem;
  border-width: .12rem;
  vertical-align: -.14em;
}
.bg-success .wa-bubble-spinner { color: rgba(255, 255, 255, .65); }

/* Small "messages not encrypted" warning badge. */
.wa-encryption-warning {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  background: #fff3cd;
  color: var(--c-warning-dark);
  border: 1px solid #ffe69c;
  border-radius: 999px;
  padding: .18rem .5rem;
  font-size: .66rem;
  line-height: 1.2;
  font-weight: 500;
  width: fit-content;
  margin: 0 auto;
}

/* ---------------------------------------------------------------------
   Profile page
   --------------------------------------------------------------------- */

/* Profile header banner — brand gradient over the dark surface. */
.profile-header-gradient {
  background: linear-gradient(135deg, var(--c-primary) 0%, #5a4736 100%) !important;
}

/* Reserve vertical space so the last content row isn't hidden behind
   the floating quick-action bar. */
body.page-profile { padding-bottom: 80px; }
@media (max-width: 767.98px) {
  body.page-profile { padding-bottom: 150px; }
}
@media (max-width: 575.98px) {
  body.page-profile { padding-bottom: 115px; }
}

/* ---------------------------------------------------------------------
   Notification toasts (profile page)
   Fixed stack in the lower-left corner so they never cover the
   floating quick-action bar.
   --------------------------------------------------------------------- */
.profile-notif-stack {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}
.profile-notif-toast { pointer-events: auto; }

/* ---------------------------------------------------------------------
   Application form (apply.php)
   The radio buttons and the GDPR consent checkbox are the primary
   interactive controls of the application form, so they are enlarged
   for easier tapping on touch devices. Bootstrap sizes .form-check-input
   at 1em (16px), which is below the comfortable touch-target size.
   Scoped to the #apply card so other forms on the site are untouched.
   --------------------------------------------------------------------- */
#apply .form-check-input {
  width: 1.35em;
  height: 1.35em;
  margin-top: .2em;
  background-size: contain;
}
#apply .form-check-input[type="checkbox"] { border-radius: .3em; }

/* The float + negative margin that positions the input against its
   label is sized in em by Bootstrap; keep the gap proportional to the
   larger control. */
#apply .form-check { padding-left: 2em; }
#apply .form-check .form-check-input { margin-left: -2em; }

/* Labels sit next to the bigger controls, so nudge their baseline. */
#apply .form-check-label { padding-top: .1em; }

/* ---------------------------------------------------------------------
   Google Places Autocomplete dropdown — floats above the wizard card and
   any modal that might still be open underneath. Google injects this
   into <body> at runtime, so it cannot be scoped to a card.
   --------------------------------------------------------------------- */
.pac-container {
  z-index: 2000 !important;
  border-radius: 12px;
  margin-top: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  border: 1px solid #e6e6e6;
  font-family: var(--c-font-body);
}
.pac-container::after { display: none; }
.pac-item {
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  border-top: 1px solid #f1f1f1;
}
.pac-item:first-child { border-top: none; }
.pac-item:hover,
.pac-item-selected { background-color: var(--c-surface-muted); }
.pac-icon { margin-right: 10px; }
.pac-item-query { font-size: 15px; color: #212529; }
.pac-matched { font-weight: 600; color: var(--c-primary); }

/* ---------------------------------------------------------------------
   Step panes (multi-step signup wizard)
   --------------------------------------------------------------------- */
.step-pane {
  display: none;
  animation: step-fade-in .4s ease;
}
.step-pane.active { display: block; }
@keyframes step-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* =====================================================================
   10. RESPONSIVE ADJUSTMENTS
   ===================================================================== */

/* Signup wizard: keep the floating action area clear of the safe area
   on phones. */
@media (max-width: 575.98px) {
  body.signup-wizard {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
  }
}

/* Collapsed about-block is shorter on phones. */
@media (max-width: 575.98px) {
  .wa-collapsible.wa-collapsible--collapsed:not(.wa-collapsible--toggle) {
    max-height: 190px !important;
  }
}

/* Signup wizard form controls: comfortable on phones, standard from
   the md breakpoint upwards. */
.form-control,
.form-select {
  font-size: .9rem;
  padding: .5rem .75rem;
}
.form-control-lg,
.form-select-lg {
  font-size: .9rem;
  padding: .5rem .75rem;
}
@media (min-width: 768px) {
  .form-control,
  .form-select {
    font-size: 1rem;
    padding: .625rem 1rem;
  }
  .form-control-lg,
  .form-select-lg {
    font-size: 1.1rem;
    padding: .625rem 1rem;
  }
}

/* Wizard interest / pet chips. */
.interest-chip,
.pet-chip {
  font-size: .8rem;
  padding: .375rem .75rem;
}
.interest-chip.active,
.pet-chip.active {
  background-color: var(--c-wizard-accent);
  color: #fff;
  border-color: var(--c-wizard-accent);
}
.interest-chip:disabled,
.interest-chip.disabled {
  opacity: .45;
  cursor: not-allowed;
}
@media (min-width: 768px) {
  .interest-chip,
  .pet-chip {
    font-size: .9rem;
    padding: .5rem 1rem;
  }
}

/* Wizard step headings follow the site-wide h3 scale. */
.wizard-step-title { font-size: 1.5rem !important; }
@media (min-width: 768px) {
  .wizard-step-title { font-size: 2rem !important; }
}

/* Wizard full-width CTA. */
.btn-outline-primary.w-100.py-3 {
  font-size: .85rem;
  padding: .75rem .5rem;
}
@media (min-width: 768px) {
  .btn-outline-primary.w-100.py-3 {
    font-size: .95rem;
    padding: 1rem .75rem;
  }
}

/* Selected option tiles get a check mark in the top-right corner, so the
   user can see at a glance which options are already chosen. The badge is
   drawn with a ::after pseudo-element on the label, so every radio and
   checkbox tile in the wizard picks it up without extra markup. */
.btn-check:checked + .btn-outline-primary.w-100 {
  position: relative;
}
.btn-check:checked + .btn-outline-primary.w-100::after {
  content: "\f26a"; /* bi-check-circle-fill */
  position: absolute;
  top: .5rem;
  right: .6rem;
  font-family: "bootstrap-icons";
  font-size: 1.1rem;
  line-height: 1;
  color: #fff;
  pointer-events: none;
}
/* Tiles that are left-aligned (relationship goals, marital status) need a
   little breathing room so the badge doesn't crowd the text. */
.btn-check:checked + .btn-outline-primary.w-100.text-start {
  padding-right: 2.25rem;
}

/* The compact "Everyone / open to all" pill is too small for a corner
   badge, so it gets an inline check icon in front of the label instead. */
.btn-check:checked + .interested-all-open-btn::before {
  content: "\f26a"; /* bi-check-circle-fill */
  font-family: "bootstrap-icons";
  font-size: 1rem;
  line-height: 1;
  color: #fff;
}

/* Interest and pet chips are small pills, so a corner badge would not fit.
   They get a small check mark in front of the label when selected. */
.interest-chip.active::before,
.pet-chip.active::before {
  content: "\f26a"; /* bi-check-circle-fill */
  font-family: "bootstrap-icons";
  font-size: .85rem;
  line-height: 1;
  margin-right: .35rem;
  vertical-align: -1px;
}

/* Wizard step panes get consistent vertical spacing. */
.step-pane .mb-3,
.step-pane .mb-4 { margin-top: 12px; }
@media (min-width: 768px) {
  .step-pane .mb-3,
  .step-pane .mb-4 { margin-top: 0; }
}

/* Wizard checkboxes follow the brand ink colour. */
.step-pane .form-check-input { border-color: #212529; }
.step-pane .form-check-input:focus {
  border-color: #212529;
  box-shadow: 0 0 0 .25rem rgba(33, 37, 41, .35);
}
.step-pane .form-check-input:checked {
  background-color: #212529;
  border-color: #212529;
}

/* Bio textarea in the wizard — a scrollable multi-line field. */
.wizard-bio-box {
  height: 280px;
  overflow-y: auto;
  background-color: var(--c-surface);
  font-size: 14px;
  line-height: 1.6;
}

/* Step 3: the "Alle / offen für alle" option sits on its own below the
   gender grid. A hairline above it separates the two groups visually. */
.interested-all-open {
  border-top: 1px solid var(--c-border);
  text-align: center;
}

/* …and as a compact inline pill rather than a full-width tile. */
.interested-all-open-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  width: auto;
  padding: .35rem .9rem;
  font-size: .85rem;
  line-height: 1.4;
  border-radius: 50rem;
}
@media (min-width: 768px) {
  .interested-all-open-btn {
    font-size: .9rem;
    padding: .4rem 1rem;
  }
}


/* =====================================================================
   11. EXCEPTIONAL PAGE-SPECIFIC STYLES
   ---------------------------------------------------------------------
   Only genuinely page-unique treatments live here.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Login page
   The hero headline is a decorative serif with white fill, a thin black
   outline and a hard black shadow, so it stays readable on top of the
   photo background. -webkit-text-stroke paints the outline in every
   Chromium/WebKit browser; text-shadow then adds the drop shadow. Both
   properties are repeated so Firefox (which ignores -webkit-text-stroke)
   still gets the shadow.
   --------------------------------------------------------------------- */
body.login-page {
  background-color: var(--c-text);
  min-height: 100vh;
}

/* Hero headline on the login page: decorative serif with white fill, a
   thin black outline and a hard black shadow, so it stays readable on
   top of the photo background. -webkit-text-stroke paints the outline
   in every Chromium/WebKit browser; text-shadow then adds the drop
   shadow. Both properties are repeated so Firefox (which ignores
   -webkit-text-stroke) still gets the shadow. */
.hero-title {
  font-family: var(--c-font-display);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -.015em;
  color: #ffffff;
  -webkit-text-stroke: 1px #000000;
  paint-order: stroke fill;
  text-shadow: 1px 2px 0 #000000;
}
@supports not (-webkit-text-stroke: 1px #000000) {
  .hero-title { text-shadow: 1px 2px 0 #000000; }
}

/* Background photo covering the whole page. */
body.login-page .login-bg-slider {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
body.login-page .login-bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
body.login-page .login-bg-slide.is-active { opacity: 1; }

/* Lift the page content above the photo background. The modals, the
   backdrop and the background slider are direct children of <body>
   too, so they are excluded here: Bootstrap positions the first two
   fixed and z-indexes them itself, and the slider keeps its own fixed
   positioning behind the content. */
body.login-page > *:not(.modal):not(.modal-backdrop):not(.login-bg-slider) {
  position: relative;
  z-index: 1;
}

/* Frosted card so the copy and buttons stay readable on the photo. */
body.login-page .login-card {
  background-color: rgba(255, 255, 255, .92);
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  box-shadow: var(--c-shadow);
  backdrop-filter: blur(6px);
}
@media (min-width: 768px) {
  body.login-page .login-card { padding: 2rem; }
}

/* Let the body fill the whole viewport and push the footer to the
   bottom, so the login card sits at the bottom of the visible screen on
   every screen size. */
body.login-page {
  min-height: var(--kbv-viewport-height, 100dvh);
  display: flex;
  flex-direction: column;
}
body.login-page main#main-content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
body.login-page main#main-content > .pb-4 {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 0;
}
body.login-page main#main-content > .pb-4 .container { margin-bottom: 1rem; }

/* On large screens keep the content column narrow so the card does not
   stretch across a wide desktop/tablet viewport. */
@media (min-width: 768px) {
  body.login-page main#main-content > .pb-4 {
    width: 100%;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }
  body.login-page .login-bg-slide {
    object-fit: contain;
    object-position: center;
  }
}

/* Berlin skyline as the footer background. The silhouette is black, so
   the footer gets a dark background and light text for contrast. */
body.login-page footer.login-footer {
  background-color: var(--c-text);
  background-image: url('/qavuna/assets/images/Silhouette_Berlin.svg.webp');
  background-size: 100% auto;
  background-position: center bottom;
  background-repeat: no-repeat;
  border-top-color: transparent;
  padding-top: .5rem;
  padding-bottom: .5rem;
}
body.login-page footer.login-footer .text-body-secondary {
  color: rgba(255, 255, 255, .85) !important;
}

/* ---------------------------------------------------------------------
   Signup wizard page frame
   The wizard sits on a full-bleed photo background with a translucent
   white veil so the card stays readable.
   --------------------------------------------------------------------- */
body.signup-wizard,
body.signup-optionals {
  font-family: var(--c-font-body);
  background: url('/qavuna/assets/images/hero-bg.webp') center center / cover no-repeat;
  min-height: 100vh;
  margin: 0;
  padding: 20px 0;
  position: relative;
}
body.signup-wizard::before,
body.signup-optionals::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  opacity: .96;
  z-index: 0;
  pointer-events: none;
}
@media (min-width: 768px) {
  body.signup-wizard,
  body.signup-optionals { padding: 40px 0; }
}

/* ---------------------------------------------------------------------
   Optional-profile questionnaire (signup-optionals.php)
   This step uses a violet accent instead of the brand terracotta to
   mark it as an optional, non-blocking stage of the signup flow.
   --------------------------------------------------------------------- */
body.signup-optionals {
  padding-bottom: calc(5rem + env(safe-area-inset-bottom));
  color: #212529;
}
body.signup-optionals::before { background: rgba(255, 255, 255, .96); }

/* Close button in the top-right of the card — links back to the user's
   own profile. Positioned against the header, so it stays clear of the
   centred logo and the progress bar. */
.wizard-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  color: #6c757d;
  background: transparent;
  text-decoration: none;
  transition: color .15s ease-in-out, background-color .15s ease-in-out;
}
.wizard-close:hover,
.wizard-close:focus-visible {
  color: #212529;
  background-color: rgba(42, 32, 26, .08);
}
.wizard-close:focus-visible {
  outline: 2px solid var(--c-wizard-accent);
  outline-offset: 2px;
}
.wizard-close i { font-size: 1.1rem; line-height: 1; }
@media (min-width: 768px) {
  .wizard-close { top: 1rem; right: 1rem; }
}

.stage-count {
  margin-bottom: .35rem;
  color: var(--c-wizard-accent);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.question-block { margin-bottom: 1.25rem; }
.question-block:last-child { margin-bottom: 0; }
.question-label {
  margin-bottom: .55rem;
  font-size: .92rem;
  font-weight: 500;
}

.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.choice-list .form-check {
  margin: 0;
  padding: 0;
}
.choice-list .form-check-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.choice-list .form-check-label {
  display: block;
  padding: .45rem .8rem;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #fff;
  color: #495057;
  cursor: pointer;
  font-size: .84rem;
  line-height: 1.45;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.choice-list .form-check-input:checked + .form-check-label {
  border-color: var(--c-wizard-accent);
  background: var(--c-wizard-accent);
  color: #fff;
}
.choice-list .form-check-input:focus-visible + .form-check-label {
  outline: 3px solid rgba(var(--c-wizard-accent-rgb), .25);
  outline-offset: 2px;
}

.additional-choices {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #e8e4ff;
  border-radius: 12px;
  background: #f8f7ff;
  animation: step-fade-in .25s ease both;
}
.additional-choices[hidden] { display: none; }
.additional-choices-title {
  margin-bottom: .65rem;
  font-size: .88rem;
  font-weight: 500;
}

.skip-button {
  margin-right: auto;
  border: 0;
  background: transparent;
  color: #6c757d;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.skip-button:hover { color: #343a40; }

.completion-message {
  display: none;
  margin: 0;
  padding: 1rem 1.25rem 1.5rem;
  color: #495057;
  text-align: center;
}
.completion-message.show { display: block; }
/* Only the leading checkmark icon is enlarged. The icons inside the
   button must stay inline, otherwise the button grows to several
   stacked lines. */
.completion-message > i {
  display: block;
  margin-bottom: .5rem;
  color: var(--c-wizard-accent);
  font-size: 2rem;
}
.completion-message .btn i {
  display: inline-block;
  margin-bottom: 0;
  font-size: 1rem;
}

/* Directional step transitions for the questionnaire. */
.step-pane.active {
  display: block;
  animation: pane-enter-forward .38s cubic-bezier(.2, .75, .25, 1) both;
}
.step-pane.is-entering-backward { animation-name: pane-enter-backward; }
.step-pane.is-leaving {
  display: block;
  animation: pane-exit .16s ease-in both;
  pointer-events: none;
}
@keyframes pane-enter-forward {
  from { opacity: 0; transform: translateX(22px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pane-enter-backward {
  from { opacity: 0; transform: translateX(-22px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pane-exit {
  to { opacity: 0; transform: translateX(-12px); }
}

@media (min-width: 768px) {
  body.signup-optionals { padding-top: 40px; }
}
@media (max-width: 575.98px) {
  body.signup-optionals { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
}

/* ---------------------------------------------------------------------
   Invoice print styles
   Hide the toolbar and drop the page chrome so the invoice prints as a
   clean document.
   --------------------------------------------------------------------- */
@media print {
  .no-print { display: none !important; }
  body { background: #fff !important; padding: 0 !important; }
  .invoice-shell { border: 0 !important; box-shadow: none !important; }
}

/* ---------------------------------------------------------------------
   Flashing word (careers -> application questions)
   A heading word that cycles through a highlight animation. The markup
   carries the word itself plus two empty <span data-content="…"> copies
   that the animation reveals in turn.

   <span class="flashing-word">Application
     <span data-content="Application"></span>
     <span data-content="Application"></span>
   </span>
   --------------------------------------------------------------------- */
.flashing-word {
  position: relative;
  display: inline-block;
  color: var(--c-accent);
}
.flashing-word > span[data-content] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}
/* The two overlay copies alternate so the word appears to "flash" through
 * the accent colour and back to the plain base word. */
.flashing-word > span[data-content]:first-of-type { animation: flashing-word 4s steps(1) infinite; }
.flashing-word > span[data-content]:last-of-type  { animation: flashing-word 4s steps(1) infinite 2s; }

@keyframes flashing-word {
  0%, 100% { opacity: 0; }
  2%  { opacity: 1; }
  45% { opacity: 1; }
  47% { opacity: 0; }
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .flashing-word > span[data-content] { animation: none !important; }
}

