/* == /brand.css == */
/* ============================================================================
 * Good Dogz KC — Calendar PWA Brand Foundation
 * Palette + typography from ~/Projects/paper-test/gdkc-design-decisions.md
 * Wave 1-B (feat/ui-calendar) extends this file with the full calendar grid.
 * ============================================================================ */

:root {
  /* Base */
  --bg:          #0A091A;
  --bg-elev-1:  #14122A;
  --bg-elev-2:  #1E1B3C;
  --navy:       #2C2977;

  /* Accents */
  --teal:         #07EDBE;
  --pink:         #FF7EC0;
  --violet:       #9945FF;
  --mid-purple:   #C77DFF;
  --light-purple: #A08CFF;
  --blue:         #477ED6;
  --light-blue:   #A0C7FF;
  --lilac:        #F1E0FF;

  /* Text */
  --text:          #F8F8F8;
  --text-muted:    rgba(248, 248, 248, 0.55);
  --text-body:     rgba(248, 248, 248, 0.65);
  --heading-white: #F0EEFF;
  --gray-purple:   #5A5880;

  /* Surfaces */
  --surface:           var(--bg-elev-1);
  /* Haiti 900 — card fill in the newer sections. Split from --surface (#14122A)
   * is documented in docs/BRAND.md §1; collapsing to one value is Andrew's call. */
  --surface-card:      #16143A;
  --surface-border:    rgba(248, 248, 248, 0.08);
  --surface-border-strong: rgba(248, 248, 248, 0.16);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 500px;

  /* Mesh gradient — buttons/accents (135deg diagonal) */
  --mesh-gradient: linear-gradient(135deg, #A0C7FF 0%, #477ED6 30%, #C77DFF 65%, #9945FF 100%);
  /* Mesh text gradient — Paper Hero A2v4 canonical (90deg, teal→violet→pink→blue) */
  --mesh-text-gradient: linear-gradient(90deg, #07EDBE 0%, #9945FF 33.333%, #FF7EC0 66.667%, #477ED6 100%);
  /* Conic-gradient border for pill CTA buttons on dark surfaces */
  --mesh-conic-border: conic-gradient(from 0deg at 50% 50%, #07EDBE 0%, #9945FF 25%, #FF7EC0 50%, #477ED6 75%, #07EDBE 100%);
  --hero-gradient: linear-gradient(180deg, #9945FF 0%, #2C2977 100%);

  /* Elevation */
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow-teal: 0 8px 32px rgba(7, 237, 190, 0.25);
  --shadow-glow-violet: 0 8px 32px rgba(153, 69, 255, 0.25);
}

/* Fonts — self-hosted Cera Round (display) + Nunito (body).
   Both have rounded end caps — that's the GDKC brand feel. No Inter. */
@font-face {
  font-family: 'CeraRound';
  src: url('/assets/fonts/Cera-Round-Black-Web.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CeraRound';
  src: url('/assets/fonts/Cera-Round-Regular-Web.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/Nunito-Variable-Latin.woff2') format('woff2-variations'),
       url('/assets/fonts/Nunito-Variable-Latin.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/Nunito-Variable-Latin-Ext.woff2') format('woff2-variations'),
       url('/assets/fonts/Nunito-Variable-Latin-Ext.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { background: var(--bg); color: var(--text); min-height: 100vh; }
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'CeraRound', 'Nunito', sans-serif;
  font-weight: 900;
  letter-spacing: -0.01em;
}

h1 { font-size: 40px; line-height: 48px; }
h2 { font-size: 28px; line-height: 36px; }
h3 { font-size: 20px; line-height: 26px; }

@media (max-width: 640px) {
  h1 { font-size: 28px; line-height: 36px; }
  h2 { font-size: 22px; line-height: 30px; }
}

.muted { color: var(--text-muted); }

/* Gradient text (used on hero) */
.gradient-text {
  background: var(--mesh-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Mesh-gradient pill button (primary CTA) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'CeraRound', 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 15px;
  height: 44px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  border: 4px solid var(--violet);
  background: var(--bg) padding-box,
              var(--mesh-gradient) border-box;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}
.btn:hover { filter: brightness(1.1); box-shadow: var(--shadow-glow-violet); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; pointer-events: none; }

.btn-secondary {
  border-color: var(--surface-border-strong);
  background: var(--bg);
}

/* Big mesh-gradient CTA pill (full-fill interior, used on Confirm) */
.btn-mesh {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  height: 52px;
  border-radius: var(--radius-pill);
  border: 4px solid var(--teal);
  background: var(--bg);
  padding: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
  font-family: 'CeraRound', 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  letter-spacing: 0.3px;
}
.btn-mesh::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: var(--radius-pill);
  background: var(--mesh-gradient);
  z-index: 0;
}
.btn-mesh > span { position: relative; z-index: 1; }
.btn-mesh:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow-teal); }
.btn-mesh:disabled { opacity: 0.4; pointer-events: none; }

/* Card surface */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow: hidden;
}

/* Dot pattern utility */
.dot-pattern {
  position: absolute;
  inset: -24px;
  background-image: radial-gradient(circle, var(--navy) 8px, transparent 8px);
  background-size: 16px 16px;
  opacity: 0.88;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.1) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.1) 100%);
}

