/* Custom CSS variables for beautiful light/dark mode theme */
:root {
    --primary: 221.2 83.2% 53.3%;          /* Sleek Sapphire Blue */
    --primary-hover: 221.2 83.2% 45%;
    --primary-light: 221.2 83.2% 95%;
    --secondary: 262.1 83.3% 57.8%;        /* Indigo/Lavender Accent */
    --background: 210 20% 98%;             /* Very Light Cool Gray */
    --surface: 0 0% 100%;                  /* Plain White */
    --surface-border: 214.3 31.8% 91.4%;
    --text: 222.2 47.4% 11.2%;
    --text-muted: 215.4 16.3% 46.9%;
    --shadow: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 12px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body.dark-theme {
    --background: 222.2 84% 4.9%;          /* Deep Midnight Black */
    --surface: 222.2 84% 7%;               /* Sleek Charcoal Dark */
    --surface-border: 217.2 32.6% 12%;
    --text: 210 40% 98%;
    --text-muted: 215 20.2% 65.1%;
    --primary-light: 221.2 83.2% 10%;
    --shadow: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -2px rgba(0,0,0,0.2);
}

body {
    background-color: hsl(var(--background)) !important;
    color: hsl(var(--text)) !important;
    font-family: var(--font-body) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading) !important;
    font-weight: 700;
}

/* Glassmorphism Styles */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

body.dark-theme .glass-panel {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Base elements */
.card-premium {
    background-color: hsl(var(--surface));
    border: 1px solid hsl(var(--surface-border));
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-premium:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--primary) / 0.3);
}

/* Navigation Header */
.app-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Custom Primary Button */
.btn-premium {
    background-color: hsl(var(--primary)) !important;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2), 0 2px 4px -1px rgba(37, 99, 235, 0.1);
    transition: all 0.2s ease;
}

.btn-premium:hover {
    background-color: hsl(var(--primary-hover)) !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3), 0 4px 6px -2px rgba(37, 99, 235, 0.15);
}

.btn-premium-outline {
    background: transparent !important;
    color: hsl(var(--primary)) !important;
    border: 1px solid hsl(var(--primary)) !important;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-premium-outline:hover {
    background-color: hsl(var(--primary-light)) !important;
    transform: translateY(-1px);
}

/* Location Selector */
.location-pill {
    cursor: pointer;
    background-color: hsl(var(--primary-light));
    color: hsl(var(--primary));
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.location-pill:hover {
    filter: brightness(0.95);
}

/* Custom Sliding Drawers (Cart and Details) */
.sliding-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    max-width: 100%;
    height: 100vh;
    background-color: hsl(var(--surface));
    border-left: 1px solid hsl(var(--surface-border));
    box-shadow: -10px 0 25px -5px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

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

/* Backdrop */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

/* Inputs and Forms Styling */
.form-input-premium {
    background-color: hsl(var(--surface)) !important;
    color: hsl(var(--text)) !important;
    border: 1px solid hsl(var(--surface-border)) !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input-premium:focus {
    outline: none !important;
    border-color: hsl(var(--primary)) !important;
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15) !important;
}

/* Categories Circle Item */
.category-circle-item {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.category-circle-item .img-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: hsl(var(--primary-light));
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.2s ease;
    padding: 10px;
}

.category-circle-item:hover .img-container {
    transform: scale(1.08);
    border-color: hsl(var(--primary));
    box-shadow: 0 10px 15px -3px hsl(var(--primary) / 0.15);
}

.category-circle-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-circle-item span {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: hsl(var(--text));
}

/* Micro-animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: hsl(var(--surface-border));
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--text-muted) / 0.5);
}

/* Checkout Step Timeline */
.step-item {
    position: relative;
    flex: 1;
    text-align: center;
}

.step-item::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: hsl(var(--surface-border));
    z-index: 1;
}

.step-item:last-child::after {
    display: none;
}

.step-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: hsl(var(--surface-border));
    color: hsl(var(--text-muted));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: all 0.2s ease;
}

.step-item.active .step-indicator {
    background-color: hsl(var(--primary));
    color: #fff;
}

.step-item.completed .step-indicator {
    background-color: hsl(var(--secondary));
    color: #fff;
}

.step-item.completed::after {
    background-color: hsl(var(--secondary));
}

