/* ==========================================================================
   M.B.A BARBERS — SHARED DESIGN SYSTEM
   File:      assets/styles.css
   Aesthetic: "Athletic Heritage Badge" — barbershop heritage x sports crest
   Brand:     Navy #07307C · Red #BE1028 · Ink #0B1220 · Paper #FFFFFF
   --------------------------------------------------------------------------
   TABLE OF CONTENTS
     01 · Tokens
     02 · Reset & base
     03 · Typography
     04 · Primitives (container, section, badge-label, btn, pill, tag, avatar,
          divider, split, eyebrow)
     05 · Public components
     06 · Directory components
     07 · Store components
     08 · Dashboard shell (.app)
     09 · Data components
     10 · Utilities
     11 · Motion
     12 · Responsive
   ========================================================================== */


/* ==========================================================================
   01 · TOKENS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* --- Brand: sampled from assets/logo.jpg ---------------------------- */
  --navy:        #07307C;
  --navy-light:  #0A3AA0;
  --navy-deep:   #041E4C;
  --red:         #BE1028;
  --red-light:   #E23A4B;
  --red-deep:    #8A0B1C;
  --white:       #FFFFFF;
  --ink:         #0B1220;
  --paper:       #FFFFFF;
  --surface:     #F4F6FB;
  --hairline:    #E3E8F2;

  /* --- Neutral scale (cool, navy-tinted) ------------------------------ */
  --ink-950: #0B1220;
  --ink-900: #111A2E;
  --ink-800: #1B2540;
  --ink-700: #2C374F;
  --ink-600: #4A5570;
  --ink-500: #5F6A85;
  --ink-400: #8792AB;
  --ink-300: #C3CADB;
  --ink-200: #E3E8F2;
  --ink-100: #EEF1F8;
  --ink-50:  #F7F9FC;

  /* --- Text ----------------------------------------------------------- */
  --text:             #0B1220;
  --text-strong:      #0B1220;
  --text-muted:       #4A5570;  /* 7.3:1 on white */
  --text-subtle:      #5F6A85;  /* 5.4:1 on white */
  --text-invert:      #FFFFFF;
  --text-on-navy:     rgba(255,255,255,.84);
  --text-on-navy-soft:rgba(255,255,255,.66);

  /* --- Functional (status / data only, never decorative) -------------- */
  --success:    #0F7A4A;
  --success-bg: #E6F5EE;
  --warning:    #8A5B00;
  --warning-bg: #FDF2DC;
  --danger:     #BE1028;
  --danger-bg:  #FDECEE;
  --info:       #0A3AA0;
  --info-bg:    #E7EDFA;
  --star:       #F5A524;

  /* --- Radii (badge family) ------------------------------------------- */
  --r-badge:    22px;
  --r-badge-sm: 14px;
  --r-md:       10px;
  --r-sm:       6px;
  --r-pill:     999px;
  --r-circle:   50%;

  /* --- Shadows (cool / navy tinted) ----------------------------------- */
  --sh-xs:    0 1px 2px rgba(7,48,124,.07);
  --sh-sm:    0 2px 6px rgba(7,48,124,.08), 0 1px 2px rgba(11,18,32,.05);
  --sh-md:    0 12px 26px -14px rgba(7,48,124,.26), 0 2px 6px rgba(11,18,32,.06);
  --sh-lg:    0 26px 52px -26px rgba(7,48,124,.34), 0 6px 16px -10px rgba(11,18,32,.14);
  --sh-badge: 0 26px 60px -28px rgba(4,30,76,.55), 0 8px 20px -12px rgba(11,18,32,.35);
  --ring:      0 0 0 3px rgba(190,16,40,.30);
  --ring-soft: 0 0 0 3px rgba(7,48,124,.16);

  /* --- Spacing scale (4px base) --------------------------------------- */
  --sp-0: 0;
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-7: 1.75rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-14: 3.5rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* --- Layout ---------------------------------------------------------- */
  --container:      1200px;
  --container-dash: 1360px;
  --container-md:   960px;
  --container-sm:   720px;
  --gutter:         clamp(1.1rem, 4vw, 2rem);
  --sidebar-w:      266px;
  --topbar-h:       68px;
  --utility-h:      38px;
  --header-h:       76px;
  --section-y:      clamp(3.5rem, 7vw, 6.25rem);

  /* --- Typography ------------------------------------------------------ */
  --font-display: 'Archivo Black', Impact, 'Arial Black', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-display: clamp(2.6rem, 7vw, 5rem);
  --fs-h1:      clamp(2.1rem, 4.4vw, 3rem);
  --fs-h2:      clamp(1.7rem, 3.2vw, 2.25rem);
  --fs-h3:      1.35rem;
  --fs-h4:      1.1rem;
  --fs-body:    1rem;
  --fs-sm:      .875rem;
  --fs-xs:      .8125rem;
  --fs-micro:   .72rem;

  --lh-tight: 1.02;
  --lh-head:  1.1;
  --lh-body:  1.65;

  --tracking-tight: -.02em;
  --tracking-micro: .14em;

  /* --- Motion ---------------------------------------------------------- */
  --t-fast: 140ms;
  --t-base: 220ms;
  --t-slow: 380ms;
  --ease:     cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* --- Layering -------------------------------------------------------- */
  --z-header:  100;
  --z-drawer:  180;
  --z-overlay: 200;
  --z-modal:   300;
  --z-toast:   400;

  /* --- Dashboard role accents (structure unchanged, colour recoloured) - */
  --app-side:        #07307C;
  --app-side-deep:   #041E4C;
  --app-accent:      #BE1028;
  --app-accent-soft: rgba(190,16,40,.22);
  --app-tint:        rgba(255,255,255,.10);
  --app-hair:        rgba(255,255,255,.14);
}


/* ==========================================================================
   02 · RESET & BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; border: 0; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

::selection { background: var(--navy); color: #fff; }

/* Scrollbar — thin, cool, brand-aware */
* { scrollbar-width: thin; scrollbar-color: var(--ink-300) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--ink-300);
  border-radius: var(--r-pill);
  border: 2px solid #fff;
}
::-webkit-scrollbar-thumb:hover { background: var(--navy); }

/* Focus — red ring everywhere (reads on white, navy and red alike) */
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: 1rem; top: -60px;
  z-index: 999;
  background: var(--navy); color: #fff;
  padding: .7rem 1.1rem;
  border-radius: var(--r-sm);
  font-weight: 700; font-size: var(--fs-sm);
  transition: top var(--t-base) var(--ease);
}
.skip-link:focus { top: 1rem; }

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


/* ==========================================================================
   03 · TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6,
.display, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 400;                 /* Archivo Black ships a single weight */
  text-transform: uppercase;
  color: var(--text-strong);
  line-height: var(--lh-head);
  letter-spacing: -.015em;
  text-wrap: balance;
}

h1, .h1 { font-size: var(--fs-h1); line-height: 1.04; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.08; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.2;  letter-spacing: -.01em; }
h4, .h4 { font-size: var(--fs-h4); line-height: 1.3;  letter-spacing: 0; }

.display {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

p { text-wrap: pretty; }
p + p { margin-top: var(--sp-4); }
strong, b { font-weight: 700; color: var(--text-strong); }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.175rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 62ch;
}

.small, small { font-size: var(--fs-sm); }
.micro {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
}

.num, .tabular { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.text-gradient {
  background: linear-gradient(96deg, var(--navy-light) 0%, var(--navy) 42%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Eyebrow — micro label with a red tick: the system's default section kicker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  background: var(--red);
  border-radius: 2px;
  flex: none;
}
.eyebrow--navy  { color: var(--navy); }
.eyebrow--navy::before { background: var(--navy); }
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: #fff; }
.eyebrow--center { justify-content: center; }
.eyebrow--mb { margin-bottom: var(--sp-4); }


/* ==========================================================================
   04 · PRIMITIVES
   ========================================================================== */

/* --- Layout containers -------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--md   { max-width: var(--container-md); }
.container--sm   { max-width: var(--container-sm); }
.container--dash { max-width: var(--container-dash); }
.container--flush { padding-inline: 0; }

/* --- Section spacing ---------------------------------------------------- */
.section { padding-block: var(--section-y); position: relative; }
.section--sm { padding-block: clamp(2.25rem, 4.5vw, 3.75rem); }
.section--lg { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--flush { padding-block: 0; }
.section--top-flush { padding-top: 0; }
.section--bottom-flush { padding-bottom: 0; }

.section--surface { background: var(--surface); }
.section--navy  { background: var(--navy); color: var(--text-on-navy); }
.section--ink   { background: var(--ink); color: var(--text-on-navy); }
.section--ruled { border-top: 1px solid var(--hairline); }

.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4,
.section--ink h1,  .section--ink h2,  .section--ink h3,  .section--ink h4,
.section--navy .display, .section--ink .display { color: #fff; }

.section--navy .lede, .section--ink .lede { color: var(--text-on-navy); }

/* Section heading block */
.section-head { max-width: 780px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: var(--sp-4); }
.section-head h2 { margin-bottom: var(--sp-4); }
.section-head__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.section-head__row > div:first-child { max-width: 680px; }

/* --- The signature: split badge micro-label ------------------------------ */
.badge-label {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .52em .95em .46em;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(103deg, var(--navy) 0 64%, var(--red) 64% 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.92), 0 0 0 1px rgba(7,48,124,.22);
  white-space: nowrap;
}
.badge-label::before {
  content: "";
  width: 5px; height: 11px;
  background: rgba(255,255,255,.95);
  border-radius: 1px;
  flex: none;
}
.badge-label--plain::before { display: none; }
.badge-label--navy {
  background: var(--navy);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.92), 0 0 0 1px rgba(7,48,124,.22);
}
.badge-label--red {
  background: var(--red);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.92), 0 0 0 1px rgba(190,16,40,.28);
}
.badge-label--ink {
  background: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.92), 0 0 0 1px rgba(11,18,32,.3);
}
.badge-label--light {
  color: var(--navy);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--navy), 0 0 0 1px rgba(7,48,124,.18);
}
.badge-label--light::before { background: var(--red); }
.badge-label--outline {
  color: var(--navy);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--navy);
}
.badge-label--outline::before { background: var(--red); }
.badge-label--lg { font-size: .78rem; padding: .62em 1.1em .56em; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .92em 1.55em;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  user-select: none;
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-base) var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: var(--sh-sm);
}
.btn--primary:hover { background: var(--red-deep); box-shadow: var(--sh-md); }

.btn--secondary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--sh-sm);
}
.btn--secondary:hover { background: var(--navy-deep); box-shadow: var(--sh-md); }

.btn--ink {
  background: var(--ink);
  color: #fff;
}
.btn--ink:hover { background: var(--ink-800); }

.btn--ghost {
  background: transparent;
  color: var(--ink-800);
}
.btn--ghost:hover { background: var(--surface); color: var(--navy); }

.btn--outline {
  background: transparent;
  border-color: var(--ink-300);
  color: var(--ink-800);
}
.btn--outline:hover { border-color: var(--navy); color: var(--navy); background: rgba(7,48,124,.04); }

.btn--outline-light {
  background: transparent;
  border-color: rgba(255,255,255,.45);
  color: #fff;
}
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn--light {
  background: #fff;
  color: var(--navy);
  box-shadow: var(--sh-sm);
}
.btn--light:hover { background: var(--surface); }

/* Signature badge button — vertical navy/red split with inset white keyline */
.btn--split {
  background: linear-gradient(103deg, var(--navy) 0 62%, var(--red) 62% 100%);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9),
              0 0 0 1px rgba(7,48,124,.25),
              var(--sh-sm);
}
.btn--split:hover {
  background: linear-gradient(103deg, var(--navy-deep) 0 62%, var(--red-deep) 62% 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.95),
              0 0 0 1px rgba(7,48,124,.3),
              var(--sh-md);
}

.btn--lg { padding: .98em 1.7em; font-size: 1rem; border-radius: var(--r-md); }
.btn--sm { padding: .68em 1.05em; font-size: .8125rem; border-radius: var(--r-sm); }
.btn--block { display: flex; width: 100%; }