/* PWA viewport fixes */
@supports (padding: max(0px)) {
  body {
    padding-top: max(env(safe-area-inset-top), 16px);
    padding-bottom: max(env(safe-area-inset-bottom), 16px);
  }
}

/* ============================================================================
 * Page layout + hero
 * ============================================================================ */

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 140px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (max-width: 640px) {
  .page { padding: 32px 16px 160px; gap: 24px; }
}

.hero {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.1; }
.hero .hello {
  font-size: 17px;
  color: var(--text-body);
  margin-top: 4px;
}
.hero .progress {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--surface-border-strong);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
}
.hero .progress::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}

/* Hidden attribute helper */
[hidden] { display: none !important; }

/* == /components/hub-shell/style.css == */
/* hub-shell — logged-in chrome for the Training Hub.
   Desktop: single top bar with centered pill tabs.
   Mobile: slim top bar + fixed bottom tab bar (app feel). */

.hub-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 28px);
  background: rgba(20, 18, 42, 0.92);
  border-bottom: 1px solid rgba(160, 140, 255, 0.14);
  position: sticky;
  top: 0;
  z-index: 50;
}
.hub-shell__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.hub-shell__paw {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    linear-gradient(var(--bg-elev-2), var(--bg-elev-2)) padding-box,
    linear-gradient(135deg, #07edbe, #9945ff, #ff7ec0) border-box;
  border: 2px solid transparent;
}
.hub-shell__wordmark {
  font-family: "CeraRound", "Nunito", sans-serif;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.01em;
}

/* Desktop pill tabs */
.hub-shell__tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border: 1px solid rgba(248, 248, 248, 0.07);
  border-radius: var(--radius-pill);
  padding: 4px;
}
.hub-shell__tab {
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  color: var(--text-body);
  text-decoration: none;
  font-family: "CeraRound", "Nunito", sans-serif;
  font-weight: 900;
  font-size: 14px;
  transition: color 0.15s ease, background 0.15s ease;
}
.hub-shell__tab:hover {
  color: var(--text);
}
.hub-shell__tab.is-active {
  background: linear-gradient(135deg, rgba(7, 237, 190, 0.22), rgba(153, 69, 255, 0.3));
  color: var(--text);
}

