:root {
  --bg: #080b12;
  --nav: #0f1420;
  --nav-2: #151b2a;
  --paper: #f6f8fc;
  --surface: #ffffff;
  --surface-soft: #eef2f8;
  --ink: #101624;
  --ink-soft: #2c3446;
  --muted: #657084;
  --muted-dark: #a7b1c2;
  --line: rgba(16, 22, 36, 0.12);
  --line-dark: rgba(255, 255, 255, 0.11);
  --blue: #3157ff;
  --blue-dark: #1f3ed6;
  --cyan: #09b7d6;
  --rose: #e84c69;
  --slate: #20293b;
  --shadow: 0 24px 70px rgba(9, 15, 28, 0.12);
  --shadow-tight: 0 14px 34px rgba(9, 15, 28, 0.1);
  --radius: 8px;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--blue);
}

[hidden],
.internal-only[hidden] {
  display: none !important;
}

.app-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-width: 0;
  min-height: 100vh;
  background: var(--paper);
}

.sidebar {
  position: sticky;
  top: 0;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-color: rgba(147, 197, 253, 0.45) transparent;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  color: #fff;
  border-right: 1px solid var(--line-dark);
  background:
    linear-gradient(180deg, rgba(49, 87, 255, 0.18), transparent 290px),
    linear-gradient(145deg, #090c14, #121827);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(9, 183, 214, 0.45);
  border-radius: 8px;
  color: #f8fbff;
  background:
    linear-gradient(180deg, rgba(49, 87, 255, 0.28), rgba(9, 183, 214, 0.08)),
    #0c1220;
  box-shadow: 0 16px 40px rgba(49, 87, 255, 0.22);
}

.brand-mark span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}

.brand span {
  color: var(--muted-dark);
  font-size: 0.84rem;
}

.journey-card,
.sidebar-panel {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.journey-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.journey-card span,
.mini-label,
.context-label,
.section-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.journey-card span,
.mini-label {
  color: #9ac7ff;
}

.journey-card strong {
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.35;
}

.journey-guide-button {
  width: 100%;
  margin-top: 4px;
  justify-content: center;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.sidebar-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.sidebar-link-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 0 13px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.055);
  font-weight: 800;
  cursor: pointer;
}

.sidebar-link-button:hover {
  border-color: rgba(33, 190, 230, 0.42);
  background: rgba(255, 255, 255, 0.09);
}

.mail-badge {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--rose);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted-dark);
  background: transparent;
  text-align: left;
  font-weight: 650;
}

.nav-item:hover,
.nav-item.is-active {
  color: #fff;
  border-color: rgba(49, 87, 255, 0.38);
  background: rgba(49, 87, 255, 0.12);
}

.nav-icon {
  display: grid;
  min-width: 32px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(9, 183, 214, 0.4);
  border-radius: 7px;
  color: #cdefff;
  background: rgba(9, 183, 214, 0.08);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
}

.sidebar-panel {
  margin-top: auto;
  padding: 16px;
}

.sidebar-panel p {
  margin: 10px 0 14px;
  color: var(--muted-dark);
  font-size: 0.88rem;
  line-height: 1.5;
}

.sidebar-panel .ghost-button {
  width: 100%;
  margin-top: 8px;
}

.workspace {
  min-width: 0;
  padding: 30px;
  background:
    radial-gradient(circle at 20% 0%, rgba(49, 87, 255, 0.08), transparent 35%),
    radial-gradient(circle at 92% 20%, rgba(9, 183, 214, 0.09), transparent 35%),
    var(--paper);
}

.topbar,
.section-heading,
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  margin-bottom: 22px;
}

.topbar h1,
.section-heading h2,
.hero-copy h2,
.panel h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: 0;
}

.topbar h1 {
  margin-top: 5px;
  font-size: clamp(1.65rem, 2.2vw, 2.25rem);
}

.section-heading h2 {
  margin-top: 4px;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.context-label {
  color: var(--blue-dark);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-dark);
}

.section-kicker::before,
.context-label::before,
.mini-label::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 2px;
  background: currentColor;
}

