/* ============================================================
   Pupcademy — UAE Dog Trainer Matchmaker + more
   Shared design system (all pages)
   ============================================================ */

:root {
  --bg: #FBF7EF;
  --bg-warm: #F5EEE1;
  --surface: #FFFFFF;
  --ink: #20241F;
  --ink-soft: #40453C;
  --muted: #5C5F57;          /* darkened for WCAG AA contrast on light backgrounds */
  --line: #EAE2D4;
  --line-strong: #DED4C2;

  /* Brand = charcoal (the logo's dog + "Train The") */
  --brand: #26282D;
  --brand-700: #16181C;
  --brand-100: #E3E1DD;
  --brand-tint: #F1EEE9;

  /* Accent = the logo's "Tail" orange */
  --accent: #E8742A;
  --accent-700: #B65214;     /* darkened: used for text/links, needs AA contrast */
  --accent-btn: #BE5717;     /* white-on-orange button bg, meets AA (>=4.5:1) */
  --accent-tint: #FCEBDD;

  --amber: #F6B23C;
  --amber-tint: #FDF1DA;
  --sky: #4F9DB0;
  --sky-tint: #E1F0F2;
  --grape: #9B7BE0;
  --grape-tint: #F0E9FC;
  --rose: #EF7B9B;
  --rose-tint: #FCE6EE;

  --success: #2E9E5B;
  --success-tint: #E4F4EA;
  --warn: #E08A2B;
  --warn-tint: #FBEBD6;
  --danger: #D9534F;
  --star: #F5A623;

  --shadow-sm: 0 1px 2px rgba(32,36,31,.06), 0 1px 3px rgba(32,36,31,.04);
  --shadow-md: 0 8px 24px -8px rgba(32,36,31,.18);
  --shadow-lg: 0 24px 60px -20px rgba(32,36,31,.28);
  --shadow-brand: 0 16px 40px -16px rgba(30,32,36,.42);

  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 30px; --r-full: 999px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  --maxw: 1200px;
  --nav-h: 72px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink);
  background: var(--bg); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }
.wrap-narrow { max-width: 900px; }
.section { padding-block: var(--sp-8); }
/* Stronger separation between stacked sections (comment: "more contrast for each section") */
.section:nth-of-type(even) { background: var(--bg-warm); }
.section + .section, .section + .footer, .page-hero + .section { border-top: 1px solid var(--line-strong); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent-700);
  background: var(--accent-tint); padding: 6px 14px; border-radius: var(--r-full);
}
.section-head { max-width: 660px; margin-bottom: var(--sp-6); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin-top: 16px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: var(--sp-6); flex-wrap: wrap; }
.head-row .section-head { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1; padding: 14px 22px;
  border-radius: var(--r-full); transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s;
  min-height: 48px; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent-btn); color: #fff; box-shadow: 0 10px 24px -10px rgba(232,90,56,.7); }
.btn-primary:hover { background: var(--accent-700); transform: translateY(-2px); }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-700); transform: translateY(-2px); box-shadow: var(--shadow-brand); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-soft { background: var(--brand-tint); color: var(--brand); }
.btn-soft:hover { background: var(--brand-100); }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 10px 16px; min-height: 40px; font-size: 14px; }
.btn-lg { padding: 17px 28px; min-height: 56px; font-size: 16px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-700); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header (injected by site.js) ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(251,247,239,.94);
  backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line-strong);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.scrolled { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.nav { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--ink); white-space: nowrap; flex-shrink: 0; }
.brand .paw { width: 38px; height: 38px; display: grid; place-items: center; background: var(--brand); color: #fff; border-radius: 12px; box-shadow: var(--shadow-brand); }
.brand .paw svg { width: 22px; height: 22px; }
/* logo mark (dog + tail) in the charcoal rounded square */
.brand .paw { display: grid; }
/* When logo.png is added, .brand-logo will show the real artwork */
.brand-logo { height: 40px; width: auto; display: block; }
.footer .brand-logo { height: 52px; }
/* brand + "My Dog" gateway stacked on the left */
.brand-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1; }
.brand-gateway { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--accent-700); letter-spacing: .01em; padding: 1px 0; }
.brand-gateway:hover { color: var(--accent); }
.brand-gateway.active { color: var(--accent); }
.brand-gateway svg { width: 13px; height: 13px; }
[data-pup-icon] { display: inline-flex; align-items: center; }
.pup-av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); box-shadow: var(--shadow-sm); }
.mobile-menu .pup-av { width: 30px; height: 30px; margin-right: 4px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.nav-links a { padding: 10px 13px; border-radius: var(--r-full); font-weight: 500; font-size: 15px; color: var(--ink-soft); transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--bg-warm); color: var(--ink); }
.nav-links a.active { color: var(--accent-700); font-weight: 600; background: var(--accent-tint); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-full); color: var(--ink-soft); }
.icon-btn:hover { background: var(--bg-warm); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }
.burger { display: none; }

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 200; background: var(--bg); transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; padding: 24px; visibility: hidden; }
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu .mm-top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu nav { display: grid; gap: 4px; margin-top: 28px; }
.mobile-menu nav a { padding: 15px 8px; font-size: 20px; font-family: var(--font-display); border-bottom: 1px solid var(--line); }
.mobile-menu nav a.active { color: var(--accent-700); }
.mobile-menu .mm-actions { margin-top: auto; display: grid; gap: 12px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding-top: var(--sp-8); padding-bottom: var(--sp-7); }
.page-hero.tint { background: linear-gradient(180deg, var(--brand-tint), transparent); }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.03; letter-spacing: -.02em; overflow-wrap: break-word; }
.page-hero h1 em { font-style: italic; color: var(--accent-700); }
.page-hero .lead { margin-top: 20px; font-size: 20px; color: var(--ink-soft); max-width: 620px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb svg { width: 14px; height: 14px; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: var(--sp-8); padding-bottom: var(--sp-8); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy, .hero-visual { min-width: 0; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.02; letter-spacing: -.02em; overflow-wrap: break-word; }
.hero h1 em { font-style: italic; color: var(--accent-700); }
.hero .lead { margin-top: 22px; font-size: 20px; color: var(--ink-soft); max-width: 520px; }
.hero-stats { display: flex; gap: 34px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--brand); }
.hero-stats .lbl { font-size: 14px; color: var(--muted); }
.hero-visual { position: relative; }
.hero-photo { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/4.2; background: var(--brand-tint); }
.hero-photo img, .hero-photo video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo .hero-poster, .hero-photo .hero-media { position: absolute; inset: 0; }
.hero-photo .hero-media { opacity: 0; transition: opacity .5s ease; }
.hero-photo .hero-media.on { opacity: 1; }
/* Hide iOS's own start button; we show ours only when autoplay is blocked (e.g. Low Power Mode) */
.hero-media::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.hero-media::-webkit-media-controls { display: none !important; }
.hero-play { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); width: 68px; height: 68px; border: 0; border-radius: 50%; background: rgba(20, 20, 19, .5); color: #fff; display: grid; place-items: center; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.hero-play svg { width: 28px; height: 28px; margin-left: 4px; }
.hero-play:active { transform: translate(-50%, -50%) scale(.94); }
.blob { position: absolute; inset: -12% -10% auto auto; width: 62%; aspect-ratio: 1; background: radial-gradient(circle at 30% 30%, var(--amber), var(--accent)); border-radius: 46% 54% 60% 40% / 52% 44% 56% 48%; filter: blur(2px); opacity: .5; z-index: -1; }
.float-card { position: absolute; background: var(--surface); border-radius: var(--r-md); padding: 12px 16px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); }
.float-card .fc-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.float-card .fc-ic svg { width: 22px; height: 22px; }
.float-card strong { display: block; font-size: 14px; }
.float-card span { font-size: 12px; color: var(--muted); }
.fc-1 { top: 24px; left: -26px; animation: floaty 6s ease-in-out infinite; }
.fc-2 { bottom: 28px; right: -22px; animation: floaty 6s ease-in-out infinite .8s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.trusted { display: flex; align-items: center; gap: 20px; margin-top: 44px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.trusted .stars { display: inline-flex; gap: 2px; color: var(--star); }
.trusted .stars svg { width: 18px; height: 18px; }

/* ---------- Match wizard (matchmaker) ---------- */
.match-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 8px; max-width: 560px; margin-top: 30px; }
.match-inner { padding: 22px; }
.match-steps { display: flex; gap: 8px; margin-bottom: 20px; }
.match-steps .dot { flex: 1; height: 6px; border-radius: 3px; background: var(--line); transition: background .3s; }
.match-steps .dot.on { background: var(--brand); }
.match-q { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.match-sub { font-size: 14px; color: var(--muted); margin-top: 6px; }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.opt {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-md);
  border: 1.5px solid var(--line); background: var(--surface); text-align: left; transition: all .15s; min-height: 56px;
}
.opt:hover { border-color: var(--brand); background: var(--brand-tint); }
.opt.sel { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.opt .oi { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.opt .oi svg { width: 20px; height: 20px; }
.opt b { font-size: 15px; display: block; }
.opt span { font-size: 12px; color: var(--muted); }
.match-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 12px; }
.match-result { text-align: center; padding: 10px 6px; }
.match-result .ring { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--success-tint); color: var(--success); }
.match-result .ring svg { width: 42px; height: 42px; }

/* ---------- Field / form ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field .req { color: var(--accent-700); }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.input, .textarea, .select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--surface); font-size: 15px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.textarea { min-height: 120px; resize: vertical; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.input-icon .input { padding-left: 44px; }

/* ---------- Category / gateway cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card { position: relative; border-radius: var(--r-lg); padding: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; display: flex; flex-direction: column; min-height: 190px; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.cat-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: auto; }
.cat-ic svg { width: 27px; height: 27px; }
.cat-card h3 { font-size: 20px; margin-top: 18px; }
.cat-card p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.cat-card .cat-count { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }
.cat-card .cat-count svg { width: 15px; height: 15px; transition: transform .2s; }
.cat-card:hover .cat-count svg { transform: translateX(4px); }
.t-brand { background: var(--brand-tint); color: var(--brand); }
.t-amber { background: var(--amber-tint); color: #B9781A; }
.t-sky   { background: var(--sky-tint); color: #2A7E90; }
.t-coral { background: var(--accent-tint); color: var(--accent-700); }
.t-grape { background: var(--grape-tint); color: #6E4CB8; }
.t-rose  { background: var(--rose-tint); color: #C64A72; }
.t-success { background: var(--success-tint); color: var(--success); }

/* ---------- Gateway (big split cards) ---------- */
.gateway-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.gateway {
  position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 320px;
  display: flex; align-items: flex-end; padding: 30px; color: #fff; isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gateway:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.gateway img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.gateway:hover img { transform: scale(1.06); }
.gateway::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,30,25,.05), rgba(20,30,25,.82)); }
.gateway.tall { min-height: 420px; }
.gateway .g-kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.gateway h3 { color: #fff; font-size: 30px; margin-top: 8px; }
.gateway p { margin-top: 8px; opacity: .9; font-size: 15px; max-width: 380px; }
.gateway .g-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; background: rgba(255,255,255,.16); backdrop-filter: blur(4px); padding: 11px 18px; border-radius: var(--r-full); border: 1px solid rgba(255,255,255,.28); }
.gateway .g-cta svg { width: 16px; height: 16px; transition: transform .2s; }
.gateway:hover .g-cta svg { transform: translateX(4px); }

/* ---------- Trainer cards ---------- */
.trainer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trainer-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.trainer-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tc-head { display: flex; gap: 14px; padding: 20px 20px 0; }
.tc-avatar { width: 66px; height: 66px; border-radius: var(--r-full); overflow: hidden; flex-shrink: 0; background: var(--bg-warm); box-shadow: var(--shadow-sm); }
.tc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tc-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; display: flex; align-items: center; gap: 6px; }
.tc-role { font-size: 13px; color: var(--muted); }
.tc-rating { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 13px; font-weight: 600; }
.tc-rating svg { width: 15px; height: 15px; color: var(--star); }
.tc-rating .cnt { color: var(--muted); font-weight: 400; }
.tc-body { padding: 16px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.tc-desc { font-size: 14px; color: var(--ink-soft); }
.tc-method { margin-top: 10px; font-size: 13px; color: var(--muted); }
.tc-method b { color: var(--ink-soft); }
.tc-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tc-tags span { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: var(--r-full); background: var(--bg-warm); color: var(--ink-soft); }
.tc-foot { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tc-price b { font-size: 20px; font-family: var(--font-display); color: var(--brand); }
.tc-price span { font-size: 13px; color: var(--muted); }
.match-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--success); background: var(--success-tint); padding: 4px 10px; border-radius: var(--r-full); }
.match-badge svg { width: 13px; height: 13px; }
.badge-verified { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--success); }
.badge-verified svg { width: 15px; height: 15px; }

