:root {
    --magenta: #d1007b;
    --magenta-strong: #a90063;
    --magenta-deep: #76004a;
    --orange: #f47713;
    --orange-strong: #dd5f00;
    --gold: #ffc400;
    --gold-soft: #fff3bf;
    --yellow: #ffe66d;
    --track: #211126;
    --ink: #241322;
    --white: #ffffff;
    --paper: #fff7fb;
    --muted: #745b70;
    --line: #f0c7df;
    --shadow: 0 18px 38px rgba(118, 0, 74, .14);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, Poppins, system-ui, -apple-system, Segoe UI, sans-serif; background: #fff8fc; color: var(--ink); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.race-topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px clamp(18px,5vw,72px); background: rgba(255,255,255,.96); color: var(--ink); border-bottom: 1px solid #eef1f5; box-shadow: 0 8px 24px rgba(36, 19, 34, .05); backdrop-filter: blur(14px); }
.race-brand { display: flex; align-items: center; gap: 10px; font-weight: 950; }
.race-brand img { width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 7px 12px rgba(118,0,74,.18)); }
.race-brand span { color: var(--magenta-strong); }
.race-nav { display: flex; align-items: center; gap: 18px; font-weight: 750; font-size: 14px; }
.race-nav a:hover { color: var(--magenta-strong); }
.account-pill { min-width: 82px; padding: 11px 18px; border-radius: 999px; background: var(--magenta-strong); color: white !important; text-align: center; font-weight: 950; text-transform: uppercase; box-shadow: 0 12px 24px rgba(169,0,99,.22); }
.race-menu { display: none; width: 42px; height: 42px; border: 1px solid var(--line); color: var(--magenta-strong); background: white; border-radius: 8px; font-size: 20px; }
.race-btn, button.race-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--magenta); color: white; font-weight: 950; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; box-shadow: 0 12px 24px rgba(209, 0, 123, .24); }
.race-btn:hover { transform: translateY(-2px); background: var(--magenta-strong); color: white; box-shadow: 0 16px 28px rgba(209, 0, 123, .3); }
.race-btn.alt { background: var(--track); }
.race-btn.yellow { background: var(--yellow); color: var(--track); box-shadow: 0 12px 24px rgba(248, 197, 55, .22); }
.race-btn.small { min-height: 38px; padding: 0 14px; }
.race-hero { position: relative; min-height: calc(100vh - 83px); display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(24px, 5vw, 54px); padding: clamp(42px,7vw,86px) clamp(18px,5vw,72px) clamp(54px,8vw,98px); overflow: hidden; background: radial-gradient(circle at 18% 22%, rgba(255, 196, 0, .32), transparent 29%), radial-gradient(circle at 85% 10%, rgba(244, 119, 19, .14), transparent 26%), linear-gradient(135deg, #fff6fb 0%, #ffffff 48%, #fff1ca 100%); color: var(--ink); }
.race-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; background-size: 36px 18px; background-image: linear-gradient(45deg, var(--magenta-deep) 25%, transparent 25%), linear-gradient(-45deg, var(--magenta-deep) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--magenta-deep) 75%), linear-gradient(-45deg, transparent 75%, var(--magenta-deep) 75%); background-position: 0 0, 0 9px, 18px -9px, -18px 0; opacity: .95; }
.race-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 110px; background: linear-gradient(180deg, rgba(118,0,74,0), rgba(118,0,74,.08)); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
.race-hero h1 { margin: 8px 0 16px; font-size: clamp(48px,8vw,94px); line-height: .92; letter-spacing: 0; color: var(--track); text-transform: uppercase; }
.race-hero p { color: #65455f; font-size: clamp(18px,2vw,24px); line-height: 1.55; max-width: 630px; }
.eyebrow { color: var(--magenta-strong); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 950; }
.race-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.race-tags span { min-width: 74px; padding: 10px 14px; border: 2px solid var(--track); border-radius: 8px; background: white; color: var(--track); font-weight: 950; text-align: center; box-shadow: 5px 5px 0 var(--gold); }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; font-weight: 950; }
.event-meta strong { padding: 9px 12px; border-radius: 8px; background: var(--track); color: white; }
.event-meta span { color: #65455f; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(72px, 1fr)); gap: 10px; max-width: 500px; margin-top: 20px; }
.countdown span { display: grid; gap: 4px; padding: 12px; border-radius: 8px; background: white; border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 950; text-align: center; text-transform: uppercase; }
.countdown strong { color: var(--magenta-strong); font-size: 28px; line-height: 1; }
.race-photo { position: relative; min-height: 470px; border-radius: 8px; background: linear-gradient(120deg, rgba(118,0,74,.16), rgba(255,196,0,.18)), url("https://images.unsplash.com/photo-1502904550040-7534597429ae?auto=format&fit=crop&w=1200&q=82") center/cover; box-shadow: var(--shadow); border: 6px solid white; overflow: hidden; }
.race-photo::before { content: "START"; position: absolute; top: 28px; left: -42px; width: 220px; padding: 9px 0; background: var(--yellow); color: var(--track); font-weight: 950; text-align: center; transform: rotate(-12deg); box-shadow: 0 10px 24px rgba(17,24,39,.16); }
.bib-card { position: absolute; right: 24px; bottom: 24px; width: 150px; padding: 14px; border-radius: 8px; background: white; color: var(--track); text-align: center; box-shadow: 0 18px 38px rgba(17,24,39,.25); }
.bib-card span, .bib-card small { display: block; color: var(--muted); font-size: 12px; font-weight: 950; text-transform: uppercase; }
.bib-card strong { display: block; font-size: 44px; line-height: 1; color: var(--magenta-strong); }
.section { padding: clamp(42px,7vw,88px) clamp(18px,5vw,72px); }
.section.alt { background: linear-gradient(180deg, var(--magenta-deep) 0%, #2a1230 100%); color: white; }
.section-heading { max-width: 820px; margin-bottom: 24px; }
h1, h2, h3 { letter-spacing: 0; }
h2 { margin: 0 0 14px; font-size: clamp(30px,4vw,48px); color: var(--track); }
.section.alt h2, .section.alt h3 { color: white; }
p { color: var(--muted); line-height: 1.7; }
.section.alt p { color: #d0d5dd; }
.event-section { background: #fff7fb; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 54px); align-items: start; }
.route-card { min-height: 330px; border-radius: 8px; padding: 24px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-preview { display: grid; place-items: center; min-height: 190px; margin-top: 20px; border-radius: 8px; color: white; font-weight: 950; text-transform: uppercase; background: linear-gradient(135deg, rgba(209,0,123,.86), rgba(244,119,19,.88)), repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,.2) 14px 16px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.card, .form-card, .dash-card, .table-card { background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 8px; padding: 22px; box-shadow: 0 10px 24px rgba(17, 24, 39, .07); }
.card strong { display: block; font-size: 28px; color: var(--magenta-strong); }
.stat-card { position: relative; overflow: hidden; min-height: 180px; }
.stat-card::after { content: ""; position: absolute; right: -32px; bottom: -28px; width: 96px; height: 96px; border: 12px solid rgba(248, 197, 55, .34); border-radius: 50%; }
.stat-card span { display: block; margin-bottom: 12px; color: var(--muted); font-size: 12px; font-weight: 950; text-transform: uppercase; }
.race-info .card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); box-shadow: none; }
.category-card { min-height: 170px; }
.lots-section { background: #fff4fb; }
.kit-card { overflow: hidden; border-radius: 8px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
.kit-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.kit-card div { padding: 18px; }
.kit-card h3 { margin: 0 0 8px; }
.kit-card strong { display: block; margin-top: 12px; color: var(--magenta-strong); font-size: 28px; }
.kit-card span { display: inline-flex; margin-top: 10px; padding: 6px 10px; border-radius: 999px; background: var(--gold-soft); color: #7a5510; font-size: 12px; font-weight: 950; }
.timeline { display: grid; gap: 12px; padding: 0; margin: 20px 0 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 86px 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: 8px; background: white; border: 1px solid var(--line); }
.timeline strong { color: var(--magenta-strong); }
.faq-list { display: grid; gap: 10px; }
.faq-list details { padding: 16px; border-radius: 8px; background: white; border: 1px solid var(--line); }
.faq-list summary { cursor: pointer; color: var(--track); font-weight: 950; }
.sponsors-section { background: white; }
.sponsor-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-top: 20px; }
.sponsor-grid span { display: grid; place-items: center; min-height: 96px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; color: var(--track); font-weight: 950; }
.contact-band { display: flex; justify-content: space-between; gap: 24px; align-items: center; background: var(--magenta); color: white; }
.contact-band h2, .contact-band p, .contact-band .eyebrow { color: white; }
.form-card { position: relative; max-width: 880px; margin: 0 auto; overflow: hidden; }
.form-card::before, .table-card::before { content: ""; display: block; height: 8px; margin: -22px -22px 18px; background: repeating-linear-gradient(90deg, var(--track) 0 18px, white 18px 36px); border-bottom: 1px solid var(--line); }
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, select, textarea { width: 100%; min-height: 46px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: white; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(209,0,123,.12); }
input[readonly] { background: #f8fafc; color: #8a7480; cursor: not-allowed; }
label { display: grid; gap: 7px; font-weight: 850; color: var(--track); }
.flash { margin: 18px clamp(18px,5vw,72px) 0; padding: 14px 16px; border-radius: 8px; font-weight: 850; }
.flash.success { background: #e8f8ef; color: #176438; }
.flash.error { background: #fff0f0; color: #9b1c1c; }
.dashboard { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 72px); }
.sidebar { background: linear-gradient(180deg, var(--magenta-deep), #2a1230); color: white; padding: 24px; border-right: 1px solid rgba(255,255,255,.08); }
.sidebar a { display: block; padding: 12px 10px; border-radius: 8px; color: #f2f4f7; font-weight: 850; }
.sidebar a:hover { background: rgba(255,255,255,.09); color: var(--yellow); }
.dash-main { padding: clamp(20px,4vw,44px); }
.dash-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 20px 0; }
.dash-card span { color: var(--muted); font-weight: 800; }
.dash-card strong { display: block; margin-top: 8px; font-size: 30px; color: var(--magenta-strong); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #667085; font-size: 13px; text-transform: uppercase; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; min-width: 130px; }
.status { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--gold-soft); color: #7a5510; font-size: 12px; font-weight: 950; }
.race-footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px clamp(18px,5vw,72px); background: var(--track); color: white; }
.wizard-shell { position: relative; min-height: calc(100vh - 83px); background: #f3f7fb; padding-top: 28px; }
.wizard-heading { max-width: 860px; margin: 0 auto 48px; text-align: center; }
.wizard-heading h2 { margin-top: 16px; font-size: clamp(34px, 4vw, 46px); color: #17233a; }
.wizard-heading p { margin: 0 auto; color: #6f7c90; font-size: 17px; }
.step-pill { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px; background: #e7eef7; color: var(--magenta-strong); font-weight: 950; text-transform: uppercase; }
.wizard-card { max-width: 1170px; margin: 0 auto; padding: 0 0 84px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.payment-confirmation { max-width: 760px; margin: 0 auto; padding: 34px; border-radius: 8px; background: white; border: 1px solid #eef1f5; box-shadow: 0 24px 52px rgba(36,19,34,.08); }
.wizard-progress { position: sticky; top: 83px; z-index: 2; display: flex; justify-content: center; gap: 10px; max-width: 820px; margin: -28px auto 26px; padding: 12px; border-radius: 0 0 18px 18px; background: rgba(243,247,251,.92); backdrop-filter: blur(12px); }
.wizard-progress button { display: grid; gap: 4px; justify-items: center; min-width: 72px; border: 0; border-radius: 999px; background: transparent; color: #7c8799; font: inherit; font-size: 11px; font-weight: 900; cursor: pointer; }
.wizard-progress button span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: white; color: var(--magenta-strong); box-shadow: 0 3px 10px rgba(36,19,34,.08); }
.wizard-progress button.active { color: var(--magenta-strong); }
.wizard-progress button.active span { background: var(--gold); color: var(--track); }
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-step h3 { margin: 0 0 8px; color: #17233a; font-size: clamp(26px, 3vw, 38px); text-align: center; }
.step-copy { margin: 0 auto 42px; color: #7d8aa0; font-size: 16px; text-align: center; }
.choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.choice-grid.compact { grid-template-columns: repeat(3,minmax(0,1fr)); }
.choice-card { position: relative; display: grid; align-content: center; justify-items: center; gap: 18px; min-height: 318px; padding: 36px 32px; border: 2px solid transparent; border-radius: 18px; background: white; cursor: pointer; box-shadow: 0 22px 44px rgba(36,19,34,.07); transition: border-color .2s, transform .2s, box-shadow .2s, background .2s; }
.choice-card:hover { transform: translateY(-3px); box-shadow: 0 28px 54px rgba(36,19,34,.1); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card:has(input:checked) { border-color: var(--magenta); background: linear-gradient(180deg, #fff, #fff7fb); box-shadow: 0 22px 48px rgba(209,0,123,.16); }
.choice-card img { display: none; }
.choice-icon { display: grid !important; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #f0f4f9; color: var(--magenta-strong) !important; font-size: 28px !important; line-height: 1; }
.choice-card > span:not(.choice-icon) { color: #17233a; font-size: 22px; font-weight: 950; text-transform: uppercase; text-align: center; }
.choice-card p { max-width: 320px; margin: 0; color: #718098; text-align: center; font-weight: 750; }
.choice-card strong { color: var(--magenta-strong); font-size: 38px; }
.choice-card small { color: #8a5d00; font-weight: 950; }
.wizard-step .form-row, .wizard-step > label { max-width: 700px; margin-left: auto; margin-right: auto; }
.wizard-step label { padding: 22px 26px; border-radius: 16px; background: white; color: #66738a; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 18px 38px rgba(36,19,34,.06); }
.wizard-step input, .wizard-step select, .wizard-step textarea { min-height: 52px; border: 2px solid #dfe7f0; background: #fbfdff; font-size: 16px; text-transform: none; letter-spacing: 0; }
.wizard-step input:focus, .wizard-step select:focus, .wizard-step textarea:focus { border-color: var(--magenta-strong); box-shadow: 0 0 0 4px rgba(209,0,123,.12); background: white; }
.checkout-summary, .summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 18px 0; }
.checkout-summary { max-width: 760px; margin: 24px auto; padding: 22px; border-radius: 18px; background: white; box-shadow: 0 22px 44px rgba(36,19,34,.07); }
.checkout-summary div, .summary-grid article { padding: 16px; border: 1px solid #edf1f6; border-radius: 8px; background: #f8fafc; }
.checkout-summary span, .summary-grid span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 950; text-transform: uppercase; }
.checkout-summary strong, .summary-grid strong { color: var(--track); font-size: 22px; }
.checkout-summary .total { background: var(--track); color: white; }
.checkout-summary .total span, .checkout-summary .total strong { color: white; }
.payment-methods { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; max-width: 760px; margin: 0 auto; padding: 22px; border-radius: 18px; background: white; box-shadow: 0 22px 44px rgba(36,19,34,.07); }
.payment-methods label { position: relative; display: grid; place-items: center; min-height: 132px; border: 2px solid #dfe7f0; border-radius: 8px; background: white; cursor: pointer; box-shadow: none; }
.payment-methods input { position: absolute; opacity: 0; pointer-events: none; }
.payment-methods label:has(input:checked) { border-color: var(--magenta); background: #fff1f9; }
.pix-preview, .pix-box { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; margin-top: 20px; }
.qr-demo { width: 180px; aspect-ratio: 1; border-radius: 8px; background-color: white; background-image: linear-gradient(90deg, #111827 10px, transparent 10px), linear-gradient(#111827 10px, transparent 10px), repeating-linear-gradient(45deg, #111827 0 8px, white 8px 16px); background-size: 36px 36px, 36px 36px, 22px 22px; border: 12px solid white; box-shadow: inset 0 0 0 2px var(--track), var(--shadow); }
.wizard-actions { position: sticky; bottom: 18px; z-index: 3; display: flex; justify-content: center; gap: 12px; margin-top: 32px; padding-top: 0; border-top: 0; }
.wizard-actions .race-btn { min-width: 226px; min-height: 58px; border-radius: 999px; font-size: 17px; background: linear-gradient(135deg, var(--magenta), var(--orange)); box-shadow: 0 18px 35px rgba(209,0,123,.24); }
.wizard-actions .race-btn.alt { min-width: 132px; background: white; color: var(--magenta-strong); border: 1px solid #dfe7f0; box-shadow: 0 12px 28px rgba(36,19,34,.08); }
.payment-confirmation { max-width: 920px; }
.payment-confirmation textarea { resize: vertical; }
.floating-cart { position: fixed; right: 26px; bottom: 26px; z-index: 4; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(135deg, var(--magenta), var(--orange)); color: white; box-shadow: 0 18px 36px rgba(209,0,123,.28); }
.floating-cart span { position: absolute; right: -2px; top: -6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--track); font-size: 12px; font-weight: 950; border: 2px solid white; }
.floating-cart i { position: relative; width: 27px; height: 20px; border: 3px solid white; border-top: 0; border-radius: 0 0 6px 6px; }
.floating-cart i::before { content: ""; position: absolute; left: -8px; top: -9px; width: 12px; height: 3px; background: white; transform: rotate(18deg); border-radius: 999px; }
.floating-cart i::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: -9px; height: 5px; background: radial-gradient(circle, white 0 3px, transparent 3px) left center / 12px 5px repeat-x; }

@media (max-width: 960px) {
    .race-menu { display: block; }
    .race-nav { display: none; position: absolute; top: 72px; left: 18px; right: 18px; background: white; border: 1px solid var(--line); border-radius: 8px; padding: 18px; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
    .race-nav.open { display: flex; }
    .race-hero, .dashboard, .split, .pix-preview, .pix-box { grid-template-columns: 1fr; }
    .race-hero { min-height: auto; }
    .sidebar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
    .grid, .grid.four, .dash-grid, .choice-grid, .choice-grid.compact, .checkout-summary, .summary-grid, .sponsor-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .wizard-progress { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .payment-methods { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
    .grid, .grid.four, .dash-grid, .form-row, .sidebar, .choice-grid, .choice-grid.compact, .checkout-summary, .summary-grid, .sponsor-grid, .payment-methods, .countdown { grid-template-columns: 1fr; }
    .actions .race-btn { width: 100%; }
    .race-photo { min-height: 340px; }
    .bib-card { width: 124px; right: 14px; bottom: 14px; }
    .bib-card strong { font-size: 34px; }
    .contact-band, .wizard-actions { display: grid; }
    .wizard-progress { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .race-footer { display: block; }
}
