/* ==========================================
   JASPED — Mobile-First · Ocean Blue Theme
   Font: Montserrat | Optimized for Touch
   ========================================== */

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/Montserrat-Regular.woff2') format('woff2');
}

:root {
    /* Ocean Blue Palette */
    --primary: #0284C7;
    --primary-light: #0EA5E9;
    --primary-dark: #0369A1;
    --primary-50: #F0F9FF;
    --primary-100: #E0F2FE;
    --primary-200: #BAE6FD;
    --primary-600: #0284C7;
    --primary-700: #0369A1;
    --primary-800: #075985;

    /* Deep Ocean */
    --ocean: #0369A1;
    --ocean-light: #38BDF8;
    --ocean-dark: #0C4A6E;
    --ocean-glow: rgba(14, 165, 233, 0.2);

    /* Accent */
    --accent: #F59E0B;
    --success: #10B981;
    --success-light: #D1FAE5;
    --danger: #EF4444;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-primary: 0 4px 14px rgba(2, 132, 199, 0.25);
    --shadow-card-hover: 0 20px 40px rgba(2, 132, 199, 0.1);
    --premium-gradient: linear-gradient(135deg, #E0F7FA, #B2EBF2);
    --premium-card-bg: rgba(255, 255, 255, 0.8);
    --premium-card-hover-bg: rgba(255, 255, 255, 0.9);
    --premium-border: rgba(2, 132, 199, 0.3);

    /* Radius */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-full: 9999px;

    /* Touch */
    --touch-min: 48px;
    --bottom-nav-height: 55px;
    --safe-bottom: max(env(safe-area-inset-bottom, 0px), 16px);
}

/* ==========================================
   Base — Mobile First
   ========================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 8px);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0;
    height: env(safe-area-inset-top, 0px);
    background: var(--white);
    z-index: 1035;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

a {
    color: var(--primary);
    text-decoration: none;
    -webkit-touch-callout: none;
}

/* ==========================================
   Top Navbar
   ========================================== */
.navbar {
    padding: 0.625rem 0;
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226,232,240,0.5);
    z-index: 1030;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900) !important;
    letter-spacing: -0.03em;
}

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

.nav-link {
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem !important;
    border-radius: var(--r-sm);
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
}

.nav-link:hover {
    background: var(--primary-50);
    color: var(--primary) !important;
}

.navbar-toggler {
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0.5rem;
}

/* ==========================================
   Bottom Navigation
   ========================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--bottom-nav-height) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(226,232,240,0.6);
    z-index: 1029;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.06);
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--gray-400);
    font-size: 0.625rem;
    font-weight: 600;
    padding: 6px 12px;
    min-width: 56px;
    min-height: var(--touch-min);
    border-radius: var(--r-md);
    transition: all 0.2s ease;
    position: relative;
}

.bottom-nav a i {
    font-size: 1.375rem;
    transition: transform 0.2s ease;
}

.bottom-nav a.active { color: var(--primary); }
.bottom-nav a.active i { transform: scale(1.1); }

.bottom-nav a.active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 4px 4px;
}

.bottom-nav a:active { transform: scale(0.92); }

/* Compact bottom nav on small screens */
@media (max-width: 374px) {
    .bottom-nav {
        height: 80px;
        padding-bottom: 0;
        gap: 0;
    }
    .bottom-nav a {
        padding: 4px 6px;
        min-width: 48px;
        font-size: 0.5625rem;
    }
    .bottom-nav a i {
        font-size: 1.125rem;
    }
    .fab-search-btn {
        bottom: calc(56px + var(--safe-bottom) - 24px);
    }
    .fab-search-icon {
        width: 48px;
        height: 48px;
    }
    .fab-search-icon i {
        font-size: 1.125rem;
    }
}

/* Floating Action Button — Search (BRI/BNI style) */
.fab-search-btn {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) - 40px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1031;
    text-decoration: none;
}

@media (min-width: 992px) {
    .fab-search-btn { display: none; }
}

.fab-search-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284C7, #0369A1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.45), 0 2px 8px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    border: 3px solid white;
}

.fab-search-icon i {
    color: white;
    font-size: 1.375rem;
}

