/* ==========================================================================
   WakiliApp design system
   Brand indigo #302E77 (logo) as primary + enterprise neutrals; Manrope headings, Inter text.
   Built on Bootstrap 5.3: the tokens below are mapped onto Bootstrap's CSS variables.
   ========================================================================== */

:root {
  /* ---- Brand (from the logo) ------------------------------------------------ */
  --brand-950: #13123a;
  --brand-900: #1d1b52;
  --brand-800: #262465;   /* primary dark */
  --brand-700: #302e77;   /* PRIMARY: logo indigo */
  --brand-600: #3f3c99;
  --brand-100: #e9e8f6;
  --accent-600: #4b47b8;
  --accent-500: #8f8ce6;
  --accent-300: #c7c5f5;
  --accent-50:  #f2f1fd;
  --purple: #7c3aed;      /* secondary accent for highlights */
  --purple-50: #f3edfe;

  /* ---- Neutrals (design direction) ----------------------------------------- */
  --ink: #1e293b;         /* main text */
  --ink-2: #475569;
  --ink-3: #64748b;       /* muted text / secondary */
  --line: #e5eaf1;        /* borders */
  --line-strong: #d5dce6;
  --bg: #f5f7fb;          /* app background */
  --surface: #ffffff;

  /* ---- Status (always with an icon or label, never colour alone) ----------- */
  --success: #16a36a;     --success-bg: #e8f7f0;
  --warning-solid: #f59e0b;
  --warning: #b45309;     --warning-bg: #fef5e1;   /* darker text tone of #F59E0B for legibility */
  --danger: #dc3545;      --danger-bg: #fdecee;
  --info: #302e77;        --info-bg: #eeedf9;

  /* ---- Type, shape, depth --------------------------------------------------- */
  --font-display: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 24px -14px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .35);
  --focus: 0 0 0 3px rgba(48, 46, 119, .22);

  /* ---- Bootstrap 5.3 mapped onto the design tokens ------------------------- */
  --bs-primary: #302e77; --bs-primary-rgb: 48, 46, 119;
  --bs-secondary: #64748b; --bs-secondary-rgb: 100, 116, 139;
  --bs-success: #16a36a; --bs-success-rgb: 22, 163, 106;
  --bs-warning: #f59e0b; --bs-warning-rgb: 245, 158, 11;
  --bs-danger: #dc3545; --bs-danger-rgb: 220, 53, 69;
  --bs-info: #302e77; --bs-info-rgb: 48, 46, 119;
  --bs-body-font-family: var(--font-text);
  --bs-body-font-size: .9375rem;
  --bs-body-color: #1e293b; --bs-body-color-rgb: 30, 41, 59;
  --bs-body-bg: #f5f7fb; --bs-body-bg-rgb: 245, 247, 251;
  --bs-secondary-color: #64748b;
  --bs-emphasis-color: #0f172a;
  --bs-border-color: #e5eaf1;
  --bs-border-radius: .625rem; --bs-border-radius-sm: .5rem; --bs-border-radius-lg: .875rem; --bs-border-radius-xl: 1.125rem;
  --bs-link-color: #302e77; --bs-link-color-rgb: 48, 46, 119;
  --bs-link-hover-color: #262465; --bs-link-hover-color-rgb: 38, 36, 101;
  --bs-focus-ring-color: rgba(48, 46, 119, .22);
  --bs-heading-color: #1e293b;
  --bs-primary-bg-subtle: #eeedf9; --bs-primary-border-subtle: #d4d2f0; --bs-primary-text-emphasis: #262465;
  --bs-success-bg-subtle: #e8f7f0; --bs-success-text-emphasis: #0f7a4f;
  --bs-warning-bg-subtle: #fef5e1; --bs-warning-text-emphasis: #b45309;
  --bs-danger-bg-subtle: #fdecee; --bs-danger-text-emphasis: #b02a37;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-600); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 1.2rem + .8vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: 600 .95rem/1 var(--font-text); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn-primary { background: var(--brand-900); color: #fff; }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-gold { background: var(--accent-500); color: var(--brand-950); }
.btn-gold:hover { background: var(--accent-300); color: var(--brand-950); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--brand-900); }
.btn-outline:hover { border-color: var(--brand-900); color: var(--brand-900); }
.btn-link { background: none; border: 0; padding: 0; min-height: 0; color: var(--brand-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.1rem; }
.field label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--ink-3); margin-top: .35rem; }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  font: 400 1rem/1.4 var(--font-text); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--accent-500); box-shadow: var(--focus); }
.input.is-invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .82rem; margin-top: .35rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 480px) { .row-2 { grid-template-columns: 1fr; } }
.input-otp { text-align: center; font-size: 1.6rem; letter-spacing: .5em; font-weight: 600; padding-left: 1.4rem; }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 4.5rem; }
.password-toggle {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  background: none; border: 0; padding: .4rem .5rem; font: 600 .8rem var(--font-text); color: var(--ink-2); cursor: pointer; border-radius: 6px;
}
.password-toggle:focus-visible { outline: none; box-shadow: var(--focus); }
.check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }

