/* Brihas shared site styles: landing, explore, roommates, my requests.
   Palette and type follow unslop (Damir Sokolovsky, @heydamir, CC BY 4.0): ink ramp, one window-light accent. */
:root {
  --bg: #0b0d14; --bg2: #07080d; --sur: #11141c; --sur2: #1a1e28; --sur3: #232836;
  --fg: #eef0f5; --fgm: #a3a9b8; --fgd: #7a8296;
  --acc: #f0b45a; --accl: #f5c47a; --accd: rgba(240,180,90,.12);
  --bdr: rgba(238,240,245,.08); --bdr2: rgba(238,240,245,.14);
  --blue: #7a9cc6; --green: #4cc38a; --red: #e86a6a; --orange: #e0904a;
  --ff-d: 'Geist', system-ui, sans-serif;
  --ff-b: 'Geist', system-ui, sans-serif;
  --ff-m: 'Geist Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --max: 1200px; --r: 12px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--ff-b); font-size: 15px; line-height: 1.6; background: var(--bg); color: var(--fg); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
img { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0s !important; } }
.ico { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 16px; height: 16px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--fgm); }
.gold { color: var(--acc); }
.hidden { display: none !important; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease; white-space: nowrap; }
.btn:active { transform: scale(.98); }
/* Primary on dark: off-white from the ramp with dark text; the accent stays for lit windows and key figures. */
.btn-gold { background: var(--fg); color: #0b0d14; box-shadow: inset 0 -1px 0 rgba(0,0,0,.12); }
.btn-gold:hover { background: #ffffff; }
.btn-ghost { border: 1px solid var(--bdr2); color: var(--fg); }
.btn-ghost:hover { background: var(--sur2); border-color: rgba(255,255,255,.2); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn-danger { border: 1px solid rgba(224,82,82,.4); color: var(--red); }
.btn-danger:hover { background: rgba(224,82,82,.1); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── Nav ── */
#site-nav { position: sticky; top: 0; z-index: 50; background: rgba(11,13,20,.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--bdr); }
#site-nav::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 10; }
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
/* Logo: wordmark plus the signature, one lit window with its mullions. */
/* Brihas logo: the Jupiter mark (assets/brand/brihas-mark.svg) and the Geist wordmark "Brihas". */
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--ff-b); font-size: 20px; font-weight: 600; color: var(--fg); letter-spacing: -.03em; line-height: 1; flex-shrink: 0; }
/* The mark: Jupiter as five bands plus one amber moon. Bands slide into place on load and
   shift like winds on hover; the moon swings into orbit. Still under reduced motion. */
.bmark { width: 26px; height: 26px; flex-shrink: 0; overflow: visible; fill: currentColor; }
.bmark .bm-moon { fill: var(--acc); transform-origin: 16px 16px; }
@media (prefers-reduced-motion: no-preference) {
  .bmark .bm-b { animation: bm-in .9s cubic-bezier(.22, 1, .36, 1) backwards; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
  .bmark .bm-b:nth-child(1) { --o: 9px; animation-delay: .05s; }
  .bmark .bm-b:nth-child(2) { --o: -11px; animation-delay: .12s; }
  .bmark .bm-b:nth-child(3) { --o: 8px; animation-delay: .19s; }
  .bmark .bm-b:nth-child(4) { --o: -9px; animation-delay: .26s; }
  .bmark .bm-b:nth-child(5) { --o: 10px; animation-delay: .33s; }
  .bmark .bm-moon { animation: bm-moon 1.5s cubic-bezier(.22, 1, .36, 1) .25s backwards; transition: transform 1.1s cubic-bezier(.22, 1, .36, 1); }
  :is(a, button, .login-logo, .sb-logo, h1):hover > .bmark .bm-b:nth-child(odd) { transform: translateX(1.8px); }
  :is(a, button, .login-logo, .sb-logo, h1):hover > .bmark .bm-b:nth-child(even) { transform: translateX(-1.8px); }
  :is(a, button, .login-logo, .sb-logo, h1):hover > .bmark .bm-moon { transform: rotate(360deg); }
}
@keyframes bm-in { from { opacity: 0; transform: translateX(var(--o)); } }
@keyframes bm-moon { from { opacity: 0; transform: rotate(-220deg); } }
/* Brihas wordmark: drawn lettering (one stroke weight, circles and stems); the dot of the i is the amber moon. */
.bword{display:block;height:20px;width:auto;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:3.4;stroke-linejoin:round}
.bword .bw-dot{fill:var(--acc);stroke:none}
.nav-links { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav-links a { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--fgm); white-space: nowrap; transition: color .15s ease, background-color .15s ease; }
.nav-links a:hover { color: var(--fg); background: var(--sur); }
.nav-links a.active { color: var(--fg); background: var(--sur2); }
.nav-badge { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 6px; border-radius: 9px; background: var(--acc); color: #1a1206; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--sur3); border: 1px solid var(--bdr2); color: var(--fg); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.role-tag { font-size: 12px; font-weight: 500; color: var(--fgm); }
.role-tag.admin { color: var(--acc); }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 8px; place-items: center; color: var(--fg); border: 1px solid var(--bdr2); transition: background-color .15s ease; }
.nav-toggle:hover { background: var(--sur2); }
@media (max-width: 760px) {
  .nav-in { gap: 12px; position: relative; }
  .user-chip .uname, .user-chip .role-tag { display: none; }
  .nav-login { display: none; }
  .logo { font-size: 21px; margin-right: auto; }
  .nav-toggle { display: grid; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 4px; padding: 8px 20px 16px; background: var(--bg); border-bottom: 1px solid var(--bdr); overflow: visible; }
  #site-nav.menu-open .nav-links { display: flex; }
  .nav-links a { height: 44px; padding: 0 12px; font-size: 16px; }
}
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 16px; border-radius: 8px; background: var(--acc); color: #0A0C10; font-weight: 500; transition: top .15s ease; }
.skip-link:focus { top: 12px; }
html { -webkit-tap-highlight-color: transparent; }
a, button, select, input, label, .chip { touch-action: manipulation; }
.modal-bg { overscroll-behavior: contain; }
main { scroll-margin-top: 64px; }

/* ── Demo banner ── */
.demo-banner { background: var(--sur); border-bottom: 1px solid rgba(240,180,90,.35); font-size: 14px; }
.demo-banner .wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 8px; }
.demo-banner strong { color: var(--acc); font-weight: 500; }

/* ── Page header ── */
.page-head { padding-block: 40px 16px; }
.page-head h1 { font-family: var(--ff-d); font-size: clamp(30px, 3.6vw, 40px); font-weight: 500; line-height: 1.1; letter-spacing: -.025em; }
.page-head p { color: var(--fgm); margin-top: 8px; max-width: 60ch; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ── Tabs ── */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg2); border: 1px solid var(--bdr); border-radius: 12px; }
.tab { height: 36px; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--fgm); transition: color .15s ease, background-color .15s ease; }
.tab:hover { color: var(--fg); }
.tab.active { background: var(--sur2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--bdr2); }