.fab-search-btn:active .fab-search-icon {
    transform: scale(0.92);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

/* Spacer for FAB center */
.fab-spacer {
    min-width: 56px;
    min-height: var(--touch-min);
}

@media (max-width: 991.98px) {
    .navbar .navbar-collapse { display: none !important; }
    .navbar .navbar-toggler { display: flex; }
    body { padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 8px); }
}

@media (min-width: 992px) {
    .bottom-nav { display: none !important; }
    body { padding-bottom: 0; }
}

/* ==========================================
   Hero — Ocean Blue
   ========================================== */
.hero-section {
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 40%, #0C4A6E 100%);
    color: white;
    padding: 1rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 60%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(to top, var(--gray-50), transparent);
    pointer-events: none;
}

.hero-section h1 {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: white;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.hero-section .lead {
    font-size: 0.8rem;
    opacity: 0.85;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

/* ==========================================
   Search Box — Premium
   ========================================== */
.search-premium {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--r-xl);
    padding: 0.375rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: all 0.3s ease;
}

.search-premium:focus-within {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
}

.search-premium-inner {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.97);
    border-radius: calc(var(--r-xl) - 4px);
    overflow: hidden;
    min-height: 52px;
}

.search-premium-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-width: 52px;
    height: 52px;
    color: var(--gray-400);
    font-size: 1.125rem;
}

.search-premium-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.875rem 0;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    color: var(--gray-800);
    outline: none;
    min-width: 0;
}

.search-premium-input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.search-premium-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.375rem;
    padding: 0.75rem 1.5rem;
    min-height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: calc(var(--r-xl) - 6px);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
    white-space: nowrap;
}

.search-premium-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2);
}

.search-premium-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

/* Desktop */
@media (min-width: 992px) {
    .search-premium { border-radius: var(--r-xl); }
    .search-premium-inner { border-radius: calc(var(--r-xl) - 4px); min-height: 56px; }
    .search-premium-input { font-size: 1rem; padding: 1rem 0; }
    .search-premium-btn { padding: 0.75rem 2rem; min-height: 48px; }
}

/* Popular Tags — Premium */
.popular-section {
    margin-top: 1.25rem;
}

.popular-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.625rem;
}

.popular-label i {
    font-size: 0.75rem;
    color: #FCD34D;
}

.popular-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
    margin: 0 -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.popular-scroll::-webkit-scrollbar { display: none; }

.popular-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--r-full);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    min-height: 40px;
}

.popular-chip:active {
    background: rgba(255,255,255,0.2);
    transform: scale(0.95);
}

.popular-chip .chip-icon {
    font-size: 1rem;
    line-height: 1;
}

.popular-chip .chip-text {
    letter-spacing: -0.01em;
}

/* Desktop: wrap instead of scroll */
@media (min-width: 992px) {
    .popular-scroll {
        overflow-x: visible;
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
    }
}

/* ==========================================
   Stats
   ========================================== */
.stats-section {
    margin-top: -1.5rem;
    position: relative;
    z-index: 10;
    padding: 0 1rem;
}

.stats-section .row { gap: 0.75rem; }

.stat-item {
    text-align: center;
    padding: 1rem 0.5rem;
    background: white;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.6;
    margin-bottom: 0.25rem;
}

.stat-item h3 {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0;
    line-height: 1.2;
}

.stat-item p {
    font-size: 0.6875rem;
    color: var(--gray-500);
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ==========================================
   Section Headers
   ========================================== */
.section-header { margin-bottom: 1.25rem; }

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.section-header p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0;
}

/* ==========================================
   Category Chips — 2-Row Horizontal Scroll
   ========================================== */
.category-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    padding: 0.25rem 0 0.5rem;
    margin: 0 -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.category-scroll-wrap::-webkit-scrollbar { display: none; }

.category-scroll-inner {
    display: flex;
    gap: 0.75rem;
}

.category-page {
    flex: 0 0 calc(100vw - 1.5rem);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.625rem;
    scroll-snap-align: start;
}

.category-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0 1rem;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.category-scroll::-webkit-scrollbar { display: none; }

