/*
 * 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: #D92626;
    --orange: #FF6B35;
    --accent: var(--red);
    --glow: rgba(217, 38, 38, 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;
}

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

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.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 8px 16px;
    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:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.3);
}

.nav-cta {
    display: inline-block;
    text-decoration: none;
    padding: 8px 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: #e83333;
    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: #3B6AFF;
}

.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(auto-fill, minmax(160px, 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(217, 38, 38, 0.08);
    box-shadow: 0 0 20px rgba(217, 38, 38, 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.72rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.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: 640px;
    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: 6px 18px;
    border-radius: 20px;
    background: rgba(217, 38, 38, 0.1);
    border: 1px solid rgba(217, 38, 38, 0.25);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    transition: 0.2s;
}

.reg-details-pill:hover {
    background: rgba(217, 38, 38, 0.2);
    border-color: rgba(217, 38, 38, 0.4);
}

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

.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: 240px;
    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: 10px 14px;
    font-size: 0.92rem;
    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: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.rf-pay-opt {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    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;
}

.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(217, 38, 38, 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: 12px;
    height: 17px;
    margin-bottom: 2px;
}

.rf-pay-logos img {
    height: 100%;
    width: auto;
    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-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
}

.rf-terms input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    margin: 0;
}

.rf-terms input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.rf-terms input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.rf-terms label {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
    cursor: pointer;
}

.rf-terms label a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rf-terms label a:hover {
    color: #fff;
}

.rf-submit {
    width: 100%;
    padding: 16px 32px;
    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: #e83333;
    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: #e83333;
    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(120px, 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);
    white-space: nowrap;
    line-height: 1.2;
}

.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: #e83333;
    transform: translateY(-1px);
}

.lb-download 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-sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1;
    display: flex;
    align-items: center;
}

.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-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;
    }

    .rf-row {
        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;
    }
}

@media (max-width:640px) {

    .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;
    }

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

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

    .rf-pay-switcher {
        flex-direction: column;
    }

    .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;
    }
}
/* ========== 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;
}