/* ── Filters ── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; background: var(--sur); border: 1px solid var(--bdr); border-radius: var(--r); margin-block: 16px; }
.filters > * { flex: 1 1 140px; min-width: 0; }
.filters .grow { flex: 2 1 220px; }
.field, .filters input, .filters select { width: 100%; height: 40px; background: var(--bg2); border: 1px solid var(--bdr2); border-radius: 8px; padding: 0 12px; font-size: 14px; outline: none; transition: border-color .15s ease; }
.field:focus-visible, .filters input:focus-visible, .filters select:focus-visible { border-color: var(--acc); outline: none; box-shadow: 0 0 0 1px var(--acc); }
select option { background: var(--sur); }
textarea.field { height: auto; padding: 8px 12px; resize: vertical; min-height: 88px; }
.label { display: block; font-size: 13px; font-weight: 500; color: var(--fgm); margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--fg); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--acc); width: 16px; height: 16px; flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 16px; border: 1px solid var(--bdr2); background: var(--bg2); font-size: 13px; color: var(--fgm); cursor: pointer; user-select: none; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.chip:hover { color: var(--fg); }
.chip.on { background: var(--accd); border-color: rgba(240,180,90,.5); color: var(--acc); }

/* ── Cards ── */
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; font-size: 14px; color: var(--fgm); font-variant-numeric: tabular-nums; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(296px, 1fr)); gap: 16px; padding-bottom: 64px; }
.card { background: var(--sur); border: 1px solid var(--bdr); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: border-color .15s ease; }
.card:hover { border-color: var(--bdr2); }
.card.is-hidden { opacity: .55; border-style: dashed; }
.card-top { height: 120px; position: relative; display: grid; place-items: center; }
.card-top .pin { position: absolute; top: 12px; left: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.badge, .plate { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 500; background: var(--sur2); border: 1px solid var(--bdr); color: var(--fg); white-space: nowrap; justify-self: start; }
/* Area tags carry the signature: a small lit window. */
.plate::before { content: ""; width: 6px; height: 7px; border-radius: 1px; background: var(--acc); flex-shrink: 0; }
.badge.ok { color: var(--green); border-color: rgba(60,201,138,.35); }
.badge.warn { color: var(--orange); border-color: rgba(224,140,60,.4); }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 16px; font-weight: 500; line-height: 1.35; }
.card-sub { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--fgm); }
.price { font-size: 22px; font-weight: 500; color: var(--acc); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price small { font-size: 13px; color: var(--fgm); font-weight: 400; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 4px; background: var(--bg2); border: 1px solid var(--bdr); color: var(--fgm); }
.card-text { font-size: 14px; color: var(--fgm); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--bdr); display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.poster { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.poster .who { font-weight: 500; }
.contact-box { display: grid; gap: 4px; font-size: 13px; background: rgba(60,201,138,.06); border: 1px solid rgba(60,201,138,.25); border-radius: 8px; padding: 8px 12px; color: var(--fg); word-break: break-word; }
.contact-box span { display: flex; align-items: center; gap: 8px; }
.contact-box .ico { color: var(--green); }
.private-note { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fgm); }
.admin-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 16px; background: rgba(240,180,90,.05); border-top: 1px dashed rgba(240,180,90,.35); }
.admin-bar .lbl { font-size: 13px; font-weight: 500; color: var(--acc); margin-right: 4px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 64px 20px; color: var(--fgm); }
.empty h3 { color: var(--fg); font-size: 18px; font-weight: 500; margin-bottom: 8px; }

