/* MikeroManage — marketing site
   Clean, professional light theme. One accent color, generous whitespace, restrained type. */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --ink: #0e1726;
  --body: #46505e;
  --muted: #6e7785;
  --border: #e6eaf1;
  --border-2: #d6dce6;
  --accent: #2f63e8;
  --accent-dark: #2452c4;
  --accent-soft: #eef3fe;
  --green: #16855f;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 12px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(14, 23, 38, 0.05), 0 8px 24px rgba(14, 23, 38, 0.06);
  --content: 1120px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Sticky footer: on short pages the footer sits at the bottom of the viewport. */
body:not(.dash-body) { display: flex; flex-direction: column; min-height: 100vh; }
body:not(.dash-body) main { flex: 1 0 auto; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(47, 99, 232, 0.18); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }

.wrap { width: min(100% - 3rem, var(--content)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  padding: .55rem .9rem; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600;
  transition: top 150ms ease;
}
.skip-link:focus { top: .75rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: .55rem; }
.site-brand {
  width: 224px;
  max-width: 100%;
  padding: 0;
}
.site-logo {
  width: 224px;
  height: auto;
  object-fit: contain;
  display: block;
  flex: none;
}
.brand-mark {
  width: 1.85rem; height: 1.85rem; border-radius: 7px; display: grid; place-items: center;
  font-weight: 700; font-size: .95rem; color: #fff; background: var(--accent);
}
.brand b { color: var(--ink); font-weight: 650; font-size: 1rem; letter-spacing: -0.01em; }

.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav a { font-size: .92rem; font-weight: 500; color: var(--body); transition: color 130ms; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: .65rem; }
.header-cta .login-link { font-size: .92rem; font-weight: 500; color: var(--body); }
.header-cta .login-link:hover { color: var(--ink); }

.nav-toggle {
  display: none; align-items: center; gap: .45rem;
  padding: .45rem .8rem; border: 1px solid var(--border-2); border-radius: 8px;
  background: #fff; color: var(--ink); font-size: .88rem; font-weight: 500;
}
.nav-toggle .bars { width: .95rem; display: grid; gap: 3.5px; }
.nav-toggle .bars span { height: 1.5px; background: currentColor; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  height: 2.7rem; padding: 0 1.25rem; border-radius: 9px;
  font-weight: 600; font-size: .92rem; border: 1px solid transparent; white-space: nowrap;
  transition: background 140ms, border-color 140ms, color 140ms, box-shadow 140ms;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(36, 82, 196, 0.3); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--border-2); }
.btn-outline:hover { border-color: var(--muted); }
.btn-lg { height: 3rem; padding: 0 1.6rem; font-size: .98rem; }
.btn .ico { width: .95rem; height: .95rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.2rem, 8vh, 5.5rem) 0; }
.section.soft { background: var(--bg-soft); border-block: 1px solid var(--border); }

.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.section-head p { margin: .8rem 0 0; color: var(--body); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3.5rem, 9vh, 6rem) 0 clamp(3rem, 7vh, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.hero-grid > :first-child { padding-top: clamp(2.5rem, 8vh, 5rem); }
.hero h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); letter-spacing: -0.03em; }
.hero .lede { margin: 1.2rem 0 0; font-size: 1.08rem; max-width: 28rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }
.hero .note { margin-top: 1rem; font-size: .85rem; color: var(--muted); }

