:root {
    --bg: #080c10;
    --surface2: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --accent: #ff6b00;
    --accent2: #ffb300;
    --accent-glow: rgba(255, 107, 0, 0.3);
    --text: #f5f0eb;
    --muted: rgba(245, 240, 235, 0.5);
    --radius: 6px;
    --radius-lg: 12px;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff8533, var(--accent2));
}

::-webkit-scrollbar-corner {
    background: transparent;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(255, 255, 255, 0.03);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background-image: url('../assets/bg.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8, 12, 16, 0.90) 0%, rgba(8, 12, 16, 0.90) 40%, rgba(8, 12, 16, 0.95) 100%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px);
    pointer-events: none;
    z-index: 0;
}

body>* {
    position: relative;
    z-index: 1;
}

a {
    color: var(--accent);
    text-decoration: none;
}

header {
    background: rgba(8, 12, 16, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.7rem;
    letter-spacing: 3px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.logo img {
    width: 90px;
    height: auto;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo span {
    color: var(--accent);
}

nav {
    display: flex;
    gap: 0.25rem;
}

nav a {
    padding: 0.45rem 1.1rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
}

nav a:hover {
    color: var(--text);
}

nav a.active {
    color: var(--accent);
}

.hero {
    padding: 7rem 2rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero img {
    margin-top: -80px;
    width: 120px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 107, 0, 0.15);
    border: 1px solid rgba(255, 107, 0, 0.35);
    color: var(--accent2);
    padding: 0.35rem 1rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 50px;
    letter-spacing: 4px;
    line-height: 0.95;
    margin-bottom: 1.5rem;
    margin-top: 10px;
}

.hero h1 em {
    color: var(--accent);
    font-style: normal;
    display: block;
}

.hero-subtitle {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 300;
    max-width: 480px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.hero-stat-num {
    font-size: 2.8rem;
    color: var(--accent);
    letter-spacing: 2px;
    line-height: 1;
    font-weight: 600;
}

.hero-stat-label {
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.3rem;
    font-weight: 500;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    background: #ff8533;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
    color: #fff;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 107, 0, 0.08);
}

.categories-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    grid-gap: 10px;
    backdrop-filter: blur(20px);
    width: 90%;
    margin: 0 auto;
}

.cat-card {
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--border);
    text-align: center;
    transition: background 0.2s;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-card:last-child {
    border-right: none;
}

.cat-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.6rem;
    color: var(--accent);
}

.cat-icon svg {
    width: 36px;
    height: 36px;
}

.cat-dist {
    font-size: 2.8rem;
    color: var(--accent);
    letter-spacing: 2px;
    line-height: 1;
}

.cat-fee {
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 0.4rem;
    font-weight: 500;
}

.cat-fee strong {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.container-wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: 2.8rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    line-height: 1;
}

.form-panel {
    background: rgba(10, 14, 20, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    padding: 2.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-grid.single {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group.span2 {
    grid-column: span 2;
}

label {
    font-size: 16px;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: capitalize;
    margin-bottom: 15px;
}

input[type=text],
input[type=email],
input[type=tel],
textarea {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 107, 0, 0.06);
}

input::placeholder {
    color: rgba(245, 240, 235, 0.25);
}

select {
    display: none !important;
}

.custom-select {
    position: relative;
    width: 100%;
}

.cs-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
    min-height: 42px;
}

.cs-trigger.empty {
    color: rgba(245, 240, 235, 0.25);
}

.cs-trigger:hover,
.custom-select.open .cs-trigger {
    border-color: var(--accent);
    background: rgba(255, 107, 0, 0.06);
}

.cs-trigger svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--muted);
    transition: transform 0.2s;
}

.custom-select.open .cs-trigger svg {
    transform: rotate(180deg);
}

.cs-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #111620;
    border: 1px solid var(--border);
    z-index: 300;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
    max-height: 220px;
    overflow-y: auto;
}

.custom-select.open .cs-dropdown {
    display: block;
}

.cs-opt {
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background 0.15s;
    color: var(--text);
}

.cs-opt:hover {
    background: rgba(255, 107, 0, 0.12);
    color: var(--accent2);
}

.cs-opt.is-selected {
    background: rgba(255, 107, 0, 0.18);
    color: var(--accent);
    font-weight: 600;
}

.cs-opt.is-placeholder {
    color: var(--muted);
    font-style: italic;
}

/* ── Native date input hidden (replaced by custom picker) ── */
input[type=date] {
    display: none !important;
}

/* ── Date Picker enhancements ── */
.dp-wrapper {
    position: relative;
    width: 100%;
}

.dp-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
    min-height: 42px;
}

