/* ============================================================
   ATHLETICS — shared styles across all athletics-* pages
   (login, dashboard, individual apply, relay apply, etc).
   Uses the same CSS custom properties already defined globally
   in main.css/custom.css (--or, --dk, --bg, --border, ...).
============================================================ */

.ath-wrap {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 16px;
}

.ath-card {
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    padding: 40px 34px;
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.ath-card .logo-img {
    max-height: 52px;
}

.ath-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
}

.ath-card p {
    color: var(--muted, #6b7280);
    font-size: 13.5px;
    margin-bottom: 18px;
}

/* container used on dashboard / apply pages */
.ath-page-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 16px 70px;
}

.ath-panel {
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 20px;
}

.ath-ph {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--dk, #111827);
    margin-bottom: 18px;
}

.ath-ph i {
    color: var(--or, #dd4814);
}

/* inline error/success banner (same convention as .merr elsewhere) */
.ath-msg {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.ath-msg.on {
    display: flex;
}

.ath-msg.err {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.ath-msg.ok {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* toast (bottom-center, matches Mom & Me's toast-csl look) */
.toast-ath {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translate(-50%, 20px);
    background: #111827;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
    z-index: 9999;
}

.toast-ath.on {
    opacity: 1;
    transform: translate(-50%, 0);
}

.toast-ath.ok {
    background: #16a34a;
}

.toast-ath.er {
    background: #dc2626;
}

/* field invalid state, shared with the Apply forms */
.ath-inp.fld-invalid,
.was-validated .ath-inp:invalid {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
}

/* ══ REGISTRATION DETAIL MODAL — clicking a card on My Registrations
   / Payment History opens this ══ */
.tc {
    cursor: pointer;
    transition: box-shadow .15s ease, transform .15s ease;
}

.tc:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    transform: translateY(-1px);
}

.reg-modal-ov {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10000;
}

.reg-modal-ov.on {
    display: flex;
}

.reg-modal-card {
    background: #fff;
    border-radius: 14px;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.reg-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px 14px;
    border-bottom: 1px solid var(--border, #e5e7eb);
}

.reg-modal-head h4 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px;
}

.reg-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--muted, #6b7280);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.reg-modal-body {
    padding: 18px 22px 22px;
}

.reg-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
    margin-bottom: 16px;
}

.reg-modal-grid .fld {
    font-size: 12px;
    color: var(--muted, #6b7280);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 2px;
}

.reg-modal-grid .val {
    font-size: 14px;
    font-weight: 600;
    color: var(--dk, #111827);
}

.reg-modal-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--or, #dd4814);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin: 16px 0 8px;
}

.reg-modal-item {
    background: var(--bg, #f9fafb);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
    font-size: 13.5px;
}

.reg-modal-item b {
    color: var(--dk, #111827);
}

/* ══ PROFILE PAGE — hero band with avatar + prominent, copyable code ══ */
.pf-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 26px 28px;
    margin: -28px -28px 24px;
    border-radius: 14px 14px 0 0;
    color: #fff;
}

.pf-hero-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, .4);
}

.pf-hero-info {
    flex: 1;
    min-width: 160px;
}

.pf-hero-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 2px;
    color: #fff;
}

.pf-hero-info p {
    font-size: 13px;
    margin: 0;
    opacity: .9;
}

.pf-code-badge {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 10px;
    padding: 10px 16px;
    text-align: left;
}

.pf-code-badge .code-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    opacity: .85;
    margin-bottom: 3px;
}

.pf-code-badge .code-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pf-code-badge .code-value {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .04em;
    font-family: 'Courier New', monospace;
}

.pf-code-badge .code-copy {
    background: rgba(255, 255, 255, .25);
    border: none;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background .15s ease;
}

.pf-code-badge .code-copy:hover {
    background: rgba(255, 255, 255, .4);
}

.pf-fields-grid {
    padding: 4px 28px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    background: #fff !important;
}

.pf-fields-grid .fld-block {
    border-bottom: 1px solid #f1f2f4 !important;
    padding-bottom: 10px;
    opacity: 1 !important;
}

.pf-fields-grid .fld-block.full {
    grid-column: 1 / -1;
}

.pf-fields-grid .fld-label {
    font-size: 11px;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9ca3af !important;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 1 !important;
}

.pf-fields-grid .fld-value {
    font-size: 15px;
    font-weight: 700 !important;
    color: #111827 !important;
    opacity: 1 !important;
}

.pf-fields-grid .fld-value.empty {
    color: #9ca3af !important;
    font-weight: 400 !important;
    font-style: italic;
}

@media (max-width: 640px) {
    .pf-fields-grid {
        grid-template-columns: 1fr;
    }

    .pf-hero {
        text-align: center;
        justify-content: center;
    }

    .pf-code-badge {
        width: 100%;
        text-align: center;
    }

    .pf-code-badge .code-row {
        justify-content: center;
    }
}

