/* ============================
   RESET & DISABLE INTERACTIONS
   ============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Allow typing in inputs */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', sans-serif;
    background-color: #0a0a0a;
    color: #f5f5f5;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================
   TYPOGRAPHY
   ============================ */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: #fff; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: #d4af37; }
p { font-size: clamp(1rem, 2vw, 1.125rem); margin-bottom: 1rem; color: #ccc; }

a { color: #d4af37; text-decoration: none; transition: color 0.3s; }
a:hover { color: #f5a623; }

/* ============================
   HEADER & NAV
   ============================ */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img { height: 45px; }
.main-nav ul { display: flex; list-style: none; gap: 20px; align-items: center; }
.main-nav a { color: #fff; font-weight: 500; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; }
.main-nav a.active, .main-nav a:hover { color: #d4af37; }

.btn-nav {
    background: #d4af37;
    color: #000 !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
}

.mobile-menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.mobile-menu-toggle span { width: 25px; height: 2px; background: #fff; display: block; }

/* ============================
   HERO & BUTTONS
   ============================ */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 120px 0 80px;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.15) 0%, #0a0a0a 70%);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
}

.btn-gold { background: #d4af37; color: #000; }
.btn-gold:hover { background: #f5a623; color: #000; }
.btn-blue { background: #007bff; color: #fff; width: 100%; margin-top: 15px; }
.btn-blue:hover { background: #0056b3; }

/* ============================
   RACE CARDS (Home)
   ============================ */
.race-cards { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.race-card {
    background: #fff; color: #000; border-radius: 12px;
    display: flex; align-items: center; padding: 20px;
    width: 100%; max-width: 350px; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.race-date {
    background: #d4af37; border-radius: 8px; padding: 15px 20px;
    text-align: center; margin-right: 20px;
}
.race-date .day { display: block; font-size: 2rem; font-weight: 800; }
.race-date .month { font-size: 0.9rem; font-weight: 600; }
.race-info h3 { font-family: 'Manrope', sans-serif; font-weight: 800; margin-bottom: 5px; }
.race-info p { color: #666; font-size: 0.9rem; margin: 0; }
.badge { background: #d4af37; color: #000; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }

/* ============================
   PAGE SECTIONS (About, Terms, etc.)
   ============================ */
.page-section { padding: 120px 0 80px; min-height: 70vh; }
.page-content { max-width: 900px; margin: 0 auto; }
.page-content h2 { margin-top: 2rem; margin-bottom: 1rem; color: #d4af37; font-size: 1.5rem; }
.page-content p { margin-bottom: 1rem; line-height: 1.8; }

/* ============================
   CHECKOUT & PAYMENT UI (Blue/White)
   ============================ */
.checkout-wrapper { background: #f4f6f9; min-height: 100vh; color: #333; font-family: 'Manrope', sans-serif; }
.checkout-header {
    background: #007bff; color: #fff; padding: 15px 30px;
    display: flex; justify-content: space-between; align-items: center;
}
.checkout-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; }
.checkout-venue { font-weight: 600; font-size: 1.1rem; text-transform: uppercase; }

.checkout-body { display: flex; justify-content: center; padding: 60px 20px; }
.payment-card {
    background: #fff; border-radius: 8px; width: 100%; max-width: 450px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1); overflow: hidden;
}
.card-header { background: #007bff; color: #fff; padding: 15px 20px; }
.card-header h3 { font-family: 'Manrope', sans-serif; margin: 0; font-size: 1.2rem; }
.card-body { padding: 30px 20px; text-align: center; }
.price { font-size: 2rem; font-weight: 800; color: #333; margin-bottom: 10px; }
.validity { color: #666; font-size: 0.95rem; margin-bottom: 20px; }

.checkout-footer { background: #1a1e2e; color: #fff; padding: 40px; display: flex; justify-content: center; gap: 80px; margin-top: auto; }
.footer-col { display: flex; flex-direction: column; gap: 15px; }
.footer-col a { color: #ccc; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }

/* ============================
   PAYMENT LOADING OVERLAY
   ============================ */
.loading-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    color: #fff; text-align: center;
}
.spinner-card { display: flex; flex-direction: column; align-items: center; }
.spinner {
    width: 40px; height: 40px; border: 4px solid #007bff;
    border-top: 4px solid transparent; border-radius: 50%;
    animation: spin 1s linear infinite; margin-bottom: 20px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ============================
   STATUS PAGE (Success/Failure)
   ============================ */
.status-wrapper { background: #0a0a0a; min-height: 80vh; display: flex; justify-content: center; align-items: center; padding: 120px 20px 60px; }
.status-card {
    background: #fff; border-radius: 10px; padding: 40px; text-align: center;
    max-width: 450px; width: 100%; border: 1px solid #333;
}
.status-icon { font-size: 3rem; margin-bottom: 20px; }
.status-icon.success { color: #28a745; }
.status-icon.error { color: #dc3545; }
.status-card h2 { font-family: 'Manrope', sans-serif; font-weight: 800; margin-bottom: 15px; }
.status-card p { color: #666; margin-bottom: 10px; }

/* ============================
   FOOTER
   ============================ */
.site-footer { background: #111; padding: 30px 0; border-top: 1px solid #222; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 15px; }
.footer-links a { color: #aaa; font-size: 0.9rem; }
.footer-links a:hover { color: #d4af37; }

/* ============================
   RESPONSIVE DESIGN
   ============================ */
@media (max-width: 768px) {
    .main-nav ul {
        display: none; flex-direction: column; position: absolute;
        top: 75px; left: 0; width: 100%; background: rgba(0,0,0,0.95);
        padding: 20px; gap: 15px; border-bottom: 1px solid #222;
    }
    .main-nav ul.show { display: flex; }
    .mobile-menu-toggle { display: flex; }
    .header-container { position: relative; }
    .hero-section { padding: 100px 0 60px; }
    .page-section { padding: 100px 0 60px; }
    .checkout-footer { flex-direction: column; gap: 30px; align-items: center; }
    .checkout-header { flex-direction: column; gap: 10px; text-align: center; }
}

/* ============================
   DISABLE HOVER & TRANSITIONS (Premium App Feel)
   ============================ */
*:hover {
    background-color: inherit !important;
    transform: none !important;
    transition: none !important;
}
/* Exceptions for interactive elements */
a:hover, .btn:hover, .main-nav a:hover {
    transition: color 0.3s, background 0.3s !important;
}
.btn:hover { transform: scale(1.02) !important; }