.btn[disabled], .btn.is-disabled {
  opacity: .5;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.btn__icon { width: 1.05em; height: 1.05em; flex: none; }
.btn__arrow {
  width: 1em;
  height: 1em;
  flex: none;
  display: block;
  overflow: visible;
  transition: transform var(--t-base) var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Guard: any inline SVG inside a button must never inflate the control */
.btn > svg:not([class]) { width: 1em; height: 1em; flex: none; }

/* Button groups */
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.btn-row--center { justify-content: center; }
.btn-row--stack { flex-direction: column; align-items: stretch; }

/* --- Pill & tag ---------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .45em .95em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--ink-700);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}
.pill--navy    { background: rgba(7,48,124,.08); color: var(--navy); }
.pill--red     { background: rgba(190,16,40,.09); color: var(--red); }
.pill--solid-navy { background: var(--navy); color: #fff; }
.pill--solid-red  { background: var(--red); color: #fff; }
.pill--outline { background: transparent; border-color: var(--hairline); color: var(--ink-700); }
.pill--light   { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.22); }
.pill--lg      { padding: .6em 1.15em; font-size: .875rem; }
.pill__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  padding: .34em .62em;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--ink-700);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
}
.tag--navy { background: rgba(7,48,124,.07); border-color: rgba(7,48,124,.18); color: var(--navy); }
.tag--red  { background: rgba(190,16,40,.08); border-color: rgba(190,16,40,.22); color: var(--red); }
.tag--solid-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.tag--solid-red  { background: var(--red); border-color: var(--red); color: #fff; }
.tag--ink   { background: var(--ink); border-color: var(--ink); color: #fff; }
.tag--ghost { background: transparent; }

/* --- Avatar — badge framed ------------------------------------------------ */
.avatar {
  --av-size: 56px;
  width: var(--av-size);
  height: var(--av-size);
  flex: none;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: var(--r-badge-sm);
  overflow: hidden;
  background: linear-gradient(155deg, var(--navy-light), var(--navy) 55%, var(--navy-deep));
  color: #fff;
  font-weight: 700;
  font-size: calc(var(--av-size) * .34);
  letter-spacing: .02em;
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1.5px var(--navy), var(--sh-sm);
  object-fit: cover;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm   { --av-size: 40px; border-radius: 11px; }
.avatar--lg   { --av-size: 88px; border-radius: var(--r-badge-sm); }
.avatar--xl   { --av-size: 120px; border-radius: 18px; }
.avatar--red  { background: linear-gradient(155deg, var(--red-light), var(--red) 55%, var(--red-deep)); box-shadow: inset 0 0 0 2px #fff, 0 0 0 1.5px var(--red), var(--sh-sm); }
.avatar--ink  { background: linear-gradient(155deg, var(--ink-700), var(--ink)); box-shadow: inset 0 0 0 2px #fff, 0 0 0 1.5px var(--ink), var(--sh-sm); }
.avatar--round { border-radius: 50%; box-shadow: inset 0 0 0 2px #fff, 0 0 0 1.5px var(--navy), var(--sh-sm); }

.avatar__status {
  position: absolute;
  right: 3px; bottom: 3px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2.5px #fff;
  z-index: 2;
}

/* --- Divider -------------------------------------------------------------- */
.divider { height: 1px; background: var(--hairline); border: 0; margin: var(--sp-6) 0; }
.divider--spaced { margin-block: var(--sp-10); }
.divider--strong { background: var(--ink-800); height: 2px; }
.divider--dashed {
  height: 0;
  background: none;
  border-top: 1.5px dashed var(--ink-300);
}
.divider--split {
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0 50%, var(--red) 50% 100%);
}
.divider--label {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  height: auto;
  background: none;
  color: var(--text-subtle);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
}
.divider--label::before,
.divider--label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

/* --- Split backgrounds (the logo's navy/red divide) ----------------------- */
.split { position: relative; isolation: isolate; overflow: hidden; }
.split::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, var(--navy) 0 52%, var(--red) 52% 100%);
}
.split > * { position: relative; z-index: 1; }
.split--diagonal::before { background: linear-gradient(112deg, var(--navy) 0 47%, var(--red) 47% 100%); }
.split--reverse::before  { background: linear-gradient(90deg, var(--red) 0 48%, var(--navy) 48% 100%); }
.split--vertical::before { background: linear-gradient(180deg, var(--navy) 0 55%, var(--red) 55% 100%); }
.split--soft::before     { background: linear-gradient(112deg, var(--navy-deep) 0 55%, var(--red-deep) 55% 100%); }

/* 4px rule used at section boundaries */
.split-rule {
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, var(--navy) 0 50%, var(--red) 50% 100%);
}
.split-rule--thin { height: 3px; }
.split-rule--navy { background: var(--navy); }

/* ==========================================================================
   05 · PUBLIC COMPONENTS
   ========================================================================== */

/* --- Top utility bar ------------------------------------------------------ */
.utility-bar {
  background: var(--navy-deep);
  color: rgba(255,255,255,.82);
  font-size: .78rem;
  position: relative;
  z-index: calc(var(--z-header) + 1);
}
.utility-bar__inner {
  min-height: var(--utility-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.utility-bar__group { display: flex; align-items: center; gap: var(--sp-5); }
.utility-bar__item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  transition: color var(--t-fast) var(--ease);
}
.utility-bar__item svg { width: 14px; height: 14px; opacity: .75; flex: none; }
a.utility-bar__item:hover { color: #fff; }
.utility-bar__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: var(--fs-micro);
  padding-inline: .15rem;
}
.utility-bar__link svg { width: 13px; height: 13px; }
.utility-bar__link::after {
  content: "";
  position: absolute;
}
.utility-bar__sep { width: 1px; height: 14px; background: rgba(255,255,255,.2); }
.utility-bar--hide-sm .utility-bar__group:first-child { display: none; }

/* --- Main header ---------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-width: 0;
}
.header--ruled { box-shadow: 0 1px 0 var(--hairline), 0 8px 24px -20px rgba(7,48,124,.35); }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__logo {
  width: 46px; height: 46px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
  background: var(--ink);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--navy), var(--sh-xs);
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--ink);
}
.brand__name span { color: var(--red); }
.brand__tag {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-top: .28rem;
}
.brand--light .brand__name { color: #fff; }
.brand--light .brand__tag { color: rgba(255,255,255,.6); }
.brand--lg .brand__logo { width: 60px; height: 60px; border-radius: 15px; }
.brand--lg .brand__name { font-size: 1.3rem; }

/* Primary nav */
.nav {
  display: flex;
  align-items: center;
  gap: .15rem;
  margin-left: auto;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
}
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .6rem .82rem;
  border-radius: var(--r-sm);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink-700);
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.nav__link:hover { background: var(--surface); color: var(--navy); }
.nav__link[aria-current="page"] { color: var(--navy); background: rgba(7,48,124,.07); }
.nav__caret { width: 11px; height: 11px; opacity: .55; flex: none; transition: transform var(--t-base) var(--ease); }
.nav__item:hover .nav__caret,
.nav__item:focus-within .nav__caret { transform: rotate(180deg); }

/* Dropdown — simple */
.nav__sub {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 250px;
  padding: .5rem;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-badge-sm);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), visibility var(--t-base);
  z-index: 20;
}
.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub--right { left: auto; right: 0; }

/* Dropdown — mega */
.nav__sub--mega {
  left: 50%;
  right: auto;
  transform: translate(-50%, 8px);
  width: min(880px, calc(100vw - 3rem));
  padding: var(--sp-5);
}
.nav__item:hover > .nav__sub--mega,
.nav__item:focus-within > .nav__sub--mega { transform: translate(-50%, 0); }
.nav__mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-2) var(--sp-5);
}
.nav__mega-col { display: flex; flex-direction: column; }
.nav__mega-title {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  color: var(--red);
  padding: .5rem .6rem .35rem;
  grid-column: 1 / -1;
}
.nav__mega-link {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .6rem;
  border-radius: var(--r-md);
  transition: background-color var(--t-fast) var(--ease);
}
.nav__mega-link:hover { background: var(--surface); }
.nav__mega-link svg { width: 18px; height: 18px; color: var(--navy); flex: none; margin-top: 2px; }
.nav__mega-link strong { display: block; font-size: .9rem; font-weight: 700; color: var(--ink); }
.nav__mega-link span { display: block; font-size: .78rem; color: var(--text-subtle); line-height: 1.45; }

.nav__sub-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .62rem .75rem;
  border-radius: var(--r-md);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-700);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav__sub-link:hover { background: var(--surface); color: var(--navy); }
.nav__sub-link svg { width: 14px; height: 14px; opacity: .5; }
.nav__sub-sep { height: 1px; background: var(--hairline); margin: .4rem .3rem; }

/* Header actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-left: auto;
  flex: none;
}
.nav + .header__actions { margin-left: 0; }
/* Prefer one primary CTA (Join) next to Sign in */
.header__actions a.btn--outline { display: none; }
.header__phone {
  display: none;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .875rem;
  color: var(--ink);
  white-space: nowrap;
  flex: none;
}
.header__phone svg { width: 16px; height: 16px; color: var(--red); flex: none; }

/* Burger */
.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1.5px solid var(--hairline);
  border-radius: var(--r-md);
  background: #fff;
  place-items: center;
  flex: none;
}
.burger__bars { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: background-color var(--t-fast); }
.burger__bars::before,
.burger__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: var(--ink);
  transition: transform var(--t-base) var(--ease);
}
.burger__bars::before { top: -6px; }
.burger__bars::after  { top: 6px; }
.burger.is-open .burger__bars { background: transparent; }
.burger.is-open .burger__bars::before { transform: translateY(6px) rotate(45deg); }
.burger.is-open .burger__bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* --- Mobile drawer --------------------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(330px, 88vw);
  background: #fff;
  z-index: var(--z-drawer);
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform var(--t-slow) var(--ease-out), visibility var(--t-slow) linear;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--hairline);
}
.drawer__close {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--hairline);
  display: grid; place-items: center;
  color: var(--ink);
}
.drawer__close:hover { background: var(--surface); border-color: var(--navy); color: var(--navy); }
.drawer__close svg { width: 16px; height: 16px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem 1.5rem; }
.drawer__label {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 1.35rem 0 .5rem;
}
.drawer__label:first-child { margin-top: .25rem; }
.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .78rem .25rem;
  border-bottom: 1px solid var(--hairline);
  font-size: .975rem;
  font-weight: 600;
  color: var(--ink-800);
}
.drawer__link:hover { color: var(--navy); }
.drawer__link[aria-current="page"] { color: var(--red); }
.drawer__link svg { width: 15px; height: 15px; opacity: .45; }
.drawer__foot { padding: 1.25rem; border-top: 1px solid var(--hairline); background: var(--surface); }
.drawer__foot .btn { width: 100%; }
.drawer__meta { margin-top: .9rem; font-size: .8rem; color: var(--text-subtle); text-align: center; }

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(11,18,32,.55);
  backdrop-filter: blur(2px);
  z-index: calc(var(--z-drawer) - 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) var(--ease), visibility var(--t-base);
}
.scrim.is-open { opacity: 1; visibility: visible; }

/* --- HERO ------------------------------------------------------------------ */
.hero {
  position: relative;
  background: var(--surface);
  padding-block: clamp(2rem, 4vw, 3.25rem) clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(7,48,124,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7,48,124,.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }

/* The big split badge composition */
.hero__badge {
  position: relative;
  border-radius: var(--r-badge);
  background: linear-gradient(90deg, var(--navy) 0 52%, var(--red) 52% 100%);
  box-shadow: var(--sh-badge);
  overflow: hidden;
  isolation: isolate;
}
.hero__badge::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 12px;
  pointer-events: none;
  z-index: 3;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(2.5rem, 4.5vw, 4rem);
  padding-bottom: clamp(2.75rem, 5vw, 4.25rem);
  position: relative;
  z-index: 2;
}
.hero__copy { color: #fff; min-width: 0; }
.hero__grid > * { min-width: 0; }
.hero__kicker { margin-bottom: var(--sp-5); }
.hero__title {
  font-size: clamp(2.35rem, 5vw, 4.15rem);
  line-height: .98;
  letter-spacing: -.028em;
  color: #fff;
  margin-bottom: var(--sp-5);
  text-shadow: 0 2px 24px rgba(4,30,76,.35);
}
.hero__title em {
  font-style: normal;
  display: inline-block;
  position: relative;
  color: #fff;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: .1em;
  background: var(--red-light);
  border-radius: 2px;
}
.hero__lede {
  font-size: clamp(1rem, 1.35vw, 1.115rem);
  line-height: 1.68;
  color: rgba(255,255,255,.86);
  max-width: 52ch;
  margin-bottom: var(--sp-7);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__note {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: var(--sp-6);
  font-size: .82rem;
  color: rgba(255,255,255,.78);
}
.hero__note svg { width: 16px; height: 16px; flex: none; }

/* Hero art — framed crest */
.hero__art { position: relative; display: grid; place-items: center; }
.crest {
  position: relative;
  width: min(300px, 78%);
  aspect-ratio: 48 / 100;
  border-radius: 26px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.65), 0 0 0 6px rgba(255,255,255,.14);
  transform: rotate(-2.5deg);
  transition: transform var(--t-slow) var(--ease);
}
.hero__badge:hover .crest { transform: rotate(0deg) scale(1.015); }
.crest__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.035);
}
.crest__ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.9), inset 0 0 0 10px rgba(4,30,76,.14);
  pointer-events: none;
}
.hero__art::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  width: 78%; aspect-ratio: 1;
  border: 2px dashed rgba(255,255,255,.3);
  border-radius: 50%;
  animation: spin 44s linear infinite;
}
.chip-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem .85rem;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  z-index: 4;
}
.chip-float small { display: block; font-size: .68rem; font-weight: 600; color: var(--text-subtle); }
.chip-float svg { width: 22px; height: 22px; flex: none; }
.chip-float--tl { top: 6%; left: -4%; animation: bob 6s ease-in-out infinite; }
.chip-float--br { bottom: 8%; right: -3%; animation: bob 6s ease-in-out infinite .9s; }
.chip-float__icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: #fff;
  background: var(--navy);
  flex: none;
}
.chip-float--br .chip-float__icon { background: var(--red); }

/* Trust stats bar — overlaps the badge (grid break) */
.hero__stats {
  position: relative;
  z-index: 5;
  margin-top: -34px;
  margin-inline: clamp(0rem, 2vw, 2rem);
  background: #fff;
  border-radius: var(--r-badge-sm);
  box-shadow: var(--sh-lg);
  border: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}
.stat-strip__item {
  padding: 1.25rem clamp(.9rem, 2vw, 1.6rem);
  text-align: center;
  position: relative;
}
.stat-strip__item + .stat-strip__item::before {
  content: "";
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 1px;
  background: var(--hairline);
}
.stat-strip__value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.stat-strip__value span { color: var(--red); }
.stat-strip__label {
  margin-top: .45rem;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

/* Simple / interior page hero */
.page-hero {
  position: relative;
  background: linear-gradient(112deg, var(--navy) 0 62%, var(--navy-deep) 62% 100%);
  color: #fff;
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -40%; right: -8%;
  width: 46%; height: 190%;
  background: linear-gradient(112deg, transparent 0 44%, rgba(190,16,40,.9) 44% 100%);
  transform: rotate(0deg);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--red) 0 50%, var(--navy-light) 50% 100%);
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-block: var(--sp-4) var(--sp-4); }
.page-hero p { color: rgba(255,255,255,.85); max-width: 62ch; font-size: 1.05rem; }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .8125rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.72); font-weight: 500; }
.breadcrumb li + li::before { content: "/"; opacity: .5; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: #fff; font-weight: 700; }
.breadcrumb--light li { color: var(--text-subtle); }
.breadcrumb--light li + li::before { color: var(--ink-400); }
.breadcrumb--light a:hover { color: var(--navy); }
.breadcrumb--light [aria-current] { color: var(--ink); }

/* --- Trust strip ------------------------------------------------------------ */
.trust-strip {
  background: #fff;
  border-block: 1px solid var(--hairline);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
}
.trust-strip__label {
  text-align: center;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--sp-6);
}
.trust-strip__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}
.trust-logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--ink-800);
  opacity: .45;
  filter: grayscale(1);
  transition: opacity var(--t-base) var(--ease), filter var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.trust-logo:hover { opacity: 1; filter: none; color: var(--navy); }
.trust-logo::before {
  content: "";
  width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--navy) 0 50%, var(--red) 50% 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85);
  flex: none;
}
.trust-logo--round::before { border-radius: 50%; }
.trust-logo--outline::before { background: none; box-shadow: inset 0 0 0 2.5px currentColor; }

