/* ==========================================================================
   Chmuto-bike: Modern Glassmorphism & TMA Mobile UI Stylesheet
   ========================================================================== */

:root {
    --primary: #ff5500;
    --primary-hover: #e04b00;
    --primary-glow: rgba(255, 85, 0, 0.35);
    
    --bg-dark: var(--tg-theme-bg-color, #0b0f19);
    --bg-card: var(--tg-theme-secondary-bg-color, #131b2e);
    --bg-card-hover: #1a243d;
    --bg-glass: rgba(19, 27, 46, 0.75);
    --bg-glass-nav: rgba(11, 15, 25, 0.85);
    
    --text-main: var(--tg-theme-text-color, #f8fafc);
    --text-muted: var(--tg-theme-hint-color, #94a3b8);
    --text-accent: #ff7a29;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-card: rgba(255, 255, 255, 0.1);
    --border-highlight: rgba(255, 85, 0, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(255, 85, 0, 0.25);
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light theme support if Telegram or user has light mode */
@media (prefers-color-scheme: light) {
    :root:not(.dark) {
        --bg-dark: var(--tg-theme-bg-color, #f8fafc);
        --bg-card: var(--tg-theme-secondary-bg-color, #ffffff);
        --bg-card-hover: #f1f5f9;
        --bg-glass: rgba(255, 255, 255, 0.85);
        --bg-glass-nav: rgba(248, 250, 252, 0.9);
        --text-main: var(--tg-theme-text-color, #0f172a);
        --text-muted: var(--tg-theme-hint-color, #64748b);
        --border-subtle: rgba(0, 0, 0, 0.06);
        --border-card: rgba(0, 0, 0, 0.1);
        --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Container */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .container { padding: 0 24px; }
}

/* Glass Navbar */
.glass-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-glass-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-fast);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 8px;
}

.logo-badge {
    background: linear-gradient(135deg, #ff5500 0%, #ff8800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-subtag {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255,85,0,0.2);
    color: #ff9955;
    border: 1px solid rgba(255,85,0,0.3);
    font-weight: 700;
    letter-spacing: 0.5px;
    -webkit-text-fill-color: #ff9955;
}

.nav-center-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.hero-pill-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 85, 0, 0.12);
    border: 1px solid rgba(255, 85, 0, 0.3);
    color: #ff8844;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

@media (max-width: 840px) {
    .nav-center-badge {
        display: none;
    }
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Currency & Lang Switchers */
.segmented-control {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
}

.segmented-control button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 8px 12px;
    min-height: 40px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-body);
}

.segmented-control button.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--primary-glow);
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .nav-container {
        height: 56px;
        padding: 0 2px;
    }

    .logo-badge {
        font-size: 1.05rem;
        gap: 4px;
    }

    .nav-subtag {
        display: none;
    }

    .nav-controls {
        gap: 4px;
    }

    .segmented-control {
        padding: 2px;
    }

    .segmented-control button {
        font-size: 0.72rem;
        padding: 4px 6px;
        min-height: 32px;
    }
}

@media (max-width: 370px) {
    .segmented-control button {
        padding: 3px 5px;
        font-size: 0.68rem;
    }
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    padding: 20px 0 12px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 85, 0, 0.15) 0%, rgba(11, 15, 25, 0) 70%);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(255, 85, 0, 0.12);
    border: 1px solid rgba(255, 85, 0, 0.3);
    color: #ff8844;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(1.85rem, 4.5vw, 3rem);
    line-height: 1.15;
    margin-bottom: 8px;
    background: linear-gradient(180deg, #ffffff 30%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Category Tabs */
.tabs-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 2px;
    margin-bottom: 16px;
}
.tabs-scroll::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    white-space: nowrap;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tab-btn:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
    background: linear-gradient(135deg, #ff5500 0%, #ff7700 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px var(--primary-glow);
}

/* Filter Chips */
.chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.chip-btn.active {
    background: rgba(255, 85, 0, 0.15);
    border-color: var(--primary);
    color: #ffaa77;
    font-weight: 600;
}

/* Bike Card Grid */
.bikes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .bikes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bikes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

/* Bike Card Component (Double-Bezel Architecture) */
.bike-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card), inset 0 1px 1px rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
    position: relative;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.bike-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 85, 0, 0.45);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 85, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* Card Carousel */
.carousel-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #060911;
    cursor: pointer;
    touch-action: pan-y;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bike-card:hover .carousel-img {
    transform: scale(1.03);
}

/* Carousel Navigation Overlay */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0.85;
    transition: var(--transition-fast);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.carousel-btn:hover {
    opacity: 1;
    background: var(--primary);
    border-color: var(--primary);
}

.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

/* Hide card carousel buttons on mobile/touch screens, keeping swipe & tap */
@media (hover: none) or (max-width: 768px) {
    .carousel-box .carousel-btn {
        display: none !important;
    }
}

.carousel-dots {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    z-index: 15;
    background: rgba(0, 0, 0, 0.55);
    padding: 3px 6px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dot {
    width: 5px;
    height: 5px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    width: 14px;
    background: var(--primary);
}

/* Semi-transparent Feature Pills on Photo */
.photo-pills-row {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    z-index: 12;
    pointer-events: none;
    max-width: calc(100% - 60px);
}

.photo-pill {
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
}

.photo-pill.rack {
    border-color: rgba(255, 85, 0, 0.35);
    color: #ffaa77;
    background: rgba(255, 85, 0, 0.15);
}

.photo-pill.helmets {
    border-color: rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.12);
}

.photo-pill.abs {
    border-color: rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.12);
}

.photo-pill.cc {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #f8fafc;
}

.photo-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.status-badge.free {
    background: rgba(16, 185, 129, 0.88);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.status-badge.rented {
    background: rgba(71, 85, 105, 0.88);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Card Content */
.bike-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bike-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.badge-highlight {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 85, 0, 0.12);
    color: #ff8833;
    border: 1px solid rgba(255, 85, 0, 0.2);
    margin-bottom: 10px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.kite-tag {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

/* TTX Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
    margin-bottom: 16px;
}

.spec-item {
    font-size: 0.78rem;
}

.spec-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    display: block;
    margin-bottom: 1px;
}

.spec-value {
    color: var(--text-main);
    font-weight: 600;
}

/* Pricing Box */
.pricing-box {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

.price-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 6px;
}

.price-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

.price-period {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.discount-pills {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.discount-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Action Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.92rem;
    background: linear-gradient(135deg, #ff5500 0%, #ff7700 100%);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 12px var(--primary-glow);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--primary-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: 8px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Calculator Section */
.calc-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-card);
    padding: 28px 20px;
    box-shadow: var(--shadow-card);
    margin: 48px 0;
}

@media (min-width: 768px) {
    .calc-card {
        padding: 40px;
    }
}

.slider-styled {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #1e293b;
    outline: none;
}

.slider-styled::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
    border: 2px solid #ffffff;
}

/* Trust Blocks */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
}

@media (min-width: 640px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.trust-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 24px;
    transition: var(--transition-smooth);
}

.trust-item:hover {
    border-color: rgba(255, 85, 0, 0.3);
    transform: translateY(-4px);
}

.trust-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: inline-block;
}

/* FAQ Accordion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 860px;
    margin: 32px auto 0;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-question {
    padding: 18px 20px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.faq-answer {
    padding: 0 20px 18px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Modals & Drawers */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transition: opacity 0.25s ease;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    position: relative;
    overscroll-behavior: contain;
}

.modal-close-btn {
    position: absolute;
    right: 18px;
    top: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
}

.modal-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

.drawer-handle {
    display: none;
    width: 38px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    margin: -4px auto 14px auto;
}

@media (max-width: 640px) {
    .modal-backdrop {
        padding: 0;
        align-items: flex-end;
    }

    .modal-content {
        max-width: 100%;
        max-height: 88vh;
        border-radius: 24px 24px 0 0;
        border-bottom: none;
        border-left: none;
        border-right: none;
        padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px)) 20px;
        animation: slideUpDrawer 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .drawer-handle {
        display: block;
    }

    .modal-close-btn {
        top: 14px;
        right: 14px;
    }
}

@keyframes slideUpDrawer {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Lightbox Fullscreen */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
}

.lightbox-img-wrap {
    max-width: 92vw;
    max-height: 85vh;
    position: relative;
}

.lightbox-img {
    max-width: 92vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

/* Toast */
.toast-box {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid var(--primary);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 15px var(--primary-glow);
    pointer-events: none;
}

/* Pulse animation for available bikes */
@keyframes pulse-emerald {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    display: inline-block;
    animation: pulse-emerald 2s infinite ease-in-out;
}

/* ==========================================================================
   Spots & Delivery Map Cards
   ========================================================================== */
.spots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .spots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.spot-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: var(--transition-fast);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.spot-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card), 0 0 20px rgba(255, 85, 0, 0.15);
}

