/* Campus Cuts chrome: header, footer, and the shared UI kit (buttons, fields, chips, badges, cards, toasts, modal).
   Built only on css/tokens.css. Link tokens.css first, then this file, then the page stylesheet.
   The header is fixed and overlays the page: pages that do not start with a full bleed hero pad their top by var(--top-h). */

:root {
  --top-h: 64px;
  accent-color: var(--violet);
}
@media (min-width: 900px) { :root { --top-h: 76px; } }

html { scroll-padding-top: calc(var(--top-h) + 8px); }
html.cc-lock { overflow: hidden; }
html.cc-lock body { padding-right: var(--cc-sb, 0px); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- skip link ---------- */
.skip {
  position: fixed; left: 12px; top: -120px; z-index: 1200;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  background: var(--violet); color: var(--ink); border-radius: var(--r-s);
  font: 700 15px/1 var(--f-body); text-decoration: none;
  transition: top .2s var(--ease-out);
}
.skip:focus, .skip:focus-visible { top: 12px; outline-color: var(--paper); }

/* ---------- wordmark ---------- */
.cc-mark {
  display: inline-flex; align-items: center; gap: .3em; min-height: 44px;
  font-family: var(--f-display); font-weight: 800; font-size: 26px; line-height: 1;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--paper); white-space: nowrap;
}
.cc-mark__b { color: var(--violet); transition: text-shadow .4s var(--ease-out); }
.cc-mark:hover .cc-mark__b { text-shadow: 0 0 18px rgba(165, 124, 255, .65); }
.cc-mark--lg { font-size: clamp(30px, 4vw, 40px); }

/* ---------- live open status ---------- */
.cc-live {
  display: inline-flex; align-items: center; gap: 9px;
  font: 500 12px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.cc-live__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.cc-live.is-open { color: var(--paper); }
.cc-live.is-open .cc-live__dot { background: var(--neon); box-shadow: 0 0 6px rgba(255, 59, 78, .9), 0 0 14px rgba(255, 59, 78, .6); animation: cc-buzz 3.2s infinite; }
@keyframes cc-buzz {
  0%, 100% { opacity: 1; }
  46% { opacity: 1; } 48% { opacity: .35; } 50% { opacity: 1; } 52% { opacity: .5; } 54% { opacity: 1; }
}

/* ---------- header ---------- */
.cc-top {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--top-h);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease-out), border-color .35s, -webkit-backdrop-filter .35s, backdrop-filter .35s;
}
.cc-top::before {
  content: ""; position: absolute; inset: 0 0 -28px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(11, 10, 15, .62), rgba(11, 10, 15, 0));
  transition: opacity .35s;
}
.cc-top.is-scrolled {
  background: rgba(11, 10, 15, .74);
  -webkit-backdrop-filter: saturate(150%) blur(16px); backdrop-filter: saturate(150%) blur(16px);
  border-bottom-color: var(--line);
}
.cc-top.is-scrolled::before { opacity: 0; }
.cc-top.is-open { background: var(--ink); border-bottom-color: var(--line); }
.cc-top.is-open::before { opacity: 0; }
.cc-top__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-top__progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--plum), var(--violet) 60%, var(--neon));
  transform-origin: 0 50%; transform: scaleX(var(--cc-progress, 0));
  opacity: 0; transition: opacity .35s;
}
.cc-top.is-scrolled .cc-top__progress { opacity: 1; }
.cc-top.is-open .cc-top__progress { opacity: 0; }

.cc-nav { display: none; }
.cc-top__end { display: flex; align-items: center; gap: 10px; }
.cc-live--top { display: none; }
.cc-top__book { flex: none; }
/* "My appointments" in the bar: a quiet text link beside Book a chair (desktop; phones get it in the menu) */
.cc-top__mine {
  display: none; align-items: center; gap: 8px; min-height: 44px; flex: none; white-space: nowrap;
  font: 700 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none;
  transition: color .25s;
}
.cc-top__mine svg { flex: none; color: var(--violet); }
.cc-top__mine:hover, .cc-top__mine[aria-current="page"] { color: var(--paper); }

.cc-nav__a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font: 700 17px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .25s;
}
.cc-nav__a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--violet);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease-out);
}
.cc-nav__a:hover, .cc-nav__a.is-active { color: var(--paper); }
.cc-nav__a:hover::after, .cc-nav__a.is-active::after { transform: scaleX(1); }

