/* ============================================================
   Lifeguard on the GO! — Red Rescue brand
   Content follows the Red Rescue camp page (white cards, navy hero,
   bold uppercase Montserrat, solid red pills). Glass is kept for the
   floating bars (top bar, tab bar, form nav) and the modal backdrop.
   ============================================================ */
:root {
  /* Brand palette (matches the Red Rescue holiday camp page) */
  --red: #C00000;
  --red-deep: #930000;
  --navy: #0B1F3A;
  --orange: #FF6A00;
  --white: #FFFFFF;

  --bg: #F4F6F9;
  --tint: #FDECEC;          /* light red icon tiles */
  --line: #E3E7EE;
  --field: #D5DBE5;
  --text: var(--navy);
  --text-dim: #56617A;
  --text-faint: #8A93A5;
  --ink: var(--navy);

  --r-card: 20px;
  --shadow: 0 10px 30px rgba(11, 31, 58, .10);
  --shadow-hi: 0 16px 40px rgba(11, 31, 58, .16);
  --glass-navy: rgba(11, 31, 58, .86);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Montserrat', 'Poppins', -apple-system, 'Segoe UI', sans-serif;
  --hero: linear-gradient(120deg, #0B1F3A 0%, #0B1F3A 58%, #2a1430 78%, #930000 100%);
  --tabbar-h: 68px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); color: var(--text);
  background: var(--bg); line-height: 1.55; font-size: 15px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--red); }
h1, h2, h3, h4 { margin: 0 0 .45em; line-height: 1.15; font-family: var(--font-head); text-transform: uppercase; color: var(--navy); }
h1 { font-size: clamp(28px, 6.4vw, 46px); font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: 20px; font-weight: 800; letter-spacing: .01em; }
h3 { font-size: 16px; font-weight: 800; letter-spacing: .01em; }
p { margin: 0 0 .8em; }
small, .muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
[hidden] { display: none !important; }
.hl { color: var(--orange); }