/* --- Feature cards ----------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-badge-sm);
  position: relative;
}
.card--pad { padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.card--hover {
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: transparent;
}
.card--navy { background: var(--navy); border-color: var(--navy); color: var(--text-on-navy); }
.card--navy h2, .card--navy h3, .card--navy h4 { color: #fff; }
.card--ink { background: var(--ink); border-color: var(--ink); color: var(--text-on-navy); }
.card--surface { background: var(--surface); }
.card--flat { box-shadow: none; }
.card--shadow { box-shadow: var(--sh-md); border-color: transparent; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--tight { gap: clamp(.75rem, 1.5vw, 1rem); }
.grid--loose { gap: clamp(1.5rem, 3vw, 2.25rem); }

.feature-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-badge-sm);
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0 55%, var(--red) 55% 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease-out);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card__icon {
  width: 58px; height: 58px;
  border-radius: var(--r-badge-sm);
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(140deg, var(--navy-light), var(--navy) 60%, var(--navy-deep));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.9), 0 0 0 1.5px rgba(7,48,124,.35), var(--sh-sm);
  flex: none;
}
.feature-card__icon svg { width: 26px; height: 26px; }
.feature-card--red .feature-card__icon {
  background: linear-gradient(140deg, var(--red-light), var(--red) 60%, var(--red-deep));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.9), 0 0 0 1.5px rgba(190,16,40,.4), var(--sh-sm);
}
.feature-card__title { font-size: 1.18rem; letter-spacing: -.01em; }
.feature-card__text { color: var(--text-muted); font-size: .9375rem; line-height: 1.6; }
.feature-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
}
.feature-card__link svg { width: 15px; height: 15px; transition: transform var(--t-base) var(--ease); }
.feature-card:hover .feature-card__link { color: var(--red); }
.feature-card:hover .feature-card__link svg { transform: translateX(4px); }
.feature-card__num {
  position: absolute;
  right: 1.1rem; top: .85rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(7,48,124,.08);
  pointer-events: none;
}

/* Filled variants used for the module grid */
.feature-card--navy {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-color: var(--navy);
  color: var(--text-on-navy);
}
.feature-card--navy::before { background: var(--red); transform: scaleX(1); }
.feature-card--navy .feature-card__title { color: #fff; }
.feature-card--navy .feature-card__text { color: rgba(255,255,255,.78); }
.feature-card--navy .feature-card__icon {
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.9);
}
.feature-card--navy .feature-card__link { color: #fff; }
.feature-card--navy:hover .feature-card__link { color: var(--red-light); }
.feature-card--navy .feature-card__num { color: rgba(255,255,255,.1); }

.feature-card--wide { flex-direction: row; align-items: center; gap: clamp(1.25rem, 3vw, 2.25rem); }
.feature-card--wide .feature-card__body { flex: 1; }
.feature-card--wide .feature-card__link { margin-top: var(--sp-4); }

/* --- Stat strip (marketing) --------------------------------------------------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--r-badge-sm);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: #fff;
}
.stat-band__item { padding: clamp(1.25rem, 2.5vw, 1.9rem); text-align: center; position: relative; }
.stat-band__item + .stat-band__item { border-left: 1px solid var(--hairline); }
.stat-band__value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.stat-band__label {
  margin-top: .5rem;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.stat-band--navy { background: var(--navy); border-color: var(--navy-deep); }
.stat-band--navy .stat-band__value { color: #fff; }
.stat-band--navy .stat-band__label { color: rgba(255,255,255,.65); }
.stat-band--navy .stat-band__item + .stat-band__item { border-left-color: rgba(255,255,255,.16); }

/* Split stats band (navy / red) */
.stats-split {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(100deg, var(--navy) 0 58%, var(--red) 58% 100%);
}
.stats-split::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 14px;
  pointer-events: none;
}
.stats-split__item { padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 2vw, 1.75rem); text-align: center; position: relative; z-index: 1; }
.stats-split__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
}
.stats-split__label {
  margin-top: .6rem;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
}

/* --- Testimonials ------------------------------------------------------------ */
.testimonial {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-badge-sm);
  padding: clamp(1.4rem, 2.6vw, 1.85rem);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.testimonial::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--navy) 0 50%, var(--red) 50% 100%);
}
.testimonial__stars { display: inline-flex; gap: 2px; color: var(--star); }
.testimonial__stars svg { width: 16px; height: 16px; }
.testimonial__quote {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-700);
  position: relative;
}
.testimonial__quote::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 0;
  color: rgba(190,16,40,.22);
  position: absolute;
  top: .55em;
  left: -.15em;
}
.testimonial__body { padding-left: 1.4rem; }
.testimonial__author { display: flex; align-items: center; gap: .85rem; margin-top: auto; }
.testimonial__name { font-weight: 700; font-size: .95rem; color: var(--ink); line-height: 1.3; }
.testimonial__role { font-size: .78rem; color: var(--text-subtle); line-height: 1.4; }
.testimonial--navy {
  background: var(--navy);
  border-color: var(--navy-deep);
}
.testimonial--navy .testimonial__quote { color: rgba(255,255,255,.9); }
.testimonial--navy .testimonial__quote::before { color: rgba(255,255,255,.3); }
.testimonial--navy .testimonial__name { color: #fff; }
.testimonial--navy .testimonial__role { color: rgba(255,255,255,.62); }

/* --- Voucher / pricing cards -------------------------------------------------- */
.voucher {
  position: relative;
  border-radius: var(--r-badge);
  background: linear-gradient(126deg, var(--navy) 0 58%, var(--red) 58% 100%);
  color: #fff;
  padding: clamp(1.4rem, 2.6vw, 1.75rem);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--sh-md);
}
.voucher::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.5px solid rgba(255,255,255,.65);
  border-radius: 15px;
  pointer-events: none;
  z-index: 2;
}
.voucher::before {
  content: "";
  position: absolute;
  top: 50%; left: -12px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--paper);
  transform: translateY(-50%);
  z-index: 3;
  box-shadow: inset -1px 0 0 rgba(7,48,124,.15);
}
.voucher__inner { position: relative; z-index: 1; }
.voucher__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.voucher__brand { display: flex; align-items: center; gap: .6rem; }
.voucher__brand img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: var(--ink); box-shadow: 0 0 0 1.5px rgba(255,255,255,.85); }
.voucher__brand b { font-family: var(--font-display); font-size: .85rem; letter-spacing: .01em; }
.voucher__type {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.voucher__amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1;
  margin-block: clamp(1.1rem, 2.5vw, 1.6rem) .35rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  text-shadow: 0 2px 18px rgba(4,30,76,.4);
}
.voucher__desc { font-size: .84rem; color: rgba(255,255,255,.82); }
.voucher__foot {
  margin-top: clamp(1.1rem, 2.5vw, 1.5rem);
  padding-top: .9rem;
  border-top: 1.5px dashed rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,.85);
}
.voucher__code { font-variant-numeric: tabular-nums; letter-spacing: .18em; }
.voucher--light {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--sh-md), 0 0 0 1px var(--hairline);
}
.voucher--light::after { border-color: var(--navy); border-style: solid; }
.voucher--light::before { background: var(--surface); box-shadow: inset -1px 0 0 var(--hairline); }
.voucher--light .voucher__brand b { color: var(--ink); }
.voucher--light .voucher__type { color: var(--text-subtle); }
.voucher--light .voucher__amount { color: var(--navy); text-shadow: none; }
.voucher--light .voucher__desc { color: var(--text-muted); }
.voucher--light .voucher__foot { border-top-color: var(--hairline); color: var(--text-subtle); }
.voucher--sm .voucher__amount { font-size: 1.7rem; }

.voucher-denoms { display: flex; flex-wrap: wrap; gap: .6rem; }
.voucher-denom {
  position: relative;
  padding: .85rem 1.15rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--hairline);
  background: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.voucher-denom:hover { border-color: var(--navy); color: var(--navy); }
.voucher-denom.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9), var(--sh-sm);
}
.voucher-denom.is-active::after {
  content: "";
  position: absolute;
  top: -6px; right: -6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 2px #fff;
}

/* Pricing card */
.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-badge);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.price-card__name { font-size: 1.2rem; }
.price-card__price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.price-card__price span {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0;
}
.price-card__desc { font-size: .9rem; color: var(--text-muted); }
.price-card__list { display: flex; flex-direction: column; gap: .7rem; font-size: .9rem; color: var(--ink-700); }
.price-card__list li { display: flex; gap: .65rem; align-items: flex-start; }
.price-card__list svg { width: 17px; height: 17px; color: var(--success); flex: none; margin-top: 3px; }
.price-card__list li.is-off { color: var(--text-subtle); }
.price-card__list li.is-off svg { color: var(--ink-300); }
.price-card__foot { margin-top: auto; }
.price-card--featured {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-color: var(--navy-deep);
  color: var(--text-on-navy);
  box-shadow: var(--sh-lg);
}
.price-card--featured .price-card__name,
.price-card--featured .price-card__price { color: #fff; }
.price-card--featured .price-card__price span,
.price-card--featured .price-card__desc { color: rgba(255,255,255,.75); }
.price-card--featured .price-card__list { color: rgba(255,255,255,.9); }
.price-card__ribbon {
  position: absolute;
  top: 1.15rem; right: -2.6rem;
  transform: rotate(38deg);
  background: var(--red);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .42rem 2.6rem;
  box-shadow: var(--sh-sm);
  z-index: 2;
}

/* --- Accordion / FAQ ---------------------------------------------------------- */
.acc { border-top: 1px solid var(--hairline); }
.acc__item { border-bottom: 1px solid var(--hairline); }
.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: 1.2rem .25rem;
  text-align: left;
  font-size: clamp(1rem, 1.4vw, 1.075rem);
  font-weight: 700;
  color: var(--ink);
  transition: color var(--t-fast) var(--ease);
}
.acc__btn:hover { color: var(--navy); }
.acc__item.is-open .acc__btn { color: var(--navy); }
.acc__icon {
  position: relative;
  width: 30px; height: 30px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--surface);
  transition: background-color var(--t-fast) var(--ease), transform var(--t-base) var(--ease);
}
.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2px;
  background: var(--navy);
  transform: translate(-50%, -50%);
  transition: transform var(--t-base) var(--ease), background-color var(--t-fast);
}
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__item.is-open .acc__icon { background: var(--red); }
.acc__item.is-open .acc__icon::before,
.acc__item.is-open .acc__icon::after { background: #fff; }
.acc__item.is-open .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-slow) var(--ease);
}
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__content {
  padding: 0 3.25rem 1.35rem .25rem;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.7;
}
.acc--boxed { border-top: 0; display: grid; gap: .85rem; }
.acc--boxed .acc__item {
  border: 1px solid var(--hairline);
  border-radius: var(--r-badge-sm);
  background: #fff;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.acc--boxed .acc__item.is-open { border-color: rgba(7,48,124,.35); box-shadow: var(--sh-sm); }
.acc--boxed .acc__btn { padding: 1.15rem 1.25rem; }
.acc--boxed .acc__content { padding: 0 3rem 1.35rem 1.25rem; }
.acc--navy .acc__item { border-color: rgba(255,255,255,.16); }
.acc--navy .acc__btn { color: #fff; }
.acc--navy .acc__content { color: rgba(255,255,255,.78); }
.acc--navy .acc__icon { background: rgba(255,255,255,.12); }
.acc--navy .acc__icon::before, .acc--navy .acc__icon::after { background: #fff; }

/* --- Tabs --------------------------------------------------------------------- */
.tabs__list {
  display: flex;
  gap: .25rem;
  border-bottom: 1.5px solid var(--hairline);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__btn {
  position: relative;
  padding: .85rem 1.15rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-subtle);
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background-color var(--t-fast);
}
.tabs__btn:hover { color: var(--navy); background: rgba(7,48,124,.04); }
.tabs__btn.is-active,
.tabs__btn[aria-selected="true"] {
  color: var(--navy);
  border-bottom-color: var(--red);
  font-weight: 700;
}
.tabs__panel { padding-top: var(--sp-7); }
.tabs__panel[hidden] { display: none; }
.tabs--pills .tabs__list {
  border-bottom: 0;
  gap: .5rem;
  flex-wrap: wrap;
}
.tabs--pills .tabs__btn {
  border: 1.5px solid var(--hairline);
  border-radius: var(--r-pill);
  margin-bottom: 0;
  padding: .55rem 1.1rem;
  background: #fff;
  font-size: .83rem;
}
.tabs--pills .tabs__btn.is-active,
.tabs--pills .tabs__btn[aria-selected="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.tabs--pills .tabs__panel { padding-top: var(--sp-6); }

/* --- Steps / timeline steps ---------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red-light) 100%);
  border-radius: 2px;
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; }
.step__num {
  width: 62px; height: 62px;
  margin: 0 auto var(--sp-5);
  border-radius: var(--r-badge-sm);
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.45rem;
  box-shadow: inset 0 0 0 2.5px #fff, 0 0 0 2px var(--navy), var(--sh-md);
  position: relative;
}
.step:nth-child(even) .step__num {
  background: var(--red);
  box-shadow: inset 0 0 0 2.5px #fff, 0 0 0 2px var(--red), var(--sh-md);
}
.step__title { font-size: 1.06rem; margin-bottom: .55rem; }
.step__text { font-size: .9rem; color: var(--text-muted); line-height: 1.6; max-width: 30ch; margin-inline: auto; }

.steps--checklist::before { display: none; }
.steps--checklist .step { text-align: left; }
.steps--checklist .step__num { margin-inline: 0; }

/* Checkout stepper */
.stepper {
  display: flex;
  align-items: center;
  gap: clamp(.4rem, 1.5vw, 1rem);
  flex-wrap: wrap;
}
.stepper__item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .83rem;
  font-weight: 600;
  color: var(--text-subtle);
}
.stepper__dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1.5px solid var(--hairline);
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-subtle);
  flex: none;
  transition: all var(--t-base) var(--ease);
}
.stepper__item.is-done .stepper__dot {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.stepper__item.is-active { color: var(--ink); }
.stepper__item.is-active .stepper__dot {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(190,16,40,.18);
}
.stepper__line {
  flex: 1;
  min-width: 18px;
  height: 2px;
  background: var(--hairline);
  border-radius: 2px;
}
.stepper__line.is-done { background: var(--navy); }

/* --- Callout / CTA band --------------------------------------------------------- */
.callout {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 5px solid var(--red);
  border-radius: var(--r-md);
  padding: clamp(1.15rem, 2.2vw, 1.5rem);
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.callout__icon {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: rgba(190,16,40,.1);
  color: var(--red);
  display: grid; place-items: center;
  flex: none;
}
.callout__icon svg { width: 18px; height: 18px; }
.callout__title { font-size: .98rem; margin-bottom: .3rem; }
.callout__text { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }
.callout--navy { background: rgba(7,48,124,.05); border-color: rgba(7,48,124,.18); border-left-color: var(--navy); }
.callout--navy .callout__icon { background: rgba(7,48,124,.1); color: var(--navy); }

.cta-band {
  position: relative;
  border-radius: var(--r-badge);
  background: linear-gradient(103deg, var(--navy) 0 56%, var(--red) 56% 100%);
  color: #fff;
  padding: clamp(2.25rem, 5vw, 3.75rem);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--sh-lg);
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 14px;
  pointer-events: none;
  z-index: 2;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -6%; top: -70%;
  width: 44%; aspect-ratio: 1;
  border: 2.5rem solid rgba(255,255,255,.07);
  border-radius: 50%;
  z-index: 0;
}
.cta-band__inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.cta-band__copy { max-width: 620px; }
.cta-band h2 { color: #fff; margin-bottom: var(--sp-4); }
.cta-band p { color: rgba(255,255,255,.85); font-size: 1.02rem; }
.cta-band__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.cta-band--center .cta-band__inner { justify-content: center; text-align: center; }
.cta-band--center .cta-band__copy { display: flex; flex-direction: column; align-items: center; }

/* --- Pagination ----------------------------------------------------------------- */
.pagination { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.page {
  min-width: 40px; height: 40px;
  padding-inline: .6rem;
  display: inline-grid;
  place-items: center;
  border: 1.5px solid var(--hairline);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-700);
  font-variant-numeric: tabular-nums;
  transition: all var(--t-fast) var(--ease);
}
.page:hover { border-color: var(--navy); color: var(--navy); }
.page.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9);
}
.page svg { width: 15px; height: 15px; }
.page:disabled, .page.is-disabled { opacity: .45; pointer-events: none; }
.pagination--center { justify-content: center; }

/* --- Editorial / news cards ------------------------------------------------------- */
.post-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-badge-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.post-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy) 0 55%, var(--red) 55% 100%);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.post-card__media svg { width: 100%; height: 100%; }
.post-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.07) 0 2px, transparent 2px 9px);
}
.post-card__cat { position: absolute; top: .85rem; left: .85rem; z-index: 2; }
.post-card__body { padding: clamp(1.1rem, 2vw, 1.4rem); display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.post-card__meta {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.post-card__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.post-card__meta span + span::before { content: "·"; margin-right: .2rem; }
.post-card__title { font-size: 1.1rem; line-height: 1.3; }
.post-card__title a { transition: color var(--t-fast) var(--ease); }
.post-card__title a:hover { color: var(--red); }
.post-card__excerpt { font-size: .9rem; color: var(--text-muted); line-height: 1.62; }
.post-card__foot { margin-top: auto; padding-top: .6rem; }
.post-card--overlay .post-card__body { position: relative; z-index: 2; }
.post-card__author { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--text-subtle); }

/* --- Footer ------------------------------------------------------------------------ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  position: relative;
  padding-top: clamp(3rem, 6vw, 4.75rem);
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--navy) 0 50%, var(--red) 50% 100%);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.footer__brand-card {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1.1rem;
  border-radius: var(--r-badge-sm);
  background: linear-gradient(103deg, rgba(7,48,124,.55) 0 62%, rgba(190,16,40,.5) 62% 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55);
  margin-bottom: var(--sp-5);
}
.footer__brand-card img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--ink); }
.footer__brand-card b { font-family: var(--font-display); color: #fff; font-size: .95rem; text-transform: uppercase; }
.footer__about { font-size: .9rem; line-height: 1.7; max-width: 42ch; }
.footer__title {
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-5);
  position: relative;
  padding-bottom: .75rem;
}
.footer__title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 3px;
  background: var(--red);
  border-radius: 2px;
}
.footer__links { display: flex; flex-direction: column; gap: .72rem; }
.footer__links a {
  font-size: .9rem;
  color: rgba(255,255,255,.66);
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.footer__links a::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 1px;
  background: var(--red);
  opacity: .6;
  flex: none;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.footer__links a:hover { color: #fff; }
.footer__links a:hover::before { opacity: 1; transform: translateX(2px); }

.footer__newsletter { margin-top: var(--sp-6); }
.footer__newsletter p { font-size: .86rem; margin-bottom: .75rem; }
.newsletter { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter input {
  flex: 1;
  min-width: 170px;
  padding: .8rem .95rem;
  border-radius: var(--r-sm);
  border: 1.5px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: .875rem;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.newsletter input::placeholder { color: rgba(255,255,255,.5); }
.newsletter input:focus {
  outline: none;
  border-color: var(--red-light);
  background: rgba(255,255,255,.11);
  box-shadow: 0 0 0 3px rgba(190,16,40,.3);
}
.newsletter .btn { flex: none; }

.socials { display: flex; gap: .55rem; margin-top: var(--sp-6); }
.social {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: rgba(255,255,255,.09);
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.1);
  transition: all var(--t-fast) var(--ease);
}
.social svg { width: 17px; height: 17px; }
.social:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.13);
  padding-block: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .8125rem;
}
.footer__legal { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer__legal a:hover { color: #fff; text-decoration: underline; }
.footer__copy { color: rgba(255,255,255,.5); }
.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .8rem;
  border-radius: var(--r-sm);
  background: linear-gradient(103deg, var(--navy) 0 64%, var(--red) 64% 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85);
  color: #fff;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ==========================================================================
   06 · DIRECTORY COMPONENTS
   ========================================================================== */

.directory {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}

/* Filter sidebar */
.filters { position: sticky; top: calc(var(--header-h) + 1rem); display: flex; flex-direction: column; gap: 1rem; }
.filter-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-badge-sm);
  overflow: hidden;
}
.filter-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .95rem 1.15rem;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
}
.filter-card__title {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  color: var(--ink-800);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.filter-card__title svg { width: 15px; height: 15px; color: var(--red); }
.filter-card__reset { font-size: .72rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .08em; }
.filter-card__reset:hover { text-decoration: underline; }
.filter-card__body { padding: 1.1rem 1.15rem; }
.filter-card__head .chev {
  width: 16px; height: 16px; color: var(--ink-400); flex: none;
  transition: transform var(--t-fast) var(--ease);
  display: none;
}
.filter-card--collapse.is-open .filter-card__head .chev { transform: rotate(180deg); }
.filter-group + .filter-group { margin-top: 1.15rem; padding-top: 1.15rem; border-top: 1px solid var(--hairline); }
.filter-group__label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: .75rem;
  display: flex;
  justify-content: space-between;
}
.filter-group__options { display: flex; flex-direction: column; gap: .55rem; }
.filter-count { color: var(--ink-400); font-variant-numeric: tabular-nums; }
.range-row { display: flex; align-items: center; gap: .6rem; }
.range-row .input { padding: .55rem .7rem; font-size: .85rem; text-align: center; }