.category-chip {
    flex: 0 0 100px;
    width: 100px;
    text-align: center;
    padding: 0.75rem 0.375rem;
    background: white;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--gray-700);
    scroll-snap-align: start;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s;
    border: 2px solid transparent;
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-chip:active {
    transform: scale(0.95);
    border-color: var(--primary-200);
}

.category-chip .icon-box {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.375rem;
    background: var(--primary-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.category-chip:active .icon-box { background: var(--primary-100); }
.category-chip .icon-box i { font-size: 1.125rem; color: var(--primary); }
.category-chip h6 { font-size: 0.625rem; font-weight: 600; margin: 0; line-height: 1.2; color: var(--gray-700); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-width: 100%; }
.category-chip small { font-size: 0.5625rem; color: var(--gray-400); font-weight: 500; margin-top: auto; }

/* ==========================================
   Cards
   ========================================== */
.card {
    border: 1px solid rgba(226,232,240,0.6);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    background: white;
    overflow: hidden;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.card:active { transform: scale(0.98); }
.card-img-top { height: 160px; object-fit: cover; }
.card-body { padding: 1rem; }
.card-title { font-size: 0.9375rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.375rem; }
.card-text { font-size: 0.8125rem; color: var(--gray-500); }

.card-footer {
    background: transparent;
    border-top: 1px solid var(--gray-100);
    padding: 0.75rem 1rem;
}

/* Category badge */
.category-badge {
    background: var(--primary-50);
    color: var(--primary);
    padding: 0.25rem 0.625rem;
    border-radius: var(--r-full);
    font-size: 0.6875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.price-tag {
    color: var(--success);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

/* ==========================================
   Featured Category Tabs
   ========================================== */
.featured-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.125rem 0 1rem;
    margin: 0 -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.featured-tabs::-webkit-scrollbar { display: none; }

.featured-tab {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: var(--r-full);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 40px;
}

.featured-tab:active {
    transform: scale(0.95);
}

.featured-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

.featured-tab i {
    font-size: 0.875rem;
}

.featured-scroll {
    display: flex;
    gap: 0.75rem;
    min-width: max-content;
}

.featured-item {
    transition: opacity 0.3s ease;
}

.rating-stars { color: var(--accent); font-size: 0.75rem; }

/* ==========================================
   Service Grid
   ========================================== */
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 576px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================
   Buttons
   ========================================== */
.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--r-md);
    min-height: var(--touch-min);
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:active { transform: scale(0.96); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
    transform: translateY(-1px);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

.btn-sm { min-height: 36px; padding: 0.5rem 1rem; font-size: 0.8125rem; border-radius: var(--r-sm); }
.btn-lg { min-height: 52px; padding: 0.875rem 2rem; font-size: 1rem; border-radius: var(--r-lg); }
.btn-block { width: 100%; }

/* ==========================================
   Forms
   ========================================== */
.form-control,
.form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--r-md);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    min-height: var(--touch-min);
    color: var(--gray-800);
    transition: all 0.2s;
    background: white;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-100);
}

.form-label {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}

.input-group-text {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-right: none;
    border-radius: var(--r-md) 0 0 var(--r-md);
    color: var(--gray-400);
    min-height: var(--touch-min);
    padding: 0 1rem;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 var(--r-md) var(--r-md) 0;
}

/* ==========================================
   Filter Drawer
   ========================================== */
.filter-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    z-index: 1050;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
}

.filter-drawer.show { transform: translateY(0); }

.filter-drawer-handle {
    width: 40px;
    height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    margin: 0.75rem auto;
}

.filter-drawer-header {
    padding: 0 1.25rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-100);
}

.filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1049;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.filter-overlay.show { opacity: 1; visibility: visible; }

@media (min-width: 992px) {
    .filter-drawer {
        position: static;
        border-radius: var(--r-lg);
        transform: none;
        max-height: none;
        overflow: visible;
        box-shadow: var(--shadow-sm);
    }
    .filter-drawer-handle, .filter-drawer-header { display: none; }
    .filter-overlay { display: none; }
}

/* ==========================================
   Nav Pills
   ========================================== */
.nav-pills {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.375rem;
    padding: 0.125rem;
}

.nav-pills::-webkit-scrollbar { display: none; }

