/* ==========================================================================
   RaceHub - Athletic Running Management Platform Design System
   Palette: Deep High-Performance Black, Radiant Sport Orange, Crisp White
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,700&display=swap');

:root {
    /* Brand Color Palette */
    --rh-black: #08090C;
    --rh-dark: #0F1117;
    --rh-surface: #151821;
    --rh-surface-light: #1C202C;
    --rh-surface-card: rgba(21, 24, 33, 0.85);
    
    --rh-orange: #FF5500;
    --rh-orange-bright: #FF6B35;
    --rh-orange-glow: rgba(255, 85, 0, 0.35);
    --rh-orange-light: #FFA770;
    --rh-orange-subtle: rgba(255, 85, 0, 0.12);
    
    --rh-white: #FFFFFF;
    --rh-offwhite: #F8FAFC;
    --rh-slate: #94A3B8;
    --rh-muted: #64748B;
    --rh-border: rgba(255, 255, 255, 0.08);
    --rh-border-active: rgba(255, 85, 0, 0.5);

    /* Status Accents */
    --rh-success: #10B981;
    --rh-success-bg: rgba(16, 185, 129, 0.15);
    --rh-warning: #F59E0B;
    --rh-warning-bg: rgba(245, 158, 11, 0.15);
    --rh-danger: #EF4444;
    --rh-danger-bg: rgba(239, 68, 68, 0.15);
    
    /* Typography */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Bebas Neue', 'Plus Jakarta Sans', sans-serif;

    /* Shadows & Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-orange: 0 10px 30px -5px rgba(255, 85, 0, 0.4);
    --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Reset & Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--rh-black);
    color: var(--rh-offwhite);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 85, 0, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 85, 0, 0.04) 0%, transparent 45%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--rh-dark);
}
::-webkit-scrollbar-thumb {
    background: #2E3344;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--rh-orange);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    color: var(--rh-white);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.font-display {
    font-family: var(--font-display);
    letter-spacing: 0.05em;
}

.text-orange { color: var(--rh-orange) !important; }
.text-white { color: var(--rh-white) !important; }
.text-slate { color: var(--rh-slate) !important; }
.text-muted { color: var(--rh-muted) !important; }
.bg-orange { background-color: var(--rh-orange) !important; }
.bg-dark { background-color: var(--rh-dark) !important; }

/* Container & Layout */
.rh-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-spacing {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .section-spacing {
        padding: 3.5rem 0;
    }
}

/* Section Header Badge & Typography */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--rh-orange-subtle);
    border: 1px solid rgba(255, 85, 0, 0.3);
    color: var(--rh-orange-bright);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--rh-slate);
    max-width: 680px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

/* Navigation Bar */
.rh-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(8, 9, 12, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--rh-border);
    transition: all 0.3s ease;
}

.rh-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.rh-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--rh-white);
    letter-spacing: -0.03em;
}

.rh-brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--rh-orange), #FF8533);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(255, 85, 0, 0.4);
    transform: skewX(-8deg);
}

.rh-brand-icon span {
    transform: skewX(8deg);
}

.rh-brand span.highlight {
    color: var(--rh-orange);
}

.rh-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.rh-nav-links a {
    color: var(--rh-slate);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.25rem 0;
}

.rh-nav-links a:hover,
.rh-nav-links a.active {
    color: var(--rh-white);
}

.rh-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--rh-orange);
    transition: width 0.25s ease;
}

.rh-nav-links a:hover::after,
.rh-nav-links a.active::after {
    width: 100%;
}

.rh-nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rh-mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--rh-border);
    color: var(--rh-white);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-sans);
    line-height: 1.2;
}