/* Search bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: #fff;
  border: 1.5px solid var(--hairline);
  border-radius: var(--r-md);
  padding: .25rem .25rem .25rem 1rem;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.search-bar:focus-within { border-color: var(--navy); box-shadow: var(--ring); }
.search-bar__icon { width: 18px; height: 18px; color: var(--ink-400); flex: none; }
.search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  padding: .8rem 0;
  font-size: .95rem;
}
.search-bar input::placeholder { color: var(--ink-400); }
.search-bar .btn { flex: none; }
.search-bar--lg { padding: .35rem .35rem .35rem 1.25rem; border-radius: var(--r-badge-sm); }
.search-bar--lg input { padding: 1rem 0; font-size: 1rem; }
.search-bar--lg .search-bar__icon { width: 20px; height: 20px; }
.search-bar--flush { border-radius: var(--r-md) 0 0 var(--r-md); border-right: 0; }
.search-bar--onnavy { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); }
.search-bar--onnavy input { color: #fff; }
.search-bar--onnavy input::placeholder { color: rgba(255,255,255,.6); }
.search-bar--onnavy .search-bar__icon { color: rgba(255,255,255,.7); }

/* Chip filters */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .95rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--hairline);
  background: #fff;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active,
.chip[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85);
}
.chip.is-active .chip__x { opacity: .8; }
.chip__x { width: 13px; height: 13px; opacity: .5; }
.chip--red.is-active, .chip--red[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.chip--ghost { background: var(--surface); border-color: transparent; }
.chip__count { font-variant-numeric: tabular-nums; opacity: .6; font-size: .75rem; }

/* Directory toolbar */
.dir-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}
.dir-toolbar__count { font-size: .9rem; color: var(--text-muted); }
.dir-toolbar__count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.dir-toolbar__right { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

/* Result card */
.result-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: center;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-badge-sm);
  padding: clamp(1rem, 2vw, 1.35rem);
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.result-card:hover { border-color: rgba(7,48,124,.4); box-shadow: var(--sh-md); transform: translateY(-2px); }
.result-card__photo {
  width: 96px; height: 96px;
  border-radius: var(--r-badge-sm);
  overflow: hidden;
  position: relative;
  background: var(--navy);
  box-shadow: inset 0 0 0 2.5px #fff, 0 0 0 1.5px var(--navy);
  flex: none;
}
.result-card__photo svg { width: 100%; height: 100%; }
.result-card__flag {
  position: absolute;
  top: 6px; left: 6px;
  z-index: 2;
}
.result-card__head { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin-bottom: .3rem; }
.result-card__name { font-size: 1.12rem; letter-spacing: -.01em; }
.verified {
  display: inline-grid;
  place-items: center;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  flex: none;
  box-shadow: 0 0 0 2px #fff;
}
.verified svg { width: 11px; height: 11px; }
.verified--red { background: var(--red); }
.result-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .9rem;
  font-size: .84rem;
  color: var(--text-subtle);
  margin-bottom: .7rem;
}
.result-card__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.result-card__meta svg { width: 14px; height: 14px; opacity: .7; }
.result-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.result-card__rating { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; font-weight: 700; color: var(--ink); }
.result-card__rating svg { width: 15px; height: 15px; color: var(--star); }
.result-card__rating span { font-weight: 500; color: var(--text-subtle); }
.result-card__actions { display: flex; flex-direction: column; gap: .55rem; align-items: stretch; min-width: 148px; }
.result-card__price {
  font-size: .78rem;
  color: var(--text-subtle);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.result-card__price b { color: var(--navy); font-size: .95rem; }
.result-card--featured { border-color: rgba(190,16,40,.4); }
.result-card--featured::before {
  content: "";
  position: absolute;
}
.results-list { display: flex; flex-direction: column; gap: 1rem; }

/* Map placeholder */
.map {
  position: relative;
  min-height: 300px;
  border-radius: var(--r-badge-sm);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background-color: #EAEEF7;
  background-image:
    linear-gradient(rgba(7,48,124,.07) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(7,48,124,.07) 1.5px, transparent 1.5px),
    linear-gradient(rgba(7,48,124,.045) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(7,48,124,.045) 1.5px, transparent 1.5px);
  background-size: 96px 96px, 96px 96px, 32px 32px, 32px 32px;
}
.map::before {
  content: "";
  position: absolute;
  left: -10%; right: -10%;
  top: 44%;
  height: 26px;
  background: rgba(255,255,255,.9);
  transform: rotate(-7deg);
  box-shadow: 0 0 0 1px rgba(7,48,124,.12);
}
.map::after {
  content: "";
  position: absolute;
  top: -10%; bottom: -10%;
  left: 62%;
  width: 20px;
  background: rgba(255,255,255,.9);
  transform: rotate(9deg);
  box-shadow: 0 0 0 1px rgba(7,48,124,.12);
}
.map__pin {
  position: absolute;
  z-index: 3;
  width: 34px; height: 34px;
  border-radius: 50% 50% 50% 4px;
  background: var(--red);
  transform: rotate(-45deg);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px -4px rgba(139,11,28,.6), 0 0 0 3px #fff;
}
.map__pin svg { width: 15px; height: 15px; color: #fff; transform: rotate(45deg); }
.map__pin--navy { background: var(--navy); box-shadow: 0 6px 14px -4px rgba(7,48,124,.6), 0 0 0 3px #fff; }
.map__pin::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid currentColor;
  color: inherit;
  opacity: .35;
  animation: pulse 2.4s ease-out infinite;
}
.map__card {
  position: absolute;
  z-index: 4;
  left: 1rem; bottom: 1rem;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: .7rem .9rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .8rem;
  max-width: calc(100% - 2rem);
}
.map__card img, .map__card svg { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.map__card b { display: block; font-size: .85rem; color: var(--ink); }
.map__card span { color: var(--text-subtle); font-size: .75rem; }
.map__legend {
  position: absolute;
  z-index: 4;
  right: 1rem; top: 1rem;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: .55rem .8rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  display: flex;
  gap: .75rem;
  align-items: center;
}
.map__legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; }
.map--tall { min-height: 420px; }

/* ==========================================================================
   07 · STORE COMPONENTS
   ========================================================================== */

/* Category grid */
.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 1rem;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-badge-sm);
  text-align: center;
  overflow: hidden;
  transition: all var(--t-base) var(--ease);
}
.category-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0 50%, var(--red) 50% 100%);
  transform: scaleX(0);
  transition: transform var(--t-slow) var(--ease-out);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: transparent; }
.category-card:hover::after { transform: scaleX(1); }
.category-card__icon {
  width: 62px; height: 62px;
  border-radius: var(--r-badge-sm);
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--hairline);
  transition: all var(--t-base) var(--ease);
}
.category-card__icon svg { width: 28px; height: 28px; }
.category-card:hover .category-card__icon {
  background: linear-gradient(140deg, var(--navy), var(--navy-deep));
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.9), var(--sh-sm);
}
.category-card__name { font-size: .95rem; }
.category-card__count { font-size: .74rem; color: var(--text-subtle); font-variant-numeric: tabular-nums; }