/* Wallet Card */
.wallet-card {
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px -5px hsl(var(--primary) / 0.4);
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   Variation Image Card Selector
   ============================================================ */
:root {
    --surface-2: hsl(210, 20%, 96%);
    --color-primary: hsl(221.2, 83.2%, 53.3%);
}

body.dark-theme {
    --surface-2: hsl(222, 47%, 10%);
}

.variation-img-card {
    cursor: pointer;
    flex-shrink: 0;
    width: 88px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: hsl(var(--surface));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    scroll-snap-align: start;
}

.variation-img-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-color: hsl(var(--primary) / 0.4) !important;
}

.variation-img-card.selected,
.variation-img-card:focus-visible {
    border-color: hsl(var(--primary)) !important;
    box-shadow: 0 4px 16px hsl(var(--primary) / 0.25) !important;
    outline: none;
}

/* Variation Description Panel */
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.variation-desc-panel {
    animation: fadeSlideIn 0.25s ease forwards;
    border-left: 3px solid hsl(var(--primary));
    background: var(--surface-2) !important;
}

/* ============================================================
   PREMIUM PROFESSIONAL STYLE ENHANCEMENTS
   ============================================================ */

/* 1. Header Navigation Bar Glassmorphism */
.app-nav {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.8rem 0;
}

body.dark-theme .app-nav {
    background: rgba(15, 23, 42, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}
.navbar-brand:hover img {
    transform: scale(1.05);
}

/* 2. Sleek Interactive Nav Links */
.nav-link {
    position: relative;
    color: #334155 !important;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

body.dark-theme .nav-link {
    color: #cbd5e1 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
    border-radius: 99px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

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

/* 3. Location Selector Gradient Pill */
.location-pill {
    background: linear-gradient(135deg, hsl(var(--primary) / 0.08) 0%, hsl(var(--secondary) / 0.08) 100%) !important;
    border: 1px solid hsl(var(--primary) / 0.15) !important;
    color: hsl(var(--primary)) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
    transition: all 0.3s ease !important;
}

.location-pill:hover {
    transform: translateY(-1px);
    border-color: hsl(var(--primary) / 0.4) !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12) !important;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.12) 0%, hsl(var(--secondary) / 0.12) 100%) !important;
}

/* 4. Elegant Expanding Search Bar */
.app-nav input[type="text"] {
    border: 1px solid hsl(var(--surface-border)) !important;
    background: hsl(var(--background) / 0.6) !important;
    color: hsl(var(--text)) !important;
    font-size: 0.88rem;
    font-weight: 500;
    width: 200px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.app-nav input[type="text"]:focus {
    border-color: hsl(var(--primary)) !important;
    box-shadow: 0 0 0 4px hsl(var(--primary) / 0.12) !important;
    background: hsl(var(--surface)) !important;
    width: 270px !important;
}

/* 5. Buttons Styling Overrides */
.app-nav .btn-premium {
    border-radius: 50px !important;
    padding: 0.5rem 1.5rem !important;
    font-size: 0.88rem;
}

.app-nav .btn-premium-outline {
    border-radius: 50px !important;
    padding: 0.5rem 1.5rem !important;
    font-size: 0.88rem;
    border-color: hsl(var(--primary) / 0.4) !important;
}

/* 6. Premium Hero Section with Gradient Typography */
.hero-title {
    background: linear-gradient(135deg, hsl(var(--text)) 25%, hsl(var(--primary)) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3.25rem !important;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.hero-image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.12) 0%, hsl(var(--secondary) / 0.12) 100%);
    border-radius: 24px;
    z-index: -1;
    filter: blur(16px);
    transition: all 0.4s ease;
}

.hero-image-wrapper:hover::before {
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    filter: blur(22px);
}

.hero-img {
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12) !important;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
    max-height: 380px;
    width: 100%;
    object-fit: cover;
}

.hero-img:hover {
    transform: scale(1.015) translateY(-5px);
}

/* 7. Glassmorphic Category Cards */
.category-card {
    cursor: pointer;
    background: hsl(var(--surface));
    border: 1px solid hsl(var(--surface-border));
    border-radius: 20px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02), 0 2px 4px -1px rgba(0,0,0,0.01);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: hsl(var(--primary) / 0.25);
    box-shadow: 0 20px 30px -5px rgba(37,99,235,0.08), 0 10px 15px -5px rgba(37,99,235,0.03);
}