.dp-trigger.empty {
    color: rgba(245, 240, 235, 0.25);
}

.dp-trigger:hover,
.dp-wrapper.open .dp-trigger {
    border-color: var(--accent);
    background: rgba(255, 107, 0, 0.06);
}

.dp-trigger svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--muted);
}

.dp-panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #111620;
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    z-index: 300;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    padding: 1rem;
    width: 284px;
    min-width: 264px;
}

.dp-wrapper.open .dp-panel {
    display: block;
}

.dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.dp-nav {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition: color 0.15s, background 0.15s;
}

.dp-nav:hover {
    color: var(--accent);
    background: rgba(255, 107, 0, 0.1);
}

.dp-nav svg {
    width: 14px;
    height: 14px;
}

.dp-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: background 0.15s;
    font-family: 'Poppins', sans-serif;
}

.dp-title:hover {
    background: rgba(255, 255, 255, 0.06);
}

.dp-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.dp-dayname {
    text-align: center;
    font-size: 0.63rem;
    color: var(--muted);
    font-weight: 700;
    padding: 0.25rem 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: 'Poppins', sans-serif;
}

.dp-day {
    text-align: center;
    font-size: 0.8rem;
    padding: 0.32rem 0;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text);
    transition: background 0.15s, color 0.15s;
    font-family: 'Poppins', sans-serif;
}

.dp-day:hover {
    background: rgba(255, 107, 0, 0.15);
    color: var(--accent2);
}

.dp-day.dp-selected {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.dp-day.dp-today {
    border: 1px solid rgba(255, 107, 0, 0.45);
}

.dp-day.dp-other {
    color: rgba(245, 240, 235, 0.2);
}

.dp-day.dp-disabled {
    color: rgba(245, 240, 235, 0.15);
    cursor: not-allowed;
}

.dp-day.dp-disabled:hover {
    background: none;
    color: rgba(245, 240, 235, 0.15);
}

.dp-months-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.dp-month-btn {
    text-align: center;
    font-size: 0.8rem;
    padding: 0.5rem 0.25rem;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text);
    transition: background 0.15s;
    font-family: 'Poppins', sans-serif;
}

.dp-month-btn:hover {
    background: rgba(255, 107, 0, 0.15);
    color: var(--accent2);
}

.dp-month-btn.dp-selected {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.dp-years-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    max-height: 168px;
    overflow-y: auto;
}

.dp-year-btn {
    text-align: center;
    font-size: 0.78rem;
    padding: 0.38rem 0;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text);
    transition: background 0.15s;
    font-family: 'Poppins', sans-serif;
}

.dp-year-btn:hover {
    background: rgba(255, 107, 0, 0.15);
    color: var(--accent2);
}

.dp-year-btn.dp-selected {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.block-title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: capitalize;
}

.block-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.block-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 107, 0, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 8px;
}

.block-icon svg {
    width: 15px;
    height: 15px;
    color: var(--accent);
}

.waiver-box-mini {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.waiver-box-mini button {
    background: none;
    border: none;
    color: var(--accent2);
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
    font-size: 0.8rem;
    font-family: inherit;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    margin-bottom: 1rem;
    position: relative;
}

.checkbox-row input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.2s;
}

.checkbox-row:hover .checkmark {
    border-color: var(--accent);
}

.checkbox-row input:checked~.checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.checkmark:after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-row input:checked~.checkmark:after {
    display: block;
}

.checkbox-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.alert svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.alert-error {
    background: rgba(229, 62, 62, 0.08);
    border-color: #e53e3e;
    color: #fc8181;
}

.alert-success {
    background: rgba(255, 107, 0, 0.08);
    border-color: var(--accent);
    color: var(--accent2);
}

.success-card {
    background: rgba(10, 14, 20, 0.8);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
}