.topbar-actions,
.hero-actions,
.section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.primary-button {
  border: 1px solid var(--blue-dark);
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(180deg, #4268ff, var(--blue-dark));
  box-shadow: 0 16px 30px rgba(49, 87, 255, 0.24);
}

.secondary-button,
.secondary-link {
  border: 1px solid var(--line);
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.secondary-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.ghost-button {
  border: 1px solid var(--line);
  padding: 0 13px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.62);
}

.ghost-button-dark {
  color: #dbeafe;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.icon-button {
  width: 42px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.primary-button svg,
.secondary-button svg,
.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover,
.secondary-link:hover {
  transform: translateY(-1px);
  border-color: rgba(49, 87, 255, 0.38);
}

.view {
  display: none;
}

.view.is-visible {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.82fr);
  gap: 18px;
  min-width: 0;
}

.hero-panel,
.panel,
.focus-card,
.workflow-grid article,
.kpi-card,
.offer-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-tight);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(330px, 0.86fr) minmax(420px, 1.14fr);
  min-width: 0;
  overflow: hidden;
  min-height: 430px;
  background: #0e1421;
}

.hero-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 34px;
  color: #fff;
}

.hero-copy .section-kicker {
  color: #9ac7ff;
}

.hero-copy h2 {
  margin-top: 14px;
  color: #fff;
  font-size: clamp(2rem, 3vw, 3.05rem);
  line-height: 1.02;
}

.hero-copy p {
  max-width: 620px;
  margin: 20px 0 26px;
  color: #c8d1df;
  font-size: 1.02rem;
  line-height: 1.58;
}

.club-preview {
  position: relative;
  min-width: 0;
  padding: 28px;
  background: #f7f9fc;
  color: var(--ink);
}

.club-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.club-preview-header > div {
  min-width: 0;
}

.club-preview-header span,
.club-pitch span,
.club-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.club-preview-header strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.club-preview-header small {
  flex-basis: 100%;
  max-width: 100%;
  margin-left: 0;
  color: var(--blue-dark);
  font-weight: 800;
  text-align: left;
  white-space: normal;
}

.club-preview-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.club-pitch,
.club-mini-field,
.club-stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.club-pitch {
  grid-column: span 2;
  padding: 18px;
}

.club-pitch strong {
  display: block;
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.club-pitch p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.48;
}

.club-mini-field {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, #1a6c49, #247a54);
  background-size: 58px 58px, 58px 58px, auto;
}

.club-mini-field::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 5px;
}

.club-mini-field::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 22px;
  bottom: 22px;
  width: 3px;
  background: rgba(255, 255, 255, 0.78);
}

.club-mini-field span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--blue);
  z-index: 1;
}

.club-mini-field span:nth-child(1) { left: 28%; top: 34%; }
.club-mini-field span:nth-child(2) { left: 62%; top: 52%; background: var(--rose); }
.club-mini-field span:nth-child(3) { left: 44%; top: 68%; background: var(--cyan); }

.club-mini-field.sport-cycling {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, #183346, #1f6d58);
  background-size: 44px 44px, auto;
}

.club-mini-field.sport-cycling::before {
  inset: 34px 24px;
  border: 0;
  border-top: 4px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  transform: rotate(-12deg);
  box-shadow: 0 28px 0 rgba(255, 255, 255, 0.5), 0 58px 0 rgba(255, 255, 255, 0.24);
}

.club-mini-field.sport-cycling::after {
  left: 14%;
  right: 14%;
  top: 54%;
  bottom: auto;
  width: auto;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  transform: rotate(10deg);
}

.club-mini-field.sport-cycling span:nth-child(1) { left: 23%; top: 44%; }
.club-mini-field.sport-cycling span:nth-child(2) { left: 57%; top: 35%; }
.club-mini-field.sport-cycling span:nth-child(3) { left: 70%; top: 67%; }

.club-mini-field.sport-tennis {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, #2c6d63, #326f4e);
  background-size: 68px 68px, 68px 68px, auto;
}

.club-mini-field.sport-tennis::before {
  inset: 24px 42px;
  border-radius: 4px;
}

.club-mini-field.sport-tennis::after {
  left: 42px;
  right: 42px;
  top: 50%;
  bottom: auto;
  width: auto;
  height: 3px;
}

.club-mini-field.sport-generic {
  background:
    radial-gradient(circle at 28% 36%, rgba(255, 255, 255, 0.16), transparent 19%),
    radial-gradient(circle at 70% 70%, rgba(9, 183, 214, 0.2), transparent 22%),
    linear-gradient(135deg, #17243a, #1c4b55);
}

.club-mini-field.sport-generic::before {
  inset: 32px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.62);
}

.club-mini-field.sport-generic::after {
  left: 18%;
  right: 18%;
  top: 50%;
  bottom: auto;
  width: auto;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transform: rotate(-18deg);
}

.club-stat {
  padding: 18px;
}

.club-stat strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.65rem;
}

.priority-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(49, 87, 255, 0.16);
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(49, 87, 255, 0.08);
  font-weight: 800;
}

