/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Modern CSS Variable System */
:root {
    --brand-primary: hsl(15, 95%, 55%);     /* Premium Warm Orange/Red */
    --brand-primary-hover: hsl(15, 95%, 48%);
    --brand-secondary: hsl(210, 100%, 20%); /* Deep Navy */
    --dark-base: #111116;
    --dark-surface: #1e1e24;
    --dark-surface-muted: #2a2a32;
    --light-base: #f8f9fa;
    --light-surface: #ffffff;
    --light-border: #e9ecef;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --text-light: #f3f4f6;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--light-base);
    color: var(--text-dark);
    font-size: 0.95rem;
    overflow-x: hidden;
}

/* Public site — sticky footer (always at bottom when content is short) */
html {
    height: 100%;
}

body.site-layout {
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body.site-layout .site-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

body.site-layout .site-content {
    flex: 1 0 auto;
}

body.site-layout .site-footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* Headings typography styling */
h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Premium Primary Buttons */
.btn-primary-mj {
    background-color: var(--brand-primary);
    border: none;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.15);
    transition: var(--transition-smooth);
}

/* Mobile-optimized buttons */
@media (max-width: 767.98px) {
    .btn-primary-mj {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .btn-outline-mj {
        padding: 0.45rem 0.9rem;
        font-size: 0.875rem;
    }

    /* Mobile-optimized form controls */
    .form-control,
    .form-select {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }

    /* Mobile-optimized filter buttons */
    .btn-filter {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Mobile-optimized cards */
    .card {
        border-radius: 12px;
    }

    /* Mobile-optimized pagination */
    .pagination .page-link {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
    }
}

.btn-primary-mj:hover, .btn-primary-mj:focus {
    background-color: var(--brand-primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(249, 115, 22, 0.25);
}

.btn-outline-mj {
    background: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    transition: var(--transition-smooth);
}

.btn-outline-mj:hover {
    background-color: var(--brand-primary);
    color: #ffffff;
}

/* Floating WhatsApp Chat Button with Pulse Animation */
.whatsapp-floating {
    position: fixed;
    bottom: 85px; /* Sits above mobile bottom navigation bar */
    right: 20px;
    z-index: 1000;
    background-color: #25d366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.whatsapp-floating i {
    font-size: 32px;
}

.whatsapp-floating:hover {
    transform: scale(1.1);
    color: #ffffff;
}

/* Pulse animation rings */
.whatsapp-floating::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.7;
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Sticky Bottom Mobile Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--light-border);
    z-index: 1030;
    display: none; /* Enabled only on mobile screens via media query */
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.04);
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav .nav-item-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 5px 10px;
    position: relative;
}

.mobile-bottom-nav .nav-item-mobile i {
    font-size: 22px;
    margin-bottom: 2px;
    transition: var(--transition-smooth);
}

.mobile-bottom-nav .nav-item-mobile.active {
    color: var(--brand-primary);
}

.mobile-bottom-nav .nav-item-mobile.active i {
    transform: translateY(-2px);
}

/* Navigation Badges */
.nav-badge {
    position: absolute;
    top: 2px;
    right: 18px;
    background-color: var(--brand-primary);
    color: #ffffff;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: 700;
}

/* Glassmorphism Styles */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
}

