/* TrustBridge design system: light theme (public) and glass theme (app) */
:root {
  --forest: #0E5A3F; --forest-deep: #0A3F2D; --sun: #F2B632; --sun-dark: #D99A12;
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --scene:
    radial-gradient(900px 600px at 8% -5%, rgba(31,191,134,.38), transparent 60%),
    radial-gradient(800px 600px at 105% 15%, rgba(24,140,150,.30), transparent 60%),
    radial-gradient(700px 500px at 85% 105%, rgba(242,182,50,.16), transparent 60%),
    linear-gradient(160deg, #06251C 0%, #0A3A2B 55%, #06251C 100%);
}
.theme-light {
  --bg: #F3F6F4; --text: #14201A; --soft: #56665E; --link: #0E5A3F;
  --panel: #FFFFFF; --panel-border: #DCE4DF; --panel-shadow: 0 1px 2px rgba(20,32,26,.04);
  --input-bg: #FFFFFF; --input-border: #B9C7BF; --input-text: #14201A;
  --btn-bg: #0E5A3F; --btn-text: #FFFFFF; --btn-hover: #0A3F2D; --outline: #0E5A3F;
  --hover: #EAF2EE; --chip: #E3F2EA; --chip-text: #0A3F2D; --line: #DCE4DF;
  --star: #9A6A00; --danger-text: #B42318; --danger-line: #E3B9B3; --mine: #DCEFE5; --avatar: #0E5A3F;
}
.theme-glass, .on-dark {
  --bg: #06251C; --text: #EAF4EF; --soft: #A7C0B4; --link: #8FE3BD;
  --panel: rgba(255,255,255,.08); --panel-border: rgba(255,255,255,.18); --panel-shadow: 0 12px 40px rgba(0,0,0,.28);
  --input-bg: rgba(255,255,255,.08); --input-border: rgba(255,255,255,.26); --input-text: #FFFFFF;
  --btn-bg: #F2B632; --btn-text: #14201A; --btn-hover: #D99A12; --outline: rgba(255,255,255,.5);
  --hover: rgba(255,255,255,.08); --chip: rgba(143,227,189,.16); --chip-text: #8FE3BD; --line: rgba(255,255,255,.14);
  --star: #FFD36B; --danger-text: #FFB4AD; --danger-line: rgba(255,180,173,.4); --mine: rgba(242,182,50,.2);
  --avatar: linear-gradient(135deg, #1FBF86, #0E5A3F);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .theme-glass { --panel: rgba(10,58,43,.92); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; background: var(--bg); color: var(--text); min-height: 100vh; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: 1.55rem; font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; margin-top: 1.4em; }
p { margin: 0 0 .8em; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.theme-light :focus-visible { outline-color: var(--forest); }
.on-dark :focus-visible { outline-color: var(--sun); }
.muted, .helptext { color: var(--soft); font-size: .92rem; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
select option, select optgroup { color: #14201A; background: #fff; }

/* ---------- Backdrop and glass ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; background: var(--scene); }
.theme-light .backdrop { display: none; }
:is(.card, .form-box, .appt, .alert, .stat, .panel, .verify, .field) {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); box-shadow: var(--panel-shadow);
}
.theme-glass :is(.card, .form-box, .appt, .alert, .stat, .panel, .sidebar, .appbar, .bubble),
.on-dark .verify {
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  border: 2px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-text) !important;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn.outline { background: transparent; border-color: var(--outline); color: var(--text) !important; }
.btn.outline:hover { background: var(--hover); }
.btn.sun, .btn.small { background: var(--sun); border-color: var(--sun); color: #14201A !important; }
.btn.sun:hover, .btn.small:hover { background: var(--sun-dark); border-color: var(--sun-dark); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn.compact, .small-green { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn.block { width: 100%; margin-top: 8px; }
.ghost-danger { background: transparent !important; border-color: var(--danger-line) !important; color: var(--danger-text) !important; }
.inline { display: inline; }
.link-btn { background: none; border: 0; cursor: pointer; padding: 0; font: inherit; color: var(--link); }
.danger { color: var(--danger-text) !important; margin-left: 10px; }
.chip, .badge {
  display: inline-flex; align-items: center; gap: 4px; background: var(--chip); color: var(--chip-text);
  font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; vertical-align: middle;
}
.chip { margin-right: 6px; }
.badge::before { content: "\2713"; }

/* ---------- Public header and footer ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(6,37,28,.86); color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.1); }
.topbar :focus-visible { outline-color: var(--sun); }
.topbar-inner { max-width: 1080px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; min-height: 62px; }
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--sun); color: #14201A; display: grid; place-items: center; font-weight: 800; }
.nav-toggle { background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.nav { display: none; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: rgba(6,37,28,.98); padding: 4px 16px 16px; border-top: 1px solid rgba(255,255,255,.12); }
.nav.open { display: flex; }
.nav a, .nav .link-btn { color: #fff; text-decoration: none; padding: 13px 2px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.1); width: 100%; text-align: left; }
.nav .btn.small { margin-top: 12px; width: 100%; border-bottom: 0; color: #14201A; }
@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 22px; padding: 0; border: 0; background: none; }
  .nav a, .nav .link-btn { padding: 6px 0; border: 0; font-size: .98rem; width: auto; }
  .nav .btn.small { margin: 0; width: auto; padding: 0 16px; }
}
.container { max-width: 1080px; margin: 0 auto; padding: 24px 16px 48px; min-height: 60vh; }
.footer { background: #06251C; color: #A7C0B4; padding: 36px 16px 28px; }
.footer-inner { display: grid; gap: 18px; max-width: 1080px; margin: 0 auto; }
@media (min-width: 700px) { .footer-inner { grid-template-columns: 2fr 1fr; } }
.footer strong { color: #fff; font-size: 1.1rem; }
.footer a { display: block; color: #cfe3d8; text-decoration: none; padding: 3px 0; }
.footer-copy { max-width: 1080px; margin: 22px auto 0; font-size: .85rem; }

/* ---------- App shell: sidebar and appbar ---------- */
.sidebar {
  position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: 280px; max-width: 86vw;
  padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto;
  transform: translateX(-105%); transition: transform .25s ease; border-radius: 0 22px 22px 0;
  background: rgba(8,44,33,.97); border: 1px solid var(--panel-border); border-left: 0;
}
.sidebar.open { transform: none; }
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.show { opacity: 1; pointer-events: auto; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; color: #fff; font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.side-label { font-size: .8rem; font-weight: 600; color: var(--soft); padding: 16px 12px 4px; }
.side-link {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 600;
}
.side-link:hover { background: var(--hover); }
.side-link.active { background: rgba(242,182,50,.16); color: #FFD36B; }
.side-link.active::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--sun); }
.count { margin-left: auto; background: var(--sun); color: #14201A; font-size: .75rem; font-weight: 800; border-radius: 999px; padding: 1px 8px; }
.side-user { margin-top: auto; padding: 14px 8px 4px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.side-me { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side-me strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-me span { color: var(--soft); font-size: .85rem; }
.side-user form { margin: 0; }
.side-user .btn { width: 100%; }
.avatar-sm { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--avatar); color: #fff; display: grid; place-items: center; font-weight: 800; }
.main-col { min-height: 100vh; }
.appbar { position: sticky; top: 10px; z-index: 20; margin: 10px 12px 0; padding: 8px 10px; display: flex; align-items: center; gap: 10px; border-radius: 18px; background: var(--panel); border: 1px solid var(--panel-border); }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: transparent; border: 1px solid var(--panel-border); color: var(--text); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--hover); }
.dot { position: absolute; top: -5px; right: -5px; background: var(--sun); color: #14201A; font-size: .7rem; font-weight: 800; border-radius: 999px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; }
.appbar-brand { color: #fff; font-weight: 800; text-decoration: none; margin-right: auto; }
.appbar-search { display: none; align-items: center; gap: 8px; flex: 1; max-width: 420px; margin-right: auto; padding: 0 12px; border-radius: 12px; border: 1px solid var(--input-border); background: var(--input-bg); }
.appbar-search input { flex: 1; min-width: 0; height: 42px; background: none; border: 0; color: var(--input-text); font: inherit; }
.appbar-search input::placeholder { color: var(--soft); }
.appbar-search input:focus-visible { outline: none; }
.appbar-search:focus-within { border-color: var(--sun); }
.content { max-width: 1080px; margin: 0 auto; padding: 22px 16px 48px; }
@media (min-width: 640px) { .appbar-search { display: flex; } .appbar-brand { display: none; } }
@media (min-width: 960px) {
  .sidebar { transform: none; top: 12px; bottom: 12px; left: 12px; border-radius: 24px; border-left: 1px solid var(--panel-border); background: var(--panel); }
  .side-link.active::before { left: -12px; }
  .main-col { margin-left: 304px; }
  .appbar { margin: 12px 20px 0 8px; }
  .menu-btn, .scrim { display: none; }
  .content { padding: 26px 24px 56px 8px; }
}

/* ---------- Dashboard ---------- */
.page-head { margin-bottom: 18px; }
.page-head p { color: var(--soft); margin: 4px 0 0; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 16px; text-decoration: none; color: var(--text); }
.stat:hover { border-color: var(--sun); }
.stat .icon-tile { margin-bottom: 10px; }
.stat-value { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.stat-label { color: var(--soft); font-size: .9rem; }
.icon-tile { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--chip); color: var(--chip-text); display: grid; place-items: center; }
.icon-tile .ico { width: 24px; height: 24px; }
.dash-grid { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 900px) { .dash-grid { grid-template-columns: 1.4fr 1fr; } }
.panel { padding: 18px; }
.panel h3 { margin-top: 0; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row strong { display: block; }
.progress { height: 8px; border-radius: 99px; background: var(--hover); overflow: hidden; margin: 6px 0 10px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #1FBF86, #F2B632); }
.check-item { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.check-item:last-child { border-bottom: 0; }
.tick { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--outline); display: grid; place-items: center; }
.tick.done { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }
.tick .ico { width: 14px; height: 14px; stroke-width: 3; }
.check-item.is-done span:last-child { color: var(--soft); text-decoration: line-through; }

/* ---------- Content blocks ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 16px 0; }
.card { padding: 18px; }
.card h3 { margin: 0 0 6px; }
.cardlink { display: block; text-decoration: none; color: inherit; }
.list { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.empty { border: 1px dashed var(--panel-border); border-radius: var(--radius); padding: 22px 18px; text-align: center; color: var(--soft); margin: 0; }
.notice { background: var(--chip); color: var(--chip-text); padding: 12px 14px; border-radius: 12px; margin: 0 0 14px; }
.notice.warn { background: rgba(242,182,50,.18); color: var(--star); }
.status { display: inline-flex; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--hover); color: var(--soft); white-space: nowrap; }
.status-requested { background: rgba(242,182,50,.2); color: var(--star); }
.status-confirmed { background: var(--chip); color: var(--chip-text); }
.status-completed { background: rgba(96,165,250,.2); color: #7FB2F5; }
.theme-light .status-completed { color: #1E3A8A; }
.status-declined, .status-cancelled { background: rgba(248,113,113,.16); color: var(--danger-text); }
.appt { padding: 16px; }
.appt-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.appt-when { font-weight: 800; font-size: 1.05rem; }
.appt-who { color: var(--soft); margin: 2px 0 0; }
.appt-note { background: var(--hover); border-radius: 10px; padding: 8px 10px; margin: 10px 0 0; font-size: .95rem; }
.appt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.appt-actions form { margin: 0; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; }
.alert-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--line); margin-top: 7px; }
.alert.unread { border-color: rgba(242,182,50,.55); }
.alert.unread .alert-dot { background: var(--sun); box-shadow: 0 0 0 3px rgba(242,182,50,.25); }
.alert-body a, .alert-body .msg { color: var(--text); font-weight: 600; text-decoration: none; }
.alert-time { display: block; color: var(--soft); font-size: .85rem; margin-top: 2px; }

/* ---------- Forms ---------- */
.form-box { max-width: 460px; margin: 8px auto; padding: 22px; }
.form-box.wide { max-width: 760px; }
.form-box p { margin: 0 0 14px; }
.form-box label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-box input[type=text], .form-box input[type=email], .form-box input[type=password],
.form-box input[type=number], .form-box input[type=time], .form-box input[type=file],
.form-box select, .form-box textarea, .filters input, .filters select {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--input-border);
  border-radius: 12px; font: inherit; background: var(--input-bg); color: var(--input-text);
}
.form-box textarea { min-height: 96px; }
.form-box ul:not(.errorlist) { list-style: none; padding: 0; margin: 0; }
.form-box ul:not(.errorlist) label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.form-box ul:not(.errorlist) label:has(input:checked) { border-color: var(--btn-bg); background: var(--hover); }
.errorlist { color: var(--danger-text); padding-left: 0; list-style: none; font-size: .92rem; margin: 4px 0; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 12px 0; }

/* ---------- Search, professionals, booking, chat ---------- */
.results { border-top: 1px solid var(--line); margin-top: 16px; }
.pro { display: flex; gap: 14px; padding: 16px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.pro:hover { background: var(--hover); }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--avatar); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
.pro-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pro-name { font-weight: 700; font-size: 1.05rem; }
.pro-meta { color: var(--soft); font-size: .95rem; }
.stars { color: var(--star); font-weight: 700; margin: 4px 0; }
.price { float: right; font-weight: 700; }
.pager { display: flex; gap: 14px; justify-content: center; align-items: center; margin-top: 18px; }
.slotgrid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.slotgrid label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin: 0; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.slotgrid label:has(input:checked) { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }
.chat { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; max-height: 50vh; overflow-y: auto; }
.bubble { background: var(--hover); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; max-width: 85%; align-self: flex-start; }
.bubble.mine { background: var(--mine); align-self: flex-end; }
.bubble p { margin: 4px 0; }

/* ---------- Landing page ---------- */
.hero2 { background: var(--scene); color: var(--text); }
.hero2-inner { max-width: 1080px; margin: 0 auto; padding: 44px 16px 56px; display: grid; gap: 30px; }
@media (min-width: 900px) { .hero2-inner { grid-template-columns: 1.15fr .85fr; align-items: center; padding: 76px 16px 84px; } }
.hero2 h1 { color: #fff; max-width: 12em; margin-bottom: 14px; }
.lead { font-size: 1.1rem; max-width: 32em; color: #C7DDD2; margin: 0 0 24px; }
.searchbar { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.searchbar input { min-width: 0; width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-radius: 12px; font: inherit; background: #fff; color: #14201A; }
.searchbar input::placeholder { color: #5B6B63; }
@media (min-width: 560px) { .searchbar { flex-direction: row; } .searchbar .btn { min-width: 130px; } }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip-link { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--panel-border); background: var(--panel); color: var(--text); text-decoration: none; font-size: .9rem; }
.chip-link:hover { border-color: var(--sun); }
.hero-link { display: inline-block; margin-top: 18px; color: #fff; font-weight: 600; }
.verify { padding: 22px; }
.verify h3 { margin-top: 0; }
.verify ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.verify li { display: flex; gap: 12px; align-items: flex-start; }
.verify li p { margin: 0; color: var(--soft); font-size: .95rem; }
.verify li strong { display: block; color: var(--text); }
.section { margin-top: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.field-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 10px; padding: 18px; text-decoration: none; color: var(--text); }
.field:hover { border-color: var(--forest); }
.field strong { font-size: 1.05rem; line-height: 1.25; }
.field span.sub { color: var(--soft); font-size: .9rem; }
.features { display: grid; gap: 26px 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature h3 { margin: 0 0 4px; }
.feature p { margin: 0; color: var(--soft); }
.cta-band { border-radius: 24px; padding: 28px 22px; background: var(--scene); color: var(--text); display: flex; flex-direction: column; gap: 16px; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #C7DDD2; max-width: 34em; }
@media (min-width: 760px) { .cta-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 34px; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ---------- Brand and logo ---------- */
img { max-width: 100%; height: auto; }
.brand-mark { background: #fff; padding: 3px; overflow: hidden; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.footer-logo { display: block; width: min(250px, 80%); margin-bottom: 8px; }
.auth-brand { text-align: center; margin: 4px 0 18px; }
.auth-logo { width: min(250px, 72vw); }

/* ---------- Hero: search and two buttons ---------- */
.hero-form { display: flex; flex-direction: column; gap: 10px; max-width: 580px; }
.hero-form input {
  min-width: 0; width: 100%; min-height: 54px; padding: 0 16px; border: 0;
  border-radius: 12px; font: inherit; background: #fff; color: #14201A;
}
.hero-form input::placeholder { color: #5B6B63; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn { flex: 1 1 220px; }

/* ---------- Mobile and tablet ---------- */
body { overflow-x: clip; }
.pro-name, .appt-who, .alert-body, .row strong, .stat-label { overflow-wrap: anywhere; }
.row { flex-wrap: wrap; }
@media (max-width: 420px) {
  h2 { font-size: 1.35rem; }
  .content, .container { padding-left: 12px; padding-right: 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .appt-top { flex-direction: column; }
  .btn { padding: 0 16px; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .hero2-inner { padding-top: 56px; padding-bottom: 64px; }
}

/* ---------- Search filters, header ---------- */
.topbar { background: rgba(6,37,28,.97); }
.filters .check { display: flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 600; }
.filters .check input { width: 22px; min-height: 0; height: 22px; padding: 0; accent-color: var(--btn-bg); }
.filters .btn { width: 100%; }
.next-slot { color: var(--chip-text); font-size: .9rem; font-weight: 700; }

/* --- professional detail --- */
.pd-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.pd-head { min-width: 0; }
.pd-head h2 { margin: 0 0 4px; }
.pd-head p { margin: 2px 0; }
.pd-photo-btn { background: none; border: 0; padding: 0; cursor: zoom-in; flex: none; }
.pd-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; border: 3px solid rgba(255,255,255,.35); }
.pd-initial { display: flex; align-items: center; justify-content: center; background: #1f8a63; color: #fff; font-size: 2.2rem; font-weight: 700; flex: none; }
.pd-book { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.pd-sec { margin-bottom: 18px; }
.pd-sec h3 { margin: 0 0 8px; }
.pd-lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; margin: auto; cursor: zoom-out; }
.pd-lightbox::backdrop { background: rgba(0,0,0,.88); }
.pd-lightbox img { display: block; max-width: 96vw; max-height: 92vh; object-fit: contain; border-radius: 8px; }

/* --- quick actions --- */
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 18px; }
.quick-actions .btn { width: 100%; text-align: center; margin: 0; }
@media (min-width: 760px) { .quick-actions { display: flex; flex-wrap: wrap; } .quick-actions .btn { width: auto; } }

/* --- ui fixes 8a --- */
.filters .btn { grid-column: 1 / -1; }
.filters .check { min-height: 52px; }
.filters .check input { width: 26px; height: 26px; flex: none; }
.slotgrid label { position: relative; min-height: 48px; }
.slotgrid label:has(input:checked) { box-shadow: 0 0 0 3px rgba(242,182,50,.45); }
.slotgrid label:has(input:checked)::after { content: "\2713"; font-weight: 800; margin-left: 4px; }

/* --- avatar img --- */
img.avatar-img { object-fit: cover; border-radius: 50%; }

.appt-person { display: flex; align-items: center; gap: 12px; min-width: 0; }

/* --- business pages and shared helpers --- */
.searchrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.searchrow input { flex: 1 1 200px; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid var(--input-border); border-radius: 12px; font: inherit; background: var(--input-bg); color: var(--input-text); }
.searchrow input::placeholder { color: var(--soft); }
.searchrow .btn { flex: 0 0 auto; }
@media (max-width: 420px) { .searchrow .btn { flex: 1 1 100%; } }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.card-actions form { margin: 0; flex: 1 1 auto; }
.card-actions .btn { width: 100%; }
.card strong, .pd-head h2 { overflow-wrap: anywhere; }
.card p.muted { margin: 2px 0 6px; }
.linkrow { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 14px; }
.biz-logo { width: 80px; height: 80px; border-radius: 18px; object-fit: cover; display: block; margin-bottom: 10px; }
.pd-photo.is-logo { border-radius: 20px; }

/* ---------- TrustBridge lockup (logo mark + name) ---------- */
.tb-lockup { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em; color: inherit; }
.tb-lockup .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
.footer .tb-lockup { color: #fff; }
.tb-tagline { margin: 6px 0 0; color: var(--soft); font-size: .95rem; }
.footer .tb-tagline { color: #A7C0B4; }

/* ---------- Appointment cancel and reschedule ---------- */
.appt-policy { margin: 6px 0 0; color: var(--soft); font-size: .9rem; }
.cancel-box { margin-top: 10px; }
.cancel-box summary { cursor: pointer; color: var(--danger-text); font-size: .92rem; }
.cancel-form { display: grid; gap: 8px; margin-top: 8px; max-width: 32em; }
.cancel-form button { justify-self: start; }

/* ---------- Chat auto-refresh ---------- */
.bubble-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-hint { font-size: .85rem; margin: 6px 0 0; }