.cc-burger {
  position: relative; flex: none; width: 44px; height: 44px; padding: 0; margin-right: -6px;
  display: grid; place-items: center; background: none; border: 0; border-radius: var(--r-s); cursor: pointer; color: var(--paper);
}
.cc-burger span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.cc-burger span:first-child { top: 17px; }
.cc-burger span:last-child { top: 25px; left: 17px; }
.cc-burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.cc-burger[aria-expanded="true"] span:last-child { top: 21px; left: 11px; transform: rotate(-45deg); }

@media (max-width: 379px) {
  .cc-top .cc-mark { font-size: 21px; }
  .cc-top__book-x { display: none; }
}
@media (min-width: 900px) {
  .cc-nav { display: flex; gap: clamp(22px, 2.6vw, 38px); }
  .cc-burger { display: none; }
  .cc-top__end { gap: 22px; }
  .cc-top__mine { display: inline-flex; }
}
@media (min-width: 1120px) { .cc-live--top { display: inline-flex; } }

/* phone drawer */
.cc-drawer {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; gap: 28px; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--top-h) + 28px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 55% at 100% 0%, rgba(107, 63, 168, .38), transparent 62%), var(--ink);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease-out), visibility 0s linear .3s;
}
.cc-drawer.is-open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease-out); }
.cc-drawer__nav { display: flex; flex-direction: column; }
.cc-drawer__nav a {
  display: flex; align-items: baseline; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line);
  font: 800 clamp(44px, 13vw, 64px)/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em;
  color: var(--paper); text-decoration: none;
}
.cc-drawer__nav a:hover .cc-drawer__n, .cc-drawer__nav a:focus-visible .cc-drawer__n { color: var(--neon); }
.cc-drawer__n { font: 500 12px/1 var(--f-mono); color: var(--violet); letter-spacing: .08em; transform: translateY(-1.1em); }
.cc-drawer__nav a, .cc-drawer__cta, .cc-drawer__meta {
  opacity: 0; transform: translateY(26px);
  transition: opacity .55s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms + 60ms);
}
.cc-drawer.is-open .cc-drawer__nav a, .cc-drawer.is-open .cc-drawer__cta, .cc-drawer.is-open .cc-drawer__meta { opacity: 1; transform: none; }
.cc-drawer__cta { display: flex; flex-direction: column; gap: 10px; }
.cc-drawer__book { min-height: 56px; font-size: 20px; }
.cc-drawer__mine { min-height: 50px; font-size: 18px; }
.cc-drawer__meta { display: flex; flex-direction: column; gap: 10px; margin-top: auto; color: var(--muted); font-size: 15px; }
.cc-drawer__tel { display: inline-flex; align-items: center; min-height: 44px; font: 700 22px/1 var(--f-mono); color: var(--paper); text-decoration: none; }
@media (min-width: 900px) { .cc-drawer { display: none; } }