/* Product card */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-badge-sm);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: transparent; }
.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(120% 90% at 50% 15%, #FFFFFF 0%, var(--surface) 70%, #E9EEF9 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.product-card__media svg.product-art { width: 74%; height: 74%; transition: transform var(--t-slow) var(--ease-out); }
.product-card:hover .product-card__media svg.product-art { transform: scale(1.06) rotate(-2deg); }
.product-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}
.product-card:hover .product-card__img { transform: scale(1.04); }
.product-card__badges { position: absolute; top: .75rem; left: .75rem; display: flex; flex-direction: column; gap: .35rem; z-index: 2; align-items: flex-start; }
.product-card__wish {
  position: absolute;
  top: .7rem; right: .7rem;
  z-index: 2;
  width: 34px; height: 34px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.92);
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  color: var(--ink-600);
  transition: all var(--t-fast) var(--ease);
}
.product-card__wish svg { width: 16px; height: 16px; }
.product-card__wish:hover { color: var(--red); border-color: var(--red); }
.product-card__wish.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.product-card__body { padding: 1.05rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product-card__brand { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-subtle); }
.product-card__name { font-size: .98rem; line-height: 1.35; font-weight: 700; font-family: var(--font-body); text-transform: none; letter-spacing: 0; }
.product-card__name a { transition: color var(--t-fast); }
.product-card__name a:hover { color: var(--navy); }
.product-card__rating { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--text-subtle); }
.product-card__stars { display: inline-flex; gap: 1px; color: var(--star); }
.product-card__stars svg { width: 13px; height: 13px; }
.product-card__price { display: flex; align-items: baseline; gap: .55rem; margin-top: .15rem; }
.product-card__price b {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.product-card__price del { font-size: .82rem; color: var(--text-subtle); font-variant-numeric: tabular-nums; }
.product-card__foot { margin-top: auto; padding-top: .75rem; display: flex; gap: .5rem; align-items: center; }
.product-card__foot .btn { flex: 1; }
.stock {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .3em .6em;
  border-radius: var(--r-sm);
}
.stock--in { background: var(--success-bg); color: var(--success); }
.stock--low { background: var(--warning-bg); color: var(--warning); }
.stock--out { background: var(--danger-bg); color: var(--danger); }
.stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: .85rem; }
.gallery__thumbs { display: flex; flex-direction: column; gap: .7rem; }
.gallery__thumb {
  aspect-ratio: 1;
  border-radius: var(--r-md);
  border: 1.5px solid var(--hairline);
  background: var(--surface);
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  padding: 8%;
}
.gallery__thumb svg { width: 100%; height: 100%; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.gallery__thumb:hover { border-color: var(--navy); }
.gallery__thumb.is-active { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(7,48,124,.18); }
.gallery__stage {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-badge-sm);
  border: 1px solid var(--hairline);
  background: radial-gradient(120% 90% at 50% 15%, #fff 0%, var(--surface) 75%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.gallery__stage svg { width: 68%; height: 68%; }
.gallery__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.gallery__zoom {
  position: absolute;
  right: .85rem; bottom: .85rem;
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  color: var(--ink-700);
  box-shadow: var(--sh-sm);
}
.gallery__zoom:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.gallery__zoom svg { width: 16px; height: 16px; }

/* Quantity stepper */
.qty {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--hairline);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
}
.qty__btn {
  width: 40px;
  display: grid;
  place-items: center;
  color: var(--ink-700);
  font-size: 1.05rem;
  line-height: 1;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.qty__btn svg { width: 14px; height: 14px; }
.qty__btn:hover { background: var(--surface); color: var(--red); }
.qty__btn:disabled { opacity: .35; pointer-events: none; }
.qty__input {
  width: 48px;
  border: 0;
  border-inline: 1.5px solid var(--hairline);
  outline: 0;
  text-align: center;
  font-weight: 700;
  font-size: .92rem;
  font-variant-numeric: tabular-nums;
  background: #fff;
  padding: .6rem 0;
  -moz-appearance: textfield;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty:focus-within { border-color: var(--navy); box-shadow: var(--ring); }
.qty--lg .qty__btn { width: 48px; }
.qty--lg .qty__input { width: 58px; font-size: 1rem; padding: .8rem 0; }

/* Cart table wrapper */
.cart-table-wrap {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-badge-sm);
  overflow: hidden;
}
.cart-table-wrap .table th { background: var(--surface); }
.cart-item__cell { display: flex; align-items: center; gap: .9rem; }
.cart-item__thumb {
  width: 62px; height: 62px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  flex: none;
  padding: 7%;
}
.cart-item__thumb svg { width: 100%; height: 100%; }
.cart-item__name { font-weight: 700; font-size: .92rem; color: var(--ink); }
.cart-item__sku { font-size: .75rem; color: var(--text-subtle); font-variant-numeric: tabular-nums; }
.icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: #fff;
  border: 1.5px solid var(--hairline);
  color: var(--ink-600);
  transition: all var(--t-fast) var(--ease);
  flex: none;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { border-color: var(--red); color: var(--red); background: var(--danger-bg); }
.icon-btn--plain { border-color: transparent; background: transparent; }
.icon-btn--plain:hover { background: var(--surface); border-color: transparent; color: var(--navy); }

/* Order summary */
.summary-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-badge-sm);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.summary-card__head {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.summary-card__body { padding: 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .85rem; }
.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: .9rem;
  color: var(--text-muted);
  position: relative;
}
.summary-row b, .summary-row .num { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.summary-row--total {
  padding-top: .95rem;
  margin-top: .35rem;
  border-top: 2px solid var(--ink);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.summary-row--total .num {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--navy);
  letter-spacing: -.02em;
}
.summary-card__foot { padding: 1.15rem 1.25rem; background: var(--surface); border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: .7rem; }
.promo-row { display: flex; gap: .5rem; }
.promo-row .input { flex: 1; }

/* Checkout step indicator — reuses .stepper, plus a card shell */
.checkout-steps {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-badge-sm);
  padding: 1.15rem clamp(1rem, 3vw, 1.75rem);
}

/* Order status timeline uses .timeline */

/* ==========================================================================
   08 · DASHBOARD SHELL (.app)
   Fixed sidebar + sticky topbar + content area.
   Role modifiers recolour the accent only — structure never changes.
   ========================================================================== */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
  background: var(--surface);
}

.app--customer { --app-side: #07307C; --app-side-deep: #041E4C; --app-accent: #E23A4B; --app-accent-soft: rgba(226,58,75,.28); }
.app--barber   { --app-side: #BE1028; --app-side-deep: #8A0B1C; --app-accent: #FFFFFF; --app-accent-soft: rgba(255,255,255,.30); --app-tint: rgba(255,255,255,.16); --app-hair: rgba(255,255,255,.24); }
.app--admin    { --app-side: #0B1220; --app-side-deep: #060A13; --app-accent: #E23A4B; --app-accent-soft: rgba(226,58,75,.30); --app-tint: rgba(255,255,255,.08); --app-hair: rgba(255,255,255,.11); }

/* --- Sidebar ---------------------------------------------------------------- */
.app__sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--app-side) 0%, var(--app-side-deep) 100%);
  color: rgba(255,255,255,.82);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 60;
}
.app__sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-color: transparent; }

.app__brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--app-hair);
  flex: none;
}
.app__brand img {
  width: 40px; height: 40px;
  border-radius: 11px;
  object-fit: cover;
  background: var(--ink);
  box-shadow: 0 0 0 2px rgba(255,255,255,.92);
  flex: none;
}
.app__brand-text { line-height: 1.15; min-width: 0; }
.app__brand-name {
  font-family: var(--font-display);
  font-size: .92rem;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: -.005em;
}
.app__brand-role {
  display: block;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-top: .18rem;
}
.app__brand-badge {
  margin-left: auto;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3em .5em;
  border-radius: 5px;
  background: rgba(255,255,255,.16);
  color: #fff;
  flex: none;
}

.app__nav { flex: 1; padding-bottom: 1.5rem; }
.app-nav__label {
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  padding: 1.35rem 1.35rem .55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-nav__label button {
  color: rgba(255,255,255,.5);
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 4px;
}
.app-nav__label button:hover { background: rgba(255,255,255,.14); color: #fff; }
.app-nav__label svg { width: 11px; height: 11px; transition: transform var(--t-base) var(--ease); }
.app-nav__group.is-collapsed .app-nav__label svg { transform: rotate(-90deg); }
.app-nav__group.is-collapsed .app-nav__items { display: none; }

.app-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .66rem 1.35rem;
  font-size: .885rem;
  font-weight: 500;
  color: rgba(255,255,255,.78);
  border-left: 3px solid transparent;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.app-nav__link svg { width: 17px; height: 17px; opacity: .75; flex: none; }
.app-nav__link:hover { background: rgba(255,255,255,.08); color: #fff; }
.app-nav__link:hover svg { opacity: 1; }
.app-nav__link.is-active,
.app-nav__link[aria-current="page"] {
  background: var(--app-tint);
  color: #fff;
  font-weight: 700;
  border-left-color: var(--app-accent);
}
.app-nav__link.is-active svg { opacity: 1; }
.app-nav__link.is-active::after {
  content: "";
  position: absolute;
  right: 1rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--app-accent);
}
.app-nav__count {
  margin-left: auto;
  font-size: .68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: .18em .5em;
  border-radius: var(--r-pill);
  background: var(--app-accent);
  color: #fff;
}
.app--barber .app-nav__count { background: rgba(255,255,255,.24); }
.app-nav__link.is-active .app-nav__count { background: var(--app-accent); color: #fff; }
.app--customer .app-nav__count, .app--admin .app-nav__count { background: var(--red); }

.app__side-foot {
  flex: none;
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--app-hair);
  background: rgba(0,0,0,.14);
}
.app__side-user { display: flex; align-items: center; gap: .7rem; }
.app__side-user .avatar { box-shadow: inset 0 0 0 2px rgba(255,255,255,.95), 0 0 0 1.5px rgba(255,255,255,.4); }
.app__side-user b { display: block; font-size: .85rem; color: #fff; font-weight: 700; line-height: 1.3; }
.app__side-user span { font-size: .72rem; color: rgba(255,255,255,.62); }

/* --- Topbar ------------------------------------------------------------------ */
.app__body { display: flex; flex-direction: column; min-width: 0; }
.app__topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: .85rem;
  padding-inline: clamp(1rem, 2.5vw, 1.75rem);
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.app__burger {
  display: none;
  width: 40px; height: 40px;
  border: 1.5px solid var(--hairline);
  border-radius: var(--r-md);
  background: #fff;
  place-items: center;
  flex: none;
}
.app__burger .burger__bars { width: 16px; }
.app__burger .burger__bars::before, .app__burger .burger__bars::after { width: 16px; }

.app__search { flex: 1; max-width: 430px; }
.app__search .search-bar { background: var(--surface); border-color: transparent; padding-left: .85rem; }
.app__search .search-bar:focus-within { background: #fff; border-color: var(--navy); }
.app__search .search-bar input { padding: .62rem 0; font-size: .885rem; }
.app__search .search-bar__kbd {
  font-size: .65rem;
  font-weight: 700;
  color: var(--text-subtle);
  border: 1px solid var(--hairline);
  background: #fff;
  border-radius: 5px;
  padding: .2em .45em;
  letter-spacing: .04em;
}

.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.topbar__btn {
  position: relative;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--hairline);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--ink-600);
  transition: all var(--t-fast) var(--ease);
}
.topbar__btn svg { width: 18px; height: 18px; }
.topbar__btn:hover { border-color: var(--navy); color: var(--navy); background: var(--surface); }
.topbar__dot {
  position: absolute;
  top: 6px; right: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 2px #fff;
}
.topbar__divider { width: 1px; height: 28px; background: var(--hairline); margin-inline: .35rem; }

.topbar__user {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .3rem .55rem .3rem .3rem;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  transition: all var(--t-fast) var(--ease);
}
.topbar__user:hover { background: var(--surface); border-color: var(--hairline); }
.topbar__user b { font-size: .85rem; font-weight: 700; color: var(--ink); line-height: 1.2; display: block; }
.topbar__user span { font-size: .7rem; color: var(--text-subtle); display: block; }
.topbar__user svg { width: 13px; height: 13px; color: var(--ink-400); }

/* Avatar dropdown */
.avatar-menu { position: relative; }
.avatar-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-badge-sm);
  box-shadow: var(--sh-lg);
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), visibility var(--t-base);
  z-index: 70;
}
.avatar-menu:hover .avatar-menu__panel,
.avatar-menu:focus-within .avatar-menu__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.avatar-menu__head { padding: .7rem .8rem .6rem; border-bottom: 1px solid var(--hairline); margin-bottom: .4rem; }
.avatar-menu__head b { display: block; font-size: .9rem; color: var(--ink); }
.avatar-menu__head span { font-size: .76rem; color: var(--text-subtle); word-break: break-all; }
.avatar-menu__link {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem .8rem;
  border-radius: var(--r-md);
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-700);
}
.avatar-menu__link svg { width: 16px; height: 16px; color: var(--ink-400); }
.avatar-menu__link:hover { background: var(--surface); color: var(--navy); }
.avatar-menu__link:hover svg { color: var(--navy); }
.avatar-menu__link.is-danger:hover { background: var(--danger-bg); color: var(--red); }
.avatar-menu__link.is-danger:hover svg { color: var(--red); }
.avatar-menu__sep { height: 1px; background: var(--hairline); margin: .4rem .3rem; }

/* --- Content area ------------------------------------------------------------- */
.app__main {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  min-width: 0;
  flex: 1;
}
.app__scrim {
  position: fixed;
  inset: 0;
  background: rgba(11,18,32,.5);
  z-index: 55;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) var(--ease), visibility var(--t-base);
}

/* Page header used inside dashboards */
.app-page__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.15rem, 2.5vw, 1.75rem);
}
.app-page__title { font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -.02em; }
.app-page__sub { font-size: .9rem; color: var(--text-muted); margin-top: .35rem; }
.app-page__actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* KPI grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: clamp(.85rem, 1.8vw, 1.15rem);
  margin-bottom: clamp(1.15rem, 2.5vw, 1.6rem);
}

/* ==========================================================================
   09 · DATA COMPONENTS
   ========================================================================== */

/* --- Stat cards ---------------------------------------------------------------- */
.stat {
  position: relative;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-badge-sm);
  padding: 1.1rem 1.2rem 1.15rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-width: 0;
}
.stat::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--navy) 0 55%, var(--red) 55% 100%);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
.stat:hover::before { opacity: 1; }
.stat__label {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.stat__icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--navy);
}
.stat__icon svg { width: 16px; height: 16px; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  line-height: 1.05;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
}
.stat__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.stat__delta {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .76rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: .22em .5em;
  border-radius: var(--r-sm);
}
.stat__delta--up   { background: var(--success-bg); color: var(--success); }
.stat__delta--down { background: var(--danger-bg);  color: var(--danger); }
.stat__delta--flat { background: var(--surface);    color: var(--text-subtle); }
.stat__delta svg { width: 11px; height: 11px; }
.stat__hint { font-size: .74rem; color: var(--text-subtle); }

.stat__spark { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin-top: .15rem; }
.stat__spark i {
  flex: 1;
  background: var(--navy);
  opacity: .22;
  border-radius: 2px 2px 0 0;
  min-height: 3px;
  transition: opacity var(--t-base) var(--ease);
}
.stat__spark i:last-child { background: var(--red); opacity: 1; }
.stat:hover .stat__spark i { opacity: .4; }
.stat:hover .stat__spark i:last-child { opacity: 1; }