.success-card .accent-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.success-card .body {
    padding: 3rem 2rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 107, 0, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.success-icon svg {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

.athlete-id {
    font-size: 4rem;
    letter-spacing: 8px;
    color: var(--accent);
    margin: 1rem 0;
    text-shadow: 0 0 40px var(--accent-glow);
}

.success-meta {
    display: none;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.meta-pill {
    padding: 0.5rem 1.1rem;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
}

.meta-pill strong {
    color: var(--text);
}

.lookup-result {
    background: rgba(10, 14, 20, 0.8);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.lookup-header {
    background: rgba(255, 107, 0, 0.08);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.lookup-id-num {
    font-size: 2rem;
    letter-spacing: 4px;
    color: var(--accent);
}

.lookup-id-label {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.status-badge {
    padding: 0.35rem 0.9rem;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.status-Pending {
    background: rgba(255, 179, 0, 0.12);
    color: var(--accent2);
    border: 1px solid rgba(255, 179, 0, 0.3);
}

.status-Completed {
    background: rgba(72, 199, 142, 0.12);
    color: #48c78e;
    border: 1px solid rgba(72, 199, 142, 0.3);
}

.status-Failed {
    background: rgba(229, 62, 62, 0.12);
    color: #fc8181;
    border: 1px solid rgba(229, 62, 62, 0.3);
}

.lookup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.lookup-field {
    padding: 1.1rem 2rem;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.lookup-field:nth-child(even) {
    border-right: none;
}

.lookup-field .lf-label {
    font-size: 0.68rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.lookup-field .lf-val {
    font-size: 0.95rem;
    font-weight: 600;
}

footer {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 2rem;
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 4rem;
    background: rgba(8, 12, 16, 0.5);
    backdrop-filter: blur(12px);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer-logo {
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.page-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.home-card {
    background: rgba(10, 14, 20, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: border-color 0.25s, transform 0.25s;
    position: relative;
    overflow: hidden;
}

.home-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.25s;
}

.home-card:hover {
    border-color: rgba(255, 107, 0, 0.3);
    transform: translateY(-3px);
}

.home-card:hover::before {
    opacity: 1;
}

.home-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 107, 0, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.home-card-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.home-card h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}

.home-card p {
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.7;
    margin-bottom: 1.75rem;
    font-weight: 400;
}

.pace-band {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 107, 0, 0.08);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 99px;
    padding: 0.5rem 1.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent2);
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.pace-band svg {
    width: 14px;
    height: 14px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    justify-content: center;
}

.lookup-panel {
    background: rgba(10, 14, 20, 0.75);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    padding: 2.5rem;
}

.lookup-id-input {
    text-transform: uppercase;
    font-size: 1.4rem;
    letter-spacing: 4px;
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #111620;
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid var(--border);
    width: 90%;
    max-width: 500px;
    position: relative;
    color: var(--text);
}

.modal-close {
    position: absolute;
    right: 1.2rem;
    top: 1rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--muted);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--accent);
}

.modal-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--accent);
    letter-spacing: 1px;
}

.modal-body {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--muted);
}

.modal-accept {
    background: var(--accent);
    border: none;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.modal-accept:hover {
    background: #ff8533;
}

@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 2.5rem 1.75rem;
    }

    .container-wide {
        max-width: 100%;
        padding: 2.5rem 1.75rem;
    }

    .page-home-grid {
        gap: 1.25rem;
    }

    .hero h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 1.5rem;
        height: 72px;
    }

    .logo {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .logo img {
        width: 70px;
    }

    nav a {
        padding: 0.4rem 0.85rem;
        font-size: 0.8rem;
    }

    .hero {
        padding: 6rem 1.5rem 4rem;
    }

    .hero h1 {
        font-size: 36px;
        letter-spacing: 3px;
    }

    .hero-subtitle {
        font-size: 0.92rem;
    }

    .hero-stats {
        gap: 2rem;
        margin-top: 3rem;
    }

    .hero-stat-num {
        font-size: 2.2rem;
    }

    .categories-strip {
        width: 95%;
        grid-template-columns: repeat(2, 1fr);
    }

    .cat-card {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .cat-card:last-child {
        border-bottom: none;
    }

    .page-home-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .form-panel,
    .lookup-panel {
        padding: 2rem 1.5rem;
    }

    .lookup-grid {
        grid-template-columns: 1fr;
    }

    .lookup-field {
        border-right: none;
    }

    .lookup-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .success-card .body {
        padding: 2.5rem 1.5rem;
    }

    .athlete-id {
        font-size: 3rem;
        letter-spacing: 6px;
    }
}

@media (max-width: 640px) {
    header {
        padding: 0 1rem;
        height: 64px;
    }

    .logo {
        font-size: 1.2rem;
        letter-spacing: 1.5px;
    }

    .logo img {
        width: 58px;
    }

    nav a {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    nav a svg {
        width: 18px;
        height: 18px;
    }

    .hero {
        padding: 5rem 1rem 3rem;
    }

    .hero img {
        width: 90px;
        margin-top: -60px;
    }

    .hero h1 {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 0.88rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .hero-stats {
        gap: 1.5rem;
        margin-top: 2.5rem;
        padding-top: 2rem;
    }

    .hero-stat-num {
        font-size: 1.8rem;
    }

    .hero-stat-label {
        font-size: 0.65rem;
    }

    .categories-strip {
        width: 100%;
        grid-template-columns: 1fr 1fr;
        grid-gap: 0;
    }

    .cat-card {
        padding: 1.5rem 1rem;
        border-bottom: 1px solid var(--border);
        border-right: 1px solid var(--border);
    }

    .cat-card:nth-child(even) {
        border-right: none;
    }

    .cat-dist {
        font-size: 2.1rem;
    }

    .container,
    .container-wide {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .form-panel,
    .lookup-panel {
        padding: 1.25rem 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-group.span2 {
        grid-column: span 1;
    }

    .page-home-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .home-card {
        padding: 1.75rem 1.5rem;
    }

    .lookup-grid {
        grid-template-columns: 1fr;
    }

    .lookup-field {
        border-right: none;
        padding: 0.9rem 1.25rem;
    }

    .lookup-header {
        padding: 1.25rem 1.25rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .lookup-id-num {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .success-card .body {
        padding: 2rem 1.25rem;
    }

    .athlete-id {
        font-size: 2.2rem;
        letter-spacing: 4px;
    }

    .success-meta {
        gap: 0.6rem;
    }

    .dp-panel {
        width: 264px;
    }

    .dp-panel {
        left: 50%;
        transform: translateX(-50%);
    }

    .success-icon {
        width: 52px;
        height: 52px;
    }

    .success-icon svg {
        width: 26px;
        height: 26px;
    }

    footer {
        padding: 1.5rem 1rem;
        margin-top: 2.5rem;
    }

    .submit-btn {
        font-size: 0.88rem;
        padding: 0.9rem;
    }
}

@media (max-width: 380px) {
    .hero h1 {
        font-size: 24px;
    }

    .categories-strip {
        grid-template-columns: 1fr;
    }

    .cat-card {
        border-right: none;
    }

    .cat-card:nth-child(even) {
        border-right: none;
    }

    nav a span {
        display: none;
    }

    .athlete-id {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }
}

.momo-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 107, 0, 0.2);
    border-top-color: var(--primary, #ff6b00);
    border-radius: 50%;
    animation: momo-spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes momo-spin {
    to {
        transform: rotate(360deg);
    }
}

.alert-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.12);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 500;
}

#phoneCodeBadge {
    background: transparent;
    border-color: inherit;
    color: inherit;
}

.phone-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.phone-input-group #phoneCodeBadge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.85rem;
    min-width: 72px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    border-style: solid;
    border-width: 1.5px;
    box-sizing: border-box;
}

.phone-input-group input,
.phone-input-group #phoneCodeBadge {
    border-color: inherit;
}

.payment-cards {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.payment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: rgba(10, 14, 20, 0.75);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem;
    transition: all 0.25s;
    text-decoration: none;
    min-width: 200px;
}

.payment-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    background: rgba(255, 107, 0, 0.05);
}

.payment-icon {
    width: 80px;
    height: auto;
    object-fit: contain;
}

.payment-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.momo-logo {
    width: 120px;
}

.success-icon-green svg {
    color: #10b981;
    stroke: #10b981;
}

.clearance-dropzone {
    transition: all 0.2s ease;
}

.clearance-dropzone:hover {
    border-color: var(--accent) !important;
    background: rgba(249, 115, 22, 0.05) !important;
}

.status-exempted {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.35);
    padding: 0.25rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.groupPhoneCodeBadge {
    border: 1px solid var(--border);
}

.marathon-footer {
    margin-top: 3rem;
    background: rgba(8, 12, 16, 0.92);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    font-family: 'Poppins', sans-serif;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

/* brand section */
.footer-brand .logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-brand .logo-icon svg {
    width: 22px;
    height: 22px;
    stroke: white;
    stroke-width: 1.8;
}

.footer-brand h3 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.footer-brand h3 span {
    color: var(--accent);
}

.footer-desc {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0.8rem 0 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.25s;
    border: 1px solid var(--border);
}

.social-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--muted);
    transition: stroke 0.2s;
}

.social-icon:hover {
    border-color: var(--accent);
    background: rgba(255, 107, 0, 0.1);
}

.social-icon:hover svg {
    stroke: var(--accent);
}

/* footer headings */
.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.footer-col h4:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a svg {
    width: 14px;
    height: 14px;
    stroke: var(--accent);
}

.footer-links a:hover {
    color: var(--accent);
}

/* contact info */
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.contact-item svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent);
    flex-shrink: 0;
}

/* bottom bar */
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

/* responsive breakpoints */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-container {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand,
    .footer-col,
    .counter-card {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .counter-number {
        font-size: 2.8rem;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 2rem 1rem;
    }

    .counter-number {
        font-size: 2.5rem;
    }
}

/* skeleton loader */
.counter-skeleton {
    height: 52px;
    width: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 0.5rem 0;
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.4;
    }
}