.btn-primary {
    background: linear-gradient(135deg, var(--rh-orange), #FF7315);
    color: #FFFFFF;
    box-shadow: 0 4px 18px rgba(255, 85, 0, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FF661A, #FF8533);
    box-shadow: 0 8px 25px rgba(255, 85, 0, 0.55);
    transform: translateY(-2px);
    color: #FFFFFF;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--rh-border);
    color: var(--rh-white);
}

.btn-outline:hover {
    border-color: var(--rh-orange);
    color: var(--rh-orange);
    background: var(--rh-orange-subtle);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
}
.btn-outline-white:hover {
    border-color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.btn-white {
    background: #FFFFFF;
    color: var(--rh-black);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}
.btn-white:hover {
    background: #F1F5F9;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--rh-danger);
    color: #FFFFFF;
}
.btn-danger:hover {
    background: #DC2626;
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
}

/* Mobile Drawer Menu */
.rh-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--rh-dark);
    z-index: 1050;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid var(--rh-border);
}

.rh-drawer.active {
    right: 0;
}

.rh-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.rh-drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.rh-drawer-close {
    align-self: flex-end;
    background: transparent;
    border: none;
    color: var(--rh-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.rh-drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.rh-drawer-links a {
    color: var(--rh-white);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 991px) {
    .rh-nav-links, .rh-desktop-only {
        display: none !important;
    }
    .rh-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Cards & Glassmorphism Surfaces */
.rh-card {
    background: var(--rh-surface);
    border: 1px solid var(--rh-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.rh-card-glass {
    background: rgba(21, 24, 33, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--rh-border);
}

.rh-card:hover {
    border-color: rgba(255, 85, 0, 0.3);
    box-shadow: var(--shadow-card);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 140px;
    padding-bottom: 90px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 85, 0, 0.08) 0%, rgba(8, 9, 12, 0) 70%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .hero-cta-group {
        justify-content: center;
    }
    .countdown-wrapper {
        margin: 0 auto;
    }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 85, 0, 0.15);
    border: 1px solid rgba(255, 85, 0, 0.4);
    color: var(--rh-orange-light);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 3.85rem;
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #FFFFFF 30%, var(--rh-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--rh-slate);
    line-height: 1.65;
    margin-bottom: 2rem;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

/* Countdown Timer Component */
.countdown-box {
    background: rgba(15, 17, 23, 0.9);
    border: 1.5px solid rgba(255, 85, 0, 0.35);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 85, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.countdown-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--rh-orange), #FFA770);
}

.countdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--rh-border);
    padding-bottom: 1rem;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.countdown-card {
    background: var(--rh-surface);
    border: 1px solid var(--rh-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 0.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.countdown-card:hover {
    transform: translateY(-3px);
    border-color: var(--rh-orange);
}

.countdown-value {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--rh-white);
    line-height: 1;
    margin-bottom: 0.35rem;
    text-shadow: 0 0 12px rgba(255, 85, 0, 0.4);
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--rh-orange-light);
    font-weight: 700;
    letter-spacing: 0.08em;
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.75rem;
    }
    .countdown-grid {
        gap: 0.5rem;
    }
    .countdown-value {
        font-size: 2.2rem;
    }
}

/* Key Metrics Bar */
.metrics-strip {
    background: var(--rh-surface);
    border-top: 1px solid var(--rh-border);
    border-bottom: 1px solid var(--rh-border);
    padding: 2.25rem 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.metric-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--rh-orange-subtle);
    border: 1px solid rgba(255, 85, 0, 0.25);
    color: var(--rh-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.metric-number {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--rh-white);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--rh-slate);
    font-weight: 600;
}

@media (max-width: 991px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}
@media (max-width: 576px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Category Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.75rem;
    margin-top: 3rem;
}

.category-card {
    background: var(--rh-surface);
    border: 1.5px solid var(--rh-border);
    border-radius: var(--radius-xl);
    padding: 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover {
    border-color: var(--rh-orange);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px var(--rh-orange-glow);
}

.category-card.featured {
    border-color: var(--rh-orange);
    background: linear-gradient(180deg, rgba(255, 85, 0, 0.08) 0%, var(--rh-surface) 60%);
}

.category-badge-dist {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 0.9;
    color: var(--rh-orange);
    margin-bottom: 0.5rem;
}

.category-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--rh-white);
    margin-bottom: 0.75rem;
}

.category-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--rh-white);
    margin-bottom: 1.25rem;
}

.category-price span {
    font-size: 0.85rem;
    color: var(--rh-slate);
    font-weight: 500;
}

.quota-bar-wrapper {
    margin-bottom: 1.5rem;
}

.quota-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--rh-slate);
    margin-bottom: 0.4rem;
}

.quota-progress {
    height: 7px;
    background: #272C3D;
    border-radius: 99px;
    overflow: hidden;
}

.quota-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--rh-orange), #FFA770);
    border-radius: 99px;
    transition: width 1s ease;
}

