/**
 * VO2.ir — Global neumorphic page shell (sidebar + homepage parity)
 * Primitives: nm-raised | nm-inset | nm-btn (+ variant + size)
 * Buttons: nm-btn nm-btn--{ghost|primary|dark|danger|warning|success} nm-btn--{xs|sm|lg}
 * Legacy Bootstrap .btn inside .vo2-page auto-maps to the same raised style.
 */

.vo2-page,
.vo2-home {
    background: var(--surface-1, #eef1f6);
    color: var(--fg-2, #3a4254);
    min-height: 40vh;
    padding-bottom: 1.5rem;
}

body:has(.vo2-page),
body:has(.vo2-home) {
    background: var(--surface-1, #eef1f6) !important;
}

/* ---- Primitives ---- */
.vo2-page .nm-raised,
.vo2-home .nm-raised,
.nm-raised {
    background: var(--surface-1, #eef1f6);
    border-radius: var(--r-card, 24px);
    box-shadow: var(--nm-raised-sm);
}

.vo2-page .nm-inset,
.vo2-home .nm-inset,
.nm-inset {
    background: var(--surface-1, #eef1f6);
    border-radius: 18px;
    box-shadow: var(--nm-inset-sm);
}

/* ---- Buttons (design system) ----
   Usage: nm-btn + variant + optional size
   e.g. nm-btn nm-btn--primary nm-btn--sm
   Bootstrap .btn inside .vo2-page maps to the same look.
*/
.vo2-page .nm-btn,
.vo2-home .nm-btn,
.nm-btn,
.vo2-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    min-height: 2.25rem;
    border: none;
    border-radius: var(--r-btn, 10px);
    font-weight: var(--fw-bold, 700);
    font-size: var(--fs-body, 0.9375rem);
    line-height: 1.35;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition:
        box-shadow var(--dur-2, 200ms) var(--ease-out),
        transform var(--dur-2, 200ms) var(--ease-out),
        filter var(--dur-2, 200ms) var(--ease-out),
        color var(--dur-2, 200ms) var(--ease-out);
}

.vo2-page .nm-btn:hover,
.vo2-home .nm-btn:hover,
.nm-btn:hover,
.vo2-page .btn:hover {
    transform: translateY(-1px);
}

/* Sizes */
.nm-btn--xs,
.vo2-page .btn.btn-xs {
    padding: 0.5rem 0.9rem;
    min-height: 2rem;
    font-size: 0.72rem;
    border-radius: var(--r-btn-sm, 8px);
}

.nm-btn--sm,
.vo2-page .btn.btn-sm {
    padding: 0.55rem 1rem;
    min-height: 2.125rem;
    font-size: 0.82rem;
}

.nm-btn--lg,
.vo2-page .btn.btn-lg {
    padding: 0.75rem 1.5rem;
    min-height: 2.75rem;
    font-size: 1rem;
}

/* Optional pill (hero CTAs only) */
.nm-btn--pill {
    border-radius: var(--r-pill, 999px);
}

/* Variants — raised surface */
.nm-btn--ghost,
.vo2-page .btn-secondary,
.vo2-page .btn-light {
    background: var(--surface-1, #eef1f6) !important;
    color: var(--fg-2, #3a4254) !important;
    box-shadow: var(--nm-raised-sm);
}

.nm-btn--ghost:hover,
.vo2-page .btn-secondary:hover,
.vo2-page .btn-light:hover {
    color: var(--primary, #df2063) !important;
    box-shadow: var(--nm-raised);
}

.nm-btn--primary,
.vo2-page .btn-primary,
.vo2-page .btn-grad-success,
.vo2-page .btn-magenta,
.vo2-page .btn-grad-danger {
    background: linear-gradient(145deg, var(--vo2-pink-400, #ea4782), var(--vo2-pink-600, #be1553)) !important;
    color: var(--fg-inv, #fff) !important;
    box-shadow:
        -3px -3px 8px rgba(255, 255, 255, 0.35),
        4px 4px 12px rgba(190, 21, 83, 0.32);
}

.nm-btn--primary:hover,
.vo2-page .btn-primary:hover,
.vo2-page .btn-magenta:hover,
.vo2-page .btn-grad-danger:hover {
    color: var(--fg-inv, #fff) !important;
    filter: brightness(1.03);
}

.nm-btn--dark,
.vo2-page .btn.bg-dark,
.vo2-page .btn-dark {
    background: var(--fg-1, #1a1f2b) !important;
    color: var(--fg-inv, #fff) !important;
    box-shadow: var(--nm-raised-sm);
}

.nm-btn--dark:hover,
.vo2-page .btn.bg-dark:hover {
    color: var(--fg-inv, #fff) !important;
    box-shadow: var(--nm-raised);
}

.nm-btn--danger,
.vo2-page .btn-danger,
.vo2-page .cancelEvent {
    background: linear-gradient(145deg, var(--vo2-pink-400, #ea4782), var(--vo2-pink-600, #be1553)) !important;
    color: var(--fg-inv, #fff) !important;
    box-shadow:
        -2px -2px 6px rgba(255, 255, 255, 0.35),
        3px 3px 10px rgba(190, 21, 83, 0.28);
}

.nm-btn--danger:hover,
.vo2-page .btn-danger:hover,
.vo2-page .cancelEvent:hover {
    color: var(--fg-inv, #fff) !important;
    filter: brightness(1.03);
}

.nm-btn--warning,
.vo2-page .btn-warning {
    background: linear-gradient(145deg, #fde68a, var(--warning, #f5b740)) !important;
    color: var(--fg-1, #1a1f2b) !important;
    box-shadow: var(--nm-raised-sm);
}

.nm-btn--warning:hover,
.vo2-page .btn-warning:hover {
    color: var(--fg-1, #1a1f2b) !important;
    box-shadow: var(--nm-raised);
}

.nm-btn--success,
.vo2-page .btn-success,
.vo2-page .joinEvent {
    background: linear-gradient(145deg, #4ade80, var(--success, #1fae63)) !important;
    color: var(--fg-inv, #fff) !important;
    box-shadow: var(--nm-raised-sm);
}

.nm-btn--success:hover,
.vo2-page .joinEvent:hover {
    color: var(--fg-inv, #fff) !important;
    filter: brightness(1.04);
}

.vo2-page .btn-outline-secondary {
    background: var(--surface-1, #eef1f6);
    color: var(--fg-3, #6b7282) !important;
    box-shadow: var(--nm-inset-sm);
    border: none;
}

/* ---- News ticker ---- */
.vo2-home-news {
    padding: 1rem 0 0.25rem;
    background: transparent;
}

.vo2-home-news__bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 52px;
    padding: 0.55rem 0.85rem;
    border-radius: 16px;
}

.vo2-home-news__label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--r-pill, 999px);
    background: linear-gradient(145deg, var(--vo2-pink-400, #ea4782), var(--vo2-pink-600, #be1553));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow:
        -2px -2px 6px rgba(255, 255, 255, 0.4),
        3px 3px 8px rgba(190, 21, 83, 0.28);
}

.vo2-home-news__link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex: 1 1 auto;
    color: var(--fg-2, #3a4254) !important;
    text-decoration: none !important;
}

.vo2-home-news__link:hover {
    color: var(--primary, #df2063) !important;
}

.vo2-home-news__type {
    flex-shrink: 0;
    font-size: 0.68rem;
    border-radius: var(--r-pill, 999px);
    padding: 0.2rem 0.55rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.vo2-home-news__type.type-video {
    background: rgba(31, 174, 99, 0.12);
    border-color: rgba(31, 174, 99, 0.35);
    color: #15803d;
}

.vo2-home-news__type.type-article {
    background: rgba(41, 212, 198, 0.14);
    border-color: rgba(41, 212, 198, 0.4);
    color: #0f766e;
}

.vo2-home-news__type.type-news {
    background: rgba(245, 183, 64, 0.16);
    border-color: rgba(245, 183, 64, 0.45);
    color: #b45309;
}

.vo2-home-news__type.type-post {
    background: rgba(163, 177, 198, 0.18);
    border-color: rgba(163, 177, 198, 0.4);
    color: var(--fg-3, #6b7282);
}

.vo2-home-news__text {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(70vw, 820px);
}

.vo2-home-news__cursor {
    width: 2px;
    height: 16px;
    background: var(--primary, #df2063);
    display: inline-block;
    animation: vo2HomeTickerBlink 0.8s infinite;
    border-radius: 1px;
}

@keyframes vo2HomeTickerBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* ---- Hero ---- */
.vo2-home-hero {
    position: relative;
    padding: 0.5rem 0 1.75rem;
    background: transparent;
    min-height: 0 !important;
    height: auto !important;
}

.vo2-home-hero svg {
    display: none !important;
}

.vo2-home-hero__card {
    padding: clamp(1rem, 2vw, 1.65rem);
}

.vo2-home-hero__video {
    padding: 0.45rem;
    overflow: hidden;
}

.vo2-home-hero__video .swiper-home-video,
.vo2-home-hero__video .ratio {
    border-radius: 14px;
    overflow: hidden;
}

.vo2-home-hero__video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.vo2-home-hero__eyebrow {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    font-weight: 700;
    color: var(--fg-3, #6b7282);
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}

.vo2-home-hero__eyebrow span {
    color: var(--primary, #df2063);
}

.vo2-home-hero__headline {
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--fg-1, #1a1f2b);
    line-height: 1.45;
    margin-bottom: 1.25rem;
}

.vo2-home-hero__headline .cd-headline {
    color: var(--fg-1, #1a1f2b);
}

.vo2-home-hero__headline .cd-words-wrapper b {
    color: var(--primary, #df2063);
}

.vo2-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

@media (min-width: 992px) {
    .vo2-home-hero__actions {
        justify-content: flex-start;
    }
}

body.vo2-has-desktop-sidebar .vo2-home-hero {
    padding-top: 0.35rem;
}

/* Swiper nav on hero video */
.vo2-home-hero .swiper-button-next,
.vo2-home-hero .swiper-button-prev {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--surface-1, #eef1f6);
    box-shadow: var(--nm-raised-sm);
    color: var(--fg-2, #3a4254) !important;
}

.vo2-home-hero .swiper-button-next::after,
.vo2-home-hero .swiper-button-prev::after {
    font-size: 0.95rem;
    font-weight: 800;
}

.vo2-home-hero .swiper-button-next:hover,
.vo2-home-hero .swiper-button-prev:hover {
    box-shadow: var(--nm-inset-sm);
    color: var(--primary, #df2063) !important;
}

/* ---- Main sections ---- */
.vo2-home-main {
    padding-bottom: 2.5rem;
}

.vo2-home-section {
    padding: 2.25rem 0;
}

.vo2-home-section--alt {
    background: var(--surface-0, #e8ecf2);
}

.vo2-home-section__title {
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 800;
    color: var(--fg-1, #1a1f2b);
    text-align: center;
    margin-bottom: 1.35rem;
}

.vo2-home-section__title--light {
    color: var(--fg-1, #1a1f2b);
}

.vo2-home-section__lead {
    text-align: center;
    color: var(--fg-3, #6b7282);
    max-width: 42rem;
    margin: -0.75rem auto 1.5rem;
}

.vo2-home-section svg {
    display: none;
}

/* Video / post cards in swipers */
.vo2-page .card-blog.ad-card,
.vo2-home .card-blog.ad-card {
    background: var(--surface-1, #eef1f6);
    border: none;
    border-radius: 20px;
    padding: 0.55rem;
    box-shadow: var(--nm-raised-sm);
    transition: box-shadow var(--dur-2, 200ms) ease, transform var(--dur-2, 200ms) ease;
}

.vo2-page .card-blog.ad-card:hover,
.vo2-home .card-blog.ad-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--nm-raised);
}

.vo2-page .card-blog .card__header,
.vo2-home .card-blog .card__header {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--nm-inset-sm);
    margin-bottom: 0.55rem;
}

.vo2-page .card-blog .card-img,
.vo2-home .card-blog .card-img {
    border-radius: 12px;
    min-height: 140px;
    object-fit: cover;
}

.vo2-page .card-blog .card-title,
.vo2-home .card-blog .card-title {
    color: var(--fg-2, #3a4254);
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.45;
}

.vo2-page .swiper-main .swiper-button-next,
.vo2-page .swiper-main .swiper-button-prev,
.vo2-home .swiper-main .swiper-button-next,
.vo2-home .swiper-main .swiper-button-prev {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--surface-1, #eef1f6);
    box-shadow: var(--nm-raised-sm);
    color: var(--fg-2, #3a4254) !important;
}

.vo2-page .swiper-main .swiper-button-next::after,
.vo2-page .swiper-main .swiper-button-prev::after,
.vo2-home .swiper-main .swiper-button-next::after,
.vo2-home .swiper-main .swiper-button-prev::after {
    font-size: 0.95rem;
    font-weight: 800;
}

/* Discipline tiles */
.vo2-discipline-tile {
    position: relative;
    min-height: 280px;
    border-radius: var(--r-card, 24px);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    cursor: pointer;
    background: var(--surface-1, #eef1f6);
    box-shadow: var(--nm-raised-sm);
    transition: box-shadow var(--dur-3, 320ms) ease, transform var(--dur-2, 200ms) ease;
}

.vo2-discipline-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--nm-raised);
}

.vo2-discipline-tile__bg {
    position: absolute;
    inset: 0.55rem;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--nm-inset-sm);
    z-index: 0;
}

.vo2-discipline-tile__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(26, 31, 43, 0.05) 0%, rgba(26, 31, 43, 0.72) 100%);
}

.vo2-discipline-tile__icon {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.vo2-discipline-tile__text {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 0.92rem;
    margin-bottom: 0.85rem;
    line-height: 1.55;
}

.vo2-discipline-tile .nm-btn--ghost {
    position: relative;
    z-index: 1;
    align-self: center;
    background: rgba(238, 241, 246, 0.95);
}

/* Compare CTA band */
.vo2-home-compare {
    padding: 2rem 0 2.5rem;
}

.vo2-home-compare__card {
    max-width: 420px;
    margin: 0 auto;
    padding: 1.75rem 1.5rem;
    text-align: center;
}

.vo2-home-compare__card h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--fg-1, #1a1f2b);
    margin-bottom: 0.5rem;
}

.vo2-home-compare__card p {
    color: var(--fg-3, #6b7282);
    margin-bottom: 1.1rem;
}

/* Poll CTA (neumorphic primary) */
.vo2-page .poll-link-animated,
.vo2-home .poll-link-animated {
    margin-top: 1.25rem;
    animation: vo2PollFadeInUp 1s ease-out;
}

.vo2-home .poll-link-animated a,
.vo2-page .poll-link-animated a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--r-btn, 10px);
    background: linear-gradient(145deg, var(--vo2-pink-400, #ea4782), var(--vo2-pink-600, #be1553));
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    box-shadow:
        -3px -3px 8px rgba(255, 255, 255, 0.35),
        4px 4px 12px rgba(190, 21, 83, 0.32);
}

.vo2-home .poll-link-animated a:hover,
.vo2-page .poll-link-animated a:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

@keyframes vo2PollFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Override legacy hero on homepage */
.vo2-page .hero-section,
.vo2-home .hero-section {
    background: transparent !important;
    color: inherit !important;
    min-height: 0 !important;
}

.vo2-page .result-card,
.vo2-home .result-card {
    background: var(--surface-1, #eef1f6);
    border: none;
    border-radius: 20px;
    padding: 0.75rem;
    box-shadow: var(--nm-raised-sm);
}

.vo2-page .result-card h3,
.vo2-page .result-card .race-name,
.vo2-home .result-card h3,
.vo2-home .result-card .race-name {
    color: var(--fg-1, #1a1f2b) !important;
}

.vo2-page .result-card .footer a,
.vo2-home .result-card .footer a {
    border-radius: var(--r-pill, 999px);
    padding: 0.15rem 0.5rem;
    font-size: 0.72rem;
}

.vo2-page .ad-card.ad-card,
.vo2-home .ad-card.ad-card {
    box-shadow: var(--nm-raised-sm);
}

.vo2-page .ad-card:hover,
.vo2-home .ad-card:hover {
    box-shadow: var(--nm-raised);
}

/* ============================================================
   Global page layout (all public pages)
   ============================================================ */

.vo2-page__title {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    color: var(--fg-1, #1a1f2b);
    text-align: center;
    margin: 1.25rem 0 0.5rem;
}

.vo2-page__subtitle,
.vo2-page__lead {
    text-align: center;
    color: var(--fg-3, #6b7282);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.vo2-page__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    color: var(--fg-3, #6b7282);
    margin-bottom: 1rem;
}

.vo2-page__hint a {
    color: var(--primary, #df2063);
    font-weight: 600;
}

.vo2-section,
.vo2-home-section {
    padding: 2rem 0;
}

.vo2-section--alt,
.vo2-home-section--alt {
    background: rgba(255, 255, 255, 0.35);
    border-radius: var(--r-card, 24px);
    margin-inline: -0.5rem;
    padding-inline: 0.5rem;
}

.vo2-section__title,
.vo2-home-section__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--fg-1, #1a1f2b);
    margin-bottom: 0.35rem;
}

.vo2-section__lead,
.vo2-home-section__lead {
    color: var(--fg-3, #6b7282);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.vo2-panel,
.vo2-page .card.vo2-panel {
    background: var(--surface-1, #eef1f6);
    border: none;
    border-radius: var(--r-card, 24px);
    box-shadow: var(--nm-raised-sm);
    padding: 1.25rem;
}

.vo2-page .card {
    background: var(--surface-1, #eef1f6);
    border: none;
    border-radius: 20px;
    box-shadow: var(--nm-raised-sm);
}

.vo2-page .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(26, 31, 43, 0.06);
    font-weight: 700;
    color: var(--fg-1, #1a1f2b);
}

.vo2-page .card-body {
    color: var(--fg-2, #3a4254);
}

.vo2-page .list-group-item {
    background: var(--surface-1, #eef1f6);
    border-color: rgba(26, 31, 43, 0.06);
}

/* Forms */
.vo2-page .form-label {
    font-weight: 600;
    color: var(--fg-2, #3a4254);
    font-size: 0.88rem;
}

.vo2-page .form-control,
.vo2-page .form-select {
    background: var(--surface-1, #eef1f6);
    border: none;
    border-radius: 14px;
    box-shadow: var(--nm-inset-sm);
    color: var(--fg-1, #1a1f2b);
    padding: 0.55rem 0.85rem;
    transition: box-shadow var(--dur-2, 200ms) var(--ease-out);
}

.vo2-page .form-control:focus,
.vo2-page .form-select:focus {
    background: var(--surface-1, #eef1f6);
    border: none;
    box-shadow: var(--nm-inset-sm), 0 0 0 2px rgba(223, 32, 99, 0.2);
    color: var(--fg-1, #1a1f2b);
}

.vo2-page .form-check-input:checked {
    background-color: var(--primary, #df2063);
    border-color: var(--primary, #df2063);
}

/* Forms */
.vo2-page .alert {
    border: none;
    border-radius: 16px;
    box-shadow: var(--nm-inset-sm);
}

.vo2-page .alert-info {
    background: rgba(223, 32, 99, 0.08);
    color: var(--fg-2, #3a4254);
}

.vo2-page .alert-success {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
}

.vo2-page .badge {
    border-radius: var(--r-pill, 999px);
    font-weight: 600;
    padding: 0.35rem 0.65rem;
}

.vo2-page .badge.bg-success {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #15803d !important;
}

.vo2-page .badge.bg-warning {
    background: rgba(251, 191, 36, 0.2) !important;
    color: #92400e !important;
}

.vo2-page .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: var(--nm-raised);
    background: var(--surface-1, #eef1f6);
}

.vo2-page .modal-header.bg-primary {
    background: linear-gradient(145deg, var(--vo2-pink-400, #ea4782), var(--vo2-pink-600, #be1553)) !important;
    border-radius: 20px 20px 0 0;
}

/* Filter card */
.vo2-page .filter-card,
.vo2-page .vo2-filter-card {
    border: none;
    border-radius: var(--r-card, 24px);
    box-shadow: var(--nm-raised-sm);
    overflow: hidden;
    background: var(--surface-1, #eef1f6);
}

.vo2-page .filter-card .card-header,
.vo2-page .vo2-filter-card__header {
    background: linear-gradient(145deg, var(--vo2-pink-400, #ea4782), var(--vo2-pink-600, #be1553)) !important;
    color: #fff !important;
    border: none;
    border-radius: 0 !important;
    font-weight: 700;
}

.vo2-page .vo2-filter-band {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Events page */
.vo2-events-page .vo2-events-grid {
    background: transparent !important;
    border-radius: var(--r-card, 24px);
}

.vo2-events-page .box,
.vo2-events-page .vo2-event-box {
    background: var(--surface-1, #eef1f6) !important;
    background-image: none !important;
    border: none;
    border-radius: 20px;
    box-shadow: var(--nm-raised-sm);
    padding: 1rem 0.75rem;
    color: var(--fg-2, #3a4254);
    max-width: 100%;
}

.vo2-events-page .box h6,
.vo2-events-page .vo2-event-box h6 {
    color: var(--fg-1, #1a1f2b) !important;
}

/* متن‌های سفید legacy روی کارت روشن — نه دکمه‌ها */
.vo2-events-page .box .text-white:not(.btn),
.vo2-events-page .vo2-event-box .text-white:not(.btn),
.vo2-events-page .box h6.text-white,
.vo2-events-page .vo2-event-box h6.text-white {
    color: var(--fg-2, #3a4254) !important;
}

.vo2-events-page .box .text-warning,
.vo2-events-page .vo2-event-box .text-warning {
    color: var(--primary, #df2063) !important;
}

.vo2-events-page .event-box a {
    color: var(--primary, #df2063) !important;
    font-weight: 600;
}

.vo2-events-page .event-box td:nth-child(4) {
    color: var(--fg-2, #3a4254) !important;
}

.vo2-events-page .event-box a.text-dark {
    color: var(--primary, #df2063) !important;
}

.vo2-events-page .section-header h3 {
    font-weight: 800;
    color: var(--fg-1, #1a1f2b);
}

.vo2-events-page .section-header p {
    color: var(--fg-3, #6b7282);
}

/* Orders */
.vo2-orders-page .vo2-orders-hero {
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.vo2-orders-page .vo2-orders-hero h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--fg-1, #1a1f2b);
    margin-bottom: 0.35rem;
}

.vo2-orders-page .vo2-orders-hero p {
    color: var(--fg-3, #6b7282);
    margin: 0;
}

.vo2-orders-page .vo2-stat-pill {
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 16px;
    box-shadow: var(--nm-inset-sm);
    min-width: 90px;
}

.vo2-orders-page .vo2-stat-pill h4 {
    color: var(--primary, #df2063);
    font-weight: 800;
    margin: 0;
}

.vo2-orders-page .vo2-stat-pill small {
    color: var(--fg-3, #6b7282);
}

/* Products */
.vo2-products-page h1,
.vo2-products-page .h3 {
    color: var(--fg-1, #1a1f2b);
    font-weight: 800;
}

.vo2-products-page .product-breadcrumb a {
    color: var(--primary, #df2063);
}

.vo2-products-page .card-img-top {
    border-radius: 16px 16px 0 0;
}

.vo2-products-page .product-media-card,
.vo2-products-page .product-info-card {
    box-shadow: var(--nm-raised-sm);
}

.vo2-products-page .product-price {
    color: var(--primary, #df2063);
}

/* Compare */
.vo2-compare-page .vo2-compare-intro {
    max-width: 640px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    text-align: center;
    color: var(--fg-2, #3a4254);
    font-size: 0.92rem;
}

.vo2-compare-page .vo2-compare-vs {
    font-weight: 800;
    color: var(--primary, #df2063);
    text-align: center;
}

.vo2-compare-page .gradient-royal {
    background: var(--surface-1, #eef1f6) !important;
    box-shadow: var(--nm-inset-sm) !important;
    border: none !important;
    border-radius: 14px !important;
}

.vo2-compare-page .table {
    background: var(--surface-1, #eef1f6);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--nm-raised-sm);
}

.vo2-compare-page .compare-rider a {
    color: var(--fg-1, #1a1f2b);
    font-weight: 700;
}

/* About */
.vo2-about-page #aboutus h1,
.vo2-about-page #aboutus h3 {
    color: var(--fg-1, #1a1f2b);
    font-weight: 800;
}

.vo2-about-page #aboutus p {
    color: var(--fg-2, #3a4254);
    line-height: 1.85;
}

.vo2-about-page .vo2-about-panel {
    padding: 1.5rem;
}

/* Certificates */
.vo2-certificates-page .certificates-header h1 {
    color: var(--fg-1, #1a1f2b);
    font-weight: 800;
}

.vo2-certificates-page .certificates-header p {
    color: var(--fg-3, #6b7282);
}

.vo2-certificates-page .certificate-card {
    background: var(--surface-1, #eef1f6);
    border: none;
    border-radius: 20px;
    box-shadow: var(--nm-raised-sm);
    transition: box-shadow var(--dur-2, 200ms), transform var(--dur-2, 200ms);
}

.vo2-certificates-page .certificate-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--nm-raised);
}

.vo2-certificates-page .certificate-title {
    color: var(--fg-1, #1a1f2b);
}

.vo2-certificates-page .certificate-description {
    color: var(--fg-3, #6b7282);
}

/* Live streams */
.vo2-live-page .live-block {
    border-radius: 20px;
    box-shadow: var(--nm-raised-sm);
    background: var(--surface-1, #eef1f6);
}

.vo2-live-page .live-block h6 {
    background: linear-gradient(145deg, var(--vo2-pink-400, #ea4782), var(--vo2-pink-600, #be1553)) !important;
}

/* Videos embed */
.vo2-videos-page .vo2-video-frame {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--nm-raised-sm);
    padding: 0.5rem;
    background: var(--surface-1, #eef1f6);
}

.vo2-videos-page .h_iframe-aparat_embed_frame {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--nm-inset-sm);
}

.vo2-videos-page .h_iframe-aparat_embed_frame .ratio {
    display: block;
    width: 100%;
    height: auto;
}

.vo2-videos-page .h_iframe-aparat_embed_frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Rider profile outer shell */
.vo2-page.rider-profile-page,
.vo2-page .rider-profile-page {
    padding-top: 0.5rem;
}

/* ---- Edit profile (Riders/Edit-Profile) ---- */
.vo2-edit-profile {
    padding-top: 0.75rem;
    padding-bottom: 2rem;
}

.vo2-edit-profile .main-layout {
    max-width: 1200px;
}

.vo2-edit-profile__pane {
    padding: 1.25rem 1rem;
    border-radius: var(--r-card, 24px);
    background: var(--surface-1, #eef1f6);
}

.vo2-edit-profile__panel {
    padding: 1rem 1.1rem;
    border-radius: 18px;
}

.vo2-edit-profile__panel-title {
    font-weight: 700;
    color: var(--fg-1, #1a1f2b);
    font-size: 0.95rem;
}

.vo2-edit-profile__section-heading {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--fg-1, #1a1f2b);
    margin: 1.5rem 0 1rem;
}

.vo2-edit-profile__divider {
    border: none;
    height: 1px;
    margin: 1.75rem 0;
    background: linear-gradient(90deg, transparent, rgba(26, 31, 43, 0.08), transparent);
}

.vo2-edit-profile__avatar-wrap {
    max-width: 280px;
}

.vo2-edit-profile__avatar-label {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.vo2-edit-profile__avatar-img {
    width: 100%;
    max-width: 260px;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    padding: 4px;
}

.vo2-edit-profile__avatar-edit {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.vo2-edit-profile__coach-reset {
    position: absolute;
    left: 0;
    top: 1.85rem;
    z-index: 2;
    min-width: 2rem;
    padding: 0.35rem 0.5rem !important;
}

.vo2-edit-profile .list-group-item-warning,
.vo2-edit-profile__notice {
    border: none;
    border-radius: 14px;
    box-shadow: var(--nm-inset-sm);
    background: rgba(251, 191, 36, 0.12);
    color: #92400e;
    padding: 0.85rem 1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Document upload cards */
.vo2-doc-card {
    overflow: hidden;
    border-radius: 20px;
    background: var(--surface-1, #eef1f6);
}

.vo2-doc-card__head {
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    text-align: start;
    line-height: 1.6;
    background: linear-gradient(145deg, var(--fg-1, #1a1f2b), #2d3548);
}

.vo2-doc-card__badge {
    display: inline-block;
    margin-inline-start: 0.35rem;
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    font-size: 0.72rem;
    background: rgba(223, 32, 99, 0.85);
}

.vo2-doc-card__badge--muted {
    background: rgba(255, 255, 255, 0.15);
}

.vo2-doc-card__body {
    padding: 1rem 1rem 1.15rem;
    position: relative;
}

.vo2-doc-card__body--upload {
    min-height: 180px;
}

.vo2-doc-card__preview {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: var(--nm-inset-sm);
    object-fit: contain;
}

.vo2-doc-card__pdf-preview {
    width: 200px;
    min-height: 120px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: var(--nm-inset-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: var(--primary, #df2063);
}

.vo2-doc-card__pdf-preview i {
    font-size: 2.5rem;
}

.vo2-doc-card__note {
    margin: 0.75rem 0 0.5rem;
    line-height: 1.7;
}

.vo2-doc-card__upload-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 2;
    font-size: 1.65rem;
    color: var(--primary, #df2063);
    background: var(--surface-1, #eef1f6);
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    box-shadow: var(--nm-raised-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    margin: 0;
}

.vo2-doc-card__upload-overlay:hover {
    box-shadow: var(--nm-raised);
    transform: translate(-50%, -52%);
}

.vo2-doc-card__upload-trigger {
    display: block;
    position: relative;
    min-height: 48px;
    cursor: pointer;
    margin-top: 0.5rem;
}

.vo2-doc-card__progress {
    height: 8px;
    border-radius: 999px;
    background: var(--surface-1, #eef1f6);
    box-shadow: var(--nm-inset-sm);
    overflow: hidden;
}

.vo2-doc-card__progress .progress-bar {
    border-radius: 999px;
    background: linear-gradient(145deg, var(--vo2-pink-400, #ea4782), var(--vo2-pink-600, #be1553));
}

/* Insurance panel (online inquiry) */
.vo2-insurance-panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.vo2-insurance-status {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    box-shadow: var(--nm-inset-sm);
}

.vo2-insurance-status__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    box-shadow: var(--nm-raised-sm);
}

.vo2-insurance-status--pending .vo2-insurance-status__icon {
    color: var(--fg-3, #6b7282);
    background: var(--surface-1, #eef1f6);
}

.vo2-insurance-status--valid .vo2-insurance-status__icon {
    color: #15803d;
    background: rgba(34, 197, 94, 0.12);
}

.vo2-insurance-status--expired .vo2-insurance-status__icon {
    color: #b45309;
    background: rgba(251, 191, 36, 0.15);
}

.vo2-insurance-status__label {
    font-weight: 700;
    color: var(--fg-1, #1a1f2b);
    font-size: 0.92rem;
}

.vo2-insurance-status--valid .vo2-insurance-status__label {
    color: #15803d;
}

.vo2-insurance-status--expired .vo2-insurance-status__label {
    color: #b45309;
}

.vo2-insurance-status__meta {
    font-size: 0.85rem;
    color: var(--fg-2, #3a4254);
}

.vo2-insurance-panel__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.vo2-insurance-panel__buy-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary, #df2063);
    text-decoration: none;
}

.vo2-insurance-panel__buy-link:hover {
    text-decoration: underline;
}

.vo2-insurance-panel__hint {
    line-height: 1.7;
}

.vo2-insurance-panel__manual--hidden {
    display: none;
}

.vo2-insurance-manual-details {
    border-radius: 12px;
    box-shadow: var(--nm-inset-sm);
    padding: 0.5rem 0.75rem;
}

.vo2-insurance-manual-details__summary {
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fg-2, #3a4254);
    list-style: none;
}

.vo2-insurance-manual-details__summary::-webkit-details-marker {
    display: none;
}

.vo2-insurance-manual-details__body {
    padding-top: 0.75rem;
}

.vo2-insurance-result {
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.65;
    text-align: start;
}

.vo2-insurance-result--hidden {
    display: none;
}

.vo2-insurance-result--success,
.vo2-edit-profile .vo2-insurance-result.alert-success {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
    box-shadow: var(--nm-inset-sm);
}

.vo2-insurance-result--warning,
.vo2-edit-profile .vo2-insurance-result.alert-warning {
    background: rgba(251, 191, 36, 0.14);
    color: #92400e;
    box-shadow: var(--nm-inset-sm);
}

.vo2-insurance-result--danger,
.vo2-edit-profile .vo2-insurance-result.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    box-shadow: var(--nm-inset-sm);
}

.vo2-page .alert-warning {
    background: rgba(251, 191, 36, 0.14);
    color: #92400e;
}

.vo2-page .alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
}

@media (max-width: 768px) {
    .vo2-edit-profile__pane {
        padding: 0.85rem 0.65rem;
    }

    .vo2-insurance-panel__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .vo2-insurance-panel__actions .nm-btn {
        width: 100%;
    }
}

/* (body background set at top) */

@media (max-width: 768px) {
    .vo2-home-news__bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .vo2-home-news__text {
        max-width: 100%;
        font-size: 0.85rem;
    }

    .vo2-home-hero__card {
        padding: 0.85rem;
    }
}

/* ============================================================
   Statistics · Stream · Taxonomies · Cert · Guide · Blog · Ads
   (batch neo wrapper — June 2026)
   ============================================================ */

/* Statistics */
.vo2-statistics-page h3 {
    color: var(--fg-1, #1a1f2b);
    font-weight: 800;
}

.vo2-statistics-page .vo2-statistics-chart-row {
    padding: 1rem 0.75rem;
}

.vo2-statistics-page .chart-container {
    padding: 0.5rem;
}

/* Stream admin */
.vo2-stream-admin-page h1 {
    color: var(--fg-1, #1a1f2b);
    font-weight: 800;
    margin-bottom: 1rem;
}

.vo2-stream-admin-page .table {
    background: var(--surface-1, #eef1f6);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--nm-raised-sm);
}

.vo2-stream-admin-page .table thead th {
    background: rgba(26, 31, 43, 0.04);
    color: var(--fg-2, #3a4254);
    border: none;
}

/* Stream viewer — dark player shell only */
.vo2-stream-page__player {
    background: #1a1f2b;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--nm-inset-sm);
}

.vo2-stream-page__player .card-header {
    border-radius: 16px 16px 0 0;
}

.vo2-stream-page__chat-panel .card {
    background: var(--surface-1, #eef1f6);
    border: none;
    border-radius: 16px;
    box-shadow: var(--nm-raised-sm);
}

.vo2-stream-page__chat-panel .card-body {
    background-color: #3e3e3e !important;
    border-radius: 0 0 16px 16px;
}

.vo2-stream-page__stats .card {
    box-shadow: var(--nm-raised-sm);
}

.vo2-stream-page .vo2-stream-page__stats h3,
.vo2-stream-page .row.mt-2 h3.text-white {
    color: var(--fg-1, #1a1f2b) !important;
}

/* Taxonomies admin */
.vo2-taxonomies-page h1 {
    color: var(--fg-1, #1a1f2b);
    font-weight: 800;
    margin-bottom: 1rem;
}

.vo2-taxonomies-page .table {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--nm-raised-sm);
}

/* Certificate verify */
.vo2-cert-verify-page .cert-verify-wrap {
    max-width: 720px;
    margin: 2rem auto 4rem;
    padding: 0 1rem;
}

.vo2-cert-verify-page .cert-verify-card {
    padding: 0;
}

.vo2-cert-verify-page .cert-verify-title {
    color: var(--fg-1, #1a1f2b);
}

/* Registration guide */
.vo2-guide-page .guide-hero {
    box-shadow: var(--nm-raised);
}

.vo2-guide-page .step-card {
    background: var(--surface-1, #eef1f6);
    border: none;
    box-shadow: var(--nm-raised-sm);
}

.vo2-guide-page .guide-note,
.vo2-guide-page .cta-box {
    box-shadow: var(--nm-inset-sm);
}

/* Championship certificates */
.vo2-championship-certs-page .cc-hero {
    box-shadow: var(--nm-raised);
}

.vo2-championship-certs-page .cc-stat,
.vo2-championship-certs-page .cc-card,
.vo2-championship-certs-page .cc-empty {
    background: var(--surface-1, #eef1f6);
    border: none;
    box-shadow: var(--nm-raised-sm);
}

/* Blog */
.vo2-blog-page h1,
.vo2-blog-page h3 {
    color: var(--fg-1, #1a1f2b);
    font-weight: 800;
}

.vo2-blog-page .sidebar {
    background: var(--surface-1, #eef1f6);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--nm-raised-sm);
}

/* Post show */
.vo2-post-show-page .ce-block__content h3 {
    color: var(--fg-1, #1a1f2b);
    font-weight: 700;
}

.vo2-post-show-page .image-tool__image {
    border-radius: 16px;
    box-shadow: var(--nm-raised-sm);
}

/* Posts admin */
.vo2-posts-admin-page .table {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--nm-raised-sm);
}

/* Discipline page */
.vo2-discipline-page .discipline-header {
    box-shadow: var(--nm-raised-sm);
}

.vo2-discipline-page .discipline-card {
    background: var(--surface-1, #eef1f6);
}

/* Order details partial */
.vo2-order-details {
    padding: 1.25rem;
    background: var(--surface-1, #eef1f6);
    border-radius: var(--r-card, 24px);
}

.vo2-order-details .card {
    box-shadow: var(--nm-inset-sm);
}

/* Gallery — index (/gallery) */
.vo2-gallery-index-page {
    padding-bottom: 2.5rem;
}

.vo2-gallery-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.85rem;
    border-radius: 16px;
    max-width: 640px;
    margin-inline: auto;
}

.vo2-gallery-search__icon {
    color: var(--primary, #df2063);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.vo2-gallery-search__input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.55rem 0.25rem !important;
}

.vo2-gallery-search__input:focus {
    box-shadow: none !important;
}

.vo2-gallery-card-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
    height: 100%;
}

.vo2-gallery-card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vo2-gallery-card-link:hover .vo2-gallery-card {
    transform: translateY(-4px);
    box-shadow: var(--nm-raised);
}

.vo2-gallery-card__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    min-height: 315px;
    background: var(--surface-1, #eef1f6);
}

.vo2-gallery-card__cell {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--nm-inset-sm);
}

.vo2-gallery-card__img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.vo2-gallery-card-link:hover .vo2-gallery-card__img {
    transform: scale(1.03);
}

.vo2-gallery-card__more {
    position: absolute;
    inset: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 31, 43, 0.45);
    border-radius: 12px;
    pointer-events: none;
}

.vo2-gallery-card__more span {
    color: #fff;
    font-weight: 800;
    font-size: 1.35rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.vo2-gallery-card__footer {
    padding: 1rem 0.85rem 1.1rem;
    text-align: center;
    min-height: 135px;
    color: #fff;
}

.vo2-gallery-card__footer--event {
    background: linear-gradient(145deg, var(--vo2-pink-400, #ea4782), var(--vo2-pink-600, #be1553));
}

.vo2-gallery-card__footer--custom {
    background: linear-gradient(145deg, #22c55e, #15803d);
}

.vo2-gallery-card__title {
    font-size: 0.95rem;
    line-height: 1.45;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.5rem;
    min-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.vo2-gallery-card__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
}

.vo2-gallery-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: var(--r-pill, 999px);
    background: rgba(255, 255, 255, 0.92);
    color: var(--fg-2, #3a4254);
    box-shadow: var(--nm-raised-sm);
}

.vo2-gallery-card__date {
    font-size: 0.78rem;
    opacity: 0.95;
}

.vo2-gallery-empty {
    max-width: 320px;
    padding: 2rem 1.5rem;
    border-radius: 18px;
    color: var(--fg-3, #6b7282);
}

.vo2-gallery-empty i {
    font-size: 2.5rem;
    opacity: 0.55;
}

/* Gallery — single show */
.vo2-gallery-page .gallery-header {
    border-radius: 0 0 20px 20px;
    box-shadow: var(--nm-raised-sm);
    margin-bottom: 0;
}

.vo2-gallery-page .gallery-info {
    padding: 1.5rem;
}

.vo2-gallery-page .gallery-header {
    background: linear-gradient(145deg, var(--vo2-pink-400, #ea4782), var(--vo2-pink-600, #be1553));
    box-shadow: var(--nm-raised-sm);
    border-radius: 0 0 20px 20px;
    margin-bottom: 1.5rem;
}

.vo2-gallery-page .gallery-info {
    background: var(--surface-1, #eef1f6);
    border: none;
    box-shadow: var(--nm-inset-sm);
}

.vo2-gallery-carousel {
    background: var(--surface-1, #eef1f6);
    border-radius: 18px;
}

.vo2-fancy-gallery .f-carousel__slide {
    border-radius: 12px;
    overflow: hidden;
}

.vo2-fancy-gallery__thumb {
    box-shadow: var(--nm-inset-sm);
    object-fit: cover;
    width: 100%;
    max-height: 150px;
}

.vo2-gallery-page .col-md-8 > .card {
    box-shadow: var(--nm-raised-sm);
    border: none;
    border-radius: 16px;
}

.vo2-gallery-page .gallery-header {
    color: #fff;
    padding: 2rem 0;
}

.vo2-gallery-page .gallery-header h1 {
    font-weight: 800;
    font-size: 1.65rem;
}

.vo2-gallery-page .event-badge,
.vo2-gallery-page .photographer-badge,
.vo2-gallery-page .price-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: var(--r-pill, 999px);
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: var(--nm-raised-sm);
}

.vo2-gallery-page .event-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.vo2-gallery-page .photographer-badge {
    background: rgba(255, 255, 255, 0.92);
    color: var(--fg-1, #1a1f2b);
}

.vo2-gallery-page .price-badge {
    background: linear-gradient(145deg, #f97316, #ea580c);
    color: #fff;
}

.vo2-gallery-page .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.55rem;
    color: var(--fg-2, #3a4254);
}

.vo2-gallery-page .info-item i {
    width: 22px;
    margin-left: 10px;
    color: var(--primary, #df2063);
}

.vo2-gallery-page .vo2-gallery-empty-state {
    padding: 2.5rem 1.5rem;
    border-radius: 18px;
    text-align: center;
    color: var(--fg-3, #6b7282);
}

.vo2-fancy-gallery .f-carousel__slide img {
    transition: opacity 0.3s ease;
}

.vo2-fancy-gallery .f-carousel__slide img[loading="lazy"].loaded {
    opacity: 1;
}

/* Coaches */
.vo2-coaches-page .card,
.vo2-coach-profile-page .card {
    box-shadow: var(--nm-raised-sm);
    border: none;
}

.vo2-coaches-page .single_advisor_profile {
    box-shadow: var(--nm-raised-sm);
}

.vo2-coach-profile-page .table {
    box-shadow: var(--nm-raised-sm);
}

/* Advertisements */
.vo2-ads-page .ad-card,
.vo2-my-ads-page .ad-card,
.vo2-ads-booth-page .ad-card {
    background: var(--surface-1, #eef1f6);
    border: none;
    box-shadow: var(--nm-raised-sm);
}

.vo2-ads-page .filter-section,
.vo2-ads-booth-page .filter-section {
    background: var(--surface-1, #eef1f6);
    box-shadow: var(--nm-inset-sm);
    border: none;
}

.vo2-ad-show-page .ad-info-card,
.vo2-ad-show-page .seller-card {
    background: var(--surface-1, #eef1f6);
    border: none;
    border-radius: 16px;
    box-shadow: var(--nm-raised-sm);
}

.vo2-ad-form-page .form-section {
    background: var(--surface-1, #eef1f6);
    border: none;
    box-shadow: var(--nm-raised-sm);
}

/* ---- nm-sheet — neumorphic modal / mobile bottom sheet ---- */
.nm-sheet .modal-dialog {
    max-width: 440px;
}

.vo2-page .nm-sheet .modal-content,
.nm-sheet__panel {
    border: none;
    border-radius: 24px;
    background: var(--surface-1, #eef1f6);
    box-shadow: var(--nm-raised-sm);
    overflow: hidden;
}

.nm-sheet__handle {
    display: none;
}

.nm-sheet__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.25rem 1.25rem 0.5rem;
    border: none;
    background: transparent;
}

.nm-sheet__title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.nm-sheet__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--surface-1, #eef1f6);
    color: var(--primary, #df2063);
    box-shadow: var(--nm-inset-sm);
    font-size: 1.15rem;
    line-height: 1;
}

.nm-sheet__header .modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.55;
    color: var(--fg-1, #1a1f2b);
    text-align: start;
}

.nm-sheet__close {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: var(--surface-1, #eef1f6);
    color: var(--fg-2, #3a4254);
    box-shadow: var(--nm-inset-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, box-shadow 0.2s ease;
    font-size: 1.1rem;
    line-height: 1;
}

.nm-sheet__close .bi {
    font-size: 1.1rem;
    font-weight: 700;
    pointer-events: none;
}

.nm-sheet__close:hover {
    color: var(--primary, #df2063);
    box-shadow: var(--nm-raised-sm);
}

.nm-sheet__body {
    padding: 0.5rem 1.25rem 1rem;
}

.nm-sheet__hint {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--fg-3, #6b7282);
    text-align: start;
}

.nm-sheet__hint strong {
    color: var(--fg-2, #3a4254);
    font-weight: 700;
}

.nm-sheet__label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--fg-2, #3a4254);
    text-align: start;
}

.nm-sheet__field {
    padding: 0.35rem;
    border-radius: 16px;
}

.nm-sheet__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    padding: 0.75rem 1.25rem 1.25rem;
    border: none;
    background: transparent;
}

.nm-sheet__footer .nm-btn {
    min-width: 7.5rem;
}

/* Reusable neumorphic pill chip (inside sheet or elsewhere) */
.nm-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border: none;
    border-radius: var(--r-pill, 999px);
    background: var(--surface-1, #eef1f6);
    color: var(--fg-2, #3a4254);
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: var(--nm-raised-sm);
    cursor: pointer;
    transition:
        box-shadow 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.nm-chip:hover {
    color: var(--primary, #df2063);
    transform: translateY(-1px);
    box-shadow: var(--nm-raised);
}

.nm-chip.is-active {
    color: var(--primary, #df2063);
    box-shadow: var(--nm-inset-sm);
}

/* Desktop entrance */
.nm-sheet.fade .modal-dialog {
    transform: translateY(12px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.nm-sheet.show .modal-dialog {
    transform: translateY(0) scale(1);
}

/* Mobile bottom sheet */
@media (max-width: 767.98px) {
    .nm-sheet .modal-dialog {
        margin: 0;
        max-width: 100%;
        min-height: 100%;
        display: flex;
        align-items: flex-end;
    }

    .nm-sheet.fade .modal-dialog {
        transform: translateY(100%);
    }

    .nm-sheet.show .modal-dialog {
        transform: translateY(0);
    }

    .nm-sheet__panel {
        width: 100%;
        border-radius: 28px 28px 0 0 !important;
        max-height: min(92vh, 640px);
        overflow-y: auto;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .nm-sheet__handle {
        display: block;
        width: 42px;
        height: 4px;
        margin: 10px auto 0;
        border-radius: 999px;
        background: rgba(107, 114, 130, 0.35);
        box-shadow: var(--nm-inset-sm);
    }

    .nm-sheet__header {
        padding-top: 0.85rem;
    }

    .nm-sheet__footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .nm-sheet__footer .nm-btn {
        width: 100%;
        min-width: 0;
        min-height: 2.75rem;
        font-size: 1rem;
    }

    .nm-sheet .modal-backdrop.show {
        opacity: 0.45;
    }
}

/* ---- Club selection sheet (select2 + quick picks) ---- */
.nm-club-selection__quick {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.nm-sheet__field--select .select2-container {
    width: 100% !important;
}

.nm-sheet__field--select .select2-container--default .select2-selection--single {
    height: 46px;
    border: none;
    border-radius: 12px;
    background: var(--surface-1, #eef1f6);
    box-shadow: var(--nm-inset-sm);
}

.nm-sheet__field--select .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px;
    padding-right: 14px;
    padding-left: 36px;
    color: var(--fg-1, #1a1f2b);
    font-weight: 600;
    text-align: start;
}

.nm-sheet__field--select .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
    left: 10px;
    right: auto;
}

.nm-sheet__field--select .select2-container--default.select2-container--open .select2-selection--single {
    box-shadow: var(--nm-inset);
}

.nm-club-selection .select2-dropdown {
    border: none;
    border-radius: 14px;
    background: var(--surface-1, #eef1f6);
    box-shadow: var(--nm-raised-sm);
    overflow: hidden;
    margin-top: 6px;
}

.nm-club-selection .select2-container--default .select2-search--dropdown .select2-search__field {
    border: none;
    border-radius: 10px;
    background: var(--surface-1, #eef1f6);
    box-shadow: var(--nm-inset-sm);
    padding: 0.55rem 0.75rem;
    text-align: start;
}

.nm-club-selection .select2-container--default .select2-results__option {
    padding: 0.55rem 0.85rem;
    text-align: start;
}

.nm-club-selection .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: linear-gradient(145deg, var(--vo2-pink-400, #ea4782), var(--vo2-pink-600, #be1553));
    color: #fff;
}

/* ---- Insurance renewal sheet (partials/insurance-renewal-modal) ---- */
.nm-insurance-renewal .modal-dialog {
    max-width: 520px;
}

.nm-insurance-renewal__message {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.65;
    color: var(--fg-1, #1a1f2b);
    text-align: start;
}

.nm-insurance-renewal__question {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--fg-3, #6b7282);
    text-align: start;
}

.nm-insurance-renewal__result {
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.55;
    text-align: start;
}

.nm-insurance-renewal__result.alert-success {
    color: #15803d;
    background: rgba(34, 197, 94, 0.12);
    box-shadow: var(--nm-inset-sm);
}

.nm-insurance-renewal__result.alert-warning {
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
    box-shadow: var(--nm-inset-sm);
}

.nm-insurance-renewal__result.alert-danger {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.1);
    box-shadow: var(--nm-inset-sm);
}

.nm-insurance-renewal__manual {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--fg-2, #3a4254);
    background: rgba(59, 130, 246, 0.08);
    box-shadow: var(--nm-inset-sm);
    text-align: start;
}

.nm-insurance-renewal__manual .bi {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: #2563eb;
}

.nm-insurance-renewal .nm-sheet__footer {
    flex-wrap: wrap;
    justify-content: stretch;
    gap: 0.5rem;
}

.nm-insurance-renewal .nm-sheet__footer .nm-btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    justify-content: center;
    text-align: center;
}

.nm-insurance-renewal .nm-sheet__footer .js-insurance-yes {
    flex: 1 1 100%;
    order: 1;
}

.nm-insurance-renewal .nm-sheet__footer .js-insurance-buy-link {
    order: 2;
}

.nm-insurance-renewal .nm-sheet__footer [data-dismiss="modal"] {
    order: 3;
}

.nm-btn--outline-danger {
    color: #dc2626 !important;
    background: var(--surface-1, #eef1f6);
    box-shadow: var(--nm-raised-sm);
    border: 1px solid rgba(220, 38, 38, 0.35);
    text-decoration: none !important;
}

.nm-btn--outline-danger:hover {
    color: #fff !important;
    background: linear-gradient(145deg, #ef4444, #dc2626);
    box-shadow: var(--nm-raised-sm);
}

@media (max-width: 767.98px) {
    .nm-insurance-renewal .nm-sheet__footer .nm-btn {
        flex: 1 1 100%;
    }

    .nm-insurance-renewal .nm-sheet__footer .js-insurance-yes {
        order: 3;
    }

    .nm-insurance-renewal .nm-sheet__footer .js-insurance-buy-link {
        order: 2;
    }

    .nm-insurance-renewal .nm-sheet__footer [data-dismiss="modal"] {
        order: 1;
    }
}

/* ---- Event results partial (Events/results-table.blade.php) ---- */
.vo2-results-table {
    color: var(--fg-2, #3a4254);
}

.vo2-results-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.vo2-results-tabulator {
    padding: 0.75rem;
    overflow: hidden;
}

.vo2-results-alert {
    padding: 1rem 1.25rem;
    border: none !important;
    background: var(--surface-1, #eef1f6) !important;
    color: var(--fg-2, #3a4254) !important;
}

.vo2-results-table-wrap {
    padding: 0.35rem;
    overflow: hidden;
}

.vo2-results-data-table {
    font-size: 0.8125rem;
    margin-bottom: 0;
    color: var(--fg-2, #3a4254);
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.35);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.55);
}

.vo2-results-data-table thead th {
    font-weight: 800;
    color: var(--fg-1, #1a1f2b);
    border-bottom: 1px solid rgba(107, 114, 130, 0.15);
    white-space: nowrap;
}

.vo2-results-data-table tbody td {
    vertical-align: middle;
}

.vo2-results-data-table a {
    color: var(--primary, #df2063);
    font-weight: 600;
    text-decoration: none;
}

.vo2-results-data-table a:hover {
    text-decoration: underline;
}

.vo2-results-table .gap-text {
    direction: ltr;
    text-align: right;
}

.vo2-results-team {
    padding: 1rem 1.25rem 1.25rem;
}

.vo2-results-team__title {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--fg-1, #1a1f2b);
    margin-bottom: 0.85rem;
}

.vo2-results-tabs {
    padding: 0.65rem 0.75rem 0;
    margin-top: 0.5rem;
}

.vo2-results-tabs .nav-tabs {
    border-bottom: none;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.vo2-results-tabs .nav-link {
    border: none !important;
    border-radius: 12px;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--fg-3, #6b7282);
    background: var(--surface-1, #eef1f6);
    box-shadow: var(--nm-inset-sm);
}

.vo2-results-tabs .nav-link.active,
.vo2-results-tabs .nav-link:hover {
    color: #fff !important;
    background: var(--primary, #df2063) !important;
    box-shadow: var(--nm-raised-sm);
}

.vo2-results-tabs.result-tab li {
    float: none;
    margin: 0;
    border: none;
    background: transparent;
}

.vo2-results-tabs.result-tab li.active {
    background: transparent;
    border: none;
}

/* ---- CFI iframe events embed ---- */
body:has(.vo2-cfi-iframe-page) {
    background: var(--surface-1, #eef1f6) !important;
}

.vo2-cfi-iframe-page {
    min-height: 100vh;
    padding-bottom: 1rem;
}

.vo2-cfi-iframe-page .vo2-page__title {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.vo2-cfi-iframe-page .vo2-page__hint {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.vo2-cfi-iframe-page .vo2-event-box {
    padding: 1rem 0.65rem !important;
}

.vo2-cfi-total {
    border-top: 1px solid rgba(107, 114, 130, 0.12);
    font-size: 0.85rem;
    color: var(--fg-2, #3a4254);
}

.vo2-cfi-empty {
    max-width: 420px;
    margin: 2rem auto;
}

/* ---- Ranking query form (RankingForm.blade.php) ---- */
.vo2-ranking-page {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.vo2-ranking-panel {
    overflow: hidden;
}

.vo2-ranking-panel__header {
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--fg-1, #1a1f2b);
    border-bottom: 1px solid rgba(107, 114, 130, 0.1);
}

.vo2-ranking-form {
    padding: 1rem 1.15rem 1.15rem;
}

.ranking-filters-shell {
    width: 100%;
}

.ranking-filters {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0.65rem 0.75rem;
    width: 100%;
}

.ranking-filters__item {
    flex: 1 1 9.5rem;
    min-width: 7.5rem;
    max-width: 11.5rem;
    margin-bottom: 0 !important;
    text-align: start;
}

.ranking-filters__item label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--fg-2, #3a4254);
    white-space: nowrap;
}

.ranking-filters__item .form-control {
    width: 100%;
    min-height: 2.35rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.8rem;
    text-align: start;
    border: none;
    border-radius: 10px;
    background: var(--surface-1, #eef1f6);
    box-shadow: var(--nm-inset-sm);
}

.ranking-filters__item .form-control:focus {
    outline: none;
    box-shadow: var(--nm-inset-sm), 0 0 0 2px rgba(223, 32, 99, 0.2);
}

.ranking-filters__item--submit {
    flex: 0 0 auto;
    min-width: 6.5rem;
    max-width: 7.5rem;
}

.ranking-filters__submit-btn {
    min-height: 2.35rem;
    padding-inline: 0.85rem !important;
}

.ranking-filters__age-panel {
    flex: 1 1 12rem;
    min-width: 11rem;
    max-width: 16rem;
}

.ranking-age-panel {
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    background: var(--surface-1, #eef1f6);
    box-shadow: var(--nm-inset-sm);
}

.ranking-age-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    cursor: pointer;
}

.ranking-age-panel__title {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--fg-2, #3a4254);
    white-space: nowrap;
}

.ranking-age-switch {
    position: relative;
    display: inline-block;
    width: 2.4rem;
    height: 1.35rem;
    flex-shrink: 0;
}

.ranking-age-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ranking-age-switch__slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(107, 114, 130, 0.25);
    box-shadow: var(--nm-inset-sm);
    transition: background 0.2s ease;
}

.ranking-age-switch__slider::before {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    right: 0.18rem;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--nm-raised-sm);
    transition: transform 0.2s ease;
}

.ranking-age-switch input:checked + .ranking-age-switch__slider {
    background: linear-gradient(145deg, var(--vo2-pink-400, #ea4782), var(--vo2-pink-600, #be1553));
}

.ranking-age-switch input:checked + .ranking-age-switch__slider::before {
    transform: translate(1.05rem, -50%);
}

.ranking-age-panel__body {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(107, 114, 130, 0.12);
}

.ranking-age-panel__fields {
    display: flex;
    gap: 0.4rem;
}

.ranking-age-panel__fields .form-control {
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: var(--nm-inset-sm);
}

.ranking-age-panel__hint {
    margin: 0.35rem 0 0;
    font-size: 0.68rem;
    color: var(--fg-3, #6b7282);
}

.vo2-ranking-table-wrap {
    margin-top: 0.5rem;
    border-top: 1px solid rgba(107, 114, 130, 0.1);
}

@media (min-width: 1200px) {
    .ranking-filters {
        flex-wrap: nowrap;
    }

    .ranking-filters__item {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }

    .ranking-filters__age-panel {
        flex: 1.15 1 0;
        max-width: none;
    }

    .ranking-filters__item--submit {
        flex: 0 0 7rem;
    }
}

@media (max-width: 575.98px) {
    .ranking-filters__item,
    .ranking-filters__age-panel,
    .ranking-filters__item--submit {
        flex: 1 1 100%;
        max-width: none;
    }
}

/* ---- UCI ranking pages (ind / nation / team) ---- */
.vo2-ranking-uci-page {
    padding-top: 1rem;
    padding-bottom: 2.5rem;
}

.vo2-ranking-uci-shell {
    max-width: 1100px;
}

.vo2-ranking-uci-hero {
    position: relative;
    padding: 1.35rem 1.5rem 1.25rem;
    margin-bottom: 1.25rem;
    text-align: center;
    overflow: hidden;
}

.vo2-ranking-uci-hero__badge {
    display: inline-block;
    margin-bottom: 0.65rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--primary, #df2063);
    background: rgba(223, 32, 99, 0.08);
    box-shadow: var(--nm-inset-sm);
}

.vo2-ranking-uci-hero__title {
    font-size: clamp(1.05rem, 2.5vw, 1.45rem);
    font-weight: 800;
    color: var(--fg-1, #1a1f2b);
    margin-bottom: 0.55rem;
    line-height: 1.45;
}

.vo2-ranking-uci-hero__desc {
    font-size: 0.9rem;
    color: var(--fg-3, #6b7282);
    line-height: 1.7;
    max-width: 42rem;
    margin-inline: auto;
}

.vo2-ranking-uci-hero__meta {
    margin-top: 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--fg-2, #3a4254);
}

.vo2-ranking-uci-hero__meta i {
    color: var(--primary, #df2063);
    margin-inline-end: 0.25rem;
}

/* Gender segment — overrides legacy nav-tabs-primary */
.vo2-ranking-segment {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 1.25rem;
    padding: 0.35rem;
    border-radius: 16px;
}

.vo2-ranking-segment__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    border: none !important;
}

.vo2-ranking-segment .nav-item {
    margin: 0 !important;
}

.vo2-ranking-segment .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: none !important;
    border-radius: 12px !important;
    padding: 0.55rem 1.15rem !important;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--fg-3, #6b7282) !important;
    background: transparent !important;
    box-shadow: none;
    transition: box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.vo2-ranking-segment .nav-link.active,
.vo2-ranking-segment .nav-link:hover {
    color: #fff !important;
    background: linear-gradient(145deg, var(--vo2-pink-400, #ea4782), var(--vo2-pink-600, #be1553)) !important;
    box-shadow: var(--nm-raised-sm);
}

.vo2-ranking-uci-admin {
    margin-bottom: 1rem;
}

.vo2-ranking-uci-panels .tab-pane {
    padding: 0;
}

.vo2-ranking-uci-table-wrap {
    padding: 0.5rem;
    overflow: hidden;
}

.vo2-ranking-uci-table-wrap--narrow {
    max-width: 720px;
    margin-inline: auto;
}

.vo2-uci-table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.28);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.45);
    font-size: 0.84rem;
    color: var(--fg-2, #3a4254);
}

.vo2-uci-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface-1, #eef1f6);
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--fg-1, #1a1f2b);
    white-space: nowrap;
    border-bottom: 1px solid rgba(107, 114, 130, 0.14);
    padding: 0.65rem 0.5rem;
    vertical-align: middle;
}

.vo2-uci-table tbody td {
    padding: 0.55rem 0.5rem;
    vertical-align: middle;
    border-color: rgba(107, 114, 130, 0.08);
}

.vo2-uci-col-rank {
    width: 3.25rem;
    text-align: center;
}

.vo2-uci-col-delta {
    width: 2.75rem;
    text-align: center;
}

.vo2-uci-col-age {
    width: 2.5rem;
    text-align: center;
}

.vo2-uci-col-points {
    width: 4.5rem;
    text-align: center;
    white-space: nowrap;
}

.vo2-uci-col-nation {
    min-width: 5.5rem;
}

.vo2-uci-rank {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--fg-1, #1a1f2b);
    text-align: center;
}

.vo2-uci-delta-cell {
    text-align: center;
}

.vo2-uci-delta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.85rem;
    padding: 0.12rem 0.35rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.vo2-uci-delta--up {
    color: #15803d;
    background: rgba(34, 197, 94, 0.14);
    box-shadow: var(--nm-inset-sm);
}

.vo2-uci-delta--down {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
    box-shadow: var(--nm-inset-sm);
}

.vo2-uci-delta--flat {
    color: var(--fg-3, #6b7282);
    opacity: 0.45;
}

.vo2-uci-name a {
    color: var(--fg-1, #1a1f2b);
    font-weight: 700;
    text-decoration: none;
}

.vo2-uci-name a:hover {
    color: var(--primary, #df2063);
    text-decoration: underline;
}

.vo2-uci-team {
    font-size: 0.78rem;
    line-height: 1.45;
    word-break: break-word;
}

.vo2-uci-age {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.vo2-uci-points {
    text-align: center;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--primary, #df2063);
}

.vo2-uci-nation {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.vo2-uci-nation__code {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.vo2-ranking-ir {
    background: linear-gradient(90deg, rgba(223, 32, 99, 0.09), transparent 72%) !important;
}

.vo2-ranking-ir .vo2-uci-name a,
.vo2-ranking-ir .vo2-uci-team {
    color: var(--primary, #df2063);
}

@media (max-width: 575.98px) {
    .vo2-ranking-uci-hero {
        padding: 1rem 0.85rem;
    }

    .vo2-ranking-segment {
        width: 100%;
    }

    .vo2-ranking-segment .nav-link {
        flex: 1;
        justify-content: center;
        padding: 0.5rem 0.65rem !important;
        font-size: 0.8rem;
    }

    .vo2-uci-table {
        font-size: 0.74rem;
    }

    .vo2-uci-table thead th,
    .vo2-uci-table tbody td {
        padding: 0.45rem 0.35rem;
    }

    .vo2-uci-col-rank,
    .vo2-uci-col-delta {
        position: sticky;
        z-index: 1;
        background: var(--surface-1, #eef1f6);
    }

    .vo2-uci-col-rank {
        right: 2.35rem;
    }

    .vo2-uci-col-delta {
        right: 0;
    }

    .vo2-uci-table tbody .vo2-uci-rank,
    .vo2-uci-table tbody .vo2-uci-delta-cell {
        position: sticky;
        z-index: 1;
        background: inherit;
    }

    .vo2-uci-table tbody .vo2-uci-rank {
        right: 2.35rem;
    }

    .vo2-uci-table tbody .vo2-uci-delta-cell {
        right: 0;
    }
}