/* ---------- footer ---------- */
.cc-foot {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink-2); border-top: 1px solid var(--line);
  padding: clamp(56px, 8vw, 96px) 0 8px;
}
.cc-foot::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -30%; width: 110%; height: 90%; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(107, 63, 168, .22), transparent 70%); pointer-events: none;
}
.cc-foot__grid { display: grid; grid-template-columns: 1.35fr 1fr 1.25fr .95fr; gap: 44px 36px; }
.cc-foot__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cc-foot__brand .cc-mark { margin-top: -8px; }
.cc-foot__tag { margin: 0; max-width: 30ch; color: var(--muted); }
.cc-foot__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 6px; }
.cc-foot__mine {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; white-space: nowrap;
  font: 700 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none;
  transition: color .2s;
}
.cc-foot__mine svg { flex: none; color: var(--violet); }
.cc-foot__mine:hover { color: var(--paper); }
.cc-foot__h {
  margin: 0 0 14px; font: 800 15px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--violet);
}
.cc-foot address { font-style: normal; }
.cc-foot address a, .cc-foot__list a { color: var(--paper); text-decoration: none; transition: color .2s; }
.cc-foot address a { display: inline-block; padding: 4px 0; line-height: 1.5; }
.cc-foot address a:hover, .cc-foot__list a:hover { color: var(--violet); }
.cc-foot__phone { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; font: 700 19px/1 var(--f-mono); color: var(--paper); text-decoration: none; }
.cc-foot__phone:hover { color: var(--violet); }
.cc-foot__small { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.cc-foot__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cc-foot__list a { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 44px; }
.cc-foot__rate { font: 500 13px/1 var(--f-mono); color: var(--brass); }
.cc-ext { opacity: .6; flex: none; }

.cc-hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.cc-hours th, .cc-hours td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cc-hours th { text-align: left; font-weight: 500; color: var(--muted); }
.cc-hours td { text-align: right; font: 500 14px/1.2 var(--f-mono); color: var(--paper); white-space: nowrap; }
.cc-hours tr.is-closed td { color: var(--faint); }
.cc-hours tr.is-today th { color: var(--paper); font-weight: 700; }
.cc-hours tr.is-today th, .cc-hours tr.is-today td { border-bottom-color: rgba(165, 124, 255, .45); }
.cc-hours tr.is-today td { color: var(--violet); }
.cc-hours__today {
  display: inline-block; margin-left: 6px; padding: 3px 7px; border-radius: 999px; vertical-align: 1px;
  background: var(--violet-soft); color: var(--violet); font: 700 10px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
}

.cc-foot__giant {
  margin: clamp(48px, 8vw, 96px) 0 10px; white-space: nowrap; overflow: hidden; line-height: .8;
  font-family: var(--f-display); font-weight: 900; font-size: 15vw; text-transform: uppercase; letter-spacing: 0;
  user-select: none; pointer-events: none;
}
.cc-foot__giant-in { display: inline-flex; gap: .16em; padding-bottom: .04em; }
.cc-foot__giant-in span { color: transparent; -webkit-text-stroke: 1px rgba(244, 241, 234, .2); }
.cc-foot__giant-in .v { -webkit-text-stroke-color: var(--violet); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cc-foot__giant-in span { animation: cc-giant linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    .cc-foot__giant-in .v { animation-range: entry 10% cover 55%; }
  }
}
@keyframes cc-giant {
  from { opacity: 0; transform: translateY(45%); }
  to { opacity: 1; transform: none; }
}
.cc-foot__base {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 8px 0 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint);
}
.cc-foot__staff {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px;
  color: var(--faint); text-decoration: none; transition: color .2s;
}
.cc-foot__staff:hover { color: var(--paper); }

@media (max-width: 899px) {
  .cc-foot__grid { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .cc-foot__brand, .cc-foot__hours { grid-column: 1 / -1; }
  .cc-foot__hours { order: 3; }
  .cc-foot__links { order: 2; }
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--paper); --btn-bd: var(--line-2);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; margin: 0;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd); border-radius: var(--r-s);
  font: 800 17px/1 var(--f-display); letter-spacing: .09em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease-out), background-color .25s, border-color .25s, color .25s, box-shadow .35s var(--ease-out), opacity .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.btn svg { flex: none; }
.btn--primary { --btn-bg: var(--violet); --btn-fg: var(--ink); --btn-bd: var(--violet); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%);
  transform: translateX(-110%); transition: transform .8s var(--ease-out);
}
.btn--primary:hover { --btn-bg: #B592FF; --btn-bd: #B592FF; box-shadow: 0 12px 34px -12px rgba(165, 124, 255, .75); }
.btn--primary:hover::after { transform: translateX(110%); }
.btn--neon { --btn-bg: var(--neon); --btn-fg: var(--ink); --btn-bd: var(--neon); }
.btn--neon:hover { --btn-bg: #FF5364; --btn-bd: #FF5364; box-shadow: var(--neon-glow); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--paper); --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bg: var(--violet-soft); --btn-bd: var(--violet); }
.btn--danger { --btn-bg: transparent; --btn-fg: var(--neon); --btn-bd: rgba(255, 59, 78, .55); }
.btn--danger:hover { --btn-bg: var(--neon); --btn-fg: var(--ink); --btn-bd: var(--neon); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; gap: 8px; }
.btn--wide { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .42; cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none;
}
.btn[aria-busy="true"] { color: transparent; pointer-events: none; }
.btn[aria-busy="true"]::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; border: 2px solid var(--btn-fg); border-right-color: transparent; animation: cc-spin .7s linear infinite;
}
@keyframes cc-spin { to { transform: rotate(360deg); } }

/* ---------- form fields ---------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .field__label { font: 600 14px/1.3 var(--f-body); color: var(--paper); letter-spacing: .01em; }
.field__opt { font-weight: 500; color: var(--faint); }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
.field select,
.field textarea {
  width: 100%; min-height: 48px; margin: 0; padding: 12px 14px;
  background: var(--ink-3); color: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-s);
  font: 400 16px/1.3 var(--f-body); -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 112px; line-height: 1.5; resize: vertical; }
.field select {
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23A57CFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field select option { background: var(--ink-2); color: var(--paper); }
.field ::placeholder { color: var(--faint); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(244, 241, 234, .28); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--violet); background-color: #201C2C; box-shadow: 0 0 0 3px var(--violet-soft);
}
.field__hint { margin: 0; font-size: 13px; color: var(--muted); }
.field__msg { margin: 0; font: 600 13px/1.35 var(--f-body); color: var(--neon); }
.field__msg:empty { display: none; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(255, 59, 78, .14); }
.field--error > label, .field--error .field__label { color: #FF8A95; }

/* ---------- chips ---------- */
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; margin: 0;
  background: var(--ink-3); color: var(--paper); border: 1px solid var(--line-2); border-radius: 999px;
  font: 600 15px/1 var(--f-body); white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease-out), box-shadow .3s;
}
.chip:hover { border-color: var(--violet); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: var(--ink); box-shadow: 0 8px 24px -10px rgba(165, 124, 255, .8); }
.chip[disabled], .chip[aria-disabled="true"] { opacity: .38; cursor: not-allowed; text-decoration: line-through; text-decoration-color: rgba(244, 241, 234, .4); pointer-events: none; }