.category-perks {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-perks li {
    font-size: 0.9rem;
    color: #CBD5E1;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.4;
}

.category-perks li i {
    color: var(--rh-orange);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Interactive Course Map & Checkpoints */
.route-visual-container {
    background: var(--rh-surface);
    border: 1px solid var(--rh-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
}

.route-svg-holder {
    position: relative;
    width: 100%;
    min-height: 380px;
    background: #090B10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.route-interactive-ui {
    display: grid;
    grid-template-columns: 1fr 340px;
    border-top: 1px solid var(--rh-border);
}

@media (max-width: 860px) {
    .route-interactive-ui {
        grid-template-columns: 1fr;
    }
}

.route-stats-pane {
    padding: 1.75rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    border-right: 1px solid var(--rh-border);
}

.route-stations-list {
    padding: 1.5rem;
    background: var(--rh-dark);
    max-height: 280px;
    overflow-y: auto;
}

.station-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.35rem;
}

.station-item:hover, .station-item.active {
    background: var(--rh-surface-light);
    border-left: 3px solid var(--rh-orange);
}

.station-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--rh-orange-subtle);
    color: var(--rh-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Rundown / Timeline */
.timeline-container {
    position: relative;
    max-width: 840px;
    margin: 3rem auto 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 28px;
    width: 3px;
    background: linear-gradient(180deg, var(--rh-orange) 0%, rgba(255, 85, 0, 0.2) 100%);
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 2.25rem;
    transition: transform 0.25s ease;
}

.timeline-item:hover {
    transform: translateX(6px);
}

.timeline-dot {
    position: absolute;
    left: 17px;
    top: 4px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--rh-dark);
    border: 3px solid var(--rh-orange);
    box-shadow: 0 0 12px var(--rh-orange-glow);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot::after {
    content: '';
    width: 7px;
    height: 7px;
    background: #FFFFFF;
    border-radius: 50%;
}

.timeline-card {
    background: var(--rh-surface);
    border: 1px solid var(--rh-border);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.timeline-time {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--rh-orange);
    letter-spacing: 0.05em;
}

.timeline-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--rh-white);
    margin-bottom: 0.25rem;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--rh-slate);
}

.timeline-location {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    background: var(--rh-surface-light);
    padding: 0.3rem 0.75rem;
    border-radius: 99px;
    color: var(--rh-slate);
}