/* Role picker (client / advocate) */
.role-picker { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.25rem; }
.role-option { position: relative; }
.role-option input { position: absolute; opacity: 0; inset: 0; }
.role-option label {
  display: block; height: 100%; margin: 0; padding: .9rem 1rem; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.role-option label strong { display: block; font-size: .95rem; color: var(--brand-900); }
.role-option label span { display: block; font-size: .8rem; font-weight: 400; color: var(--ink-3); margin-top: .15rem; }
.role-option input:checked + label { border-color: var(--accent-500); background: var(--accent-50); box-shadow: inset 0 0 0 1px var(--accent-500); }
.role-option input:focus-visible + label { box-shadow: var(--focus); }
@media (max-width: 400px) { .role-picker { grid-template-columns: 1fr; } }

/* ---------- Alerts ---------- */
.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 1.25rem; border: 1px solid transparent; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: #c6e7d4; }
.alert-danger  { background: var(--danger-bg);  color: var(--danger);  border-color: #f6cdc8; }
.alert-info    { background: var(--info-bg);    color: var(--info);    border-color: #cfdcf3; }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: #f3dfaf; }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; }
.brand-name { font: 700 1.2rem/1 var(--font-display); letter-spacing: -.015em; }

/* ==========================================================================
   Auth layout: brand panel + form panel
   ========================================================================== */
.auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 100vh; }
.auth-brand {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: 2.5rem clamp(2rem, 4vw, 4rem);
  color: #fff;
  background:
    radial-gradient(1200px 500px at 110% -10%, rgba(143,140,230,.22), transparent 60%),
    radial-gradient(800px 400px at -20% 110%, rgba(48,46,119,.9), transparent 60%),
    var(--brand-900);
}
.auth-brand::after {           /* fine diagonal pattern for texture */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background-image: repeating-linear-gradient(135deg, #fff 0 1px, transparent 1px 22px);
}
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand .brand-name { color: #fff; }
.auth-brand h2 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); max-width: 16ch; }
.auth-brand p { color: rgba(255,255,255,.75); max-width: 44ch; }
.auth-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.auth-points li { display: flex; gap: .75rem; align-items: flex-start; color: rgba(255,255,255,.88); font-size: .95rem; }
.auth-points li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--accent-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23070f1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.auth-brand small { color: rgba(255,255,255,.5); font-size: .8rem; }

.auth-main { display: flex; flex-direction: column; padding: 1.5rem clamp(1rem, 4vw, 3rem); background: var(--surface); }
.auth-top { display: flex; justify-content: space-between; align-items: center; min-height: 40px; font-size: .9rem; }
.auth-top .brand { display: none; }
.auth-card { width: 100%; max-width: 440px; margin: auto; padding: 2rem 0; }
.auth-card h1 { margin-bottom: .35rem; }
.auth-card .lead { color: var(--ink-2); margin-bottom: 1.75rem; }
.auth-foot { text-align: center; color: var(--ink-2); font-size: .92rem; margin-top: 1.5rem; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: -.25rem 0 1.25rem; font-size: .9rem; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-top .brand { display: inline-flex; }
  .auth-main { padding: 1rem 16px; min-width: 0; }
}
@media (max-width: 560px) {
  .auth-top > span { display: none; }   /* same link is repeated under the form */
}

/* ==========================================================================
   App shell (account + admin): top bar and content
   ========================================================================== */
.topbar { background: var(--brand-900); color: #fff; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: .75rem 16px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar .brand-name { color: #fff; }
.topbar-actions { display: flex; align-items: center; gap: 1rem; font-size: .9rem; }
.topbar-actions .who { color: rgba(255,255,255,.8); }
.topbar .btn-outline { color: #fff; border-color: rgba(255,255,255,.3); min-height: 38px; padding: .5rem 1rem; }
.topbar .btn-outline:hover { border-color: #fff; color: #fff; }
.container { max-width: 1200px; margin: 0 auto; padding: 2rem 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.grid-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.stat-label { font-size: .82rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat-value { font: 600 2rem/1.1 var(--font-display); color: var(--brand-900); margin-top: .35rem; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-neutral { background: var(--brand-100); color: var(--brand-800); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.5rem; margin: 0; }
.dl dt { color: var(--ink-3); font-size: .9rem; }
.dl dd { margin: 0; font-weight: 500; }
@media (max-width: 480px) { .dl { grid-template-columns: 1fr; gap: .15rem; } .dl dd { margin-bottom: .6rem; } }

/* ==========================================================================
   Public site shell (header / footer)
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header-inner { max-width: 1200px; margin: 0 auto; padding: .7rem 16px; display: flex; align-items: center; gap: 1.5rem; }
.site-nav { display: flex; gap: 1.5rem; margin-right: auto; margin-left: 1rem; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand-900); }
.site-actions { display: flex; gap: .6rem; align-items: center; }
.site-actions .btn { min-height: 40px; padding: .55rem 1rem; font-size: .9rem; }
.site-footer { background: var(--brand-950); color: rgba(255,255,255,.7); margin-top: 4rem; }
.site-footer-inner { max-width: 1200px; margin: 0 auto; padding: 2.5rem 16px; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; font-size: .9rem; }
.site-footer .brand-name { color: #fff; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: var(--accent-300); }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ==========================================================================
   Find: search hero, filters, results
   ========================================================================== */
.find-hero { background: var(--brand-900); color: #fff; position: relative; overflow: hidden; }
.find-hero::after { content: ""; position: absolute; inset: 0; opacity: .05; background-image: repeating-linear-gradient(135deg, #fff 0 1px, transparent 1px 22px); pointer-events: none; }
.find-hero-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 2.5rem 16px 2rem; }
.find-hero h1 { color: #fff; margin-bottom: .3rem; }
.find-hero p { color: rgba(255,255,255,.72); margin-bottom: 1.5rem; }
.search-bar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: .6rem; background: #fff; padding: .6rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.search-bar .input { border-color: var(--line); }
.search-bar .btn { min-width: 120px; }
@media (max-width: 860px) { .search-bar { grid-template-columns: 1fr 1fr; } .search-bar .search-q { grid-column: 1 / -1; } .search-bar .btn { grid-column: 1 / -1; } }
@media (max-width: 480px) { .search-bar { grid-template-columns: 1fr; } }
.search-extra { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-top: 1rem; font-size: .9rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font: 500 .88rem var(--font-text); cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--accent-300); color: #fff; }
.chip[aria-pressed="true"] { background: var(--accent-500); border-color: var(--accent-500); color: var(--brand-950); }
.chip:focus-visible { outline: none; box-shadow: var(--focus); }
.search-extra .muted-light { color: rgba(255,255,255,.65); }
.search-extra a { color: rgba(255,255,255,.85); }
.search-extra select.input { min-height: 36px; padding: .3rem .6rem; width: auto; font-size: .88rem; }

.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.results-head h2 { margin: 0; font-size: 1.25rem; }
.results { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.adv-card { display: flex; flex-direction: column; gap: .9rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.adv-card:hover { border-color: var(--accent-300); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.adv-card:focus-visible { outline: none; box-shadow: var(--focus); }
.adv-card-top { display: flex; gap: .9rem; align-items: center; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--brand-100); color: var(--brand-800); display: grid; place-items: center; font: 600 1.1rem var(--font-display); }
.avatar-lg { width: 112px; height: 112px; font-size: 2rem; border: 4px solid #fff; box-shadow: var(--shadow); }
.adv-name { font: 600 1.08rem/1.25 var(--font-display); color: var(--brand-900); margin: 0; }
.adv-firm { font-size: .88rem; color: var(--ink-3); margin: .1rem 0 0; }
.adv-bio { font-size: .9rem; color: var(--ink-2); margin: 0; }
.adv-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .84rem; color: var(--ink-2); margin-top: auto; }
.adv-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.badge-verified { background: var(--accent-50); color: var(--accent-600); border: 1px solid var(--accent-300); }
.empty { text-align: center; padding: 3rem 1rem; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; font-size: .9rem; }

/* Advocate profile */
.profile-band { background: var(--brand-900); color: #fff; position: relative; overflow: hidden; }
.profile-band::after { content: ""; position: absolute; inset: 0; opacity: .05; background-image: repeating-linear-gradient(135deg, #fff 0 1px, transparent 1px 22px); pointer-events: none; }
.profile-band .profile-wrap { position: relative; z-index: 1; padding-bottom: 2rem; }
.profile-band h1 { color: #fff; }
.profile-band .adv-meta { color: rgba(255,255,255,.78); }
.profile-wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem 16px 0; }
.profile-back { color: rgba(255,255,255,.8); font-size: .9rem; text-decoration: none; }
.profile-back:hover { color: #fff; }
.profile-head { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; margin-top: 1.25rem; }
.profile-head h1 { margin: 0 0 .2rem; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 1.25rem; margin-top: 1.5rem; align-items: start; }
@media (max-width: 860px) { .profile-grid { grid-template-columns: 1fr; } }
.section-title { font: 600 .8rem var(--font-text); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 .75rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.tag-list li { padding: .35rem .75rem; border-radius: 999px; background: var(--brand-100); color: var(--brand-800); font-size: .85rem; font-weight: 500; }
.contact-actions { display: grid; gap: .6rem; }
.map { height: 240px; border-radius: var(--radius-sm); border: 1px solid var(--line); z-index: 0; }
.map-lg { height: 320px; }
.stack > * + * { margin-top: 1.25rem; }

/* ==========================================================================
   Account area: side navigation
   ========================================================================== */
.account { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; align-items: start; }
.account-nav { position: sticky; top: 1rem; display: grid; gap: .25rem; }
.account-nav a { display: block; padding: .6rem .9rem; border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; font-weight: 500; }
.account-nav a:hover { background: var(--brand-100); color: var(--brand-900); }
.account-nav a[aria-current="page"] { background: var(--brand-900); color: #fff; }
@media (max-width: 760px) {
  .account { grid-template-columns: 1fr; gap: 1rem; }
  .account-nav { position: static; display: flex; overflow-x: auto; gap: .4rem; padding-bottom: .25rem; }
  .account-nav a { white-space: nowrap; }
}
.form-section { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.form-section h2 { font-size: 1.15rem; margin-bottom: .25rem; }
.form-section > p { color: var(--ink-3); font-size: .9rem; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .5rem 1rem; margin-top: .75rem; }
.photo-row { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.checklist { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .5rem; }
.checklist li { display: flex; gap: .6rem; align-items: center; font-size: .92rem; }
.checklist li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--accent-500); flex: none; }
textarea.input { min-height: 120px; resize: vertical; }

/* ==========================================================================
   Requests
   ========================================================================== */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs a { padding: .7rem 1rem; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--brand-900); }
.tabs a[aria-current="page"] { color: var(--brand-900); border-bottom-color: var(--accent-500); }
.tabs .count { display: inline-block; min-width: 1.4em; padding: 0 .4em; margin-left: .35rem; border-radius: 999px; background: var(--brand-100); color: var(--brand-800); font-size: .75rem; text-align: center; }
.req-list { display: grid; gap: .75rem; }
.req-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 1rem; align-items: center; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.req-row:hover { border-color: var(--accent-300); box-shadow: var(--shadow-sm); color: inherit; }
.req-title { font-weight: 600; color: var(--brand-900); }
.req-sub { font-size: .85rem; color: var(--ink-3); }
.status { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pending { background: var(--warning-bg); color: var(--warning); }
.status-accepted { background: var(--info-bg); color: var(--info); }
.status-completed { background: var(--success-bg); color: var(--success); }
.status-declined, .status-cancelled { background: #f1f3f6; color: var(--ink-3); }
.estimate-box { padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--accent-50); border: 1px solid var(--accent-300); margin-bottom: 1.25rem; }
.estimate-box .amount { font: 600 1.6rem/1.2 var(--font-display); color: var(--brand-900); font-variant-numeric: tabular-nums; }
.estimate-box .note { font-size: .8rem; color: var(--ink-3); margin: .35rem 0 0; }
.banner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--brand-900); color: #fff; margin-bottom: 1.25rem; }
.banner strong { font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .9rem; }
.timeline li { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-2); }
.timeline li span:last-child { color: var(--ink-3); font-variant-numeric: tabular-nums; }
details.action-panel { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75rem 1rem; }
details.action-panel summary { cursor: pointer; font-weight: 600; color: var(--brand-900); }
details.action-panel[open] summary { margin-bottom: .75rem; }

/* ==========================================================================
   Admin shell
   ========================================================================== */
@media (max-width: 900px) {
}
.int-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.int-card { display: flex; flex-direction: column; gap: .6rem; }
.int-card h2 { font-size: 1.1rem; margin: 0; }
.int-card p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.int-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .75rem; font-size: .85rem; }
.secret-state { font-size: .82rem; color: var(--ink-3); margin-top: .35rem; display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.secure-note { display: flex; gap: .6rem; padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--brand-100); color: var(--brand-800); font-size: .88rem; margin-bottom: 1.25rem; }
.switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 600; }
.switch input { width: 42px; height: 24px; appearance: none; background: var(--line-strong); border-radius: 999px; position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: var(--shadow-sm); }
.switch input:checked { background: var(--success); }
.switch input:checked::after { transform: translateX(18px); }
.switch input:focus-visible { outline: none; box-shadow: var(--focus); }

/* Payments */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; padding: .6rem .75rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.spinner { width: 44px; height: 44px; margin: 0 auto 1rem; border-radius: 50%; border: 4px solid var(--brand-100); border-top-color: var(--accent-500); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.result-icon { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font: 700 1.6rem var(--font-text); }
.result-icon.ok { background: var(--success-bg); color: var(--success); }
.result-icon.fail { background: var(--danger-bg); color: var(--danger); }

/* Admin: lists, filters, detail pages */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin-bottom: 1rem; }
.filters .input { min-height: 40px; padding: .45rem .7rem; width: auto; font-size: .92rem; }
.filters input[type="search"] { min-width: 240px; }
.filters .btn { min-height: 40px; padding: .5rem 1rem; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.table-wrap .table th { background: var(--bg); }
.table tbody tr:hover { background: #fafafe; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .nowrap { white-space: nowrap; }
.cell-main { font-weight: 600; color: var(--brand-900); text-decoration: none; }
.cell-sub { font-size: .8rem; color: var(--ink-3); }
.actions-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.actions-row form { margin: 0; }
.btn-sm { min-height: 34px; padding: .4rem .8rem; font-size: .85rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1c13; color: #fff; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.kv div span { display: block; font-size: .78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.kv div strong { font-weight: 600; }
.review-flag { background: var(--warning-bg); color: var(--warning); border: 1px solid #f3dfaf; padding: .6rem .9rem; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 1rem; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; background: var(--bg); padding: .1rem .35rem; border-radius: 4px; }
pre.code { display: block; padding: .75rem; white-space: pre-wrap; word-break: break-all; max-height: 260px; overflow: auto; }

/* Admin charts: single-series columns. Bar hue #4b47b8 (brand indigo, one step lighter) validated (lightness, chroma, contrast) on the light surface. */
:root { --chart-bar: #4b47b8; --chart-grid: #e8e7f2; }
.chart { margin: 0; }
.chart-title { font-weight: 600; color: var(--ink); margin-bottom: .75rem; font-size: .95rem; }
.chart-plot { position: relative; height: 200px; margin: 0 0 1.75rem 3.25rem; }
.chart-grid { position: absolute; inset: 0; pointer-events: none; }
.chart-gridline { position: absolute; left: 0; right: 0; border-top: 1px solid var(--chart-grid); }
.chart-gridline span { position: absolute; right: calc(100% + 8px); top: -.6em; font-size: .72rem; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart-cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.chart-col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: none; cursor: default; }
.chart-col:hover, .chart-col:focus-visible { background: rgba(75,71,184,.07); }
.chart-col:focus-visible { box-shadow: var(--focus); border-radius: 4px; }
.chart-bar { width: min(24px, 70%); background: var(--chart-bar); border-radius: 4px 4px 0 0; }
.chart-val { position: absolute; font-size: .72rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart-x { position: absolute; top: calc(100% + 6px); font-size: .72rem; color: var(--ink-3); white-space: nowrap; }
.chart-tip { position: fixed; z-index: 100; pointer-events: none; background: var(--brand-950); color: #fff; font-size: .8rem; padding: .35rem .6rem; border-radius: 6px; box-shadow: var(--shadow); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart-table summary { font-size: .82rem; color: var(--ink-3); cursor: pointer; }
.chart-table[open] summary { margin-bottom: .5rem; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
@media (max-width: 520px) { .chart-x { display: none; } .chart-col:nth-child(3n+1) .chart-x { display: block; } }

/* Layout fixes: let grid columns shrink below their content, keep tables scrollable on phones,
   give chart value labels headroom above the tallest bar. */
.chart-plot { margin-top: 1.5rem; }
.profile-grid { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.card { min-width: 0; }
@media (max-width: 900px) {
}
@media (max-width: 860px) { .profile-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .card table.table { display: block; overflow-x: auto; }
  .card table.table td, .card table.table th { white-space: nowrap; }
}

/* ==========================================================================
   Corporate website
   ========================================================================== */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section { padding: clamp(3.5rem, 6vw, 6rem) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font: 600 .78rem/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-600); margin-bottom: .9rem; }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); margin-bottom: .6rem; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; margin: 0; }
.lead { font-size: 1.15rem; color: var(--ink-2); }

/* Header mobile menu: handled by the Bootstrap navbar (see 'Public site: Bootstrap navbar'). */

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(900px 480px at 85% 10%, rgba(143,140,230,.20), transparent 60%),
  radial-gradient(700px 500px at 0% 100%, rgba(48,46,119,.85), transparent 65%), var(--brand-900); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .05; pointer-events: none; background-image: repeating-linear-gradient(135deg, #fff 0 1px, transparent 1px 22px); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; align-items: center; padding: clamp(3rem, 7vw, 6.5rem) 16px clamp(4rem, 8vw, 7rem); }
.hero .eyebrow { color: var(--accent-300); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 1.6rem + 3vw, 4rem); line-height: 1.05; margin-bottom: 1.1rem; max-width: 14ch; }
.hero p.lead { color: rgba(255,255,255,.78); max-width: 52ch; margin-bottom: 2rem; }
.hero-search { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: .5rem; background: #fff; padding: .5rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 640px; }
.hero-search .input { border-color: transparent; background: var(--bg); }
.hero-search .input:focus { background: #fff; }
.hero-search .btn { white-space: nowrap; }
@media (max-width: 640px) { .hero-search { grid-template-columns: 1fr; } }
.hero-link { display: inline-block; margin-top: 1.25rem; color: rgba(255,255,255,.85); font-size: .95rem; }
.hero-link:hover { color: var(--accent-300); }

/* Hero visual: a stylised preview of the app (illustrative, no real people) */
.preview { position: relative; height: 420px; }
.preview-card { position: absolute; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 1.1rem 1.2rem; width: min(320px, 86%); }
.preview-card .row { display: flex; gap: .8rem; align-items: center; }
.preview-card .ph { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(140deg, var(--brand-100), #cfd9ea); flex: none; display: grid; place-items: center; color: var(--brand-700); }
.preview-card .bar { height: 9px; border-radius: 6px; background: var(--brand-100); }
.preview-card .bar.w60 { width: 60%; } .preview-card .bar.w40 { width: 40%; } .preview-card .bar.w80 { width: 80%; }
.preview-card .meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .8rem; }
.preview-card .chip-sm { font-size: .72rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; background: var(--accent-50); color: var(--accent-600); border: 1px solid var(--accent-300); }
.preview-card .chip-sm.grey { background: var(--bg); color: var(--ink-2); border-color: var(--line); }
.preview-card.c1 { top: 10px; right: 6%; transform: rotate(2deg); }
.preview-card.c2 { top: 150px; left: 0; z-index: 2; }
.preview-card.c3 { bottom: 0; right: 0; width: min(260px, 74%); background: var(--brand-950); color: #fff; border: 1px solid rgba(255,255,255,.12); }
.preview-card.c3 .label { font-size: .75rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .08em; }
.preview-card.c3 .amount { font: 600 1.6rem/1.2 var(--font-display); color: var(--accent-300); margin-top: .25rem; }
.preview-ok { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--success); margin-top: .8rem; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } .preview { display: none; } }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: -2.5rem; position: relative; z-index: 2; box-shadow: var(--shadow); }
.stats > div { background: var(--surface); padding: 1.4rem 1.5rem; }
.stats strong { display: block; font: 600 2rem/1.1 var(--font-display); color: var(--brand-900); font-variant-numeric: tabular-nums; }
.stats span { color: var(--ink-3); font-size: .9rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding: 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font: 600 1rem var(--font-display); color: var(--accent-600); margin-bottom: 1rem; }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--ink-2); margin: 0; }

/* Service tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1rem; }
.tile { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tile:hover { border-color: var(--accent-300); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.tile:focus-visible { outline: none; box-shadow: var(--focus); }
.tile h3 { font-size: 1.15rem; margin: 0; }
.tile p { color: var(--ink-2); font-size: .93rem; margin: 0; }
.tile .price { margin-top: auto; padding-top: .9rem; display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); font-size: .9rem; }
.tile .price strong { font: 600 1.1rem var(--font-display); color: var(--brand-900); font-variant-numeric: tabular-nums; }
.tile .price span { color: var(--ink-3); }

/* Why grid */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 2rem 2.5rem; }
.why h3 { font-size: 1.15rem; display: flex; gap: .7rem; align-items: center; }
.why h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--accent-500); transform: rotate(45deg); }
.why p { color: var(--ink-2); margin: 0; }

/* Dark band */
.band { background: var(--brand-950); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(143,140,230,.25), transparent 70%); pointer-events: none; }
.band h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); }
.band p { color: rgba(255,255,255,.75); margin: 0; }
.band .eyebrow { color: var(--accent-300); }
.band-side { position: relative; z-index: 1; display: grid; gap: .8rem; justify-items: start; }
.band-price { font: 600 1.4rem var(--font-display); color: var(--accent-300); }
.band .btn-outline { color: #fff; border-color: rgba(255,255,255,.35); }
.band .btn-outline:hover { border-color: #fff; color: #fff; }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .75rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--brand-900); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--font-text); color: var(--accent-600); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--ink-2); }

/* App badges */
.app-badges { display: flex; gap: .75rem; flex-wrap: wrap; }
.app-badge { display: inline-flex; align-items: center; gap: .6rem; min-height: 52px; padding: .5rem 1.1rem; border-radius: 12px; background: #000; color: #fff; text-decoration: none; font-size: .9rem; font-weight: 600; }
.app-badge:hover { color: #fff; background: #1d1d1f; }

/* Page hero (inner pages) */
.page-hero { background: var(--brand-900); color: #fff; padding: clamp(3rem, 6vw, 5rem) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; opacity: .05; pointer-events: none; background-image: repeating-linear-gradient(135deg, #fff 0 1px, transparent 1px 22px); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 1.5rem + 2.2vw, 3.2rem); max-width: 22ch; }
.page-hero p { color: rgba(255,255,255,.78); max-width: 60ch; font-size: 1.1rem; margin: 0; }
.page-hero .eyebrow { color: var(--accent-300); }
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--ink-2); font-size: 1.05rem; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 2rem; }
.list-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 1rem; }
.list-steps li { counter-increment: s; display: grid; grid-template-columns: 2.25rem 1fr; gap: .9rem; align-items: start; color: var(--ink-2); }
.list-steps li::before { content: counter(s); width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent-50); border: 1px solid var(--accent-300); color: var(--accent-600); font-weight: 700; }
.plan-card { border: 1px solid var(--accent-300); background: var(--surface); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.plan-card .price { font: 600 2.6rem/1 var(--font-display); color: var(--brand-900); }
.plan-card .price small { font: 500 1rem var(--font-text); color: var(--ink-3); }
.ticks { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; gap: .6rem; }
.ticks li { display: flex; gap: .6rem; color: var(--ink-2); }
.ticks li::before { content: "✓"; color: var(--success); font-weight: 700; }
.doc-list { display: grid; gap: .75rem; }
.doc { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.doc strong { color: var(--brand-900); }

/* Footer (rich) */
.site-footer .footer-grid { max-width: 1200px; margin: 0 auto; padding: 3.5rem 16px 2rem; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 2rem; }
.site-footer h4 { color: #fff; font: 600 .8rem var(--font-text); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .92rem; }
.site-footer p { font-size: .92rem; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 1.25rem 16px 2rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; color: rgba(255,255,255,.55); }
.newsletter { display: flex; gap: .4rem; margin-top: .75rem; }
.newsletter .input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; min-height: 42px; }
.newsletter .input::placeholder { color: rgba(255,255,255,.45); }
.newsletter .btn { min-height: 42px; padding: .5rem 1rem; }
@media (max-width: 900px) { .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .footer-grid > :first-child, .site-footer .footer-grid > :last-child { grid-column: 1 / -1; } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Brand mark: the WakiliApp logo. On dark backgrounds a thin white ring separates the indigo circle. */
.brand-logo { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.auth-brand .brand-logo, .topbar .brand-logo, .site-footer .brand-logo { box-shadow: 0 0 0 2px rgba(255,255,255,.9); }

/* Typography: Inter throughout. Large display text gets tighter tracking; numbers line up in columns. */
body { font-feature-settings: "cv11", "ss03"; }   /* Inter: single-storey a off, open digits for legibility */
.hero h1, .page-hero h1 { font-weight: 700; letter-spacing: -.025em; }
.section-head h2, .band h2 { letter-spacing: -.025em; }
.stat-value, .stats strong, .plan-card .price, .estimate-box .amount, .tile .price strong, .band-price, .preview-card.c3 .amount { font-weight: 700; letter-spacing: -.02em; }
.table, .stat-value, .num { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Admin console sign-in (distinct from the client sign-in)
   Deep indigo, the advocate's-bands motif from the logo, a fine dot grid.
   ========================================================================== */
.console-body { margin: 0; min-height: 100vh; background: var(--brand-950); color: #fff; }
.console { position: relative; min-height: 100vh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); isolation: isolate;
  background:
    radial-gradient(900px 600px at 0% 0%, rgba(48,46,119,.95), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(143,140,230,.16), transparent 60%),
    var(--brand-950); }
.console::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .09; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1.2px); background-size: 22px 22px;
  mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 75%); -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 75%); }
.console-motif { position: absolute; z-index: -1; left: 26%; top: 50%; width: min(620px, 60vw); transform: translate(-50%, -50%); color: rgba(199,197,245,.10); pointer-events: none; }

.console-intro { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 5vw, 4.5rem); }
.console-brand { display: flex; align-items: center; gap: .9rem; }
.console-brand img { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 8px 24px rgba(0,0,0,.35); }
.console-name { font-weight: 700; font-size: 1.15rem; letter-spacing: -.015em; }
.console-pill { display: inline-flex; align-items: center; gap: .45rem; margin-top: .3rem; padding: .2rem .65rem; border-radius: 999px; border: 1px solid rgba(199,197,245,.35); background: rgba(143,140,230,.12); color: var(--accent-300); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.console-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #5fd39a; box-shadow: 0 0 0 3px rgba(95,211,154,.18); }

.console-copy { max-width: 520px; }
.console-copy h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin: 0 0 1rem; }
.console-copy > p { color: rgba(255,255,255,.72); font-size: 1.05rem; margin: 0 0 2rem; }
.console-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.console-facts li { display: grid; grid-template-columns: 40px 1fr; gap: .9rem; align-items: start; }
.console-fact-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--accent-300); }
.console-facts li > div strong { display: block; font-weight: 600; font-size: .95rem; }
.console-facts li > div span { display: block; color: rgba(255,255,255,.62); font-size: .88rem; margin-top: .1rem; }

.console-foot { display: grid; gap: .9rem; max-width: 520px; }
.console-clock { display: flex; align-items: baseline; gap: .8rem; }
.console-clock-time { font-weight: 600; font-size: 1.6rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.console-clock-label { color: rgba(255,255,255,.6); font-size: .85rem; }
.console-foot p { margin: 0; color: rgba(255,255,255,.5); font-size: .8rem; line-height: 1.5; border-top: 1px solid rgba(255,255,255,.1); padding-top: .9rem; }

.console-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; padding: clamp(1.5rem, 4vw, 3rem) 16px; }
.console-card { position: relative; width: 100%; max-width: 440px; background: var(--surface); color: var(--ink); border-radius: 20px; padding: 2.4rem 2.2rem 1.8rem; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06); overflow: hidden; }
.console-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--brand-700), var(--accent-500)); }
.console-lock { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-50); color: var(--brand-700); border: 1px solid var(--brand-100); margin-bottom: 1.2rem; }
.console-card h2 { font-size: 1.5rem; margin: 0 0 .3rem; color: var(--brand-900); }
.console-sub { color: var(--ink-3); margin: 0 0 1.6rem; font-size: .95rem; }
.console-input { position: relative; }
.console-input > svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.console-input .input { padding-left: 2.6rem; }
.console-input .input:focus { border-color: var(--brand-700); box-shadow: 0 0 0 3px rgba(48,46,119,.18); }
.console-input:focus-within > svg { color: var(--brand-700); }
.console-caps[hidden] { display: none; }
.console-caps { display: flex; align-items: center; gap: .4rem; margin: .45rem 0 0; color: var(--warning); font-size: .82rem; font-weight: 500; }
.console-submit { margin-top: .4rem; background: var(--brand-700); min-height: 50px; gap: .6rem; }
.console-submit:hover { background: var(--brand-600); }
.console-help { margin: 1.25rem 0 0; font-size: .85rem; color: var(--ink-3); text-align: center; }
.console-secure { display: flex; justify-content: center; align-items: center; gap: .4rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .78rem; }
.console-back { color: rgba(255,255,255,.65); font-size: .88rem; text-decoration: none; }
.console-back:hover { color: #fff; }

@media (max-width: 960px) {
  .console { grid-template-columns: 1fr; }
  .console-intro { padding-bottom: 0; gap: 1.5rem; }
  .console-copy, .console-foot p, .console-facts { display: none; }
  .console-foot { order: 3; }
  .console-motif { left: 50%; top: 30%; width: 120vw; }
  .console::before { mask-image: none; -webkit-mask-image: none; }
  .console-card { padding: 2rem 1.4rem 1.5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .console-card { animation: console-in .5s ease-out both; }
  @keyframes console-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* ==========================================================================
   Admin console shell (.ax-*): icon sidebar, top bar with search and account menu
   ========================================================================== */
.ax-body { background: #f5f5fb; }
.ax { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.ax-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; background: var(--brand-950); color: rgba(255,255,255,.72); padding: 1.1rem .85rem; border-right: 1px solid rgba(255,255,255,.04);
  background-image: radial-gradient(500px 300px at 0% 0%, rgba(48,46,119,.9), transparent 70%); }
.ax-brand { display: flex; align-items: center; gap: .7rem; padding: .35rem .5rem 1.1rem; text-decoration: none; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: .6rem; }
.ax-brand img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.ax-brand strong { display: block; font-size: 1rem; letter-spacing: -.01em; }
.ax-brand small { display: block; font-size: .7rem; color: var(--accent-300); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.ax-brand:hover { color: #fff; }
.ax-nav { display: grid; gap: 2px; }
.ax-group { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: rgba(255,255,255,.38); margin: 1.1rem .7rem .4rem; }
.ax-nav a { position: relative; display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 10px; color: rgba(255,255,255,.74); text-decoration: none; font-size: .9rem; font-weight: 500; }
.ax-nav a .icon { flex: none; opacity: .85; }
.ax-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.ax-nav a:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--accent-300); }
.ax-nav a[aria-current="page"] { background: rgba(143,140,230,.18); color: #fff; }
.ax-nav a[aria-current="page"]::before { content: ""; position: absolute; left: -.85rem; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent-500); }
.ax-nav a[aria-current="page"] .icon { color: var(--accent-300); opacity: 1; }
.ax-count { margin-left: auto; min-width: 22px; padding: 0 .45rem; height: 20px; border-radius: 999px; display: grid; place-items: center; background: var(--accent-500); color: var(--brand-950); font-size: .7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ax-side-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08); }
.ax-side-foot a { display: flex; align-items: center; gap: .55rem; padding: .5rem .7rem; color: rgba(255,255,255,.6); font-size: .85rem; text-decoration: none; border-radius: 10px; }
.ax-side-foot a:hover { color: #fff; background: rgba(255,255,255,.05); }

.ax-main { min-width: 0; display: flex; flex-direction: column; }
.ax-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1rem; height: 64px; padding: 0 clamp(16px, 2.5vw, 2rem); background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.ax-title { font-weight: 700; color: var(--brand-900); font-size: 1rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-search { position: relative; flex: 1; max-width: 520px; margin-left: auto; }
.ax-search .icon { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.ax-search input { width: 100%; height: 40px; padding: 0 2.6rem 0 2.3rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font: 400 .9rem var(--font-text); color: var(--ink); }
.ax-search input:focus { outline: none; background: #fff; border-color: var(--brand-700); box-shadow: 0 0 0 3px rgba(48,46,119,.14); }
.ax-search kbd { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); font: 600 .72rem var(--font-text); color: var(--ink-3); border: 1px solid var(--line-strong); border-radius: 5px; padding: .05rem .4rem; background: #fff; }
.ax-user { position: relative; }
.ax-user summary { list-style: none; display: flex; align-items: center; gap: .55rem; cursor: pointer; padding: .25rem .35rem; border-radius: 999px; }
.ax-user summary::-webkit-details-marker { display: none; }
.ax-user summary:hover { background: var(--bg); }
.ax-user summary:focus-visible { outline: none; box-shadow: var(--focus); }
.ax-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-700); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.ax-user-name { font-size: .88rem; font-weight: 600; color: var(--ink); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-user-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .4rem; z-index: 40; }
.ax-user-head { padding: .7rem .75rem .8rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; display: grid; }
.ax-user-head span { font-size: .8rem; color: var(--ink-3); }
.ax-user-menu a, .ax-user-menu button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .6rem .75rem; border: 0; background: none; border-radius: 8px; color: var(--ink-2); font: 500 .88rem var(--font-text); text-decoration: none; cursor: pointer; text-align: left; }
.ax-user-menu a:hover, .ax-user-menu button:hover { background: var(--bg); color: var(--brand-900); }
.ax-user-menu form { margin: 0; }
.ax-menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--brand-900); place-items: center; cursor: pointer; }
.ax-content { padding: clamp(1.25rem, 2.5vw, 2rem); max-width: 1440px; width: 100%; }
.ax-scrim { position: fixed; inset: 0; background: rgba(19,18,58,.45); z-index: 45; }

@media (max-width: 1080px) {
  .ax { grid-template-columns: minmax(0, 1fr); }
  .ax-side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 50; transform: translateX(-100%); transition: transform .2s ease; }
  .ax-side.open { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.35); }
  .ax-menu-btn { display: grid; }
  .ax-user-name { display: none; }
}
@media (max-width: 640px) {
  .ax-top { gap: .6rem; }
  .ax-search kbd { display: none; }
  .ax-title { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ax-side { transition: none; } }

/* ==========================================================================
   Admin dashboard
   ========================================================================== */
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.dash-head h1 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); margin: 0 0 .2rem; }
.dash-head p { margin: 0; }
.dash-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.dash-actions .btn { gap: .45rem; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kpis { grid-template-columns: minmax(0, 1fr); } }
.kpi { display: flex; flex-direction: column; gap: .7rem; padding: 1.15rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(20,19,46,.04); transition: border-color .15s, box-shadow .15s; }
a.kpi:hover { border-color: var(--brand-100); box-shadow: 0 6px 20px rgba(48,46,119,.08); color: inherit; }
a.kpi:focus-visible { outline: none; box-shadow: var(--focus); }
.kpi-top { display: flex; align-items: center; gap: .6rem; }
.kpi-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-50); color: var(--brand-700); flex: none; }
.kpi-label { font-size: .85rem; color: var(--ink-2); font-weight: 500; }
.kpi-value { font-size: 1.75rem; font-weight: 700; letter-spacing: -.025em; color: var(--brand-900); font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .78rem; }
.kpi-delta { display: inline-flex; align-items: center; gap: .2rem; font-weight: 600; padding: .12rem .45rem; border-radius: 6px; }
.kpi-delta.up { background: var(--success-bg); color: var(--success); }
.kpi-delta.down { background: var(--danger-bg); color: var(--danger); }
.kpi-delta.neutral { background: var(--bg); color: var(--ink-3); }
.kpi-vs { color: var(--ink-3); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.25rem; align-items: start; }
@media (max-width: 1200px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
.dash-col { display: grid; gap: 1.25rem; min-width: 0; }
.dash-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.25rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.3rem; box-shadow: 0 1px 2px rgba(20,19,46,.04); min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.panel-head h2 { display: flex; align-items: center; gap: .5rem; font-size: 1rem; margin: 0; color: var(--brand-900); letter-spacing: -.01em; }
.panel-link { display: inline-flex; align-items: center; gap: .25rem; font-size: .82rem; font-weight: 600; color: var(--accent-600); text-decoration: none; }
.panel-link:hover { color: var(--brand-700); }
.panel .chart-title { display: none; }   /* the panel heading names the chart */
.panel .chart-plot { margin-top: 1rem; }
.empty-line { margin: 0; font-size: .9rem; }
.table-scroll { overflow-x: auto; margin: 0 -1.3rem; padding: 0 1.3rem; }
.panel .table th { background: transparent; padding-left: 0; }
.panel .table td { padding-left: 0; }

.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; margin: 0; }
.mini-stats dt { font-size: .8rem; color: var(--ink-3); }
.mini-stats dd { margin: .15rem 0 0; font-size: 1.4rem; font-weight: 700; color: var(--brand-900); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mini-stats dd small { font-size: .8rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }

.barlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.barlist li { display: grid; grid-template-columns: 110px minmax(0, 1fr) 44px; gap: .75rem; align-items: center; font-size: .85rem; }
.barlist-label { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-2); }
.barlist-label .icon { color: var(--ink-3); }
.barlist-track { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.barlist-track span { display: block; height: 100%; background: var(--chart-bar); border-radius: 4px; }
.barlist-value { text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.attn { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.attn a { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .55rem .5rem; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-size: .88rem; }
.attn a:hover { background: var(--bg); color: var(--brand-900); }
.attn-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--bg); color: var(--ink-3); }
.attn a.has .attn-icon { background: var(--warning-bg); color: var(--warning); }
.attn-n { font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.attn a.has .attn-n { color: var(--ink); }

.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.queue li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.queue li:last-child { border-bottom: 0; }
.queue-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--brand-100); color: var(--brand-800); font-size: .78rem; font-weight: 700; }
.queue-who { min-width: 0; }
.queue-who a { display: block; font-weight: 600; color: var(--brand-900); text-decoration: none; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-who a:hover { text-decoration: underline; }
.queue-who span { display: block; font-size: .78rem; color: var(--ink-3); }
.queue .btn { gap: .3rem; }

.health { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.health li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: .7rem; align-items: center; font-size: .88rem; }
.health-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-50); color: var(--brand-700); }
.health-name { color: var(--ink); font-weight: 500; }
.health-state { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 600; padding: .2rem .5rem; border-radius: 6px; }
.health-state.ok { background: var(--success-bg); color: var(--success); }
.health-state.warn { background: var(--warning-bg); color: var(--warning); }
.health-state.bad { background: var(--danger-bg); color: var(--danger); }
.health-state.off { background: var(--bg); color: var(--ink-3); }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.quick a { display: flex; flex-direction: column; gap: .5rem; padding: .85rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink-2); font-size: .84rem; font-weight: 500; }
.quick a .icon { color: var(--brand-700); }
.quick a:hover { border-color: var(--brand-100); background: var(--accent-50); color: var(--brand-900); }

.search-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 1.25rem; }
.result-list { list-style: none; margin: 0; padding: 0; display: grid; }
.result-list a { display: grid; gap: .1rem; padding: .7rem .5rem; border-radius: 10px; text-decoration: none; color: var(--ink); }
.result-list a:hover { background: var(--bg); }
.result-list strong { font-weight: 600; color: var(--brand-900); }
.result-list span { font-size: .82rem; color: var(--ink-3); }
/* Codes (order IDs, request references) never break across lines. */
.code { white-space: nowrap; }

/* DataTables: base styling (vendor CSS) with only the integration fixes below. */
.table-wrap:has(.dt-container) { overflow: visible; padding: .9rem 1rem; }
.dt-container .dt-layout-table { overflow-x: auto; }
.dt-container .dt-search input { min-width: 260px; }
table.dataTable td.dt-right, table.dataTable th.dt-right { text-align: right; }
.panel .dt-container, .card .dt-container { margin-top: .25rem; }
@media (max-width: 640px) { .dt-container .dt-search input { min-width: 0; width: 100%; } }

/* ==========================================================================
   Premium dashboard (.dx-*)
   One focal band, calm cards (16px radius, hairline border, soft depth),
   generous spacing, tabular numbers. Colour tokens only.
   ========================================================================== */
.ax-body { background: #f4f4fa; }
.dx-hero { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem; align-items: end;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 1.5rem; border-radius: 20px; color: #fff;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(143,140,230,.35), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(19,18,58,.6), transparent 70%),
    linear-gradient(135deg, var(--brand-700) 0%, var(--brand-800) 45%, var(--brand-900) 100%);
  box-shadow: 0 18px 40px -18px rgba(48,46,119,.55); }
.dx-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1.2px); background-size: 20px 20px; }
.dx-hero-motif { position: absolute; z-index: -1; right: 31%; top: 50%; width: 360px; transform: translate(50%, -46%); color: rgba(199,197,245,.14); pointer-events: none; }
.dx-eyebrow { margin: 0 0 .35rem; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-300); }
.dx-hero h1 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem); margin: 0 0 1.4rem; letter-spacing: -.025em; }
.dx-hero-metric { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .75rem; }
.dx-hero-label { width: 100%; font-size: .85rem; color: rgba(255,255,255,.72); }
.dx-hero-metric strong { font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); font-weight: 700; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.dx-hero-vs { font-size: .8rem; color: rgba(255,255,255,.6); }
.dx-hero-side { display: grid; gap: 1.25rem; justify-items: end; }
.dx-hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 0; margin: 0; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; backdrop-filter: blur(6px); }
.dx-hero-stats div { padding: .8rem 1.1rem; border-left: 1px solid rgba(255,255,255,.1); }
.dx-hero-stats div:first-child { border-left: 0; }
.dx-hero-stats dt { font-size: .72rem; color: rgba(255,255,255,.65); white-space: nowrap; }
.dx-hero-stats dd { margin: .2rem 0 0; font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dx-hero-stats dd small { font-size: .78rem; font-weight: 500; color: rgba(255,255,255,.6); margin-left: .2rem; }
.dx-hero-actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.dx-btn-light, .dx-btn-ghost { display: inline-flex; align-items: center; gap: .5rem; min-height: 42px; padding: .55rem 1.1rem; border-radius: 10px; font-weight: 600; font-size: .9rem; text-decoration: none; transition: background .15s, border-color .15s; }
.dx-btn-light { background: #fff; color: var(--brand-800); }
.dx-btn-light:hover { background: var(--accent-50); color: var(--brand-900); }
.dx-btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.3); }
.dx-btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.dx-btn-light:focus-visible, .dx-btn-ghost:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(199,197,245,.6); }
@media (max-width: 1180px) { .dx-hero { grid-template-columns: 1fr; } .dx-hero-side { justify-items: start; } .dx-hero-actions { justify-content: flex-start; } .dx-hero-motif { right: 8%; } }
@media (max-width: 640px) { .dx-hero-stats { grid-template-columns: repeat(2, 1fr); } .dx-hero-stats div:nth-child(3) { border-left: 0; } .dx-hero-stats div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); } }