/* ---------- Navy hero band (full-bleed, sits behind the top bar) ---------- */
.page-head, .hero {
  position: relative; color: #fff;
  /* --bar-h is the top bar's real height (set in ui.js), so the band always starts behind it */
  margin: calc(-1 * (var(--bar-h, 70px) + 48px)) 0 22px; padding: calc(var(--bar-h, 70px) + 56px) 4px 30px;
  border-image: var(--hero) fill 0 / 0 / 0 100vmax;
}
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.page-head h1, .hero h1, .page-head h2, .hero h2, .page-head h3, .hero h3 { color: #fff; }
.page-head h1 { font-size: clamp(24px, 5.4vw, 36px); }
.page-head p, .hero p { margin: 0; color: rgba(255,255,255,.82); }
.page-head .muted, .hero .muted { color: rgba(255,255,255,.75); }
.page-head a:not(.btn), .hero a:not(.btn) { color: #fff; }
.page-head .btn-ghost, .hero .btn-ghost { color: #fff; }
.page-head .btn-ghost:hover, .hero .btn-ghost:hover { background: rgba(255,255,255,.12); }
.hero { padding-bottom: 46px; }

/* ---------- Floating glass bars ---------- */
.glass-bar {
  background: var(--glass-navy);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,255,255,.14); border-top-color: rgba(255,255,255,.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 30px rgba(11,31,58,.28);
  color: #fff;
}

/* ---------- Cards ---------- */
.card { background: #fff; border-radius: var(--r-card); padding: 24px; position: relative; box-shadow: var(--shadow);
  transition: transform .35s var(--spring), box-shadow .35s var(--ease); color: var(--text); }
@media (max-width: 520px) { .card { padding: 18px; } }
.card.dense { background: #fff; }
.card .dense, .dense.card.inner, .inner { background: #F7F8FB; box-shadow: none; border: 1px solid var(--line); }
.card.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); }
.card.lift:active { transform: translateY(-1px) scale(.995); }
a.card { display: block; text-decoration: none; color: inherit; }
.card + .card, .stack > * + * { margin-top: 14px; }
.card.navy { background: var(--navy); color: #fff; }
.card.navy h3, .card.navy h2 { color: #fff; }
.card.navy .muted { color: rgba(255,255,255,.75); }
.card.navy .hl, .card.navy .big { color: var(--orange); }

/* ---------- Header ---------- */
#topbar { position: sticky; top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 40; margin: 10px 12px 0; border-radius: 22px;
  padding: 9px 14px; display: flex; align-items: center; gap: 12px; min-height: 60px; }
#topbar .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; min-width: 0; }
.logo-mark { width: 42px; height: 42px; flex: none; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0,0,0,.25)); }
#topbar .brand { flex: 1 1 auto; }
#topbar { flex-wrap: wrap; row-gap: 8px; }
.preview-strip { flex: 1 0 100%; order: 10; text-align: center; font-size: 12px; line-height: 1.35; padding: 6px 12px; border-radius: 12px;
  background: var(--orange); color: var(--navy); font-weight: 500; }
.preview-strip b { font-weight: 800; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text b { font-family: var(--font-head); font-weight: 900; font-size: 15px; text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text span { font-size: 11.5px; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 899px) { #topbar .spacer { display: none; } }
@media (max-width: 420px) { .brand-text b { font-size: 13.5px; } .chip .role-label { display: none; } }
#topbar .spacer { flex: 1; }
.topnav { display: none; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.topnav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: rgba(255,255,255,.78); font: 700 12.5px var(--font-head); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; transition: background .2s, color .2s; }
.topnav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.topnav a.on { background: var(--red); color: #fff; }
.who { display: flex; align-items: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25); font: 700 12.5px var(--font-head); text-transform: uppercase; letter-spacing: .02em; color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap; }
.clockchip { background: var(--orange); color: var(--navy); border-color: transparent; }

/* ---------- Bottom tab bar (mobile) ---------- */
#tabbar { position: fixed; z-index: 40; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  height: var(--tabbar-h); border-radius: 26px; display: flex; justify-content: space-around; align-items: stretch; padding: 6px; }
#tabbar a, #tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; color: rgba(255,255,255,.72); font: 700 10.5px var(--font-head); text-transform: uppercase; letter-spacing: .02em; border-radius: 20px; background: none; border: 0; cursor: pointer;
  transition: background .25s var(--ease), color .2s, transform .3s var(--spring); }
#tabbar a svg, #tabbar button svg { width: 22px; height: 22px; }
#tabbar a.on { color: #fff; background: var(--red); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
#tabbar a:active, #tabbar button:active { transform: scale(.92); }
#tabbar:empty { display: none; }

main { max-width: 1120px; margin: 0 auto; padding: 18px 16px 24px; outline: none; }
#foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 13px; color: var(--text-dim); text-align: center;
  padding: 8px 16px calc(var(--tabbar-h) + 34px + env(safe-area-inset-bottom)); }
#foot a { color: var(--navy); font-weight: 600; }
@media (min-width: 900px) {
  .topnav { display: flex; }
  #tabbar { display: none; }
  #foot { padding-bottom: 30px; }
  #topbar { margin: 14px auto 0; max-width: 1180px; top: calc(14px + env(safe-area-inset-top, 0px)); }
}

/* ---------- Layout helpers ---------- */
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr; } .g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }
.span2 { grid-column: 1 / -1; }
.section-title { margin: 28px 4px 12px; font: 800 13px var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }
.kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 7px 14px; font-size: 14px; }
.kv dt { color: var(--text-dim); } .kv dd { margin: 0; word-break: break-word; }
.pre { white-space: pre-wrap; }
.legal h2 { margin-top: 24px; font-size: 17px; }
.legal mark { background: #FFE4CC; color: #7A3300; padding: 0 4px; border-radius: 4px; font-weight: 700; }

/* ---------- Buttons (solid pills, like the camp page) ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  padding: 13px 24px; min-height: 48px; border-radius: 999px; font: 800 14px var(--font-head); text-transform: uppercase; letter-spacing: .03em;
  color: var(--red); background: #fff; border: 1.5px solid rgba(192,0,0,.3); text-decoration: none; cursor: pointer;
  transition: transform .35s var(--spring), box-shadow .25s, background .25s, border-color .25s; -webkit-tap-highlight-color: transparent; }
.btn:hover { border-color: var(--red); background: #FFF7F7; }
.btn:active { transform: scale(.95, .92); transition-duration: .12s; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 8px 20px rgba(192,0,0,.25); }
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-primary:active { background: var(--red-deep); }
.btn-white { background: #fff; color: var(--red); border-color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--navy); box-shadow: none; }
.btn-ghost:hover { background: rgba(11,31,58,.06); border-color: transparent; }
.btn-sm { padding: 8px 15px; min-height: 38px; font-size: 12px; }
.btn-xs { padding: 5px 11px; min-height: 30px; font-size: 11px; }
.btn-block { width: 100%; }
.btn-danger { border-color: var(--red); }
.btn-ok { background: #059669; color: #fff; border-color: #059669; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  white-space: nowrap; letter-spacing: .01em; }
.st-submitted { background: #E2E8F0; color: #1e293b; }
.st-sales-review { background: #EDE3FF; color: #4c1d95; }
.st-changes-requested { background: #FFE4CC; color: #7c2d12; }
.st-quoted { background: #FEF0C3; color: #713f12; }
.st-approved { background: #DBEAFE; color: #1e3a8a; }
.st-invoiced { background: #E0E7FF; color: #312e81; }
.st-paid { background: #CFF5DD; color: #065f2c; }
.st-lifeguard-assigned { background: #CCF3EE; color: #134e4a; }
.st-completed { background: #15803D; color: #fff; }
.st-expired { background: #E5E7EB; color: #4B5563; }
.st-cancelled { background: #4B5563; color: #fff; }
.st-unpaid { background: #FEF0C3; color: #713f12; }
.st-void { background: #E5E7EB; color: #4B5563; }
.tr-auto { background: var(--tint); color: var(--red-deep); }
.tr-sales { background: var(--navy); color: var(--orange); }
.page-head .tr-auto, .hero .tr-auto { background: #fff; color: var(--red); }
.page-head .tr-sales, .hero .tr-sales { box-shadow: inset 0 0 0 1.5px var(--orange); }
.badge.urgent { background: var(--red); color: #fff; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(192,0,0,.15); } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.field > span { color: var(--navy); }
.field small { font-weight: 500; }
.req { color: var(--red); }
input, select, textarea {
  width: 100%; font: 500 15px var(--font); color: var(--navy); padding: 12px 14px; border-radius: 12px;
  background: #fff; border: 1.5px solid var(--field); outline: none; min-height: 48px;
  transition: box-shadow .2s, border-color .2s; }
input::placeholder, textarea::placeholder { color: #9AA3B2; }
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(192,0,0,.14); }
input[readonly] { background: #F4F6F9; }
textarea { min-height: 92px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--red); padding: 0; flex: none; box-shadow: none; }
.invalid input, .invalid select, .invalid textarea, input.invalid { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,106,0,.18); }
.check.invalid { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,106,0,.18); }
.err-msg { color: #B34700; font-size: 13.5px; font-weight: 600; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #fff; color: var(--navy);
  border: 1.5px solid var(--field); cursor: pointer; font-weight: 600; font-size: 14px; transition: background .2s, border-color .2s, transform .3s var(--spring); user-select: none; }
.check:has(input:checked) { background: var(--tint); border-color: var(--red); color: var(--red-deep); }
.check:active { transform: scale(.96); }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: #EEF1F5; flex-wrap: wrap; }
.seg label { padding: 8px 16px; border-radius: 999px; cursor: pointer; font: 700 13px var(--font-head); text-transform: uppercase; letter-spacing: .02em; color: var(--text-dim); transition: all .3s var(--spring); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--red); color: #fff; box-shadow: 0 4px 12px rgba(192,0,0,.25); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.toggle { position: relative; width: 52px; height: 30px; flex: none; }
.toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.toggle i { position: absolute; inset: 0; border-radius: 999px; background: #CBD2DC; transition: background .25s; }
.toggle i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .35s var(--spring); }
.toggle input:checked + i { background: #16A34A; }
.toggle input:checked + i::after { transform: translateX(22px); }

/* ---------- Booking wizard ---------- */
.wizard { max-width: 760px; margin: 0 auto; }
.wizard .page-head { margin-bottom: 18px; }
.progress { position: relative; height: 12px; border-radius: 999px; background: #E3E7EE; overflow: hidden; }
.progress .fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; overflow: hidden;
  background: linear-gradient(90deg, var(--red), var(--orange)); transition: width .8s var(--spring); }
.progress .fill::after { content: ''; position: absolute; inset: -40% -60px -40% 0; opacity: .45;
  background: radial-gradient(circle at 10px 50%, rgba(255,255,255,.7) 5px, transparent 6px) 0 0 / 22px 100% repeat-x;
  animation: liquid 1.6s linear infinite; }
@keyframes liquid { to { transform: translateX(-22px); } }
.step-meta { display: flex; justify-content: space-between; font: 700 12.5px var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); margin: 8px 4px 14px; }
.step { animation: slideIn .45s var(--spring) both; }
.step.back { animation-name: slideBack; }
@keyframes slideIn { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes slideBack { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
.wizard-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 18px; position: sticky; bottom: calc(var(--tabbar-h) + 20px); z-index: 5;
  padding: 8px; border-radius: 999px; }
.wizard-nav .btn:not(.btn-primary) { background: rgba(255,255,255,.95); }
@media (min-width: 900px) { .wizard-nav { bottom: 16px; } }
.hours-pill { display: inline-flex; gap: 6px; align-items: center; padding: 11px 16px; border-radius: 12px; background: var(--tint); color: var(--red-deep); font-weight: 700; }
.map-frame { width: 100%; height: 220px; border: 0; border-radius: 14px; margin-top: 4px; background: #EEF1F5; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs figure { margin: 0; width: 84px; text-align: center; font-size: 11px; color: var(--text-dim); word-break: break-all; }
.thumbs img, .thumbs .fileicon { width: 84px; height: 64px; object-fit: cover; border-radius: 12px; display: grid; place-items: center; background: #EEF1F5; color: var(--navy); font-weight: 700; }

/* ---------- Quote ---------- */
.quote-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.quote-table td { padding: 11px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.quote-table td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.quote-table .detail { display: block; font-size: 12.5px; color: var(--text-dim); font-weight: 500; }
.quote-table tr.total td { border: 0; padding-top: 14px; font: 900 18px var(--font-head); text-transform: uppercase; }
.quote-table tr.sub td { color: var(--text-dim); }
.total-pill { display: inline-block; background: var(--red); color: #fff; padding: 5px 16px; border-radius: 999px; }
.notice { border-radius: 14px; padding: 13px 16px; background: #F4F6F9; border: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.notice.amber { background: #FFF4E5; border-color: #FFC48A; color: #7A3300; }
.notice.green { background: #E9F8EF; border-color: #9EDDB6; color: #0F5132; }
.notice.white { background: #fff; color: var(--ink); }

/* ---------- Stepper ---------- */
.stepper { display: flex; gap: 4px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.stepper .s { flex: 1 0 auto; min-width: 76px; text-align: center; font: 700 10.5px var(--font-head); text-transform: uppercase; letter-spacing: .02em; color: var(--text-faint); }
.stepper .s i { display: block; height: 6px; border-radius: 99px; background: #E3E7EE; margin-bottom: 7px; }
.stepper .s.done i { background: var(--red); }
.stepper .s.cur i { background: var(--orange); box-shadow: 0 0 10px rgba(255,106,0,.6); }
.stepper .s.done, .stepper .s.cur { color: var(--navy); }

/* ---------- Lists / tables ---------- */
.list-item { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.list-item .main { min-width: 0; flex: 1 1 220px; }
.list-item .title { font: 800 15px var(--font-head); text-transform: uppercase; letter-spacing: .01em; color: var(--navy); }
.list-item .meta { font-size: 13px; color: var(--text-dim); }
.table-wrap { overflow-x: auto; border-radius: 16px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.data th { text-align: left; font: 800 11.5px var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); padding: 10px; border-bottom: 2px solid var(--line); }
table.data td { padding: 12px 10px; border-bottom: 1px solid #EEF1F5; vertical-align: middle; }
table.data tr:hover td { background: #F8F9FB; }
.filters { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .filters { grid-template-columns: repeat(5, 1fr); } }
.filters select, .filters input { min-height: 42px; padding: 8px 12px; font-size: 14px; }

/* ---------- KPI ---------- */
.kpi { padding: 18px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); border-top: 4px solid var(--red); }
.kpi .v { font: 900 24px var(--font-head); letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--navy); }
.kpi .l { font-size: 12.5px; color: var(--text-dim); font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; font-size: 11.5px; color: var(--text-dim); }
.bars .bar i { display: block; width: 100%; max-width: 44px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--red), var(--red-deep)); min-height: 3px; transition: height .8s var(--spring); }
.reason-row { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 8px 0; }
.reason-row .track { flex: 1; height: 8px; border-radius: 99px; background: #EEF1F5; overflow: hidden; }
.reason-row .track i { display: block; height: 100%; background: var(--orange); border-radius: 99px; }

/* ---------- Calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dow { text-align: center; font: 800 11.5px var(--font-head); text-transform: uppercase; color: var(--text-dim); padding: 4px 0; }
.cal .day { min-height: 92px; border-radius: 12px; padding: 6px; background: #F7F8FB; border: 1px solid var(--line); font-size: 12px; overflow: hidden; }
.cal .day.out { opacity: .45; }
.cal .day.today { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.cal .day .n { font-weight: 700; margin-bottom: 4px; }
.cal .ev { display: block; padding: 2px 6px; border-radius: 8px; margin-bottom: 3px; font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .cal .day { min-height: 64px; padding: 4px; } .cal .ev { font-size: 0; height: 8px; padding: 0; } }

/* ---------- Avatars / profiles ---------- */
.avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 800 16px var(--font-head); color: var(--red);
  background: var(--tint); box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(11,31,58,.15); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 80px; height: 80px; font-size: 26px; }
.stars { color: #F59E0B; letter-spacing: 1px; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #EEF1F5; color: var(--navy); font-size: 12px; font-weight: 600; margin: 2px 2px 0 0; }
.tag.warn { background: #FFF4E5; color: #7A3300; }
.tag.bad { background: var(--tint); color: var(--red); }
.page-head .tag { background: rgba(255,255,255,.16); color: #fff; }

/* ---------- Messages ---------- */
.msg-email { background: #fff; color: var(--ink); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.msg-email .band { background: var(--red); color: #fff; padding: 14px 18px; display: flex; align-items: center; gap: 10px; }
.msg-email .band .logo-mark { background: #fff; border-radius: 50%; padding: 2px; filter: none; }
.msg-email .band b { font: 900 15px var(--font-head); text-transform: uppercase; } .msg-email .band small { color: #ffe0dc; display: block; font-size: 11px; }
.msg-email .body { padding: 18px; white-space: pre-wrap; font-size: 14.5px; line-height: 1.6; }
.msg-email .acts { padding: 0 18px 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.msg-email .att { margin: 0 18px 16px; padding: 10px 12px; border: 1px dashed #E8B4AE; border-radius: 12px; font-size: 13px; display: flex; gap: 8px; align-items: center; cursor: pointer; color: var(--red-deep); font-weight: 600; background: #FFF6F4; }
.msg-wa { background: #0b141a; border-radius: 16px; padding: 14px; }
.msg-wa .bubble { background: #005c4b; color: #e9edef; padding: 10px 12px; border-radius: 4px 14px 14px 14px; white-space: pre-wrap; font-size: 14px; max-width: 520px; }
.msg-wa .acts { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; max-width: 520px; }
.msg-wa .acts a { background: #1f2c34; color: #53bdeb; text-align: center; padding: 9px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14px; }
.ch-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 15px; }
.ch-email { background: var(--tint); color: var(--red); }
.ch-whatsapp { background: #25D366; color: #fff; }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(11,31,58,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; justify-content: center; padding: 12px; animation: fade .25s ease both; }
@media (min-width: 700px) { .modal-back { align-items: center; } }
.modal { width: 100%; max-width: 640px; max-height: 88vh; overflow: auto; border-radius: 24px; padding: 24px;
  background: #fff; color: var(--navy); box-shadow: 0 30px 80px rgba(11,31,58,.35); animation: pop .45s var(--spring) both; }
.modal.wide { max-width: 860px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.modal-head h2 { margin: 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.96); } }

/* ---------- Toasts ---------- */
#toasts { position: fixed; z-index: 200; left: 50%; transform: translateX(-50%); top: 14px; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 440px); pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: 14px; color: var(--navy);
  background: #fff; box-shadow: 0 14px 34px rgba(11,31,58,.22); animation: pop .45s var(--spring) both; border-left: 5px solid #16A34A; }
.toast.err { border-left-color: var(--red); }
.toast.info { border-left-color: var(--orange); }

/* ---------- Splash & hero ---------- */
#splash { position: fixed; inset: 0; z-index: 300; pointer-events: none; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 80% 15%, rgba(192,0,0,.55), transparent 50%), var(--navy); transition: opacity .6s var(--ease), visibility .6s; }
#splash.gone { opacity: 0; visibility: hidden; }
.splash-inner { text-align: center; animation: pop .8s var(--spring) both; }
.splash-inner .logo-mark { width: 110px; height: 110px; margin-bottom: 16px; animation: spin 2.2s var(--ease) both; }
.splash-inner .nm { font: 900 30px var(--font-head); text-transform: uppercase; }
@keyframes spin { from { transform: rotate(-90deg) scale(.6); } }
.hero-logo { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.hero-logo .logo-mark { width: 96px; height: 96px; }
.hero-logo .name { font: 900 clamp(32px, 8.4vw, 58px) var(--font-head); text-transform: uppercase; letter-spacing: -.01em; line-height: 1.02; color: #fff; }
.hero-logo .tag-line { font-size: clamp(14px, 3.6vw, 17px); color: rgba(255,255,255,.85); font-weight: 600; letter-spacing: .02em; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .ico { width: 52px; height: 52px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--tint); color: var(--red); }
.feature p { margin: 0; color: var(--text-dim); }

/* ---------- Accessibility & motion ---------- */
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.page-head :focus-visible, .hero :focus-visible, .glass-bar :focus-visible { outline-color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-bar { background: rgba(11, 31, 58, .96); }
}