/* Pace Calculator Widget */
.calc-card {
    background: linear-gradient(145deg, #161924, #0F1118);
    border: 1.5px solid var(--rh-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
}

/* FAQ Accordion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 840px;
    margin: 3rem auto 0;
}

.faq-item {
    background: var(--rh-surface);
    border: 1px solid var(--rh-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item.active {
    border-color: rgba(255, 85, 0, 0.4);
}

.faq-trigger {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    color: var(--rh-white);
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-sans);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--rh-orange);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.5rem;
    color: var(--rh-slate);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active .faq-content {
    padding-bottom: 1.25rem;
}

/* Interactive Digital Race BIB & E-Ticket (Realistic 3D Card) */
.bib-container {
    perspective: 1200px;
    margin: 2rem auto;
    max-width: 520px;
}

.bib-card {
    background: #FFFFFF;
    color: #111827;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 85, 0, 0.2);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    border: 4px solid #FFFFFF;
}

/* Safety Pin Holes for athletic bib look */
.bib-pin-hole {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #111827;
    border: 2px solid #D1D5DB;
    border-radius: 50%;
    z-index: 10;
}
.bib-pin-hole.tl { top: 12px; left: 12px; }
.bib-pin-hole.tr { top: 12px; right: 12px; }
.bib-pin-hole.bl { bottom: 12px; left: 12px; }
.bib-pin-hole.br { bottom: 12px; right: 12px; }

.bib-header {
    background: #0F1117;
    color: #FFFFFF;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--rh-orange);
}

.bib-event-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    color: #FFFFFF;
}

.bib-category-stripe {
    background: var(--rh-orange);
    color: #FFFFFF;
    padding: 0.35rem 1.25rem;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 99px;
}

.bib-body {
    padding: 1.75rem 1.5rem 1rem;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, #FFFFFF 60%, #F1F5F9 100%);
}

.bib-number {
    font-family: var(--font-display);
    font-size: 5.5rem;
    line-height: 0.9;
    color: #0F1117;
    letter-spacing: 0.06em;
    margin: 0.25rem 0;
    font-weight: 900;
}

.bib-runner-name {
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #1E293B;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.bib-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1.25rem 0 0.75rem;
    padding-top: 0.75rem;
    border-top: 1.5px dashed #CBD5E1;
    text-align: center;
}

.bib-meta-item label {
    display: block;
    font-size: 0.7rem;
    color: #64748B;
    font-weight: 700;
    text-transform: uppercase;
}

.bib-meta-item span {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0F1117;
}

.bib-footer {
    background: #F8FAFC;
    border-top: 1.5px dashed #CBD5E1;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.barcode-sim {
    height: 38px;
    width: 170px;
    background: repeating-linear-gradient(
        90deg,
        #111 0px,
        #111 2px,
        transparent 2px,
        transparent 4px,
        #111 4px,
        #111 7px,
        transparent 7px,
        transparent 9px,
        #111 9px,
        #111 11px
    );
}

/* Badges & Alerts */
.rh-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.rh-badge-success {
    background: var(--rh-success-bg);
    color: var(--rh-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.rh-badge-warning {
    background: var(--rh-warning-bg);
    color: var(--rh-warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.rh-badge-danger {
    background: var(--rh-danger-bg);
    color: var(--rh-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.rh-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.rh-alert-success {
    background: var(--rh-success-bg);
    border: 1px solid var(--rh-success);
    color: #34D399;
}

.rh-alert-danger {
    background: var(--rh-danger-bg);
    border: 1px solid var(--rh-danger);
    color: #F87171;
}

.rh-alert-warning {
    background: var(--rh-warning-bg);
    border: 1px solid var(--rh-warning);
    color: #FBBF24;
}

.rh-alert-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #E2E8F0;
    margin-bottom: 0.45rem;
}

.form-control, .form-select {
    width: 100%;
    padding: 0.85rem 1.15rem;
    background: var(--rh-dark);
    border: 1.5px solid var(--rh-border);
    border-radius: var(--radius-md);
    color: var(--rh-white);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
    outline: none;
}

.form-control:focus, .form-select:focus {
    border-color: var(--rh-orange);
    box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.2);
    background: #131622;
}

.form-control::placeholder {
    color: var(--rh-muted);
}

/* Admin & User App Shell Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 270px;
    background: var(--rh-dark);
    border-right: 1px solid var(--rh-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.app-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--rh-border);
}

.app-sidebar-nav {
    padding: 1.5rem 1rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.app-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    color: var(--rh-slate);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.app-sidebar-nav a:hover,
.app-sidebar-nav a.active {
    background: var(--rh-orange-subtle);
    color: var(--rh-orange-bright);
}

.app-sidebar-nav a.active {
    border-left: 3px solid var(--rh-orange);
    font-weight: 700;
}

.app-main {
    flex: 1;
    background: var(--rh-black);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-topbar {
    height: 70px;
    background: rgba(15, 17, 23, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rh-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-content {
    padding: 2.5rem 2rem;
    flex: 1;
}

@media (max-width: 991px) {
    .app-sidebar {
        display: none;
    }
    .app-content {
        padding: 1.5rem 1rem;
    }
}

/* Data Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--rh-border);
    background: var(--rh-surface);
}

.rh-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.rh-table th {
    background: var(--rh-dark);
    padding: 1rem 1.25rem;
    font-weight: 700;
    color: #E2E8F0;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--rh-border);
}

.rh-table td {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--rh-border);
    color: #CBD5E1;
    vertical-align: middle;
}

.rh-table tr:hover td {
    background: rgba(255, 85, 0, 0.03);
}

/* Modals */
.rh-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.rh-modal.active {
    display: flex;
}

.rh-modal-content {
    background: var(--rh-surface);
    border: 1px solid var(--rh-border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 580px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.rh-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--rh-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rh-modal-body {
    padding: 1.5rem;
}

.rh-modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--rh-border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: var(--rh-dark);
}

/* Print Styles for BIB & Ticket */
@media print {
    body * {
        visibility: hidden;
    }
    #printable-bib, #printable-bib * {
        visibility: visible;
    }
    #printable-bib {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        box-shadow: none;
        border: 2px solid #000;
    }
    .no-print {
        display: none !important;
    }
}
