/*
 * YVNRun Platform — Main Stylesheet
 * Ported from yvnrun-theme/style.css (v3-bold design)
 */

:root {
    --bg: #0b0c10;
    --bg-alt: #0f1118;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.55);
    --text-muted: rgba(255, 255, 255, 0.35);
    --red: #F2A800;
    --orange: #FF6B35;
    --accent: var(--red);
    --glow: rgba(242, 168, 0, 0.15);
    --radius: 12px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Manrope', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    overscroll-behavior-x: none;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

.wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ========== NAV ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 14px 28px;
    gap: 24px;
    transition: 0.35s ease;
}

.nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    transition: opacity 0.35s ease;
    z-index: -1;
}

.nav.scrolled {
    background: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid var(--border);
}

.nav.scrolled::before {
    opacity: 0;
}

.nav-brand-tricolor {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-tricolor-logo {
    height: 28px !important;
    width: auto !important;
}

.nav-brand-menq {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.nav-brand-menq:hover {
    opacity: 1;
}

.nav-logo {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-logo-menq {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    margin-left: 20px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 12px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    padding: 0 16px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Space Grotesk', 'Sora', sans-serif;
}

.lang-btn img {
    display: inline-block;
    width: 20px;
    height: 14px;
    vertical-align: middle;
    margin-right: 5px;
    border-radius: 2px;
}

.lang-btn:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.45);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    box-sizing: border-box;
    text-decoration: none;
    padding: 0 20px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 4px;
    transition: 0.3s var(--ease);
}

.nav-cta:hover {
    background: #FFB81C;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--glow);
}

.nav-burger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img,
.hero-bg video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.3) 40%, rgba(10, 10, 10, 0.08) 70%, rgba(10, 10, 10, 0.2) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 0 28px 100px;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 100vh;
}

.hero-logo {
    max-width: 192px;
    /* reduced by 40% from 320px */
    width: 100%;
    height: 132px;
    /* reduced by 40% from 220px */
    margin-bottom: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    border: none;
}

.hero-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-btns .btn-primary {
    font-size: 1.25rem;
    padding: 16px 36px;
}

.hero-stripe {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    height: 5px;
}

.hero-stripe span {
    flex: 1;
}

.hero-stripe span:nth-child(1) {
    background: #D92626;
}

.hero-stripe span:nth-child(2) {
    background: #0033A0;
}

.hero-stripe span:nth-child(3) {
    background: #FFAD33;
}

/* ========== COUNTDOWN (inline with Register btn) ========== */
.countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Space Grotesk', sans-serif;
    margin-left: 8px;
}

.cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.cd-val {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1;
    min-width: 2ch;
    text-align: center;
    font-variant-numeric: tabular-nums;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 6px;
    padding: 10px 12px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Flip-clock split line */
.cd-val::after {
    content: '';
    position: absolute;
    left: 4px;
    right: 4px;
    top: 50%;
    height: 1px;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cd-unit {
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 4px;
}

.cd-dot {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 2px;
    line-height: 1;
    padding-bottom: 16px;
    animation: cdPulse 1s ease-in-out infinite;
}

@keyframes cdPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ========== SOCIAL ICONS (nav) ========== */
.nav-socials {
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: 0.25s;
    background: rgba(255, 255, 255, 0.06);
}

.social-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

/* ========== RACE OPTION CARDS ========== */
/* Option cards grid */
.rf-option-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    padding: 2px 0;
}

.rf-opt-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 24px 18px 16px;
    cursor: pointer;
    transition: 0.25s;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}

.rf-opt-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
}

.rf-opt-card.active {
    border-color: var(--accent);
    background: rgba(242, 168, 0, 0.08);
    box-shadow: 0 0 20px rgba(242, 168, 0, 0.1);
}

.rf-opt-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.rf-opt-sub {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.rf-opt-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 2px;
}