.nav-pills .nav-link {
    flex: 0 0 auto;
    border-radius: var(--r-full);
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--gray-500);
    padding: 0.5rem 1rem;
    min-height: 40px;
    white-space: nowrap;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.nav-pills .nav-link.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

/* ==========================================
   Dashboard Stats
   ========================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.stat-card {
    border-radius: var(--r-md);
    padding: 1.25rem 1rem;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 60px;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 70%;
    height: 180%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.12), transparent);
}

.stat-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.stat-card h6 {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
}

.stat-card i {
    position: absolute;
    right: 0.75rem;
    bottom: 0.5rem;
    font-size: 2rem;
    opacity: 0.2;
}

.stat-card.bg-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.stat-card.bg-warning {
    background: linear-gradient(135deg, #F59E0B, #FCD34D);
}

.stat-card.bg-success {
    background: linear-gradient(135deg, var(--success), #34D399);
}

@media (min-width: 576px) {
    .dashboard-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
    padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 1.5rem);
}

.footer .footer-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: white !important;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.footer .footer-brand i { color: var(--primary-light); }

.footer h6 {
    color: white;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer a {
    color: var(--gray-400);
    font-weight: 500;
    font-size: 0.875rem;
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
}

.footer a:hover { color: white; }

.footer .social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer .social-links a {
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    background: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

.footer .social-links a:active {
    background: var(--primary);
    color: white;
    transform: scale(0.9);
}

.footer hr { border-color: var(--gray-800); margin: 1.5rem 0 1rem; }
.footer .copyright { font-size: 0.75rem; color: var(--gray-500); }

/* Hide footer on mobile */
@media (max-width: 991.98px) {
    .footer { display: none !important; }
}

@media (min-width: 992px) {
    .footer { padding-bottom: 2rem; }
}

/* ==========================================
   Table
   ========================================== */
.table-responsive {
    border-radius: var(--r-md);
    border: 1px solid var(--gray-200);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table th {
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
    padding: 0.875rem 0.75rem;
}

.table td {
    padding: 0.875rem 0.75rem;
    font-size: 0.875rem;
    white-space: nowrap;
    vertical-align: middle;
}

.table-hover tbody tr:active { background: var(--primary-50); }

/* ==========================================
   Badge
   ========================================== */
.badge {
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--r-full);
    font-size: 0.6875rem;
}

/* ==========================================
   Alert
   ========================================== */
.alert {
    border: none;
    border-radius: var(--r-md);
    font-weight: 500;
    font-size: 0.875rem;
}

/* ==========================================
   List Group
   ========================================== */
.list-group-item {
    border: none;
    padding: 0.875rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--r-sm) !important;
    min-height: var(--touch-min);
}

.list-group-item.active {
    background: var(--primary);
    color: white;
}

/* ==========================================
   CTA Banner
   ========================================== */
.cta-banner {
    background: linear-gradient(135deg, #0284C7, #0369A1);
    border-radius: var(--r-lg);
    padding: 2rem 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    margin: 2rem 0.75rem;
}

.cta-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.08), transparent);
    pointer-events: none;
}

.cta-banner h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.cta-banner p {
    font-size: 0.875rem;
    opacity: 0.85;
    color: white;
}

@media (min-width: 992px) {
    .cta-banner { margin: 3rem 0; padding: 3rem; border-radius: var(--r-xl); }
    .cta-banner h2 { font-size: 1.75rem; }
}

/* ==========================================
   Detail Page
   ========================================== */
.detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.detail-actions .btn { min-height: 52px; font-size: 0.9375rem; }

@media (min-width: 992px) {
    .detail-actions { grid-template-columns: 1fr; }
}

/* ==========================================
   Booking Card
   ========================================== */