.offer-target {
  display: block;
  margin: 6px 0 8px;
  color: var(--blue-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(8, 11, 18, 0.94), rgba(12, 22, 42, 0.9)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 118px);
  backdrop-filter: blur(14px);
}

.auth-screen.is-visible {
  display: grid;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(340px, 440px);
  width: min(980px, 100%);
  min-height: 640px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.38);
}

.auth-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 34px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(15, 20, 32, 0.64), rgba(8, 11, 18, 0.94)),
    linear-gradient(135deg, #111827, #12305a 58%, #0e7490);
}

.auth-showcase::before {
  content: "";
  position: absolute;
  inset: 98px 34px 118px;
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(rgba(147, 197, 253, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 197, 253, 0.14) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.5;
  pointer-events: none;
}

.auth-showcase > * {
  position: relative;
}

.auth-showcase-copy {
  display: grid;
  gap: 12px;
  max-width: 430px;
}

.auth-showcase-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.02;
}

.auth-showcase-copy p {
  margin: 0;
  max-width: 390px;
  color: #dbeafe;
  font-size: 1.02rem;
  line-height: 1.55;
}

.auth-product-card {
  display: grid;
  gap: 12px;
  width: min(360px, 100%);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
}

.auth-product-card div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-product-card div:last-child {
  display: grid;
  padding-bottom: 0;
  border-bottom: 0;
}