/* ── Modal ── */
.modal-bg { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; padding: max(20px, env(safe-area-inset-top, 0px)) 16px 20px; overflow-y: auto; }
.modal { margin: auto; width: 100%; max-width: 520px; background: rgba(20, 24, 36, 0.95); border: 1px solid rgba(240,180,90,0.25); border-radius: 18px; padding: 28px; position: relative; box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 40px rgba(240,180,90,0.1); }
:root[data-theme="light"] .modal { background: #ffffff; border-color: rgba(0, 0, 0, 0.1); box-shadow: 0 32px 80px rgba(0,0,0,0.16), 0 4px 20px rgba(0,0,0,0.06); }
.modal.wide { max-width: 620px; }
.modal h2 { font-family: var(--ff-d); font-size: 24px; letter-spacing: -.02em; font-weight: 500; line-height: 1.15; padding-right: 40px; }
.modal .lead { color: var(--fgm); font-size: 14px; margin: 8px 0 20px; }
.modal-x { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 8px; color: var(--fgm); display: grid; place-items: center; transition: color .15s ease, background-color .15s ease; cursor: pointer; z-index: 10; }
.modal-x:hover { background: var(--sur2); color: var(--fg); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.err { font-size: 14px; color: var(--red); background: rgba(224,82,82,.08); border: 1px solid rgba(224,82,82,.25); border-radius: 8px; padding: 8px 12px; margin-top: 12px; }

/* ── Create Your Brihas Workspace Onboarding Modal (Scoped strictly to .reg-modal) ── */
.modal.reg-modal {
  max-width: 640px;
  padding: 28px 30px;
  border-radius: 16px;
  background: #111520;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
:root[data-theme="light"] .modal.reg-modal {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(15, 23, 42, 0.04);
}
.reg-modal-wrap { position: relative; }
.reg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fgm);
  margin-bottom: 6px;
}
.reg-eyebrow .bmark { width: 15px; height: 15px; }
.reg-modal-header h2 {
  font-family: var(--ff-d);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--fg);
  margin: 0 0 4px;
  padding-right: 36px;
}
.reg-sub {
  color: var(--fgm);
  font-size: 13.5px;
  line-height: 1.45;
  margin: 0 0 18px;
}
.reg-sec { margin-bottom: 16px; }
.reg-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.reg-sec-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--fgm);
  letter-spacing: 0.01em;
}