.spot-card.active {
    border-color: var(--primary);
    background: linear-gradient(145deg, rgba(255, 85, 0, 0.08) 0%, var(--bg-card) 100%);
    box-shadow: 0 0 25px rgba(255, 85, 0, 0.2);
}

.spot-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 8px;
}

.spot-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.spot-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 85, 0, 0.15);
    color: #ff9955;
    border: 1px solid rgba(255, 85, 0, 0.3);
    display: inline-block;
}

.spot-km {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.spot-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 16px;
}

.spot-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    gap: 12px;
    flex-wrap: wrap;
}

.btn-spot {
    background: rgba(255, 85, 0, 0.15);
    color: #ff9955;
    border: 1px solid rgba(255, 85, 0, 0.4);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-spot:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* ==========================================================================
   Rider Reviews / Testimonials Cards
   ========================================================================== */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-fast);
}

.review-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 85, 0, 0.15);
    border: 1px solid rgba(255, 85, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.review-author {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

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

.review-stars {
    margin-left: auto;
    color: #f59e0b;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.review-bike-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: 12px;
    width: fit-content;
}

.review-text {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    font-style: italic;
}

/* ==========================================================================
   Sticky Bottom Floating Bar (Mobile UX)
   ========================================================================== */
.sticky-bottom-bar {
    position: fixed;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: 12px;
    max-width: 460px;
    margin: 0 auto;
    z-index: 180;
    pointer-events: auto;
}

.sticky-bar-content {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 85, 0, 0.35);
    border-radius: var(--radius-full);
    padding: 8px 10px 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 85, 0, 0.2);
}