.category-card .img-box {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.08) 0%, hsl(var(--secondary) / 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    transition: all 0.35s ease;
}

.category-card:hover .img-box {
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
    transform: rotate(5deg) scale(1.08);
}

.category-card:hover .img-box img {
    filter: brightness(0) invert(1);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.35s ease;
}

.category-card span {
    font-size: 0.88rem;
    font-weight: 700;
    color: hsl(var(--text));
    letter-spacing: -0.010em;
    line-height: 1.25;
    transition: color 0.2s ease;
}

.category-card:hover span {
    color: hsl(var(--primary));
}

/* 8. Premium Service Cards */
.service-card-premium {
    background: hsl(var(--surface));
    border: 1px solid hsl(var(--surface-border));
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 10px -2px rgba(0,0,0,0.02), 0 2px 6px -2px rgba(0,0,0,0.01);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card-premium:hover {
    transform: translateY(-8px);
    border-color: hsl(var(--primary) / 0.25);
    box-shadow: 0 30px 40px -15px rgba(0,0,0,0.08), 0 15px 15px -10px rgba(0,0,0,0.03);
}

.service-card-premium .img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f1f5f9;
}

.service-card-premium .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-premium:hover .img-wrapper img {
    transform: scale(1.08);
}

.service-card-premium .card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-premium .card-content h5 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: hsl(var(--text));
}

.service-card-premium .price-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: hsl(var(--primary));
    font-family: var(--font-heading);
}

.service-card-premium .btn-view-detail {
    background: hsl(var(--primary-light)) !important;
    color: hsl(var(--primary)) !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    padding: 0.5rem 1.25rem !important;
    border: 1px solid transparent !important;
    transition: all 0.3s ease !important;
}

.service-card-premium:hover .btn-view-detail {
    background: hsl(var(--primary)) !important;
    color: #fff !important;
    box-shadow: 0 10px 15px -3px hsl(var(--primary) / 0.25);
}

/* 9. Comprehensive Mobile Responsiveness Media Queries */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    .app-nav input[type="text"]:focus {
        width: 190px !important;
    }
    .sliding-drawer {
        width: 100vw;
        right: -100vw;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.25rem !important;
        text-align: center;
    }
    .hero-desc {
        text-align: center;
    }
    .hero-btns {
        justify-content: center;
    }
    .hero-image-wrapper {
        margin-top: 1.5rem;
        width: 100%;
    }
    .hero-img {
        max-height: 280px;
        width: 100%;
    }
    
    .app-nav {
        padding: 0.6rem 0;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.85rem !important;
    }
    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem !important;
    }
    .hero-btns a, 
    .hero-btns button {
        width: 100%;
        text-align: center;
    }
    
    .service-card-premium .card-content {
        padding: 1.25rem;
    }
    
    .category-card {
        padding: 1.25rem 0.75rem;
    }
    .category-card .img-box {
        width: 58px;
        height: 58px;
        padding: 11px;
    }
    .category-card span {
        font-size: 0.8rem;
    }
}

/* ============================================================
   URBAN COMPANY HERO SEARCH COMBO STYLES
   ============================================================ */
.uc-hero-search-combo {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.uc-hero-search-combo:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.25) !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
}

@media (max-width: 575.98px) {
    .uc-hero-search-combo {
        flex-direction: column !important;
        align-items: stretch !important;
        border-radius: 20px !important;
        gap: 0.5rem;
        padding: 0.75rem !important;
    }
    .uc-hero-search-combo > div {
        display: none !important; /* Hide vertical line divider on mobile */
    }
    .uc-hero-location-btn {
        max-width: 100% !important;
        width: 100%;
        justify-content: center;
        background: #f1f5f9;
        border-radius: 12px;
        padding: 0.5rem !important;
    }
    .uc-hero-search-input {
        background: #f1f5f9 !important;
        border-radius: 12px;
        padding: 0.6rem 1rem !important;
        text-align: center;
    }
}

/* ============================================================
   SERVICE DETAILS TABS & PREMIUM REVIEWS STYLING
   ============================================================ */
.premium-tabs-nav {
    display: flex;
    gap: 1.5rem;
    border-bottom: 2px solid hsl(var(--surface-border));
    margin-bottom: 1.5rem;
}

.premium-tab-btn {
    border: none;
    background: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 0.5rem;
    color: hsl(var(--text-muted));
    position: relative;
    transition: color 0.2s ease;
}