/* ========== REGISTRATION FORM (embedded) ========== */
.reg-form-wrap {
    max-width: 768px;
    margin: 0 auto;
}

.reg-form-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: visible;
}

.reg-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D92626, #3B6AFF, #FFAD33);
    border-radius: 16px 16px 0 0;
}

.reg-form-header {
    margin-bottom: 24px;
}

.reg-form-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.reg-details-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    border-radius: 20px;
    background: rgba(242, 168, 0, 0.1);
    border: 1px solid rgba(242, 168, 0, 0.25);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 12px;
    margin-bottom: 6px;
    transition: 0.2s;
}

.reg-details-pill:hover {
    background: rgba(242, 168, 0, 0.2);
    border-color: rgba(242, 168, 0, 0.4);
}

.rf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
    min-width: 0;
}

.rf-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rf-field input,
.rf-field select {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.92rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: 0.25s;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    line-height: 1.2;
}

.rf-field input:focus,
.rf-field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--glow);
}

.rf-field input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.rf-field select option {
    background: #1a1a1a;
    color: #fff;
}

/* Custom dropdown */
.custom-select {
    position: relative;
}

.custom-select select {
    display: none;
}

.cs-trigger {
    width: 100%;
    padding: 12px 40px 12px 14px;
    font-size: 0.92rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: 0.25s;
    position: relative;
    user-select: none;
    box-sizing: border-box;
    line-height: 1.2;
}

.cs-trigger::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    border: 5px solid transparent;
    border-top: 6px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.cs-trigger.open {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--glow);
    border-radius: 8px 8px 0 0;
}

.cs-trigger.open::after {
    transform: translateY(-50%) rotate(180deg);
}

.cs-trigger.placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.cs-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    background: rgba(22, 22, 26, 0.98);
    border: 1px solid var(--accent);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    opacity: 0;
    backdrop-filter: blur(16px);
}

.cs-dropdown.open {
    max-height: 280px;
    opacity: 1;
    overflow-y: auto;
}

.cs-dropdown::-webkit-scrollbar {
    width: 4px;
}

.cs-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.cs-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.cs-option {
    padding: 6px 14px;
    font-size: 0.88rem;
    color: var(--text-dim);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.cs-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.cs-option.selected {
    color: var(--accent);
    font-weight: 600;
}

/* Payment method cards */
.rf-pay-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.rf-pay-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    overflow: hidden;
}

.rf-pay-opt input[type="radio"] {
    display: none;
}

.rf-pay-opt:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
}

.rf-pay-opt.active {
    border-color: var(--accent);
    background: rgba(242, 168, 0, 0.08);
}

.rf-pay-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

.rf-pay-sub {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
}

.rf-pay-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 18px;
    margin-bottom: 2px;
    max-width: 100%;
}

.rf-pay-logos img {
    height: 100%;
    width: auto;
    flex-shrink: 1;
    min-width: 0;
    object-fit: contain;
    opacity: 0.8;
    transition: 0.25s;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.rf-pay-opt:hover .rf-pay-logos img,
.rf-pay-opt.active .rf-pay-logos img {
    opacity: 1;
}

.rf-idram-img {
    height: 130% !important;
    /* idram logo has built-in padding in the image */
}

.rf-submit {
    width: 100%;
    padding: 16px 32px;
    margin-top: 24px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s var(--ease);
}

.rf-submit:hover {
    background: #FFB81C;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--glow);
}


/* ========== PRIVACY POLICY PAGE ========== */
.pp-page {
    min-height: 100vh;
    padding: 100px 28px 60px;
}

.pp-content {
    max-width: 800px;
    margin: 0 auto;
}

.pp-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: 1px;
}

.pp-content .pp-body {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.85;
}

.pp-content .pp-body p {
    margin-bottom: 16px;
}

.pp-content .pp-body h2,
.pp-content .pp-body h3 {
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    margin-top: 28px;
    margin-bottom: 12px;
}