.hub-shell__side {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hub-shell__dog {
  font-family: "CeraRound", "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: var(--teal);
  background: rgba(7, 237, 190, 0.09);
  border: 1px solid rgba(7, 237, 190, 0.3);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  white-space: nowrap;
}
.hub-shell__logout {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.hub-shell__logout:hover {
  color: var(--text);
}

/* Bottom tab bar — mobile only */
.hub-tabbar {
  display: none;
}
@media (max-width: 700px) {
  .hub-shell__tabs {
    display: none;
  }
  .hub-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    background: rgba(20, 18, 42, 0.97);
    border-top: 1px solid rgba(160, 140, 255, 0.16);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .hub-tabbar__tab {
    flex: 1;
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 7px 4px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-muted);
    font-family: "CeraRound", "Nunito", sans-serif;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 0.02em;
  }
  .hub-tabbar__tab img {
    opacity: 0.55;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .hub-tabbar__tab.is-active {
    color: var(--text);
    background: linear-gradient(180deg, rgba(153, 69, 255, 0.18), rgba(153, 69, 255, 0.04));
  }
  .hub-tabbar__tab.is-active img {
    opacity: 1;
    transform: translateY(-1px) scale(1.08);
  }
  /* keep content clear of the fixed bar */
  body.hub .hub-main {
    padding-bottom: 120px;
  }
}

/* == /components/hub-login-card/style.css == */
/* hub-login-card — centered auth card for login + welcome (set password) */
.hub-login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.hub-login__card {
  width: min(400px, 100%);
  background: linear-gradient(180deg, rgba(30, 27, 60, 0.85) 0%, rgba(20, 18, 42, 0.95) 100%);
  border: 1px solid rgba(160, 140, 255, 0.2);
  border-radius: 28px;
  padding: 40px 32px 34px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(10, 9, 26, 0.7);
  animation: hubRise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hub-login__pawring {
  display: inline-grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin-bottom: 16px;
  background:
    linear-gradient(var(--bg-elev-2), var(--bg-elev-2)) padding-box,
    linear-gradient(135deg, #07edbe, #9945ff, #ff7ec0) border-box;
  border: 3px solid transparent;
}
.hub-login__title {
  font-family: "CeraRound", "Nunito", sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: var(--text);
  margin: 0 0 8px;
}
.hub-login__sub {
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 24px;
}
.hub-login__note {
  color: var(--pink);
  font-size: 14px;
  margin: 0 0 16px;
}
.hub-login__form {
  display: grid;
  gap: 14px;
  text-align: left;
}
.hub-field {
  display: grid;
  gap: 6px;
}
.hub-field__label {
  font-family: "CeraRound", "Nunito", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hub-field__input {
  background: var(--bg);
  border: 1.5px solid rgba(160, 140, 255, 0.25);
  border-radius: 14px;
  color: var(--text);
  padding: 13px 15px;
  font-size: 16px; /* iOS zoom guard */
  font-family: "Nunito", sans-serif;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hub-field__input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(7, 237, 190, 0.18);
}
.hub-login__error {
  color: var(--pink);
  font-size: 14px;
  margin: 0;
}
.hub-login__help {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 22px 0 0;
}
/* Inside a 13px sentence, so it cannot be a 56px block. It is padded to a
   comfortable tap and the real 56px escape hatch is the button on
   hub/link-help.html, which is where every broken link now lands. */
.hub-login__sms {
  display: inline-block;
  padding: 6px 2px;
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hub-login__sms:hover,
.hub-login__sms:focus-visible {
  color: var(--text);
}

/* == /hub.css?v=1 == */
/* Training Hub page styles (clients-only area) — v2 design pass.
   brand.css owns the tokens; this file owns hub atmosphere, layout + widgets.
   Component chrome lives in components/hub-shell and hub-login-card. */

body.hub {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: "Nunito", sans-serif;
  background:
    radial-gradient(55% 38% at 88% -8%, rgba(153, 69, 255, 0.24), transparent 62%),
    radial-gradient(45% 32% at -8% 12%, rgba(7, 237, 190, 0.1), transparent 60%),
    radial-gradient(70% 55% at 50% 115%, rgba(44, 41, 119, 0.55), transparent 68%),
    var(--bg);
  background-attachment: fixed;
}

/* Animated gradient accent — same palindromic teal→violet→pink flow as the hero */
.hub-accent {
  background: linear-gradient(90deg, #07edbe, #9945ff, #ff7ec0, #9945ff, #07edbe);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hubAccentFlow 12s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes hubAccentFlow {
  0% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}
@keyframes hubRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hub-accent { animation: none; }
  .hub-card, .hub-login__card, .hub-main { animation: none !important; }
}

.hub-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 36px 20px 90px;
}
.hub-main--narrow {
  max-width: 700px;
}
.hub-h1 {
  font-family: "CeraRound", "Nunito", sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.1;
  margin: 0 0 10px;
}
.hub-lede {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.55;
  max-width: 52ch;
  margin: 0 0 30px;
}
.hub-loading {
  color: var(--text-muted);
}

/* ---- card grid (dashboard + library) ---- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}
.hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, rgba(30, 27, 60, 0.65) 0%, rgba(20, 18, 42, 0.9) 100%);
  border: 1px solid rgba(160, 140, 255, 0.16);
  border-radius: 22px;
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  animation: hubRise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hub-card:nth-child(1) { animation-delay: 0.02s; }
.hub-card:nth-child(2) { animation-delay: 0.08s; }
.hub-card:nth-child(3) { animation-delay: 0.14s; }
.hub-card:nth-child(4) { animation-delay: 0.2s; }
.hub-card:nth-child(5) { animation-delay: 0.26s; }
.hub-card:nth-child(6) { animation-delay: 0.32s; }
.hub-card:hover {
  border-color: rgba(7, 237, 190, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(153, 69, 255, 0.16);
}
.hub-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.hub-card__num {
  font-family: "CeraRound", "Nunito", sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--light-purple);
}
.hub-card__icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(10, 9, 26, 0.5));
}
.hub-card__name {
  font-family: "CeraRound", "Nunito", sans-serif;
  font-weight: 900;
  font-size: 19px;
  line-height: 1.25;
  margin: 0;
}
.hub-card__excerpt {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hub-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
}
.hub-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hub-dots__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-elev-2);
  border: 1px solid rgba(248, 248, 248, 0.15);
}
.hub-dots__dot--on {
  background: linear-gradient(135deg, #07edbe, #9945ff);
  border-color: transparent;
}
.hub-phase {
  font-family: "CeraRound", "Nunito", sans-serif;
  font-size: 12px;
  font-weight: 900;
  color: var(--light-purple);
  background: rgba(160, 140, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  white-space: nowrap;
}
.hub-note {
  color: var(--lilac);
  background: rgba(241, 224, 255, 0.07);
  border-left: 3px solid var(--mid-purple);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 12px 16px;
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0 0 20px;
}
.hub-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-body);
  background: rgba(30, 27, 60, 0.5);
  border: 1px dashed rgba(160, 140, 255, 0.3);
  border-radius: 22px;
  padding: 40px 24px;
  font-size: 15px;
}

/* ---- chips ---- */
.hub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.hub-chip {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-body);
  background: rgba(30, 27, 60, 0.85);
  border: 1px solid rgba(248, 248, 248, 0.08);
  border-radius: var(--radius-pill);
  padding: 6px 13px;
}
.hub-chip--gear {
  color: var(--teal);
  background: rgba(7, 237, 190, 0.08);
  border-color: rgba(7, 237, 190, 0.25);
}

/* ---- progression stepper (connected track) ---- */
.hub-steps {
  display: flex;
  list-style: none;
  margin: 0 0 26px;
  padding: 18px 8px 14px;
  background: rgba(30, 27, 60, 0.5);
  border: 1px solid rgba(160, 140, 255, 0.14);
  border-radius: 18px;
  overflow-x: auto;
}
.hub-steps__step {
  flex: 1;
  min-width: 88px;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.hub-steps__step::before {
  content: "";
  position: absolute;
  top: 17px;
  right: 50%;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--bg-elev-2);
}
.hub-steps__step:first-child::before {
  display: none;
}
.hub-steps__step--done::before,
.hub-steps__step--current::before {
  background: linear-gradient(90deg, #07edbe, #9945ff);
}
.hub-steps__dot {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: "CeraRound", "Nunito", sans-serif;
  font-weight: 900;
  font-size: 14px;
  background: var(--bg-elev-2);
  color: var(--text-muted);
  border: 2px solid rgba(248, 248, 248, 0.08);
}
.hub-steps__label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  white-space: nowrap;
}
.hub-steps__step--done .hub-steps__dot {
  background: rgba(7, 237, 190, 0.16);
  color: var(--teal);
  border-color: rgba(7, 237, 190, 0.45);
}
.hub-steps__step--current .hub-steps__dot {
  background: linear-gradient(135deg, #07edbe, #9945ff);
  color: #0a091a;
  border-color: transparent;
  box-shadow: 0 0 0 5px rgba(7, 237, 190, 0.14);
}
.hub-steps__step--current .hub-steps__label {
  color: var(--text);
}

/* ---- module page ---- */
.hub-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 14px;
}
.hub-title-row .hub-h1 {
  margin: 0;
}
.hub-title-row__icon {
  width: 58px;
  height: 58px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(10, 9, 26, 0.6));
}
.hub-article {
  background: linear-gradient(180deg, rgba(30, 27, 60, 0.6) 0%, rgba(20, 18, 42, 0.9) 100%);
  border: 1px solid rgba(160, 140, 255, 0.16);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 34px);
  line-height: 1.7;
}
.hub-article h3,
.hub-article h4,
.hub-article h5 {
  font-family: "CeraRound", "Nunito", sans-serif;
  font-weight: 900;
  font-size: 19px;
  margin: 26px 0 12px;
  color: var(--text);
}
.hub-article h3:first-child,
.hub-article h4:first-child,
.hub-article p:first-child {
  margin-top: 0;
}
.hub-article p {
  color: var(--text-body);
  margin: 0 0 15px;
}
.hub-article ul {
  margin: 0 0 15px;
  padding-left: 4px;
  list-style: none;
  color: var(--text-body);
}
.hub-article li {
  margin-bottom: 10px;
  padding-left: 22px;
  position: relative;
}
.hub-article li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #07edbe, #9945ff);
}
.hub-article strong {
  color: var(--text);
}
.hub-article a {
  color: var(--teal);
  font-weight: 700;
}
.hub-video video {
  width: 100%;
  border-radius: 22px;
  margin-bottom: 26px;
  border: 1px solid rgba(160, 140, 255, 0.16);
}
.hub-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 18px;
}
.hub-back:hover {
  color: var(--teal);
}