.premium-tab-btn:hover {
    color: hsl(var(--text));
}

.premium-tab-btn.active {
    color: hsl(var(--primary)) !important;
}

.premium-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: hsl(var(--primary));
    border-radius: 99px;
}

/* Rating Summary Card */
.rating-summary-card {
    background: linear-gradient(135deg, hsl(var(--primary-light)) 0%, hsl(var(--primary-light) / 0.4) 100%);
    border: 1px solid hsl(var(--primary) / 0.1);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 575.98px) {
    .rating-summary-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 1rem;
    }
}

.rating-progress-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: hsl(var(--text-muted));
}

.rating-progress-bar-bg {
    flex-grow: 1;
    height: 6px;
    background: hsl(var(--surface-border));
    border-radius: 99px;
    overflow: hidden;
}

.rating-progress-bar-fill {
    height: 100%;
    background: #eab308; /* Yellow rating color */
    border-radius: 99px;
    transition: width 0.4s ease;
}

/* Individual Review Card */
.review-card-premium {
    border-bottom: 1px solid hsl(var(--surface-border));
    padding: 1.25rem 0;
}

.review-card-premium:last-child {
    border-bottom: none;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: hsl(var(--primary-light));
    color: hsl(var(--primary));
    font-weight: 700;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.provider-reply-box {
    border-left: 3px solid hsl(var(--secondary));
    background: hsl(var(--background) / 0.6);
    padding: 1rem 1.25rem;
    border-radius: 0 12px 12px 0;
    margin-top: 0.75rem;
}/* Premium Details Page & Card Actions */
.service-detail-cover-img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.06);
}

.service-detail-cover-img:hover {
    transform: scale(1.02);
}

.service-booking-sidebar-card {
    background: hsl(var(--surface));
    border: 1px solid hsl(var(--surface-border));
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
}

.card-add-to-cart-btn {
    border: 1px solid hsl(var(--primary) / 0.15) !important;
    background: hsl(var(--primary-light) / 0.4) !important;
    color: hsl(var(--primary)) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card-add-to-cart-btn:hover {
    background: hsl(var(--primary)) !important;
    color: #fff !important;
    border-color: hsl(var(--primary)) !important;
    transform: scale(1.08);
    box-shadow: 0 6px 12px -3px hsl(var(--primary) / 0.3);
}

/* Sticky sidebar margin shift under lg breakpoint */
@media (max-width: 991.98px) {
    .position-sticky {
        position: relative !important;
        top: 0 !important;
        margin-top: 2rem;
    }
}

/* Premium Shopping Cart Page Styling */
.cart-item-row-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-item-row-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.06) !important;
    border-color: hsl(var(--primary) / 0.15) !important;
}

.cart-summary-sidebar-card {
    background: hsl(var(--surface));
    border: 1px solid hsl(var(--surface-border));
    border-radius: 24px;
    padding: 2.25rem;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
}

/* ============================================================
   MOBILE RESPONSIVE SIDE DRAWER NAVIGATION
   ============================================================ */