.booking-card {
    background: white;
    border-radius: var(--r-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    margin-bottom: 0.75rem;
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in { animation: fadeInUp 0.4s ease-out both; }

/* ==========================================
   Scrollbar
   ========================================== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }

::selection { background: var(--primary-200); color: var(--primary-dark); }

/* ==========================================
   Item Cards Premium
   ========================================== */
.item-card-premium:active > div {
    transform: scale(0.98);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* Pulse animation for online dot */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* ==========================================
   Print
   ========================================== */
@media print {
    .navbar, .footer, .bottom-nav, .btn, .filter-overlay, .filter-drawer { display: none !important; }
    body { padding-bottom: 0; }
    .card { box-shadow: none; border: 1px solid var(--gray-300); }
}

/* ==========================================
   Responsive Utilities — Desktop & Tablet
   ========================================== */

/* Container max-width on desktop */
@media (min-width: 768px) {
    .container, .container-fluid {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 992px) {
    .container, .container-fluid {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container, .container-fluid {
        max-width: 1140px;
    }
}

/* Desktop: reduce padding on large screens */
@media (min-width: 768px) {
    .px-3 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
}

/* ==========================================
   Desktop: batasi lebar halaman jadi 80%
   (elemen position:fixed seperti modal/drawer
   tetap relatif viewport, tidak ikut menyempit)
   ========================================== */
@media (min-width: 992px) {
    body {
        max-width: 80vw;
        margin-left: auto;
        margin-right: auto;
    }

    /* Bottom sheet filter ikut menyempit agar align dengan konten */
    .filter-drawer {
        left: 10%;
        right: 10%;
    }

    /* Chat room fullscreen ikut lebar konten */
    .chat-room-shell {
        left: 10% !important;
        right: 10% !important;
    }
}

/* Grid layouts for card lists */
.provider-grid,
.promo-grid,
.booking-grid,
.stat-grid {
    display: grid;
    gap: 1rem;
}

@media (max-width: 575.98px) {
    .provider-grid,
    .promo-grid,
    .booking-grid,
    .stat-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .provider-grid,
    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .booking-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .provider-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .promo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .booking-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop: header sections */
@media (min-width: 768px) {
    .page-header {
        padding: 2rem 2rem 2.5rem;
    }
}

/* Desktop: card hover effect */
@media (min-width: 768px) {
    .card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }
    .card:active {
        transform: scale(1);
    }
}

/* Desktop: dashboard layout */
@media (min-width: 992px) {
    .dashboard-layout {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 1.5rem;
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Desktop: center content */
@media (min-width: 992px) {
    .center-content {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Auth pages — Desktop */
@media (min-width: 768px) {
    .auth-container {
        max-width: 420px;
        padding: 2rem;
    }
    .auth-card {
        border-radius: 20px;
        box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    }
}

/* ==========================================
   SKELETON LOADING COMPONENTS
   ========================================== */
.skeleton {
    background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text.sm { width: 60%; height: 12px; }
.skeleton-text.lg { width: 80%; height: 16px; }
.skeleton-circle { border-radius: 50%; }
.skeleton-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.skeleton-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
}
.skeleton-stat {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
}
@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ==========================================
   FOCUS-VISIBLE (Accessibility)
   ========================================== */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
    border-color: var(--primary);
}

/* ==========================================
   PREFERS-REDUCED-MOTION (Accessibility)
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .skeleton {
        animation: none;
        background: #E2E8F0;
    }
    .promo-hero-track {
        transition: none !important;
    }
}

/* ==========================================
   ONBOARDING WELCOME MODAL
   ========================================== */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.onboarding-overlay.active { opacity: 1; }
.onboarding-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 32px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.onboarding-overlay.active .onboarding-card { transform: scale(1); }
.onboarding-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}
.onboarding-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 8px;
}
.onboarding-desc {
    font-size: 0.9rem;
    color: #64748B;
    margin-bottom: 24px;
    line-height: 1.6;
}
.onboarding-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}
.onboarding-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E2E8F0;
    transition: all 0.3s;
}
.onboarding-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}
.onboarding-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 14px 40px;
    font-weight: 700;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.3);
}
.onboarding-btn:active { transform: scale(0.97); }
.onboarding-skip {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 0.85rem;
    margin-top: 12px;
    cursor: pointer;
}

/* ==========================================
   PULL-TO-REFRESH
   ========================================== */
.ptr-wrapper {
    position: relative;
    overflow: hidden;
}
.ptr-indicator {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: top 0.3s;
    z-index: 10;
}
.ptr-indicator.visible { top: 12px; }
.ptr-indicator.spinning i {
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================
   INLINE FORM VALIDATION
   ========================================== */
.form-control.is-valid-custom {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.form-control.is-invalid-custom {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
.invalid-feedback-custom {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}
.form-control.is-invalid-custom ~ .invalid-feedback-custom {
    display: block;
}

/* ==========================================
   SHARED UTILITY CLASSES
   ========================================== */

/* --- Structural Cards --- */
.card-provider {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.card-provider-body {
    padding: 0 1rem 1rem;
}
.card-provider-body--padded {
    padding: 1.5rem;
    text-align: center;
}
.card-provider--stats {
    padding: 1.25rem;
    text-align: center;
}

/* --- Sticky Header Bar --- */
.sticky-bar {
    background: #fff;
    padding: 0.75rem 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 90;
}

/* --- Section Titles --- */
.section-title {
    padding: 0.875rem 1rem 0.5rem;
    font-weight: 700;
    font-size: 0.8125rem;
    color: #334155;
}

/* --- Typography Utilities --- */
.text-muted-sm {
    font-size: 0.8125rem;
    color: #64748B;
}
.text-meta {
    font-size: 0.6875rem;
    color: #94A3B8;
}
.text-heading-dark {
    font-weight: 700;
    color: #1E293B;
}
.text-secondary-sm {
    font-size: 0.75rem;
    color: #64748B;
}
.text-danger-sm {
    font-size: 0.8125rem;
    color: #DC2626;
}

/* --- Forms --- */
.form-label-provider {
    display: block;
    font-weight: 600;
    font-size: 0.75rem;
    color: #64748B;
    margin-bottom: 0.25rem;
}
.form-group-provider {
    margin-bottom: 0.875rem;
}
.form-input {
    height: 44px;
    border-radius: 10px;
    border: 2px solid #E2E8F0;
    font-size: 0.875rem;
    width: 100%;
    padding: 0 0.75rem;
    transition: border-color 0.2s;
}
.form-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.form-input--password {
    padding-right: 2.5rem;
}

/* --- Buttons --- */
.btn-pro {
    height: 44px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}
.btn-pro--primary {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #fff;
}
.btn-pro--danger {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}
.btn-pro--secondary {
    background: #F1F5F9;
    color: #475569;
}
.btn-pro--outline-blue {
    background: #EFF6FF;
    color: #2563EB;
    border: 1px solid #BFDBFE;
}
.btn-pro--disabled {
    background: #FEE2E2;
    color: #9CA3AF;
    cursor: not-allowed;
}
.btn-pro--premium {
    height: 48px;
    border-radius: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    border: none;
    width: 100%;
}
.btn-pro--whatsapp {
    background: #25D366;
    color: #fff;
    border-radius: 10px;
    height: 44px;
    border: none;
    font-weight: 600;
}

/* --- Badges / Pills --- */
.badge-provider {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.625rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}
.badge-provider--green {
    background: #ECFDF5;
    color: #065F46;
}
.badge-provider--pro {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    border-radius: 6px;
    font-size: 0.625rem;
    padding: 0.15rem 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.badge-provider--premium {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 700;
}

/* --- Icon Containers --- */
.icon-circle-sm {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-circle-md {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}
.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.icon-circle-danger {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #FEF2F2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* --- Layout Utilities --- */
.row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.row-bordered {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid #F1F5F9;
}
.info-box {
    background: #F8FAFC;
    border-radius: 10px;
    padding: 0.75rem;
}
.warning-box {
    background: #FEF2F2;
    border-radius: 12px;
    padding: 1rem;
}
.tab-pills {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.tab-pill {
    flex: 1;
    height: 36px;
    border-radius: 10px;
    border: none;
    font-size: 0.8125rem;
    font-weight: 600;
    background: #F1F5F9;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s;
}
.tab-pill.active {
    background: #0284C7;
    color: #fff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

/* Bottom Sheet Modal (Bootstrap centered variant) */
.modal-sheet .modal-content {
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
}
.modal-sheet .modal-handle {
    width: 40px;
    height: 4px;
    background: #D1D5DB;
    border-radius: 2px;
    margin: 0.75rem auto;
}