.pp-content .pp-body h2 {
    font-size: 1.3rem;
}

.pp-content .pp-body h3 {
    font-size: 1.1rem;
}

.pp-content .pp-body ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.pp-content .pp-body li {
    margin-bottom: 6px;
}

.pp-content .pp-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}

.pp-content .pp-body a {
    color: var(--accent);
    text-decoration: underline;
}

.pp-content .pp-body strong {
    color: #fff;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 13px 30px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: 0.3s var(--ease);
}

.btn-primary:hover {
    background: #FFB81C;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--glow);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 13px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    border-radius: 4px;
    transition: 0.2s;
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.72rem;
}

/* ========== SECTIONS ========== */
.sect {
    padding: 50px 0 30px;
}

.sect-dark {
    background: var(--bg-alt);
}

.sect-title {
    font-family: 'Space Grotesk', 'Sora', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 24px;
}

/* ========== ABOUT ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text p {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.85;
    margin-bottom: 14px;
}

.about-text .strong {
    font-family: 'Space Grotesk', 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-top: 16px;
    letter-spacing: 1px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-family: 'Space Grotesk', 'Sora', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.about-map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.about-map img {
    width: 100%;
}

/* ========== REGISTRATION CARDS (legacy) ========== */
.reg-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.reg-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.reg-card:hover {
    border-color: var(--accent);
    background: var(--surface-hover);
}

.reg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0;
    transition: 0.3s;
}

.reg-card:hover::before {
    opacity: 1;
}