.stat--navy { background: linear-gradient(150deg, var(--navy), var(--navy-deep)); border-color: var(--navy-deep); }
.stat--navy .stat__value { color: #fff; }
.stat--navy .stat__label { color: rgba(255,255,255,.66); }
.stat--navy .stat__icon { background: rgba(255,255,255,.14); color: #fff; }
.stat--navy .stat__hint { color: rgba(255,255,255,.6); }
.stat--navy .stat__spark i { background: #fff; }

/* --- Tables --------------------------------------------------------------------- */
.table-wrap {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-badge-sm);
  overflow: auto;
  max-height: none;
}
.table-wrap--scroll { max-height: 560px; }
.table { width: 100%; font-size: .885rem; }
.table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  text-align: left;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding: .85rem 1.05rem;
  border-bottom: 1.5px solid var(--hairline);
  white-space: nowrap;
}
.table td {
  padding: .9rem 1.05rem;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
  color: var(--ink-700);
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:nth-child(even) { background: #FAFBFE; }
.table tbody tr { transition: background-color var(--t-fast) var(--ease); }
.table tbody tr:hover { background: rgba(7,48,124,.045); }
.table td strong, .table td b { color: var(--ink); }
.table .num, .table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.table th.num, .table th.is-num { text-align: right; }
.table .is-check { width: 46px; }
.table--compact th { padding: .7rem .85rem; }
.table--compact td { padding: .6rem .85rem; font-size: .85rem; }
.table--rows-bordered tbody tr { border-bottom: 1px solid var(--hairline); }
.table tfoot td {
  background: var(--surface);
  font-weight: 700;
  color: var(--ink);
  border-top: 2px solid var(--ink);
}
.table__cell-main { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.table__cell-main .avatar { box-shadow: inset 0 0 0 1.5px #fff, 0 0 0 1px var(--navy); }
.table__cell-main b { display: block; color: var(--ink); font-size: .9rem; line-height: 1.3; }
.table__cell-main span { display: block; font-size: .75rem; color: var(--text-subtle); }
.table__actions { display: flex; gap: .35rem; justify-content: flex-end; }
.table__link { color: var(--navy); font-weight: 600; }
.table__link:hover { color: var(--red); text-decoration: underline; }
.table-scroll-note { font-size: .75rem; color: var(--text-subtle); margin-top: .5rem; }

/* --- Status badges ---------------------------------------------------------------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .4em .7em;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  line-height: 1.25;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.status--issued    { background: var(--info-bg);    color: var(--info);    border-color: rgba(10,58,160,.22); }
.status--active    { background: var(--success-bg); color: var(--success); border-color: rgba(15,122,74,.22); }
.status--redeemed  { background: #E9EDFB;           color: var(--navy);    border-color: rgba(7,48,124,.22); }
.status--expired   { background: var(--ink-100);    color: var(--ink-500); border-color: rgba(95,106,133,.25); }
.status--paid      { background: var(--success-bg); color: var(--success); border-color: rgba(15,122,74,.22); }
.status--pending   { background: var(--warning-bg); color: var(--warning); border-color: rgba(138,91,0,.22); }
.status--failed    { background: var(--danger-bg);  color: var(--danger);  border-color: rgba(190,16,40,.25); }
.status--approved  { background: var(--success-bg); color: var(--success); border-color: rgba(15,122,74,.22); }
.status--suspended { background: var(--danger-bg);  color: var(--red-deep);border-color: rgba(138,11,28,.28); }
.status--verified  { background: var(--info-bg);    color: var(--info);    border-color: rgba(10,58,160,.22); }
.status--draft     { background: var(--ink-100);    color: var(--ink-600); border-color: rgba(74,85,112,.22); }
.status--cancelled { background: var(--ink-100);    color: var(--ink-500); border-color: rgba(95,106,133,.25); }
.status--shipped   { background: var(--info-bg);    color: var(--info);    border-color: rgba(10,58,160,.22); }
.status--delivered { background: var(--success-bg); color: var(--success); border-color: rgba(15,122,74,.22); }
.status--processing{ background: var(--warning-bg); color: var(--warning); border-color: rgba(138,91,0,.22); }
.status--refunded  { background: var(--ink-100);    color: var(--ink-600); border-color: rgba(74,85,112,.22); }

.status--released        { background: var(--success-bg); color: var(--success); border-color: rgba(15,122,74,.22); }
.status--pending_approval{ background: var(--warning-bg); color: var(--warning); border-color: rgba(138,91,0,.22); }
.status--scheduled       { background: var(--info-bg);    color: var(--info);    border-color: rgba(10,58,160,.22); }
.status--open            { background: var(--warning-bg); color: var(--warning); border-color: rgba(138,91,0,.22); }
.status--published       { background: var(--success-bg); color: var(--success); border-color: rgba(15,122,74,.22); }
.status--success         { background: var(--success-bg); color: var(--success); border-color: rgba(15,122,74,.22); }
.status--restricted      { background: var(--danger-bg);  color: var(--danger);  border-color: rgba(190,16,40,.25); }
.status--current         { background: var(--success-bg); color: var(--success); border-color: rgba(15,122,74,.22); }
.status--in_review       { background: var(--info-bg);    color: var(--info);    border-color: rgba(10,58,160,.22); }
.status--info_requested  { background: var(--warning-bg); color: var(--warning); border-color: rgba(138,91,0,.22); }
.status--rejected        { background: var(--danger-bg);  color: var(--danger);  border-color: rgba(190,16,40,.25); }
.status--urgent          { background: var(--danger-bg);  color: var(--danger);  border-color: rgba(190,16,40,.25); }
.status--high            { background: var(--warning-bg); color: var(--warning); border-color: rgba(138,91,0,.22); }
.status--normal          { background: var(--info-bg);    color: var(--info);    border-color: rgba(10,58,160,.22); }
.status--low             { background: var(--warning-bg); color: var(--warning); border-color: rgba(138,91,0,.22); }
.status--in_stock        { background: var(--success-bg); color: var(--success); border-color: rgba(15,122,74,.22); }
.status--behind          { background: var(--danger-bg);  color: var(--danger);  border-color: rgba(190,16,40,.25); }
.status--due             { background: var(--warning-bg); color: var(--warning); border-color: rgba(138,91,0,.22); }

.status--dot-off::before { display: none; }
.status--lg { font-size: .74rem; padding: .5em .85em; }
.status--pill { border-radius: var(--r-pill); }

.status-on-dark.status--issued, .status-on-dark.status--verified,
.status-on-dark.status--redeemed, .status-on-dark.status--shipped {
  background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3);
}

/* --- Forms ------------------------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: .42rem; margin-bottom: 1.15rem; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field__label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink-800);
  display: flex;
  align-items: center;
  gap: .35rem;
}
.field__req { color: var(--red); font-weight: 700; }
.field__optional { color: var(--text-subtle); font-weight: 500; font-size: .75rem; margin-left: auto; text-transform: uppercase; letter-spacing: .07em; }
.field__hint { font-size: .76rem; color: var(--text-subtle); line-height: 1.5; }
.field__error {
  font-size: .78rem;
  font-weight: 600;
  color: var(--red);
  display: none;
  align-items: center;
  gap: .35rem;
}
.field__error svg { width: 13px; height: 13px; }
.field.has-error .field__error { display: flex; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--red); background: #FFF8F9; }

.input, .select, .textarea {
  width: 100%;
  padding: .78rem .95rem;
  border: 1.5px solid var(--hairline);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  font-size: .9375rem;
  line-height: 1.45;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-300); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: var(--ring);
}
.input:disabled, .select:disabled, .textarea:disabled {
  background: var(--surface);
  color: var(--text-subtle);
  cursor: not-allowed;
}
.input[readonly] { background: var(--surface); }

.select {
  appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5570' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 15px;
  cursor: pointer;
}
.textarea { min-height: 118px; resize: vertical; font-family: inherit; }

.input--lg, .select--lg, .textarea--lg { padding: 1rem 1.1rem; font-size: 1rem; border-radius: var(--r-md); }
.input--sm, .select--sm { padding: .5rem .7rem; font-size: .85rem; }
.input--pill { border-radius: var(--r-pill); padding-inline: 1.15rem; }

/* Input group (prefix / addon) */
.input-group { display: flex; align-items: stretch; width: 100%; }
.input-group .input { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-group .select { border-radius: 0 var(--r-sm) var(--r-sm) 0; min-width: 118px; }
.input-group__addon {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: 0 .9rem;
  background: var(--surface);
  border: 1.5px solid var(--hairline);
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
}
.input-group__addon--left {
  border-right: 0;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
}
.input-group__addon--right {
  border-left: 0;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.input-group__addon svg { width: 16px; height: 16px; color: var(--ink-400); }
.input-group--onfocus:focus-within .input-group__addon { background: #fff; border-color: var(--navy); color: var(--navy); }
.input-group .input:focus { position: relative; z-index: 1; }

/* Checkbox / radio */
.check, .radio {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .9rem;
  color: var(--ink-700);
  cursor: pointer;
  line-height: 1.5;
}
.check input, .radio input {
  appearance: none;
  -webkit-appearance: none;
  width: 19px; height: 19px;
  flex: none;
  margin-top: .12rem;
  border: 1.5px solid var(--ink-300);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast);
}
.check input { border-radius: 5px; }
.radio input { border-radius: 50%; }
.check input:hover, .radio input:hover { border-color: var(--navy); }
.check input:checked, .radio input:checked {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: inset 0 0 0 2px #fff;
}
.check input:checked::after {
  content: "";
  width: 10px; height: 5px;
  border-left: 2.2px solid #fff;
  border-bottom: 2.2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.radio input:checked::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
}
.check input:indeterminate {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: inset 0 0 0 2px #fff;
}
.check input:indeterminate::after {
  content: "";
  width: 10px; height: 2.2px;
  background: #fff;
  transform: none;
  border: 0;
}
.check input:disabled, .radio input:disabled { background: var(--surface); border-color: var(--hairline); cursor: not-allowed; }
.check:hover input:disabled ~ * { color: var(--text-subtle); }
.check__text b { display: block; color: var(--ink); font-weight: 600; font-size: .9rem; }
.check__text span { display: block; font-size: .78rem; color: var(--text-subtle); line-height: 1.5; }
.check--card {
  border: 1.5px solid var(--hairline);
  border-radius: var(--r-md);
  padding: .85rem 1rem;
  transition: all var(--t-fast) var(--ease);
  cursor: pointer;
}
.check--card:hover { border-color: var(--navy); background: rgba(7,48,124,.03); }
.check--card:has(input:checked) { border-color: var(--navy); background: rgba(7,48,124,.05); }

/* Switch */
.switch { display: inline-flex; align-items: center; gap: .75rem; cursor: pointer; font-size: .9rem; color: var(--ink-700); }
.switch input {
  appearance: none;
  -webkit-appearance: none;
  width: 44px; height: 25px;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--ink-300);
  position: relative;
  cursor: pointer;
  transition: background-color var(--t-base) var(--ease), box-shadow var(--t-fast);
}
.switch input::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--sh-xs);
  transition: transform var(--t-base) var(--ease-out);
}
.switch input:checked { background: var(--navy); }
.switch input:checked::after { transform: translateX(19px); }
.switch input:disabled { opacity: .5; cursor: not-allowed; }
.switch__text b { display: block; font-weight: 600; color: var(--ink); font-size: .9rem; }
.switch__text span { display: block; font-size: .78rem; color: var(--text-subtle); }
.switch--red input:checked { background: var(--red); }

/* Form layouts */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.15rem; }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: span 3; }
.form-actions {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 1.15rem;
  margin-top: .35rem;
  border-top: 1px solid var(--hairline);
}
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: .85rem;
  padding: 0;
}

/* --- Panel / card head-foot ---------------------------------------------------- */
.panel {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-badge-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: #FCFDFF;
  border-bottom: 1px solid var(--hairline);
}
.panel__title {
  font-family: var(--font-display);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--ink);
}
.panel__sub { font-size: .8rem; color: var(--text-subtle); margin-top: .2rem; font-family: var(--font-body); font-weight: 400; text-transform: none; letter-spacing: 0; }
.panel__actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.panel__body { padding: clamp(1.1rem, 2vw, 1.5rem); flex: 1; }
.panel__body--flush { padding: 0; }
.panel__foot {
  padding: .95rem 1.25rem;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.panel--navy { background: var(--navy); border-color: var(--navy-deep); color: var(--text-on-navy); }
.panel--navy .panel__head { background: rgba(0,0,0,.16); border-bottom-color: rgba(255,255,255,.14); }
.panel--navy .panel__title { color: #fff; }
.panel--navy .panel__sub { color: rgba(255,255,255,.66); }

/* --- List rows ------------------------------------------------------------------- */
.list { display: flex; flex-direction: column; }
.list-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .95rem 1.25rem;
  border-bottom: 1px solid var(--hairline);
  transition: background-color var(--t-fast) var(--ease);
}
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--ink-50); }
.list-row__icon {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--navy);
  flex: none;
}
.list-row__icon svg { width: 18px; height: 18px; }
.list-row__icon--red { background: var(--danger-bg); color: var(--red); }
.list-row__icon--navy { background: rgba(7,48,124,.09); color: var(--navy); }
.list-row__main { flex: 1; min-width: 0; }
.list-row__title {
  font-size: .925rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-row__sub { font-size: .78rem; color: var(--text-subtle); line-height: 1.5; }
.list-row__end { margin-left: auto; display: flex; align-items: center; gap: .75rem; flex: none; }
.list-row__amount { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.list--divided .list-row { padding-inline: 0; border-bottom-style: dashed; }
.list--flush .list-row { padding-inline: 0; }

/* --- Empty state ------------------------------------------------------------------ */
.empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: .7rem;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2rem);
}
.empty__art {
  width: 92px; height: 92px;
  border-radius: var(--r-badge);
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--navy);
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1.5px var(--hairline);
  margin-bottom: .5rem;
}
.empty__art svg { width: 40px; height: 40px; opacity: .75; }
.empty__title { font-size: 1.2rem; }
.empty__text { font-size: .9375rem; color: var(--text-muted); max-width: 46ch; line-height: 1.65; }
.empty__actions { margin-top: .75rem; display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }
.empty--sm { padding: 2rem 1rem; }
.empty--sm .empty__art { width: 66px; height: 66px; border-radius: var(--r-badge-sm); }
.empty--sm .empty__art svg { width: 28px; height: 28px; }

/* --- Progress ---------------------------------------------------------------------- */
.progress { display: flex; flex-direction: column; gap: .5rem; }
.progress__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: .8rem;
  color: var(--text-muted);
}
.progress__meta b { color: var(--ink); font-variant-numeric: tabular-nums; }
.progress__track {
  height: 9px;
  border-radius: var(--r-pill);
  background: var(--hairline);
  overflow: hidden;
  position: relative;
}
.progress__bar {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-light) 100%);
  transition: width var(--t-slow) var(--ease-out);
  position: relative;
}
.progress__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: shimmer 2.4s linear infinite;
}
.progress--red .progress__bar { background: linear-gradient(90deg, var(--red) 0%, var(--red-light) 100%); }
.progress--success .progress__bar { background: linear-gradient(90deg, var(--success), #17A76A); }
.progress--lg .progress__track { height: 14px; }
.progress--sm .progress__track { height: 6px; }
.progress--striped .progress__bar {
  background-image: linear-gradient(45deg, rgba(255,255,255,.22) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.22) 50%, rgba(255,255,255,.22) 75%, transparent 75%, transparent);
  background-size: 16px 16px;
}
.progress--centered { text-align: center; }
.progress__legend { display: flex; gap: 1.15rem; flex-wrap: wrap; font-size: .76rem; color: var(--text-subtle); }
.progress__legend span { display: inline-flex; align-items: center; gap: .4rem; }
.progress__legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--navy); display: inline-block; }

/* Radial progress */
.ring-progress { display: grid; place-items: center; position: relative; width: var(--ring-size, 128px); }
.ring-progress svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring-progress__track { stroke: var(--hairline); }
.ring-progress__bar { stroke: var(--navy); stroke-linecap: round; transition: stroke-dashoffset var(--t-slow) var(--ease-out); }
.ring-progress__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1.15;
}
.ring-progress__value { font-family: var(--font-display); font-size: 1.45rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.ring-progress__caption { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); }