.auth-product-card span {
  color: #bfdbfe;
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-product-card strong {
  color: #fff;
}

.auth-card {
  display: grid;
  align-content: center;
  gap: 15px;
  width: 100%;
  min-width: 0;
  padding: 34px;
  background: #fff;
}

.auth-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-card-header {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.auth-tabs button.is-active {
  color: #fff;
  background: linear-gradient(180deg, #3157ff, #1f3ed6);
  box-shadow: 0 10px 24px rgba(49, 87, 255, 0.2);
}

.auth-submit-button {
  width: 100%;
  min-height: 46px;
}

.auth-submit-button[disabled],
.google-auth-button[disabled] {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.google-auth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  font-weight: 850;
}

.google-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: #111827;
  font-weight: 900;
}

.auth-status {
  min-height: 0;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.auth-status.is-error {
  padding: 10px 12px;
  border: 1px solid rgba(180, 35, 24, 0.18);
  border-radius: var(--radius);
  color: #b42318;
  background: rgba(254, 242, 242, 0.95);
}

.auth-status.is-success {
  padding: 10px 12px;
  border: 1px solid rgba(4, 120, 87, 0.18);
  border-radius: var(--radius);
  color: #047857;
  background: rgba(236, 253, 245, 0.95);
}

.auth-status.is-loading {
  padding: 10px 12px;
  border: 1px solid rgba(49, 87, 255, 0.16);
  border-radius: var(--radius);
  color: var(--blue-dark);
  background: rgba(49, 87, 255, 0.07);
}

.auth-brand .brand-mark {
  background: #0c1220;
}

.auth-brand strong,
.auth-brand span {
  color: #fff;
}

.auth-card .fine-print {
  text-align: center;
}

.auth-verified-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -10px 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(4, 120, 87, 0.18);
  border-radius: var(--radius);
  background: #ecfdf5;
  box-shadow: var(--shadow-tight);
}

.auth-verified-banner div {
  display: grid;
  gap: 3px;
}

.auth-verified-banner strong {
  color: #065f46;
}

.auth-verified-banner span {
  color: #315144;
  line-height: 1.45;
}

.auth-verified-banner .icon-button {
  flex: 0 0 auto;
  width: 36px;
  min-height: 36px;
  color: #065f46;
  background: rgba(255, 255, 255, 0.7);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(8, 11, 18, 0.62);
}

.modal-backdrop.is-visible {
  display: grid;
}

.sponsor-detail-modal {
  width: min(900px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow-y: auto;
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.sponsor-detail-modal header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.sponsor-detail-modal h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
}

#closeSponsorModal {
  font-size: 1.4rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.detail-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
}

.detail-card p {
  margin: 6px 0;
  color: var(--muted);
  line-height: 1.5;
}

.detail-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.detail-timeline {
  display: grid;
  gap: 8px;
}

.detail-timeline div {
  padding: 10px;
  border-left: 3px solid var(--blue);
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.focus-card,
.panel {
  padding: 20px;
  background: rgba(255, 255, 255, 0.86);
}

.focus-card {
  display: grid;
  align-content: start;
  gap: 16px;
  color: #fff;
  background: linear-gradient(180deg, #101624, #0c111d);
}

.focus-card .section-kicker {
  color: #9ac7ff;
}

.focus-card p {
  margin: 0;
  color: #c8d1df;
  line-height: 1.58;
}

.fact-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.fact-list div {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.fact-list dt {
  color: #9fb0c6;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fact-list dd {
  margin: 5px 0 0;
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
}

.workflow-grid,
.kpi-grid,
.offer-grid,
.account-grid {
  display: grid;
  gap: 14px;
}

.workflow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workflow-grid article {
  padding: 18px;
  background: #fff;
}

.workflow-grid > article > span {
  display: inline-grid;
  width: auto;
  min-width: 34px;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 0 9px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--blue);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.workflow-grid > article > strong,
.home-status-grid article div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
}

.workflow-grid > article > p,
.home-status-grid article div span {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.48;
}

.home-status-grid article div span {
  display: block;
  margin-top: 8px;
}

.kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.offer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kpi-card,
.offer-card {
  min-height: 132px;
  padding: 18px;
  background: #fff;
}

.kpi-card strong,
.offer-card strong {
  display: block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
}

.kpi-card span,
.offer-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.kpi-card:nth-child(1),
.offer-card:nth-child(1) {
  border-top: 4px solid var(--blue);
}

.kpi-card:nth-child(2),
.offer-card:nth-child(2) {
  border-top: 4px solid var(--cyan);
}

.kpi-card:nth-child(3),
.offer-card:nth-child(3) {
  border-top: 4px solid var(--rose);
}

.kpi-card:nth-child(4),
.offer-card:nth-child(4) {
  border-top: 4px solid var(--slate);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(310px, 0.72fr) minmax(0, 1.38fr);
  gap: 18px;
  align-items: start;
}

.wide-panel {
  min-width: 0;
}

.panel h3 {
  font-size: 1.22rem;
}

.muted-copy,
.panel p {
  color: var(--muted);
  line-height: 1.55;
}

.fine-print {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.form-panel {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

input,
select,
textarea,
.search-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(91, 107, 133, 0.58);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(49, 87, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(49, 87, 255, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.club-detect-panel,
.detect-result,
.local-recommendation {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.club-detect-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.club-detect-panel strong,
.detect-result strong,
.local-recommendation strong {
  font-family: var(--font-display);
}

.club-detect-panel span,
.detect-result span,
.local-recommendation span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.detect-result a {
  font-weight: 800;
}

.show-more-button {
  justify-self: start;
}

.activation-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.filter-chip {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ink-soft);
  background: #fff;
  font-weight: 800;
}

.filter-chip.is-active {
  color: #fff;
  border-color: var(--blue-dark);
  background: var(--blue);
}

.action-list,
.funnel,
.kanban,
.local-results,
.video-grid,
.roadmap {
  display: grid;
  gap: 12px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 112px minmax(80px, 1fr) 86px;
  gap: 10px;
  align-items: center;
}

.funnel-row strong {
  font-size: 0.9rem;
}

.bar-track {
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 22, 36, 0.08);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.action-item,
.sponsor-card,
.local-card,
.video-card,
.timeline li,
.account-metrics div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.action-item strong,
.sponsor-card strong,
.local-card strong,
.video-card strong,
.timeline strong {
  display: block;
  font-family: var(--font-display);
}

.action-item span,
.sponsor-card span,
.local-card span,
.video-card span,
.timeline span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.mail-status {
  margin: 12px 0;
  background: var(--surface-soft);
}

h3 .mail-badge {
  vertical-align: middle;
  margin-left: 6px;
}

.local-card {
  display: grid;
  gap: 10px;
}

.local-card footer,
.sponsor-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.sponsor-card {
  min-width: 0;
}

.sponsor-card strong {
  overflow-wrap: anywhere;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-pill,
.score-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(49, 87, 255, 0.16);
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(49, 87, 255, 0.08);
  font-weight: 800;
}

.status-pill.is-success {
  color: #047857;
  border-color: rgba(4, 120, 87, 0.2);
  background: rgba(16, 185, 129, 0.12);
}

.kanban {
  grid-template-columns: repeat(3, minmax(190px, 1fr));
}

.kanban-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 224px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.kanban-column h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
}

.stage-select-small {
  width: 105px;
  min-width: 105px;
  flex: 1 1 105px;
  min-height: 35px;
  padding: 6px 24px 6px 9px;
  font-size: 0.82rem;
}

.sponsor-card footer .ghost-button {
  flex: 1 1 92px;
}

.offer-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.legal-modal-text {
  margin: 0;
  white-space: pre-wrap;
  color: var(--muted);
  font: inherit;
  line-height: 1.55;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

td span {
  color: var(--muted);
}

.delete-button {
  min-height: 34px;
  border: 1px solid rgba(232, 76, 105, 0.36);
  border-radius: 7px;
  color: #b4223f;
  background: rgba(232, 76, 105, 0.08);
  font-weight: 750;
}

.offer-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.offer-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
}

.strategy-note,
.public-page-preview {
  margin-bottom: 14px;
  padding: 15px;
  border: 1px solid rgba(49, 87, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(49, 87, 255, 0.06);
  color: var(--ink-soft);
  line-height: 1.5;
}

.output-area {
  min-height: 420px;
  line-height: 1.55;
}

.legal-output {
  min-height: 320px;
}

.timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  border-left: 4px solid var(--blue);
}

.video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-card {
  min-height: 154px;
}

.video-card-clickable {
  align-content: start;
  display: grid;
  gap: 8px;
}

.video-card-clickable .ghost-button {
  justify-self: start;
  margin-top: 4px;
}

.video-card small {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(49, 87, 255, 0.08);
  font-weight: 800;
}

.account-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.account-metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.account-metrics span {
  color: var(--muted);
}

.account-metrics + .primary-button {
  margin-top: 14px;
}

.billing-panel {
  align-content: start;
}

.plan-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0 10px;
}

.price-line strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  color: var(--ink);
}

.price-line span {
  color: var(--muted);
  font-weight: 800;
}

.plan-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.plan-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

.plan-list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cyan);
}

.integration-list {
  display: grid;
  gap: 8px;
}

.integration-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.integration-row:last-child {
  border-bottom: 0;
}

.integration-row strong {
  font-size: 0.92rem;
}

.integration-row span {
  flex: 0 0 auto;
}

.legal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 18px;
  padding: 18px 0 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10;
  max-width: 340px;
  padding: 13px 15px;
  border-radius: var(--radius);
  color: #fff;
  background: #101624;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1160px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .sidebar-panel {
    margin-top: 0;
  }

  .nav-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-grid,
  .content-grid,
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .workflow-grid,
  .kpi-grid,
  .offer-grid,
  .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-shell {
    grid-template-columns: 1fr;
    width: min(520px, 100%);
    min-height: 0;
  }

  .auth-showcase {
    display: none;
  }
}

@media (max-width: 760px) {
  .workspace,
  .sidebar {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    padding: 16px;
  }

  .workspace {
    overflow-x: hidden;
  }

  .topbar,
  .section-heading,
  .hero-grid,
  .hero-panel,
  .hero-copy,
  .product-preview,
  .focus-card,
  .panel,
  .workflow-grid article,
  .kpi-card,
  .offer-card,
  .panel-header {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .topbar,
  .section-heading,
  .panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .panel .panel-header {
    width: 100%;
    max-width: 100%;
  }

  .topbar-actions,
  .hero-actions,
  .section-actions,
  .button-row,
  .legal-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .secondary-link,
  .ghost-button {
    width: 100%;
  }

  .nav-list {
    display: flex;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-item {
    flex: 0 0 170px;
  }

  .journey-card,
  .sidebar-panel {
    display: none;
  }

  .workflow-grid,
  .kpi-grid,
  .offer-grid,
  .account-grid,
  .video-grid,
  .kanban,
  .club-detect-panel,
  .form-row,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 0;
  }

  .hero-copy {
    padding: 24px;
  }

  .hero-copy h2 {
    width: min(290px, calc(100vw - 84px));
    max-width: min(290px, calc(100vw - 84px));
    font-size: 1.9rem;
  }

  .hero-copy p {
    width: min(290px, calc(100vw - 84px));
    max-width: min(290px, calc(100vw - 84px));
  }

  .hero-copy .primary-button,
  .hero-copy .secondary-button {
    width: min(290px, calc(100vw - 84px));
    max-width: min(290px, calc(100vw - 84px));
  }

  .product-preview {
    padding: 18px;
  }

  .club-preview,
  .product-preview {
    padding: 18px;
  }

  .club-preview-body,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .club-pitch {
    grid-column: span 1;
  }

  .preview-map,
  .club-mini-field {
    min-height: 230px;
  }

  .funnel-row {
    grid-template-columns: 86px minmax(80px, 1fr) 72px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-screen {
    padding: 12px;
  }

  .auth-shell,
  .auth-card {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .auth-card {
    padding: 22px;
  }

  .auth-card h2 {
    font-size: 1.7rem;
  }

  .auth-verified-banner {
    align-items: stretch;
    flex-direction: column;
  }
}