/* Segmented Role Selector */
.reg-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.reg-type-btn {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid var(--bdr2);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.reg-type-btn:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.045);
}
.reg-type-btn.active {
  border-color: rgba(240, 180, 90, 0.72);
  background: rgba(240, 180, 90, 0.075);
  box-shadow: 0 0 0 1px rgba(240, 180, 90, 0.25);
}
.reg-type-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fgm);
  flex-shrink: 0;
  margin-top: 1px;
  transition: background-color .15s ease, color .15s ease;
}
.reg-type-btn.active .reg-type-ico {
  background: rgba(240, 180, 90, 0.16);
  color: var(--acc);
}
.reg-type-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.25;
}
.reg-type-text span {
  display: block;
  font-size: 12px;
  color: var(--fgm);
  margin-top: 2px;
  line-height: 1.3;
}
.reg-type-check {
  margin-left: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--bdr2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: transparent;
  transition: all .15s ease;
}
.reg-type-btn.active .reg-type-check {
  border-color: var(--acc);
  background: var(--acc);
  color: #111520;
}
:root[data-theme="light"] .reg-type-btn {
  background: #f8fafc;
  border-color: #e2e8f0;
}
:root[data-theme="light"] .reg-type-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
:root[data-theme="light"] .reg-type-btn.active {
  background: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07), 0 0 0 1px #0f172a;
}
:root[data-theme="light"] .reg-type-ico {
  background: #e2e8f0;
  color: #475569;
}
:root[data-theme="light"] .reg-type-btn.active .reg-type-ico {
  background: #0f172a;
  color: #ffffff;
}
:root[data-theme="light"] .reg-type-btn.active .reg-type-check {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}