/* --- Modal shell -------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  place-items: center;
  padding: 1.25rem;
}
.modal.is-open { display: grid; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11,18,32,.6);
  backdrop-filter: blur(3px);
  animation: fade-in var(--t-base) var(--ease);
}
.modal__dialog {
  position: relative;
  background: #fff;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: var(--r-badge-sm);
  box-shadow: var(--sh-lg);
  animation: pop-in var(--t-slow) var(--ease-out);
}
.modal__dialog::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--navy) 0 50%, var(--red) 50% 100%);
  z-index: 2;
}
.modal--sm .modal__dialog { width: min(420px, 100%); }
.modal--lg .modal__dialog { width: min(820px, 100%); }
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.5rem 1.1rem;
  border-bottom: 1px solid var(--hairline);
}
.modal__title { font-size: 1.15rem; }
.modal__sub { font-size: .875rem; color: var(--text-muted); margin-top: .35rem; }
.modal__close {
  width: 34px; height: 34px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  color: var(--ink-600);
  background: var(--surface);
  flex: none;
  transition: all var(--t-fast);
}
.modal__close svg { width: 15px; height: 15px; }
.modal__close:hover { background: var(--danger-bg); color: var(--red); }
.modal__body { padding: 1.4rem 1.5rem; }
.modal__foot {
  padding: 1.1rem 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
  flex-wrap: wrap;
}

/* --- Toast ------------------------------------------------------------------------- */
.toast-stack {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: .7rem;
  max-width: min(370px, calc(100vw - 2.5rem));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--navy);
  border-radius: var(--r-md);
  padding: .95rem 1.05rem;
  box-shadow: var(--sh-lg);
  animation: toast-in var(--t-slow) var(--ease-out);
}
.toast--success { border-left-color: var(--success); }
.toast--error   { border-left-color: var(--red); }
.toast--warning { border-left-color: var(--warning); }
.toast__icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--info-bg);
  color: var(--navy);
  flex: none;
}
.toast--success .toast__icon { background: var(--success-bg); color: var(--success); }
.toast--error .toast__icon { background: var(--danger-bg); color: var(--red); }
.toast--warning .toast__icon { background: var(--warning-bg); color: var(--warning); }
.toast__icon svg { width: 14px; height: 14px; }
.toast__main { flex: 1; min-width: 0; }
.toast__title { font-size: .875rem; font-weight: 700; color: var(--ink); }
.toast__text { font-size: .8rem; color: var(--text-muted); line-height: 1.5; margin-top: .15rem; }
.toast__close { color: var(--ink-400); flex: none; padding: 2px; }
.toast__close svg { width: 14px; height: 14px; }
.toast__close:hover { color: var(--red); }

/* --- Timeline ---------------------------------------------------------------------- */
.timeline { position: relative; padding-left: 1.85rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--hairline);
}
.timeline__item { position: relative; padding-bottom: 1.5rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.85rem;
  top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--ink-300);
  box-sizing: border-box;
}
.timeline__item.is-done::before { background: var(--navy); border-color: var(--navy); }
.timeline__item.is-current::before {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(190,16,40,.18);
}
.timeline__item.is-failed::before { background: var(--danger); border-color: var(--danger); }
.timeline__title {
  font-size: .925rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.timeline__time { font-size: .75rem; color: var(--text-subtle); font-weight: 500; font-variant-numeric: tabular-nums; }
.timeline__text { font-size: .85rem; color: var(--text-muted); line-height: 1.6; margin-top: .25rem; }
.timeline--compact .timeline__item { padding-bottom: 1.1rem; }
.timeline--right { padding-left: 0; padding-right: 1.85rem; }
.timeline--right::before { left: auto; right: 7px; }
.timeline--right .timeline__item::before { left: auto; right: -1.85rem; }
.timeline--right .timeline__title, .timeline--right .timeline__text { text-align: right; }

/* --- Ledger (money in / out) -------------------------------------------------------- */
.ledger {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-badge-sm);
  overflow: hidden;
}
.ledger__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.2rem;
  background: var(--surface);
  border-bottom: 1.5px solid var(--hairline);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  color: var(--text-subtle);
}
.ledger__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1.2rem;
  border-bottom: 1px dashed var(--hairline);
}
.ledger__row:last-child { border-bottom: 0; }
.ledger__main { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.ledger__marker {
  width: 34px; height: 34px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  flex: none;
  background: var(--surface);
  color: var(--ink-600);
}
.ledger__marker svg { width: 16px; height: 16px; }
.ledger__marker--in  { background: var(--success-bg); color: var(--success); }
.ledger__marker--out { background: var(--danger-bg); color: var(--red); }
.ledger__title { font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.ledger__meta { font-size: .75rem; color: var(--text-subtle); font-variant-numeric: tabular-nums; }
.ledger__amt {
  font-weight: 700;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
  flex: none;
}
.ledger__amt--in  { color: var(--success); }
.ledger__amt--out { color: var(--red); }
.ledger__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  background: #FCFDFF;
  border-top: 2px solid var(--ink);
  font-weight: 700;
}
.ledger__total .ledger__amt { font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); }