.sticky-bar-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sticky-bar-title {
    font-size: 0.86rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #ffffff;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-bar-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-bar-btn {
    background: linear-gradient(135deg, #ff5500 0%, #ff7700 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    padding: 9px 18px;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--primary-glow);
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.sticky-bar-btn:active {
    transform: scale(0.95);
}

@media (min-width: 769px) {
    .sticky-bottom-bar {
        display: none !important;
    }
}

/* ==========================================================================
   3D & AR Interactive Model-Viewer Styles
   ========================================================================== */

.carousel-box.mode-3d {
    cursor: default;
    background: radial-gradient(circle at center, #151f38 0%, #060911 100%);
}

.carousel-photo-layer {
    width: 100%;
    height: 100%;
    position: relative;
}

.model-viewer-layer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    background: radial-gradient(circle at center, #131b2e 0%, #060911 100%);
    border-radius: inherit;
    overflow: hidden;
}

.bike-model-viewer {
    width: 100%;
    height: 100%;
    display: block;
    outline: none;
    border: none;
    --poster-color: transparent;
    --progress-bar-color: var(--primary);
    --progress-mask: transparent;
}

/* Floating Segmented Media Tabs Switcher (Photo / 3D 360°) */
.media-tabs-bar {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 25;
}

.media-pill-group {
    display: inline-flex;
    align-items: center;
    background: rgba(8, 12, 22, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 3px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.media-tab-btn {
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-size: 0.74rem;
    font-weight: 600;
    font-family: var(--font-body);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    line-height: 1.2;
    outline: none;
}

.media-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.media-tab-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #ff5500 0%, #ff7700 100%);
    box-shadow: 0 2px 10px rgba(255, 85, 0, 0.45);
}

.media-tab-btn.btn-3d.active {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.45);
}

/* Floating AR "View in Room" Button */
.ar-button {
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border-radius: var(--radius-full);
    padding: 7px 14px;
    font-size: 0.76rem;
    font-weight: 700;
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 30;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.ar-button:hover, .ar-button:active {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.04);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5);
}

/* Modal Interactive Bike Preview Widget */
.modal-bike-preview {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-card);
    background: #060911;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-preview-media {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
}

.modal-preview-img-box, .modal-preview-3d-box {
    width: 100%;
    height: 100%;
    position: relative;
}

.modal-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-model-viewer {
    width: 100%;
    height: 100%;
    display: block;
    outline: none;
    border: none;
    --poster-color: transparent;
    background: radial-gradient(circle at center, #151f38 0%, #060911 100%);
}

.modal-media-tabs {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 25;
    display: flex;
    gap: 3px;
    background: rgba(8, 12, 22, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.modal-media-tab-btn {
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--font-body);
    padding: 3px 9px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    outline: none;
}

.modal-media-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.modal-media-tab-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #ff5500 0%, #ff7700 100%);
    box-shadow: 0 2px 8px rgba(255, 85, 0, 0.4);
}

.modal-media-tab-btn.btn-3d.active {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}