.dx-delta { display: inline-flex; align-items: center; gap: .25rem; font-size: .76rem; font-weight: 600; padding: .18rem .5rem; border-radius: 999px; white-space: nowrap; }
.dx-delta.up { background: var(--success-bg); color: var(--success); }
.dx-delta.down { background: var(--danger-bg); color: var(--danger); }
.dx-delta.neutral { background: var(--bg); color: var(--ink-3); }
.dx-delta.on-dark.up { background: rgba(95,211,154,.18); color: #a7f0c8; }
.dx-delta.on-dark.down { background: rgba(246,163,155,.18); color: #ffc9c3; }
.dx-delta.on-dark.neutral { background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); }

.dx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 1280px) { .dx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dx-kpis { grid-template-columns: minmax(0, 1fr); } }
.dx-kpi, .dx-card { background: #fff; border: 1px solid #ebeaf3; border-radius: 16px; box-shadow: 0 1px 2px rgba(20,19,46,.04), 0 12px 24px -18px rgba(20,19,46,.18); }
.dx-kpi { padding: 1.1rem 1.2rem 1.15rem; display: grid; gap: 1rem; }
.dx-kpi header { display: flex; align-items: center; gap: .6rem; }
.dx-kpi h2 { font-size: .86rem; font-weight: 600; color: var(--ink-2); margin: 0; letter-spacing: 0; }
.dx-kpi-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-50); color: var(--brand-700); flex: none; }
.dx-kpi-link { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-3); }
.dx-kpi-link:hover { background: var(--bg); color: var(--brand-700); }
.dx-kpi-link:focus-visible { outline: none; box-shadow: var(--focus); }
.dx-kpi-body { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.dx-kpi-value { font-size: 1.85rem; font-weight: 700; letter-spacing: -.03em; color: var(--brand-900); line-height: 1.05; margin-bottom: .45rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 44px; flex: none; width: 96px; }
.spark-col { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; border-radius: 3px; outline: none; }
.spark-col:focus-visible { box-shadow: var(--focus); }
.spark-bar { display: block; width: 100%; border-radius: 3px 3px 1px 1px; background: var(--brand-100); }
.spark-col.is-last .spark-bar, .spark-col:hover .spark-bar { background: var(--chart-bar); }

.dx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.5rem; align-items: start; }
@media (max-width: 1280px) { .dx-grid { grid-template-columns: minmax(0, 1fr); } }
.dx-col { display: grid; gap: 1.5rem; min-width: 0; }
.dx-card { padding: 1.35rem 1.4rem; min-width: 0; }
.dx-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .75rem 1.5rem; margin-bottom: 1.1rem; }
.dx-card-head h2 { font-size: 1.02rem; margin: 0; color: var(--brand-900); letter-spacing: -.012em; }
.dx-card-head p { margin: .15rem 0 0; font-size: .8rem; color: var(--ink-3); }
.dx-link { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; font-weight: 600; color: var(--accent-600); text-decoration: none; padding: .3rem .55rem; margin: -.3rem -.55rem 0 0; border-radius: 8px; }
.dx-link:hover { background: var(--accent-50); color: var(--brand-700); }
.dx-summary { display: flex; gap: 1.5rem; margin: 0; }
.dx-summary dt { font-size: .72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.dx-summary dd { margin: .2rem 0 0; font-weight: 700; color: var(--brand-900); font-variant-numeric: tabular-nums; }
.dx-card .chart-title { display: none; }
.dx-card .chart-plot { height: 220px; margin-top: 1.25rem; }
.dx-empty { margin: 0; color: var(--ink-3); font-size: .9rem; }

.dx-feed { list-style: none; margin: 0; padding: 0; position: relative; }
.dx-feed::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.dx-feed li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: .85rem; align-items: center; padding: .55rem 0; }
.dx-feed-icon { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--brand-700); }
.dx-feed-icon.t-payment { background: var(--success-bg); border-color: transparent; color: var(--success); }
.dx-feed-icon.t-request { background: var(--accent-50); border-color: transparent; }
.dx-feed-text { font-size: .88rem; color: var(--ink-2); min-width: 0; }
.dx-feed-text a { color: var(--brand-900); text-decoration: none; }
.dx-feed-text a:hover { text-decoration: underline; }
.dx-feed-amt { font-weight: 600; color: var(--ink); margin-left: .25rem; font-variant-numeric: tabular-nums; }
.dx-feed time { font-size: .76rem; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }

