:root {
  --club-red: #ed1c24;
  --ink: #202124;
  --muted: #6b7280;
  --line: #e7e7e7;
  --soft: #f7f7f8;
}

body {
  background: #fafafa;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.club-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.club-header .container-fluid {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link img {
  width: 330px;
  max-width: 70vw;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-actions a,
.header-actions button {
  color: var(--club-red);
  background: transparent;
  border: 0;
  font-weight: 700;
  text-decoration: none;
}

.public-hero {
  padding: 72px 0;
  background: linear-gradient(180deg, #fff 0%, #f7f7f8 100%);
}

.eyebrow {
  color: var(--club-red);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 800;
  letter-spacing: 0;
}

h2 {
  font-size: 1.15rem;
  font-weight: 800;
}

.surface,
.auth-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.analytics-card {
  min-height: 340px;
}

.process-strip {
  display: grid;
  gap: 10px;
}

.process-strip span {
  background: #fff;
  border-left: 4px solid var(--club-red);
  padding: 14px 16px;
  font-weight: 700;
}

.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.action-primary {
  align-items: center;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 800;
  justify-content: center;
  min-height: 52px;
  min-width: 172px;
  padding-inline: 22px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

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

.kpi {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
  min-height: 170px;
  padding: 28px 30px;
  position: relative;
  overflow: hidden;
}

.kpi::before {
  background: var(--accent, var(--club-red));
  border-radius: 20px 0 0 20px;
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  top: 0;
  width: 7px;
}

.kpi.featured {
  --accent: #2563eb;
}

.kpi.risk {
  --accent: #f59e0b;
}

.kpi.success {
  --accent: #16a34a;
}

.kpi span {
  display: block;
  color: #64748b;
  font-size: 1.08rem;
  font-weight: 700;
}

.kpi strong {
  display: block;
  color: #0f172a;
  font-size: 2.35rem;
  line-height: 1;
  margin-top: 12px;
}

.kpi small {
  color: #64748b;
  display: block;
  font-size: 1rem;
  line-height: 1.45;
  margin-top: 8px;
}

.section-heading {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading span {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.funnel-chart {
  display: grid;
  gap: 18px;
}

.chart-panel {
  background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
  border: 1px solid #eef0f3;
  border-radius: 8px;
  height: 292px;
  padding: 18px 20px 12px;
  position: relative;
}

.chart-panel canvas {
  display: block;
  height: 100% !important;
  width: 100% !important;
}

.phase-list {
  display: grid;
  gap: 12px;
}

.phase-row {
  align-items: center;
  background: #fafafa;
  border: 1px solid #eef0f3;
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 12px;
  padding: 13px 14px;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.phase-row:hover,
.phase-row.selected {
  border-color: #f3a2a6;
  box-shadow: 0 12px 28px rgba(237, 28, 36, .10);
  color: var(--ink);
  transform: translateY(-1px);
}

.phase-row i {
  border-radius: 999px;
  display: block;
  height: 10px;
  width: 10px;
}

.phase-row span {
  font-weight: 800;
}

.phase-row strong {
  color: var(--club-red);
  font-size: 1.05rem;
}

.filter-note {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
  margin: 6px 0 0;
}

.clear-filter {
  color: var(--club-red);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.clear-filter:hover {
  color: #a90008;
}

.funnel-row {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr 48px;
  gap: 14px;
}

.funnel-label {
  color: #343840;
  font-weight: 800;
}

.funnel-track,
.mini-track {
  background: #f0f1f3;
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.funnel-fill,
.mini-track i {
  background: linear-gradient(90deg, var(--club-red), #a90008);
  display: block;
  height: 100%;
}

.bar-chart {
  align-items: end;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(54px, 1fr);
  gap: 14px;
  min-height: 230px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.bar-item {
  align-items: center;
  display: grid;
  grid-template-rows: 150px auto 44px;
  gap: 8px;
  min-width: 68px;
  text-align: center;
}

.bar-track {
  align-items: end;
  background: #f0f1f3;
  border-radius: 999px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  width: 26px;
  justify-self: center;
}

.bar-track span {
  background: var(--club-red);
  border-radius: 999px 999px 0 0;
  display: block;
  min-height: 6px;
  width: 100%;
}

.bar-item small {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.1;
}

.stage-card span {
  align-items: center;
  background: #fff;
  border: 1px solid #f1b0b4;
  border-radius: 999px;
  color: var(--club-red);
  display: inline-flex;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.workflow-surface {
  overflow-x: auto;
}

.workflow-timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  gap: 0;
  min-width: 1080px;
  padding: 12px 0 4px;
}

.workflow-step {
  display: grid;
  gap: 14px;
  padding-right: 18px;
  position: relative;
}

.workflow-step::before {
  background: #e7e9ee;
  content: "";
  height: 3px;
  left: 36px;
  position: absolute;
  right: 0;
  top: 18px;
}

.workflow-step:last-child::before {
  display: none;
}

.workflow-step.active::before {
  background: linear-gradient(90deg, var(--club-red), #e7e9ee);
}

.workflow-marker {
  align-items: center;
  background: #fff;
  border: 3px solid var(--step-color);
  border-radius: 50%;
  color: var(--step-color);
  display: inline-flex;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  position: relative;
  width: 38px;
  z-index: 1;
}

.workflow-step.active .workflow-marker {
  background: var(--step-color);
  color: #fff;
}

.workflow-copy {
  display: grid;
  gap: 6px;
  padding-right: 14px;
}

.workflow-copy strong {
  font-size: 1.02rem;
  line-height: 1.2;
}

.workflow-copy span {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.35;
}

.workflow-copy em {
  color: var(--club-red);
  font-size: .82rem;
  font-style: normal;
  font-weight: 900;
}

.stage-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.stage-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 188px;
  padding: 16px;
  position: relative;
}

.stage-card.done {
  background: #f5fbf7;
  border-color: #b8dec2;
}

.stage-card.current {
  background: #fff7f7;
  border: 2px solid var(--club-red);
  box-shadow: 0 10px 28px rgba(237, 28, 36, .12);
}

.stage-card.upcoming {
  background: #fff;
  color: #626873;
}

.stage-card strong {
  line-height: 1.2;
}

.stage-card small {
  color: var(--muted);
}

.stage-members {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

.stage-members em {
  color: #4b5563;
  font-size: .78rem;
  font-style: normal;
  line-height: 1.25;
}

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

.form-grid p {
  margin: 0;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d5d7da;
  border-radius: 6px;
  padding: 10px 12px;
}

label {
  color: #3f434a;
  font-weight: 700;
  margin-bottom: 4px;
}

.status-list,
.document-list,
.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.status-list li,
.document-list li,
.history-list li {
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.timeline-item span {
  width: 18px;
  height: 18px;
  border: 2px solid #c8ccd2;
  border-radius: 50%;
}

.timeline-item.done {
  color: var(--ink);
}

.timeline-item.done span {
  background: var(--club-red);
  border-color: var(--club-red);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.privacy-note {
  color: var(--muted);
  font-size: .9rem;
  padding: 28px;
  text-align: center;
}

.auth-shell {
  display: grid;
  min-height: calc(100vh - 160px);
  place-items: center;
  padding: 32px;
}

.auth-panel {
  width: min(440px, 100%);
}

@media (max-width: 780px) {
  .club-header .container-fluid,
  .page-title {
    align-items: start;
    flex-direction: column;
  }

  .kpi-grid,
  .kpi-grid.executive,
  .form-grid,
  .stage-summary-grid,
  .stage-flow {
    grid-template-columns: 1fr;
  }

  .funnel-row {
    grid-template-columns: 1fr;
  }

  .chart-panel {
    height: 260px;
    padding: 14px 10px 10px;
  }

  .workflow-timeline {
    min-width: 980px;
  }
}

@media (min-width: 781px) and (max-width: 1280px) {
  .stage-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