/* Premium Product Cards */
.product-card {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

/* Mobile-optimized product cards */
@media (max-width: 767.98px) {
    .product-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .product-card .card-img-wrap {
        padding-top: 70%; /* Slightly taller aspect ratio for mobile */
    }

    .product-card .card-body {
        padding: 0.75rem;
    }

    .product-card .card-title {
        font-size: 0.875rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    .product-card .card-text {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-card .fs-5 {
        font-size: 0.95rem !important;
    }

    .product-card .btn-primary-mj {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .product-card .badge-discount {
        font-size: 9px;
        padding: 2px 6px;
    }

    .product-card .badge {
        font-size: 8px;
        padding: 2px 5px;
    }
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.product-card .card-img-wrap {
    position: relative;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    background-color: #fcfcfc;
    overflow: hidden;
}

.product-card .card-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .card-img-wrap img {
    transform: scale(1.08);
}

.product-card .badge-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--brand-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 8px;
    z-index: 2;
}

.product-card .badge-status {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-weight: 500;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 6px;
    z-index: 2;
    text-transform: uppercase;
}

/* Flexible Mobile Grid Layout - Kilimall-style */
.mobile-grid-2 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
}

.mobile-grid-2 > div {
    width: 100% !important;
}

.mobile-grid-2 .product-card {
    margin: 0 !important;
    width: 100% !important;
}

/* Force grid on mobile screens */
@media (max-width: 767.98px) {
    .mobile-grid-2 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .mobile-grid-2 > div {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* Swipe-friendly horizontal scroll on mobile - deprecated in favor of grid */
.horizontal-scroll-mobile {
    display: none; /* Hidden by default, use grid instead */
}

/* Header / Navbar Styling */
.navbar-mj {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--light-border);
    transition: var(--transition-smooth);
}

.navbar-mj .navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--brand-secondary);
}

.navbar-mj .navbar-brand span {
    color: var(--brand-primary);
}

/* Testimonial Cards */
.testimonial-card {
    border: none;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    padding: 2rem;
    position: relative;
}

.testimonial-card::before {
    content: "“";
    font-family: 'Outfit', sans-serif;
    font-size: 80px;
    color: rgba(249, 115, 22, 0.1);
    position: absolute;
    top: -10px;
    left: 20px;
    line-height: 1;
}

/* Blog Cards */
.blog-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at 100% 50%, rgba(249, 115, 22, 0.08) 0%, rgba(255, 255, 255, 0) 70%), linear-gradient(135deg, #111116 0%, #1e1e24 100%);
    color: #ffffff;
    padding: 8rem 0 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Hero Carousel */
.hero-carousel-section {
    padding: 0;
}

.hero-carousel-section .carousel-inner {
    overflow: hidden;
}

.hero-slide-row {
    min-height: 520px;
    padding: 5rem 0 4rem;
}

.hero-slide-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--brand-primary, #f97316);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 1;
}

.hero-slide-image {
    z-index: 2;
    max-height: 480px;
    width: 100%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.6s ease;
}

.carousel-item.active .hero-slide-image {
    transform: scale(1);
}

.carousel-item:not(.active) .hero-slide-image {
    transform: scale(0.96);
}

.hero-carousel-indicators {
    margin-bottom: 1.5rem;
    z-index: 5;
}

.hero-carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
    opacity: 1;
    transition: all 0.3s ease;
}