/* ---------- badges ---------- */
.badge {
  --b: var(--muted);
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--b) 40%, transparent);
  background: color-mix(in srgb, var(--b) 13%, transparent); color: var(--b);
  font: 700 11px/1 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--requested { --b: var(--brass); }
.badge--confirmed { --b: var(--ok); }
.badge--declined { --b: var(--faint); }
.badge--booked { --b: var(--ok); }
.badge--done { --b: var(--violet); }
.badge--noshow { --b: var(--neon); }
.badge--cancelled { --b: var(--faint); text-decoration: line-through; }
.badge--late { --b: var(--neon); }
.badge--unread { --b: var(--neon); }
.badge--walkin { --b: var(--brass); }
.badge--phone { --b: #7FB3FF; }
.badge--online { --b: var(--muted); }
.badge--blocked {
  --b: var(--muted);
  background: repeating-linear-gradient(-45deg, rgba(244, 241, 234, .08) 0 4px, transparent 4px 8px);
}

/* ---------- card and estimate flag ---------- */
.card {
  --card-pad: clamp(18px, 3vw, 28px);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: var(--card-pad);
}

/* ---------- appointment status banner: the full width strip across the top of a card ----------
   <div class="card"><div class="status-banner status-banner--requested"><span>Requested</span><span>Waiting on your barber</span></div>...</div>
   Inside a .card it bleeds to the card edges; anywhere else it is a rounded strip. */
.status-banner {
  --sb-bg: var(--ink-4); --sb-fg: var(--paper);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  min-height: 38px; padding: 9px var(--card-pad, 14px);
  margin: calc(-1 * var(--card-pad, 0px)) calc(-1 * var(--card-pad, 0px)) var(--card-pad, 14px);
  border-radius: calc(var(--r-m) - 1px) calc(var(--r-m) - 1px) 0 0;
  background-color: var(--sb-bg); color: var(--sb-fg);
  font: 700 12px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
}
:not(.card) > .status-banner { border-radius: var(--r-s); }
.status-banner > :first-child { display: inline-flex; align-items: center; gap: 8px; }
.status-banner > :first-child::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-banner > :nth-child(2) { font-weight: 500; letter-spacing: .06em; opacity: .82; }
.status-banner--requested {
  --sb-bg: var(--brass); --sb-fg: var(--ink);
  background-image: repeating-linear-gradient(-45deg, rgba(11, 10, 15, .07) 0 8px, transparent 8px 16px);
}
.status-banner--confirmed { --sb-bg: var(--ok); --sb-fg: var(--ink); }
.status-banner--declined, .status-banner--cancelled { --sb-bg: var(--faint); --sb-fg: var(--paper); }
.status-banner--done { --sb-bg: var(--violet); --sb-fg: var(--ink); }
.status-banner--noshow { --sb-bg: var(--neon); --sb-fg: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .status-banner--requested > :first-child::before { animation: cc-pulse 1.8s ease-in-out infinite; }
}
@keyframes cc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- countdown: "1 week left", "Tomorrow", "Today" on the right of an appointment card ---------- */
.countdown {
  display: inline-flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 4px; flex: none;
  min-width: 76px; padding: 8px 10px; text-align: right;
  background: var(--ink-3); border: 1px solid var(--line-2); border-radius: var(--r-s);
  font: 700 13px/1.15 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--paper); white-space: nowrap;
}
.countdown__k { font-weight: 500; font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.countdown--soon { border-color: rgba(255, 59, 78, .5); color: var(--neon); }
.countdown--today { background: var(--neon); border-color: var(--neon); color: var(--ink); }
.countdown--today .countdown__k { color: var(--ink); opacity: .75; }
.countdown--past { color: var(--faint); }
.est {
  display: inline-flex; align-items: center; padding: 3px 6px; vertical-align: middle;
  border: 1px dashed rgba(227, 184, 102, .6); border-radius: 4px; color: var(--brass);
  font: 700 10px/1.1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.est:empty::before { content: "estimate"; }

/* ---------- toasts ---------- */
.toast-stack {
  position: fixed; z-index: 1100; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(420px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
@media (min-width: 700px) {
  .toast-stack { left: auto; right: 24px; bottom: 24px; transform: none; width: 380px; }
}
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 6px 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r-m);
  background: rgba(28, 25, 38, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 22px 60px -16px rgba(0, 0, 0, .8);
  animation: cc-toast-in .5s var(--ease-out) both;
}
.toast.is-out { animation: cc-toast-out .25s ease-in both; }
.toast__dot { flex: none; width: 9px; height: 9px; margin-top: 13px; border-radius: 50%; background: var(--violet); }
.toast--ok .toast__dot { background: var(--ok); box-shadow: 0 0 10px rgba(91, 214, 154, .6); }
.toast--err { border-color: rgba(255, 59, 78, .45); }
.toast--err .toast__dot { background: var(--neon); box-shadow: 0 0 10px rgba(255, 59, 78, .8); }
.toast__msg { flex: 1; margin: 0; padding: 8px 0; font-size: 15px; line-height: 1.4; color: var(--paper); }
.toast__x {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; margin: -4px 0 -4px auto;
  background: none; border: 0; border-radius: var(--r-s); color: var(--muted); cursor: pointer;
}
.toast__x:hover { color: var(--paper); background: var(--ink-4); }
@keyframes cc-toast-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes cc-toast-out { to { opacity: 0; transform: translateY(10px) scale(.97); } }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
  background: rgba(6, 5, 9, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  overscroll-behavior: contain; animation: cc-fade .25s ease both;
}
.modal.is-out { animation: cc-fade-out .2s ease both; }
.modal__panel {
  position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; outline: none;
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 28px;
  box-shadow: 0 40px 120px -24px rgba(0, 0, 0, .85), 0 0 0 1px rgba(165, 124, 255, .06), inset 0 1px 0 rgba(244, 241, 234, .05);
  animation: cc-pop .45s var(--ease-out) both;
}
.modal.is-out .modal__panel { animation: cc-pop-out .2s ease-in both; }
.modal__x {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; border-radius: var(--r-s); color: var(--muted); cursor: pointer;
}
.modal__x:hover { color: var(--paper); background: var(--ink-4); }
.modal__title { margin: 0 48px 14px 0; font: 800 30px/1.02 var(--f-display); letter-spacing: .02em; text-transform: uppercase; }
.modal__body { font-size: 16px; color: var(--paper); }
.modal__body > :first-child { margin-top: 0; }
.modal__body > :last-child { margin-bottom: 0; }
.modal__body p { color: var(--muted); }
.modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 26px; }
@keyframes cc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cc-fade-out { to { opacity: 0; } }
@keyframes cc-pop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes cc-pop-out { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes cc-sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes cc-sheet-out { to { transform: translateY(100%); } }
@media (max-width: 560px) {
  .modal { place-items: end center; padding: 0; }
  .modal__panel {
    width: 100%; max-height: 92dvh; border-radius: var(--r-l) var(--r-l) 0 0; border-bottom: 0;
    padding: 24px 16px calc(20px + env(safe-area-inset-bottom)); animation-name: cc-sheet;
  }
  .modal.is-out .modal__panel { animation-name: cc-sheet-out; }
  .modal__title { font-size: 26px; }
  .modal__actions .btn { flex: 1 1 0; padding-inline: 12px; }
}

/* ---------- reduced motion: everything visible, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  .cc-live.is-open .cc-live__dot { animation: none; }
  .cc-drawer__nav a, .cc-drawer__cta, .cc-drawer__meta { transform: none; }
  .cc-foot__giant-in span { animation: none !important; opacity: 1; transform: none; }
  .btn:hover, .btn:active, .chip:active { transform: none; }
  .btn--primary::after { display: none; }
}