.reg-dist {
    font-family: 'Space Grotesk', 'Sora', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.reg-name {
    font-family: 'Space Grotesk', 'Sora', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 6px 0 10px;
    letter-spacing: 0.5px;
}

.reg-price {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.reg-price strong {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

/* ========== PARTNERS ========== */
.partners-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.partner-link {
    display: block;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0.8;
}

.partner-link:hover {
    opacity: 1;
    transform: scale(1.05);
}

.partners-row img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

/* ========== GALLERY ========== */
.gallery-album {
    margin-bottom: 40px;
}

.gallery-album:last-child {
    margin-bottom: 0;
}

.album-title {
    font-family: 'Space Grotesk', 'Sora', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 16px;
    padding-left: 4px;
}

.album-count {
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0;
}

.album-date {
    font-weight: 400;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0;
    text-transform: none;
}

.album-carousel {
    position: relative;
}

.album-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}

.album-track::-webkit-scrollbar {
    display: none;
}

.album-track img {
    flex: 0 0 auto;
    height: 220px;
    width: auto;
    min-width: 160px;
    object-fit: cover;
    border-radius: 8px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: 0.35s var(--ease);
    filter: brightness(0.85);
}

.album-track img:hover {
    filter: brightness(1);
    transform: scale(1.03);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.album-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s, background 0.2s;
}

.album-carousel:hover .album-arrow {
    opacity: 1;
}

.album-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
}

.album-prev {
    left: 8px;
}

.album-next {
    right: 8px;
}

/* ========== LIGHTBOX ========== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.open {
    display: flex;
}

.lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(24px) saturate(0.8);
}

.lb-img-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 60px 72px 72px;
}

.lb-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.lb-img.loaded {
    opacity: 1;
}

.lb-close {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.lb-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.lb-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.lb-prev {
    left: 16px;
}

.lb-next {
    right: 16px;
}

.lb-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 16px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.lb-counter {
    font-family: 'Space Grotesk', 'Sora', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
}

.lb-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #fff;
    background: var(--accent);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: 0.25s var(--ease);
}

.lb-download:hover {
    background: #FFB81C;
    transform: translateY(-1px);
}

.lb-download svg {
    flex-shrink: 0;
}

.lb-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: 0.25s var(--ease);
}

.lb-share:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.lb-share.copied {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.lb-share svg {
    flex-shrink: 0;
}

/* ========== FAQ ========== */
.faq-list {
    max-width: 680px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-q {
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: 0.2s;
}

.faq-q:hover {
    color: var(--accent);
}

.faq-q .icon {
    font-size: 1rem;
    color: var(--accent);
    transition: 0.3s;
    width: 20px;
    text-align: center;
}

.faq-item.open .faq-q .icon {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}

.faq-item.open .faq-a {
    max-height: 300px;
}

.faq-a p {
    color: var(--text-dim);
    padding-bottom: 18px;
    font-size: 0.88rem;
}

/* ========== FOOTER ========== */
.foot {
    padding: 40px 0 28px;
    border-top: 1px solid var(--border);
}

.foot-grid {
    display: flex;
    justify-content: space-between;
    gap: 36px;
    flex-wrap: wrap;
}

.foot-brand-col {
    display: flex;
    flex-direction: column;
}

.foot-brand-logos {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.foot-brand-img {
    height: 32px;
    margin-bottom: 0;
}



.foot-brand-menq {
    display: flex;
    align-items: center;
    opacity: 0.85;
    transition: 0.2s;
}

.foot-brand-menq:hover {
    opacity: 1;
}

.foot-brand-img-menq {
    height: 28px;
    filter: brightness(0) invert(1);
}

.foot-copy {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.foot-phone {
    color: var(--accent) !important;
    text-decoration: none;
}

.foot-cols {
    display: flex;
    gap: 48px;
}

.foot-col h4 {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: var(--text-dim);
}

.foot-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    padding: 2px 0;
    transition: 0.2s;
}

.foot-col a:hover {
    color: var(--accent);
}

.foot-col p {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* ========== ANIMATIONS ========== */
[data-anim] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

[data-anim].in {
    opacity: 1;
    transform: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width:900px) {

    .about-grid,
    .reg-cards {
        grid-template-columns: 1fr;
    }



    .partners-row {
        gap: 32px;
    }

    .partners-row img {
        height: 90px;
    }

    .album-track img {
        height: 180px;
    }
}

@media (max-width: 1024px) {

    .nav-links,
    .nav-right,
    .nav-socials,
    .desktop-only {
        display: none;
    }

    .nav-actions {
        margin-left: auto;
    }

    .nav-burger {
        display: block;
    }

    .rf-opt-title {
        font-size: 1.16rem;
    }
}

@media (max-width:640px) {
    .nav {
        padding: 12px 16px;
        gap: 12px;
    }

    .nav-branding {
        gap: 12px !important;
    }

    .nav-tricolor-logo {
        height: 24px !important;
    }

    .nav-logo-menq {
        height: 24px !important;
    }

    .lang-btn {
        padding: 0 10px;
        height: 34px;
        font-size: 0.75rem;
    }

    .nav-cta {
        padding: 0 14px;
        height: 34px;
        font-size: 0.7rem;
    }

    .album-track img {
        height: 150px;
    }

    .album-arrow {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
        opacity: 1;
    }

    .hero-inner {
        padding: 120px 24px 60px;
    }

    .hero-logo {
        max-width: 168px;
        /* reduced by 40% from 280px */
        height: 72px;
        /* reduced by 40% from 120px */
    }

    .hero-btns {
        flex-direction: column;
        align-items: flex-start;
    }

    .countdown {
        margin-left: 0;
        margin-top: 8px;
    }

    .cd-val {
        font-size: 1.4rem;
    }

    .cd-dot {
        font-size: 1.1rem;
        margin: 0 2px;
    }


    .reg-form-card {
        padding: 20px;
    }

    .rf-option-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .rf-opt-card {
        min-width: 0;
        overflow-wrap: break-word;
        word-break: break-word;
    }

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

    .rf-pay-switcher {
        grid-template-columns: 1fr;
    }

    .foot-cols {
        flex-direction: column;
        gap: 16px;
    }

    .lb-img-wrap {
        padding: 50px 12px 64px;
    }

    .lb-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .lb-prev {
        left: 6px;
    }

    .lb-next {
        right: 6px;
    }
}

@media (max-width: 400px) {
    .rf-option-cards {
        grid-template-columns: 1fr;
    }
}

/* ========== INTL-TEL-INPUT OVERRIDES ========== */
:root {
    --iti-hover-color: rgba(255, 255, 255, 0.08);
    --iti-border-color: var(--border);
    --iti-dropdown-bg: rgba(22, 22, 26, 0.98);
    --iti-icon-color: var(--text-dim);
}

.iti {
    width: 100%;
}

.iti__dropdown-content {
    border: 1px solid var(--accent);
    border-top: none;
    border-radius: 0 0 8px 8px;
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-top: -1px;
}

.iti__search-input {
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--text) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    margin: 8px !important;
    width: calc(100% - 16px) !important;
    padding: 8px 12px 8px 30px !important;
}

.iti__search-input::placeholder {
    color: var(--text-muted) !important;
}

.iti__search-input:focus {
    border-color: var(--accent) !important;
    outline: none !important;
}

.iti__country {
    color: var(--text-dim);
}

.iti__country.iti__highlight {
    color: #fff;
}

.iti__dial-code {
    color: var(--text-muted);
}

.iti__country.iti__highlight .iti__dial-code {
    color: var(--text-dim);
}

/* Fix preferred countries checkmarks visibility */
.iti__country-check-svg {
    fill: var(--accent) !important;
    stroke: none !important;
    color: var(--accent) !important;
}

.iti__country.iti__highlight .iti__country-check-svg {
    fill: #fff !important;
    color: #fff !important;
}

.iti__flag {
    box-shadow: 0 0 1px 0 rgba(255, 255, 255, 0.3);
}

.iti__country-list::-webkit-scrollbar {
    width: 4px;
}

.iti__country-list::-webkit-scrollbar-track {
    background: transparent;
}

.iti__country-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

/* ========== RACE RESULTS ========== */

/* --- Back link --- */
.results-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.2s;
}

.results-back-link:hover {
    color: var(--accent);
}

/* --- Event date subtitle --- */
.results-date {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 6px;
    margin-bottom: 28px;
}

/* --- Search --- */
.results-search-wrap {
    position: relative;
    max-width: 360px;
    margin-bottom: 24px;
}

.results-search {
    width: 100%;
    padding: 10px 14px 10px 38px;
    font-size: 0.88rem;
    font-family: inherit;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.results-search:focus {
    border-color: var(--accent);
}

.results-search::placeholder {
    color: var(--text-muted);
}

.results-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* --- Distance Tabs --- */
.results-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.results-tab {
    padding: 10px 28px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: 0.2s;
    background: var(--surface);
    color: var(--text-muted);
}

.results-tab:hover {
    color: var(--text);
    background: var(--surface-hover);
}

.results-tab.active {
    background: var(--accent);
    color: #fff;
}

/* --- Gender Sub-tabs --- */
.results-subtabs {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.results-subtab {
    padding: 8px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: 0.2s;
    background: none;
    color: var(--text-muted);
}

.results-subtab:hover {
    color: var(--text);
}

.results-subtab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* --- Results Table --- */
.results-table-wrap {
    overflow-x: auto;
    margin-bottom: 20px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.results-table thead th {
    text-align: left;
    padding: 10px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.results-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
}

.results-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.rt-place {
    width: 60px;
    text-align: center;
}

.rt-bib {
    width: 60px;
    font-variant-numeric: tabular-nums;
}

.rt-name {
    font-weight: 500;
    color: var(--text) !important;
}

.rt-result {
    font-variant-numeric: tabular-nums;
    font-family: 'Space Grotesk', monospace;
    font-weight: 500;
    white-space: nowrap;
}

.rt-diff {
    color: var(--text-muted) !important;
    font-variant-numeric: tabular-nums;
    font-size: 0.82rem;
    white-space: nowrap;
}

/* Podium rows */
.rt-podium-1 td {
    background: rgba(255, 215, 0, 0.06);
}

.rt-podium-2 td {
    background: rgba(192, 192, 192, 0.05);
}

.rt-podium-3 td {
    background: rgba(205, 127, 50, 0.05);
}

.rt-podium-1:hover td {
    background: rgba(255, 215, 0, 0.1) !important;
}

.rt-podium-2:hover td {
    background: rgba(192, 192, 192, 0.08) !important;
}

.rt-podium-3:hover td {
    background: rgba(205, 127, 50, 0.08) !important;
}

/* Status rows (DNF/DNS/NA) */
.rt-status-dnf td,
.rt-status-dns td,
.rt-status-na td {
    opacity: 0.45;
}

.rt-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.rt-badge-dnf {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
}

.rt-badge-dns {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
}

.rt-badge-na {
    background: rgba(156, 163, 175, 0.1);
    color: #6b7280;
}

/* --- Events List Grid --- */
.results-events-grid {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.results-event-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: 0.25s var(--ease);
}

.results-event-card:hover {
    border-color: var(--accent);
    background: var(--surface-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.rec-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.rec-info {
    flex: 1;
    min-width: 0;
}

.rec-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.rec-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 0 8px;
}

.rec-stats {
    display: flex;
    gap: 16px;
}

.rec-stat {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-weight: 500;
}

.rec-arrow {
    font-size: 1.3rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: 0.2s;
}

.results-event-card:hover .rec-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* --- Empty state --- */
.results-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* --- Homepage Results Preview --- */
.results-preview-sub {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 28px;
    text-align: center;
}

.results-podiums {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.podium-group {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.podium-dist {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.podium-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.podium-item:last-child {
    border-bottom: none;
}

.podium-medal {
    font-size: 1.2rem;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.podium-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podium-time {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dim);
    flex-shrink: 0;
}

/* --- Results Responsive --- */
@media (max-width: 768px) {
    .results-podiums {
        grid-template-columns: 1fr;
    }

    .results-tabs {
        flex-wrap: wrap;
    }

    .results-tab {
        padding: 8px 20px;
        font-size: 0.82rem;
    }

    .results-subtab {
        padding: 6px 14px;
        font-size: 0.78rem;
    }

    .results-search-wrap {
        max-width: 100%;
    }

    .results-event-card {
        padding: 16px;
        gap: 14px;
    }

    .rec-name {
        font-size: 0.95rem;
    }

    .results-table {
        font-size: 0.82rem;
    }

    .results-table thead th {
        font-size: 0.65rem;
        padding: 8px 10px;
    }

    .results-table tbody td {
        padding: 8px 10px;
    }
}
/* Programmatic capitalization for lowercased dynamic UI strings */
.foot-col h4, .reg-details-pill, .checkout-form-wrap h3, .podium-group, .custom-select {
    text-transform: capitalize;
}
.success-title::first-letter, .error-title::first-letter, .success-desc::first-letter, .error-desc::first-letter, .faq-q::first-letter, .faq-a::first-letter, .foot-col p::first-letter {
    text-transform: uppercase;
}
.foot-col a {
    text-transform: capitalize;
}

/* User requested formatting fixes */
.btn-primary, .pay-btn, .nav-cta, .rf-submit {
    text-transform: uppercase !important;
}
.rf-field label, .form-fields label {
    text-transform: capitalize !important;
}
.sect-title, .pp-content h1, h1[data-i18n="res.title"] {
    text-transform: capitalize !important;
}
#faq .sect-title, .foot-col a[data-i18n="nav.faq"] {
    text-transform: uppercase !important;
}

input::placeholder, textarea::placeholder { text-transform: capitalize !important; }

.results-subtab { text-transform: capitalize !important; }

.foot-col a[href^="mailto:"] { text-transform: lowercase !important; }