@media (max-width: 991.98px) {
    /* Elevate parent header stacking context above z-index 1500 backdrop */
    .app-nav {
        z-index: 2010 !important;
    }

    /* Set navbar collapse container as fixed side drawer sliding in from the left */
    .app-nav .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        right: auto !important;
        width: 280px !important;
        height: 100vh !important;
        background-color: hsl(var(--surface)) !important;
        border-right: 1px solid hsl(var(--surface-border)) !important;
        border-left: none !important;
        z-index: 2005 !important;
        padding: 1.75rem 1.25rem !important;
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.12) !important;
        display: flex !important; /* Keep active display flex to allow transform animations */
        flex-direction: column !important;
        align-items: stretch !important;
        transform: translateX(-100%) !important;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        overflow-y: auto !important; /* Enable scrolling for shorter mobile viewports */
    }

    /* Force height and bypass Bootstrap height animation conflicts during collapsing state */
    .app-nav .navbar-collapse.collapsing {
        height: 100vh !important;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    /* Show state translates drawer back into the viewport from the left */
    .app-nav .navbar-collapse.show {
        transform: translateX(0) !important;
    }

    /* Stack links vertically inside drawer */
    .app-nav .navbar-nav {
        flex-direction: column !important;
        gap: 0.5rem !important;
        margin-bottom: 2rem !important;
    }

    .app-nav .navbar-nav .nav-link {
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: hsl(var(--text)) !important;
        padding: 0.75rem 1rem !important;
        border-radius: 12px;
        transition: all 0.25s ease !important;
        display: flex !important;
        align-items: center;
        gap: 0.75rem;
    }

    .app-nav .navbar-nav .nav-link span.material-icons {
        font-size: 1.35rem !important;
        color: hsl(var(--text-muted));
        transition: color 0.25s ease;
    }

    .app-nav .navbar-nav .nav-link:hover,
    .app-nav .navbar-nav .nav-link.active {
        background-color: hsl(var(--primary-light)) !important;
        color: hsl(var(--primary)) !important;
        padding-left: 1.25rem !important; /* Slide link slightly on hover/active for responsive feed */
    }

    .app-nav .navbar-nav .nav-link:hover span.material-icons,
    .app-nav .navbar-nav .nav-link.active span.material-icons {
        color: hsl(var(--primary)) !important;
    }

    /* Disable underline hover effect on mobile */
    .app-nav .nav-link::after {
        display: none !important;
    }

    /* Format user profile / buttons section in side drawer */
    .app-nav .navbar-collapse .ms-auto {
        margin-left: 0 !important;
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        gap: 1rem !important;
        margin-top: 2rem !important; /* Proper margin to prevent flex collapsing bugs */
        border-top: 1px solid hsl(var(--surface-border));
        padding-top: 1.5rem;
    }

    /* Modern auth buttons sizing inside drawer */
    .app-nav .navbar-collapse .ms-auto a,
    .app-nav .navbar-collapse .ms-auto button {
        width: 100% !important;
        text-align: center;
        display: block !important; /* Overrides d-none on small viewports for auth buttons */
    }

    /* Expand search bar fully inside mobile drawer */
    .app-nav .navbar-collapse input[type="text"] {
        width: 100% !important;
        max-width: 100% !important;
        background: hsl(var(--background)) !important;
        border: 1px solid hsl(var(--surface-border)) !important;
        padding: 0.7rem 1.2rem !important;
        border-radius: 50px !important;
    }

    .app-nav .navbar-collapse input[type="text"]:focus {
        width: 100% !important;
        background: hsl(var(--surface)) !important;
        border-color: hsl(var(--primary)) !important;
    }

    /* Custom close button styling */
    .app-nav .btn-close-drawer {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        background-color: hsl(var(--background-alt, var(--background))) !important;
        color: hsl(var(--text)) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.2s ease;
        padding: 0 !important;
        cursor: pointer;
    }

    .app-nav .btn-close-drawer:hover {
        background-color: hsl(var(--primary-light)) !important;
        color: hsl(var(--primary)) !important;
    }
}

/* ============================================================
   PREMIUM TICKET-STYLE COUPON CARDS
   ============================================================ */
.coupon-card-premium {
    background: hsl(var(--surface));
    border: 1px dashed hsl(var(--primary) / 0.4);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.coupon-card-premium::before,
.coupon-card-premium::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background-color: hsl(var(--background));
    border-radius: 50%;
    z-index: 5;
    transform: translateY(-50%);
}

.coupon-card-premium::before {
    left: -10px;
    border-right: 1px dashed hsl(var(--primary) / 0.4);
}

.coupon-card-premium::after {
    right: -10px;
    border-left: 1px dashed hsl(var(--primary) / 0.4);
}

.coupon-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--primary));
}

.coupon-card-premium.expired {
    border-color: hsl(var(--surface-border));
    opacity: 0.7;
}

.coupon-card-premium.expired::before {
    border-right-color: hsl(var(--surface-border));
}

.coupon-card-premium.expired::after {
    border-left-color: hsl(var(--surface-border));
}

.coupon-card-premium.expired:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.coupon-code-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: monospace;
    font-size: 1.15rem;
    font-weight: 700;
    color: hsl(var(--primary));
    background: hsl(var(--primary-light));
    border: 1px dashed hsl(var(--primary) / 0.6);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: all;
    width: 100%;
}

.coupon-code-badge:hover {
    background: hsl(var(--primary));
    color: #fff !important;
    border-style: solid;
}