.hero-carousel-indicators [data-bs-target].active {
    width: 32px;
    border-radius: 10px;
    background-color: var(--brand-primary, #f97316);
    border-color: var(--brand-primary, #f97316);
}

.hero-carousel-control {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.hero-carousel-section:hover .hero-carousel-control {
    opacity: 1;
}

.hero-carousel-control-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    backdrop-filter: blur(4px);
}

.hero-slide-counter {
    position: absolute;
    bottom: 1.25rem;
    right: 1.5rem;
    z-index: 5;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.hero-slide-image-link {
    z-index: 2;
    text-decoration: none;
}

.hero-slide-image-link:hover .hero-slide-image {
    transform: scale(1.02);
}

.carousel-control-prev.hero-carousel-control {
    left: 1rem;
}

.carousel-control-next.hero-carousel-control {
    right: 1rem;
}

.hero-carousel-section .carousel-item.active .hero-slide-badge,
.hero-carousel-section .carousel-item.active .hero-slide-title,
.hero-carousel-section .carousel-item.active .hero-slide-subtitle,
.hero-carousel-section .carousel-item.active .hero-slide-actions {
    animation-duration: 0.7s;
    animation-fill-mode: both;
}

.hero-carousel-section .carousel-item.active .hero-slide-badge {
    animation-name: heroFadeDown;
}

.hero-carousel-section .carousel-item.active .hero-slide-title {
    animation-name: heroFadeLeft;
    animation-delay: 0.1s;
}

.hero-carousel-section .carousel-item.active .hero-slide-subtitle {
    animation-name: heroFadeUp;
    animation-delay: 0.2s;
}

.hero-carousel-section .carousel-item.active .hero-slide-actions {
    animation-name: heroFadeUp;
    animation-delay: 0.35s;
}

@keyframes heroFadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Quick Booking Form Card */
.booking-card {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    padding: 2.5rem;
}

/* Admin Dashboard layout styling */
body.admin-layout {
    overflow: hidden;
    height: 100vh;
    padding-bottom: 0 !important;
    --bs-primary: var(--brand-primary);
    --bs-primary-rgb: 249, 86, 31;
    --bs-link-color: var(--brand-primary);
    --bs-link-hover-color: var(--brand-primary-hover);
    --bs-focus-ring-color: rgba(249, 86, 31, 0.25);
}

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--admin-sidebar-width);
    height: 100vh;
    z-index: 1030;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #111116;
    min-height: 100vh;
    color: rgba(255, 255, 255, 0.7);
}

.admin-main {
    margin-left: var(--admin-sidebar-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-header {
    flex-shrink: 0;
    z-index: 1020;
}

.admin-content-scroll {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    display: block;
}

.admin-footer {
    flex-shrink: 0;
    z-index: 1020;
}

@media (min-width: 992px) {
    :root {
        --admin-sidebar-width: 16.666667vw;
    }

    .admin-sidebar.collapse:not(.show) {
        display: flex !important;
        visibility: visible !important;
    }
}

@media (max-width: 991.98px) {
    :root {
        --admin-sidebar-width: 0px;
    }

    .admin-sidebar {
        width: 280px;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }

    .admin-sidebar.collapse:not(.show) {
        display: none;
    }

    .admin-sidebar.collapse.show {
        display: flex !important;
    }
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    margin: 0.25rem 1rem;
    transition: var(--transition-smooth);
}

.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    color: #ffffff;
    background-color: var(--brand-primary);
}

/* Admin panel — brand-aligned Bootstrap overrides */
body.admin-layout .nav-pills .nav-link {
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    transition: var(--transition-smooth);
}

body.admin-layout .nav-pills .nav-link:hover {
    color: var(--brand-primary);
    background-color: rgba(249, 86, 31, 0.08);
}

body.admin-layout .nav-pills .nav-link.active {
    color: #ffffff;
    background-color: var(--brand-primary);
}

body.admin-layout .admin-tab-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.25rem;
}

body.admin-layout .admin-tab-nav::-webkit-scrollbar {
    display: none;
}

body.admin-layout .admin-tab-nav .nav-item {
    flex: 0 0 auto;
}

body.admin-layout .admin-tab-nav .nav-link {
    white-space: nowrap;
    font-size: 0.8125rem;
}

body.admin-layout .btn-outline-primary {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

body.admin-layout .btn-outline-primary:hover,
body.admin-layout .btn-outline-primary:focus,
body.admin-layout .btn-outline-primary:active {
    color: #ffffff;
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

body.admin-layout .form-control:focus,
body.admin-layout .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(249, 86, 31, 0.15);
}

body.admin-layout .page-link {
    color: var(--brand-primary);
}

body.admin-layout .page-item.active .page-link {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

body.admin-layout .alert-info {
    background-color: rgba(249, 86, 31, 0.08);
    color: var(--brand-secondary);
    border: 1px solid rgba(249, 86, 31, 0.15);
}

body.admin-layout .alert-info .bi-info-circle-fill {
    color: var(--brand-primary);
}

body.admin-layout .alert-info a {
    color: var(--brand-primary);
    font-weight: 600;
}

body.admin-layout turbo-frame#admin-content .card.border-0.shadow-sm.rounded-4 {
    background-color: var(--light-surface);
}

.admin-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* Admin Dashboard */
.dashboard-welcome {
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 1rem 1.125rem;
}

.dashboard-stat-body {
    min-width: 0;
}

.dashboard-stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 768px) {
    .dashboard-welcome {
        padding: 1.5rem 1.75rem;
    }

    .dashboard-stat-card {
        border-radius: 14px;
    }
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}

.dashboard-stat-label {
    display: block;
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.dashboard-stat-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.15rem;
    line-height: 1.15;
    word-break: break-word;
}

.dashboard-stat-sub {
    font-size: 0.62rem;
    font-weight: 500;
    line-height: 1.25;
    display: block;
}

.dashboard-stat-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.dashboard-mini-stat {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform 0.2s ease;
}

.dashboard-mini-stat-value {
    font-size: 1rem;
    line-height: 1.2;
}

.dashboard-mini-stat-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.dashboard-mini-stat:hover {
    transform: translateY(-2px);
}

@media (min-width: 576px) {
    .dashboard-stat-label {
        font-size: 0.65rem;
    }

    .dashboard-stat-value {
        font-size: 1.15rem;
    }

    .dashboard-stat-sub {
        font-size: 0.7rem;
    }

    .dashboard-stat-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .dashboard-mini-stat-value {
        font-size: 1.15rem;
    }

    .dashboard-mini-stat-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .dashboard-welcome-title {
        font-size: 1.5rem;
    }

    .dashboard-stat-label {
        font-size: 0.7rem;
        letter-spacing: 0.04em;
        margin-bottom: 0.25rem;
    }

    .dashboard-stat-value {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .dashboard-stat-sub {
        font-size: 0.75rem;
    }

    .dashboard-stat-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        font-size: 1.25rem;
    }

    .dashboard-mini-stat {
        border-radius: 14px;
    }

    .dashboard-mini-stat-value {
        font-size: 1.25rem;
    }

    .dashboard-mini-stat-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .dashboard-welcome-title {
        font-size: 1.05rem;
    }

    .dashboard-chart-wrap {
        height: 220px !important;
    }

    .dashboard-panel {
        border-radius: 12px;
    }
}

/* Admin modules — compact mobile spacing */
@media (max-width: 767.98px) {
    turbo-frame#admin-content .card.p-4,
    turbo-frame#admin-content .card.border-0.shadow-sm.rounded-4.p-4,
    turbo-frame#admin-content .card.admin-card.p-4 {
        padding: 0.75rem !important;
    }

    turbo-frame#admin-content .row.g-3,
    turbo-frame#admin-content .row.g-4 {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }

    turbo-frame#admin-content h4.brand-font {
        font-size: 1rem;
    }

    turbo-frame#admin-content .admin-header {
        padding-top: 0.65rem !important;
        padding-bottom: 0.65rem !important;
    }
}