/* ---------- How it works ---------- */
.how { background: var(--brand); color: #F3F6F4; border-radius: var(--r-xl); }
.how .inner { padding: var(--sp-8) clamp(24px,5vw,64px); }
.how .eyebrow { background: rgba(255,255,255,.12); color: #fff; }
.how h2 { color: #fff; }
.how .section-head p { color: rgba(255,255,255,.72); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 12px; }
.step { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: 28px; }
.step-n { width: 44px; height: 44px; border-radius: 13px; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.step h3 { color: #fff; font-size: 22px; margin-top: 20px; }
.step p { color: rgba(255,255,255,.72); margin-top: 10px; font-size: 15px; }

/* ---------- Shelters (adopt) ---------- */
.shelter-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.shelter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.shelter:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.shelter-media { position: relative; aspect-ratio: 16/8; overflow: hidden; background: var(--bg-warm); }
.shelter-media img { width: 100%; height: 100%; object-fit: cover; }
.shelter-loc { position: absolute; bottom: 12px; left: 12px; background: rgba(255,255,255,.94); backdrop-filter: blur(4px); padding: 7px 13px; border-radius: var(--r-full); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.shelter-loc svg { width: 15px; height: 15px; color: var(--accent); }
.shelter-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.shelter-body h3 { font-size: 22px; }
.shelter-body .desc { font-size: 14px; color: var(--muted); margin-top: 6px; }
.capacity { margin-top: 18px; }
.capacity-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 7px; }
.capacity-top b { font-family: var(--font-display); font-size: 16px; }
.capacity-bar { height: 10px; border-radius: 5px; background: var(--bg-warm); overflow: hidden; }
.capacity-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--success), var(--amber)); }
.capacity-fill.high { background: linear-gradient(90deg, var(--amber), var(--danger)); }
.shelter-events { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.event-row { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.event-date { width: 52px; height: 52px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; text-align: center; flex-shrink: 0; line-height: 1; }
.event-date b { font-family: var(--font-display); font-size: 20px; display: block; }
.event-date span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.event-info b { font-size: 15px; } .event-info span { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.event-info span svg { width: 13px; height: 13px; }
.shelter-foot { margin-top: auto; padding-top: 18px; display: flex; gap: 10px; }

/* ---------- Calendar ---------- */
.calendar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-head b { font-family: var(--font-display); font-size: 19px; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); }
.cal-nav button:hover { background: var(--bg-warm); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding-bottom: 6px; }
.cal-day { aspect-ratio: 1; border-radius: 10px; border: 1.5px solid transparent; display: grid; place-items: center; font-size: 14px; font-weight: 500; position: relative; transition: all .12s; }
.cal-day.avail { background: var(--brand-tint); color: var(--brand); font-weight: 600; cursor: pointer; }
.cal-day.avail:hover { background: var(--brand-100); }
.cal-day.muted { color: var(--line-strong); }
.cal-day.sel { background: var(--brand); color: #fff; }
.cal-day.avail::after { content: ""; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.cal-day.sel::after { background: #fff; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.slot { padding: 11px; border-radius: 10px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; text-align: center; transition: all .12s; }
.slot:hover { border-color: var(--brand); }
.slot.sel { background: var(--brand); color: #fff; border-color: var(--brand); }
.slot:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Map (places) ---------- */
.map-shell { display: grid; grid-template-columns: 340px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--surface); }
.map-list { max-height: 620px; overflow-y: auto; border-right: 1px solid var(--line); }
.map-list-head { padding: 18px 18px 12px; position: sticky; top: 0; background: var(--surface); border-bottom: 1px solid var(--line); z-index: 2; }
.place-item { padding: 16px 18px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.place-item:hover, .place-item.active { background: var(--brand-tint); }
.place-item h4 { font-family: var(--font-body); font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.place-item .ptype { font-size: 12px; font-weight: 600; color: var(--accent-700); background: var(--accent-tint); padding: 3px 9px; border-radius: var(--r-full); white-space: nowrap; }
.place-item .paddr { font-size: 13px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.place-item .paddr svg { width: 13px; height: 13px; }
.place-perks { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.place-perks span { font-size: 11px; background: var(--bg-warm); color: var(--ink-soft); padding: 3px 9px; border-radius: var(--r-full); font-weight: 500; }
#map { height: 620px; width: 100%; background: var(--bg-warm); z-index: 1; }
.leaflet-popup-content { font-family: var(--font-body); }
.map-pop h4 { font-family: var(--font-body); font-size: 15px; margin-bottom: 4px; }
.map-pop .mp-type { font-size: 12px; color: var(--accent-700); font-weight: 700; }
.map-pop ul { margin-top: 8px; display: grid; gap: 4px; }
.map-pop li { font-size: 12.5px; display: flex; gap: 6px; align-items: flex-start; color: var(--ink-soft); }
.map-pop li::before { content: "🐾"; font-size: 11px; }

/* ---------- Celebrate / business ---------- */
.celebrate-bg { background: linear-gradient(160deg, var(--rose-tint), var(--amber-tint)); border-radius: var(--r-xl); }
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.biz-card { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.biz-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.biz-media { aspect-ratio: 16/11; overflow: hidden; background: var(--bg-warm); }
.biz-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.biz-card:hover .biz-media img { transform: scale(1.05); }
.biz-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.biz-kicker { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-700); }
.biz-body h3 { font-size: 21px; margin-top: 8px; }
.biz-body p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.biz-meta { display: flex; gap: 14px; margin-top: 14px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.biz-meta span { display: inline-flex; align-items: center; gap: 5px; }
.biz-meta svg { width: 15px; height: 15px; color: var(--star); }
.biz-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Community ---------- */
.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.comm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s, box-shadow .2s; cursor: pointer; }
.comm-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.comm-cover { height: 96px; position: relative; }
.comm-avatar-row { display: flex; padding: 0 20px; margin-top: -26px; }
.comm-emoji { width: 56px; height: 56px; border-radius: 16px; background: var(--surface); border: 3px solid var(--surface); box-shadow: var(--shadow-sm); display: grid; place-items: center; font-size: 28px; }
.comm-body { padding: 14px 20px 20px; }
.comm-body h3 { font-size: 20px; }
.comm-body p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.comm-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; font-size: 13px; color: var(--muted); }
.comm-members { display: flex; align-items: center; }
.comm-members img, .comm-members .more { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -8px; object-fit: cover; }
.comm-members .more { background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }

/* chat */
.chat-shell { display: grid; grid-template-columns: 280px 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--surface); min-height: 560px; }
.chat-side { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.chat-side-head { padding: 18px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.chat-room { padding: 13px 18px; display: flex; gap: 12px; align-items: center; cursor: pointer; border-bottom: 1px solid var(--line); transition: background .12s; }
.chat-room:hover, .chat-room.active { background: var(--brand-tint); }
.chat-room .cr-emoji { width: 40px; height: 40px; border-radius: 11px; background: var(--bg-warm); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.chat-room b { font-size: 14px; display: block; } .chat-room span { font-size: 12px; color: var(--muted); }
.chat-main { display: flex; flex-direction: column; }
.chat-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.chat-head .ch-emoji { width: 42px; height: 42px; border-radius: 11px; background: var(--bg-warm); display: grid; place-items: center; font-size: 22px; }
.chat-head b { font-size: 16px; } .chat-head span { font-size: 12px; color: var(--muted); display: block; }
.chat-log { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; max-height: 400px; background: var(--bg); }
.msg { display: flex; gap: 10px; max-width: 80%; }
.msg .m-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg-warm); }
.msg .m-bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 10px 14px; }
.msg .m-name { font-size: 12px; font-weight: 700; color: var(--brand); margin-bottom: 3px; }
.msg .m-name .breed { color: var(--muted); font-weight: 400; }
.msg .m-text { font-size: 14px; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg.me .m-bubble { background: var(--brand); color: #fff; border-color: var(--brand); border-radius: 16px 4px 16px 16px; }
.msg.me .m-name { color: rgba(255,255,255,.85); }
.msg.me .m-name .breed { color: rgba(255,255,255,.6); }
.chat-input { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); align-items: center; }
.chat-input .persona { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.chat-input .persona img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.chat-input input { flex: 1; border: 1.5px solid var(--line-strong); border-radius: var(--r-full); padding: 12px 16px; font-size: 14px; }
.chat-input input:focus { outline: none; border-color: var(--brand); }
.chat-input button { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.chat-input button:hover { background: var(--accent-700); }
.no-humans { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--accent-700); background: var(--accent-tint); padding: 5px 12px; border-radius: var(--r-full); }

/* ---------- Auth / login ---------- */
.auth-wrap { max-width: 440px; margin: var(--sp-8) auto; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 38px; box-shadow: var(--shadow-md); }
.auth-card h1 { font-size: 30px; }
.auth-card .sub { color: var(--muted); margin-top: 8px; font-size: 15px; }
.demo-note { margin-top: 18px; background: var(--amber-tint); border: 1px solid #EAD5AC; border-radius: var(--r-md); padding: 13px 15px; font-size: 13px; color: #8A6417; }
.demo-note b { color: #6E4E12; }
.auth-alt { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.auth-error { background: #FBE9E8; border: 1px solid #F0C4C1; color: #A5312C; border-radius: var(--r-md); padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }

/* ---------- Trainer portal ---------- */
/* Trainer portal top bar — matches the homepage header (light, real logo) */
.portal-bar { position: sticky; top: 0; z-index: 100; background: rgba(251,247,239,.94); color: var(--ink); border-bottom: 1px solid var(--line-strong); backdrop-filter: saturate(1.4) blur(14px); }
.portal-bar .wrap { display: flex; align-items: center; gap: 16px; height: 72px; }
.portal-bar .brand { color: var(--ink); }
.portal-bar .pb-badge { font-size: 12px; font-weight: 700; background: var(--brand-tint); color: var(--brand); padding: 5px 12px; border-radius: var(--r-full); }
.portal-bar .pb-right { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; }
.portal-bar .pb-right a { color: var(--ink-soft); }
.portal-bar .pb-right a:hover { color: var(--brand); }
.portal-shell { display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: start; padding-block: 28px; }
.portal-nav { position: sticky; top: 88px; display: grid; gap: 4px; }
.portal-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: var(--r-md); font-weight: 500; font-size: 15px; color: var(--ink-soft); }
.portal-nav a svg { width: 19px; height: 19px; }
.portal-nav a:hover { background: var(--bg-warm); }
.portal-nav a.active { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.kpi .k-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px; }
.kpi .k-ic svg { width: 21px; height: 21px; }
.kpi .k-num { font-family: var(--font-display); font-size: 30px; font-weight: 600; }
.kpi .k-lbl { font-size: 13px; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.panel-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h2 { font-size: 20px; }
.req-item { padding: 20px 22px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; }
.req-item:last-child { border-bottom: none; }
.req-dog { width: 58px; height: 58px; border-radius: 14px; overflow: hidden; background: var(--bg-warm); flex-shrink: 0; }
.req-dog img { width: 100%; height: 100%; object-fit: cover; }
.req-main .req-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.req-main .req-top b { font-family: var(--font-display); font-size: 17px; }
.req-pill { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-full); }
.req-pill.urgent { background: #FBE9E8; color: #B23A34; }
.req-pill.new { background: var(--success-tint); color: var(--success); }
.req-pill.behaviour { background: var(--grape-tint); color: #6E4CB8; }
.req-pill.puppy { background: var(--amber-tint); color: #B9781A; }
.req-problem { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.req-meta { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.req-meta span { display: inline-flex; align-items: center; gap: 5px; }
.req-meta svg { width: 14px; height: 14px; }
.req-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 130px; }
.locked-note { text-align: center; padding: 40px; color: var(--muted); }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; background: var(--brand); border-radius: var(--r-xl); overflow: hidden; color: #fff; text-align: center; padding: var(--sp-8) 24px; }
.cta-banner::before, .cta-banner::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.06); }
.cta-banner::before { width: 340px; height: 340px; top: -140px; left: -80px; }
.cta-banner::after { width: 280px; height: 280px; bottom: -140px; right: -60px; background: rgba(255,111,77,.18); }
.cta-banner h2 { color: #fff; font-size: clamp(28px, 4vw, 46px); position: relative; }
.cta-banner p { color: rgba(255,255,255,.78); font-size: 19px; margin-top: 16px; max-width: 560px; margin-inline: auto; position: relative; }
.cta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 30px; position: relative; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-warm); border-top: 1px solid var(--line); padding-block: var(--sp-8) var(--sp-6); margin-top: var(--sp-9); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; }
.foot-about p { color: var(--muted); font-size: 14px; margin-top: 16px; max-width: 280px; }
.foot-social { display: flex; gap: 10px; margin-top: 20px; }
.foot-social a { width: 40px; height: 40px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); transition: all .15s; }
.foot-social a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.foot-social svg { width: 19px; height: 19px; }
.foot-col h4 { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.foot-col ul { margin-top: 16px; display: grid; gap: 11px; }
.foot-col a { font-size: 14px; color: var(--muted); }
.foot-col a:hover { color: var(--brand); }
.foot-bottom { border-top: 1px solid var(--line); margin-top: var(--sp-6); padding-top: var(--sp-5); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 14px 22px; border-radius: var(--r-full); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 500; display: flex; align-items: center; gap: 10px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 18px; height: 18px; color: var(--success); }

/* ---------- Utilities ---------- */
.tac { text-align: center; } .mt-0 { margin-top: 0; }
[hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .trainer-grid, .grid-3, .biz-grid, .community-grid { grid-template-columns: repeat(2, 1fr); }
  .shelter-grid { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-about { grid-column: span 3; }
}
@media (max-width: 940px) {
  .nav { gap: 12px; }
  .nav-links { gap: 0; margin-left: 4px; }
  .nav-links a { padding: 8px 9px; font-size: 14px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-desktop { display: none; }
  .burger { display: grid; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .steps, .grid-3, .trainer-grid, .biz-grid, .community-grid { grid-template-columns: 1fr; }
  .gateway-grid { grid-template-columns: 1fr; }
  .map-shell { grid-template-columns: 1fr; }
  .map-list { max-height: none; border-right: none; border-bottom: 1px solid var(--line); }
  .map-list.collapsed { max-height: 280px; }
  .portal-shell { grid-template-columns: 1fr; }
  .portal-nav { position: static; grid-auto-flow: column; overflow-x: auto; }
  .portal-nav a { white-space: nowrap; }
  .chat-shell { grid-template-columns: 1fr; }
  .chat-side { display: none; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }   /* true mobile: destinations move into the burger menu */
  .section { padding-block: var(--sp-7); }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .opt-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: span 2; }
  .req-item { grid-template-columns: 1fr; }
  .req-actions { flex-direction: row; }
  /* Phone home hero: photo/video first, so it's the first thing you see */
  .hero { padding-top: 20px; }
  .hero-grid { gap: 28px; }
  .hero-visual { order: -1; }
  .hero-photo { aspect-ratio: 4/5; max-height: 68vh; max-height: 68svh; }
  .blob { display: none; }
  .float-card { padding: 8px 12px; gap: 10px; }
  .float-card .fc-ic { width: 32px; height: 32px; border-radius: 10px; }
  .float-card .fc-ic svg { width: 18px; height: 18px; }
  .float-card strong { font-size: 13px; }
  .float-card span { font-size: 11px; }
  .fc-1 { top: 12px; left: 12px; }
  .fc-2 { bottom: 12px; right: 12px; }
}
@media (max-width: 480px) {
  .wrap { padding-inline: 18px; }
  .cat-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-about { grid-column: auto; }
  .kpi-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   SPA additions (modals, chips, stylized map)
   ============================================================ */
.modal-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(20,24,20,.5); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border-radius: var(--r-xl); max-width: 520px; width: 100%; max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg); position: relative; padding: 28px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-soft); }
.modal-close:hover { background: var(--bg-warm); } .modal-close svg { width: 22px; height: 22px; }
.book-trainer { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.book-trainer img { width: 60px; height: 60px; border-radius: 16px; object-fit: cover; }
.book-trainer b { font-family: var(--font-display); font-size: 19px; }
.book-trainer span { font-size: 13px; color: var(--muted); display: block; }
.book-success { text-align: center; padding: 12px 0; }
.book-success .ring { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--success-tint); color: var(--success); }
.book-success .ring svg { width: 38px; height: 38px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chip { padding: 8px 15px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink-soft); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.emoji-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.emoji-pick button { width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 24px; }
.emoji-pick button.sel { border-color: var(--brand); background: var(--brand-tint); }
.profile-chip { display: inline-flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-full); padding: 8px 8px 8px 16px; box-shadow: var(--shadow-sm); }
.profile-chip .pc-emoji { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-warm); display: grid; place-items: center; font-size: 22px; }
.m-emoji { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-warm); display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }

/* Stylized map (self-contained, no tiles) */
.smap-shell { display: grid; grid-template-columns: 320px 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--surface); }
.smap-list { max-height: 560px; overflow-y: auto; border-right: 1px solid var(--line); }
.smap-canvas { position: relative; min-height: 560px; background:
   radial-gradient(120% 90% at 70% 20%, #EAF3EE, #DCEBE2 55%, #CFE0D4 100%); overflow: hidden; }
.smap-water { position: absolute; inset: 0; background:
   linear-gradient(135deg, #BFE0E8 0%, #A9D4DE 40%, transparent 62%); }
.smap-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 46px 46px; opacity: .5; }
.smap-label { position: absolute; font-size: 11px; font-weight: 700; color: #2A7E90; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.smap-pin { position: absolute; transform: translate(-50%, -100%); cursor: pointer; z-index: 2; }
.smap-pin .pin-dot { width: 30px; height: 30px; background: var(--accent); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 3px 8px rgba(0,0,0,.28); display: grid; place-items: center; transition: transform .15s; }
.smap-pin .pin-dot span { transform: rotate(45deg); font-size: 13px; }
.smap-pin.active .pin-dot, .smap-pin:hover .pin-dot { transform: rotate(-45deg) scale(1.18); background: var(--accent-700); }
.smap-pop { position: absolute; transform: translate(-50%, calc(-100% - 40px)); background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 14px 16px; width: 230px; z-index: 5; border: 1px solid var(--line); }
.smap-pop::after { content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); border: 8px solid transparent; border-top-color: var(--surface); }
.smap-pop.below { transform: translate(-50%, 40px); }
.smap-pop.below::after { bottom: auto; top: -8px; border-top-color: transparent; border-bottom-color: var(--surface); }

/* ============================================================
   Trainer CRM
   ============================================================ */
.crm-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 22px 0 6px; }
.crm-bar .pb-badge { font-size: 12px; font-weight: 700; background: var(--brand-tint); color: var(--brand); padding: 5px 12px; border-radius: var(--r-full); }
.crm-bar .crm-name { font-family: var(--font-display); font-size: 20px; }
.crm-bar .crm-right { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; }
.crm-bar .crm-right a { color: var(--muted); } .crm-bar .crm-right a:hover { color: var(--brand); }
.crm-bar .crm-right a.danger { color: var(--accent-700); font-weight: 600; }

.crm-search { position: relative; margin-bottom: 16px; }
.crm-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.crm-search input { width: 100%; padding: 12px 14px 12px 42px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); font-size: 15px; background: var(--surface); }
.crm-search input:focus { outline: none; border-color: var(--brand); }

/* client list */
.client-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.client-row:hover { background: var(--bg-warm); }
.client-row:last-child { border-bottom: none; }
.client-av { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; background: var(--bg-warm); flex-shrink: 0; }
.client-av img { width: 100%; height: 100%; object-fit: cover; }
.client-row .cr-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.client-row .cr-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.client-row .cr-tags { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-full); }
.pill.behaviour { background: var(--grape-tint); color: #6E4CB8; } .pill.puppy { background: var(--amber-tint); color: #B9781A; }
.pill.obedience { background: var(--brand-tint); color: var(--brand); } .pill.protection { background: var(--sky-tint); color: #2A7E90; }
.pill.sub { background: var(--success-tint); color: var(--success); } .pill.pkg { background: var(--brand-tint); color: var(--brand); }
.pill.due { background: #FBE9E8; color: #B23A34; }
.cr-right { text-align: right; }
.cr-right .cr-pkg { font-size: 13px; font-weight: 600; }
.cr-right .cr-next { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* dog detail */
.crm-detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.dog-head { display: flex; gap: 16px; align-items: center; }
.dog-head .dh-av { width: 76px; height: 76px; border-radius: 20px; overflow: hidden; flex-shrink: 0; background: var(--bg-warm); }
.dog-head .dh-av img { width: 100%; height: 100%; object-fit: cover; }
.dog-head h2 { font-size: 26px; }
.dog-head .dh-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.dog-head .dh-tags { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.back-link:hover { color: var(--brand); }
.back-link svg { width: 16px; height: 16px; }

/* package card */
.pkg-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.pkg-card + .pkg-card { margin-top: 16px; }
.pkg-card h4 { font-family: var(--font-body); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pkg-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.pkg-title b { font-family: var(--font-display); font-size: 18px; }
.pkg-bar { height: 10px; border-radius: 5px; background: var(--bg-warm); overflow: hidden; margin-top: 12px; }
.pkg-bar > div { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--accent), var(--amber)); }
.pkg-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; }
.pkg-price { font-family: var(--font-display); font-size: 22px; color: var(--brand); }
.info-list { display: grid; gap: 10px; margin-top: 6px; }
.info-list .il { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.info-list .il svg { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; margin-top: 2px; }
.info-list .il span { color: var(--muted); } .info-list .il b { font-weight: 600; }

/* timeline / chat */
.feed { display: flex; flex-direction: column; gap: 14px; padding: 4px 2px; }
.fe { max-width: 88%; }
.fe.me { align-self: flex-end; }
.fe-card { border-radius: 14px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.fe.me .fe-card { background: var(--brand-tint); border-color: #D6E6DE; }
.fe-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px 0; font-size: 12px; }
.fe-head b { font-weight: 700; } .fe-head .fe-time { color: var(--muted); margin-left: auto; }
.fe-body { padding: 6px 14px 12px; font-size: 14px; color: var(--ink); }
.fe-photo img { width: 100%; display: block; max-height: 260px; object-fit: cover; }
.fe-video { position: relative; background: #1c231f; aspect-ratio: 16/10; display: grid; place-items: center; }
.fe-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.fe-video .play { position: relative; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; }
.fe-video .play svg { width: 24px; height: 24px; color: var(--brand); margin-left: 3px; }
.fe-video .vlen { position: absolute; bottom: 8px; right: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 6px; }
.fe-loc { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--sky-tint); }
.fe-loc .lm { width: 42px; height: 42px; border-radius: 10px; background: #CFE6EA; display: grid; place-items: center; }
.fe-loc svg { width: 20px; height: 20px; color: #2A7E90; }
.fe-loc b { font-size: 14px; } .fe-loc span { font-size: 12px; color: var(--muted); display: block; }
.fe-reminder { border-left: 4px solid var(--amber); }
.fe-reminder .fe-body { display: flex; align-items: flex-start; gap: 10px; }
.fe-rem-check { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line-strong); flex-shrink: 0; cursor: pointer; display: grid; place-items: center; margin-top: 1px; }
.fe-rem-check.done { background: var(--success); border-color: var(--success); }
.fe-rem-check svg { width: 14px; height: 14px; color: #fff; }
.fe-rem-check:not(.done) svg { display: none; }
.fe-rem-text.done { text-decoration: line-through; color: var(--muted); }
.fe-rem-due { font-size: 12px; color: var(--warn); font-weight: 600; margin-top: 3px; }
.fe-session { display: inline-flex; align-items: center; gap: 8px; background: var(--success-tint); color: var(--success); font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: var(--r-full); }
.fe-session svg { width: 16px; height: 16px; }

/* composer */
.composer { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 12px; margin-top: 18px; position: sticky; bottom: 12px; box-shadow: var(--shadow-sm); }
.composer textarea { width: 100%; border: none; resize: none; font-size: 14px; padding: 6px 8px; min-height: 44px; background: none; }
.composer textarea:focus { outline: none; }
.composer-actions { display: flex; align-items: center; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.comp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--r-full); font-size: 13px; font-weight: 600; color: var(--ink-soft); background: var(--bg-warm); }
.comp-btn:hover { background: var(--brand-tint); color: var(--brand); }
.comp-btn svg { width: 16px; height: 16px; }
.comp-send { margin-left: auto; background: var(--accent); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.comp-send:hover { background: var(--accent-700); } .comp-send svg { width: 20px; height: 20px; }

/* reminders view */
.rem-item { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.rem-item:last-child { border-bottom: none; }
.rem-item .rem-check { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line-strong); flex-shrink: 0; cursor: pointer; display: grid; place-items: center; }
.rem-item .rem-check.done { background: var(--success); border-color: var(--success); }
.rem-item .rem-check svg { width: 15px; height: 15px; color: #fff; } .rem-item .rem-check:not(.done) svg { display: none; }
.rem-item .rem-main b { font-size: 15px; } .rem-item .rem-main.done b { text-decoration: line-through; color: var(--muted); }
.rem-item .rem-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.rem-item .rem-due { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--warn); white-space: nowrap; }
.rem-item .rem-due.today { color: var(--accent-700); }

@media (max-width: 900px) {
  .crm-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .client-row { grid-template-columns: auto 1fr; }
  .cr-right { grid-column: 2; text-align: left; margin-top: 6px; }
}

/* schedule / calendar */
.portal-shell > main { min-width: 0; } /* let inner scroll containers (week grid) contain their own overflow */
.sched-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; background: var(--bg-warm); border-radius: var(--r-full); padding: 3px; }
.seg button { padding: 7px 15px; border-radius: var(--r-full); font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.sched-nav { display: flex; align-items: center; gap: 6px; }
.sched-nav button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); }
.sched-nav button:hover { background: var(--bg-warm); }
.sched-nav svg { width: 18px; height: 18px; }
.sched-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; min-width: 130px; text-align: center; }
.sched-body { padding: 16px 20px 20px; }

/* month */
.month-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.month-dow div { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.month-cell { min-height: 86px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; overflow: hidden; transition: border-color .12s; }
.month-cell:hover { border-color: var(--brand); background: var(--brand-tint); }
.month-cell.other { opacity: .45; }
.month-cell.today { border-color: var(--brand); background: var(--brand-tint); }
.month-cell .mc-date { font-size: 12px; font-weight: 700; }
.month-chip { font-size: 10.5px; font-weight: 600; background: var(--brand); color: #fff; border-radius: 5px; padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.month-more { font-size: 10.5px; color: var(--muted); font-weight: 600; }

/* time grid (day / week) */
.tg-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.time-grid { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.time-grid.week { min-width: 660px; }
.tg-h { padding: 9px 6px; text-align: center; font-size: 12px; font-weight: 700; background: var(--bg-warm); border-left: 1px solid var(--line); }
.tg-h:first-child { border-left: none; }
.tg-h.today { color: var(--brand); }
.tg-h small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.tg-time { font-size: 11px; color: var(--muted); padding: 4px 8px 0; text-align: right; border-top: 1px solid var(--line); }
.tg-slot { border-top: 1px solid var(--line); border-left: 1px solid var(--line); min-height: 48px; cursor: pointer; padding: 3px; transition: background .1s; position: relative; }
.tg-slot:hover { background: var(--brand-tint); }
.tg-slot:hover::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--brand); font-size: 18px; font-weight: 700; }
.session-block { background: var(--brand); color: #fff; border-radius: 7px; padding: 5px 8px; font-size: 11.5px; font-weight: 700; height: 100%; overflow: hidden; cursor: pointer; }
.session-block small { display: block; font-weight: 400; opacity: .85; font-size: 10.5px; }
.session-block.sub { background: var(--sky); }
.session-block[draggable="true"] { cursor: grab; }
.tg-slot.drop-hover { background: var(--brand-tint); outline: 2px dashed var(--brand); outline-offset: -2px; }
.tg-slot:has(.session-block):hover::after { content: none; }

/* invite entry in journal */
.fe-card.fe-invite { border-left: 4px solid var(--sky); }
.inv-head { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.fe-loc-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; background: var(--sky-tint); color: #2A7E90; font-weight: 700; font-size: 13px; padding: 8px 13px; border-radius: var(--r-full); }
.fe-loc-link svg { width: 15px; height: 15px; }

@media (max-width: 620px) {
  .month-cell { min-height: 64px; }
  .month-chip { font-size: 9.5px; padding: 1px 4px; }
  .sched-title { min-width: 96px; font-size: 16px; }
}
.smap-pop .mp-type { font-size: 11px; color: var(--accent-700); font-weight: 700; text-transform: uppercase; }
.smap-pop h4 { font-family: var(--font-body); font-size: 15px; margin: 3px 0; }
.smap-pop ul { margin-top: 6px; display: grid; gap: 3px; }
.smap-pop li { font-size: 12px; color: var(--ink-soft); display: flex; gap: 5px; }
.smap-pop li::before { content: "🐾"; font-size: 10px; }
@media (max-width: 720px) {
  .field-row { grid-template-columns: 1fr; }
  .smap-shell { grid-template-columns: 1fr; }
  .smap-list { max-height: 260px; border-right: none; border-bottom: 1px solid var(--line); order: 2; }
  .smap-canvas { min-height: 340px; order: 1; }
}

/* ============================================================
   Dog profile wizard + uploads + skill tree
   ============================================================ */
.wiz { max-width: 760px; margin: 0 auto; }
.wiz-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.wiz-progress { flex: 1; height: 8px; background: var(--bg-warm); border-radius: 4px; overflow: hidden; }
.wiz-progress > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--amber)); border-radius: 4px; transition: width .3s ease; }
.wiz-step-lbl { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.wiz-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(20px,4vw,34px); box-shadow: var(--shadow-sm); }
.wiz-card h2 { font-size: clamp(22px,3vw,28px); }
.wiz-card .wiz-sub { color: var(--muted); margin-top: 6px; font-size: 15px; }
.wiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 22px; }
.wiz-grid .full { grid-column: 1 / -1; }
.wiz-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.seg-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-pick button { padding: 9px 15px; border-radius: var(--r-full); border: 1.5px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.seg-pick button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-pick button { padding: 8px 14px; border-radius: var(--r-full); border: 1.5px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.chip-pick button.on { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-700); }

/* pet photo (big) */
.pet-photo { display: flex; align-items: center; gap: 18px; }
.pet-photo .pp-ring { width: 110px; height: 110px; border-radius: 50%; border: 3px dashed var(--line-strong); display: grid; place-items: center; overflow: hidden; cursor: pointer; flex-shrink: 0; background: var(--bg-warm); position: relative; }
.pet-photo .pp-ring:hover { border-color: var(--accent); }
.pet-photo .pp-ring img { width: 100%; height: 100%; object-fit: cover; }
.pet-photo .pp-ring.filled { border-style: solid; border-color: var(--success); }
.pet-photo .pp-ring svg { width: 34px; height: 34px; color: var(--muted); }
.pet-photo .pp-hint b { display: block; font-size: 15px; }
.pet-photo .pp-hint span { font-size: 13px; color: var(--muted); }

/* document uploads */
.upload-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px; }
.upload-tile { border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); min-height: 128px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; cursor: pointer; position: relative; padding: 14px; overflow: hidden; transition: border-color .15s, background .15s; }
.upload-tile:hover { border-color: var(--accent); background: var(--accent-tint); }
.upload-tile .ut-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--bg-warm); display: grid; place-items: center; }
.upload-tile .ut-ic svg { width: 21px; height: 21px; color: var(--muted); }
.upload-tile .ut-name { font-size: 13.5px; font-weight: 700; }
.upload-tile .ut-req { color: var(--accent-700); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.upload-tile .ut-opt { color: var(--muted); font-size: 11px; }
.upload-tile.filled { border-style: solid; border-color: var(--success); padding: 0; }
.upload-tile.filled img { width: 100%; height: 128px; object-fit: cover; }
.upload-tile .ut-badge { position: absolute; bottom: 8px; left: 8px; background: var(--success); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-full); display: flex; align-items: center; gap: 4px; }
.upload-tile .ut-badge svg { width: 12px; height: 12px; }
.upload-tile .ut-remove { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(20,22,20,.6); color: #fff; display: grid; place-items: center; }
.upload-tile .ut-remove svg { width: 16px; height: 16px; }

/* profile summary */
.prof-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.prof-hero .ph-photo { width: 96px; height: 96px; border-radius: 26px; object-fit: cover; box-shadow: var(--shadow-md); }
.prof-hero h1 { font-size: clamp(26px,4vw,38px); }
.prof-hero .ph-sub { color: var(--muted); font-size: 15px; margin-top: 4px; }
.dog-switch { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; margin-bottom: 8px; scrollbar-width: thin; }
.ds-dog, .ds-add { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 5px 14px 5px 5px; border-radius: var(--r-full); border: 1.5px solid var(--line); background: var(--surface); font: 600 14px var(--font-body); color: var(--ink-soft); cursor: pointer; }
.ds-dog img, .ds-mono { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.ds-mono { display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); font-weight: 700; }
.ds-dog.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.ds-add { border-style: dashed; color: var(--brand); }
.ds-add .ds-mono { background: transparent; font-size: 20px; }
.ds-dog:focus-visible, .ds-add:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 620px) {
  .wiz-grid { grid-template-columns: 1fr; }
  .upload-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Accessibility: skip link + visible focus
   ============================================================ */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 400;
  background: var(--brand); color: #fff; padding: 12px 18px; border-radius: var(--r-md);
  font-weight: 600; font-size: 15px; transition: top .15s ease; box-shadow: var(--shadow-md);
}
.skip-link:focus { top: 12px; outline: 3px solid var(--accent); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }

/* ============================================================
   Footer legal line + links
   ============================================================ */
.foot-legal-line { border-top: 1px solid var(--line); margin-top: var(--sp-6); padding-top: var(--sp-5); }
.foot-legal-line p { font-size: 12.5px; color: var(--muted); line-height: 1.7; max-width: 900px; }
.foot-legal-line a { color: var(--accent-700); }
.foot-bottom .foot-links a { color: var(--muted); }
.foot-bottom .foot-links a:hover { color: var(--brand); }

/* ============================================================
   Sample-data banner + inline flag
   ============================================================ */
.sample-banner {
  background: var(--amber-tint); border-bottom: 1px solid #EAD9B0; color: #7a5a12;
  font-size: 14px; padding: 12px 0;
}
.sample-banner .wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sample-flag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--warn);
  padding: 3px 10px; border-radius: var(--r-full); white-space: nowrap;
}
.tc-sample { margin: 12px 20px 0; }
.tc-avatar.tc-mono { display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); font-family: var(--font-display); font-weight: 600; font-size: 24px; }
.tc-avatar.tc-mono::after { content: attr(data-mono); }

/* ============================================================
   Form consent (checkbox + privacy link)
   ============================================================ */
.consent-row {
  display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 16px;
  font-size: 13px; color: var(--ink-soft); line-height: 1.5;
}
.consent-row input[type="checkbox"] {
  width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--brand); cursor: pointer;
}
.consent-row label { cursor: pointer; }
.consent-row a { color: var(--accent-700); font-weight: 600; text-decoration: underline; }

/* ============================================================
   Cookie consent banner + preferences modal
   ============================================================ */
.cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 350;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 30px -12px rgba(0,0,0,.25);
}
.cc-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.cc-text { flex: 1 1 340px; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.cc-text a { color: var(--accent-700); font-weight: 600; text-decoration: underline; }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-overlay {
  position: fixed; inset: 0; z-index: 360; background: rgba(20,24,20,.5); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 16px;
}
.cc-modal {
  background: var(--surface); border-radius: var(--r-xl); max-width: 480px; width: 100%;
  max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg); position: relative; padding: 28px;
}
.cc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.cc-row:last-of-type { border-bottom: none; }
.cc-row b { display: block; font-size: 15px; }
.cc-row span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.cc-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
/* toggle switch */
.cc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-slider {
  position: absolute; inset: 0; background: var(--line-strong); border-radius: 999px; transition: background .15s; cursor: pointer;
}
.cc-slider::before {
  content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .15s;
}
.cc-switch input:checked + .cc-slider { background: var(--success); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(20px); }
.cc-switch input:disabled + .cc-slider { opacity: .6; cursor: not-allowed; }
.cc-switch input:focus-visible + .cc-slider { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ============================================================
   Legal / policy pages (prose)
   ============================================================ */
.legal { padding-block: var(--sp-7) var(--sp-8); }
.legal .prose { max-width: 760px; }
.legal .prose h2 { font-size: 26px; margin-top: 40px; scroll-margin-top: 90px; }
.legal .prose h3 { font-size: 19px; margin-top: 26px; font-family: var(--font-body); font-weight: 700; }
.legal .prose p, .legal .prose li { font-size: 16px; color: var(--ink-soft); line-height: 1.75; }
.legal .prose p { margin-top: 14px; }
.legal .prose ul { margin-top: 12px; padding-left: 22px; list-style: disc; display: grid; gap: 8px; }
.legal .prose ul li { padding-left: 4px; }
.legal .prose a { color: var(--accent-700); text-decoration: underline; }
.legal .prose strong { color: var(--ink); }
.legal .updated { font-size: 14px; color: var(--muted); margin-top: 8px; }
.legal-toc {
  background: var(--bg-warm); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 22px; margin-top: 24px;
}
.legal-toc b { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.legal-toc ul { margin-top: 10px; display: grid; gap: 8px; padding: 0; list-style: none; }
.legal-toc a { color: var(--accent-700); font-size: 15px; font-weight: 600; text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-note {
  background: var(--sky-tint); border: 1px solid #BEDDE3; border-radius: var(--r-md);
  padding: 14px 18px; font-size: 14px; color: #205e6b; margin-top: 20px; line-height: 1.6;
}
.legal-note strong { color: #17454f; }
.placeholder {
  background: #FBE9E8; color: #A5312C; border-radius: 4px; padding: 0 5px; font-weight: 600;
  font-size: .95em; white-space: nowrap;
}
@media (max-width: 560px) {
  .cc-actions { width: 100%; }
  .cc-actions .btn { flex: 1; }
}

/* ===== Website copy sections (vetting promise, training paths, FAQ, vetted badge, apply page) ===== */
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.promise { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.promise h3 { font-size: 19px; margin-top: 14px; }
.promise p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.promise-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.promise-ic svg { width: 22px; height: 22px; }
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.path-card { background: var(--bg-warm); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.path-card .g-kicker { color: var(--accent-700); }
.path-card h3 { font-size: clamp(22px, 2.6vw, 28px); }
.path-card p { color: var(--ink-soft); font-size: 16px; flex: 1; }
.path-card.dark { background: var(--brand); border-color: var(--brand); }
.path-card.dark h3, .path-card.dark .link-arrow { color: #fff; }
.path-card.dark p { color: rgba(255,255,255,.78); }
.path-card.dark .g-kicker { color: #FFC9A8; }
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 16px; padding: 18px 28px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--brand); font-weight: 500; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); padding-bottom: 18px; font-size: 15px; }
.sample-flag.vetted-flag { background: var(--success); text-decoration: none; }
.tc-sample .sample-flag + .sample-flag { margin-left: 6px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.join-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: js; }
.join-steps .promise { padding: 20px; }
.join-steps .promise::before { counter-increment: js; content: counter(js); width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.founding { background: linear-gradient(120deg, var(--accent-700), var(--amber)); color: #fff; border-radius: var(--r-xl); padding: clamp(28px, 5vw, 56px); }
.founding h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); margin-top: 14px; }
.founding p { color: rgba(255,255,255,.92); font-size: 17px; margin-top: 12px; max-width: 640px; }
.founding .eyebrow { background: rgba(255,255,255,.18); color: #fff; }
.founding small { display: block; margin-top: 16px; color: rgba(255,255,255,.85); font-size: 13px; }
@media (max-width: 980px) { .promise-grid, .benefit-grid { grid-template-columns: 1fr 1fr; } .join-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .promise-grid, .benefit-grid, .path-grid, .join-steps { grid-template-columns: 1fr; } }

/* ============================================================
   Me&MyPup — 6-week training roadmap (roadmap.js)
   ============================================================ */
.rm { margin-top: 22px; display: grid; gap: 16px; }
.rm-draft { display: flex; gap: 10px; align-items: flex-start; background: var(--amber-tint); border: 1px solid #EAD9B0; border-radius: var(--r-md); padding: 12px 16px; font-size: 13.5px; color: #6f5210; }
.rm-draft svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.rm-summary { background: var(--brand); color: #fff; border-radius: var(--r-xl); padding: clamp(18px, 3vw, 26px); }
.rm-sum-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.rm-sum-k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #FFC9A8; }
.rm-sum-t { font-family: var(--font-display); font-size: clamp(22px, 3vw, 28px); font-weight: 600; margin-top: 4px; line-height: 1.15; }
.rm-sum-n { text-align: right; }
.rm-sum-n b { font-family: var(--font-display); font-size: 26px; display: block; line-height: 1; }
.rm-sum-n span { font-size: 12.5px; color: rgba(255,255,255,.72); }
.rm-bar { height: 10px; background: rgba(255,255,255,.16); border-radius: 5px; overflow: hidden; margin-top: 14px; }
.rm-bar > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--amber)); border-radius: 5px; transition: width .35s ease; }
.rm-adapts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 14px; font-size: 12.5px; color: rgba(255,255,255,.78); }
.rm-chip { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; padding: 3px 10px; border-radius: var(--r-full); }
.rm-track { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; position: relative; }
.rm-stop button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; padding: 4px 2px; border-radius: 12px; }
.rm-stop button:hover { background: rgba(255,255,255,.08); }
.rm-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.28); }
.rm-dot svg { width: 16px; height: 16px; }
.rm-stop.done .rm-dot { background: var(--success); border-color: var(--success); }
.rm-stop.now .rm-dot { background: var(--accent); border-color: #FFC9A8; box-shadow: 0 0 0 4px rgba(232,116,42,.3); }
.rm-stop.locked { opacity: .55; }
.rm-stop-lbl { font-size: 11px; line-height: 1.25; text-align: center; color: rgba(255,255,255,.75); }
.rm-stop-lbl b { display: block; color: #fff; font-size: 12px; }
.rm-howto { font-size: 14px; color: var(--muted); }
.rm-term { display: inline; padding: 0; font: inherit; color: var(--accent-700); font-weight: 600; text-decoration: underline dotted; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; background: none; }
.rm-term:hover { color: var(--accent); }
.rm-term-demo { cursor: default; }
.rm-weeks { display: grid; gap: 12px; }
.rm-week { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; scroll-margin-top: 90px; }
.rm-week.open { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.rm-week.done { background: #FBFDFB; }
.rm-week-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: left; color: var(--ink); }
.rm-week-head:disabled { cursor: default; }
.rm-wk-n { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 18px; background: var(--bg-warm); }
.rm-week.now .rm-wk-n { background: var(--accent-tint); color: var(--accent-700); }
.rm-week.done .rm-wk-n { background: var(--success-tint); color: var(--success); }
.rm-wk-t { flex: 1; min-width: 0; }
.rm-wk-t small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.rm-wk-t b { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.2; }
.rm-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-full); white-space: nowrap; }
.rm-badge svg { width: 13px; height: 13px; }
.rm-badge.done { background: var(--success-tint); color: var(--success); }
.rm-badge.now { background: var(--accent-tint); color: var(--accent-700); }
.rm-badge.locked { background: var(--bg-warm); color: var(--muted); }
.rm-chev svg { width: 20px; height: 20px; color: var(--muted); transition: transform .2s; }
.rm-week.open .rm-chev svg { transform: rotate(180deg); }
.rm-locked-body { padding: 0 18px 16px 72px; font-size: 13.5px; color: var(--muted); }
.rm-locked-body ul { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.rm-locked-body li { background: var(--bg-warm); border-radius: var(--r-full); padding: 3px 10px; font-size: 12.5px; }
.rm-week-body { padding: 0 18px 18px; }
.rm-goal { background: var(--bg-warm); border-radius: var(--r-md); padding: 12px 14px; font-size: 15px; }
.rm-goal span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.rm-exs { display: grid; gap: 10px; margin-top: 14px; }
.rm-ex { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; transition: background .15s, border-color .15s; }
.rm-ex.on { background: var(--success-tint); border-color: #BFE3CC; }
.rm-check { width: 30px; height: 30px; flex: none; border-radius: 9px; border: 2px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; color: transparent; margin-top: 1px; }
.rm-check svg { width: 17px; height: 17px; }
.rm-check:hover { border-color: var(--success); }
.rm-ex.on .rm-check { background: var(--success); border-color: var(--success); color: #fff; }
.rm-ex-main { flex: 1; min-width: 0; }
.rm-ex-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rm-ex-top b { font-size: 15.5px; }
.rm-ex.on .rm-ex-top b { text-decoration: line-through; text-decoration-color: rgba(46,158,91,.5); }
.rm-for { font-size: 11px; font-weight: 700; background: var(--grape-tint); color: #6E4CB8; padding: 2px 8px; border-radius: var(--r-full); }
.rm-ex-time { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.rm-steps { margin-top: 8px; }
.rm-steps summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--brand); width: max-content; }
.rm-steps ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-soft); }
.rm-week-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.rm-week-foot .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.rm-next-hint { font-size: 13px; color: var(--muted); }
.rm-done-note { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--success); font-weight: 600; }
.rm-done-note svg { width: 16px; height: 16px; }
.rm-stuck-btn { margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.rm-stuck-btn:hover { color: var(--accent-700); }
.rm-nudge { margin-top: 14px; background: var(--grape-tint); border: 1px solid #DCCDF7; border-radius: var(--r-md); padding: 14px 16px; }
.rm-nudge b { font-size: 15px; }
.rm-nudge p { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.rm-nudge-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rm-grad { display: flex; gap: 14px; align-items: center; background: var(--success-tint); border: 1px solid #BFE3CC; border-radius: var(--r-lg); padding: 16px 18px; font-size: 30px; }
.rm-grad b { display: block; font-size: 16px; }
.rm-grad span { font-size: 14px; color: var(--ink-soft); }
.rm-sheet { max-width: 480px; }
.rm-sheet h2 { font-size: 24px; margin-top: 6px; padding-right: 36px; }
.rm-sheet h4 { font-family: var(--font-body); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 16px; }
.rm-sheet-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--accent-700); text-transform: uppercase; letter-spacing: .05em; }
.rm-sheet-kicker svg { width: 15px; height: 15px; }
.rm-sheet-what { margin-top: 10px; font-size: 15.5px; color: var(--ink-soft); }
.rm-sheet-list { margin-top: 6px; display: grid; gap: 5px; }
.rm-sheet-list li { font-size: 14.5px; padding-left: 20px; position: relative; }
.rm-sheet-list li::before { content: "•"; position: absolute; left: 6px; color: var(--accent); font-weight: 700; }
.rm-sheet-call { font-size: 14.5px; margin-top: 6px; }
.rm-sheet-foot { font-size: 12px; color: var(--muted); margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.rm-crm-stuck { margin-top: 10px; background: var(--grape-tint); color: #5a3fa0; font-size: 12.5px; font-weight: 600; border-radius: 10px; padding: 8px 10px; }
@media (max-width: 620px) {
  .rm-track { grid-template-columns: repeat(6, 1fr); gap: 2px; }
  .rm-stop-lbl { display: none; }
  .rm-dot { width: 30px; height: 30px; font-size: 13px; }
  .rm-week-head { padding: 14px; gap: 10px; }
  .rm-wk-n { width: 34px; height: 34px; font-size: 16px; }
  .rm-wk-t b { font-size: 16px; }
  .rm-week-body { padding: 0 14px 16px; }
  .rm-locked-body { padding: 0 14px 14px; }
  .rm-ex { padding: 12px; }
  .rm-sheet-ov { align-items: end; padding: 0; }
  .rm-sheet { border-radius: 24px 24px 0 0; max-height: 86vh; }
}

/* ============================================================
   Trainer CRM — invoices
   ============================================================ */
.pill.bill-draft { background: var(--bg-warm); color: var(--ink-soft); }
.pill.bill-sent { background: var(--amber-tint); color: #8a5a0e; }
.pill.bill-overdue { background: #FBE9E8; color: #B23A34; }
.pill.bill-paid { background: var(--success-tint); color: var(--success); }
.bill-dash { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px; background: var(--bg-warm); border-radius: var(--r-md); font-size: 14px; }
.bill-dash span { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bill-dash svg { width: 18px; height: 18px; color: var(--muted); }
.bill-mini { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.bill-mini span span { color: var(--muted); }
.bill-mini:hover b { color: var(--accent-700); }
.pkg-card .btn svg { width: 16px; height: 16px; }
.bill-mono { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 700; color: var(--brand); background: var(--brand-tint); }
.fe-card.fe-bill { border-left: 4px solid var(--accent); }
.bill-chat-top { display: flex; align-items: center; gap: 10px; }
.bill-chat-top > div { flex: 1; font-size: 13px; }
.bill-chat-top > div span { color: var(--muted); }
.bill-chat-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-tint); color: var(--accent-700); display: grid; place-items: center; flex: none; }
.bill-chat-ic svg { width: 20px; height: 20px; }
.bill-chat-amt { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-top: 8px; }
.bill-warn { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--amber-tint); border: 1px solid #EAD9B0; border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 18px; font-size: 14px; color: #6f5210; }
.bill-warn > svg { width: 20px; height: 20px; flex: none; }
.bill-warn span { flex: 1; min-width: 200px; }
.bill-warn a { color: var(--accent-700); font-weight: 700; text-decoration: underline; }
.bill-warn.sm { margin: 14px 0 0; font-size: 13px; }
.bill-filters { padding: 14px 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.bill-lines-head, .bill-line { display: grid; grid-template-columns: minmax(0, 1fr) 64px 110px 110px 36px; gap: 8px; align-items: center; }
.bill-lines-head { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 6px 0 6px; }
.bill-line { margin-bottom: 8px; }
.bill-line .input { padding: 10px 12px; min-height: 44px; }
.bill-amt { font-weight: 600; font-size: 14px; text-align: right; white-space: nowrap; }
.bill-rm { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.bill-rm:hover { background: #FBE9E8; color: #B23A34; }
.bill-rm svg { width: 17px; height: 17px; }
.bill-empty { border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); padding: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.bill-add { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.bill-sess { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; background: var(--bg-warm); }
.bill-sess-row { display: flex; gap: 8px; align-items: center; font-size: 14px; padding: 6px 0; cursor: pointer; }
.bill-sess-row input { width: 18px; height: 18px; accent-color: var(--brand); }
.bill-tot { margin-left: auto; max-width: 320px; display: grid; gap: 6px; font-size: 14px; }
.bill-tot > div { display: flex; justify-content: space-between; gap: 16px; }
.bill-tot-grand { border-top: 1px solid var(--line-strong); padding-top: 8px; font-size: 17px; }
.bill-tot-grand b { font-family: var(--font-display); font-size: 20px; }
.bill-edit-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.bill-view-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-right: 44px; }
.bill-view-amt { margin-left: auto; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.bill-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.bill-actions .btn svg { width: 16px; height: 16px; }
.bill-wa { background: #25D366; color: #0b3d20; font-weight: 700; }
.bill-wa:hover { background: #1fbe5b; }
.bill-wa:disabled { opacity: .5; cursor: not-allowed; }
.bill-paidform { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; background: var(--bg-warm); }
.bill-online { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.bill-online .btn:disabled { opacity: .6; cursor: not-allowed; }
.bill-paper-wrap { margin-top: 16px; background: var(--bg-warm); border-radius: var(--r-lg); padding: 14px; overflow-x: auto; }
.bill-paper { position: relative; background: #fff; color: #1d1f1c; border: 1px solid var(--line); border-radius: 12px; padding: 28px; font-size: 13.5px; line-height: 1.5; min-width: 0; overflow: hidden; }
.bp-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.bp-seller { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.bp-small { color: #555; font-size: 12.5px; margin-top: 4px; }
.bp-title { text-align: right; }
.bp-title h3 { font-size: 22px; letter-spacing: .02em; text-transform: uppercase; }
.bp-meta { margin-top: 6px; margin-left: auto; border-collapse: collapse; font-size: 12.5px; }
.bp-meta td { padding: 1px 0 1px 12px; }
.bp-meta td:first-child { color: #666; }
.bp-meta td:last-child { font-weight: 600; text-align: right; }
.bp-bill { margin-top: 22px; }
.bp-bill span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #777; }
.bp-bill b { display: block; font-size: 15px; }
.bp-lines { width: 100%; border-collapse: collapse; margin-top: 20px; }
.bp-lines th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #666; border-bottom: 2px solid #222; padding: 6px 6px 6px 0; }
.bp-lines td { padding: 9px 6px 9px 0; border-bottom: 1px solid #e6e1d6; vertical-align: top; }
.bp-lines th:not(:first-child), .bp-lines td:not(:first-child) { text-align: right; white-space: nowrap; }
.bp-totals { margin: 12px 0 0 auto; border-collapse: collapse; min-width: 240px; }
.bp-totals td { padding: 3px 0 3px 18px; }
.bp-totals td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.bp-totals .bp-grand td { border-top: 2px solid #222; padding-top: 8px; font-size: 16px; font-weight: 700; }
.bp-pay { margin-top: 20px; background: #f6f3ec; border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.bp-note { margin-top: 12px; color: #444; font-size: 13px; }
.bp-foot { margin-top: 22px; padding-top: 10px; border-top: 1px solid #e6e1d6; font-size: 11.5px; color: #777; }
.bp-stamp { position: absolute; top: 18px; right: 50%; transform: translateX(50%) rotate(-8deg); border: 3px solid var(--success); color: var(--success); font-weight: 800; font-size: 20px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 14px; border-radius: 8px; opacity: .8; text-align: center; line-height: 1.1; pointer-events: none; }
.bp-stamp small { display: block; font-size: 10px; letter-spacing: .04em; }
.bp-stamp.draft { border-color: #aaa; color: #999; }
#billPrint { display: none; }
@media print {
  body.bill-printing > *:not(#billPrint) { display: none !important; }
  body.bill-printing #billPrint { display: block !important; }
  body.bill-printing { background: #fff !important; }
  #billPrint .bill-paper { border: none; padding: 0; font-size: 12pt; }
}
@media (max-width: 620px) {
  .bill-lines-head { display: none; }
  .bill-line { grid-template-columns: 70px minmax(0, 1fr) 36px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px; }
  .bill-line [data-k="desc"] { grid-column: 1 / -1; grid-row: 1; }
  .bill-line [data-k="qty"] { grid-column: 1; grid-row: 2; }
  .bill-line [data-k="unit"] { grid-column: 2; grid-row: 2; }
  .bill-line .bill-rm { grid-column: 3; grid-row: 2; }
  .bill-line .bill-amt { grid-column: 1 / -1; grid-row: 3; padding-right: 4px; }
  .bill-tot { max-width: none; }
  .bill-edit-foot .btn { flex: 1; }
  .bill-paper { padding: 18px 14px; font-size: 12.5px; }
  .bill-paper-wrap { padding: 6px; }
  .bill-paper-wrap .bp-lines th:nth-child(3), .bill-paper-wrap .bp-lines td:nth-child(3) { display: none; }
  .bp-title { text-align: left; }
  .bp-meta { margin-left: 0; }
  .bp-meta td { padding: 1px 12px 1px 0; }
  .bp-totals { min-width: 0; width: 100%; }
  .bill-view-amt { margin-left: 0; width: 100%; }
}

/* ============================================================
   Trainer CRM — My profile
   ============================================================ */
.tp-head { display: flex; align-items: center; gap: 16px; padding: 20px 22px 14px; }
.tp-av { width: 64px; height: 64px; border-radius: 18px; overflow: hidden; flex: none; background: var(--brand-tint); display: grid; place-items: center; font-weight: 700; font-size: 20px; color: var(--brand); }
.tp-av img { width: 100%; height: 100%; object-fit: cover; }
.tp-head h2 { font-size: 22px; }
.tp-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-top: 3px; }
.tp-tabs { padding: 0 22px 14px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tp-tabs .seg button { white-space: nowrap; }
.tp-body { padding: 20px 22px 24px; }
.tp-banner { display: flex; flex-direction: column; gap: 4px; background: var(--bg-warm); border-radius: var(--r-md); padding: 12px 16px; font-size: 14px; margin-bottom: 18px; }
.tp-banner span { color: var(--ink-soft); }
.tp-banner .btn { align-self: flex-start; margin-top: 6px; }
.tp-banner.wait { background: var(--amber-tint); border: 1px solid #EAD9B0; }
.tp-banner.no { background: #FBE9E8; border: 1px solid #F0C4C1; }
.tp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
.tp-photo { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.tp-photo b { display: block; font-size: 15px; }
.tp-photo span { font-size: 13px; color: var(--muted); }
.tp-ring { width: 84px; height: 84px; border-radius: 50%; border: 2.5px dashed var(--line-strong); display: grid; place-items: center; overflow: hidden; cursor: pointer; flex: none; background: var(--bg-warm); color: var(--muted); }
.tp-ring:hover { border-color: var(--accent); }
.tp-ring img { width: 100%; height: 100%; object-fit: cover; }
.tp-ring svg { width: 28px; height: 28px; }
.tp-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.tp-form .tp-full { grid-column: 1 / -1; }
.tp-intro { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; max-width: 640px; }
.tp-preview { position: sticky; top: 90px; }
.tp-prev-lbl { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.tp-preview .trainer-card { pointer-events: none; }
.tp-pkgs-head, .tp-pkg { display: grid; grid-template-columns: minmax(0, 1fr) 120px 90px 110px 36px; gap: 8px; align-items: center; }
.tp-pkgs-head { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 8px 0 6px; }
.tp-pkg { margin-bottom: 8px; }
.tp-pkg .input, .tp-pkg .select { padding: 10px 12px; min-height: 44px; }
@media (max-width: 980px) {
  .tp-grid { grid-template-columns: 1fr; }
  .tp-preview { position: static; max-width: 380px; }
}
@media (max-width: 620px) {
  .tp-head { padding: 16px 16px 12px; }
  .tp-tabs, .tp-body { padding-left: 16px; padding-right: 16px; }
  .tp-form { grid-template-columns: 1fr; }
  .tp-pkgs-head { display: none; }
  .tp-pkg { grid-template-columns: 1fr 1fr 36px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px; }
  .tp-pkg [data-k="label"] { grid-column: 1 / -1; }
  .tp-pkg [data-k="kind"] { grid-column: 1 / 3; }
  .bill-kpis { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
  .bill-kpis .kpi { padding: 14px; }
  .bill-kpis .k-ic { display: none; }
  .bill-kpis .k-num { font-size: 20px; }
  .bill-kpis .k-lbl { font-size: 12px; }
}

/* ===== Language picker + Arabic (site.js) ===== */
.lang-pick { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 10px; border-radius: var(--r-full); border: 1px solid var(--line-strong); background: var(--surface); font: 600 13px var(--font-body); color: var(--ink-soft); cursor: pointer; }
.lang-btn svg { width: 16px; height: 16px; }
.lang-menu { position: absolute; top: calc(100% + 6px); right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: 6px; min-width: 140px; z-index: 60; }
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-menu button { display: block; width: 100%; text-align: start; padding: 9px 12px; border-radius: 10px; font: 500 14px var(--font-body); color: var(--ink); background: none; cursor: pointer; }
.lang-menu button:hover, .lang-menu button.on { background: var(--brand-tint); }
.lang-menu button.on { font-weight: 700; }
.mm-lang { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.mm-lang button { padding: 8px 14px; border-radius: var(--r-full); border: 1px solid var(--line-strong); background: var(--surface); font: 600 14px var(--font-body); cursor: pointer; }
.mm-lang button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.lang-note { background: #FFF4E5; border-bottom: 1px solid #F3D9A4; font-size: 14px; padding: 10px 0; }
.lang-note button { margin-inline-start: 10px; text-decoration: underline; background: none; font-weight: 600; cursor: pointer; }
html.lang-ar body, html.lang-ar h1, html.lang-ar h2, html.lang-ar h3, html.lang-ar button, html.lang-ar input { font-family: "IBM Plex Sans Arabic", var(--font-body); }
html[dir="rtl"] .breadcrumb svg { transform: scaleX(-1); }
@media (max-width: 720px) { .nav-actions .lang-pick { display: none; } }

/* ===== Trainer card → profile link (data.js) ===== */
.trainer-card.has-profile { position: relative; }
.trainer-card.has-profile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tc-cover-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tc-cover-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.trainer-card.has-profile .tc-sample a, .trainer-card.has-profile .btn, .trainer-card.has-profile .match-badge { position: relative; z-index: 2; }
.tc-more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--accent-700); }

/* ===== Trainer profile page (trainer.html) ===== */
.pr-note { background: #FFF4E5; border: 1px solid #F3D9A4; color: #7a5200; border-radius: var(--r-md); padding: 10px 14px; font-size: 13.5px; margin: 14px 0 6px; }
.pr-head { display: flex; gap: 28px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.pr-photo { width: 168px; height: 168px; border-radius: 36px; object-fit: cover; box-shadow: var(--shadow-md); flex: none; }
.pr-head-main { flex: 1; min-width: 240px; }
.pr-role { color: var(--muted); font-size: 17px; margin-top: 6px; }
.pr-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pr-tags span { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-full); padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.pr-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.pr-vids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pr-vid { margin: 0; }
.pr-vid-btn { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); cursor: pointer; padding: 0; border: 0; }
.pr-vid-btn video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr-vid-play { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: var(--shadow-md); transition: transform .15s; }
.pr-vid-play svg { width: 20px; height: 20px; margin-left: 2px; }
.pr-vid-btn:hover .pr-vid-play { transform: scale(1.08); }
.pr-vid-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.pr-vid figcaption { margin-top: 10px; font-weight: 600; font-size: 15px; }
.pr-vid-tag { display: inline-block; margin-inline-end: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-700); background: var(--accent-tint); padding: 2px 8px; border-radius: var(--r-full); }
.pr-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
.pr-main h2 { font-size: clamp(24px, 3vw, 32px); margin: 32px 0 14px; }
.pr-main h2:first-child { margin-top: 0; }
.pr-story-text { font-size: 17px; color: var(--ink-soft); }
.pr-stories { display: grid; gap: 12px; }
.pr-story { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.pr-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; font-size: 14.5px; }
.pr-ba > div { background: var(--bg-warm); border-radius: 12px; padding: 12px; }
.pr-ba > div.after { background: var(--success-tint, #E6F4EC); }
.pr-ba span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.pr-reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pr-review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.pr-review p { font-size: 15px; color: var(--ink-soft); margin-top: 8px; }
.pr-review cite { display: block; margin-top: 10px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); }
.pr-ex { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--warn, #C98A1B); color: #fff; padding: 2px 8px; border-radius: var(--r-full); }
.pr-side { display: grid; gap: 16px; position: sticky; top: 90px; }
.pr-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.pr-card h3 { font-size: 19px; margin-bottom: 12px; }
.pr-card h4 { font-family: var(--font-body); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 16px 0 6px; }
.pr-facts { display: grid; gap: 10px; }
.pr-fact { display: grid; grid-template-columns: 120px 1fr; gap: 10px; font-size: 14px; }
.pr-fact span { color: var(--muted); }
.pr-list { display: grid; gap: 6px; font-size: 14px; }
.pr-pkg { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pr-pkg span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pr-pkg-price { font-weight: 700; white-space: nowrap; text-align: end; }
.pr-pkg-price small { font-weight: 500; color: var(--muted); }
.pr-badges { display: grid; gap: 10px; }
.pr-badge { border-radius: var(--r-md); padding: 12px; background: var(--brand-tint); font-size: 13.5px; }
.pr-badge b { display: block; color: var(--brand); margin-bottom: 3px; }
.pr-badge.ok { background: var(--success-tint, #E6F4EC); }
.pr-badge.ok b { color: var(--success); }
@media (max-width: 980px) { .pr-grid { grid-template-columns: 1fr; } .pr-side { position: static; } }
@media (max-width: 720px) { .pr-vids { grid-template-columns: 1fr; } .pr-reviews, .pr-ba { grid-template-columns: 1fr; } .pr-photo { width: 120px; height: 120px; border-radius: 28px; } }

/* ===== Blog (blog.html, post.html) ===== */
.tag-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.tag-bar button { min-height: 38px; padding: 0 14px; border-radius: var(--r-full); border: 1.5px solid var(--line-strong); background: var(--surface); font: 600 14px var(--font-body); color: var(--ink-soft); cursor: pointer; }
.tag-bar button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post-card > div { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-size: 20px; line-height: 1.2; }
.post-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.post-tags { font-size: 12px; font-weight: 700; color: var(--accent-700); text-transform: uppercase; letter-spacing: .04em; }
.post-tags a { color: inherit; margin-inline-end: 8px; }
.post-draft { display: inline-block; margin-inline-start: 6px; background: var(--warn, #C98A1B); color: #fff; padding: 1px 8px; border-radius: var(--r-full); font-size: 10.5px; }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.post-meta img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--brand-tint); }
.post-meta.big { margin-top: 18px; font-size: 14.5px; }
.post-meta.big img { width: 36px; height: 36px; }
.post-meta a { color: var(--ink); font-weight: 700; }
.post-wrap { max-width: 760px; margin-inline: auto; }
.post .page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); margin-top: 12px; }
.post-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-xl); margin-top: 8px; }
.post-hint { font-size: 13px; color: var(--muted); margin-top: 14px; }
.post-body { font-size: 17.5px; line-height: 1.7; color: var(--ink-soft); padding: 12px 0 8px; }
.post-body p { margin-top: 16px; }
.post-body h2 { font-size: clamp(22px, 2.6vw, 28px); color: var(--ink); margin-top: 32px; }
.post-body ul { margin-top: 12px; display: grid; gap: 6px; padding-inline-start: 22px; list-style: disc; }
.post-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 28px 0 8px; padding: 22px; background: var(--brand); color: #fff; border-radius: var(--r-xl); }
.post-cta img { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; }
.post-cta > div { flex: 1; min-width: 200px; }
.post-cta h3 { color: #fff; font-size: 22px; }
.post-cta p { color: rgba(255,255,255,.8); margin-top: 4px; font-size: 15px; }
.post-cta a:not(.btn) { color: #fff; font-weight: 700; }

/* ===== Floating WhatsApp button (site.js; shows once the business number is set) ===== */
.wa-fab { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 14px; border-radius: var(--r-full); background: #25D366; color: #fff; font: 700 15px var(--font-body); text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.wa-fab svg { width: 26px; height: 26px; }
.wa-fab:hover { background: #1ebe5b; }
html[dir="rtl"] .wa-fab { right: auto; left: 18px; }
@media (max-width: 560px) { .wa-fab span { display: none; } .wa-fab { padding: 0 13px; } }

/* ===== Licence badges, promise + trust strips (conversion pass, Sep 2026) ===== */
.tc-lic { margin-top: 8px; min-height: 0; }
.lic-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.lic-badge.ok { background: var(--success-tint); color: #1f7a45; }
.lic-badge.wip { background: #FFF4E5; color: #7a5200; }
.tc-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.promise-strip { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; background: var(--success-tint); border: 1px solid #BFE3CC; color: #1f5f3a; border-radius: var(--r-md); padding: 10px 14px; font-size: 14px; line-height: 1.45; }
.promise-strip b { color: #154a2c; }
.promise-strip a { color: #154a2c; font-weight: 700; text-decoration: underline; }
.modal .promise-strip { margin-top: 10px; font-size: 13px; }
.trust-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.trust-strip li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.trust-strip b { font-size: 14px; color: var(--ink); }
.trust-strip span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .trust-strip { grid-template-columns: 1fr 1fr; } }

/* ===== Chat with your coach (chat.js) ===== */
.chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 14px; border-radius: var(--r-full, 999px); background: var(--ink, #26282D); color: #fff; font: 700 15px var(--font-body, sans-serif); box-shadow: 0 8px 24px rgba(0,0,0,.2); border: 0; cursor: pointer; }
.chat-fab svg { width: 24px; height: 24px; }
.chat-fab:hover { background: var(--brand); }
.wa-fab { bottom: 82px; }
html[dir="rtl"] .chat-fab { right: auto; left: 18px; }
.chat-panel { position: fixed; right: 18px; bottom: 82px; z-index: 90; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 110px)); background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 48px rgba(0,0,0,.22); display: flex; flex-direction: column; overflow: hidden; }
html[dir="rtl"] .chat-panel { right: auto; left: 18px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-warm, #F6F1E7); }
.chat-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-who b { font-size: 15px; }
.chat-who span { font-size: 12px; color: var(--muted); }
.chat-av { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; background: #fff; flex: none; }
.chat-icon { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--ink-soft); flex: none; }
.chat-icon:hover { background: rgba(0,0,0,.06); }
.chat-list { flex: 1; overflow-y: auto; padding: 8px; }
.chat-row { width: 100%; display: flex; gap: 10px; align-items: center; text-align: start; padding: 10px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.chat-row:hover { background: var(--bg-warm, #F6F1E7); }
.chat-row span { display: flex; flex-direction: column; min-width: 0; }
.chat-row em { font-style: normal; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-foot-cta { padding: 12px; border-top: 1px solid var(--line); }
.chat-note { font-size: 12px; background: #FFF4E5; color: #7a5200; padding: 7px 14px; border-bottom: 1px solid #F3D9A4; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 82%; }
.chat-msg p { margin: 0; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.them p { background: var(--bg-warm, #F1ECE2); color: var(--ink); border-end-start-radius: 4px; }
.chat-msg.me { align-self: flex-end; }
.chat-msg.me p { background: var(--brand); color: #fff; border-end-end-radius: 4px; }
.chat-demo { display: inline-block; font-size: 11px; color: var(--muted); margin: 3px 4px 0; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.chat-chips button { font-size: 12.5px; border: 1px solid var(--line-strong, #d8d2c4); background: #fff; border-radius: 999px; padding: 6px 10px; cursor: pointer; color: var(--ink-soft); }
.chat-chips button:hover { border-color: var(--brand); color: var(--brand); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 14px; font: inherit; font-size: 16px; }
.chat-form input:focus { outline: none; border-color: var(--brand); }
.chat-meta { font-size: 12px; color: var(--muted); padding: 0 14px 12px; }
.chat-meta a { color: var(--brand); font-weight: 600; }
@media (max-width: 560px) {
  .chat-fab span { display: none; } .chat-fab { padding: 0 14px; }
  .chat-panel { right: 8px; left: 8px; bottom: 8px; width: auto; height: calc(100dvh - 16px); }
  html[dir="rtl"] .chat-panel { left: 8px; }
  body.chat-open .chat-fab, body.chat-open .wa-fab { display: none; }
}

/* ============================================================
   Daycare, boarding and service badges
   ============================================================ */
.svc { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-full); background: var(--bg-warm); color: var(--ink-soft); border: 1px solid var(--line); }
.svc-daycare { background: var(--accent-tint); color: var(--accent-700); border-color: transparent; }
.svc-boarding { background: var(--sky-tint); color: #2A7E90; border-color: transparent; }
.svc-training { background: var(--brand-tint); color: var(--brand); border-color: transparent; }
.svc-sitting { background: var(--bg-warm); color: var(--ink-soft); }
.tc-svcs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tc-avatar.tc-logo { background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.sample-flag.founding-flag { background: var(--ink-soft); }
.pr-tags .svc { font-size: 13px; }
.pr-onreq { font-size: 14px; color: var(--muted); font-weight: 600; }
.pr-stay { margin-top: 14px; padding: 14px; border-radius: var(--r-md); background: var(--accent-tint); display: flex; flex-direction: column; gap: 4px; }
.pr-stay b { font-size: 15px; }
.pr-stay span { font-size: 13px; color: var(--ink-soft); }
.pr-stay a { font-size: 14px; font-weight: 600; color: var(--accent-700); margin-top: 4px; }

.st-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.st-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.st-pick { background: var(--bg-warm); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.st-pick h3 { font-size: 22px; }
.st-pick p { color: var(--ink-soft); font-size: 15.5px; flex: 1; }
.st-pick .g-kicker { color: var(--accent-700); }
.st-pick.hi { background: var(--brand); border-color: var(--brand); }
.st-pick.hi h3, .st-pick.hi .link-arrow { color: #fff; }
.st-pick.hi p { color: rgba(255,255,255,.82); }
.st-pick.hi .g-kicker { color: #FFC9A8; }

.st-price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.st-price-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; }
.st-price-col.hi { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.st-price-col h3 { font-size: 20px; margin-bottom: 8px; }
.st-bus { margin-top: 18px; }
.st-row-price { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.st-row-price:first-of-type { border-top: 0; }
.st-row-price b { font-weight: 600; font-size: 15px; display: block; }
.st-row-price small { color: var(--muted); font-size: 13px; }
.st-amt { font-family: var(--font-display); font-weight: 600; font-size: 19px; white-space: nowrap; color: var(--brand); }

.st-fac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.st-fac { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.st-fac h3 { font-size: 21px; }
.st-fac-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.st-fac-top img { height: 34px; width: auto; max-width: 150px; object-fit: contain; }
.st-fac-emirate { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.st-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); }
.st-line svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent-700); }
.st-fac-svcs { display: flex; flex-wrap: wrap; gap: 6px; }
.st-fac .link-arrow { margin-top: auto; }
.st-know { grid-template-columns: repeat(4, 1fr); }

.st-form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 4vw, 38px); box-shadow: var(--shadow-md); }
.st-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.st-est { background: var(--brand-tint); color: var(--brand); border-radius: var(--r-md); padding: 12px 14px; font-size: 15px; margin-bottom: 16px; }

@media (max-width: 900px) {
  .st-picks, .st-fac-grid { grid-template-columns: 1fr; }
  .st-price-grid { grid-template-columns: 1fr; }
  .st-know { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .st-row { grid-template-columns: 1fr; } }

/* Home: the three services */
.svc-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
.svc-card { border-radius: var(--r-xl); padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 10px; background: var(--bg-warm); border: 1px solid var(--line); }
.svc-card h3 { font-size: clamp(22px, 2.4vw, 28px); }
.svc-card p { color: var(--ink-soft); font-size: 16px; flex: 1; }
.svc-card .g-kicker { color: var(--accent-700); }
.svc-card.feature { background: linear-gradient(135deg, var(--brand), var(--accent-700)); border-color: transparent; }
.svc-card.feature h3, .svc-card.feature .link-arrow { color: #fff; }
.svc-card.feature p { color: rgba(255,255,255,.86); }
.svc-card.feature .g-kicker { color: #FFE0C9; }
.svc-card .svc-price { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.svc-card.feature .svc-price { color: #fff; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } }

/* Six menu items: keep links on one line and move to the burger menu before they collide */
.nav-links a { white-space: nowrap; }
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .nav-actions .btn-desktop { display: none; }
}

/* Wide logo (Olivier Zoppi) in place of a square photo */
.tc-avatar.tc-logo-wide { width: 168px; height: 76px; border-radius: 14px; background: #F0FFF6; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); display: grid; place-items: center; }
.tc-avatar.tc-logo-wide img { object-fit: contain; padding: 4px 6px; }
.pr-photo.pr-photo-wide { width: 300px; height: 120px; object-fit: contain; background: #F0FFF6; padding: 8px 12px; border-radius: 20px; align-self: center; }
@media (max-width: 720px) { .pr-photo.pr-photo-wide { width: 220px; height: 88px; } }

/* Home services: three equal cards */
.svc-grid.svc-equal { grid-template-columns: repeat(3, 1fr); }
.solo-card { max-width: 920px; margin-inline: auto; }
@media (max-width: 900px) { .svc-grid.svc-equal { grid-template-columns: 1fr; } }

/* Badges on the homepage chooser */
.opt { position: relative; }
.opt-badge { position: absolute; top: -9px; right: 12px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 3px 10px; border-radius: var(--r-full); background: var(--accent); color: #fff; box-shadow: 0 2px 6px -2px rgba(32,36,31,.4); white-space: nowrap; pointer-events: none; }
.opt-badge-learn { background: var(--success); }
html[dir="rtl"] .opt-badge { right: auto; left: 12px; }

/* Wide-logo trainer card: banner on top, name below (stops the name being squeezed) */
.tc-head.tc-head-wide { flex-direction: column; gap: 12px; }
.tc-head.tc-head-wide .tc-avatar.tc-logo-wide { width: 100%; height: 92px; }
.tc-head.tc-head-wide .tc-avatar.tc-logo-wide img { padding: 8px 14px; }
.tc-avatar.tc-logo-wide img { box-sizing: border-box; object-fit: contain; }
.tc-avatar.tc-logo-wide { display: block; }
.tc-avatar.tc-logo-wide img { display: block; width: 100%; height: 100%; }

/* ---------- Booking & request forms filled from the Me&MyPup profile ---------- */
.book-gate h3 { font-size: 20px; }
.book-gate p { color: var(--ink-soft); font-size: 15px; margin: 8px 0 14px; }
.book-gaps { margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.book-gaps li { list-style: none; background: #FFF4E5; border: 1px solid #F3D9A4; border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 600; color: #7a5200; }
.book-gaps li::before { content: "○ "; }
.book-dogs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.book-dogs button { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: 13px; background: var(--surface); }
.book-dogs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.book-dog { display: flex; gap: 12px; align-items: center; background: var(--bg-warm); border-radius: var(--r-md); padding: 12px; margin-bottom: 16px; }
.book-dog img, .book-dog .book-dog-mono { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex: none; }
.book-dog .book-dog-mono { display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); font: 600 22px var(--font-display); }
.book-dog div { flex: 1; min-width: 0; }
.book-dog b { display: block; font-family: var(--font-display); font-size: 17px; }
.book-dog span { display: block; font-size: 13px; color: var(--muted); }
.book-dog .book-dog-ok { color: var(--success); font-weight: 600; margin-top: 2px; }
.book-dog-edit { font-size: 13px; font-weight: 700; color: var(--accent-700); text-decoration: underline; }


/* ============================================================
   POLISH LAYER — minimal, premium (Apple/Tesla-inspired)
   Appended last so it overrides the base system.
   ============================================================ */
:root {
  --bg: #FAFAF8;
  --bg-warm: #F3F2EE;
  --line: #E9E8E3;
  --line-strong: #E2E0DA;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 1px 2px rgba(20,22,26,.04);
  --shadow-md: 0 12px 32px -16px rgba(20,22,26,.18);
  --shadow-lg: 0 30px 70px -30px rgba(20,22,26,.35);
  --r-lg: 24px; --r-xl: 32px;
  --maxw: 1180px;
}
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.028em; line-height: 1.06; }
h1 em, h2 em, .page-hero h1 em, .hero h1 em { font-style: normal; color: var(--accent-700); }

/* Rhythm: generous whitespace, no zebra stripes or hard rules */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section:nth-of-type(even) { background: transparent; }
.section + .section, .section + .footer, .page-hero + .section { border-top: 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(32px, 4.6vw, 56px); margin-top: 14px; }
.section-head p { font-size: 19px; line-height: 1.55; color: var(--muted); }
.eyebrow { background: none; padding: 0; font-size: 12.5px; letter-spacing: .14em; color: var(--accent-700); }

/* Header */
.header { background: rgba(250,250,248,.82); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.6) blur(18px); }
.header.scrolled { box-shadow: none; }

/* Buttons */
.btn { font-weight: 600; letter-spacing: -.005em; }
.btn-primary { box-shadow: none; }
.btn-primary:hover, .btn-dark:hover, .btn-ghost:hover, .btn-white:hover { transform: none; box-shadow: none; }
.btn-ghost { border: 1px solid var(--line-strong); }

/* ---------- HERO ---------- */
.hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(56px, 8vw, 110px); }
.hero-grid { gap: clamp(32px, 5vw, 72px); }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: 1.0; letter-spacing: -.04em; }
.hero .lead { font-size: 19px; line-height: 1.55; max-width: 500px; }
.hero .blob { display: none; }
.hero-photo { aspect-ratio: 4/5; border-radius: var(--r-xl); background: #14161a; box-shadow: var(--shadow-lg); }
.hero-photo .hero-media { opacity: 1; transition: none; }
.float-card { background: rgba(255,255,255,.88); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.6); box-shadow: var(--shadow-md); border-radius: 18px; }
.float-card.fc-2 { display: none; }
.match-card { box-shadow: none; border: 1px solid var(--line-strong); border-radius: 22px; }
.opt { border-radius: 16px; }
.promise-strip { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 16px 0 0; color: var(--muted); }
.promise-strip b, .promise-strip a { color: var(--ink); }

/* Trust strip -> quiet hairline row */
.trust-strip { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip li { background: none; border: 0; border-radius: 0; padding: 22px 20px; border-inline-start: 1px solid var(--line); }
.trust-strip li:first-child { border-inline-start: 0; }
@media (max-width: 760px) { .trust-strip li:nth-child(odd) { border-inline-start: 0; } .trust-strip li:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Cards */
.svc-card, .promise, .path-card, .tc, .trainer-card, .faq details { box-shadow: none; }
.svc-card { background: #fff; border: 1px solid var(--line); padding: clamp(28px, 3.4vw, 44px); gap: 14px; }
.svc-card.feature { background: #14161a; border: 0; }
.svc-card.feature .g-kicker { color: #FFC9A3; }
.promise { border-radius: var(--r-lg); padding: 28px; }
.promise-ic { background: var(--bg-warm); }
.path-card { background: #fff; border-radius: var(--r-xl); }
.path-card.dark { background: #14161a; }
.how { background: #14161a; }
.step { border-radius: var(--r-lg); }
.gateway-grid { gap: 24px; }
.gateway { min-height: 480px; border-radius: var(--r-xl); box-shadow: none; }
.gateway:hover { transform: none; box-shadow: none; }
.gateway:hover img { transform: scale(1.03); }
.gateway::after { background: linear-gradient(180deg, rgba(10,12,14,0) 30%, rgba(10,12,14,.78)); }
.gateway h3 { font-size: clamp(28px, 3vw, 38px); }
.cta-banner { background: #14161a; border-radius: var(--r-xl); padding: clamp(56px, 8vw, 112px) 24px; }
.cta-banner::before, .cta-banner::after { display: none; }
.cta-banner h2 { font-size: clamp(32px, 5vw, 60px); letter-spacing: -.035em; }
.faq details { border-radius: 16px; background: #fff; }
.footer { background: transparent; border-top: 1px solid var(--line); }

/* ---------- COMMUNITY ---------- */
.no-humans { background: var(--bg-warm); color: var(--ink-soft); letter-spacing: .02em; }
.community-grid { gap: 24px; }
.comm-card { border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: none; background: #fff; display: flex; flex-direction: column; }
.comm-card:hover { transform: none; box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.comm-cover { height: 168px !important; position: relative; background: linear-gradient(160deg, #23262c, #121417) !important; }
.comm-cover::after { background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35)) !important; }
.comm-cover .cc-svg { opacity: .55; }
.comm-card .comm-avatar-row { display: none; }
.comm-card .comm-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.comm-card .comm-body h3 { font-size: 21px; letter-spacing: -.02em; }
.comm-card .comm-body p { font-size: 15px; line-height: 1.5; }
.comm-card .comm-foot { margin-top: auto; padding-top: 20px; }
.comm-more { display: flex; justify-content: center; margin-top: 40px; }
.comm-more[hidden] { display: none; }
.comm-extra[hidden] { display: none; }
.chat-shell { box-shadow: none; border-radius: var(--r-lg); height: 600px; }
.chat-side { overflow: hidden; }
#roomList { overflow-y: auto; flex: 1; }
.chat-log { max-height: none; }

@media (max-width: 900px) { .community-grid { grid-template-columns: 1fr; } .gateway { min-height: 380px; } }
@media (max-width: 760px) { .hero h1 { font-size: clamp(38px, 11vw, 54px); } .hero-photo { aspect-ratio: 4/4.6; } }

/* ============================================================
   POLISH LAYER 2 — hero video, photo cards, partners, profile
   ============================================================ */
/* Hero: show the full portrait video, never squished */
.hero-visual { align-self: start; position: sticky; top: 96px; }
.hero-photo { aspect-ratio: 9 / 14; max-height: 82vh; width: 100%; margin-inline: auto; }
.hero-photo video { object-fit: cover; object-position: center 35%; }
.hero-play { width: 76px; height: 76px; }
@media (max-width: 900px) {
  .hero-visual { order: -1; position: static; }
  .hero-photo { aspect-ratio: 4 / 4.4; max-height: 58vh; }
}

/* Photo cards: image on top, fully visible; text beneath (nothing covers the dogs) */
.gateway-grid .gateway { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 0; min-height: 0; background: #14161a; isolation: auto; }
.gateway-grid .gateway > img { position: static; inset: auto; z-index: auto; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 60%; transition: transform .6s ease; }
.gateway-grid .gateway:hover > img { transform: none; }
.gateway-grid .gateway::after { display: none; }
.gateway-grid .gateway > div { padding: 28px 32px 34px; }
.gateway-grid .gateway h3 { font-size: clamp(26px, 2.6vw, 34px); }
.gateway-grid .gateway .g-cta { background: rgba(255,255,255,.12); }

/* Me&MyPup gateway: dark card with real photo */
.gateway.pup { min-height: 0; display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; padding: 0; background: #14161a !important; }
.gateway.pup > div { padding: clamp(28px, 4vw, 56px); align-self: center; }
.gateway.pup h3 { font-size: clamp(30px, 3.6vw, 46px); }
.gateway.pup .pup-img { position: static; width: 100%; height: 100%; min-height: 280px; object-fit: cover; object-position: center 30%; z-index: auto; }
.gateway.pup::after { display: none; }
@media (max-width: 760px) { .gateway.pup { grid-template-columns: 1fr; } .gateway.pup .pup-img { order: -1; min-height: 220px; max-height: 260px; } }

/* Auth cards (trainer login / partner login) */
.auth-wrap { max-width: 460px; }
.auth-card { box-shadow: none; border-radius: var(--r-xl); padding: clamp(28px, 4vw, 44px); }
.auth-card h1 { font-size: 32px; letter-spacing: -.03em; }
.demo-note { border-radius: 14px; }
.auth-tabs { background: var(--bg-warm); }

/* Profile wizard */
.wiz { max-width: 1040px; }
.wiz-card { border-radius: var(--r-xl); box-shadow: none; border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); background: #fff; }
.wiz-progress { height: 6px; border-radius: 99px; }
.pf-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.pf-aside { position: sticky; top: 96px; background: #14161a; color: #fff; border-radius: var(--r-xl); padding: 32px 28px; }
.pf-aside h3 { color: #fff; font-size: 22px; margin-bottom: 18px; }
.pf-aside ul { display: grid; gap: 16px; }
.pf-aside li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 14.5px; line-height: 1.45; color: rgba(255,255,255,.78); }
.pf-aside li b { display: block; color: #fff; font-size: 15px; }
.pf-aside li i { width: 28px; height: 28px; border-radius: 9px; background: rgba(255,255,255,.1); display: grid; place-items: center; font-style: normal; font-size: 14px; }
.pf-aside small { display: block; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.6); font-size: 12.5px; }
@media (max-width: 900px) { .pf-layout { grid-template-columns: 1fr; } .pf-aside { position: static; } }

/* Partners (SaaS) landing */
.pt-hero { padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 72px); text-align: center; }
.pt-hero h1 { font-size: clamp(40px, 6.4vw, 80px); letter-spacing: -.04em; line-height: 1; max-width: 16ch; margin-inline: auto; }
.pt-hero p { max-width: 640px; margin: 24px auto 0; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.pt-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.pt-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.pt-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(40px, 6vw, 72px); }
.pt-stats div { padding: 26px 20px; border-inline-start: 1px solid var(--line); text-align: start; }
.pt-stats div:first-child { border-inline-start: 0; }
.pt-stats b { display: block; font-size: 17px; letter-spacing: -.01em; }
.pt-stats span { font-size: 14px; color: var(--muted); }
.pt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pt-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.pt-card .ic { width: 44px; height: 44px; border-radius: 13px; background: var(--bg-warm); display: grid; place-items: center; margin-bottom: 20px; color: var(--ink); }
.pt-card .ic svg { width: 22px; height: 22px; }
.pt-card h3 { font-size: 21px; letter-spacing: -.02em; }
.pt-card p { margin-top: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.pt-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.pt-flow li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 18px; }
.pt-flow li::before { content: "0" counter(s); display: block; font-size: 13px; font-weight: 700; color: var(--accent-700); letter-spacing: .08em; margin-bottom: 10px; }
.pt-flow b { display: block; font-size: 18px; letter-spacing: -.015em; }
.pt-flow span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }
.pt-dark { background: #14161a; color: #fff; border-radius: var(--r-xl); padding: clamp(36px, 6vw, 80px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.pt-dark h2 { color: #fff; font-size: clamp(30px, 4vw, 48px); }
.pt-dark p { margin-top: 16px; color: rgba(255,255,255,.72); font-size: 17px; }
.pt-dark ul { display: grid; gap: 14px; }
.pt-dark li { display: flex; gap: 12px; font-size: 16px; color: rgba(255,255,255,.88); }
.pt-dark li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: .55em; border-radius: 50%; background: var(--accent); }
@media (max-width: 900px) { .pt-grid, .pt-flow { grid-template-columns: 1fr 1fr; } .pt-stats { grid-template-columns: 1fr 1fr; } .pt-stats div:nth-child(odd) { border-inline-start: 0; } .pt-dark { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pt-grid, .pt-flow { grid-template-columns: 1fr; } }

/* CRM dashboard (trainer SaaS) refinements */
.portal-bar { background: rgba(250,250,248,.85); }
.crm-bar .crm-name { letter-spacing: -.02em; }
@media (max-width: 900px) { .hero-visual .float-card.fc-1 { left: 14px !important; top: 14px !important; right: auto !important; bottom: auto !important; } }

@media (max-width: 900px) { .pf-aside { order: 2; } }


/* ============================================================
   POLISH LAYER 3 — Me&MyPup (header link + dog dashboard)
   ============================================================ */
.brand-gateway { gap: 8px; padding: 4px 14px 4px 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 600; letter-spacing: -.005em; transition: border-color .15s; }
.brand-gateway:hover, .brand-gateway.active { border-color: var(--ink); color: var(--ink); }
.brand-gateway [data-pup-icon] { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-warm); font-size: 15px; overflow: hidden; }
.pup-av { width: 30px; height: 30px; border: 0; box-shadow: none; object-fit: cover; object-position: center 72%; border-radius: 50%; }
.mobile-menu .pup-av { width: 32px; height: 32px; }

.mp-hero { display: grid; grid-template-columns: 168px minmax(0, 1fr) 220px; gap: 32px; align-items: center; background: #14161a; color: #fff; border-radius: var(--r-xl); padding: clamp(24px, 3.4vw, 40px); margin-top: 8px; }
.mp-photo { width: 168px; height: 168px; border-radius: 28px; object-fit: cover; object-position: center 72%; }
.mp-mono { display: grid; place-items: center; background: rgba(255,255,255,.1); font-size: 64px; font-weight: 600; }
.mp-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #FFC9A3; }
.mp-hero h1 { color: #fff; font-size: clamp(36px, 5vw, 60px); letter-spacing: -.04em; margin-top: 8px; }
.mp-hero h1 em { color: var(--accent); font-style: normal; }
.mp-sub { margin-top: 6px; color: rgba(255,255,255,.66); font-size: 15px; }
.mp-goals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mp-goals span { font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 99px; background: rgba(255,255,255,.1); color: #fff; }
.mp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.mp-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.28); }
.mp-ghost:hover { border-color: #fff; }
.mp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: rgba(255,255,255,.12); border-radius: 18px; overflow: hidden; }
.mp-stats div { background: #1b1e23; padding: 16px 18px; }
.mp-stats dt { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.mp-stats dd { margin: 4px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
@media (max-width: 1000px) { .mp-hero { grid-template-columns: 120px minmax(0, 1fr); } .mp-photo { width: 120px; height: 120px; border-radius: 22px; } .mp-stats { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .mp-hero { grid-template-columns: 1fr; gap: 20px; } .mp-photo { width: 96px; height: 96px; } .mp-stats { grid-template-columns: 1fr 1fr; } }

/* Community area search */
.comm-search { position: relative; display: block; max-width: 520px; margin: 0 0 28px; }
.comm-search svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.comm-search input { width: 100%; min-height: 54px; padding: 12px 20px 12px 50px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: 16px; color: var(--ink); }
.comm-search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--bg-warm); }
.comm-empty { grid-column: 1 / -1; padding: 40px 0; color: var(--muted); text-align: center; }

.comm-cover .cc-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comm-cover { background: #1b1e23 !important; }
.comm-cover::after { background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.28)) !important; }


/* More breathing room from the screen edge (header and page content stay aligned) */
.wrap { padding-inline: clamp(24px, 5vw, 48px); }
.header .nav { padding-inline: clamp(24px, 5vw, 48px); }
.header .nav.wrap { padding-inline: clamp(24px, 5vw, 48px); }


/* Header: a little further from the left edge */
.header .wrap.nav { padding-inline-start: clamp(32px, 7vw, 96px); padding-inline-end: clamp(24px, 5vw, 48px); }


/* Final side margin: header and page content share the same inset, content width stays about 1180px */
:root { --gutter: clamp(28px, 6vw, 72px); }
.wrap { max-width: calc(1180px + 2 * var(--gutter)); padding-inline: var(--gutter); }
.wrap.wrap-narrow { max-width: 900px; }
.header .wrap.nav, .header .nav { padding-inline: var(--gutter); }



.fc-3 { top: 120px; left: -26px; animation: floaty 6s ease-in-out infinite .8s; z-index: 3; }
.fc-3 strong { color: var(--accent-700); }
@media (max-width: 900px) { .hero-visual .float-card.fc-3 { left: 14px !important; bottom: 14px !important; right: auto !important; top: auto !important; } }


/* Header bar: everything fits, nothing clipped. Compact desktop bar, burger menu below 1240px. */
.header .wrap.nav, .header .nav { padding-inline: clamp(24px, 3.4vw, 72px); gap: 16px; }
.nav-links { margin-left: 0; }
.nav-links a { padding: 10px 11px; font-size: 14.5px; }
.nav-actions { gap: 10px; flex-shrink: 0; }
.brand { flex-shrink: 0; }
@media (max-width: 1239px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .nav-actions .btn-desktop { display: none; }
}

/* One shared side margin for the header and the page, so the logo lines up with the content */
:root { --gutter: clamp(24px, 4vw, 64px); }
.nav-links a { padding: 10px 10px; }

.header .wrap.nav, .header .nav { padding-inline: var(--gutter); }


/* Journal = a proper chat panel: fixed height, scrolling messages, composer docked at the bottom */
.journal { display: flex; flex-direction: column; height: min(700px, calc(100vh - 200px)); min-height: 480px; }
.journal .panel-head { flex: 0 0 auto; }
.journal .feed { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 20px 22px; background: var(--bg); gap: 14px; scroll-behavior: smooth; overscroll-behavior: contain; }
.journal .composer { position: static; flex: 0 0 auto; margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 12px 16px 14px; background: #fff; }
.journal .composer textarea { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; min-height: 46px; max-height: 120px; background: var(--bg); }
.journal .composer textarea:focus { border-color: var(--ink); }
.journal .composer-actions { border-top: 0; padding-top: 10px; }
.journal .fe-card { box-shadow: none; }
@media (max-width: 900px) { .journal { height: min(620px, calc(100vh - 160px)); min-height: 420px; } }
.journal .feed { scroll-behavior: auto; }


/* Top bar shows the five destination links; "Find a Trainer" lives in the menu (and in the page's own buttons).
   The burger menu always lists all six. With one link fewer, the full bar fits on smaller laptops. */
.header .nav-links a[href^="trainers.html"] { display: none; }
@media (min-width: 1160px) and (max-width: 1239px) {
  .nav-links { display: flex; }
  .burger { display: grid; }          /* menu button stays, so Find a Trainer is always reachable */
  .nav-actions .btn-desktop { display: inline-flex; }
}
@media (max-width: 1159px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .nav-actions .btn-desktop { display: none; }
}
@media (min-width: 1240px) { .burger { display: grid; } }

/* ============================================================
   PAWS REWARDS (loyalty program)
   ============================================================ */
.rw-hero { padding-block: clamp(56px, 9vw, 112px) clamp(32px, 5vw, 56px); text-align: center; }
.rw-hero h1 { font-size: clamp(38px, 6vw, 76px); letter-spacing: -.04em; line-height: 1.02; max-width: 17ch; margin: 18px auto 0; }
.rw-lead { max-width: 640px; margin: 22px auto 0; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.rw-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.rw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.rw-steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 18px; }
.rw-steps li::before { content: "0" counter(s); display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--accent-700); margin-bottom: 10px; }
.rw-steps b { display: block; font-size: 20px; letter-spacing: -.02em; }
.rw-steps span { display: block; margin-top: 8px; color: var(--muted); }
.rw-calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 56px); }
.rw-calc h2 { font-size: clamp(26px, 3.4vw, 40px); margin-top: 12px; }
.rw-calc p { margin-top: 10px; color: var(--muted); }
.rw-slide { display: block; margin-top: 24px; }
.rw-slide span { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 10px; }
.rw-slide input { width: 100%; accent-color: var(--ink); }
.rw-calc-out { display: grid; gap: 1px; background: var(--line); border-radius: 20px; overflow: hidden; }
.rw-calc-out div { background: var(--bg); padding: 18px 22px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rw-calc-out small { color: var(--muted); font-size: 14px; }
.rw-calc-out b { font-size: 24px; letter-spacing: -.02em; }
.rw-calc-out .hl { background: #14161a; color: #fff; }
.rw-calc-out .hl small { color: rgba(255,255,255,.65); }
.rw-calc-out .hl b { font-size: 32px; }
.rw-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rw-why div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.rw-why b { font-size: 18px; letter-spacing: -.015em; }
.rw-why p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.rw-demo { font-size: 14px !important; background: var(--bg-warm); border-radius: 12px; padding: 10px 14px; display: inline-block; }
.rw-wallet { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rw-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.rw-card h3 { font-size: 20px; }
.rw-small { color: var(--muted); font-size: 14px; margin-top: 6px; }
.rw-bal { background: #14161a; color: #fff; border: 0; }
.rw-bal small { color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 600; }
.rw-bal > b { display: block; font-size: clamp(44px, 6vw, 68px); letter-spacing: -.04em; line-height: 1.05; margin-top: 6px; }
.rw-bal > b span { font-variant-numeric: tabular-nums; }
.rw-sub { color: rgba(255,255,255,.7); }
.rw-mini { display: flex; gap: 22px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; color: rgba(255,255,255,.65); }
.rw-mini b { color: #fff; margin-left: 4px; }
.rw-redeem { display: flex; gap: 10px; margin-top: 22px; }
.rw-redeem input { flex: 1; min-width: 0; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; padding: 10px 16px; font-size: 15px; }
.rw-redeem input::placeholder { color: rgba(255,255,255,.5); }
.rw-redeem .btn-dark { background: #fff; color: #14161a; }
.rw-msg { min-height: 20px; margin-top: 10px; font-size: 14px; color: #FFC9A3; }
.rw-try { display: grid; gap: 10px; margin-top: 14px; }
.rw-ref { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.rw-ref small { color: var(--muted); }
.rw-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 4px; background: var(--bg); border: 1px dashed var(--line-strong); border-radius: 14px; padding: 8px 8px 8px 16px; }
.rw-code b { font-size: 22px; letter-spacing: .08em; }
.rw-ref .btn { margin-top: 12px; }
.rw-reset { margin-top: 18px; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; }
.rw-hist { grid-column: 1 / -1; }
.rw-hist ul { list-style: none; margin: 12px 0 0; padding: 0; }
.rw-hist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rw-hist li:last-child { border-bottom: 0; }
.rw-hist li small { display: block; color: var(--muted); font-size: 12.5px; }
.rw-hist li.empty { color: var(--muted); }
.rw-hist b.pos { color: var(--success); } .rw-hist b.neg { color: var(--accent-700); } .rw-hist b.pend { color: var(--muted); }
.rw-trainer { background: #14161a; color: #fff; border-radius: var(--r-xl); padding: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.rw-trainer h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); margin-top: 12px; }
.rw-trainer p { margin: 14px 0 24px; color: rgba(255,255,255,.72); font-size: 17px; }
.rw-tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rw-tiers li { display: grid; gap: 6px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 20px 22px; }
.rw-tiers li b { font-size: 22px; letter-spacing: -.02em; }
.rw-tiers li > span:last-child { color: rgba(255,255,255,.7); font-size: 15px; }
.rw-badge { display: inline-block; justify-self: start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 99px; background: #FFC9A3; color: #5a2a05; }
.rw-badge.elite { background: #fff; color: #14161a; }
.rw-fine { max-width: 780px; margin: 22px auto 0; text-align: center; font-size: 13px; color: var(--muted); }
.rw-earn { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 11px 14px; border-radius: 14px; background: var(--accent-tint); color: var(--ink); font-size: 13.5px; line-height: 1.4; }
.rw-earn u { color: var(--accent-700); white-space: nowrap; }
.rw-ic { flex: 0 0 24px; height: 24px; display: grid; place-items: center; color: var(--accent-700); }
.rw-ic svg { width: 20px; height: 20px; }
/* Me&MyPup rewards card */
.rw-pup { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 26px; margin-bottom: 26px; }
.rw-pup .big { font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.rw-pup small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.rw-pup p { color: var(--ink-soft); font-size: 15px; }
.rw-pup p b { color: var(--ink); }
/* Home teaser */
.rw-teaser { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; background: #14161a; color: #fff; border-radius: var(--r-xl); padding: clamp(32px, 5vw, 72px); }
.rw-teaser h2 { color: #fff; font-size: clamp(30px, 4vw, 52px); margin-top: 12px; }
.rw-teaser p { margin: 14px 0 24px; color: rgba(255,255,255,.72); font-size: 18px; max-width: 46ch; }
.rw-teaser-stats { display: grid; gap: 1px; background: rgba(255,255,255,.14); border-radius: 20px; overflow: hidden; }
.rw-teaser-stats div { background: #1b1e23; padding: 20px 24px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rw-teaser-stats small { color: rgba(255,255,255,.6); font-size: 14px; }
.rw-teaser-stats b { font-size: 26px; letter-spacing: -.02em; }
/* Trainer CRM loyalty card */
.crm-loyal { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; margin-top: 22px; display: grid; gap: 10px; }
.crm-loyal h3 { font-size: 18px; }
.crm-loyal .bar { height: 8px; border-radius: 99px; background: var(--bg-warm); overflow: hidden; }
.crm-loyal .bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.crm-loyal p { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) {
  .rw-steps, .rw-why { grid-template-columns: 1fr 1fr; }
  .rw-calc, .rw-wallet, .rw-trainer, .rw-teaser { grid-template-columns: 1fr; }
  .rw-pup { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 560px) { .rw-steps, .rw-why { grid-template-columns: 1fr; } }

.rw-bal .u { font-size: .34em; font-style: normal; font-weight: 600; letter-spacing: 0; color: rgba(255,255,255,.7); }
.rw-pup .u { font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--muted); }


/* Trainer badge card (CRM dashboard) */
.crm-loyal { padding: 26px 28px; gap: 18px; }
.cl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.cl-head h3 { font-size: 20px; letter-spacing: -.02em; }
.cl-head p { max-width: 54ch; margin-top: 4px; }
.cl-count { font-size: 13px; color: var(--muted); background: var(--bg-warm); border-radius: 99px; padding: 8px 14px; white-space: nowrap; }
.cl-count b { color: var(--ink); font-size: 16px; }
.cl-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cl-tier { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 10px; background: var(--bg); }
.cl-tier.done { border-color: var(--success); background: var(--success-tint); }
.cl-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cl-top b { font-size: 16px; letter-spacing: -.01em; }
.cl-state { font-size: 12.5px; font-weight: 600; color: var(--accent-700); }
.cl-tier.done .cl-state { color: var(--success); }
.cl-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.cl-how { border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px; }
.cl-how ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-soft); }
.cl-no { margin-top: 12px; color: var(--muted); font-size: 13px; }
@media (max-width: 700px) { .cl-tiers { grid-template-columns: 1fr; } }

/* Trainer at work videos */
.tw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tw-card { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: #14161a; aspect-ratio: 4 / 5; color: #fff; }
.tw-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tw-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,14,0) 45%, rgba(10,12,14,.75)); }
.tw-card b { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; font-size: 18px; letter-spacing: -.015em; }
.tw-tag { position: absolute; left: 20px; bottom: 48px; z-index: 2; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #FFC9A3; }
@media (max-width: 760px) { .tw-grid { grid-template-columns: 1fr; } .tw-card { aspect-ratio: 4 / 3.4; } }
.hero-trial { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.hero-trial a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Mobile overflow fixes found in the QA sweep */
.legal .prose ul { grid-template-columns: minmax(0, 1fr); }
.legal .prose p, .legal .prose li, .pr-main p, .pr-main li, .pr-main h2 { overflow-wrap: anywhere; }
.pr-grid > *, .pr-main, .pr-side { min-width: 0; }
@media (max-width: 900px) {
  .pr-grid { grid-template-columns: minmax(0, 1fr); }
  .rw-calc, .rw-wallet, .rw-trainer, .rw-teaser { grid-template-columns: minmax(0, 1fr); }
  .rw-card, .rw-calc > *, .rw-trainer > *, .rw-teaser > * { min-width: 0; }
}
@media (max-width: 560px) { .rw-bal > b { font-size: 44px; } .rw-redeem { flex-wrap: wrap; } .rw-redeem input { flex: 1 1 140px; } }

.placeholder { white-space: normal; overflow-wrap: anywhere; }


.rw-offer { background: var(--success-tint); }
.rw-offer .rw-ic { color: var(--success); }
.rw-earn + .rw-earn, .rw-offer + .rw-earn { margin-top: -6px; }
a.float-card.fc-3:hover { box-shadow: var(--shadow-lg); }