.dx-prio { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.dx-prio a { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .65rem .75rem; border-radius: 12px; text-decoration: none; border: 1px solid transparent; }
.dx-prio a:hover { background: var(--bg); }
.dx-prio a:focus-visible { outline: none; box-shadow: var(--focus); }
.dx-prio-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.dx-prio a.is-open .dx-prio-icon { background: var(--warning-bg); color: var(--warning); }
.dx-prio a.is-open { background: #fffdf6; border-color: #f6ebcc; }
.dx-prio a.is-clear .dx-prio-icon { background: var(--success-bg); color: var(--success); }
.dx-prio-text strong { display: block; font-size: .88rem; color: var(--ink); font-weight: 600; }
.dx-prio-text span { display: block; font-size: .76rem; color: var(--ink-3); }
.dx-prio-n { font-weight: 700; font-size: .95rem; color: var(--ink); font-variant-numeric: tabular-nums; }

.dx-queue { list-style: none; margin: 0; padding: 0; }
.dx-queue li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--line); }
.dx-queue li:first-child { border-top: 0; padding-top: 0; }
.dx-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-100), #dcdaf4); color: var(--brand-700); font-weight: 700; font-size: .8rem; }
.dx-queue-who { min-width: 0; }
.dx-queue-who a { display: block; font-weight: 600; font-size: .9rem; color: var(--brand-900); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-queue-who a:hover { text-decoration: underline; }
.dx-queue-who span { display: block; font-size: .76rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-queue form { margin: 0; }
.dx-verify { display: inline-flex; align-items: center; gap: .3rem; height: 32px; padding: 0 .75rem; border-radius: 8px; border: 1px solid var(--brand-100); background: var(--accent-50); color: var(--brand-700); font: 600 .8rem var(--font-text); cursor: pointer; }
.dx-verify:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.dx-verify:focus-visible { outline: none; box-shadow: var(--focus); }

.dx-health { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.dx-health li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: .8rem; align-items: center; }
.dx-health-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-50); color: var(--brand-700); }
.dx-health-name strong { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); }
.dx-health-name span { display: block; font-size: .76rem; color: var(--ink-3); }
.dx-pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 600; padding: .22rem .55rem; border-radius: 999px; }
.dx-pill.ok { background: var(--success-bg); color: var(--success); }
.dx-pill.warn { background: var(--warning-bg); color: var(--warning); }
.dx-pill.bad { background: var(--danger-bg); color: var(--danger); }
.dx-pill.off { background: var(--bg); color: var(--ink-3); }

/* Dashboard polish */
.dx-kpi { min-width: 0; }
.dx-kpi-body > div:first-child { min-width: 0; }
.dx-kpi-value { font-size: clamp(1.35rem, .9rem + 1.1vw, 1.85rem); }
.spark { width: 80px; }
.dx-card .dt-container { margin: 0 -.25rem; }
/* Figure cards adapt to their own width: narrow cards put the trend under the number. */
.dx-kpi { container-type: inline-size; overflow: hidden; }
@container (max-width: 300px) {
  .dx-kpi-body { flex-direction: column; align-items: stretch; gap: .8rem; }
  .spark { width: 100%; height: 30px; gap: 4px; }
}
.dx-summary { flex-wrap: wrap; gap: .75rem 1.5rem; }
.dx-summary dd, .dx-summary dt { white-space: nowrap; }

/* ==========================================================================
   DESIGN SYSTEM v2 — components on top of Bootstrap 5.3
   Every component below is shared by the website, account area and admin
   console. Later rules intentionally override earlier ones in this file.
   ========================================================================== */
body { font-family: var(--font-text); font-size: .9375rem; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1 { font-size: clamp(1.6rem, 1.25rem + 1.1vw, 2.1rem); }
h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
h3 { font-size: 1.1rem; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--ink); letter-spacing: -.02em; }
.muted, .text-muted { color: var(--ink-3) !important; }
a { color: var(--brand-700); }
a:hover { color: var(--brand-800); }
::selection { background: var(--accent-300); color: var(--brand-950); }

/* ---- Buttons --------------------------------------------------------------- */
.btn { --bs-btn-padding-x: 1.05rem; --bs-btn-padding-y: .55rem; --bs-btn-font-size: .9rem; --bs-btn-font-weight: 600; --bs-btn-border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 42px; padding: .55rem 1.05rem; border-radius: 10px;
  font: 600 .9rem/1.2 var(--font-text); letter-spacing: 0; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .08s; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn-sm { min-height: 34px; padding: .35rem .75rem; font-size: .82rem; border-radius: 8px; gap: .35rem; }
.btn-lg { min-height: 50px; padding: .75rem 1.4rem; font-size: 1rem; }
.btn-primary { --bs-btn-bg: var(--brand-700); --bs-btn-border-color: var(--brand-700); --bs-btn-hover-bg: var(--brand-800); --bs-btn-hover-border-color: var(--brand-800); --bs-btn-active-bg: var(--brand-900); --bs-btn-disabled-bg: var(--brand-700);
  background: var(--brand-700); border: 1px solid var(--brand-700); color: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.08); }