.coupon-card-premium.expired .coupon-code-badge {
    color: hsl(var(--text-muted));
    background: hsl(var(--background));
    border-color: hsl(var(--surface-border));
    cursor: not-allowed;
}

.coupon-card-premium.expired .coupon-code-badge:hover {
    background: hsl(var(--background));
    color: hsl(var(--text-muted)) !important;
    border-style: dashed;
}

/* ============================================================
   PREMIUM GLOWING BRAND LOGO PRELOADER
   ============================================================ */
.preloader-overlay {
    background-color: hsl(var(--background)) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 200px;
    height: 200px;
}

/* Outer rotating gradient sweep */
.premium-loader-spinner {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top: 3px solid hsl(var(--primary));
    border-right: 3px solid hsl(var(--secondary));
    animation: loader-spin 1.2s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
    filter: drop-shadow(0 0 8px hsl(var(--primary) / 0.4));
}

/* Inner breathing brand logo container */
.premium-loader-logo-container {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: hsl(var(--surface));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: var(--shadow-lg), inset 0 2px 4px rgba(0,0,0,0.06);
    z-index: 10;
}

.premium-loader-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: loader-pulse 2s ease-in-out infinite;
}

/* Premium text animation below the logo */
.premium-loader-text {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: hsl(var(--text-muted)) !important;
    width: max-content;
    animation: loader-fade-text 1.5s ease-in-out infinite alternate;
}

@keyframes loader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loader-pulse {
    0%, 100% { transform: scale(0.95); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 4px hsl(var(--primary) / 0.2)); }
}

@keyframes loader-fade-text {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ============================================================
   WALLET, CHAT, ADDRESS BOOK & LANGUAGE SWITCHER STYLES
   ============================================================ */

/* Chat / Inbox Component Layouts */
.chat-container-premium {
    height: 600px;
    display: flex;
    flex-direction: column;
    background: hsl(var(--surface));
    border-radius: 20px;
    border: 1px solid hsl(var(--surface-border));
    overflow: hidden;
    box-shadow: var(--shadow);
}
.chat-header-premium {
    padding: 1.25rem 1.5rem;
    background: hsl(var(--surface));
    border-bottom: 1px solid hsl(var(--surface-border));
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-messages-premium {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: hsl(var(--background-alt, var(--background)));
}
.chat-bubble-outgoing {
    align-self: flex-end;
    max-width: 75%;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
    color: #fff !important;
    padding: 0.85rem 1.2rem;
    border-radius: 18px 18px 2px 18px;
    box-shadow: 0 4px 10px -2px hsl(var(--primary) / 0.2);
}
.chat-bubble-incoming {
    align-self: flex-start;
    max-width: 75%;
    background: hsl(var(--surface));
    color: hsl(var(--text)) !important;
    border: 1px solid hsl(var(--surface-border));
    padding: 0.85rem 1.2rem;
    border-radius: 18px 18px 18px 2px;
    box-shadow: 0 4px 10px -2px rgba(0,0,0,0.02);
}
.chat-input-premium-container {
    padding: 1rem 1.5rem;
    background: hsl(var(--surface));
    border-top: 1px solid hsl(var(--surface-border));
}

/* Wallet History Transactions List */
.wallet-trx-item {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid hsl(var(--surface-border));
    background: hsl(var(--surface));
    transition: all 0.2s ease;
}
.wallet-trx-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.wallet-trx-credit {
    color: #10b981 !important;
    font-weight: 700;
}
.wallet-trx-debit {
    color: #ef4444 !important;
    font-weight: 700;
}

/* Address Cards Grid styling */
.address-card-premium {
    position: relative;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.address-card-premium:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.address-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--background));
    color: hsl(var(--text-muted));
    border: 1px solid hsl(var(--surface-border));
    transition: all 0.2s ease;
    cursor: pointer;
}
.address-action-btn:hover {
    background: hsl(var(--primary-light));
    color: hsl(var(--primary));
    border-color: hsl(var(--primary) / 0.3);
}

/* Language Selection Pill */
.language-selector-pill {
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    background: hsl(var(--background-alt, var(--background)));
    border: 1px solid hsl(var(--surface-border));
    font-size: 0.85rem;
    font-weight: 600;
    color: hsl(var(--text));
    cursor: pointer;
    transition: all 0.2s ease;
}
.language-selector-pill:hover {
    background: hsl(var(--primary-light));
    color: hsl(var(--primary));
}