/* Billing Cycle Micro-Switch */
.reg-seg {
  display: inline-flex;
  padding: 2px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bdr2);
  gap: 2px;
}
.reg-seg-btn {
  height: 25px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fgm);
  cursor: pointer;
  transition: all .15s ease;
}
.reg-seg-btn:hover { color: var(--fg); }
.reg-seg-btn.active {
  background: var(--sur2);
  color: var(--fg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.reg-seg-save {
  color: var(--green);
  font-weight: 600;
  margin-left: 3px;
}
:root[data-theme="light"] .reg-seg {
  background: #f1f5f9;
  border-color: #e2e8f0;
}
:root[data-theme="light"] .reg-seg-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* Plan Cards */
.reg-tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.reg-tier-grid.single { grid-template-columns: 1fr; }
.reg-tier-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--bdr2);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.reg-tier-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.045);
}
.reg-tier-card.active {
  border-color: rgba(240, 180, 90, 0.72);
  background: rgba(240, 180, 90, 0.075);
  box-shadow: 0 0 0 1px rgba(240, 180, 90, 0.25);
}
.reg-tier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.reg-tier-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg);
}
.reg-radio {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--fgd);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: border-color .15s ease;
}
.reg-radio::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acc);
  transform: scale(0);
  transition: transform .15s ease;
}
.reg-tier-card.active .reg-radio { border-color: var(--acc); }
.reg-tier-card.active .reg-radio::after { transform: scale(1); }
.reg-tier-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--fgm);
  white-space: nowrap;
}
.reg-tier-card.active .reg-tier-badge {
  background: rgba(240, 180, 90, 0.16);
  color: var(--acc);
}
.reg-tier-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  padding-left: 23px;
}
.reg-tier-price span {
  font-size: 12px;
  font-weight: 400;
  color: var(--fgm);
  margin-left: 3px;
}
.reg-tier-desc {
  font-size: 12px;
  color: var(--fgm);
  padding-left: 23px;
  line-height: 1.35;
}
:root[data-theme="light"] .reg-tier-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}
:root[data-theme="light"] .reg-tier-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
:root[data-theme="light"] .reg-tier-card.active {
  background: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07), 0 0 0 1px #0f172a;
}
:root[data-theme="light"] .reg-radio { border-color: #94a3b8; }
:root[data-theme="light"] .reg-radio::after { background: #0f172a; }
:root[data-theme="light"] .reg-tier-card.active .reg-radio { border-color: #0f172a; }
:root[data-theme="light"] .reg-tier-badge {
  background: #e2e8f0;
  color: #475569;
}
:root[data-theme="light"] .reg-tier-card.active .reg-tier-badge {
  background: #0f172a;
  color: #ffffff;
}

.reg-soon-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 7px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--bdr2);
  font-size: 12px;
  color: var(--fgm);
  flex-wrap: wrap;
}
:root[data-theme="light"] .reg-soon-strip {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #64748b;
}
.reg-soon-tag {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--fgm);
}
:root[data-theme="light"] .reg-soon-tag {
  background: #e2e8f0;
  color: #475569;
}
.reg-wip-card {
  margin-top: 10px;
  padding: 13px 15px;
  border-radius: 11px;
  border: 1px solid var(--bdr2);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fgm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
:root[data-theme="light"] .reg-wip-card {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

/* Optional Growth Add-On Card (Unforced Opt-In) */
.reg-addon-card {
  border-radius: 12px;
  border: 1px solid var(--bdr2);
  background: rgba(255, 255, 255, 0.025);
  padding: 13px 15px;
  margin-bottom: 14px;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.reg-addon-card.active {
  border-color: rgba(76, 195, 138, 0.6);
  background: rgba(76, 195, 138, 0.07);
  box-shadow: 0 0 0 1px rgba(76, 195, 138, 0.18);
}
:root[data-theme="light"] .reg-addon-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}
:root[data-theme="light"] .reg-addon-card.active {
  background: #f0fdf7;
  border-color: #10b981;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.18);
}
.reg-addon-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.reg-addon-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.reg-addon-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg);
}
.reg-addon-opt-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--fgm);
}
:root[data-theme="light"] .reg-addon-opt-pill {
  background: #e2e8f0;
  color: #475569;
}
.reg-addon-sub {
  font-size: 12px;
  color: var(--fgm);
}
.reg-addon-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--bdr2);
  background: var(--sur);
  color: var(--fg);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all .15s ease;
}
.reg-addon-toggle:hover {
  border-color: var(--fgm);
}
.reg-addon-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.reg-addon-card.active .reg-addon-toggle {
  background: var(--green);
  border-color: var(--green);
  color: #062819;
}
:root[data-theme="light"] .reg-addon-toggle {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}
:root[data-theme="light"] .reg-addon-card.active .reg-addon-toggle {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}
.reg-addon-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--bdr);
}
.reg-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.reg-benefit-ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--fgm);
  flex-shrink: 0;
  margin-top: 1px;
}
.reg-benefit-ico .ico { width: 13px; height: 13px; }
.reg-addon-card.active .reg-benefit-ico {
  background: rgba(76, 195, 138, 0.16);
  color: var(--green);
}
:root[data-theme="light"] .reg-benefit-ico {
  background: #e2e8f0;
  color: #475569;
}
:root[data-theme="light"] .reg-addon-card.active .reg-benefit-ico {
  background: #d1fae5;
  color: #059669;
}
.reg-benefit-item strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.25;
}
.reg-benefit-item span {
  display: block;
  font-size: 11px;
  color: var(--fgm);
  line-height: 1.3;
  margin-top: 2px;
}
.reg-addon-note {
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--fgd);
}
:root[data-theme="light"] .reg-addon-note { color: #64748b; }

/* Billing Mode & Transparent Quote Bar */
.reg-billing-panel {
  border-radius: 11px;
  border: 1px solid var(--bdr2);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 14px;
  margin-bottom: 16px;
}
:root[data-theme="light"] .reg-billing-panel {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.reg-billing-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.reg-mode-pills {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: var(--bg2);
  border: 1px solid var(--bdr);
  gap: 3px;
}
.reg-mode-pill {
  height: 29px;
  padding: 0 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fgm);
  cursor: pointer;
  transition: all .15s ease;
}
.reg-mode-pill.active {
  background: var(--sur2);
  color: var(--fg);
  font-weight: 600;
}
:root[data-theme="light"] .reg-mode-pills {
  background: #e2e8f0;
  border-color: #cbd5e1;
}
:root[data-theme="light"] .reg-mode-pill { color: #475569; }
:root[data-theme="light"] .reg-mode-pill.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.reg-quote-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--bdr);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: var(--fgm);
}
.reg-quote-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.reg-quote-amt {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.reg-quote-sched {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bdr);
  border-radius: 9px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
:root[data-theme="light"] .reg-quote-sched {
  background: #ffffff;
  border-color: #e2e8f0;
}
.reg-quote-sched-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--fgm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.reg-quote-sched-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.reg-sched-chip {
  text-align: left;
  padding: 7px 10px;
  border-radius: 7px;
  border: 1px solid var(--bdr);
  background: transparent;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
  color: var(--fgm);
}
.reg-sched-chip:hover { border-color: var(--fgm); }
.reg-sched-chip.active {
  border-color: rgba(240, 180, 90, 0.65);
  background: rgba(240, 180, 90, 0.08);
  color: var(--fg);
}
:root[data-theme="light"] .reg-sched-chip {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}
:root[data-theme="light"] .reg-sched-chip.active {
  background: #f8fafc;
  border-color: #0f172a;
  color: #0f172a;
  box-shadow: 0 0 0 1px #0f172a;
}
.reg-sched-chip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
}
.reg-sched-chip-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.reg-sched-chip-sub {
  font-size: 10.5px;
  color: var(--fgm);
  margin-top: 1px;
}
@media (max-width: 520px) {
  .reg-quote-sched-grid { grid-template-columns: 1fr; }
}