.btn-primary:hover, .btn-primary:focus { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.btn-outline, .btn-outline-secondary, .btn-light { background: #fff; border: 1px solid var(--line-strong); color: var(--ink); }
.btn-outline:hover, .btn-outline-secondary:hover, .btn-light:hover { background: var(--bg); border-color: #c4cdd9; color: var(--ink); }
.btn-outline-primary { background: #fff; border: 1px solid var(--brand-100); color: var(--brand-700); }
.btn-outline-primary:hover { background: var(--accent-50); border-color: var(--accent-300); color: var(--brand-800); }
.btn-gold, .btn-accent { background: var(--accent-500); border: 1px solid var(--accent-500); color: var(--brand-950); }
.btn-gold:hover, .btn-accent:hover { background: var(--accent-300); border-color: var(--accent-300); color: var(--brand-950); }
.btn-danger { background: var(--danger); border: 1px solid var(--danger); color: #fff; }
.btn-danger:hover { background: #b02a37; border-color: #b02a37; color: #fff; }
.btn-success { background: var(--success); border: 1px solid var(--success); color: #fff; }
.btn-link { background: none; border: 0; min-height: 0; padding: 0; color: var(--brand-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .6; pointer-events: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: rgba(255,255,255,.9) rgba(255,255,255,.9) transparent transparent; animation: spin .7s linear infinite; }
.btn-outline.is-loading::after, .btn-light.is-loading::after, .btn-outline-primary.is-loading::after { border-color: var(--brand-700) var(--brand-700) transparent transparent; }

/* ---- Forms ----------------------------------------------------------------- */
.field { margin-bottom: 1.1rem; }
.field label, .label, .form-label { display: block; font-weight: 600; font-size: .86rem; color: var(--ink); margin-bottom: .4rem; }
.req::after { content: " *"; color: var(--danger); font-weight: 700; }
.input, .form-control, .form-select, select.input, textarea.input {
  width: 100%; min-height: 42px; padding: .55rem .85rem; font: 400 .9375rem/1.4 var(--font-text); color: var(--ink);
  background-color: #fff; border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 1px 2px rgba(15,23,42,.03);
  transition: border-color .15s, box-shadow .15s, background-color .15s; }
.input::placeholder, .form-control::placeholder { color: #94a3b8; }
.input:hover, .form-control:hover, .form-select:hover { border-color: #c4cdd9; }
.input:focus, .form-control:focus, .form-select:focus { outline: none; border-color: var(--brand-700); box-shadow: var(--focus); }
.input:disabled, .form-control:disabled { background: var(--bg); color: var(--ink-3); }
select.input, .form-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='%2364748b' stroke-width='2' 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 .8rem center; background-size: 16px; }
textarea.input { min-height: 110px; }
.input.is-invalid, .form-control.is-invalid { border-color: var(--danger); background-image: none; }
.input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220,53,69,.18); }
.field .hint, .form-text { font-size: .8rem; color: var(--ink-3); margin-top: .35rem; }
.field-error, .invalid-feedback { display: flex; align-items: flex-start; gap: .35rem; color: var(--danger); font-size: .8rem; font-weight: 500; margin-top: .35rem; }
.field-error::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 1px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") center/contain no-repeat; }
.form-check-input:checked { background-color: var(--brand-700); border-color: var(--brand-700); }
.form-check-input:focus { box-shadow: var(--focus); border-color: var(--brand-700); }
input[type="checkbox"]:not(.form-check-input), input[type="radio"]:not(.form-check-input) { accent-color: var(--brand-700); width: 16px; height: 16px; }
.role-option label { border-radius: 12px; border-color: var(--line-strong); }
.role-option input:checked + label { border-color: var(--brand-700); background: var(--accent-50); box-shadow: inset 0 0 0 1px var(--brand-700); }

/* ---- Cards (several treatments; not every card is the same) ---------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.4rem; color: var(--ink); }
.card.card-flat { box-shadow: none; }
.card.card-tint { background: linear-gradient(180deg, #fbfbff 0%, #fff 60%); border-color: #e4e3f5; }
.card.card-accent { border-top: 3px solid var(--brand-700); }
.card-body { padding: 0; }
.stat-label { font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.grid-cards .card { transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover, .grid-cards a.card:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 18px 32px -18px rgba(15,23,42,.25); border-color: #d9dcf1; color: inherit; }

/* ---- Badges & status pills ------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .6rem; border-radius: 999px; font: 600 .74rem/1.2 var(--font-text); letter-spacing: 0; white-space: nowrap; }
.badge-success, .status-completed, .status-accepted { background: var(--success-bg); color: #0f7a4f; }
.badge-warning, .status-pending { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: #b02a37; }
.badge-neutral, .status-declined, .status-cancelled { background: #eef1f6; color: var(--ink-2); }
.badge-verified { background: var(--accent-50); color: var(--brand-700); border: 1px solid #dcdaf4; }
.status-accepted { background: var(--info-bg); color: var(--brand-700); }
.status { padding: .28rem .65rem; font-size: .76rem; }
.badge::before { content: none; }
.badge-success::before, .badge-warning::before, .badge-danger::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---- Alerts & empty states -------------------------------------------------- */
.alert { display: flex; align-items: flex-start; gap: .6rem; padding: .85rem 1rem; border-radius: 12px; font-size: .9rem; border: 1px solid transparent; margin-bottom: 1.25rem; }
.alert-success { background: var(--success-bg); color: #0f7a4f; border-color: #c9ecdb; }
.alert-danger { background: var(--danger-bg); color: #b02a37; border-color: #f6cbd0; }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: #f8e3b2; }
.alert-info { background: var(--info-bg); color: var(--brand-800); border-color: #dcdaf4; }
.empty { text-align: center; padding: 3rem 1.5rem; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty-icon { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 16px; display: grid; place-items: center; background: var(--accent-50); color: var(--brand-700); }
.empty h3 { margin-bottom: .35rem; }

/* ---- Tables (Bootstrap 5 + DataTables Bootstrap 5 integration) ------------- */
.table { --bs-table-bg: transparent; --bs-table-hover-bg: #f8f9fd; --bs-table-striped-bg: #fafbfd; --bs-table-border-color: var(--line);
  width: 100%; margin: 0; font-size: .88rem; color: var(--ink); border-collapse: separate; border-spacing: 0; }
.table > thead > tr > th, .table th { background: #f8fafc; color: var(--ink-3); font: 600 .72rem/1.3 var(--font-text); text-transform: uppercase; letter-spacing: .06em;
  padding: .7rem .9rem; border-bottom: 1px solid var(--line); border-top: 0; white-space: nowrap; vertical-align: middle; }
.table > tbody > tr > td, .table td { padding: .75rem .9rem; border-bottom: 1px solid #eef1f6; vertical-align: middle; background: transparent; }
.table > tbody > tr:last-child > td { border-bottom: 0; }
.table > tbody > tr:hover > td { background: #f8f9fd; }
.table .num, .table th.num, table.dataTable td.dt-right, table.dataTable th.dt-right { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.table-wrap > .table th:first-child, .table-wrap > .table td:first-child { padding-left: 1.25rem; }
.table-wrap > .table th:last-child, .table-wrap > .table td:last-child { padding-right: 1.25rem; }
.cell-main { font-weight: 600; color: var(--ink); text-decoration: none; }
a.cell-main:hover { color: var(--brand-700); text-decoration: underline; }
.cell-sub { font-size: .78rem; color: var(--ink-3); }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; background: #f1f4f9; color: var(--ink); padding: .12rem .4rem; border-radius: 6px; text-decoration: none; white-space: nowrap; }
a.code:hover { background: var(--accent-50); color: var(--brand-700); }
/* DataTables chrome */
div.dt-container { font-size: .875rem; }
.table-wrap:has(.dt-container) { padding: 0; overflow: visible; }
.table-wrap div.dt-container > .dt-layout-row:first-child, .table-wrap div.dt-container > .dt-layout-row:last-child { padding: .9rem 1.25rem; margin: 0; }
.table-wrap div.dt-container > .dt-layout-row:first-child { border-bottom: 1px solid var(--line); }
.table-wrap div.dt-container > .dt-layout-row:last-child { border-top: 1px solid var(--line); }
div.dt-container .dt-layout-table { margin: 0 !important; overflow-x: auto; }
div.dt-container .dt-search input, div.dt-container .dt-length select { min-height: 38px; border: 1px solid var(--line-strong); border-radius: 10px; padding: .4rem .75rem; font-size: .875rem; box-shadow: none; }
div.dt-container .dt-search input { min-width: 280px; padding-left: 2.2rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat .75rem center / 15px; }
div.dt-container .dt-search input:focus, div.dt-container .dt-length select:focus { border-color: var(--brand-700); box-shadow: var(--focus); outline: none; }
div.dt-container .dt-length label, div.dt-container .dt-info { color: var(--ink-3); font-size: .82rem; }
div.dt-container .pagination { --bs-pagination-color: var(--ink-2); --bs-pagination-border-color: var(--line); --bs-pagination-hover-bg: var(--bg); --bs-pagination-hover-color: var(--brand-700); --bs-pagination-active-bg: var(--brand-700); --bs-pagination-active-border-color: var(--brand-700); --bs-pagination-focus-box-shadow: var(--focus); --bs-pagination-font-size: .82rem; gap: .25rem; margin: 0; }
div.dt-container .pagination .page-link { border-radius: 8px !important; min-width: 34px; text-align: center; }
div.dt-processing { border: 0 !important; background: rgba(255,255,255,.85); box-shadow: var(--shadow); border-radius: 12px; font-weight: 600; color: var(--brand-700); }
div.dt-processing > div:last-child > div { background: var(--brand-700); }
table.dataTable thead > tr > th.dt-orderable-asc span.dt-column-order, table.dataTable thead > tr > th.dt-orderable-desc span.dt-column-order { opacity: .7; }
table.dataTable > tbody > tr > td.dt-empty { padding: 2.5rem 1rem; color: var(--ink-3); text-align: center; }
.panel .dt-container .dt-layout-row:first-child, .dx-card .dt-container .dt-layout-row:first-child, .card .dt-container .dt-layout-row:first-child { padding: 0 0 .75rem; border: 0; }
@media (max-width: 640px) { div.dt-container .dt-search input { min-width: 0; width: 100%; } div.dt-container .dt-layout-row { flex-direction: column; align-items: stretch !important; gap: .6rem; } }

/* ---- Dropdowns, modals, toasts, SweetAlert2 ------------------------------- */
.dropdown-menu { --bs-dropdown-border-color: var(--line); --bs-dropdown-border-radius: 12px; --bs-dropdown-link-hover-bg: var(--bg); --bs-dropdown-link-active-bg: var(--accent-50); --bs-dropdown-link-active-color: var(--brand-700); --bs-dropdown-font-size: .88rem;
  padding: .4rem; box-shadow: var(--shadow-lg); animation: pop-in .14s ease-out; }
.dropdown-item { border-radius: 8px; padding: .5rem .7rem; display: flex; align-items: center; gap: .55rem; color: var(--ink-2); }
.modal-content { border: 0; border-radius: 18px; box-shadow: var(--shadow-lg); }
.modal-header, .modal-footer { border-color: var(--line); padding: 1.1rem 1.4rem; }
.modal-body { padding: 1.4rem; }
.swal2-popup { font-family: var(--font-text) !important; border-radius: 18px !important; padding: 1.6rem 1.4rem 1.4rem !important; }
.swal2-title { font-family: var(--font-display) !important; font-size: 1.25rem !important; color: var(--ink) !important; }
.swal2-html-container { color: var(--ink-2) !important; font-size: .92rem !important; }
.swal2-actions { gap: .5rem; }
.swal2-actions .btn { min-width: 110px; }
.swal2-icon { transform: scale(.82); margin-top: .25rem !important; }
.swal2-toast { border-radius: 12px !important; box-shadow: var(--shadow-lg) !important; padding: .7rem 1rem !important; }
.swal2-toast .swal2-title { font-family: var(--font-text) !important; font-size: .9rem !important; font-weight: 600 !important; }
.swal2-timer-progress-bar { background: var(--brand-700) !important; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---- Skeleton loading ------------------------------------------------------- */
.skeleton { position: relative; overflow: hidden; background: #eef1f6; border-radius: 8px; color: transparent !important; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skeleton::after, .dropdown-menu { animation: none; } }

/* ---- Page header used across admin and account pages ----------------------- */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.page-head h1 { margin: 0; }
.page-head .page-sub { margin: .25rem 0 0; color: var(--ink-3); font-size: .92rem; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; padding: .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.filters .input { min-height: 38px; width: auto; font-size: .875rem; }
.filters .btn { min-height: 38px; }

/* ---- Admin shell v2: collapsible rail, Bootstrap dropdown profile ---------- */
.ax-body { background: var(--bg); }
.ax-side { width: 256px; transition: width .2s ease; }
.ax-nav a { font-size: .875rem; }
.ax-collapse-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-3); cursor: pointer; flex: none; }
.ax-collapse-btn:hover { color: var(--brand-700); border-color: var(--line-strong); }
.ax-collapse-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.ax-title { font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); }
.ax-user-btn { display: flex; align-items: center; gap: .6rem; padding: .3rem .5rem .3rem .3rem; border: 1px solid transparent; border-radius: 999px; background: none; cursor: pointer; color: var(--ink); }
.ax-user-btn:hover, .ax-user-btn[aria-expanded="true"] { background: var(--bg); border-color: var(--line); }
.ax-user-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.ax-user-meta { display: grid; text-align: left; line-height: 1.15; }
.ax-user-meta strong { font-size: .84rem; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-user-meta small { font-size: .72rem; color: var(--ink-3); }
.ax-user-caret { color: var(--ink-3); }
.ax-user-menu { width: 270px; position: absolute; }
.ax-user-head { display: flex; gap: .7rem; align-items: center; padding: .6rem .7rem .8rem; margin-bottom: .3rem; border-bottom: 1px solid var(--line); }
.ax-user-head strong { display: block; font-size: .88rem; }
.ax-user-head span { display: block; font-size: .78rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.ax-avatar { background: linear-gradient(135deg, var(--brand-700), var(--purple)); }
.ax-avatar-lg { width: 40px; height: 40px; font-size: .85rem; }
.ax-user-menu form { margin: 0; }
.ax-user-menu .dropdown-item { width: 100%; border: 0; background: none; text-align: left; }
.ax-user-menu .dropdown-item.text-danger:hover { background: var(--danger-bg); }
/* Collapsed rail (desktop only) */
@media (min-width: 1081px) {
  .ax.is-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
  .ax.is-collapsed .ax-side { width: 76px; padding-left: .7rem; padding-right: .7rem; }
  .ax.is-collapsed .ax-brand span, .ax.is-collapsed .ax-nav a > span:not(.ax-count), .ax.is-collapsed .ax-side-foot a { font-size: 0; }
  .ax.is-collapsed .ax-brand span, .ax.is-collapsed .ax-group { display: none; }
  .ax.is-collapsed .ax-brand { justify-content: center; padding-left: 0; padding-right: 0; }
  .ax.is-collapsed .ax-nav a { justify-content: center; padding: .65rem 0; }
  .ax.is-collapsed .ax-nav a > span:not(.ax-count) { display: none; }
  .ax.is-collapsed .ax-count { position: absolute; top: 2px; right: 4px; min-width: 18px; height: 16px; font-size: .62rem; padding: 0 .3rem; }
  .ax.is-collapsed .ax-nav a[aria-current="page"]::before { left: -.7rem; }
  .ax.is-collapsed .ax-nav { gap: 4px; padding-top: .5rem; }
  .ax.is-collapsed .ax-side-foot a { justify-content: center; }
}
@media (max-width: 1080px) { .ax-collapse-btn { display: none; } }
@media (max-width: 640px) { .ax-user-meta, .ax-user-caret { display: none; } }

/* ---- Account shell: light sidebar variant --------------------------------- */
.ax--light .ax-side { background: #fff; background-image: none; color: var(--ink-2); border-right: 1px solid var(--line); }
.ax--light .ax-brand { color: var(--ink); border-bottom-color: var(--line); }
.ax--light .ax-brand img { box-shadow: none; }
.ax--light .ax-brand small { color: var(--accent-600); }
.ax--light .ax-group { color: #94a3b8; }
.ax--light .ax-nav a { color: var(--ink-2); }
.ax--light .ax-nav a:hover { background: var(--bg); color: var(--ink); }
.ax--light .ax-nav a[aria-current="page"] { background: var(--accent-50); color: var(--brand-700); }
.ax--light .ax-nav a[aria-current="page"] .icon { color: var(--brand-700); }
.ax--light .ax-nav a[aria-current="page"]::before { background: var(--brand-700); }
.ax--light .ax-nav a:focus-visible { box-shadow: var(--focus); }
.ax--light .ax-count { background: var(--warning-bg); color: var(--warning); }
.ax--light .ax-side-foot { border-top-color: var(--line); }
.ax--light .ax-side-foot a { color: var(--ink-3); }
.ax--light .ax-side-foot a:hover { background: var(--bg); color: var(--ink); }
.ax-content > h1:first-child, .ax-content > .alert + h1 { margin-bottom: .35rem; }

/* ---- Public site: Bootstrap navbar ---------------------------------------- */
.site-header { background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .navbar { padding: .7rem 0; }
.site-header .navbar-nav { gap: .25rem; }
.site-header .nav-link { color: var(--ink-2); font-weight: 500; font-size: .92rem; padding: .5rem .8rem !important; border-radius: 8px; }
.site-header .nav-link:hover { color: var(--ink); background: var(--bg); }
.site-header .nav-link.active, .site-header .nav-link[aria-current="page"] { color: var(--brand-700); background: var(--accent-50); }
.site-header .navbar-toggler { border: 1px solid var(--line-strong); border-radius: 10px; padding: .45rem .55rem; color: var(--ink); }
.site-header .navbar-toggler:focus { box-shadow: var(--focus); }
.site-header .brand-name { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
@media (max-width: 1199.98px) {
  .site-header .navbar-collapse { padding: .75rem 0 .5rem; }
  .site-header .navbar-nav { gap: 2px; }
  .site-header .site-actions { flex-direction: column; align-items: stretch; margin-top: .75rem; }
  .site-header .site-actions .btn { display: flex !important; width: 100%; }
}
/* DataTables Bootstrap 5 rows are Bootstrap .row elements: remove gutters, pad the toolbars. */
div.dt-container > .row { --bs-gutter-x: 0; margin-left: 0; margin-right: 0; align-items: center; }
.table-wrap div.dt-container > .row { margin-top: 0 !important; padding: .85rem 1.25rem; }
.table-wrap div.dt-container > .row:first-child { border-bottom: 1px solid var(--line); background: #fcfcfe; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.table-wrap div.dt-container > .row:last-child { border-top: 1px solid var(--line); }
.table-wrap div.dt-container > .row:has(table) { padding: 0; overflow-x: auto; }
.table-wrap div.dt-container > .row:has(table) > div { padding: 0; }
.dx-card div.dt-container > .row, .card div.dt-container > .row, .panel div.dt-container > .row { margin-top: .5rem; }
.dx-card div.dt-container > .row:has(table), .card div.dt-container > .row:has(table) { overflow-x: auto; }
div.dt-container .dt-length select { width: auto; display: inline-block; margin-right: .4rem; }
/* Filter bar selects keep room for the chevron. */
.filters select.input { padding-right: 2.2rem; }
div.dt-container .dt-length select { padding-right: 2rem; min-width: 72px; }

/* ==========================================================================
   Premium list pages (advocates, clients, requests)
   ========================================================================== */
.insights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 1200px) { .insights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .insights { grid-template-columns: minmax(0, 1fr); } }
.insight { --tone: var(--brand-700); --tone-bg: var(--accent-50); position: relative; display: flex; gap: .9rem; align-items: flex-start; padding: 1.15rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); text-decoration: none; color: inherit; overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.insight::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--tone); opacity: 0; transition: opacity .15s; }
a.insight:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 18px 32px -18px rgba(15,23,42,.25); color: inherit; }
a.insight:hover::after, .insight.is-active::after { opacity: 1; }
a.insight:focus-visible { outline: none; box-shadow: var(--focus); }
.insight.is-active { border-color: color-mix(in srgb, var(--tone) 35%, var(--line)); background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--tone-bg) 60%, #fff) 100%); }
.insight.tone-success { --tone: var(--success); --tone-bg: var(--success-bg); }
.insight.tone-warning { --tone: var(--warning-solid); --tone-bg: var(--warning-bg); }
.insight.tone-purple { --tone: var(--purple); --tone-bg: var(--purple-50); }
.insight-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tone-bg); color: var(--tone); }
.insight.tone-warning .insight-icon { color: var(--warning); }
.insight-body { display: grid; gap: .1rem; min-width: 0; }
.insight-label { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.insight-value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink); line-height: 1.15; font-variant-numeric: tabular-nums; }
.insight-hint { font-size: .76rem; color: var(--ink-3); }

.list-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.list-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); }
.seg-tabs { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .25rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.seg-tabs a { display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .8rem; border-radius: 9px; font-size: .84rem; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.seg-tabs a:hover { color: var(--ink); background: rgba(255,255,255,.7); }
.seg-tabs a[aria-current="page"] { background: #fff; color: var(--brand-700); box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 0 0 1px var(--line); }
.seg-tabs a:focus-visible { outline: none; box-shadow: var(--focus); }
.seg-count { min-width: 22px; padding: 0 .4rem; height: 20px; border-radius: 999px; display: inline-grid; place-items: center; background: #e9edf3; color: var(--ink-2); font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.seg-tabs a[aria-current="page"] .seg-count { background: var(--accent-50); color: var(--brand-700); }
.list-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.list-filters .form-select-sm { min-height: 36px; width: auto; min-width: 150px; font-size: .84rem; padding-top: .35rem; padding-bottom: .35rem; border-radius: 9px; }
.list-filters .btn-sm { min-height: 36px; }
.list-filters .form-switch .form-check-input { width: 2.2em; height: 1.2em; cursor: pointer; }
.table-wrap--flush { border: 0; border-radius: 0; box-shadow: none; }
.table-wrap--flush div.dt-container > .row:first-child { background: #fff; border-radius: 0; }
@media (max-width: 900px) { .list-card-head { flex-direction: column; align-items: stretch; } .seg-tabs { overflow-x: auto; flex-wrap: nowrap; } .list-filters .form-select-sm { flex: 1 1 140px; } }

.person { display: flex; align-items: center; gap: .75rem; min-width: 220px; }
.person-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font: 700 .78rem var(--font-text); color: var(--brand-700); background: var(--accent-50); box-shadow: inset 0 0 0 1px rgba(48,46,119,.08); }
.person-avatar.tone-1 { background: #eef6ff; color: #1d4ed8; } .person-avatar.tone-2 { background: #ecfdf5; color: #047857; }
.person-avatar.tone-3 { background: #fdf2f8; color: #be185d; } .person-avatar.tone-4 { background: #fff7ed; color: #c2410c; } .person-avatar.tone-5 { background: var(--purple-50); color: var(--purple); }
.person-text { min-width: 0; }
.person-text .cell-main { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.person-text .cell-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.flag-review { display: inline-flex; align-items: center; gap: .2rem; margin-left: .35rem; padding: .05rem .4rem; border-radius: 6px; background: var(--warning-bg); color: var(--warning); font-size: .7rem; font-weight: 600; }
.id-chip { display: inline-block; font: 600 .78rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; padding: .12rem .45rem; border-radius: 6px; background: #f1f4f9; color: var(--ink-2); border: 1px solid #e6ebf2; white-space: nowrap; }
.badge-icon { gap: .3rem; }
.badge-icon::before { content: none !important; }
.num-strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.sub-state { display: grid; gap: .25rem; font-size: .82rem; font-weight: 600; min-width: 130px; }
.sub-state.sub-ended { display: inline-flex; align-items: center; gap: .3rem; color: var(--ink-3); font-weight: 500; }
.sub-ok { color: #0f7a4f; } .sub-warn { color: var(--warning); }
.sub-bar { display: block; height: 5px; border-radius: 3px; background: #eef1f6; overflow: hidden; }
.sub-bar span { display: block; height: 100%; border-radius: 3px; background: currentColor; }
.row-actions { display: flex; justify-content: flex-end; gap: .35rem; }
.row-actions form { margin: 0; }
.row-actions .btn-sm { min-height: 32px; padding: .3rem .6rem; }
.table > tbody > tr > td:last-child { white-space: nowrap; }
.flag-suspended { display: inline-flex; align-items: center; gap: .2rem; margin-left: .35rem; padding: .05rem .4rem; border-radius: 6px; background: var(--danger-bg); color: #b02a37; font-size: .7rem; font-weight: 600; }
.person { min-width: 200px; }
.person-text .cell-main { max-width: 200px; }
.person-text .cell-sub { max-width: 230px; }
/* Absolutely positioned bits inside tables (e.g. visually-hidden header labels) must stay inside the scroll container. */
div.dt-container > .row:has(table), .table-wrap, .list-card { position: relative; }
.table > thead > tr > th { position: relative; }
.verif-cell { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.sub-state.sub-ended { white-space: nowrap; }
.sub-state { min-width: 120px; }
.list-card .table > tbody > tr > td, .list-card .table > thead > tr > th { padding-left: .75rem; padding-right: .75rem; }
.list-card .table > tbody > tr > td:first-child, .list-card .table > thead > tr > th:first-child { padding-left: 1.25rem; }
.list-card .table > tbody > tr > td:last-child, .list-card .table > thead > tr > th:last-child { padding-right: 1.25rem; }
.btn-icon { width: 34px; min-width: 34px; padding: 0 !important; justify-content: center; }
.btn-sm.btn-icon { width: 32px; min-width: 32px; height: 32px; min-height: 32px; }
.tooltip { --bs-tooltip-bg: var(--brand-950); --bs-tooltip-font-size: .76rem; --bs-tooltip-border-radius: 8px; }

/* ---- View switch, grid cards, modal forms --------------------------------- */
.view-switch { display: inline-flex; padding: .2rem; gap: .2rem; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.view-switch button { display: inline-flex; align-items: center; gap: .35rem; height: 32px; padding: 0 .7rem; border: 0; border-radius: 8px; background: none; color: var(--ink-3); font: 600 .8rem var(--font-text); cursor: pointer; }
.view-switch button:hover { color: var(--ink); }
.view-switch button.active { background: #fff; color: var(--brand-700); box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 0 0 1px var(--line); }
.view-switch button:focus-visible { outline: none; box-shadow: var(--focus); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.1rem; }
.gcard { position: relative; display: flex; flex-direction: column; gap: .9rem; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s; }
.gcard:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 18px 32px -18px rgba(15,23,42,.25); border-color: #d9dcf1; }
.gcard.is-muted { background: #fbfcfd; }
.gcard.is-muted .gcard-title { color: var(--ink-3); }
.gcard-head { display: flex; align-items: flex-start; gap: .8rem; }
.gcard-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-50); color: var(--brand-700); }
.gcard-title { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; color: var(--ink); margin: 0; line-height: 1.3; }
.gcard-sub { font-size: .82rem; color: var(--ink-3); margin: .15rem 0 0; }
.gcard-head .gcard-status { margin-left: auto; }
.gcard-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding: .8rem 0 0; border-top: 1px solid var(--line); margin-top: auto; }
.gcard-meta div { min-width: 0; }
.gcard-meta dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
.gcard-meta dd { margin: .1rem 0 0; font-weight: 700; font-size: .92rem; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard-actions { display: flex; gap: .5rem; }
.gcard-actions .btn { flex: 1; }
.gcard-price { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.gcard-price small { font: 500 .85rem var(--font-text); color: var(--ink-3); letter-spacing: 0; margin-left: .2rem; }
.gcard-add { align-items: center; justify-content: center; text-align: center; border: 1.5px dashed var(--line-strong); box-shadow: none; background: transparent; color: var(--ink-3); cursor: pointer; min-height: 210px; font: inherit; }
.gcard-add:hover { border-color: var(--brand-700); color: var(--brand-700); background: var(--accent-50); }
.gcard-add .gcard-icon { background: #fff; border: 1px solid var(--line); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1.1rem; }
.toolbar-left { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.modal-header .modal-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.modal-header .btn-close:focus { box-shadow: var(--focus); }
.modal-backdrop { --bs-backdrop-bg: #0f172a; --bs-backdrop-opacity: .45; }
.modal.fade .modal-dialog { transform: translateY(12px) scale(.98); transition: transform .2s ease-out; }
.modal.show .modal-dialog { transform: none; }
.perm-group { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
.perm-group legend { float: none; width: auto; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--ink-3); padding: 0 .35rem; margin: 0; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: .75rem; }
.badge-info { background: var(--info-bg); color: var(--brand-700); }
.mini-person { display: inline-flex; align-items: center; gap: .5rem; max-width: 190px; color: var(--ink); text-decoration: none; font-weight: 500; }
.mini-person:hover { color: var(--brand-700); }
.mini-avatar { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 .64rem var(--font-text); background: var(--accent-50); color: var(--brand-700); }
.mini-avatar.tone-1 { background: #eef6ff; color: #1d4ed8; } .mini-avatar.tone-2 { background: #ecfdf5; color: #047857; } .mini-avatar.tone-3 { background: #fdf2f8; color: #be185d; } .mini-avatar.tone-4 { background: #fff7ed; color: #c2410c; } .mini-avatar.tone-5 { background: var(--purple-50); color: var(--purple); }
.amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.amount.is-dim { color: var(--ink-3); font-weight: 600; }
.method { display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; font-size: .85rem; }
.method-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--success-bg); color: #0f7a4f; flex: none; }
.method-icon.is-card { background: var(--accent-50); color: var(--brand-700); }
.list-filters .form-control-sm { min-height: 36px; width: auto; font-size: .84rem; border-radius: 9px; padding: .35rem .6rem; }

/* ==========================================================================
   Admin shell v3 — premium sidebar and top bar
   ========================================================================== */
.ax { grid-template-columns: 268px minmax(0, 1fr); }
.ax-side { width: 268px; padding: 1rem .9rem 1rem; gap: .25rem; color: rgba(226,228,255,.72);
  background:
    radial-gradient(420px 260px at 0% 0%, rgba(124,58,237,.22), transparent 70%),
    radial-gradient(380px 300px at 100% 100%, rgba(48,46,119,.55), transparent 70%),
    linear-gradient(180deg, #1b1950 0%, #141239 55%, #100f30 100%);
  border-right: 1px solid rgba(255,255,255,.05); box-shadow: inset -1px 0 0 rgba(255,255,255,.03); }
.ax-side::-webkit-scrollbar { width: 8px; }
.ax-side::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 8px; }
.ax-brand { gap: .75rem; padding: .4rem .45rem 1.1rem; margin-bottom: .5rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.ax-brand img { width: 38px; height: 38px; box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 6px 16px rgba(0,0,0,.35); }
.ax-brand-text strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.ax-brand-text small { display: inline-block; margin-top: .2rem; padding: .1rem .45rem; border-radius: 999px; background: rgba(199,197,245,.12); border: 1px solid rgba(199,197,245,.18); color: var(--accent-300); font-size: .62rem; letter-spacing: .1em; }
.ax-group { margin: 1.2rem .75rem .45rem; font-size: .64rem; letter-spacing: .14em; color: rgba(199,197,245,.42); }
.ax-nav { gap: 3px; }
.ax-nav a { min-height: 40px; padding: .5rem .75rem; gap: .75rem; border-radius: 10px; color: rgba(226,228,255,.7); font-weight: 500; font-size: .875rem; transition: background .15s, color .15s; }
.ax-nav a .icon { opacity: .8; transition: opacity .15s, color .15s; }
.ax-nav a:hover { background: rgba(255,255,255,.055); color: #fff; }
.ax-nav a:hover .icon { opacity: 1; }
.ax-nav a[aria-current="page"] { color: #fff; background: linear-gradient(90deg, rgba(143,140,230,.28) 0%, rgba(143,140,230,.10) 100%); box-shadow: inset 0 0 0 1px rgba(199,197,245,.16), 0 8px 18px -12px rgba(0,0,0,.6); }
.ax-nav a[aria-current="page"] .icon { color: #fff; opacity: 1; }
.ax-nav a[aria-current="page"]::before { left: -.9rem; top: 9px; bottom: 9px; width: 3px; background: var(--accent-300); box-shadow: 0 0 12px rgba(199,197,245,.8); }
.ax-count { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.12); font-size: .68rem; height: 20px; }
.ax-nav a[aria-current="page"] .ax-count { background: var(--accent-500); color: var(--brand-950); border-color: transparent; }
.ax-side-foot { padding-top: .9rem; margin-top: auto; border-top: 1px solid rgba(255,255,255,.07); }
.ax-me { display: flex; align-items: center; gap: .65rem; padding: .55rem .55rem .55rem .6rem; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); }
.ax-me .ax-avatar { width: 34px; height: 34px; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.12); }
.ax-me-text { display: grid; min-width: 0; line-height: 1.2; }
.ax-me-text strong { color: #fff; font-size: .84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-me-text small { color: rgba(226,228,255,.55); font-size: .72rem; }
.ax-me form { margin: 0 0 0 auto; }
.ax-me-out { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; border: 0; background: transparent; color: rgba(226,228,255,.65); cursor: pointer; }
.ax-me-out:hover { background: rgba(255,255,255,.08); color: #fff; }
.ax-me-out:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--accent-300); }

.ax-top { height: 70px; gap: 1rem; padding: 0 clamp(16px, 2.2vw, 1.75rem); background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(15,23,42,.02); }
.ax-heading { display: grid; line-height: 1.2; min-width: 0; }
.ax-crumbs { display: flex; gap: .4rem; align-items: center; font-size: .74rem; color: var(--ink-3); }
.ax-crumbs a { color: var(--ink-3); text-decoration: none; }
.ax-crumbs a:hover { color: var(--brand-700); }
.ax-title { font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; letter-spacing: -.02em; color: var(--ink); }
.ax-search { max-width: 460px; }
.ax-search input { height: 42px; border-radius: 12px; background: #f6f7fb; border: 1px solid #e8ecf2; padding-left: 2.4rem; padding-right: 4rem; font-size: .875rem; transition: background .15s, border-color .15s, box-shadow .15s; }
.ax-search input:hover { border-color: var(--line-strong); }
.ax-search input:focus { background: #fff; }
.ax-search .icon { left: .9rem; }
.ax-kbd { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); font: 600 .68rem var(--font-text); color: var(--ink-3); background: #fff; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: .1rem .4rem; }
.ax-search kbd:not(.ax-kbd) { display: none; }
.ax-top-actions { display: flex; align-items: center; gap: .35rem; }
.ax-icon-btn { position: relative; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; border: 1px solid transparent; background: transparent; color: var(--ink-2); cursor: pointer; text-decoration: none; }
.ax-icon-btn:hover, .ax-icon-btn[aria-expanded="true"] { background: #f3f5f9; border-color: var(--line); color: var(--ink); }
.ax-icon-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.ax-dot { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 .3rem; border-radius: 999px; display: grid; place-items: center; background: var(--danger); color: #fff; font-size: .62rem; font-weight: 700; box-shadow: 0 0 0 2px #fff; }
.ax-divider { width: 1px; height: 26px; background: var(--line); margin: 0 .4rem; }
.ax-notes { width: 340px; padding: 0; overflow: hidden; }
.ax-notes-head { display: flex; justify-content: space-between; align-items: baseline; padding: .9rem 1rem .7rem; border-bottom: 1px solid var(--line); }
.ax-notes-head strong { font-family: var(--font-display); font-size: .95rem; }
.ax-notes-head span { font-size: .76rem; color: var(--ink-3); }
.ax-note { display: grid !important; grid-template-columns: 34px minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .65rem 1rem !important; border-radius: 0 !important; white-space: normal; }
.ax-note + .ax-note { border-top: 1px solid #f0f2f6; }
.ax-note-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--warning-bg); color: var(--warning); }
.ax-note-text { font-size: .85rem; color: var(--ink); font-weight: 500; }
.ax-note-n { font-weight: 700; font-size: .85rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.ax-notes-empty { display: grid; justify-items: center; gap: .4rem; padding: 1.6rem 1rem; color: var(--success); font-size: .86rem; }
.ax-notes-empty span { color: var(--ink-3); }
.ax-user-btn { padding: .25rem .5rem .25rem .25rem; border-radius: 12px; }
.ax-user-btn .ax-avatar { width: 36px; height: 36px; border-radius: 10px; }
.ax-avatar { border-radius: 50%; }
.ax-content { padding: clamp(1.25rem, 2.2vw, 2rem) clamp(16px, 2.2vw, 2rem) 3rem; }
/* collapsed rail keeps the new look */
@media (min-width: 1081px) {
  .ax.is-collapsed { grid-template-columns: 78px minmax(0, 1fr); }
  .ax.is-collapsed .ax-side { width: 78px; }
  .ax.is-collapsed .ax-me { justify-content: center; padding: .45rem; background: transparent; border-color: transparent; }
  .ax.is-collapsed .ax-me-text, .ax.is-collapsed .ax-me form { display: none; }
  .ax.is-collapsed .ax-nav a[aria-current="page"]::before { left: -.9rem; }
}
/* The sidebar is off-canvas below 1080px: the grid must drop its column (the v3 rule above would otherwise keep 268px). */
@media (max-width: 1080px) { .ax { grid-template-columns: minmax(0, 1fr); } .ax-side { width: 280px; } }
@media (max-width: 760px) { .ax-crumbs { display: none; } .ax-search { display: none; } .ax-top { height: 62px; } }
.ax-dot { top: -3px; right: -5px; }
.team-card { gap: .8rem; }
.team-top { display: flex; justify-content: space-between; align-items: flex-start; }
.team-avatar { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font: 800 1rem var(--font-display); color: #fff; background: linear-gradient(135deg, var(--brand-700), var(--brand-600)); box-shadow: 0 8px 18px -10px rgba(48,46,119,.7); }
.team-avatar.is-super { background: linear-gradient(135deg, var(--brand-700), var(--purple)); }
.confirm-box { display: flex; gap: .8rem; align-items: flex-end; padding: .9rem 1rem; border-radius: 12px; background: var(--accent-50); border: 1px solid #e2e0f6; }
.confirm-box-icon { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--brand-700); margin-bottom: 2px; }

/* ---- Settings ---------------------------------------------------------------- */
.settings-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.settings-nav { position: sticky; top: 90px; display: grid; gap: 2px; padding: .5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.settings-nav a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-size: .86rem; font-weight: 500; }
.settings-nav a:hover { background: var(--bg); color: var(--ink); }
.settings-nav a .icon { color: var(--ink-3); }
.settings-nav-err { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); margin-left: auto; }
.settings-form { display: grid; gap: 1.25rem; min-width: 0; }
.settings-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); scroll-margin-top: 90px; }
.settings-card-head { display: flex; gap: .8rem; align-items: center; padding: 1.1rem 1.35rem; border-bottom: 1px solid var(--line); }
.settings-card-head h2 { font-size: 1rem; margin: 0; }
.settings-card-head p { margin: .1rem 0 0; font-size: .8rem; color: var(--ink-3); }
.settings-card-head .gcard-icon { width: 38px; height: 38px; }
.settings-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem 2rem; align-items: center; padding: .95rem 1.35rem; border-top: 1px solid #f0f2f6; }
.settings-row:first-child { border-top: 0; }
.settings-row.has-error { background: #fffafa; }
.settings-row-label label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); }
.settings-row-label code { font-size: .72rem; color: var(--ink-3); background: none; padding: 0; }
.save-bar { position: sticky; bottom: 1rem; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem .8rem 1.25rem; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
@media (max-width: 1000px) { .settings-layout { grid-template-columns: 1fr; } .settings-nav { position: static; display: flex; overflow-x: auto; } .settings-nav a { white-space: nowrap; } }
@media (max-width: 640px) { .settings-row { grid-template-columns: 1fr; gap: .5rem; } }

/* ---- Integrations & audit -------------------------------------------------- */
.security-strip { display: flex; gap: .9rem; align-items: center; padding: 1rem 1.2rem; margin-bottom: 1.25rem; border-radius: var(--radius-lg); background: linear-gradient(90deg, var(--accent-50), #fff); border: 1px solid #e2e0f6; }
.security-strip strong { display: block; font-size: .92rem; }
.security-strip span:not(.gcard-icon) { display: block; font-size: .82rem; color: var(--ink-2); }
.int-card { --t: var(--brand-700); --tb: var(--accent-50); }
.int-card.tone-success { --t: var(--success); --tb: var(--success-bg); }
.int-card.tone-purple { --t: var(--purple); --tb: var(--purple-50); }
.int-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--t); }
.int-logo { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--tb); color: var(--t); }
.int-kind { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--t); }
.action-chip { display: inline-block; font: 600 .74rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; padding: .15rem .5rem; border-radius: 6px; white-space: nowrap; background: #f1f4f9; color: var(--ink-2); }
.action-chip.a-adv { background: var(--accent-50); color: var(--brand-700); } .action-chip.a-cli { background: #eef6ff; color: #1d4ed8; }
.action-chip.a-pay { background: var(--success-bg); color: #0f7a4f; } .action-chip.a-sec { background: var(--purple-50); color: var(--purple); }
.action-chip.a-exp { background: #fff7ed; color: #c2410c; } .action-chip.a-req { background: var(--warning-bg); color: var(--warning); } .action-chip.a-cat { background: #ecfeff; color: #0e7490; }
.audit-changes { display: inline-block; max-width: 340px; white-space: normal; word-break: break-word; }

/* ==========================================================================
   Guided booking (/find/request) — .bk-*
   ========================================================================== */
.bk-hero { background: var(--brand-900); color: #fff; position: relative; overflow: hidden; padding: 2.25rem 0 1.5rem; }
.bk-hero::after { content: ""; position: absolute; inset: 0; opacity: .05; pointer-events: none; background-image: repeating-linear-gradient(135deg, #fff 0 1px, transparent 1px 22px); }
.bk-hero .wrap { position: relative; z-index: 1; }
.bk-hero .eyebrow { color: var(--accent-300); margin-bottom: .6rem; }
.bk-hero h1 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin-bottom: .35rem; }
.bk-lead { color: rgba(255,255,255,.74); max-width: 620px; margin-bottom: 1.5rem; }
.bk-steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; margin: 0; padding: 0; counter-reset: s; }
.bk-step { position: relative; }
.bk-step button { all: unset; box-sizing: border-box; width: 100%; display: flex; flex-direction: column; gap: .45rem; cursor: pointer; color: rgba(255,255,255,.6); font-size: .8rem; font-weight: 600; }
.bk-step button:disabled { cursor: default; }
.bk-step button:focus-visible .bk-step-n { box-shadow: 0 0 0 3px rgba(199,197,245,.55); }
.bk-step::before { content: ""; position: absolute; top: 15px; left: 34px; right: -.5rem; height: 2px; background: rgba(255,255,255,.18); }
.bk-step:last-child::before { display: none; }
.bk-step.is-done::before { background: var(--accent-500); }
.bk-step-n { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.28); font: 700 .85rem var(--font-display); }
.bk-step-ok { display: none; }
.bk-step.is-done .bk-step-n { background: var(--accent-500); border-color: var(--accent-500); color: var(--brand-950); }
.bk-step.is-done .bk-step-num { display: none; }
.bk-step.is-done .bk-step-ok { display: grid; }
.bk-step.is-current .bk-step-n { background: #fff; border-color: #fff; color: var(--brand-800); box-shadow: 0 0 0 4px rgba(255,255,255,.16); }
.bk-step.is-current button, .bk-step.is-done button { color: #fff; }
.bk-step-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bk-body { padding-top: 1.5rem; padding-bottom: 3rem; }
.bk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.bk.is-wide .bk-layout { grid-template-columns: minmax(0, 1fr); }
.bk.is-wide .bk-aside { display: none; }
.bk-main { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.5rem 1.5rem 0; }
.bk-progress-text { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-600); margin: 0 0 .35rem; }
.bk-panel-head { margin-bottom: 1.25rem; }
.bk-panel-head h2 { font-size: 1.35rem; margin: 0 0 .25rem; outline: none; }
.bk-panel-head p { color: var(--ink-3); margin: 0; }
.bk-field { margin-bottom: 1.25rem; }
.bk-field legend { font-size: inherit; }
.bk-muted { color: var(--ink-3); margin: 0; font-size: .9rem; }

/* step 1 */
.bk-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.bk-service { position: relative; display: flex; gap: .85rem; align-items: flex-start; padding: 1rem; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.bk-service:hover { border-color: var(--accent-300); }
.bk-service input, .bk-option input { position: absolute; opacity: 0; pointer-events: none; }
.bk-service:has(input:checked) { border-color: var(--brand-700); background: var(--accent-50); box-shadow: 0 0 0 1px var(--brand-700) inset; }
.bk-service:has(input:focus-visible), .bk-option:has(input:focus-visible) { box-shadow: var(--focus); }
.bk-service-icon, .bk-option-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-100); color: var(--brand-700); }
.bk-option-icon.is-warn { background: var(--warning-bg); color: var(--warning); }
.bk-service-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; padding-right: 1.25rem; }
.bk-service-text strong { font: 600 .98rem/1.3 var(--font-display); color: var(--ink); }
.bk-service-sum { font-size: .84rem; color: var(--ink-3); }
.bk-service-price { font-size: .84rem; font-weight: 600; color: var(--brand-700); font-variant-numeric: tabular-nums; margin-top: .15rem; }
.bk-check { position: absolute; top: .75rem; right: .75rem; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: transparent; }
.bk-service:has(input:checked) .bk-check { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

/* step 2 */
.bk-options { display: grid; gap: .65rem; }
.bk-options-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bk-options-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bk-option { position: relative; display: flex; gap: .7rem; align-items: center; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .15s, background .15s; }
.bk-option:hover { border-color: var(--accent-300); }
.bk-option:has(input:checked) { border-color: var(--brand-700); background: var(--accent-50); }
.bk-option strong { display: block; font-size: .92rem; }
.bk-option small { display: block; color: var(--ink-3); font-size: .8rem; }
.bk-option-icon { width: 36px; height: 36px; border-radius: 10px; }

/* step 3 */
.bk-locate { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: .9rem; }
.bk-or { color: var(--ink-3); font-size: .88rem; }
.bk-region { flex: 1 1 220px; max-width: 320px; }
.bk-geo-msg { font-size: .88rem; padding: .6rem .8rem; border-radius: var(--radius-sm); background: var(--info-bg); color: var(--brand-800); margin-bottom: .75rem; }
.bk-geo-msg.is-warn { background: var(--warning-bg); color: var(--warning); }
.bk-geo-msg.is-ok { background: var(--success-bg); color: #0f7a4f; }
.bk-map { height: 320px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 0; background: #eef1f6; }
.bk-map-tall { height: 100%; min-height: 460px; }
.bk-panel .form-text .icon, .bk-respond-note .icon { vertical-align: -2px; }

/* step 4 */
.bk-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.bk-map-col { position: sticky; top: 84px; align-self: start; height: calc(100vh - 220px); min-height: 460px; }
.bk-found { font-size: .9rem; color: var(--ink-2); font-weight: 500; margin: 0 0 .75rem; }
.bk-widened { display: block; color: var(--ink-3); font-weight: 400; font-size: .84rem; }
.bk-list { display: flex; flex-direction: column; gap: .75rem; }
.bk-adv { display: flex; gap: .85rem; padding: 1rem; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.bk-adv:hover { border-color: var(--accent-300); }
.bk-adv.is-selected { border-color: var(--brand-700); background: var(--accent-50); box-shadow: 0 0 0 1px var(--brand-700) inset; }
.bk-adv.is-skel { cursor: default; }
.bk-adv-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--brand-100); color: var(--brand-800); display: grid; place-items: center; font: 700 1.05rem var(--font-display); }
.bk-adv-body { flex: 1; min-width: 0; }
.bk-adv-name { font: 600 1rem/1.3 var(--font-display); margin: 0; display: flex; align-items: center; gap: .3rem; }
.bk-verified { color: var(--success); display: inline-flex; }
.bk-adv-firm { font-size: .85rem; color: var(--ink-2); margin: .1rem 0 0; }
.bk-adv-loc { font-size: .82rem; color: var(--ink-3); margin: .1rem 0 0; }
.bk-adv-facts { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .8rem; color: var(--ink-2); margin-top: .5rem; }
.bk-adv-facts span { display: inline-flex; align-items: center; gap: .3rem; }
.bk-adv-facts .icon { color: var(--ink-3); }
.bk-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; }
.bk-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 600; padding: .2rem .5rem; border-radius: 999px; background: #f1f4f9; color: var(--ink-2); }
.bk-chip .icon { width: 12px; height: 12px; }
.bk-chip.is-on { background: var(--brand-100); color: var(--brand-800); }
.bk-adv-actions { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: .5rem; flex: none; }
.bk-adv-link { font-size: .8rem; display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }
.bk-adv-link .icon { width: 12px; height: 12px; }
.bk-empty { text-align: center; padding: 2rem 1rem; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); }
.bk-empty-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); margin-bottom: .75rem; }
.bk-empty h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.bk-empty p { color: var(--ink-3); font-size: .9rem; max-width: 420px; margin: 0 auto 1rem; }
.bk-empty-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }

/* skeletons */
.bk-skel { background: linear-gradient(90deg, #eef1f6 25%, #f7f9fc 50%, #eef1f6 75%); background-size: 200% 100%; animation: bk-shimmer 1.2s infinite linear; border-radius: 6px; }
.bk-skel-line { height: 12px; margin: .35rem 0; width: 80%; }
.bk-skel-line.short { width: 55%; }
.bk-skel-line.shorter { width: 35%; }
.bk-skel-avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; }
@keyframes bk-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .bk-skel { animation: none; } }

/* step 5 */
.bk-review-list { margin: 0 0 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); }
.bk-review-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.bk-review-row:last-child { border-bottom: 0; }
.bk-review-row > div { min-width: 0; }
.bk-review-row dt { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: .2rem; }
.bk-review-row dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.bk-review-row .btn-link { flex: none; padding: 0; text-decoration: none; display: inline-flex; align-items: center; gap: .25rem; }
.bk-review-note { margin: .4rem 0 0; color: var(--ink-2); font-size: .88rem; white-space: pre-line; overflow-wrap: anywhere; }
.bk-review-adv { display: inline-flex; align-items: center; gap: .6rem; }
.bk-review-adv img, .bk-review-adv > span:first-child { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--brand-100); color: var(--brand-800); display: grid; place-items: center; font: 700 .8rem var(--font-display); flex: none; }
.bk-review-adv small { display: block; color: var(--ink-3); font-weight: 400; }
.bk-drop { display: flex; align-items: center; gap: .75rem; padding: 1rem; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); cursor: pointer; color: var(--brand-700); transition: border-color .15s, background .15s; }
.bk-drop:hover { border-color: var(--brand-700); background: var(--accent-50); }
.bk-drop strong { display: block; }
.bk-drop small { display: block; color: var(--ink-3); }
.bk-files input:focus-visible + .bk-file-list, .bk-files:has(input:focus-visible) .bk-drop { box-shadow: var(--focus); }
.bk-file-list { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.bk-file-list li { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .88rem; }
.bk-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-file-list small { color: var(--ink-3); }
.bk-respond-note { font-size: .86rem; color: var(--ink-3); }

/* action bar (sticky on every screen size) */
.bk-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: .75rem; margin: 1.5rem -1.5rem 0; padding: .9rem 1.5rem; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.bk-bar-total { flex: 1; min-width: 0; text-align: right; line-height: 1.2; }
.bk-bar-total small { display: block; font-size: .72rem; color: var(--ink-3); }
.bk-bar-total strong { font: 700 1.05rem var(--font-display); color: var(--brand-800); font-variant-numeric: tabular-nums; }
.bk-next { min-width: 150px; justify-content: center; }
.bk-guest-actions { display: flex; gap: .5rem; }

/* fee summary */
.bk-aside { position: sticky; top: 84px; }
.bk-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.25rem; }
.bk-summary-title { display: flex; align-items: center; gap: .45rem; font: 600 .78rem var(--font-text); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 .9rem; }
.bk-fee-service { font: 600 1rem var(--font-display); margin: 0 0 .75rem; }
.bk-lines { margin: 0; }
.bk-lines div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; padding: .35rem 0; }
.bk-lines dt { font-weight: 400; color: var(--ink-2); }
.bk-lines dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line-strong); margin-top: .5rem; padding-top: .75rem; }
.bk-total span { font-weight: 600; }
.bk-total strong { font: 700 1.35rem var(--font-display); color: var(--brand-800); font-variant-numeric: tabular-nums; }
.bk-fee-note { font-size: .82rem; color: var(--ink-3); margin: .75rem 0 0; }
.bk-fee-foot { display: flex; gap: .4rem; align-items: center; font-size: .8rem; color: var(--success); margin: 1rem 0 0; padding-top: .75rem; border-top: 1px solid var(--line); }
.bk-rebook { margin-bottom: 1rem; }

@media (max-width: 991.98px) {
  .bk-layout { grid-template-columns: minmax(0, 1fr); }
  .bk-aside { position: static; }
  .bk-aside .bk-summary { padding: 1rem; }
  .bk-split { grid-template-columns: minmax(0, 1fr); }
  .bk-map-col { position: static; height: 260px; min-height: 0; order: -1; }
  .bk-map-tall { min-height: 0; }
}
@media (max-width: 767.98px) {
  .bk-hero { padding: 1.5rem 0 1.25rem; }
  .bk-lead { display: none; }
  .bk-step-label { font-size: .68rem; }
  .bk-step.is-current .bk-step-label { font-weight: 700; }
  .bk-main { padding: 1.1rem 1rem 0; border-radius: var(--radius); }
  .bk-bar { margin: 1.25rem -1rem 0; padding: .75rem 1rem; border-radius: 0 0 var(--radius) var(--radius); flex-wrap: wrap; }
  .bk-services, .bk-options-3, .bk-options-2 { grid-template-columns: minmax(0, 1fr); }
  .bk-next { min-width: 0; }
  .bk-guest-actions { width: 100%; }
  .bk-guest-actions .btn { flex: 1; justify-content: center; }
  .bk-map { height: 260px; }
  .bk-adv { flex-wrap: wrap; }
  .bk-adv-actions { flex-direction: row; align-items: center; width: 100%; padding-left: calc(56px + .85rem); }
}
@media (max-width: 420px) {
  .bk-step-label { display: none; }
  .bk-step.is-current .bk-step-label { display: block; position: absolute; top: 38px; left: 0; white-space: nowrap; }
  .bk-steps { padding-bottom: 1.1rem; }
}

/* Request statuses added with guided booking */
.status-scheduled { background: var(--info-bg); color: var(--brand-700); }
.status-in_progress { background: var(--purple-50); color: var(--purple); }
.status-expired { background: #f1f3f6; color: var(--ink-3); }

/* Request tracking (/account/requests/{id}) — .trk-* */
.min-w-0 { min-width: 0; }
.trk-back { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; text-decoration: none; margin-bottom: .9rem; }
.trk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.trk-head h1 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); margin: .35rem 0 .2rem; }
.trk-ref { margin: 0; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.trk-sub { color: var(--ink-3); margin: 0; font-size: .9rem; }
.trk-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.trk-live { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; color: var(--ink-3); }
.trk-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(22,163,106,.5); animation: trk-pulse 2s infinite; }
@keyframes trk-pulse { 70% { box-shadow: 0 0 0 7px rgba(22,163,106,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,106,0); } }
@media (prefers-reduced-motion: reduce) { .trk-live-dot { animation: none; } }
.trk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; align-items: start; }
.trk-main, .trk-side { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.trk-card { padding: 1.25rem; margin: 0; }
.trk-state { display: flex; gap: .9rem; align-items: flex-start; padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.trk-state h2 { font-size: 1.1rem; margin: 0 0 .2rem; }
.trk-state p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.trk-state-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-100); color: var(--brand-700); }
.trk-state-pending .trk-state-icon { background: var(--warning-bg); color: var(--warning); }
.trk-state-completed .trk-state-icon, .trk-state-accepted .trk-state-icon { background: var(--success-bg); color: var(--success); }
.trk-state-in_progress .trk-state-icon { background: var(--purple-50); color: var(--purple); }
.trk-state-declined .trk-state-icon, .trk-state-cancelled .trk-state-icon, .trk-state-expired .trk-state-icon { background: #f1f3f6; color: var(--ink-3); }
.trk-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.trk-steps li { position: relative; display: flex; gap: .8rem; padding-bottom: 1rem; }
.trk-steps li:last-child { padding-bottom: 0; }
.trk-steps li::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.trk-steps li:last-child::before { display: none; }
.trk-steps li.is-done::before { background: var(--success); }
.trk-dot { position: relative; z-index: 1; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-strong); background: #fff; color: #fff; }
.trk-steps .is-done .trk-dot { background: var(--success); border-color: var(--success); }
.trk-steps .is-current .trk-dot { border-color: var(--brand-700); box-shadow: 0 0 0 4px var(--brand-100); }
.trk-steps .is-current .trk-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-700); }
.trk-steps .is-stopped .trk-dot { background: var(--ink-3); border-color: var(--ink-3); }
.trk-step-text { display: flex; flex-direction: column; padding-top: 1px; }
.trk-step-text strong { font-size: .92rem; font-weight: 600; }
.trk-steps .is-todo .trk-step-text strong { color: var(--ink-3); font-weight: 500; }
.trk-step-text small { color: var(--ink-3); font-size: .8rem; font-variant-numeric: tabular-nums; }
.trk-rebook { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; padding: 1rem; border-radius: var(--radius); background: var(--accent-50); border: 1px solid var(--accent-300); }
.trk-rebook p { margin: .15rem 0 0; color: var(--ink-2); font-size: .88rem; }
.trk-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.25rem; margin: 0; }
.trk-facts dt { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: .15rem; }
.trk-facts dd { margin: 0; font-weight: 500; display: flex; align-items: center; gap: .35rem; overflow-wrap: anywhere; }
.trk-facts dd.num { font-variant-numeric: tabular-nums; }
.trk-h3 { font: 600 .8rem var(--font-text); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 1.25rem 0 .5rem; }
.trk-note { white-space: pre-line; margin: 0; overflow-wrap: anywhere; }
.trk-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.trk-files a { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.trk-files a:hover { border-color: var(--accent-300); background: var(--accent-50); }
.trk-files span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trk-files small { color: var(--ink-3); }
.trk-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.trk-actions form { margin: 0; }
.trk-panel { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .1rem .9rem; }
.trk-panel summary { cursor: pointer; padding: .65rem 0; font-weight: 600; display: flex; align-items: center; gap: .45rem; list-style: none; }
.trk-panel summary::-webkit-details-marker { display: none; }
.trk-panel[open] { padding-bottom: .9rem; }
.trk-inline-form { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; }
.trk-person { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.trk-person-name { font: 600 1rem var(--font-display); margin: 0; }
.trk-person-sub { font-size: .85rem; color: var(--ink-3); margin: 0; }
.trk-contact { display: flex; flex-direction: column; gap: .5rem; }
.trk-contact .btn { justify-content: center; }
.trk-profile-link { display: inline-flex; align-items: center; gap: .2rem; margin-top: .9rem; font-size: .88rem; text-decoration: none; }
@media (max-width: 991.98px) { .trk-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575.98px) { .trk-facts { grid-template-columns: minmax(0, 1fr); } .trk-head-side { align-items: flex-start; } .trk-actions > form, .trk-actions > form .btn { width: 100%; justify-content: center; } }
.find-cta { display: inline-flex; align-items: center; gap: .6rem; margin: -.5rem 0 1.25rem; padding: .55rem .9rem; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; text-decoration: none; font-size: .88rem; max-width: 100%; }
.find-cta:hover { background: rgba(255,255,255,.16); color: #fff; }
.find-cta > span:nth-child(2) { color: rgba(255,255,255,.8); min-width: 0; }
.find-cta strong { color: #fff; }

/* Sticky save bars (settings, integrations): on phones the note goes above full-width buttons. */
@media (max-width: 575.98px) {
  .save-bar { flex-wrap: wrap; gap: .6rem; }
  .save-bar > span { flex-basis: 100%; }
  .save-bar > .d-flex, .save-bar > .btn { flex: 1; }
  .save-bar > .d-flex .btn { flex: 1; justify-content: center; }
}

/* Header call to action: "Request a lawyer" */
.btn-accent-soft { background: var(--accent-50); color: var(--brand-700); border: 1px solid var(--accent-300); font-weight: 600; }
.btn-accent-soft:hover, .btn-accent-soft:focus-visible { background: var(--brand-100); color: var(--brand-800); border-color: var(--accent-500); }
@media (min-width: 1200px) {
  .site-header .nav-link { white-space: nowrap; }
  .site-actions { flex: none; }
  .site-actions .btn { white-space: nowrap; }
}

/* ==========================================================================
   Page transition (a[data-transition] + partials/transition.php)
   ========================================================================== */
.wk-wipe { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(120% 120% at var(--x, 50%) var(--y, 50%), #4b47b8 0%, #302e77 45%, #1d1b52 100%);
  clip-path: circle(0px at var(--x, 50%) var(--y, 50%)); transition: clip-path .6s cubic-bezier(.7, 0, .2, 1); }
.wk-wipe.is-in { clip-path: circle(150vmax at var(--x, 50%) var(--y, 50%)); pointer-events: auto; }
.wk-wipe-logo { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.35);
  opacity: 0; transform: scale(.6); transition: opacity .3s .22s, transform .45s cubic-bezier(.34, 1.56, .64, 1) .22s; }
.wk-wipe-logo img { width: 56px; height: 56px; border-radius: 50%; }
.wk-wipe.is-in .wk-wipe-logo { opacity: 1; transform: none; animation: wkLogoPulse 1.2s ease-out .5s infinite; }
@keyframes wkLogoPulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.35); } 100% { box-shadow: 0 0 0 26px rgba(255,255,255,0); } }
/* arrival: start covered, then zoom away */
.wk-wipe.is-arrive { transition: opacity .55s cubic-bezier(.2, .8, .2, 1), transform .6s cubic-bezier(.2, .8, .2, 1); }
.wk-wipe.is-arrive .wk-wipe-logo { opacity: 1; transform: none; transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .35s; }
.wk-wipe.is-arrive.is-out { opacity: 0; transform: scale(1.06); pointer-events: none; }
.wk-wipe.is-arrive.is-out .wk-wipe-logo { transform: scale(.4); opacity: 0; }
@media (prefers-reduced-motion: reduce) { .wk-wipe { display: none; } }


/* Advocate office location: summary card (profile, dashboard) + preview on /account/location */
.loc-summary { display: flex; align-items: center; gap: .85rem; padding: .95rem 1rem; margin-top: .75rem; border: 1.5px solid #f5d79a; border-radius: 16px; background: #fffaf0; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .25s, border-color .2s; }
.loc-summary:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 12px 26px -18px rgba(15,23,42,.35); }
.loc-summary-icon { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--warning-solid); color: #fff; box-shadow: 0 8px 18px -10px rgba(245,158,11,.8); }
.loc-summary-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.loc-summary-text strong { font: 700 .95rem var(--font-display); }
.loc-summary-text small { font-size: .8rem; color: var(--ink-3); }
.loc-summary-cta { flex: none; display: inline-flex; align-items: center; gap: .3rem; padding: .45rem .85rem; border-radius: 999px; background: var(--brand-700); color: #fff; font-size: .8rem; font-weight: 700; }
.loc-summary.is-set { border-color: rgba(22,163,106,.35); background: #f3fbf7; }
.loc-summary.is-set .loc-summary-icon { background: var(--success); box-shadow: 0 8px 18px -10px rgba(22,163,106,.8); }
.loc-summary.is-set .loc-summary-cta { background: #fff; color: var(--brand-700); border: 1px solid var(--line); }
.loc-alert { animation: locPulse 2.4s ease-in-out 2; }
@keyframes locPulse { 50% { box-shadow: 0 0 0 6px rgba(245,158,11,.18); } }
.loc-preview { margin-top: .4rem; }
.loc-preview-card { display: flex; align-items: center; gap: .8rem; padding: .9rem; border: 1.5px solid #e3e8f0; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 24px -18px rgba(15,23,42,.22); flex-wrap: wrap; }
.loc-preview-card img, .loc-preview-avatar { flex: none; width: 52px; height: 52px; border-radius: 16px; object-fit: cover; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-700), var(--accent-600)); color: #fff; font: 800 1rem var(--font-display); }
.loc-preview-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.loc-preview-text strong { font: 700 .95rem var(--font-display); }
.loc-preview-text small { font-size: .8rem; color: var(--ink-2); }
.loc-preview-place { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--ink-3); margin-top: .1rem; }
.loc-vis { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .6rem; border-radius: 999px; background: var(--warning-bg); color: var(--warning); font-size: .72rem; font-weight: 700; }
.loc-vis i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.loc-vis.is-on { background: var(--success-bg); color: #0f7a4f; }
.loc-vis.is-on i { animation: tkLive 1.6s ease-out infinite; }
@media (max-width: 480px) { .loc-summary { flex-wrap: wrap; } .loc-summary-cta { margin-left: calc(44px + .85rem); } }

/* Bulk selection bar (Admin → Advocates) */
.bulk-bar { position: sticky; top: 64px; z-index: 5; display: flex; align-items: center; gap: .75rem; margin: 0; padding: .6rem 1rem; background: var(--accent-50); border-bottom: 1px solid var(--accent-300); animation: bulkIn .2s ease-out; }
.bulk-bar[hidden] { display: none; }
.bulk-count { font-size: .88rem; color: var(--brand-800); }
.bulk-count strong { font-variant-numeric: tabular-nums; }
@keyframes bulkIn { from { opacity: 0; transform: translateY(-4px); } }
th.col-check, td:has(> .js-row-check) { width: 42px; padding-right: 0 !important; }
tr.is-picked > td { background: #f7f6ff !important; }
@media (prefers-reduced-motion: reduce) { .bulk-bar { animation: none; } }

/* Home hero: call-to-action buttons (replaced the old advocate search box) */
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0 1.1rem; }
.hero-actions .btn-lg { min-height: 52px; padding: 0 1.4rem; border-radius: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.btn-ghost-light { color: #fff; border: 1.5px solid rgba(255,255,255,.4); background: transparent; }
.btn-ghost-light:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }
@media (max-width: 520px) { .hero-actions .btn-lg { flex: 1 1 100%; justify-content: center; } }
/* service page without a description: the two cards sit side by side */
.svc-solo { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; max-width: 900px; }
.svc-solo > .stack:empty, .svc-solo > .stack:not(:has(*)) { display: none; }
.svc-solo > aside { display: contents; }
.svc-solo { align-items: start; margin-left: auto; margin-right: auto; }
.svc-solo .card { margin: 0; }