/* ---- search ---- */
.hub-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(30, 27, 60, 0.85);
  border: 1.5px solid rgba(160, 140, 255, 0.22);
  border-radius: var(--radius-pill);
  padding: 4px 20px;
  margin-bottom: 26px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hub-search:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(7, 237, 190, 0.14);
}
.hub-search__icon {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--text-muted);
}
.hub-search__input {
  flex: 1;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 16px;
  font-family: "Nunito", sans-serif;
  padding: 12px 0;
}
.hub-search__input:focus {
  outline: none;
}
.hub-search__input::placeholder {
  color: var(--text-muted);
}

/* ---- ask ---- */
.hub-thread {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}
.hub-msg-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.hub-msg-row--q {
  justify-content: flex-end;
}
.hub-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    linear-gradient(var(--bg-elev-2), var(--bg-elev-2)) padding-box,
    linear-gradient(135deg, #07edbe, #9945ff, #ff7ec0) border-box;
  border: 2px solid transparent;
}
.hub-avatar img {
  width: 17px;
  height: 17px;
}
.hub-msg {
  border-radius: 20px;
  padding: 14px 18px;
  max-width: 82%;
  line-height: 1.55;
  font-size: 15px;
}
.hub-msg--q {
  background: var(--navy);
  color: var(--text);
  border-bottom-right-radius: 6px;
}
.hub-msg--a {
  background: rgba(30, 27, 60, 0.85);
  border: 1px solid rgba(160, 140, 255, 0.16);
  color: var(--text-body);
  border-bottom-left-radius: 6px;
}
.hub-msg--escalate {
  border-color: rgba(255, 126, 192, 0.45);
}
.hub-msg--escalate .hub-msg__cta {
  display: inline-block;
  margin-top: 12px;
  /* Solid violet, not the mesh: white on the teal stop measured ~1.5:1. */
  background: var(--violet);
  color: #ffffff;
  font-family: "CeraRound", "Nunito", sans-serif;
  font-weight: 900;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  text-decoration: none;
  font-size: 14px;
}
.hub-msg--escalate .hub-msg__cta:hover {
  background: #8f02ff;
}
.hub-msg--pending {
  color: var(--text-muted);
  font-style: italic;
}
.hub-ask {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.hub-ask__input {
  flex: 1;
  background: rgba(30, 27, 60, 0.85);
  border: 1.5px solid rgba(160, 140, 255, 0.22);
  border-radius: 20px;
  color: var(--text);
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  padding: 14px 16px;
  resize: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hub-ask__input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(7, 237, 190, 0.14);
}

/* ---- buttons (site CTA recipe: ring | dark gap | solid violet fill) ---- */
.hub-btn {
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: "CeraRound", "Nunito", sans-serif;
  font-weight: 900;
}
.hub-btn--primary {
  position: relative;
  padding: 3px;
  border: 3px solid var(--light-purple);
  border-radius: 999px;
  background: var(--bg);
  transition: filter 160ms ease, transform 160ms ease;
}
.hub-btn--primary:hover {
  filter: brightness(1.08);
}
.hub-btn--primary:active {
  transform: scale(0.98);
}
.hub-btn__inner {
  display: block;
  border-radius: 999px;
  padding: 12px 28px;
  /* Solid violet fill, NOT the teal→violet→pink mesh: white text over the teal
     stop measured ~1.5:1 (invisible). var(--violet) puts it at ~4.5:1. */
  background: var(--violet);
  color: #ffffff;
  font-size: 15px;
  text-align: center;
}
form .hub-btn--primary {
  width: 100%;
}
.hub-btn--ghost {
  background: none;
  border: 1.5px solid rgba(248, 248, 248, 0.28);
  border-radius: 999px;
  color: var(--text);
  padding: 14px 26px;
  font-size: 15px;
  transition: border-color 0.15s ease;
}
.hub-btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.hub-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