/* Password Eye Button & Clean Footer */
.reg-pass-wrap { position: relative; }
.reg-pass-wrap .field { padding-right: 42px; }
.reg-pass-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--fgm);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.reg-pass-eye:hover { background: var(--sur2); color: var(--fg); }
.reg-pass-eye .ico { width: 15px; height: 15px; }

.reg-privacy-note {
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border-top: 1px solid var(--bdr);
  padding: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--fgm);
  margin-top: 16px;
}
.reg-privacy-note .lock-ico {
  color: var(--fgd);
  display: inline-flex;
  flex-shrink: 0;
}
.reg-privacy-note .lock-ico .ico { width: 14px; height: 14px; }
.reg-privacy-note a { text-decoration: underline; text-underline-offset: 2px; color: var(--fg); }

@media (max-width: 580px) {
  .modal.reg-modal { padding: 22px 18px; }
  .reg-type-grid, .reg-tier-grid, .reg-addon-benefits { grid-template-columns: 1fr; }
}

/* Modal form inputs styling */
.modal .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.modal .form-grid .full {
  grid-column: 1 / -1;
}
.modal .label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--fgm);
  margin-bottom: 6px;
}
.modal .field {
  width: 100%;
  height: 42px;
  background: rgba(22, 27, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--fg);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
:root[data-theme="light"] .modal .field {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
}
.modal .field:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px rgba(240, 180, 90, 0.25);
}
:root[data-theme="light"] .modal .field:focus {
  border-color: #f0b45a;
  box-shadow: 0 0 0 3px rgba(240, 180, 90, 0.25);
  background: #ffffff;
}
.choice-list { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 16px; border-radius: 12px; border: 1px solid var(--bdr2); background: var(--bg2); transition: border-color .15s ease, background-color .15s ease; }
.choice:hover { border-color: rgba(255,255,255,.22); background: var(--sur2); }
.choice.on { border-color: rgba(240,180,90,.6); background: var(--accd); }
.choice .ico-box { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--sur2); color: var(--acc); flex-shrink: 0; }
.choice .t { font-weight: 500; font-size: 15px; }
.choice .d { font-size: 13px; color: var(--fgm); margin-top: 2px; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.role-grid .choice { flex-direction: column; align-items: flex-start; gap: 8px; }
@media (max-width: 520px) { .role-grid { grid-template-columns: 1fr; } }
.linkish { color: var(--acc); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* ── Toast ── */
#toasts { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 400; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--sur2); border: 1px solid var(--bdr2); border-left: 3px solid var(--blue); border-radius: 8px; padding: 12px 16px; font-size: 14px; max-width: 320px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.toast.ok { border-left-color: var(--green); }
.toast.bad { border-left-color: var(--red); }

/* ── Footer ── */
.site-foot { border-top: 1px solid var(--bdr); background: var(--bg2); padding-block: 40px; font-size: 14px; color: var(--fgm); }
.site-foot .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.site-foot nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.site-foot a { transition: color .15s ease; }
.site-foot a:hover { color: var(--fg); }