.dashboard-panel {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.dashboard-chart-wrap canvas {
    position: relative;
    z-index: 1;
}

.dashboard-chart-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    z-index: 2;
    pointer-events: none;
    background: rgba(255,255,255,0.85);
    border-radius: 8px;
}

.dashboard-table thead th {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    font-weight: 600;
    border-bottom-width: 1px;
    padding-bottom: 0.75rem;
}

.dashboard-table tbody td {
    font-size: 0.85rem;
    padding: 0.65rem 0.5rem;
    border-color: #f1f5f9;
}

.dashboard-empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #94a3b8;
}

.dashboard-empty-state i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

.dashboard-empty-state p {
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.status-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.3em 0.65em;
    border-radius: 50rem;
    text-transform: capitalize;
}

.status-badge.status-pending { background: rgba(234,179,8,0.12); color: #ca8a04; }
.status-badge.status-paid,
.status-badge.status-completed,
.status-badge.status-delivered { background: rgba(34,197,94,0.12); color: #16a34a; }
.status-badge.status-processing,
.status-badge.status-confirmed,
.status-badge.status-shipped { background: rgba(59,130,246,0.12); color: #2563eb; }
.status-badge.status-cancelled { background: rgba(239,68,68,0.12); color: #dc2626; }
.status-badge.status-approved { background: rgba(34,197,94,0.12); color: #16a34a; }
.status-badge.status-rejected { background: rgba(239,68,68,0.12); color: #dc2626; }

.admin-action-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hotwire Turbo */
.turbo-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #f97316, #ef4444);
    z-index: 9999;
    transition: width 0.2s ease;
    pointer-events: none;
}

body.turbo-loading .turbo-progress-bar,
turbo-frame.turbo-frame-loading .turbo-frame-shell::before {
    animation: turbo-progress 1.2s ease-in-out infinite;
}

@keyframes turbo-progress {
    0% { width: 0; opacity: 1; }
    50% { width: 70%; opacity: 1; }
    100% { width: 100%; opacity: 0; }
}

body.turbo-loading .turbo-progress-bar {
    width: 80%;
}

.turbo-frame-shell {
    display: block;
    min-height: 1px;
}

turbo-frame#admin-content {
    min-height: 0;
}

turbo-frame.turbo-frame-loading {
    opacity: 0.65;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

turbo-frame[busy] {
    cursor: wait;
}

/* Responsive Media Queries */
@media (max-width: 991.98px) {
    .navbar-mj .navbar-nav {
        padding: 1rem 0;
    }
    
    .hero-section {
        padding: 6rem 0 4rem 0;
    }

    .hero-slide-row {
        min-height: auto;
        padding: 4rem 0 3rem;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 70px; /* Space for fixed bottom navbar on mobile */
    }
    
    .mobile-bottom-nav {
        display: flex; /* Show bottom drawer on mobile */
    }
    
    .whatsapp-floating {
        bottom: 85px;
    }

    .hero-section {
        padding: 5rem 0 3rem 0;
        text-align: center;
    }

    .hero-slide-row {
        padding: 3rem 0 2.5rem;
    }

    .hero-slide-image {
        max-height: 280px;
    }

    .hero-carousel-control {
        opacity: 1;
        width: 36px;
        height: 36px;
    }

    .hero-carousel-control-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .hero-slide-counter {
        top: 1rem;
        bottom: auto;
        right: 1rem;
    }
    
    .booking-card {
        padding: 1.5rem;
    }
}

/* Hero Section Background Layout Overhaul */
.hero-slide-overlay {
    position: relative;
    background-color: var(--dark-base, #111116);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* Mobile / tablet: full-height scrim for readable typography */
    background: linear-gradient(
        to bottom,
        rgba(17, 17, 22, 0.55) 0%,
        rgba(17, 17, 22, 0.88) 55%,
        rgba(17, 17, 22, 0.97) 100%
    );
}

.z-index-2 { z-index: 2; }
.z-index-3 { z-index: 3; }

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .hero-slide-title {
        font-size: 2.25rem !important;
    }

    .hero-slide-overlay {
        background-size: cover;
        background-position: center;
    }
}

@media (min-width: 992px) {
    .hero-slide-overlay {
        /* Show the full product image without edge clipping */
        background-size: contain;
        background-repeat: no-repeat;
        background-position: 95% center;
    }

    .hero-overlay-gradient {
        /* Solid base under copy, feathering into the bike on the right */
        background: linear-gradient(
            to right,
            #111116 0%,
            #111116 26%,
            rgba(17, 17, 22, 0.98) 36%,
            rgba(17, 17, 22, 0.82) 48%,
            rgba(17, 17, 22, 0.45) 58%,
            rgba(17, 17, 22, 0.12) 70%,
            rgba(17, 17, 22, 0) 82%
        );
    }
}

/* Admin module filters — shared mobile collapse */
@media (min-width: 768px) {
    .admin-module-filters .admin-filter-select,
    .admin-module-filters .admin-filter-input {
        font-size: 1rem;
        padding-top: 0.375rem;
        padding-bottom: 0.375rem;
    }
}

/* Payment ledger — mobile card list */
.payment-ledger-title {
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .payment-ledger-title {
        font-size: inherit;
    }
}

.payment-status-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25em 0.55em;
}

.payment-ledger-th {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}

.payment-ledger-meta {
    font-size: 0.7rem;
}

.payment-ledger-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-ledger-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 0.625rem 0.75rem;
    background: #fafafa;
}

.payment-ledger-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.payment-ledger-order {
    font-size: 0.85rem;
    line-height: 1.2;
}

.payment-ledger-date {
    font-size: 0.62rem;
    color: #94a3b8;
    margin-top: 0.1rem;
}

.payment-ledger-amount {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.payment-ledger-card-mid {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    color: #64748b;
    margin-bottom: 0.35rem;
    min-width: 0;
}

.payment-ledger-method {
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.payment-ledger-divider {
    opacity: 0.5;
    flex-shrink: 0;
}

.payment-ledger-customer {
    min-width: 0;
}

.payment-ledger-ref {
    font-size: 0.62rem;
    color: #94a3b8;
    margin-bottom: 0.35rem;
    word-break: break-all;
}

.payment-ledger-card-actions {
    display: flex;
    gap: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.payment-ledger-card-actions .btn {
    flex: 1;
    font-size: 0.7rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.payment-ledger-empty-icon {
    font-size: 2rem;
}

@media (min-width: 768px) {
    .payment-ledger-empty-icon {
        font-size: 3rem;
    }
}

.payment-ledger-pagination .pagination {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .payment-ledger-pagination .page-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Auth pages — full-screen mobile, centered card desktop */
html:has(body.auth-layout) {
    height: 100%;
}

body.auth-layout {
    background-color: #f8f9fa;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body.auth-layout .auth-main,
body.auth-layout turbo-frame#auth-content.auth-frame {
    flex: 1 1 auto;
    min-height: 0;
}

/* Page shell */
.auth-page-wrap {
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.auth-page-inner {
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.auth-page-col {
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Card */
.auth-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
}

.auth-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.auth-form-main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
}

@media (min-width: 768px) {
    .auth-form-main {
        gap: 0;
    }
}

.auth-form-register {
    gap: 0.75rem;
}

.auth-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

@media (min-width: 768px) {
    .auth-card-content {
        gap: 0;
    }
}

.auth-verify-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.75rem;
    width: 100%;
}

/* ── Mobile: full-screen immersive layout ── */
@media (max-width: 767.98px) {
    body.auth-layout {
        overflow-x: hidden;
        background-color: #fff;
    }

    body.auth-layout .auth-main,
    body.auth-layout turbo-frame#auth-content.auth-frame,
    .auth-page-wrap,
    .auth-page-inner,
    .auth-page-col,
    .auth-card {
        min-height: 100dvh;
        min-height: 100vh;
    }

    body.auth-layout .auth-main,
    body.auth-layout turbo-frame#auth-content.auth-frame {
        display: flex;
        flex-direction: column;
    }

    .auth-page-wrap {
        width: 100%;
        padding: 0;
        margin: 0;
        background: #fff;
        display: flex;
        flex-direction: column;
        justify-content: stretch;
        align-items: stretch;
    }

    .auth-page-inner,
    .auth-page-col {
        width: 100%;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .auth-card {
        flex: 1 1 auto;
        width: 100%;
        background: #fff;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .auth-card-header {
        flex-shrink: 0;
        padding: 1.125rem 1.25rem 1rem;
        padding-top: calc(1rem + env(safe-area-inset-top, 0px));
    }

    .auth-card-header .site-logo-img {
        max-height: 34px !important;
    }

    .auth-card-header .brand-font {
        font-size: 1.05rem;
    }

    .auth-card-tagline {
        font-size: 0.8125rem;
        line-height: 1.35;
        margin-top: 0.25rem;
    }

    .auth-card .card-body.auth-card-body {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 0;
        padding: 1rem 1.25rem 1.25rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .auth-card:has(.auth-form-register) .card-body.auth-card-body {
        justify-content: flex-start;
    }

    .auth-card-content {
        gap: 1.25rem;
        flex: 0 1 auto;
        width: 100%;
    }

    .auth-form-main {
        gap: 1.25rem;
    }

    .auth-form-fields {
        gap: 1rem;
    }

    .auth-card .form-label {
        font-size: 0.8125rem;
        margin-bottom: 0.375rem;
    }

    .auth-card .form-control,
    .auth-card .input-group-text {
        min-height: 3rem;
        height: auto;
        font-size: 1rem;
        padding: 0.625rem 1rem;
    }

    .auth-card textarea.form-control,
    .auth-card .auth-textarea {
        min-height: 4.5rem;
        height: auto;
        padding: 0.75rem 1rem;
        line-height: 1.4;
    }

    .auth-card .input-group-text {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }

    .auth-oauth-btn {
        font-size: 0.9375rem;
        padding: 0.75rem 1rem;
        min-height: 3rem;
    }

    .auth-divider span {
        font-size: 0.6875rem;
    }

    .auth-submit-btn {
        margin-top: 0;
        font-size: 0.9375rem;
        font-weight: 700;
        padding: 0.8125rem 1rem;
        min-height: 3rem;
    }

    .auth-forgot-link {
        font-size: 0.75rem;
    }

    .auth-remember-row .form-check-label {
        font-size: 0.8125rem;
    }

    .auth-remember-row .form-check-input {
        width: 1rem;
        height: 1rem;
    }

    .auth-card-footer {
        flex-shrink: 0;
        margin-top: auto;
        padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
        background: #fff !important;
        border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    .auth-footer-text {
        font-size: 0.875rem;
    }
}

/* ── Desktop: centered floating card ── */
@media (min-width: 768px) {
    body.auth-layout {
        align-items: center;
        justify-content: center;
        overflow: auto;
    }

    body.auth-layout .auth-main,
    body.auth-layout turbo-frame#auth-content.auth-frame {
        min-height: auto;
        display: block;
    }

    .auth-page-wrap {
        padding: 3rem 1rem;
        min-height: auto;
        align-items: center;
        justify-content: center;
        background-color: #f8f9fa;
    }

    .auth-page-inner {
        margin-left: auto;
        margin-right: auto;
        min-height: auto;
        width: 100%;
    }

    .auth-page-col {
        min-height: auto;
    }

    .auth-card {
        min-height: auto;
        border-radius: 1rem !important;
        box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
    }

    .auth-card .card-body.auth-card-body {
        padding: 2.5rem 3rem;
        overflow: visible;
    }

    .auth-card-footer {
        padding: 0.75rem 1rem;
        background: #f8f9fa !important;
        border-top: none !important;
    }
}

@media (min-width: 768px) {
    .auth-page-inner.auth-page-inner--narrow {
        max-width: 440px;
    }

    .auth-page-inner:not(.auth-page-inner--narrow) {
        max-width: 640px;
    }
}

/* Header banner */
.auth-card-header {
    padding: 0.625rem 1rem;
}

@media (min-width: 768px) {
    .auth-card-header {
        padding: 1.25rem 1.5rem;
    }
}

.auth-card-brand {
    line-height: 1;
    margin-bottom: 0.15rem;
}

@media (min-width: 768px) {
    .auth-card-brand {
        margin-bottom: 0.35rem;
    }
}

.auth-card-header .site-logo-img {
    max-height: 24px !important;
}

@media (min-width: 768px) {
    .auth-card-header .site-logo-img {
        max-height: 40px !important;
    }
}

.auth-card-header .brand-font {
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .auth-card-header .brand-font {
        font-size: inherit;
    }
}

.auth-card-tagline {
    font-size: 0.625rem;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .auth-card-tagline {
        font-size: 0.875rem;
        line-height: 1.4;
    }
}

.auth-card-footer {
    padding: 0.375rem 0.75rem;
}

@media (min-width: 768px) {
    .auth-card-footer {
        padding: 0.75rem 1rem;
    }
}

.auth-footer-text {
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    .auth-footer-text {
        font-size: 0.875rem;
    }
}

/* OAuth + divider */
.auth-oauth-btn {
    font-size: 0.75rem;
    line-height: 1.25;
    padding: 0.3125rem 0.75rem;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .auth-oauth-btn {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
    }
}

.auth-divider {
    margin-bottom: 0;
}

.auth-divider span {
    font-size: 0.6rem;
    letter-spacing: 0.02em;
}

@media (min-width: 768px) {
    .auth-divider {
        margin-bottom: 1.5rem;
    }

    .auth-divider span {
        font-size: 0.875rem;
    }
}

/* Form field spacing — unified mb-2 equivalent via gap */
.auth-form-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .auth-form-fields {
        gap: 1rem;
    }
}

.auth-form-grid {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .auth-form-grid {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
}

.auth-field {
    margin-bottom: 0;
}

.auth-card .form-label {
    margin-bottom: 0.125rem;
    font-size: 0.6875rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .auth-card .form-label {
        margin-bottom: 0.35rem;
        font-size: 0.875rem;
    }
}

/* Password label + forgot link row */
.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.125rem;
    min-height: 0;
}

.auth-forgot-link {
    font-size: 0.625rem;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .auth-label-row {
        margin-bottom: 0.35rem;
    }

    .auth-forgot-link {
        font-size: 0.8125rem;
    }
}

/* Remember me — tight to submit */
.auth-remember-row {
    margin: 0;
    padding: 0;
    min-height: 0;
}

.auth-remember-row .form-check-input {
    width: 0.875rem;
    height: 0.875rem;
    margin-top: 0.1rem;
}

.auth-remember-row .form-check-label {
    font-size: 0.6875rem;
    line-height: 1.3;
    padding-left: 0.15rem;
}

@media (min-width: 768px) {
    .auth-remember-row .form-check-input {
        width: 1rem;
        height: 1rem;
        margin-top: 0.2rem;
    }

    .auth-remember-row .form-check-label {
        font-size: 0.875rem;
    }
}

/* Slim inputs — desktop only; mobile sizes set in full-screen block */
@media (min-width: 768px) {
    .auth-card .form-control,
    .auth-card .input-group-text {
        min-height: auto;
        height: auto;
        font-size: inherit;
    }
}

/* Primary submit */
.auth-submit-btn {
    margin-top: 0;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .auth-submit-btn {
        margin-top: 1.25rem;
        padding: 0.625rem 1rem;
        font-size: 1rem;
    }
}

.auth-verify-icon {
    font-size: 1.75rem;
}

.auth-verify-text {
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .auth-verify-icon {
        font-size: 3rem;
    }

    .auth-verify-text {
        font-size: 0.875rem;
    }
}