/* --- Misc data helpers --------------------------------------------------------------- */
.id-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: .25em .55em;
}
.id-chip:hover { border-color: var(--navy); color: var(--navy); }
.money { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.money--in { color: var(--success); }
.money--out { color: var(--red); }
.money--lg { font-size: 1.35rem; font-family: var(--font-display); letter-spacing: -.02em; }

.alert {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: .9rem;
  line-height: 1.6;
}
.alert__icon { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert__title { font-weight: 700; color: var(--ink); margin-bottom: .15rem; }
.alert--info    { background: var(--info-bg);    border-color: rgba(10,58,160,.2);  color: var(--ink-800); }
.alert--info .alert__icon { color: var(--info); }
.alert--success { background: var(--success-bg); border-color: rgba(15,122,74,.2);  color: var(--ink-800); }
.alert--success .alert__icon { color: var(--success); }
.alert--warning { background: var(--warning-bg); border-color: rgba(138,91,0,.2);   color: var(--ink-800); }
.alert--warning .alert__icon { color: var(--warning); }
.alert--danger  { background: var(--danger-bg);  border-color: rgba(190,16,40,.22); color: var(--ink-800); }
.alert--danger .alert__icon { color: var(--red); }

/* ==========================================================================
   10 · UTILITIES
   ========================================================================== */

/* --- Text colours -------------------------------------------------------- */
.text-navy    { color: var(--navy) !important; }
.text-red     { color: var(--red) !important; }
.text-ink     { color: var(--ink) !important; }
.text-muted   { color: var(--text-muted) !important; }
.text-subtle  { color: var(--text-subtle) !important; }
.text-white   { color: #fff !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger  { color: var(--danger) !important; }
.text-star    { color: var(--star) !important; }
.text-invert-soft { color: rgba(255,255,255,.72) !important; }

/* --- Backgrounds ---------------------------------------------------------- */
.bg-navy    { background: var(--navy) !important; }
.bg-red     { background: var(--red) !important; }
.bg-ink     { background: var(--ink) !important; }
.bg-surface { background: var(--surface) !important; }
.bg-white   { background: #fff !important; }
.bg-hairline{ background: var(--hairline) !important; }
.bg-split   { background: linear-gradient(103deg, var(--navy) 0 52%, var(--red) 52% 100%) !important; }

/* --- Display helpers ------------------------------------------------------- */
.flex        { display: flex; }
.inline-flex { display: inline-flex; }
.grid        { display: grid; }
.block       { display: block; }
.inline-block{ display: inline-block; }
.hidden      { display: none !important; }
.flex-col    { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.flex-1      { flex: 1 1 auto; min-width: 0; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.items-end     { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.self-start { align-self: flex-start; }
.self-end   { align-self: flex-end; }

.gap-1  { gap: var(--sp-1); }
.gap-2  { gap: var(--sp-2); }
.gap-3  { gap: var(--sp-3); }
.gap-4  { gap: var(--sp-4); }
.gap-5  { gap: var(--sp-5); }
.gap-6  { gap: var(--sp-6); }
.gap-8  { gap: var(--sp-8); }

/* --- Spacing --------------------------------------------------------------- */
.mt-0  { margin-top: 0 !important; }
.mt-1  { margin-top: var(--sp-1); }
.mt-2  { margin-top: var(--sp-2); }
.mt-3  { margin-top: var(--sp-3); }
.mt-4  { margin-top: var(--sp-4); }
.mt-5  { margin-top: var(--sp-5); }
.mt-6  { margin-top: var(--sp-6); }
.mt-8  { margin-top: var(--sp-8); }
.mt-10 { margin-top: var(--sp-10); }
.mt-12 { margin-top: var(--sp-12); }
.mb-0  { margin-bottom: 0 !important; }
.mb-2  { margin-bottom: var(--sp-2); }
.mb-3  { margin-bottom: var(--sp-3); }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-5  { margin-bottom: var(--sp-5); }
.mb-6  { margin-bottom: var(--sp-6); }
.mb-8  { margin-bottom: var(--sp-8); }
.mb-10 { margin-bottom: var(--sp-10); }
.ms-auto { margin-left: auto; }
.me-auto { margin-right: auto; }
.mx-auto { margin-inline: auto; }

.p-4  { padding: var(--sp-4); }
.p-5  { padding: var(--sp-5); }
.p-6  { padding: var(--sp-6); }
.p-8  { padding: var(--sp-8); }

/* --- Layout helpers --------------------------------------------------------- */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky   { position: sticky; top: 0; }
.overflow-hidden { overflow: hidden; }
.overflow-auto   { overflow: auto; }
.w-full  { width: 100%; }
.max-w-sm  { max-width: 46ch; }
.max-w-md  { max-width: 62ch; }
.max-w-lg  { max-width: 78ch; }
.max-w-xl  { max-width: 940px; }
.min-w-0   { min-width: 0; }
.aspect-square { aspect-ratio: 1; }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.uppercase   { text-transform: uppercase; }
.nowrap      { white-space: nowrap; }
.rounded-badge { border-radius: var(--r-badge); }
.rounded-md    { border-radius: var(--r-md); }
.rounded-sm    { border-radius: var(--r-sm); }
.rounded-full  { border-radius: var(--r-pill); }
.bordered    { border: 1px solid var(--hairline); }
.shadow-sm   { box-shadow: var(--sh-sm); }
.shadow-md   { box-shadow: var(--sh-md); }
.shadow-lg   { box-shadow: var(--sh-lg); }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sr-focusable:not(:focus) {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Visibility helpers — no display here: `display: initial` would override
   component rules (e.g. .header__phone's inline-flex) on the same element. */
.only-mobile { display: none; }
@media (max-width: 860px) {
  .hide-mobile { display: none !important; }
  .only-mobile { display: initial; }
}

/* Layout stacks that collapse nicely */
.stack-sm > * + * { margin-top: var(--sp-2); }
.stack    > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.split-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.split-2--top { align-items: start; }

/* ==========================================================================
   11 · MOTION
   ========================================================================== */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes pulse {
  0%   { transform: scale(.7); opacity: .7; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in {
  from { opacity: 0; transform: translateY(14px) scale(.975); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal — only armed when JS is present */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .62s var(--ease-out), transform .62s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

/* On-load stagger for hero content */
.js .stagger > * { animation: reveal-up .7s var(--ease-out) both; }
.js .stagger > *:nth-child(1) { animation-delay: 60ms; }
.js .stagger > *:nth-child(2) { animation-delay: 150ms; }
.js .stagger > *:nth-child(3) { animation-delay: 240ms; }
.js .stagger > *:nth-child(4) { animation-delay: 330ms; }
.js .stagger > *:nth-child(5) { animation-delay: 420ms; }
.js .stagger > *:nth-child(6) { animation-delay: 510ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   12 · RESPONSIVE
   ========================================================================== */

/* --- Tablet / small laptop -------------------------------------------------- */
/* Header is dense on a 1200px container: slim progressively so Join never clips. */

@media (max-width: 1600px) {
  .utility-bar__group:last-child .utility-bar__item { display: none; }
  .utility-bar__sep { display: none; }
}

@media (max-width: 1500px) {
  .header__inner { gap: var(--sp-4); }
  .nav__link { padding-inline: .55rem; }
  .header__actions { gap: .5rem; }
  .header__actions .btn--split { font-size: 0; padding-inline: 1.15em; }
  .header__actions .btn--split::before {
    content: "Join M.B.A";
    font-size: .875rem;
  }
  .nav__item:has(a[href="faq"]) { display: none; }
}

@media (max-width: 1400px) {
  .brand__tag { display: none; }
  .brand__logo { width: 40px; height: 40px; border-radius: 10px; }
  .brand__name { font-size: .95rem; }
  .nav__link { padding-inline: .45rem; font-size: .84rem; gap: .2rem; }
  .nav__caret { width: 9px; height: 9px; }
  .nav__item:has(a[href="savings"]) { display: none; }
}

@media (max-width: 1260px) {
  .header__signin { display: none; }
  .utility-bar__group:first-child .utility-bar__item:nth-child(n+3),
  .utility-bar__group:first-child .utility-bar__sep { display: none; }
  .nav__item:has(a[href="gift-vouchers"]) { display: none; }
  .nav__link { padding-inline: .55rem; font-size: .84rem; }
}

@media (max-width: 1140px) {
  .header__inner { gap: var(--sp-3); }
  .nav { gap: 0; }
  .nav__link { padding-inline: .4rem; font-size: .8rem; }
  .header__actions .btn--split::before { content: "Join"; }
  .header__actions .btn--split { padding-inline: .95em; }
  .brand__name { font-size: .88rem; }
}

@media (max-width: 1040px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

  /* --- The dashboard breaks here ---------------------------------------------- */
@media (max-width: 980px) {
  /* --- Navigation → drawer --- */
  .nav { display: none; }
  .burger { display: grid; }
  .header__actions,
  .nav + .header__actions { margin-left: auto; gap: .35rem; }
  /* Phone header: only Sign in + burger. Join/Register live in the drawer. */
  .header__actions .btn--primary,
  .header__actions .btn--outline,
  .header__actions .btn--split,
  .header__actions .header__phone { display: none !important; }
  .header__signin { display: inline-flex; }

  /* Utility bar: keep one short line only */
  .utility-bar__group:first-child { display: none; }
  .utility-bar__group:last-child { margin-left: 0; width: 100%; justify-content: center; }
  .utility-bar__link { font-size: .68rem; }

  /* --- Grids stack --- */
  .grid--4, .grid--5, .grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-2 { grid-template-columns: minmax(0, 1fr); }
  .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-band__item + .stat-band__item { border-left: 0; }
  .stat-band__item:nth-child(even) { border-left: 1px solid var(--hairline); }
  .stat-band__item:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .stats-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--sp-8); }
  .steps::before { display: none; }
  .form-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .span-3 { grid-column: span 2; }

  /* --- Hero --- */
  .hero__grid { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .hero__badge { background: linear-gradient(170deg, var(--navy) 0 74%, var(--red) 74% 100%); }
  .hero__art { padding-block: 1rem .5rem; }
  .crest { width: min(240px, 62%); }
  .chip-float--tl { left: 2%; }
  .chip-float--br { right: 2%; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 0; }
  .hero__stats .stat-strip__item:nth-child(n+3)::before { top: 0; }
  .hero__stats .stat-strip__item:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .hero__stats .stat-strip__item:nth-child(even)::before { display: block; }
  .hero__stats .stat-strip__item:nth-child(odd)::before { display: none; }

  /* --- Directory --- */
  .directory { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; }
  .filter-card--collapse .filter-card__body { display: none; }
  .filter-card--collapse.is-open .filter-card__body { display: block; }
  .filter-card__head { width: 100%; }
  .filter-card__head[data-filter-toggle] {
    cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  }
  .filter-card__head .chev { display: block; }
  .result-card { grid-template-columns: auto minmax(0, 1fr); }
  .result-card__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    min-width: 0;
  }
  .result-card__actions .btn { flex: 1; }
  .result-card__price { text-align: left; }

  /* --- Dashboard shell --- */
  .app { grid-template-columns: minmax(0, 1fr); }
  .app__sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(288px, 84vw);
    height: 100%;
    transform: translateX(-102%);
    transition: transform var(--t-slow) var(--ease-out);
    z-index: 120;
    box-shadow: var(--sh-lg);
  }
  .app.is-nav-open .app__sidebar { transform: translateX(0); }
  .app.is-nav-open .app__scrim { opacity: 1; visibility: visible; }
  .app__burger { display: grid; }
  .app__search { max-width: none; }
  .topbar__user b, .topbar__user span { display: none; }

  /* --- Tables stay usable --- */
  .table-wrap { border-radius: var(--r-md); }

  /* Store product grid stays 2-up through tablet */
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* --- Phone -------------------------------------------------------------------- */
@media (max-width: 640px) {
  :root {
    --header-h: 66px;
    --section-y: clamp(2.75rem, 9vw, 3.75rem);
  }

  .utility-bar__group:first-child .utility-bar__item:not(:first-child) { display: none; }
  .utility-bar__sep { display: none; }

  .brand__logo { width: 40px; height: 40px; border-radius: 11px; }
  .brand__name { font-size: .92rem; }
  .brand__tag { font-size: .56rem; letter-spacing: .14em; }

  /* Phones: never let nowrap text or wide cards blow out the viewport */
  .badge-label { white-space: normal; line-height: 1.4; text-align: left; }
  .btn { white-space: normal; }
  .pill, .tag, .chip { white-space: normal; }
  .feature-card--wide { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
  .feature-card--wide .feature-card__icon { margin-bottom: 0; }
  .cta-band__actions .btn { min-width: 0; flex: 1 1 100%; }

  .grid--2, .grid--3, .grid--4, .grid--5, .grid--6 { grid-template-columns: minmax(0, 1fr); }
  .grid--auto { grid-template-columns: minmax(0, 1fr); }
  .form-grid, .form-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span-2, .form-grid .span-3 { grid-column: span 1; }

  .stat-band, .stats-split { grid-template-columns: minmax(0, 1fr); }
  .stat-band__item:nth-child(even) { border-left: 0; }
  .stat-band__item + .stat-band__item { border-top: 1px solid var(--hairline); }
  .stats-split__item + .stats-split__item { border-top: 1px solid rgba(255,255,255,.22); }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: var(--sp-7); }
  .step { text-align: left; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: .35rem 1rem; align-items: start; }
  .step__num { width: 52px; height: 52px; margin: 0; grid-row: span 2; font-size: 1.2rem; }
  .step__text { margin-inline: 0; max-width: none; }

  .hero { padding-block: 1.5rem 3rem; }
  .hero__grid { padding: clamp(1.75rem, 7vw, 2.5rem); }
  .hero__badge::after { inset: 9px; }
  .hero__badge { background: linear-gradient(174deg, var(--navy) 0 68%, var(--red) 68% 100%); }
  .hero__title { font-size: clamp(2rem, 9vw, 2.7rem); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .crest { width: min(200px, 58%); transform: rotate(-2deg); }
  .chip-float { font-size: .7rem; padding: .5rem .65rem; }
  .chip-float svg { width: 18px; height: 18px; }
  .chip-float__icon { width: 26px; height: 26px; }
  .chip-float--tl { top: 2%; left: -1%; }
  .chip-float--br { bottom: 3%; right: -1%; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -24px; }
  .stat-strip__value { font-size: 1.45rem; }

  .trust-strip__row { justify-content: center; gap: 1.25rem 1.75rem; }
  .trust-logo { font-size: .92rem; }

  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-8); }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: .85rem; }
  .newsletter { flex-direction: column; }
  .newsletter .btn { width: 100%; }

  .cta-band { padding: clamp(1.75rem, 7vw, 2.5rem); border-radius: var(--r-badge-sm); }
  .cta-band::after { inset: 9px; border-radius: 10px; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1; min-width: 150px; }

  .voucher::before { display: none; }
  .price-card { border-radius: var(--r-badge-sm); }

  .result-card { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .result-card__photo { width: 78px; height: 78px; }
  .result-card__actions { width: 100%; }
  .map { min-height: 240px; }
  .map--tall { min-height: 280px; }

  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery__thumbs { flex-direction: row; order: 2; overflow-x: auto; padding-bottom: .25rem; }
  .gallery__thumb { width: 66px; flex: none; }

  .acc__content { padding-right: .25rem; }
  .acc--boxed .acc__content { padding-right: 1.25rem; }

  .page-hero::before { width: 70%; right: -30%; }

  /* Tables: horizontal scroll keeps them usable on phones */
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .table { min-width: 620px; }

  /* Dashboard */
  .app__search { display: none; }
  .app__main { padding: 1.1rem .9rem 2.5rem; }
  .kpi-grid { grid-template-columns: minmax(0, 1fr); }
  .app-page__head { flex-direction: column; align-items: stretch; }
  .app-page__actions .btn { flex: 1; }
  .toast-stack { right: .75rem; left: .75rem; bottom: .75rem; max-width: none; }
  .modal { padding: .75rem; }
  .modal__head, .modal__body, .modal__foot { padding-inline: 1.1rem; }
  .modal__foot { flex-direction: column-reverse; }
  .modal__foot .btn { width: 100%; }
  .summary-card { position: static; }
  .stepper__item span { display: none; }
  .stepper__item.is-active span, .stepper__item.is-done span { display: inline; }
  .timeline--right { padding-right: 0; padding-left: 1.85rem; }
  .timeline--right::before { left: 7px; right: auto; }
  .timeline--right .timeline__item::before { left: -1.85rem; right: auto; }
  .timeline--right .timeline__title, .timeline--right .timeline__text { text-align: left; }
}

/* --- Very small screens --------------------------------------------------------- */
@media (max-width: 400px) {
  .hero__stats { grid-template-columns: minmax(0, 1fr); }
  .hero__stats .stat-strip__item::before { display: none !important; }
  .hero__stats .stat-strip__item + .stat-strip__item { border-top: 1px solid var(--hairline); }
  .btn-row .btn { width: 100%; }
}

/* --- Print --------------------------------------------------------------------- */
@media print {
  .header, .utility-bar, .footer, .drawer, .scrim, .topbar, .app__sidebar,
  .toast-stack, .cta-band, .modal { display: none !important; }
  body { background: #fff; }
  .app { display: block; }
  .app__main { padding: 0; }
}

/* ==========================================================================
   Dashboard density — main column + side rail
   Single-column stacks of full-width panels read as sparse. These helpers let
   a page split its lower content into a fixed side rail so the main column
   keeps a comfortable measure and the page gains visual weight.
   ========================================================================== */
.app-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail, 330px);
  gap: clamp(1rem, 1.8vw, 1.4rem);
  align-items: start;
}
.app-cols--wide  { --rail: 400px; }
.app-cols--narrow{ --rail: 268px; }
.app-cols__main,
.app-cols__rail { min-width: 0; display: flex; flex-direction: column; gap: clamp(1rem, 1.8vw, 1.4rem); }
.app-cols__rail > * { margin-block: 0; }
.app-cols__rail { position: sticky; top: calc(var(--topbar-h, 60px) + 1rem); }
.app-cols__rail--static { position: static; }

@media (max-width: 1180px) {
  .app-cols { grid-template-columns: minmax(0, 1fr); }
  .app-cols__rail { position: static; }
}

/* Three-up and four-up stat strips read better than a single wide row */
.kpi-grid--dense { gap: clamp(.6rem, 1.2vw, .9rem); }

/* Tables that carry the page: give them more rows of breathing room */
.table--roomy th { padding-block: .7rem; }
.table--roomy td { padding-block: .85rem; }
/* Header sign-in link, added with the authentication pages */
.header__signin {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .875rem; font-weight: 700; color: var(--ink);
  text-decoration: none; padding: .45rem .2rem;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}
.header__signin svg { width: 17px; height: 17px; color: var(--navy); flex: none; }
.header__signin:hover { color: var(--red); }
.header__signin:hover svg { color: var(--red); }
@media (max-width: 980px) { .header__signin { display: none; } }

/* ==========================================================================
   13 · MOBILE POLISH
   Phone-first fixes: touch targets, iOS zoom, safe areas, store density,
   collapsible filters, sticky product CTA.
   ========================================================================== */

/* iOS: prevent auto-zoom when focusing form controls (16px threshold) */
@media (max-width: 860px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select, textarea {
    font-size: 16px;
  }
  .input, .select, .textarea, .search-bar input { font-size: 16px; }
}

/* Notch / home-indicator safe areas */
@supports (padding: env(safe-area-inset-bottom)) {
  .drawer,
  .app__sidebar {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .toast-stack {
    bottom: calc(1rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 860px) {
  /* Comfortable touch targets on interactive chrome */
  .burger,
  .drawer__close,
  .qty__btn,
  .product-card__wish,
  .gallery__thumb,
  .view-toggle button,
  .fab-locate,
  .filter-card__head,
  .filter-card__reset {
    min-width: 42px;
    min-height: 42px;
  }
  .filter-card__reset { display: inline-flex; align-items: center; }
  .product-card__wish { width: 40px; height: 40px; }

  /* Accordion / disclosure hit areas */
  .acc__btn { padding-block: 1rem; }
  .accordion__trigger { min-height: 44px; }

  /* Drawer / sidebar: kill rubber-band overscroll while open */
  .drawer__body,
  .app__sidebar {
    overscroll-behavior: contain;
  }

  /* Avoid sticky-header jump when tapping in-page anchors */
  .section { scroll-margin-top: calc(var(--header-h) + .5rem); }
}

/* Store: keep a dense 2-up product grid on phones (1-up wastes space) */
@media (max-width: 640px) {
  .st-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .65rem;
  }
  .st-grid .product-card__body { padding: .7rem .75rem .85rem; gap: .35rem; }
  .st-grid .product-card__name { font-size: .86rem; line-height: 1.3; }
  .st-grid .product-card__brand { font-size: .62rem; }
  .st-grid .product-card__price b { font-size: 1.05rem; }
  .st-grid .product-card__rating { font-size: .7rem; }
  .st-grid .product-card__foot { flex-direction: column; align-items: stretch; padding-top: .55rem; }
  .st-grid .product-card__foot .btn { width: 100%; padding-inline: .6em; }
  .st-grid .product-card__wish { top: .45rem; right: .45rem; }
  .st-grid .product-card__badges { top: .5rem; left: .5rem; }
  .st-grid .product-card__badges .tag { font-size: .58rem; padding: .3em .5em; }

  /* List view stays full-width single column */
  .st-grid.is-list {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .st-grid.is-list .product-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }
  .st-grid.is-list .product-card__media {
    min-height: 110px;
    aspect-ratio: auto;
  }

  /* Category strip: horizontal snap-scroll instead of a tall stack */
  .st-cats {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: .7rem;
    padding-bottom: .4rem;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .st-cats::-webkit-scrollbar { display: none; }
  .st-cats .category-card {
    flex: 0 0 68%;
    scroll-snap-align: start;
    padding: 1.1rem .85rem;
  }
  .st-cats .category-card__icon { width: 52px; height: 52px; }
  .st-cats .category-card__icon svg { width: 24px; height: 24px; }
  .st-cats .category-card__name { font-size: .88rem; }

  /* Toolbar stacks cleanly */
  .dir-toolbar { gap: .65rem; }
  .dir-toolbar__count { width: 100%; }
  .dir-toolbar__right { width: 100%; justify-content: space-between; }
  .dir-toolbar__right .select { flex: 1; min-width: 0; }

  /* Filter sidebar: collapsed panels + floating apply */
  .filters { gap: .65rem; }
  .filter-card__body { padding: .95rem 1rem; }

  /* Mobile filter sheet foot: sticky Apply at bottom of open card */
  .st-filter-foot {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: .65rem;
    margin-top: .25rem;
    border-top: 1px solid var(--hairline);
    z-index: 2;
  }
}

/* Product page: fixed bottom CTA bar on phones */
@media (max-width: 640px) {
  .pd-buy {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    flex-wrap: nowrap;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border-top: 1px solid var(--hairline);
    margin: 0;
    padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 28px rgba(7, 48, 124, .12);
  }
  /* keep page content clear of the fixed bar */
  body:has(.pd-buy) { padding-bottom: 88px; }
  .pd-buy .qty { flex: none; }
  .pd-buy .btn {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 48px;
    font-size: 1rem;
  }
  .pd-buy .icon-btn {
    width: 48px; height: 48px; flex: none;
  }
  /* Very tight phones: drop secondary CTA, keep qty + add-to-cart + wishlist */
  @media (max-width: 400px) {
    .pd-buy .btn--secondary,
    .pd-buy a.btn[href="checkout"] { display: none; }
  }
  .gallery__thumb { width: 72px; height: 72px; }
  .gallery__stage { min-height: 240px; }
}

/* Checkout / cart: larger radios and payment tiles */
@media (max-width: 640px) {
  .co-ship__box {
    padding: .9rem 1rem;
    min-height: 48px;
  }
  .co-pay label,
  .co-pay .radio {
    min-height: 44px;
  }
  .summary-card__foot .btn {
    width: 100%;
    min-height: 48px;
  }
}

/* Forms: comfortable field height on touch */
@media (max-width: 640px) {
  .input,
  .select,
  .textarea {
    padding-block: .75rem;
  }
  .btn { min-height: 44px; }
  .btn--sm { min-height: 38px; }
  .check,
  .radio {
    padding-block: .2rem;
  }
  .check__text,
  .radio__text {
    font-size: .92rem;
  }
}

/* Find-a-barber: taller map + full-width CTAs */
@media (max-width: 640px) {
  .fab-map { min-height: 280px; height: 42vh; }
  .result-card__actions { flex-wrap: wrap; }
  .result-card__actions .btn { min-height: 44px; }
}

/* Dashboard tables: hint scroll + larger row targets */
@media (max-width: 640px) {
  .table td,
  .table th { padding-block: .75rem; }
  .table .btn--sm { min-height: 36px; }
}

/* Very small phones: slightly denser product grid padding */
@media (max-width: 380px) {
  .st-grid { gap: .5rem; }
  .st-grid .product-card__name { font-size: .8rem; }
  .st-cats .category-card { flex-basis: 78%; }
}