:root {
  --tsp-red: #d11414;
  --tsp-red-dark: #991b1b;
  --tsp-blue: #14338c;
  --tsp-gold: #ffc700;
  --fb: "Sora", system-ui, sans-serif;
  --fd: "Literata", Georgia, serif;
  --fm: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

.elec-bar--tsp {
  background: var(--tsp-blue);
  color: #fff;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 14px;
  font-size: 13px;
}
.elec-bar--tsp b { color: var(--tsp-gold); font-weight: 800; }
.tri-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 4px; }
.tri-strip i:nth-child(1){background:var(--tsp-gold)}
.tri-strip i:nth-child(2){background:var(--tsp-red)}
.tri-strip i:nth-child(3){background:var(--tsp-blue)}
.shell-flash { max-width: 720px; margin: 12px auto; }

/* Landing */
body.landing-page { background: #1c1917; color: #fff; }
body.landing-page .shell-flash { position: relative; z-index: 20; }
.land { min-height: calc(100vh - 40px); display: flex; flex-direction: column; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1c1917 0%, #292524 40%, #7f1d1d 100%); font-family: var(--fb); }
.land__mesh { position:absolute; inset:0; pointer-events:none;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0, rgba(255,255,255,.02) 1px, transparent 1px, transparent 22px); }
.land__glow { position:absolute; border-radius:50%; pointer-events:none; }
.land__glow--tr { top:-100px; right:-100px; width:400px; height:400px; background: rgba(209,20,20,.18); }
.land__glow--bl { bottom:-120px; left:-80px; width:360px; height:360px; background: rgba(255,255,255,.04); }
.land__nav, .land__hero, .land__foot { position: relative; z-index: 2; }
.land__nav { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:20px 32px; flex-wrap:wrap; }
.land__brand { display:flex; align-items:center; gap:12px; }
.land__logo { height:44px; filter: brightness(0) invert(1); }
.land__brand-name { font-family: var(--fd); letter-spacing: 1.5px; font-size: 18px; }
.land__brand-tag { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.45); }
.land__nav-actions { display:flex; gap:10px; }
.land__btn { padding:8px 20px; border-radius:8px; font-weight:600; font-size:13px; text-decoration:none; color:#fff; }
.land__btn--ghost { background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.2); }
.land__btn--red { background: var(--tsp-red); border: 1.5px solid var(--tsp-red); }
.land__hero { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:40px 24px 28px; }
.land__hero-logo { height:100px; filter: brightness(0) invert(1) drop-shadow(0 8px 32px rgba(209,20,20,.4)); margin-bottom:28px; }
.land__hero h1 { font-family: var(--fd); font-size: clamp(48px, 8vw, 88px); letter-spacing: 3px; line-height:1; margin:0 0 16px; }
.land__pill { display:inline-block; background: var(--tsp-red); color:#fff; font-family: var(--fd); font-size: clamp(20px,3.5vw,32px); letter-spacing:4px; padding:6px 28px; border-radius:4px; margin-bottom:28px; }
.land__lead { color: rgba(255,255,255,.65); max-width:520px; margin:0 auto 40px; line-height:1.8; font-size: clamp(14px,2vw,18px); }
.land__cta { display:flex; gap:16px; flex-wrap:wrap; justify-content:center; }
.land__cta-btn { padding:16px 40px; border-radius:12px; font-family: var(--fd); font-size:20px; letter-spacing:1.5px; text-decoration:none; color:#fff; }
.land__cta-btn--fill { background: var(--tsp-red); box-shadow: 0 8px 32px rgba(209,20,20,.4); }
.land__cta-btn--line { background: transparent; border: 2px solid rgba(255,255,255,.4); }
.land__stats { display:flex; flex-wrap:wrap; justify-content:center; margin-top:56px; }
.land__stats > div { padding:20px 36px; text-align:center; border-left:1px solid rgba(255,255,255,.12); }
.land__stats > div:first-child { border-left: none; }
.land__stats b { display:block; font-family: var(--fd); font-size:36px; color: var(--tsp-red); line-height:1; }
.land__stats span { font-size:11px; color: rgba(255,255,255,.45); text-transform:uppercase; letter-spacing:1.2px; }
.land__register-note { margin-top:28px; font-size:13px; color: rgba(255,255,255,.45); }
.land__register-note a { color: var(--tsp-gold); }
.land__foot { text-align:center; padding:20px; border-top:1px solid rgba(255,255,255,.08); font-size:12px; color: rgba(255,255,255,.3); }
.land__foot a { color: rgba(255,255,255,.45); }

/* Member forms */
.mp-wrap { min-height: calc(100vh - 48px); display:grid; place-items:center; padding:28px 16px; background: #f7f8fb; }
.mp-wrap--wide { align-items: start; }
.mp-card { width: min(440px, 100%); background:#fff; border-radius:18px; padding:28px 26px 22px; box-shadow: 0 18px 50px rgba(20,51,140,.12); border:1px solid #e7e5e4; }
.mp-card--form { width: min(760px, 100%); }
.mp-logo { display:flex; gap:12px; align-items:center; text-decoration:none; color:inherit; margin-bottom:18px; }
.mp-logo img { width:48px; height:48px; }
.mp-logo strong { display:block; font-size:14px; letter-spacing:.04em; }
.mp-logo small { color:#78716c; }
.mp-eyebrow { margin:0; color: var(--tsp-red); font-size:12px; font-weight:800; letter-spacing:.08em; }
.mp-card h1 { margin:6px 0 10px; font-family: var(--fd); color: var(--tsp-blue); font-size: clamp(1.55rem, 3vw, 2rem); letter-spacing: -0.02em; font-weight: 700; }
.tri-line { width:72px; height:4px; display:grid; grid-template-columns:1fr 1fr 1fr; margin:0 0 14px; }
.tri-line i:nth-child(1){background:var(--tsp-gold)} .tri-line i:nth-child(2){background:var(--tsp-red)} .tri-line i:nth-child(3){background:var(--tsp-blue)}
.mp-lead { color:#78716c; font-size:14px; line-height:1.55; margin:0 0 18px; }
.mp-form { display:grid; gap:14px; }
.mp-form--grid { grid-template-columns: 1fr 1fr; }
@media (max-width:720px){ .mp-form--grid { grid-template-columns:1fr; } }
.mp-form label { display:grid; gap:6px; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color: var(--tsp-blue); }
.mp-form input, .mp-form select { font: inherit; text-transform:none; font-weight:500; letter-spacing:0; padding:12px 14px; border-radius:10px; border:1px solid #d6d3d1; color:#1c1917; }
.mp-check { grid-column: 1 / -1; display:flex !important; flex-direction:row; align-items:flex-start; gap:10px; text-transform:none; font-weight:500; color:#44403c; }
.mp-check input { width:auto; margin-top:3px; }
.mp-submit { grid-column: 1 / -1; background: var(--tsp-red); color:#fff; border:0; border-radius:12px; padding:14px 18px; font-weight:800; font-size:15px; cursor:pointer; }
.mp-links { text-align:center; font-size:13px; color:#78716c; margin:12px 0 0; }
.mp-links a { color: var(--tsp-blue); font-weight:700; }
.mp-foot { text-align:center; font-size:12px; color:#a8a29e; margin:18px 0 0; }
.mp-dash { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; }
.mp-dash__head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; flex-wrap:wrap; margin-bottom:18px; }
.mp-dl { display:grid; gap:10px; margin:0; }
.mp-dl > div { display:grid; grid-template-columns: 120px 1fr; gap:8px; font-size:14px; }
.mp-dl dt { color:#78716c; margin:0; } .mp-dl dd { margin:0; font-weight:600; }

/* Help AI */
.help-ai { position: fixed; right: 18px; bottom: 18px; z-index: 80; font-family: var(--fb); }
.help-ai__fab { background: var(--tsp-red); color:#fff; border: 2px solid var(--tsp-gold); border-radius:999px; padding:12px 18px; font-weight:800; cursor:pointer; box-shadow: 0 10px 28px rgba(209,20,20,.35); }
.help-ai__fab.is-open { opacity:.35; }
.help-ai__panel { width: min(380px, calc(100vw - 28px)); max-height: min(70vh, 560px); background:#fff; border-radius:18px; border:1px solid #e7e5e4; box-shadow: 0 22px 60px rgba(0,0,0,.22); display:flex; flex-direction:column; overflow:hidden; margin-bottom:10px; }
.help-ai__head { display:flex; justify-content:space-between; gap:10px; padding:14px 14px 10px; background: var(--tsp-blue); color:#fff; }
.help-ai__head small { display:block; opacity:.75; font-size:11px; }
.help-ai__x { background:transparent; border:0; color:#fff; font-size:22px; cursor:pointer; }
.help-ai__topics, .help-ai__all { display:flex; flex-wrap:wrap; gap:8px; padding:12px; max-height:140px; overflow:auto; border-bottom:1px solid #f0f0f0; }
.help-ai__all { max-height:220px; }
.help-ai__chip { border:1px solid #e7e5e4; background:#fafaf9; border-radius:999px; padding:7px 10px; font-size:12px; cursor:pointer; text-align:left; }
.help-ai__chip--more { border-color: var(--tsp-red); color: var(--tsp-red); font-weight:700; }
.help-ai__thread { flex:1; overflow:auto; padding:12px; display:grid; gap:8px; min-height:120px; }
.help-ai__msg { padding:10px 12px; border-radius:12px; font-size:13px; line-height:1.45; white-space:pre-wrap; }
.help-ai__msg--user { background:#fee2e2; justify-self:end; max-width:90%; }
.help-ai__msg--bot { background:#f5f5f4; justify-self:start; max-width:95%; }
.help-ai__form { display:flex; gap:8px; padding:10px; border-top:1px solid #f0f0f0; }
.help-ai__form input { flex:1; border:1px solid #d6d3d1; border-radius:10px; padding:10px 12px; }
.help-ai__form button { background: var(--tsp-red); color:#fff; border:0; border-radius:10px; padding:10px 14px; font-weight:700; cursor:pointer; }
.help-ai__form button:disabled { opacity:.45; cursor:not-allowed; }

/* Geo cascade on signup */
.mp-geo { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
@media (max-width:720px){ .mp-geo { grid-template-columns:1fr; } }
.mp-geo-note { grid-column:1/-1; margin:4px 0 0; font-size:12px; color:#78716c; }
.mp-geo-wrap { margin:0; }