/* ---------- Commission Affiliate page ---------- */
.earn-hero h1 { max-width: 40rem; }
.earn-hero .hero-grid { align-items: center; }
.earn-hero .hero-grid > :first-child { padding-top: 0; }
.earn-hero .photo {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.earn-hero .photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (max-width: 760px) {
  /* keep copy first on mobile (the global hero rule flips order for the home phone mockup) */
  .earn-hero .hero-grid > :first-child { order: 0; }
}
.earn-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.earn-step { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; }
.earn-step > span { color: var(--accent-dark); font-size: .76rem; font-weight: 650; letter-spacing: .04em; }
.earn-step h3 { margin-top: 1.1rem; font-size: 1.05rem; }
.earn-step p { margin: .5rem 0 0; font-size: .9rem; }
.earn-benefits-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.earn-benefits-grid .section-head { margin-bottom: 0; }
.earn-benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.earn-benefit { display: flex; gap: .9rem; padding: 1.2rem 0; border-top: 1px solid var(--border); }
.earn-icon {
  flex: 0 0 2rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff);
}
.earn-icon .ico { width: 1.05rem; height: 1.05rem; }
.earn-benefit h3 { font-size: 1rem; }
.earn-benefit p { margin: .35rem 0 0; font-size: .88rem; }
.earn-apply-card { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.7rem 1.8rem; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; }
.earn-apply-card h2 { font-size: 1.4rem; }
.earn-apply-card p { max-width: 38rem; margin: .6rem 0 0; font-size: .92rem; }
.earn-apply-card .btn { flex: none; }
html.earn-access-pending .earn-private-content { display: none; }
.earn-gate { display: none; min-height: calc(100vh - 180px); place-items: center; padding: 4rem 1.5rem; background: var(--bg-soft); }
html.earn-access-pending .earn-gate { display: grid; }
.earn-gate-card { width: min(100%, 480px); padding: 2.2rem 2rem; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
.earn-gate-card h1 { font-size: 1.45rem; }
.earn-gate-card > p { margin: .6rem 0 1.5rem; font-size: .92rem; }
.earn-access-form label { display: block; margin-bottom: .45rem; color: var(--ink); font-size: .84rem; font-weight: 650; }
.earn-access-input-row { display: flex; gap: .6rem; }
.earn-access-input-row input { min-width: 0; flex: 1; height: 2.7rem; padding: 0 .8rem; border: 1px solid var(--border-2); border-radius: 9px; font: inherit; }
.earn-access-status { margin: .7rem 0 0; color: #b42318; font-size: .85rem; }

@media (max-width: 800px) {
  .earn-benefits-grid { grid-template-columns: 1fr; }
  .earn-steps { grid-template-columns: repeat(2, 1fr); }
  .earn-apply-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .earn-steps, .earn-benefits { grid-template-columns: 1fr; }
}

/* ---------- Product mockup ---------- */
.stage { display: grid; place-items: center; position: relative; }
.stage::after {
  content: ""; position: absolute; bottom: -26px; left: 50%;
  transform: translateX(-52%);
  width: 62%; height: 30px; border-radius: 50%;
  background: rgba(14, 23, 38, 0.16);
  filter: blur(18px);
}
.phone {
  position: relative;
  width: min(290px, 76vw);
  margin: 0;
  border-radius: 46px; padding: 9px;
  background: #101117;
  border: 1px solid #2a2c36;
  box-shadow: 0 18px 44px rgba(14, 23, 38, 0.16);
  transform: rotate(6deg);
  z-index: 1;
}
/* left side: volume up/down */
.phone::before {
  content: ""; position: absolute; left: -3px; top: 150px;
  width: 3px; height: 30px; border-radius: 3px 0 0 3px;
  background: #383b45;
  box-shadow: 0 44px 0 #383b45;
}
/* right side: power button */
.phone::after {
  content: ""; position: absolute; right: -3px; top: 186px;
  width: 3px; height: 56px; border-radius: 0 3px 3px 0;
  background: #383b45;
}
.phone-screen {
  position: relative;
  border-radius: 38px; overflow: hidden;
  background: #0d1b36;
}
.ph-shot {
  display: block; width: 100%; height: auto;
  margin-top: 34px;
}
/* status bar in the strip above the screenshot; time and icons center in the
   "ears" either side of the Dynamic Island, like iOS */
.ph-status {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  height: 37px; color: #fff;
}
.ph-time {
  width: calc(50% - 39px); text-align: center;
  font-size: .76rem; font-weight: 650; letter-spacing: .015em;
  font-variant-numeric: tabular-nums;
}
.ph-sys { width: calc(50% - 39px); display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.ph-cell { width: 16px; height: 11px; }
.ph-wifi { width: 15px; height: 15px; margin-top: 2px; }
.ph-batt { width: 24px; height: 12px; }
.ph-5g { font-size: .62rem; font-weight: 650; letter-spacing: .01em; }
/* Dynamic Island */
.phone-screen::before {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 21px; border-radius: 999px;
  background: #000; z-index: 3;
}

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.5rem;
}
.card h3 { font-size: 1.05rem; }
.card p { margin: .5rem 0 0; font-size: .9rem; }

.chip {
  width: 2.5rem; height: 2.5rem; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 1rem;
  color: var(--c, var(--accent));
  background: color-mix(in srgb, var(--c, var(--accent)) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 22%, #fff);
}
.chip .ico { width: 1.15rem; height: 1.15rem; }

.m-messages  { --c: #3a55d9; }
.m-studysync { --c: #15805c; }
.m-rushradar { --c: #b35a23; }
.m-party     { --c: #7a3bbd; }
.m-alumni    { --c: #0e7490; }
.m-eventflow { --c: #2563b8; }
.m-sober     { --c: #c2333f; }
.m-ballot    { --c: #4f46b8; }

/* ---------- Feature rows (features page) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.feature-card {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem;
}
.feature-card .chip { width: auto; height: auto; margin: .15rem 0 0; background: none; border: none; color: var(--muted); }
.feature-card .chip .ico { width: 1.3rem; height: 1.3rem; }
.feature-card h3 { font-size: 1.02rem; }
.feature-card .tag { display: block; font-size: .76rem; color: var(--muted); margin-top: .1rem; }
.feature-card p { margin: .5rem 0 0; font-size: .89rem; }

/* ---------- Home: modules showcase ---------- */
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.module-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.3rem 1.3rem 1.4rem;
}
.module-card .chip { width: 2.25rem; height: 2.25rem; margin-bottom: .85rem; }
.module-card h3 { font-size: .98rem; }
.module-card .tag { display: block; font-size: .74rem; color: var(--muted); margin-top: .12rem; }
.module-card p { margin: .55rem 0 0; font-size: .84rem; color: var(--body); }

/* ---------- Home: Q&A ---------- */
.qa { max-width: 46rem; }
.qa > div { padding: 1.35rem 0; border-top: 1px solid var(--border); }
.qa > div:last-child { border-bottom: 1px solid var(--border); }
.qa h3 { font-size: 1.02rem; }
.qa p { margin: .45rem 0 0; font-size: .92rem; color: var(--body); }

/* ---------- Checklist ---------- */
.check-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .75rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; color: var(--body); font-size: .95rem; }
.check-list .ico { width: 1.05rem; height: 1.05rem; color: var(--green); flex: none; margin-top: .2rem; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split .photo {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.split .photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* ---------- Pricing ---------- */
/* interactive plan finder */
.plan-finder {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.4rem;
  align-items: stretch; max-width: 920px; margin: 0 auto;
}
.plan-finder-control {
  display: flex; flex-direction: column; gap: 1.3rem;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.9rem 1.7rem;
}
.plan-finder-readout { display: flex; flex-direction: column; gap: .25rem; }
.pf-label { font-size: .76rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pf-count { font-size: 1rem; color: var(--muted); }
.pf-count b { color: var(--ink); font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; margin-right: .3rem; }

.pf-slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px;
  border-radius: 4px; outline: none; cursor: pointer; margin: .2rem 0 0;
  background: var(--border);
}
.pf-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; border: 3px solid var(--accent); cursor: pointer;
}
.pf-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: 3px solid var(--accent); cursor: pointer;
}
.pf-slider:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.pf-ticks { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: -.4rem; }
.pf-tiers { display: flex; flex-wrap: wrap; gap: .4rem; }
.pf-tiers button {
  border: 1px solid var(--border); background: #fff; color: var(--body);
  border-radius: 8px; padding: .4rem .8rem; font: inherit; font-size: .78rem;
  font-weight: 600; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.pf-tiers button:hover { border-color: var(--accent); color: var(--accent-dark); }
.pf-tiers button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pf-hint { font-size: .8rem; color: var(--muted); margin: 0; }
.pf-hint a { color: var(--accent-dark); font-weight: 600; }

/* refined plan swap: the card holds still, the changing content fades up */
.plan-finder-card [data-pf-range],
.plan-finder-card [data-pf-name],
.plan-finder-card .price-block { will-change: transform, opacity; }

.plan-finder-card.pf-bump [data-pf-range] { animation: pfSwap .34s cubic-bezier(.2, .65, .3, 1) both; }
.plan-finder-card.pf-bump [data-pf-name]  { animation: pfSwap .34s cubic-bezier(.2, .65, .3, 1) .04s both; }
.plan-finder-card.pf-bump .price-block    { animation: pfSwap .34s cubic-bezier(.2, .65, .3, 1) .08s both; }

@keyframes pfSwap {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .plan-finder-card.pf-bump [data-pf-range],
  .plan-finder-card.pf-bump [data-pf-name],
  .plan-finder-card.pf-bump .price-block { animation: none; }
}

.price-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.8rem 1.6rem;
}
.price-card.featured { border: 2px solid var(--accent); }
.price-card h3 { font-size: 1.05rem; }
.price-card .plan-for { font-size: .84rem; color: var(--muted); margin: .25rem 0 0; }
.price { margin: 1.2rem 0 0; color: var(--ink); }
.price b { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; }
.price span { font-size: .85rem; color: var(--muted); }
.price-card .check-list { margin: 1.3rem 0 1.6rem; }
.price-card .check-list li { font-size: .88rem; }
.price-card .btn { margin-top: auto; width: 100%; }

.fine { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 1.6rem; }

/* billing period control */
.billing-toggle {
  display: flex; align-items: center; justify-content: center; gap: .3rem;
  width: max-content; max-width: 100%; margin: 0 auto 2.2rem; padding: .3rem;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px;
}
.billing-toggle button {
  border: 1px solid transparent; border-radius: 7px; padding: .65rem 1rem;
  background: transparent; color: var(--body); font: inherit; font-size: .87rem;
  font-weight: 650; cursor: pointer;
}
.billing-toggle button.active {
  background: #fff; color: var(--ink); border-color: var(--border-2);
}

/* promo banner */
.promo-banner {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  width: max-content; max-width: 100%; margin: 0 auto 2.2rem;
  padding: .6rem 1.15rem; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 28%, #fff);
  color: var(--accent-dark); font-size: .88rem; font-weight: 600;
}
.promo-banner .dot { width: .5rem; height: .5rem; border-radius: 999px; background: var(--accent); flex: none; }

/* Giving-back bar — pinned to the bottom of the viewport */
.impact-bar {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  background: #fff; border-top: 1px solid var(--border);
}
.impact-bar-inner { display: flex; align-items: center; gap: 1.5rem; padding: .85rem 0; }
.impact-bar-copy { flex: 1; min-width: 0; }
.impact-bar-title { margin: 0; color: var(--ink); font-size: .95rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; }
.impact-bar-text { margin: .15rem 0 0; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.impact-bar-actions { display: flex; align-items: center; gap: 1rem; flex: none; }
.impact-dismiss { border: 0; padding: .2rem; background: transparent; color: var(--muted); font: inherit; font-size: .82rem; cursor: pointer; }
.impact-dismiss:hover { color: var(--ink); }
[hidden].impact-bar { display: none; }
body:has(.impact-bar:not([hidden])) { padding-bottom: 5rem; }

/* Giving-back card — in-page on features and pricing */
.impact-card {
  display: flex; align-items: center; gap: 1.5rem;
  margin-top: 2.25rem; padding: 1.35rem 1.5rem;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff;
}
.impact-copy { flex: 1; min-width: 0; }
.impact-copy h2 { margin: 0; color: var(--ink); font-size: 1.1rem; letter-spacing: -.01em; }
.impact-copy p:last-child { margin: .3rem 0 0; max-width: 54rem; color: var(--body); font-size: .88rem; line-height: 1.5; }
.pricing-impact { margin-top: 2rem; }

@media (max-width: 760px) {
  .impact-bar-inner { flex-wrap: wrap; gap: .75rem; padding: .8rem 0; }
  .impact-bar-actions { width: 100%; justify-content: space-between; }
  body:has(.impact-bar:not([hidden])) { padding-bottom: 10rem; }
  .impact-card { align-items: flex-start; flex-wrap: wrap; }
  .impact-copy { min-width: 0; }
}

/* price card internals */
.plan-range {
  display: block; margin-bottom: .9rem;
  font-size: .76rem; font-weight: 650; color: var(--body); letter-spacing: .02em;
}
.price-card.featured .plan-range { color: var(--accent-dark); }

.price-block { margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px solid var(--border); }
.price { margin: 0; color: var(--ink); display: flex; align-items: baseline; gap: .35rem; }
.price b { font-size: 2.3rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price span { font-size: .85rem; color: var(--muted); }

.billing-detail { min-height: 1.2rem; margin: .7rem 0 0; font-size: .84rem; color: var(--muted); }
.setup-fee {
  margin: .85rem 0 0; padding: .7rem .8rem; border-radius: 10px;
  background: var(--bg-soft); color: var(--body); font-size: .8rem;
}
.setup-fee b { color: var(--ink); font-size: .9rem; }
.price-card .includes {
  display: flex; align-items: center; gap: .5rem;
  margin: 1.3rem 0 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--border);
  font-size: .86rem; font-weight: 500; color: var(--body);
}
.price-card .includes .ico { width: 1rem; height: 1rem; color: var(--green); flex: none; }
.price-card .includes + .includes { margin-top: -1.1rem; padding-top: 0; border-top: 0; }

.enterprise-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  margin-top: 1.1rem; padding: 1.5rem 1.7rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
}
.enterprise-strip h3 { font-size: 1.02rem; }
.enterprise-strip p { margin: .45rem 0 0; font-size: .88rem; }
.enterprise-strip .btn { flex: none; }

/* contact strip (200+ / councils) */
.contact-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1.1rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden;
}
.contact-cell { display: flex; flex-direction: column; padding: 1.7rem 1.8rem; }
.contact-cell + .contact-cell { border-left: 1px solid var(--border); }
.contact-cell h3 { font-size: 1.02rem; }
.contact-cell p { margin: .5rem 0 0; font-size: .89rem; max-width: 34rem; }
.contact-cell p a, .qa p a { color: var(--accent-dark); }
.contact-cell p a:hover, .qa p a:hover { text-decoration: underline; }
.contact-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--border);
}
.contact-foot .label { font-size: 1.05rem; font-weight: 650; color: var(--ink); letter-spacing: -0.01em; }

/* everything-included panel */
.included {
  display: grid; grid-template-columns: .85fr 1.5fr; gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 1.1rem;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.9rem 1.8rem;
}
.included h3 { font-size: 1.1rem; }
.included .included-note { margin: .6rem 0 0; font-size: .89rem; }
.included-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.6rem;
  align-content: center;
}
.included-grid li { display: flex; gap: .55rem; align-items: flex-start; font-size: .89rem; color: var(--body); }
.included-grid .ico { width: 1rem; height: 1rem; color: var(--green); flex: none; margin-top: .25rem; }

@media (max-width: 760px) {
  .plan-finder { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 920px) {
  .price-grid { grid-template-columns: 1fr 1fr; }
  .price-grid .price-card,
  .price-grid .price-card:nth-child(4),
  .price-grid .price-card:nth-child(5) { grid-column: auto; }
  .contact-strip { grid-template-columns: 1fr; }
  .contact-cell + .contact-cell { border-left: none; border-top: 1px solid var(--border); }
  .included { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .price-grid { grid-template-columns: 1fr; }
  .billing-toggle button { padding: .6rem .75rem; }
  .enterprise-strip { flex-direction: column; align-items: flex-start; }
  .included-grid { grid-template-columns: 1fr; }
  .contact-foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- Auth pages (login / get started) ---------- */
.auth-body { background: var(--bg-soft); min-height: 100vh; display: flex; flex-direction: column; }
.auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.2rem 1.5rem 2.5rem;
}
.login-hero-logo {
  width: min(620px, 64vw);
  height: auto;
  margin: .35rem auto 1.65rem;
  display: block;
  transform: translateX(-36px);
}
.auth-card {
  width: min(100%, 420px);
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 2.2rem 2rem;
}
.auth-card.wide { width: min(100%, 520px); }
.auth-step-badge {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 16px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, #fff);
}
.auth-step-badge .ico { width: 1.45rem; height: 1.45rem; }
.auth-card h1 { font-size: 1.45rem; }
.auth-card .auth-sub { margin: .5rem 0 0; font-size: .92rem; color: var(--body); }

.field { margin-top: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.field input, .field select {
  width: 100%; height: 2.8rem; padding: 0 .9rem;
  border: 1px solid var(--border-2); border-radius: 9px;
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
  transition: border-color 130ms, box-shadow 130ms;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 99, 232, 0.14);
}
.field textarea {
  width: 100%; min-height: 8rem; padding: .75rem .9rem; resize: vertical;
  border: 1px solid var(--border-2); border-radius: 9px;
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
  transition: border-color 130ms, box-shadow 130ms;
}
.field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 99, 232, 0.14);
}
.field .hint { font-size: .78rem; color: var(--muted); margin-top: .35rem; }

.auth-card .btn { width: 100%; margin-top: 1.5rem; }
.auth-card.orientation-card { width: min(100%, 620px); }
.auth-card.orientation-card.is-wide { width: min(100%, 940px); }
.orientation-slot {
  display: grid; place-items: center; aspect-ratio: 16 / 9; margin-top: 1.1rem;
  border: 1px solid var(--border); border-radius: 9px; background: var(--bg-soft);
  color: var(--muted); font-size: .85rem;
}
.orientation-slot video { width: 100%; height: 100%; border-radius: 9px; }
.secure-embed {
  overflow: hidden;
  margin-top: 1.1rem;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  background: #fff;
}
.secure-embed-bar {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .55rem .85rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.secure-embed-host {
  display: flex; align-items: center; gap: .45rem; min-width: 0;
  color: var(--body); font-size: .8rem; font-weight: 600;
}
.secure-embed-host svg { width: .95rem; height: .95rem; flex: 0 0 auto; color: var(--green); }
.secure-embed-host span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secure-embed-open {
  flex: 0 0 auto; padding: 0; border: 0; background: none;
  color: var(--accent); font: inherit; font-size: .8rem; font-weight: 600;
}
.secure-embed-open:hover { color: var(--accent-dark); text-decoration: underline; }
.secure-embed-open[hidden] { display: none; }
.secure-embed-body { position: relative; background: #fff; }
.secure-embed-frame {
  display: block; width: 100%; height: min(46rem, calc(100vh - 20rem)); min-height: 30rem;
  border: 0; background: #fff;
}
.secure-embed-status {
  position: absolute; inset: 0;
  display: grid; align-content: center; justify-items: center; gap: .85rem;
  padding: 1.75rem; background: #fff;
  color: var(--muted); font-size: .88rem; text-align: center;
}
.secure-embed-status[hidden] { display: none; }
.secure-embed-status p { margin: 0; max-width: 26rem; line-height: 1.5; }
.secure-embed-status.is-blocked { color: var(--body); }
.secure-embed-status.is-blocked .secure-embed-spinner { display: none; }
.auth-card .secure-embed-status-action { width: auto; min-width: 11rem; margin-top: 0; }
.auth-card .secure-embed-status-action[hidden] { display: none; }
.secure-embed-spinner {
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  border: 2px solid var(--border-2); border-top-color: var(--accent);
  animation: secure-embed-spin 700ms linear infinite;
}
@keyframes secure-embed-spin { to { transform: rotate(360deg); } }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.check-row { display: flex; align-items: flex-start; gap: .6rem; margin-top: 1.2rem; color: var(--body); font-size: .85rem; line-height: 1.45; }
.check-row input { margin-top: .25rem; accent-color: var(--accent); }
.check-row.boxed {
  padding: .85rem .95rem; border: 1px solid var(--border-2); border-radius: 11px;
  background: var(--bg-soft); color: var(--ink); font-weight: 600; cursor: pointer;
}
.check-row.boxed:hover { border-color: var(--accent); }
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}
.auth-card .btn-resend { margin-top: .65rem; }
.request-stepper {
  display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.6rem; padding-bottom: .85rem;
  border-bottom: 1px solid var(--border); color: var(--muted); font-size: .84rem; font-weight: 600;
}
.request-stepper span { white-space: nowrap; }
.request-stepper b { margin-right: .2rem; color: inherit; }
.request-stepper span[aria-current="step"] { color: var(--accent-dark); }
.request-stepper span.is-done { color: var(--green); }
.request-stage { margin-top: 1.7rem; }
.request-stage h2 { font-size: 1.1rem; }
.request-stage > p { margin: .4rem 0 0; color: var(--body); font-size: .88rem; }
.field-hint { margin: .35rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.request-actions { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.6rem; }
.auth-card .request-actions .btn { width: auto; min-width: 7.5rem; margin-top: 0; }
.auth-card .request-actions .btn-primary { margin-left: auto; }
.auth-card .request-actions .btn[hidden] { display: none; }
.request-actions[hidden] { display: none; }

.affiliate-admin-row { margin: .9rem 0 0; font-size: .88rem; }
.section-head .form-error { max-width: 32rem; }

.onboarding-done { margin-top: 1.8rem; text-align: center; animation: onboarding-done-in 300ms ease-out both; }
.onboarding-done .auth-step-badge {
  margin-inline: auto;
  color: var(--green);
  background: #e9f8f1;
  border-color: #b8e3cf;
}
.onboarding-done .onboarding-done-check {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: onboarding-done-check 420ms 140ms ease-out forwards;
}
.onboarding-done > p { margin: 0; color: var(--body); font-size: .9rem; }
@keyframes onboarding-done-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes onboarding-done-check {
  to { stroke-dashoffset: 0; }
}
.auth-legal {
  margin: .85rem 0 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
  text-align: center;
}
.auth-legal-link {
  padding: 0;
  border: 0;
  color: var(--accent);
  background: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.auth-legal-link:hover { color: var(--accent-dark); text-decoration: underline; }
.auth-foot { margin-top: 1.4rem; text-align: center; font-size: .88rem; color: var(--muted); }
.auth-foot a { color: var(--accent); font-weight: 600; }
.auth-action-link {
  padding: 0;
  border: 0;
  color: var(--accent);
  background: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.auth-action-link:hover { color: var(--accent-dark); text-decoration: underline; }
.auth-foot-stack { display: grid; gap: .45rem; }
.about-lead-copy { margin-top: 1rem; }
.about-actions { display: flex; gap: .75rem; margin-top: 1.8rem; }
.is-invisible { visibility: hidden; }
.study-retry { margin-top: .7rem; }

[data-width="0"] { width: 0%; }
[data-width="5"] { width: 5%; }
[data-width="10"] { width: 10%; }
[data-width="15"] { width: 15%; }
[data-width="20"] { width: 20%; }
[data-width="25"] { width: 25%; }
[data-width="30"] { width: 30%; }
[data-width="35"] { width: 35%; }
[data-width="40"] { width: 40%; }
[data-width="45"] { width: 45%; }
[data-width="50"] { width: 50%; }
[data-width="55"] { width: 55%; }
[data-width="60"] { width: 60%; }
[data-width="65"] { width: 65%; }
[data-width="70"] { width: 70%; }
[data-width="75"] { width: 75%; }
[data-width="80"] { width: 80%; }
[data-width="85"] { width: 85%; }
[data-width="90"] { width: 90%; }
[data-width="95"] { width: 95%; }
[data-width="100"] { width: 100%; }

[data-pf-fill="0"] { --pf-fill: 0%; }
[data-pf-fill="5"] { --pf-fill: 5%; }
[data-pf-fill="10"] { --pf-fill: 10%; }
[data-pf-fill="15"] { --pf-fill: 15%; }
[data-pf-fill="20"] { --pf-fill: 20%; }
[data-pf-fill="25"] { --pf-fill: 25%; }
[data-pf-fill="30"] { --pf-fill: 30%; }
[data-pf-fill="35"] { --pf-fill: 35%; }
[data-pf-fill="40"] { --pf-fill: 40%; }
[data-pf-fill="45"] { --pf-fill: 45%; }
[data-pf-fill="50"] { --pf-fill: 50%; }
[data-pf-fill="55"] { --pf-fill: 55%; }
[data-pf-fill="60"] { --pf-fill: 60%; }
[data-pf-fill="65"] { --pf-fill: 65%; }
[data-pf-fill="70"] { --pf-fill: 70%; }
[data-pf-fill="75"] { --pf-fill: 75%; }
[data-pf-fill="80"] { --pf-fill: 80%; }
[data-pf-fill="85"] { --pf-fill: 85%; }
[data-pf-fill="90"] { --pf-fill: 90%; }
[data-pf-fill="95"] { --pf-fill: 95%; }
[data-pf-fill="100"] { --pf-fill: 100%; }

[data-animation-delay="0"] { animation-delay: 0ms; }
[data-animation-delay="45"] { animation-delay: 45ms; }
[data-animation-delay="90"] { animation-delay: 90ms; }
[data-animation-delay="135"] { animation-delay: 135ms; }
[data-animation-delay="180"] { animation-delay: 180ms; }
[data-animation-delay="225"] { animation-delay: 225ms; }
[data-animation-delay="270"] { animation-delay: 270ms; }
[data-animation-delay="315"] { animation-delay: 315ms; }
[data-animation-delay="360"] { animation-delay: 360ms; }
[data-animation-delay="405"] { animation-delay: 405ms; }
[data-animation-delay="450"] { animation-delay: 450ms; }
[data-animation-delay="495"] { animation-delay: 495ms; }
[data-animation-delay="540"] { animation-delay: 540ms; }

.terms-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 160ms ease;
}
.terms-modal-overlay[hidden] { display: none; }
.terms-modal-overlay.is-open { opacity: 1; }
.terms-modal {
  width: min(960px, 100%);
  height: min(760px, 88vh);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
  transform: translateY(10px) scale(.985);
  transition: transform 160ms ease;
}
.terms-modal-overlay.is-open .terms-modal { transform: none; }
.terms-modal-head {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem 1rem 1.35rem;
  border-bottom: 1px solid var(--border);
}
.terms-kicker {
  margin: 0 0 .15rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.terms-modal h2 { margin: 0; font-size: 1.15rem; }
.terms-modal-close {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.terms-modal-close:hover { background: var(--bg-soft); }
.terms-frame {
  width: 100%;
  height: calc(100% - 74px);
  border: 0;
  background: #fff;
}

.auth-brandbar { padding: 1.4rem 0; }
.auth-brandbar .wrap { display: flex; justify-content: space-between; align-items: center; }
.auth-brandbar .auth-brandbar-simple { justify-content: flex-start; }
.auth-brandbar .back { font-size: .88rem; color: var(--muted); }
.auth-brandbar .back:hover { color: var(--ink); }

/* steps (get started) */
.steps { counter-reset: s; display: grid; gap: 1rem; margin-top: 1.6rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.step::before {
  counter-increment: s; content: counter(s);
  width: 1.7rem; height: 1.7rem; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-size: .82rem; font-weight: 700;
}
.step b { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; }
.step span { font-size: .86rem; color: var(--body); }
.steps.steps-row { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 0; }

/* ---------- Auth form errors ---------- */
.form-error {
  margin-top: 1.1rem;
  padding: .65rem .9rem; border-radius: 9px;
  background: #fdecec; border: 1px solid #f3b9b9;
  color: #a32626; font-size: .88rem; font-weight: 500;
}
.form-error.auth-ban {
  background: #fff1ef;
  border-color: #efb0aa;
  color: #8e1818;
  font-weight: 700;
}
.form-success {
  margin-top: 1.1rem;
  padding: .65rem .9rem;
  border-radius: 9px;
  background: #e9f8f1;
  border: 1px solid #b8e3cf;
  color: #116044;
  font-size: .88rem;
  font-weight: 600;
}
.btn-resend { width: 100%; margin-top: .6rem; }

/* ---------- Dashboard ---------- */
.dash-body { background: var(--bg-soft); min-height: 100vh; }
.dash-main { padding: 2.2rem 0 3.5rem; }

.dash-user { display: flex; align-items: center; gap: .7rem; }
.dash-org { font-size: .88rem; font-weight: 600; color: var(--ink); }

.btn-sm { height: 2.15rem; padding: 0 .85rem; font-size: .84rem; }

.dash-banner {
  margin-bottom: 1.4rem;
  padding: .75rem 1rem; border-radius: var(--r);
  background: #fff7e8; border: 1px solid #efd9a8;
  color: #8a6116; font-size: .9rem; font-weight: 500;
}

.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.dash-head h1 { font-size: 1.6rem; }
.dash-sub { margin: .35rem 0 0; font-size: .92rem; color: var(--body); }
.dash-search {
  height: 2.6rem; width: min(100%, 280px); padding: 0 .9rem;
  border: 1px solid var(--border-2); border-radius: 9px;
  font: inherit; font-size: .92rem; color: var(--ink); background: #fff;
}
.dash-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 99, 232, 0.14); }

.dash-stats { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.dash-stats .stat {
  flex: 1; min-width: 130px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r);
  padding: .9rem 1.2rem;
}
.dash-stats b { display: block; font-size: 1.45rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.dash-stats span { font-size: .8rem; color: var(--muted); }

.dash-notice {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem; border-radius: var(--r);
  background: #fff; border: 1px solid var(--border);
  color: var(--body); font-size: .92rem;
}
.toolbar-right { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

.dash-list { margin-top: 1.5rem; display: grid; gap: .7rem; }

.member-row {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r);
  padding: .95rem 1.2rem;
}
.member-inactive { opacity: .72; }
.member-top { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.member-id { flex: 1; min-width: 180px; }
.member-id b { display: block; color: var(--ink); font-weight: 600; font-size: .96rem; }
.member-meta { font-size: .8rem; color: var(--muted); }
.member-badges { display: flex; gap: .4rem; }
.member-actions { display: flex; align-items: center; gap: 1rem; }

.badge {
  display: inline-block; padding: .14rem .55rem; border-radius: 999px;
  font-size: .72rem; font-weight: 650; letter-spacing: .02em; text-transform: lowercase;
}
.badge-role { background: var(--bg-soft); border: 1px solid var(--border-2); color: var(--body); }
.badge-admin { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 28%, #fff); color: var(--accent-dark); }
.badge-inactive { background: #fdecec; border: 1px solid #f3b9b9; color: #a32626; }

.member-panel {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
}
.member-panel[hidden] { display: none; }
.perm-group h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: .7rem; }
.perm-group { display: flex; flex-direction: column; gap: .55rem; }
.perm-note { margin: 0; font-size: .8rem; color: var(--muted); }

/* toggle switch */
.switch { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  width: 2.15rem; height: 1.25rem; border-radius: 999px; flex: none;
  background: var(--border-2); position: relative; transition: background 140ms;
}
.switch-track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: calc(1.25rem - 4px); height: calc(1.25rem - 4px); border-radius: 999px;
  background: #fff; box-shadow: 0 1px 2px rgba(14, 23, 38, 0.25);
  transition: transform 140ms;
}
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(.9rem); }
.switch input:disabled + .switch-track { opacity: .55; }
.switch input:disabled ~ .switch-label { color: var(--muted); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch-label { font-size: .88rem; font-weight: 500; color: var(--body); }

.toast {
  position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 200;
  padding: .65rem 1.1rem; border-radius: 9px;
  background: var(--ink); color: #fff; font-size: .88rem; font-weight: 500;
  box-shadow: var(--shadow); max-width: min(92vw, 460px);
}
.toast-error { background: #a32626; }

@media (max-width: 680px) {
  .member-panel { grid-template-columns: 1fr; }
  .member-actions { width: 100%; justify-content: space-between; }
  .dash-org { display: none; }
}

@media (max-width: 600px) {
  .dash-sidebar { position: sticky; display: flex; flex-wrap: wrap; gap: .55rem .7rem; padding: .65rem .75rem; }
  .dash-body .dashboard-brand { width: 118px; }
  .dash-body .dashboard-logo { width: 118px; max-height: 36px; }
  .dash-sidebar .side-nav { order: 3; flex: 0 0 100%; width: 100%; padding-bottom: .1rem; }
  .dash-sidebar .side-foot { margin-left: auto; gap: .4rem; }
  .dash-sidebar .side-foot .btn { height: 2.25rem; padding-inline: .7rem; font-size: .78rem; }
  .dash-content { padding: 1rem .8rem 2rem; }
  .dash-topbar { align-items: flex-start; margin-bottom: 1rem; }
  .dash-topbar h1 { font-size: 1.3rem; }
  .topbar-actions, .topbar-actions .btn { width: 100%; }
  .view-toolbar { align-items: stretch; }
  .toolbar-left, .toolbar-right, .rush-actions { width: 100%; }
  .toolbar-right .btn, .rush-actions .btn { flex: 1; }
  .dash-search { width: 100%; min-width: 0; }
  .card-grid, .ov-cols, .support-choice-grid { grid-template-columns: 1fr; }
  .panel-card { padding: 1rem; }
  .calendar { overflow-x: auto; }
  .cal-grid { min-width: 520px; }
  .modal-card { width: calc(100vw - 1.2rem); max-height: 92vh; padding: 1rem; }
  .modal-form .field-row { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .member-row, .member-panel { grid-template-columns: 1fr; }
  .member-actions { justify-content: stretch; width: 100%; }
  .member-actions .btn { flex: 1; }
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; padding: clamp(2.8rem, 7vh, 4.5rem) 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-band p { margin: .5rem 0 0; color: #b9c1cf; font-size: .95rem; max-width: 34rem; }
.cta-band .btn-primary { box-shadow: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2.2rem 0; background: #fff; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: .88rem; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.site-footer .copy { font-size: .82rem; color: var(--muted); }

/* ---------- About ---------- */
.about-vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.2rem; }

/* ---------- Dashboard app shell (sidebar) ---------- */
.dash-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

.dash-sidebar {
  position: sticky; top: 0; height: 100vh; z-index: 40;
  display: flex; flex-direction: column; gap: 1.6rem;
  padding: 1.3rem 1rem 1.2rem;
  background: #fff; border-right: 1px solid var(--border);
}
.dash-sidebar .brand { padding: 0 .45rem; }

.side-nav { display: flex; flex-direction: column; gap: .3rem; }
.side-link {
  display: flex; align-items: center; gap: .7rem;
  padding: .66rem .8rem; border: none; background: none; border-radius: 10px;
  font-size: .93rem; font-weight: 550; color: var(--body); text-align: left;
  position: relative; transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.side-link .ico { width: 1.1rem; height: 1.1rem; flex: none; transition: transform 200ms ease; }
.side-link:hover { background: var(--bg-soft); color: var(--ink); }
.side-link:hover .ico { transform: translateY(-1px) scale(1.06); }
.side-link:active { transform: scale(.985); }
.side-link.is-active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 650; }
.side-link.is-active::before {
  content: ""; position: absolute; left: -1rem; top: 22%; bottom: 22%; width: 3px;
  border-radius: 999px; background: var(--accent);
  animation: sideDot 240ms ease both;
}
@keyframes sideDot { from { transform: scaleY(.2); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: .7rem; padding: 0 .45rem; }
.side-user { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.side-user b { font-size: .88rem; color: var(--ink); word-break: break-all; }

.dash-content {
  padding: 1.8rem clamp(1.2rem, 3.5vw, 2.6rem) 3.5rem;
  min-width: 0; width: 100%; max-width: 1180px; justify-self: center;
}

.dash-topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.dash-topbar h1 { font-size: 1.55rem; }

/* view transitions */
.view.view-in { animation: viewIn 320ms cubic-bezier(.22,.61,.36,1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.card-in { animation: cardIn 360ms cubic-bezier(.22,.61,.36,1) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.card-out { animation: cardOut 200ms ease both; }
@keyframes cardOut { to { opacity: 0; transform: translateY(6px) scale(.97); } }

/* loading skeletons */
.skel {
  height: 92px; border-radius: var(--r);
  background: linear-gradient(100deg, #fff 40%, #eef1f7 50%, #fff 60%);
  background-size: 200% 100%;
  border: 1px solid var(--border);
  animation: skel 1.2s ease-in-out infinite, cardIn 300ms ease both;
}
@keyframes skel { from { background-position: 120% 0; } to { background-position: -80% 0; } }

/* toolbar + chips */
.view-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.view-toolbar .dash-stats { margin-top: 0; flex: 1; }
.toolbar-left { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }

/* segmented toggle */
.seg-toggle {
  display: inline-flex; padding: .22rem; gap: .15rem;
  background: #fff; border: 1px solid var(--border-2); border-radius: 10px;
}
.seg-toggle button {
  border: none; background: none; padding: .35rem .85rem; border-radius: 7px;
  font-size: .85rem; font-weight: 600; color: var(--muted);
  transition: background 150ms ease, color 150ms ease;
}
.seg-toggle button:hover { color: var(--ink); }
.seg-toggle button.is-on { background: var(--accent); color: #fff; }

/* calendar */
.cal-nav { display: flex; align-items: center; gap: .45rem; }
.cal-nav b { font-size: .95rem; color: var(--ink); min-width: 9.5ch; text-align: center; }
.cal-arrow {
  width: 2rem; height: 2rem; border-radius: 8px; border: 1px solid var(--border-2);
  background: #fff; color: var(--body); font-size: 1.15rem; line-height: 1;
  transition: all 140ms ease;
}
.cal-arrow:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }

.calendar { padding: .9rem; overflow: hidden; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-head { margin-bottom: .35rem; }
.cal-dow { text-align: center; font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .25rem 0; }
.cal-body { gap: 3px; }
.cal-cell {
  min-height: 96px; padding: .4rem .45rem;
  background: var(--bg-soft); border-radius: 9px;
  display: flex; flex-direction: column; gap: .22rem;
  transition: background 140ms ease, box-shadow 140ms ease;
  overflow: hidden;
}
.cal-clickable { cursor: pointer; }
.cal-clickable:hover { background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, #fff); }
.cal-off { background: transparent; }
.cal-off .cal-daynum { color: var(--border-2); }
.cal-daynum { font-size: .76rem; font-weight: 650; color: var(--body); }
.cal-today { box-shadow: inset 0 0 0 2px var(--accent); background: #fff; }
.cal-today .cal-daynum {
  color: #fff; background: var(--accent);
  width: 1.35rem; height: 1.35rem; border-radius: 999px;
  display: inline-grid; place-items: center;
}
.cal-pill {
  display: block; width: 100%; text-align: left; border: none;
  padding: .18rem .45rem; border-radius: 6px;
  font-size: .72rem; font-weight: 600; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: transform 130ms ease, filter 130ms ease;
}
.cal-pill:hover { transform: translateY(-1px); filter: brightness(.96); }
.cal-more {
  border: none; background: none; padding: 0 .45rem; text-align: left;
  font-size: .7rem; font-weight: 650; color: var(--accent);
}
.cal-more:hover { color: var(--accent-dark); }

/* event type tints (calendar pills + badges) */
.et-chapter { background: var(--accent-soft); color: var(--accent-dark); }
.et-party { background: #fdeef7; color: #b0307e; }
.et-formal { background: #eef0fe; color: #3c46b8; }
.et-network { background: #e8f7f4; color: #0f7b66; }
.et-brother { background: #fff3e6; color: #a05c10; }
.et-other { background: #eef1f5; color: #46505e; }

.ov-row-btn { width: 100%; border: none; font: inherit; text-align: left; cursor: pointer; transition: background 140ms ease; }
.ov-row-btn:hover { background: var(--accent-soft); }
.event-detail { display: flex; flex-direction: column; gap: .55rem; }

/* location handoff to the iOS app */
.loc-status { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.badge-pending {
  background: #fff7e8; border: 1px solid #efd9a8; color: #8a6116; text-transform: none;
  animation: pendingPulse 2.2s ease-in-out infinite;
}
@keyframes pendingPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 217, 168, 0); } 50% { box-shadow: 0 0 0 4px rgba(239, 217, 168, .45); } }
.badge-warn { background: #fdecec; border: 1px solid #f3b9b9; color: #a32626; text-transform: none; }
.handoff-note {
  margin: -.3rem 0 0; padding: .6rem .75rem; border-radius: 9px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff);
  color: var(--accent-dark); font-size: .82rem; line-height: 1.5;
  animation: cardIn 240ms ease both;
}

/* step wizard (new event) */
.wiz-progress { display: flex; align-items: center; gap: .8rem; margin-bottom: .4rem; }
.wiz-track { flex: 1; height: 5px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.wiz-fill {
  height: 100%; border-radius: inherit; background: var(--accent);
  transition: width 320ms cubic-bezier(.22,.61,.36,1);
}
.wiz-count { font-size: .76rem; font-weight: 650; color: var(--muted); white-space: nowrap; }
.wiz-heading { font-size: 1.05rem; color: var(--ink); margin: 0; }
.wiz-stage { min-height: 120px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.wiz-step { display: flex; flex-direction: column; gap: .9rem; animation: wizFwd 260ms cubic-bezier(.22,.61,.36,1) both; }
.wiz-step.wiz-from-left { animation-name: wizBack; }
@keyframes wizFwd { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes wizBack { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.wiz-foot { display: flex; justify-content: space-between; gap: .7rem; margin-top: .2rem; }
.wiz-foot .btn { min-width: 7.5rem; }
.chip-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.filter-chip {
  padding: .34rem .8rem; border-radius: 999px; border: 1px solid var(--border-2);
  background: #fff; font-size: .82rem; font-weight: 550; color: var(--body);
  transition: all 150ms ease;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.filter-chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* panels and cards */
.panel-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.2rem 1.3rem; margin-bottom: 1.2rem;
}

.usage-table { width: 100%; border-collapse: collapse; }
.usage-table th, .usage-table td { padding: .75rem .65rem; border-bottom: 1px solid var(--line, #e5e7eb); text-align: left; }
.usage-table th { color: var(--muted, #667085); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.usage-table .num { text-align: right; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.panel-head h3 { font-size: 1.02rem; }
.panel-note { font-size: .82rem; color: var(--muted); }

/* billing */
.billing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.billing-waived { grid-column: 1 / -1; padding: 1.25rem 0 1.75rem; }
.billing-waived-title { margin: 0; font-size: clamp(1.9rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; color: var(--ink); }
.billing-waived-em { color: var(--green); }
.billing-waived-copy { margin: .95rem 0 0; max-width: 620px; font-size: clamp(1rem, 1.7vw, 1.18rem); line-height: 1.55; color: var(--muted); }
.billing-stat { padding: .8rem 1.05rem; background: #fff; border: 1px solid var(--border); border-radius: var(--r); }
.billing-value { display: block; font-size: 1.25rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.billing-label { display: block; font-size: .78rem; color: var(--muted); }
.billing-meta { display: block; margin-top: .2rem; font-size: .78rem; color: var(--muted); }
.billing-stat-good .billing-value { color: var(--green); }
.billing-stat-warn .billing-value { color: #8a6116; }
.billing-actions-card { margin-bottom: 1.2rem; }
.billing-actions { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; }
.billing-cancel-note { color: #8a6116; font-size: .84rem; }
.chapter-payments-card { max-width: 860px; }
.chapter-payments-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin: 1rem 0 1.1rem; }
.chapter-payments-next-card { max-width: 860px; }
.chapter-payments-embed { margin-top: 1rem; min-height: 420px; border-top: 1px solid var(--border); padding-top: 1rem; }
.chapter-setup-checklist { display: grid; gap: .55rem; margin: 1rem 0; padding: 0; list-style: none; }
.chapter-setup-checklist li { position: relative; padding: .7rem .75rem .7rem 2.3rem; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-soft); }
.chapter-setup-checklist li::before { content: "✓"; position: absolute; left: .8rem; top: .7rem; display: grid; width: 1.05rem; height: 1.05rem; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-size: .7rem; font-weight: 800; }
.chapter-setup-checklist strong, .chapter-setup-checklist span { display: block; }
.chapter-setup-checklist strong { color: var(--ink); font-size: .87rem; }
.chapter-setup-checklist span { margin-top: .15rem; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.chapter-setup-confirmation { display: flex; gap: .65rem; align-items: flex-start; padding: .8rem; border: 1px solid var(--border-2); border-radius: 11px; color: var(--body); font-size: .85rem; font-weight: 600; line-height: 1.45; cursor: pointer; }
.chapter-setup-confirmation input { width: 1.05rem; height: 1.05rem; margin-top: .1rem; accent-color: var(--accent); flex: 0 0 auto; }
.chapter-setup-actions { display: flex; justify-content: flex-end; margin-top: 1rem; }
.chapter-entity-options { display: grid; gap: .7rem; margin: 0 0 1rem; }
.chapter-entity-option { width: 100%; padding: 1rem; text-align: left; border: 1px solid var(--border-2); border-radius: 14px; background: #fff; color: var(--body); cursor: pointer; font: inherit; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.chapter-entity-option:hover { border-color: var(--accent); box-shadow: 0 5px 18px rgba(47, 99, 232, .1); transform: translateY(-1px); }
.chapter-entity-option:focus-visible { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.chapter-entity-option.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.chapter-entity-option:disabled { cursor: wait; opacity: .65; transform: none; }
.chapter-entity-option strong, .chapter-entity-option span, .chapter-entity-option small { display: block; }
.chapter-entity-option strong { margin-bottom: .25rem; color: var(--ink); font-size: .98rem; }
.chapter-entity-option span { line-height: 1.45; font-size: .88rem; }
.chapter-entity-option small { margin-top: .35rem; color: var(--muted); line-height: 1.4; }
.chapter-entity-note { margin: 0; padding: .75rem .85rem; border-radius: 10px; background: #fff8e8; color: #745116; font-size: .82rem; line-height: 1.45; }
.billing-invoices { display: flex; flex-direction: column; gap: .45rem; }
.billing-invoice { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem; padding: .7rem .8rem; border-radius: 10px; background: var(--bg-soft); }
.billing-invoice b { display: block; font-size: .88rem; }
.billing-invoice-meta { display: block; margin-top: .15rem; color: var(--muted); font-size: .76rem; text-transform: capitalize; }
.billing-invoice strong { font-size: .9rem; }
@media (max-width: 620px) { .billing-invoice { grid-template-columns: 1fr auto; } .billing-invoice .btn { grid-column: 1 / -1; width: 100%; } }
.link-btn { border: none; background: none; padding: 0; font-size: .85rem; font-weight: 600; color: var(--accent); }
.link-btn:hover { color: var(--accent-dark); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: .9rem; align-items: start; }
@media (min-width: 601px) { .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); align-items: stretch; } }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.15rem 1.2rem; }
.info-card h3 { margin: 0; font-size: 1rem; }
.info-card p { margin: .55rem 0 0; color: var(--body); font-size: .88rem; line-height: 1.55; }
.section-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.35rem; }
.why-paid { margin-top: 1.25rem; }
.dash-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .45rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.dash-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-2); }
.dash-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .7rem; }
.dash-card-head h3 { font-size: 1rem; }
.dash-card-when { margin: 0; font-size: .86rem; font-weight: 600; color: var(--accent-dark); }
.dash-card-meta { margin: 0; font-size: .83rem; color: var(--muted); }
.dash-card-desc { margin: 0; font-size: .88rem; color: var(--body); }
.dash-card-foot { display: flex; gap: .5rem; margin-top: auto; padding-top: .7rem; }
.btn-danger { color: #a32626; border-color: #f3b9b9; }
.btn-danger:hover { background: #fdecec; border-color: #a32626; }

/* ---------- Member account ---------- */
.account-view { max-width: 560px; }
.account-view form > .btn { margin-top: 1.4rem; }
.dash-content > .form-error { margin: 0 0 1.2rem; }
.account-view-wide { max-width: 780px; }
.card-link { display: block; margin-bottom: 0; transition: border-color 150ms ease; }
.card-link:hover { border-color: var(--accent); }
.card-link h3 { font-size: 1.02rem; }
.card-link p { margin: .45rem 0 0; font-size: .88rem; color: var(--body); line-height: 1.5; }
.ticket-meta, .ticket-message { margin: 0 0 .5rem; color: var(--body); font-size: .86rem; line-height: 1.5; }
.ticket-message { margin-bottom: 0; white-space: pre-wrap; }
.ticket-thread { display: grid; gap: .65rem; margin-top: 1rem; }
.ticket-response { padding: .75rem .85rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 9px; }
.ticket-response strong { display: block; color: var(--ink); font-size: .85rem; }
.ticket-response span { display: block; margin-top: .15rem; color: var(--muted); font-size: .76rem; }
.ticket-response p { margin: .45rem 0 0; color: var(--body); white-space: pre-wrap; font-size: .88rem; line-height: 1.5; }
.ticket-actions { display: flex; justify-content: flex-end; margin-top: 1rem; }

/* ---------- Support center ---------- */
.support-choice-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem; align-items: stretch;
}
.support-choice {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.05rem;
  padding: 1.15rem 1.25rem; margin-bottom: 0;
  transition: border-color 150ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.support-choice:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.support-choice-ico {
  width: 2.7rem; height: 2.7rem; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: var(--accent);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 18%, #fff);
}
.support-choice-ico svg { width: 1.4rem; height: 1.4rem; }
.support-choice-body h3 { font-size: 1.02rem; }
.support-choice-body p { margin: .3rem 0 0; font-size: .88rem; color: var(--body); line-height: 1.5; }
.support-choice-arrow { width: 1.2rem; height: 1.2rem; flex: none; color: var(--muted); transition: transform 180ms ease, color 180ms ease; }
.support-choice:hover .support-choice-arrow { transform: translateX(3px); color: var(--accent); }

.support-welcome {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  background: linear-gradient(115deg, var(--accent-soft), #fff 68%);
  border-color: color-mix(in srgb, var(--accent) 18%, #fff);
}
.support-welcome h2 { font-size: 1.18rem; }
.support-welcome p { max-width: 50ch; margin: .35rem 0 0; color: var(--body); font-size: .88rem; line-height: 1.5; }

/* Support ticket cards */
.ticket-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.ticket-head-main { min-width: 0; }
.ticket-head-main h3 { font-size: 1.05rem; }
.ticket-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; margin: .4rem 0 0; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.ticket-meta .ticket-id { font-weight: 650; color: var(--ink); letter-spacing: .01em; }
.ticket-meta .ticket-cat { text-transform: capitalize; }
.ticket-meta .dot { color: var(--border-2); }
.badge-status { text-transform: capitalize; }
.badge-status.is-open { background: color-mix(in srgb, var(--green) 12%, #fff); border: 1px solid color-mix(in srgb, var(--green) 30%, #fff); color: var(--green); }
.badge-status.is-progress { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 28%, #fff); color: var(--accent-dark); }
.badge-status.is-pending { background: #fff7e8; border: 1px solid #efd9a8; color: #8a6116; }
.badge-status.is-closed { background: #f0f2f5; border: 1px solid #d7dce4; color: #596273; }
.ticket-summary { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; padding: .75rem .9rem; background: #fff; border: 1px solid var(--border); border-radius: var(--r); }
.ticket-summary-stat { display: flex; align-items: baseline; gap: .35rem; padding-right: .7rem; border-right: 1px solid var(--border); }
.ticket-summary-stat strong { color: var(--ink); font-size: 1.2rem; }
.ticket-summary-stat span, .ticket-summary-note { color: var(--muted); font-size: .78rem; }
.ticket-summary-note { margin-left: auto; }
.ticket-toolbar { margin-bottom: 1rem; }
.ticket-toolbar .dash-search { min-width: 220px; }
.ticket-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.ticket-updated { color: var(--muted); font-size: .76rem; }
.ticket-card-foot .ticket-actions { margin-top: 0; }
.ticket-empty { text-align: center; }
.ticket-empty .panel-copy { margin-bottom: .85rem; }
.ticket-expectations { display: grid; gap: .2rem; margin-bottom: 1.2rem; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: var(--r); background: var(--bg-soft); font-size: .82rem; line-height: 1.45; }
.ticket-expectations strong { color: var(--ink); }
.ticket-expectations span { color: var(--body); }
.dash-content-narrow .ticket-compose { max-width: 640px; }
.ticket-compose textarea { min-height: 11rem; }
.ticket-compose form > .field:nth-child(2) { margin-top: 0; }
.ticket-compose .form-error:not([hidden]) { margin: 0 0 1.1rem; }
#ticket-message-count { float: right; color: var(--muted); font-size: .76rem; }
.help-toolbar .dash-search { flex: 1; max-width: 560px; }
.help-group { padding-bottom: .55rem; }
.help-group .panel-head { margin-bottom: 0; padding-bottom: .8rem; }
.help-card { border-top: 1px solid var(--border); }
.help-card[hidden] { display: none; }
.help-card summary { display: flex; align-items: center; gap: .75rem; padding: .8rem 0; cursor: pointer; list-style: none; }
.help-card summary::-webkit-details-marker { display: none; }
.help-card summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 1.1rem; }
.help-card[open] summary::after { content: "−"; }
.help-card summary:hover strong { color: var(--accent-dark); }
.help-card summary strong, .help-card summary small { display: block; }
.help-card summary strong { color: var(--ink); font-size: .9rem; transition: color 130ms; }
.help-card summary small { margin-top: .2rem; color: var(--muted); font-size: .76rem; }
.help-icon { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; flex: none; border-radius: 9px; background: var(--accent-soft); color: var(--accent-dark); }
.help-icon .ico { width: 1.05rem; height: 1.05rem; }
.help-body { padding: .1rem 0 1rem 2.85rem; color: var(--body); font-size: .83rem; line-height: 1.55; }
.help-body h4 { margin: .95rem 0 .3rem; font-size: .84rem; color: var(--ink); }
.help-body ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.help-body li strong { color: var(--ink); font-weight: 600; }
.help-body p { margin: 0 0 .55rem; }
.help-body ol { margin: .55rem 0 0; padding-left: 1.1rem; }
.help-body li { margin: .25rem 0; }
.help-note { padding: .55rem .65rem; border-left: 3px solid #d39b2c; background: #fff8e8; color: #745116; font-size: .78rem; }
.help-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; }
.help-footer h2 { font-size: 1rem; }
.help-footer p { margin: .3rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }

/* Cohesive, centered column for support/form views so content doesn't float in empty space */
.dash-content-narrow { max-width: 860px; }
.dash-content-narrow .account-view,
.dash-content-narrow .account-view-wide { max-width: none; }

@media (max-width: 720px) { .support-welcome { align-items: flex-start; flex-direction: column; } }
@media (max-width: 760px) { .help-footer { align-items: flex-start; flex-direction: column; } .help-footer .btn { width: 100%; } }
@media (max-width: 620px) { .dash-content { padding: 1rem .9rem 2rem; } .dash-topbar { align-items: flex-start; } .topbar-actions { width: 100%; } .topbar-actions .btn { width: 100%; } .ticket-actions { justify-content: stretch; } .ticket-actions .btn { width: 100%; } .ticket-response { padding: .7rem; } .ticket-summary { flex-wrap: wrap; } .ticket-summary-note { width: 100%; margin-left: 0; } .ticket-toolbar .dash-search { min-width: 0; width: 100%; } .ticket-card-foot { align-items: stretch; flex-direction: column; } .help-body { padding-left: 0; } }
.profile-row { display: grid; grid-template-columns: 4.3rem 1fr; gap: 1rem; align-items: center; }
.profile-row .field { margin-top: 0; }
.avatar {
  width: 4.3rem; height: 4.3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: 1.35rem; font-weight: 700;
  background-size: cover; background-position: center;
}
.panel-copy { margin: 0 0 1rem; font-size: .88rem; color: var(--body); line-height: 1.5; }

/* overview */
.ov-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: .8rem; margin-bottom: 1.1rem; }
.ov-stat { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: .8rem 1.05rem; }
.ov-stat b { display: block; font-size: 1.45rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.ov-stat span { font-size: .78rem; color: var(--muted); }
.ov-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.ov-list { display: flex; flex-direction: column; gap: .45rem; }
.ov-row {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .6rem .75rem; border-radius: 10px; background: var(--bg-soft);
}
.ov-row b { display: block; font-size: .9rem; color: var(--ink); font-weight: 600; }
.ov-row-meta { display: block; font-size: .78rem; color: var(--muted); }

/* rush */
.status-select {
  height: 2.15rem; padding: 0 .6rem; border: 1px solid var(--border-2); border-radius: 8px;
  font: inherit; font-size: .84rem; color: var(--ink); background: #fff;
}
.recruit-panel { grid-template-columns: 1fr; }
.recruit-avatar {
  width: 3rem; height: 3rem; flex: 0 0 3rem; padding: 0; overflow: hidden;
  display: grid; place-items: center; border: 1px solid var(--border-2); border-radius: 14px;
  background: var(--accent-soft); color: var(--accent-dark); font: inherit; font-weight: 750;
  cursor: pointer;
}
.recruit-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recruit-avatar.is-open { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.recruit-selfie-expanded { width: min(100%, 280px); max-height: 360px; object-fit: cover; border-radius: 14px; border: 1px solid var(--border-2); margin-bottom: .8rem; }
.recruit-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .55rem .9rem; }
.recruit-fact { font-size: .88rem; color: var(--body); }
.recruit-fact-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* rush status badge tints */
.badge[class*="status-"] { text-transform: none; }
.status-new { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 28%, #fff); color: var(--accent-dark); }
.status-contacted { background: #f3eefe; border: 1px solid #d9c9f5; color: #6b3fc4; }
.status-attended_event { background: #e8f7f4; border: 1px solid #b8e3da; color: #0f7b66; }
.status-interviewed { background: #fff3e6; border: 1px solid #f3d6ae; color: #a05c10; }
.status-bid_consideration { background: #fff8e1; border: 1px solid #efe0a3; color: #8a6d12; }
.status-bid_offered { background: #eef0fe; border: 1px solid #c9cef5; color: #3c46b8; }
.status-bid_accepted { background: color-mix(in srgb, var(--green) 12%, #fff); border: 1px solid color-mix(in srgb, var(--green) 30%, #fff); color: var(--green); }
.status-dropped { background: #fdecec; border: 1px solid #f3b9b9; color: #a32626; }

/* party lists */
.party-entries { display: flex; flex-direction: column; gap: .15rem; max-height: 200px; overflow-y: auto; margin: .3rem 0; }
.party-entry {
  display: flex; align-items: center; gap: .6rem;
  padding: .42rem .55rem; border-radius: 8px; font-size: .9rem; color: var(--ink);
  cursor: pointer; transition: background 130ms ease;
}
.party-entry:hover { background: var(--bg-soft); }
.party-entry input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--green); flex: none; }
.party-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.party-name { line-height: 1.3; }
.party-bday { font-size: .72rem; color: var(--muted); }
.party-entry.is-checked .party-name { color: var(--muted); text-decoration: line-through; }
.badge-21 { background: color-mix(in srgb, var(--green) 12%, #fff); border: 1px solid color-mix(in srgb, var(--green) 30%, #fff); color: var(--green); text-transform: none; flex: none; }
.badge-u21 { background: #fff7e8; border: 1px solid #efd9a8; color: #8a6116; text-transform: none; flex: none; }
.party-add { display: flex; gap: .5rem; flex-wrap: wrap; }
.party-add input {
  height: 2.15rem; padding: 0 .7rem; border: 1px solid var(--border-2); border-radius: 8px;
  font: inherit; font-size: .87rem; color: var(--ink);
}
.party-add input:first-child { flex: 1; min-width: 110px; }
.party-add input[type="date"] { width: 9.2rem; color: var(--body); }
.party-add input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 99, 232, 0.14); }

/* guest rows in the new-list modal */
.guest-rows { display: flex; flex-direction: column; gap: .45rem; max-height: 240px; overflow-y: auto; }
.guest-row { display: flex; gap: .5rem; align-items: center; animation: cardIn 200ms ease both; }
.guest-row input { flex: 1; min-width: 0; }
.guest-row input[type="date"] { flex: none; width: 9.6rem; }
.guest-rm {
  flex: none; width: 1.9rem; height: 1.9rem; border-radius: 999px;
  border: none; background: var(--bg-soft); color: var(--muted); font-size: 1.05rem; line-height: 1;
  transition: background 140ms ease, color 140ms ease;
}
.guest-rm:hover { background: #fdecec; color: #a32626; }
.party-entry .entry-rm { width: 1.5rem; height: 1.5rem; font-size: .92rem; opacity: .35; transition: opacity 130ms ease, background 140ms ease, color 140ms ease; }
.party-entry:hover .entry-rm, .party-entry .entry-rm:focus-visible { opacity: 1; }
.modal-form .field .guest-rows + .btn { align-self: flex-start; margin-top: .55rem; }

/* feature logic */
.logic-row { display: flex; gap: 2rem; flex-wrap: wrap; }

/* studysync analytics */
.study-rank {
  flex: none; min-width: 2.3rem; text-align: center;
  font-size: .82rem; font-weight: 700; color: var(--muted);
}
.study-rank-top { color: var(--accent-dark); }
.study-bar {
  flex: 2; min-width: 140px; height: .6rem; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border); overflow: hidden;
}
.study-fill {
  width: 0; height: 100%; border-radius: inherit;
  background: var(--accent);
  transition: width 700ms cubic-bezier(.22,.61,.36,1);
}
.study-fill-met { background: var(--green); }
.study-panel { grid-template-columns: 1fr; }
.ov-stat .link-btn { display: block; margin-top: .2rem; font-size: .78rem; }

/* studysync action bar */
.study-actionbar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.study-actionbar .btn { display: inline-flex; align-items: center; gap: .45rem; }
.study-actionbar .ico { width: 1rem; height: 1rem; }
.stat-good b { color: var(--green); }
.stat-bad b { color: #a32626; }
.study-custom { color: var(--accent-dark); font-weight: 600; }

/* compact icon action buttons */
.study-row-actions { gap: .4rem; }
.recruit-note-preview { margin: .65rem 0 0; padding: .65rem .8rem; color: var(--body); background: var(--bg-soft); border-left: 3px solid var(--accent); border-radius: .35rem; font-size: .9rem; line-height: 1.45; }
.pnm-vote-choices { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .4rem; }
.study-history-tile { display: flex; align-items: center; gap: .9rem; margin-top: 1.2rem; padding: 1rem 1.1rem; color: inherit; text-decoration: none; transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease; }
.study-history-tile:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(20, 45, 90, .08); }
.study-history-tile strong, .study-history-tile small { display: block; }
.study-history-tile strong { color: var(--ink); }
.study-history-tile small { margin-top: .2rem; color: var(--muted); }
.study-history-tile-icon, .study-history-tile-arrow { color: var(--accent); font-size: 1.35rem; font-weight: 700; }
.study-history-tile-arrow { margin-left: auto; }
.study-history-page { max-width: 980px; }
.study-history-back { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1.1rem; }
.study-history-back .ico { width: .95rem; height: .95rem; }
.study-history-table { overflow: hidden; padding: 0; }
.study-history-row {
  display: grid; grid-template-columns: minmax(12rem, 1.3fr) minmax(5.5rem, .6fr) minmax(7.5rem, .9fr) minmax(9rem, 1.5fr) auto;
  align-items: center; gap: 1rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--border);
}
.study-history-row:last-child { border-bottom: 0; }
.study-history-header { padding: .7rem 1.2rem; color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--bg-soft); }
.study-history-week { display: flex; align-items: center; gap: .55rem; min-width: 0; flex-wrap: wrap; }
.study-history-week b { color: var(--ink); font-weight: 650; white-space: nowrap; }
.study-history-live { color: var(--muted); font-size: .8rem; }
.study-history-hours b { color: var(--ink); font-weight: 700; }
.study-history-track { font-size: .86rem; color: var(--muted); white-space: nowrap; }
.study-history-track b { color: var(--ink); font-weight: 650; }
.study-history-progress { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.study-history-progress .study-bar { flex: 1; min-width: 80px; }
.study-history-pct { flex: none; min-width: 2.6rem; text-align: right; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.study-history-download { display: inline-flex; align-items: center; gap: .4rem; justify-self: end; }
.study-history-download .ico { width: .95rem; height: .95rem; }
.study-history-skel { height: 3.6rem; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.study-history-skel:last-child { border-bottom: 0; }
.study-history-empty { padding: 2rem 1.4rem; }
.study-history-empty b { display: block; color: var(--ink); font-weight: 650; }
.study-history-empty p { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) {
  .study-history-row {
    grid-template-columns: 1fr auto; gap: .45rem .8rem;
    grid-template-areas: "week download" "hours track" "progress progress";
  }
  .study-history-header { display: none; }
  .study-history-week { grid-area: week; }
  .study-history-hours { grid-area: hours; }
  .study-history-track { grid-area: track; justify-self: end; }
  .study-history-progress { grid-area: progress; }
  .study-history-download { grid-area: download; }
}
.icon-btn {
  width: 2.1rem; height: 2.1rem; flex: none; display: inline-grid; place-items: center;
  border: 1px solid var(--border-2); border-radius: 9px; background: #fff; color: var(--body);
  transition: all 150ms ease;
}
.icon-btn svg { width: 1.05rem; height: 1.05rem; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.icon-btn-warn { border-color: #f3b9b9; color: #a32626; }
.icon-btn-warn:hover { background: #fdecec; border-color: #a32626; color: #a32626; }
.icon-btn-chev svg { transition: transform 200ms ease; }
.icon-btn-chev.is-open svg { transform: rotate(180deg); }

/* modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; padding: 1.2rem;
  background: rgba(14, 23, 38, 0.42);
  opacity: 0; transition: opacity 180ms ease;
  backdrop-filter: blur(3px);
}
.rate-limit-shield {
  position: fixed; inset: 0; z-index: 290;
  background: transparent;
  cursor: not-allowed;
}
.dash-body.is-rate-limited .dash-shell { user-select: none; }
.modal-overlay[hidden] { display: none; }
.modal-overlay.is-open { opacity: 1; }
.modal-card {
  width: min(100%, 520px); max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: var(--r-lg); box-shadow: 0 24px 64px rgba(14, 23, 38, 0.25);
  padding: 1.4rem 1.5rem 1.5rem;
  transform: translateY(14px) scale(.97); transition: transform 200ms cubic-bezier(.22,.61,.36,1);
}
.modal-overlay.is-open .modal-card { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.modal-head h3 { font-size: 1.15rem; }
.modal-close {
  border: none; background: var(--bg-soft); color: var(--body);
  width: 2rem; height: 2rem; border-radius: 999px; font-size: 1.2rem; line-height: 1;
  transition: background 140ms ease, transform 140ms ease;
}
.modal-close:hover { background: var(--border); transform: rotate(90deg); }

.modal-form { display: flex; flex-direction: column; gap: .9rem; }
.modal-form .field { display: flex; flex-direction: column; gap: .3rem; }
.modal-form label { font-size: .84rem; font-weight: 600; color: var(--ink); }
.modal-form input, .modal-form select, .modal-form textarea {
  padding: .55rem .7rem; border: 1px solid var(--border-2); border-radius: 9px;
  font: inherit; font-size: .92rem; color: var(--ink); background: #fff;
}
.modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 99, 232, 0.14);
}
.modal-form textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field-inline label { display: flex; align-items: center; gap: .55rem; font-size: .9rem; font-weight: 550; color: var(--ink); cursor: pointer; }
.field-inline input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--accent); }
.modal-form .form-error { margin-top: 0; }

.rate-limit-modal {
  text-align: center; display: flex; flex-direction: column; align-items: center;
  gap: .55rem; padding-top: .15rem;
}
.rate-limit-badge {
  width: 3.25rem; height: 3.25rem; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, #fff);
  color: var(--accent-dark); font-size: .9rem; font-weight: 700; letter-spacing: .08em;
}
.rate-limit-modal h3 { margin-top: .1rem; font-size: 1.35rem; letter-spacing: -0.03em; }
.rate-limit-copy { margin: 0; max-width: 28rem; font-size: 1rem; font-weight: 650; line-height: 1.55; color: var(--ink); }
.rate-limit-note { margin: 0; max-width: 28rem; font-size: .9rem; color: var(--body); line-height: 1.55; }
.rate-limit-actions { margin-top: .4rem; display: flex; justify-content: center; }
.rate-limit-actions .btn { min-width: 120px; }

/* toast pop-in */
.toast-in { animation: toastIn 260ms cubic-bezier(.22,.61,.36,1) both; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* dashboard responsive */
@media (max-width: 880px) {
  .dash-shell { grid-template-columns: 1fr; }
  .dash-sidebar {
    position: sticky; top: 0; height: auto;
    flex-direction: row; align-items: center; gap: .9rem;
    padding: .65rem 1rem; border-right: none; border-bottom: 1px solid var(--border);
  }
  .dash-body .dashboard-brand { width: 86px; }
  .dash-body .dashboard-logo { width: 86px; max-height: 42px; }
  .dash-sidebar .brand b { display: none; }
  .side-nav { flex-direction: row; gap: .15rem; overflow-x: auto; flex: 1; }
  .side-link { padding: .5rem .6rem; font-size: .82rem; white-space: nowrap; }
  .side-link.is-active::before { left: 10%; right: 10%; top: auto; bottom: -2px; width: auto; height: 3px; }
  .side-foot { margin: 0; flex-direction: row; align-items: center; }
  .side-user { display: none; }
  .ov-cols { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .calendar { padding: .55rem; }
  .cal-cell { min-height: 54px; padding: .25rem .3rem; }
  .cal-pill { font-size: 0; padding: 0; width: .5rem; height: .5rem; border-radius: 999px; align-self: flex-start; }
  .cal-more { font-size: .62rem; padding: 0; }
  .cal-nav b { min-width: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; }
  .hero-grid { gap: 1.6rem; }
  .hero-grid > :first-child { padding-top: 1.2rem; }
  .phone { width: min(230px, 30vw); }
  .grid-3, .grid-4, .price-grid, .about-vals { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr 1fr; }
  .steps.steps-row { grid-template-columns: 1fr; gap: 1rem; }
  .main-nav {
    position: absolute; top: 64px; left: 1.5rem; right: 1.5rem; z-index: 60;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    box-shadow: var(--shadow); padding: .5rem;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8rem .9rem; border-radius: 8px; }
  .main-nav a[aria-current="page"] { background: var(--bg-soft); }
  .nav-toggle { display: inline-flex; }
  .site-brand { width: 170px; }
  .site-logo { width: 170px; }
  .header-cta .login-link { display: none; }
}

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* phone-first on mobile: mockup leads, copy and buttons follow */
  .hero-grid > :first-child { padding-top: 0; order: 2; }
  .stage { order: 1; margin-top: 0; }
  .phone { width: min(290px, 76vw); }
}

@media (max-width: 580px) {
  .wrap { width: min(100% - 2.2rem, var(--content)); }

  /* compact sticky header: smaller bar, icon-only menu toggle */
  .site-header .wrap { height: 56px; gap: .6rem; }
  .site-brand { width: 128px; }
  .site-logo { width: 128px; }
  .header-cta { gap: .5rem; }
  .header-cta .btn { height: 2.4rem; padding: 0 .9rem; font-size: .86rem; }
  .nav-toggle { width: 2.4rem; height: 2.4rem; padding: 0; justify-content: center; }
  .nav-toggle .bars { width: 1.05rem; gap: 4px; }
  .nav-toggle-label { display: none; }
  .main-nav { top: 56px; left: 1.1rem; right: 1.1rem; }

  /* hero: no dead space above the headline, full-width actions, smaller mockup */
  .hero { padding: 1.5rem 0 2.4rem; }
  .hero h1 { font-size: 1.7rem; }
  .hero .lede { margin-top: .8rem; font-size: .96rem; }
  .hero .actions { margin-top: 1.3rem; gap: .6rem; }
  .hero .actions .btn { width: 100%; }
  .hero .note { margin-top: .8rem; }
  .phone { width: min(210px, 54vw); }
  .stage::after { bottom: -18px; height: 22px; filter: blur(14px); }

  /* tighter vertical rhythm so pages stop feeling endless */
  .section { padding: 2.4rem 0; }
  .section-head { margin-bottom: 1.5rem; }
  .section-head p { margin-top: .55rem; font-size: .95rem; }
  .grid-3, .grid-4, .price-grid, .about-vals { grid-template-columns: 1fr; gap: .8rem; }
  .module-grid { gap: .7rem; }
  .card { padding: 1.15rem 1.2rem; }
  .card .chip { margin-bottom: .7rem; }
  .module-card { padding: .95rem 1rem 1.05rem; }
  .module-card .chip { margin-bottom: .6rem; }
  .feature-card { padding: 1.15rem 1.2rem; gap: .9rem; }
  .split { gap: 1.4rem; }
  .cta-band { padding: 2.2rem 0; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .cta-band .btn { width: 100%; }
  .site-footer { padding: 1.7rem 0; }
  .footer-links { gap: .8rem 1.2rem; }

  /* auth pages */
  .auth-main { padding: 1rem 1.1rem 2rem; }
  .login-hero-logo {
    width: min(300px, 82vw);
    margin-bottom: 1.1rem;
    transform: translateX(-16px);
  }
  .auth-card { padding: 1.6rem 1.25rem; }
  /* Give the embedded W-9 the full width of the card on small screens. */
  .secure-embed { margin-inline: -1.25rem; border-radius: 0; border-left: 0; border-right: 0; }
  .secure-embed-frame { height: calc(100vh - 16rem); min-height: 26rem; }
}

/* Prevent protected pages from painting before the server validates the gate token. */
html.site-access-pending body {
  visibility: hidden;
}

/* Dashboard refinement: quiet flat surfaces, consistent with SettingsView. */
.dash-body {
  background: #f5f7fb;
  color: var(--body);
}
.dash-body h1, .dash-body h2, .dash-body h3, .dash-body h4 { color: var(--ink); }
.dash-body .dash-sidebar { background: #fff; border-right: 1px solid var(--border); }
.dash-body .dashboard-brand {
  width: 224px;
  max-width: 100%;
  padding: 0;
}
.dash-body .dashboard-logo {
  width: 224px;
  height: auto;
  object-fit: contain;
  display: block;
  flex: none;
}
.dash-body .side-link { color: var(--body); border-radius: 10px; transition: background 160ms ease, color 160ms ease; }
.dash-body .side-link:hover { background: var(--bg-soft); color: var(--ink); }
.dash-body .side-link:active { transform: none; }
.dash-body .side-link.is-active { background: var(--accent-soft); color: var(--accent-dark); box-shadow: none; }
.dash-body .side-link.is-active::before { background: var(--accent); }
.dash-body .side-link.is-active .ico { color: var(--accent); }
.dash-body .side-user b { color: var(--ink); }
.dash-body .dash-sub, .dash-body .panel-note, .dash-body .perm-note { color: var(--muted); }
.dash-body .panel-card, .dash-body .dash-card, .dash-body .ov-stat,
.dash-body .dash-stats .stat, .dash-body .member-row, .dash-body .dash-notice,
.dash-body .calendar {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: none;
  border-radius: var(--r-lg);
}
.dash-body .dash-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: var(--border-2); }
.dash-body .dash-card-when { color: var(--accent-dark); }
.dash-body .dash-card-meta, .dash-body .ov-stat span, .dash-body .dash-stats span,
.dash-body .member-meta, .dash-body .ov-row-meta { color: var(--muted); }
.dash-body .dash-card-desc, .dash-body .recruit-fact { color: var(--body); }
.dash-body .ov-stat b, .dash-body .dash-stats b, .dash-body .member-id b,
.dash-body .ov-row b { color: var(--ink); }
.dash-body .ov-row, .dash-body .rush-link-row code { background: var(--bg-soft); box-shadow: none; border: 1px solid var(--border); color: var(--body); }
.dash-body .dash-search, .dash-body .status-select, .dash-body .party-add input,
.dash-body .modal-form input, .dash-body .modal-form select, .dash-body .modal-form textarea {
  background: #fff; border: 1px solid var(--border-2); box-shadow: none; color: var(--ink); border-radius: 9px;
}
.dash-body .dash-search:focus, .dash-body .party-add input:focus,
.dash-body .modal-form input:focus, .dash-body .modal-form select:focus, .dash-body .modal-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(47, 99, 232, .14); border-color: var(--accent);
}
.dash-body .btn { border-radius: 9px; transition: background 160ms ease, border-color 160ms ease, color 160ms ease; }
.dash-body .btn:active { transform: none; filter: none; }
.dash-body .btn-primary, .dash-body .seg-toggle button.is-on, .dash-body .filter-chip.is-on { background: var(--accent); box-shadow: none; }
.dash-body .btn-primary:hover { background: var(--accent-dark); box-shadow: none; }
.dash-body .btn-outline { background: #fff; border: 1px solid var(--border-2); color: var(--body); box-shadow: none; }
.dash-body .btn-outline:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--accent); filter: none; }
.dash-body .modal-card { background: #fff; box-shadow: 0 18px 50px rgba(18, 31, 54, .18); border-radius: var(--r-lg); }
.dash-body .modal-close { background: var(--bg-soft); box-shadow: none; color: var(--body); }
.dash-body .cal-arrow { background: #fff; border: 1px solid var(--border-2); color: var(--body); box-shadow: none; }
.dash-body .seg-toggle { background: #fff; border: 1px solid var(--border-2); box-shadow: none; border-radius: 10px; }
.dash-body .filter-chip { background: #fff; border: 1px solid var(--border-2); color: var(--body); box-shadow: none; }
.dash-body .cal-cell { background: var(--bg-soft); box-shadow: none; border-radius: 9px; }
.dash-body .cal-today { background: #fff; box-shadow: inset 0 0 0 2px var(--accent); }
.dash-body .cal-today .cal-daynum { background: var(--accent); }
.dash-body .study-bar, .dash-body .wiz-track { background: var(--bg-soft); border: 1px solid var(--border); box-shadow: none; }
.dash-body .study-fill, .dash-body .wiz-fill { background: var(--accent); box-shadow: none; }
.dash-body .toast { background: var(--ink); color: #fff; box-shadow: 0 10px 25px rgba(18, 31, 54, .2); border-radius: 10px; }
.dash-body .skel { background: linear-gradient(100deg, #fff 40%, #eef1f7 50%, #fff 60%); border: 1px solid var(--border); box-shadow: none; border-radius: var(--r); }

.search-warning-modal {
  display: flex; flex-direction: column; align-items: center;
  gap: .75rem; text-align: center;
}
.search-warning-modal > p:first-child {
  margin: 0; color: var(--ink); font-size: 1.2rem; font-weight: 700;
}
.search-warning-note { margin: 0 0 .25rem; color: var(--body); font-size: .9rem; }

/* Final dashboard mobile pass. Kept at the end so dashboard refinement rules cannot override it. */
@media (max-width: 700px) {
  html,
  body.dash-body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .dash-shell {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .dash-sidebar,
  .dash-body .dash-sidebar {
    position: sticky;
    top: 0;
    z-index: 80;
    width: 100%;
    height: auto;
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand foot"
      "nav nav";
    align-items: center;
    gap: .45rem .75rem;
    padding: .55rem .8rem .4rem;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .dash-sidebar .brand,
  .dash-body .dashboard-brand {
    grid-area: brand;
    width: min(148px, 42vw);
    max-width: 100%;
    padding: 0;
  }

  .dash-body .dashboard-logo {
    width: 100%;
    max-height: 36px;
  }

  .dash-sidebar .side-foot { grid-area: foot; justify-self: end; max-width: 100%; }
  .dash-sidebar .side-nav { grid-area: nav; }

  .side-nav {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: row;
    gap: .35rem;
    overflow-x: auto;
    padding: .1rem 0 .25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .side-nav::-webkit-scrollbar {
    display: none;
  }

  .side-link {
    flex: 0 0 auto;
    max-width: 78vw;
    padding: .55rem .7rem;
    font-size: .86rem;
    white-space: nowrap;
  }

  .side-link.is-active::before {
    left: .6rem;
    right: .6rem;
    top: auto;
    bottom: -2px;
    width: auto;
    height: 3px;
  }

  .side-foot {
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: .4rem;
    overflow-x: auto;
    padding-bottom: .1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .side-foot::-webkit-scrollbar {
    display: none;
  }

  .side-foot .btn {
    flex: 0 0 auto;
    height: 2.1rem;
    padding-inline: .6rem;
    font-size: .75rem;
  }

  .dash-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 1.25rem .9rem 2rem;
  }

  .dash-topbar {
    align-items: flex-start;
    gap: .9rem;
  }

  .dash-topbar h1 {
    font-size: 1.45rem;
    line-height: 1.15;
  }

  .topbar-actions,
  .topbar-actions .btn,
  .view-toolbar .btn,
  .support-choice-grid .panel-card,
  .card-link,
  .account-view,
  .account-view-wide {
    width: 100%;
    max-width: 100%;
  }

  .panel-card,
  .dash-card,
  .member-row {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  #ticket-list {
    width: 100%;
    min-width: 0;
  }

  .ticket-actions {
    justify-content: stretch;
  }

  .ticket-actions .btn {
    width: 100%;
  }

  .support-choice-grid {
    grid-template-columns: 1fr;
  }

  .support-choice {
    gap: .9rem;
    padding: 1rem 1.05rem;
  }

  .support-choice-ico {
    width: 2.4rem;
    height: 2.4rem;
  }

  .support-choice-ico svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .ticket-head {
    gap: .55rem;
  }
}
