/* ==================== GLOBAL STYLES & RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg-primary: #0a0b18;
    --bg-secondary: #0e1124;
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --accent-purple: #8b5cf6;
    --accent-emerald: #10b981;
    --accent-cyan: #00c49f;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --glass-bg: rgba(14, 16, 38, 0.85);
    --glass-border: rgba(99, 102, 241, 0.2);
    --glass-shadow: rgba(0, 0, 0, 0.5);
    --card-bg: #121834;
    --card-border: rgba(99, 102, 241, 0.18);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: #070814;
    color: var(--text-main);
    overflow-x: hidden;
    overflow-y: auto;
    font-size: 14px;
}

/* ==================== APP CONTAINER & SHELL ==================== */
.app-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    max-width: 480px; /* Mobile width constraint on desktop */
    margin: 0 auto;
    background: radial-gradient(130% 65% at 50% -10%, #220f55 0%, #131238 35%, #0d0f26 70%, #090a18 100%);
    background-color: #090a18;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
    position: relative;
}

/* ==================== HEADER & TOP BAR ==================== */
.app-header {
    background: rgba(14, 16, 38, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    padding: 16px 16px 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-circle {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 10px;
    background: #ffffff;
    padding: 2px;
    box-shadow: 0 0 12px 2px rgba(168, 85, 247, 0.45), 0 0 4px rgba(255, 255, 255, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 16px 4px rgba(168, 85, 247, 0.65), 0 0 6px rgba(255, 255, 255, 0.5);
}

.logo-text h1 {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.logo-text p {
    font-size: 0.75rem;
    color: #a5b4fc;
    font-weight: 500;
}

.region-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.2);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.82rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.region-selector:hover {
    background: rgba(99, 102, 241, 0.32);
    border-color: rgba(165, 180, 252, 0.5);
}

.region-selector i {
    width: 14px;
    height: 14px;
    color: #fb923c; /* Orange GPS marker */
}

.region-selector span {
    color: #ffffff;
    font-weight: 700;
}

.region-selector select {
    background: transparent;
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
}

.region-selector select option {
    background-color: #121834;
    color: #ffffff;
}

/* ==================== CATEGORIES SCROLL ==================== */
.category-scroll-container {
    margin: 0 -16px 12px -16px;
    overflow: hidden;
}

.category-scroll {
    display: flex;
    gap: 8px;
    padding: 4px 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

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

.category-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(67, 56, 202, 0.2);
    border: 1px solid rgba(129, 140, 248, 0.25);
    padding: 8px 14px;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.category-pill i {
    width: 14px;
    height: 14px;
}

.category-pill:hover {
    background: rgba(99, 102, 241, 0.35);
    border-color: rgba(165, 180, 252, 0.45);
    color: #ffffff;
    transform: translateY(-1px);
}

.category-pill.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.55);
    transform: translateY(-1px);
}

/* ==================== SEARCH BAR ROW ==================== */
.search-bar-row {
    display: flex;
    gap: 8px;
}

.search-input-wrapper {
    flex-grow: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #818cf8;
}

.search-input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 12px 16px 12px 42px;
    border-radius: 9999px;
    outline: none;
    transition: var(--transition-smooth);
}

.search-input-wrapper input::placeholder {
    color: #7983a5;
}

.search-input-wrapper input:focus {
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.layout-toggle {
    width: 44px;
    height: 44px;
    background: rgba(79, 70, 229, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.layout-toggle:hover {
    background: rgba(99, 102, 241, 0.35);
    color: #ffffff;
}

.layout-toggle i {
    width: 18px;
    height: 18px;
}

/* ==================== MAIN CONTENT ==================== */
.app-main {
    flex-grow: 1;
    padding: 16px 16px 85px 16px; /* Padding bottom to prevent nav overlap */
    display: flex;
    flex-direction: column;
}

.view-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.view-section.active {
    display: block;
}

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

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title-row h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

.gps-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.14);
    color: #10b981;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    border: 1px solid rgba(16, 185, 129, 0.35);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.gps-badge:hover {
    background: rgba(16, 185, 129, 0.25);
}

.gps-badge i {
    width: 11px;
    height: 11px;
}

/* ==================== BUSINESS FEED (CARDS) ==================== */
.business-feed {
    display: grid;
    gap: 16px;
    width: 100%;
}

/* GRID LAYOUT (Two columns) */
.business-feed.grid-layout {
    grid-template-columns: repeat(2, 1fr);
}

/* LIST LAYOUT (One column) */
.business-feed.list-layout {
    grid-template-columns: 1fr;
}

/* Beautiful Business Card */
.business-card {
    background: #121834;
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transition: var(--transition-smooth);
    position: relative;
}

.business-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.card-banner {
    width: 100%;
    height: 110px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.business-feed.list-layout .card-banner {
    height: 150px;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #121834 0%, rgba(18, 24, 52, 0.2) 60%, rgba(0, 0, 0, 0.4) 100%);
}

.category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.distance-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #4f46e5;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.45);
}

.card-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 2px solid #ffffff;
    position: absolute;
    bottom: -15px;
    left: 12px;
    background-color: #ffffff;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.card-body {
    padding: 24px 12px 12px 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #121834;
}

.card-body h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-phone {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-address {
    font-size: 0.75rem;
    color: #8591a5;
    line-height: 1.3;
    margin-bottom: 12px;
    height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Screenshot Action Buttons */
.card-actions-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: auto;
}

.btn-action-small {
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-action-small.btn-wa {
    background-color: #00c49f;
    box-shadow: 0 2px 8px rgba(0, 196, 159, 0.35);
}

.btn-action-small.btn-wa:hover {
    background-color: #00b08e;
    transform: scale(1.05);
}

.btn-action-small.btn-ir {
    background-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.btn-action-small.btn-ir:hover {
    background-color: #1d4ed8;
    transform: scale(1.05);
}

.btn-action-big {
    height: 32px;
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.45);
    transition: var(--transition-smooth);
}

.btn-action-big:hover {
    background: linear-gradient(135deg, #1a75ff 0%, #0047b3 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.6);
}

/* ==================== BOTTOM NAVIGATION BAR ==================== */
.app-nav {
    display: flex;
    justify-content: space-around;
    background: rgba(9, 11, 23, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: #8b95a5;
    cursor: pointer;
    width: 70px;
    transition: var(--transition-smooth);
}

.nav-item i {
    width: 20px;
    height: 20px;
}

.nav-item span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #8b95a5;
}

.nav-item.active {
    color: #ffffff;
}

.nav-item.active span {
    color: #ffffff;
}

.nav-item:hover {
    color: #ffffff;
}

.nav-item:hover span {
    color: #ffffff;
}

.nav-cart-badge {
    position: relative;
}

.nav-cart-badge .badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background-color: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #090b17;
}

/* ==================== DRAWERS (SLIDE UP BOTTOM DRAWERS) ==================== */
.bottom-drawer {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #11152e;
    border-radius: 24px 24px 0 0;
    border-top: 1px solid rgba(139, 92, 246, 0.25);
    z-index: 1000;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.bottom-drawer.show {
    bottom: 0;
}

.drawer-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    margin: 8px auto 0 auto;
    flex-shrink: 0;
}

.drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.drawer-header h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

.close-drawer {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-drawer:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.drawer-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Drawer Backdrop */
.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 8, 20, 0.7);
    backdrop-filter: blur(6px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

/* ==================== DRAWER CUSTOM CONTENTS ==================== */
.drawer-business-info h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
}

.drawer-business-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.drawer-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
}

.drawer-actions .action-btn {
    flex-grow: 1;
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.drawer-actions .action-btn i {
    width: 14px;
    height: 14px;
}

.drawer-actions .wa-btn {
    background-color: #00c49f;
}

.drawer-actions .map-btn {
    background-color: #2563eb;
}

/* Product list items */
.menu-products {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-item {
    display: flex;
    gap: 12px;
    background: #151b3a;
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 10px;
    border-radius: 14px;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.product-item:hover {
    background: #1a224a;
    border-color: rgba(99, 102, 241, 0.4);
}

.prod-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    background-color: #121834;
}

.prod-details {
    flex-grow: 1;
}

.prod-details h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.prod-details p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.2;
    height: 28px;
    overflow: hidden;
    margin-bottom: 4px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prod-price {
    font-weight: 700;
    color: #38bdf8;
    font-size: 0.85rem;
}

.btn-add-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #4f46e5;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ==================== BUTTONS & FORMS ==================== */
.btn {
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-premium {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--primary-color) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.form-control, .form-select {
    width: 100%;
    background: #181e3d;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    color: #ffffff;
    padding: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    background: #1c2348;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a5b4fc;
    margin-bottom: 6px;
}

/* ==================== QTY SELECTORS & CART ITEMS ==================== */
.qty-counter {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #181e3d;
    border-radius: 30px;
    padding: 4px 10px;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.qty-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.qty-btn i {
    width: 14px;
    height: 14px;
}

.qty-value {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
}

/* ==================== ACTIVE TRACKING & MAPS ==================== */
.tracking-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.back-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tracking-status-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.status-badge {
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 6px;
}

.status-badge.badge-success {
    background-color: var(--accent-emerald);
}

.map-container-wrapper {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    flex-grow: 1;
    position: relative;
    background-color: #1e293b;
}

/* ==================== MOTORIZADOS SWITCH / TOGGLES ==================== */
.driver-status-bar {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255,255,255,0.15);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent-emerald);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Job requests feed */
.jobs-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 14px;
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
}

.job-card-body p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.job-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.spinner {
    border: 4px solid rgba(255,255,255,0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin: 30px auto 10px auto;
}

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

.loading-state, .empty-state {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
}

@keyframes drawerGlowLoading {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==================== PREMIUM CATALOG DRAWER HEADER RESPONSIVE STYLE ==================== */
#businessMenuDrawer .drawer-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 20px 12px 20px;
}

#businessMenuDrawer .drawer-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

#businessMenuDrawer .drawer-business-info {
    flex-grow: 1;
    padding-right: 12px;
}

#businessMenuDrawer .drawer-business-info h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
}

#businessMenuDrawer .drawer-business-info p {
    margin: 4px 0 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
}

#businessMenuDrawer .close-drawer {
    flex-shrink: 0;
}

#businessMenuDrawer .drawer-actions {
    margin-top: 0;
    display: flex;
    gap: 8px;
    width: 100%;
}

#businessMenuDrawer .drawer-actions .action-btn {
    flex: 1 1 0px; /* Force each action button to take up exactly equal space (1/3 of row) */
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 10px 8px;
    font-size: 0.78rem;
}

/* ==================== PREMIUM CATALOG ITEM QTY CONTROLS ==================== */
.qty-counter-pill {
    display: flex;
    align-items: center;
    background: #181e3d;
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 20px;
    padding: 3px;
    gap: 8px;
    flex-shrink: 0;
}

.qty-pill-btn {
    background: rgba(99, 102, 241, 0.25);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.qty-pill-btn:hover {
    background: rgba(99, 102, 241, 0.45);
}

.qty-pill-btn:active {
    transform: scale(0.9);
}

.qty-pill-value {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 14px;
    text-align: center;
}

/* ==================== ADDITIONAL UTILITIES & STYLES ==================== */
.d-none {
    display: none !important;
}

/* Purchase mode selector tabs */
.purchase-mode-selector {
    display: flex;
    background: #151b3a;
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 16px;
    gap: 4px;
}
.purchase-mode-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.purchase-mode-tab.active {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--primary-color) 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

/* Console items details list style */
#consoleItemsList {
    background: #151b3a;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    margin: 12px 0;
    padding: 12px;
}
.console-item-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}
.console-item-row:last-child {
    border-bottom: none;
}
.console-item-qty {
    color: #38bdf8;
    font-weight: 700;
    margin-right: 8px;
}
.console-item-name {
    flex-grow: 1;
    color: var(--text-main);
}
.console-item-price {
    color: var(--text-muted);
    font-weight: 600;
}

/* Map navigation button group */
.map-nav-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 12px 0;
}
.btn-map-nav {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-smooth);
}
.btn-map-nav:hover {
    background: rgba(99, 102, 241, 0.28);
    border-color: var(--primary-color);
    color: #ffffff;
}
.btn-map-nav.btn-customer-map {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}
.btn-map-nav.btn-customer-map:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: var(--accent-emerald);
    color: #ffffff;
}

/* Active orders tracking list dropdown */
#activeOrdersSelectorContainer select {
    width: 100%;
    background: #181e3d;
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

/* ==================== LOCATION FILTER MODAL (SCREENSHOT ACCURATE) ==================== */
.location-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 8, 20, 0.7);
    backdrop-filter: blur(6px);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.location-modal-card {
    background: #11152e;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    max-height: 92vh;
    overflow-y: auto;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    position: relative;
    animation: locationModalPop 0.22s ease-out;
}

@keyframes locationModalPop {
    from { opacity: 0; transform: scale(0.96) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.location-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.location-header-pin {
    font-size: 1.35rem;
}

.location-modal-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.2px;
}

.location-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}

.location-close-btn:hover {
    color: #ffffff;
}

.location-modal-body {
    padding: 18px 20px 22px;
}

/* GPS Card with Blue Border */
.location-gps-card {
    border: 1.5px solid rgba(59, 130, 246, 0.45);
    background: rgba(30, 58, 138, 0.25);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
}

.location-gps-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.location-gps-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.98rem;
    color: #93c5fd;
}

.location-gps-icon {
    width: 18px;
    height: 18px;
    color: #38bdf8;
}

.btn-use-gps {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
    transition: background 0.2s, transform 0.1s;
}

.btn-use-gps:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Inner Light Box */
.location-inner-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
}

.radius-badge {
    background: #10b981;
    color: #ffffff;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 9999px;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

/* Custom Gradient Slider */
.radius-slider-container {
    position: relative;
    margin: 14px 0 6px;
}

#locationRadiusInput {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
    outline: none;
    cursor: pointer;
}

#locationRadiusInput::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #10b981;
    border: 3px solid #ffffff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8), 0 2px 5px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.1s;
}

#locationRadiusInput::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

#locationRadiusInput::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #10b981;
    border: 3px solid #ffffff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
    cursor: pointer;
}

/* Ticks Row */
.radius-ticks-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-bottom: 14px;
    padding: 0 2px;
}

.radius-ticks-row .active-default {
    color: #10b981;
    font-weight: 700;
}

/* Quick Pills */
.quick-pills-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.quick-pills-label {
    color: #94a3b8;
    font-size: 0.78rem;
    margin-right: 2px;
}

.quick-pills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quick-pill {
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.4);
    color: #38bdf8;
    border-radius: 9999px;
    padding: 3px 10px;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-pill:hover {
    background: rgba(14, 165, 233, 0.25);
    color: #7dd3fc;
}

.quick-pill.active {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 0 8px rgba(2, 132, 199, 0.4);
}

/* Divider */
.location-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0 16px;
    color: #64748b;
}

.location-divider::before,
.location-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.location-divider-text {
    padding: 0 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

/* Department & Municipality Selects */
.location-field-group {
    margin-bottom: 14px;
}

.location-field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.location-field-select {
    width: 100%;
    background: #181e3d;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    padding: 11px 14px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.location-field-select:focus {
    border-color: #3b82f6;
}

.location-field-select option {
    background: #11152e;
    color: #ffffff;
}

/* Actions Group */
.location-actions-group {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-apply-location {
    width: 100%;
    background: #16a34a;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 13px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4);
    transition: background 0.2s, transform 0.1s;
}

.btn-apply-location:hover {
    background: #15803d;
    transform: translateY(-1px);
}

.btn-all-country {
    width: 100%;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
    border-radius: 9999px;
    padding: 11px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-all-country:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

/* ==================== ELC SPLASH SCREEN (Radial Bloom Animation) ==================== */
#elcSplashScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #1e1b4b 0%, #0b0f19 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
}

#elcSplashScreen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.elc-splash-brand {
    margin-bottom: 25px;
    text-align: center;
    animation: elcSplashFadeIn 1s ease-out;
}

.elc-splash-brand h2 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c084fc 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.elc-splash-brand p {
    font-size: 0.85rem;
    color: #94a3b8;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.elc-splash-radial-box {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.elc-splash-menu {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.elc-splash-menu li {
    position: absolute;
    left: -45px;
    list-style: none;
    transform-origin: 145px;
    transition: 2.2s cubic-bezier(0.34, 1.25, 0.64, 1);
    transition-delay: calc(0.08s * var(--i));
    transform: rotate(0deg) translateX(100px);
    opacity: 0;
}

.elc-splash-menu.active li {
    transform: rotate(calc(360deg / 8 * var(--i)));
    opacity: 1;
}

.elc-splash-menu li a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    transform: rotate(calc(360deg / -8 * var(--i)));
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(99, 102, 241, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.9);
    transition: 0.5s;
    overflow: hidden;
}

.elc-splash-menu li a img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.elc-splash-toggle {
    position: absolute;
    width: 78px;
    height: 78px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(168, 85, 247, 0.45);
    border: 3px solid #6366f1;
    transition: transform 1.25s cubic-bezier(0.34, 1.25, 0.64, 1);
    overflow: hidden;
}

.elc-splash-toggle img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.elc-splash-menu.active .elc-splash-toggle {
    transform: rotate(315deg);
}

.elc-splash-footer {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.elc-splash-skip-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    font-size: 0.78rem;
    padding: 7px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.elc-splash-skip-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

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

/* ==================== CART FLY & BOUNCE ANIMATION ==================== */
.cart-badge-bounce {
    animation: cartBadgeBounce 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cartBadgeBounce {
    0% { transform: scale(1); }
    35% { transform: scale(1.18); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* ==================== RATING & REVIEWS SYSTEM ==================== */
.star-rating-box {
    display: inline-flex;
    gap: 4px;
    direction: rtl;
    user-select: none;
}
.star-rating-box span.star-btn {
    font-size: 1.4rem;
    color: rgba(148, 163, 184, 0.35);
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}
.star-rating-box span.star-btn:hover,
.star-rating-box span.star-btn:hover ~ span.star-btn {
    color: #f59e0b !important;
    transform: scale(1.15);
}
.star-rating-box.selected-1 span.star-btn:nth-child(n+5),
.star-rating-box.selected-2 span.star-btn:nth-child(n+4),
.star-rating-box.selected-3 span.star-btn:nth-child(n+3),
.star-rating-box.selected-4 span.star-btn:nth-child(n+2),
.star-rating-box.selected-5 span.star-btn:nth-child(n+1) {
    color: #f59e0b;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: #fbbf24;
    font-size: 0.72rem;
    font-weight: 700;
}

.biz-rating-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

/* ==================== SUBCATEGORIES STYLES ==================== */
.has-subcats-indicator {
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
    font-size: 0.65rem;
    opacity: 0.75;
}

.pill-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    padding: 2px 7px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.72rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    user-select: none;
}

.pill-dropdown-trigger:hover,
.pill-dropdown-trigger:active {
    background: rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.15);
}

.category-pill.active .pill-dropdown-trigger {
    background: rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 255, 255, 0.35);
}

.category-pill.active .pill-dropdown-trigger:hover {
    background: rgba(0, 0, 0, 0.45);
}

.active-subcat-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(30, 27, 75, 0.85);
    border: 1px solid rgba(129, 140, 248, 0.35);
    border-radius: 12px;
    padding: 7px 14px;
    margin-bottom: 12px;
    font-size: 0.82rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeInSubcat 0.25s ease-out;
}

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

.general-category-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.2) 100%);
    border: 1px solid rgba(139, 92, 246, 0.45);
    transition: all 0.25s ease;
    cursor: pointer;
    text-align: left;
}

.general-category-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4) 0%, rgba(139, 92, 246, 0.35) 100%);
    border-color: rgba(165, 180, 252, 0.8);
    transform: translateY(-2px);
}

.general-category-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-height: 52vh;
    overflow-y: auto;
    padding-bottom: 8px;
}

.subcategory-card-btn {
    background: rgba(18, 24, 52, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.22);
    border-radius: 12px;
    padding: 12px 14px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.86rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.subcategory-card-btn:hover {
    background: rgba(99, 102, 241, 0.28);
    border-color: rgba(129, 140, 248, 0.55);
    transform: translateY(-2px);
}

.subcategory-card-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* ==================== YELP STYLE SUBCATEGORIES MEGA DROPDOWN ==================== */
.yelp-dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: yelpBackdropFadeIn 0.2s ease-out;
}

@keyframes yelpBackdropFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.yelp-dropdown-menu {
    position: absolute;
    z-index: 1050;
    background: #ffffff;
    color: #1e293b;
    border-radius: 18px;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08);
    padding: 18px 22px 20px;
    min-width: 580px;
    max-width: 760px;
    animation: yelpDropdownPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top center;
}

@keyframes yelpDropdownPopIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.yelp-dropdown-arrow {
    position: absolute;
    top: -7px;
    left: 45px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    transform: rotate(45deg);
    border-top-left-radius: 3px;
    z-index: 2;
}

.yelp-dropdown-header {
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.yelp-cat-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.yelp-cat-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.2px;
}

.yelp-dropdown-all-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4f46e5;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.yelp-dropdown-all-btn:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

.yelp-dropdown-close-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.yelp-dropdown-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.yelp-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 16px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
}

.yelp-dropdown-grid::-webkit-scrollbar {
    width: 5px;
}

.yelp-dropdown-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.yelp-subcat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #1f2937;
    font-size: 0.93rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    user-select: none;
    text-decoration: none;
}

.yelp-subcat-item:hover {
    background-color: #ededed;
    color: #111827;
}

.yelp-subcat-item.active {
    background-color: #e5e7eb;
    color: #111827;
    font-weight: 700;
}

.yelp-subcat-item:hover .yelp-subcat-icon {
    color: #111827;
}

.yelp-subcat-item.active .yelp-subcat-icon {
    color: #111827;
}

.yelp-subcat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #374151;
    font-size: 1.15rem;
}

.yelp-subcat-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.2;
}

.yelp-subcat-name {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* Responsivo para tablets y móviles */
@media (max-width: 768px) {
    .yelp-dropdown-menu {
        position: fixed;
        left: 12px !important;
        right: 12px !important;
        top: 140px !important;
        width: auto !important;
        min-width: unset;
        max-width: calc(100vw - 24px);
        max-height: 68vh;
        overflow-y: auto;
        padding: 16px;
    }
    .yelp-dropdown-arrow {
        display: none;
    }
    .yelp-dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px 10px;
    }
}

@media (max-width: 480px) {
    .yelp-dropdown-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 4px;
    }
}

/* ==================== GLOBAL NAVIGATION & ACTION LOADER ==================== */
.elc-nav-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.elc-nav-loader.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.elc-nav-loader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 8, 20, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.elc-nav-loader-card {
    position: relative;
    z-index: 2;
    background: radial-gradient(120% 120% at 50% 0%, #1a224a 0%, #0f1530 100%);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 26px;
    padding: 32px 24px 26px 24px;
    max-width: 320px;
    width: 88%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(99, 102, 241, 0.22);
    transform: scale(0.9);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.elc-nav-loader.active .elc-nav-loader-card {
    transform: scale(1);
}

.elc-nav-loader-spinner-box {
    position: relative;
    width: 78px;
    height: 78px;
    margin: 0 auto 18px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elc-nav-loader-spinner {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: #00c49f;
    border-right-color: #6366f1;
    border-radius: 50%;
    animation: elcSpin 0.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.elc-nav-loader-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 14px;
    background: #ffffff;
    padding: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    animation: elcPulse 2s ease-in-out infinite;
}

.elc-nav-loader-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.elc-nav-loader-sub {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.35;
}

.elc-nav-loader-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.elc-nav-loader-bar-fill {
    position: absolute;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #6366f1, #00c49f);
    border-radius: 4px;
    animation: elcBarMove 1.3s ease-in-out infinite;
}

@keyframes elcSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes elcPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes elcBarMove {
    0% { left: -40%; width: 30%; }
    50% { left: 35%; width: 55%; }
    100% { left: 100%; width: 30%; }
}

/* Efecto de feedback activo al tocar tarjeta */
.business-card.card-loading-active {
    border-color: #00c49f !important;
    box-shadow: 0 0 25px rgba(0, 196, 159, 0.45) !important;
    transform: scale(0.985);
    transition: all 0.2s ease;
}

/* Skeleton Loading for Products inside Drawer */
.product-skeleton-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0;
}

.product-skeleton-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 10px;
}

.product-skeleton-thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: elcSkeletonShimmer 1.5s infinite;
    flex-shrink: 0;
}

.product-skeleton-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: elcSkeletonShimmer 1.5s infinite;
}

.product-skeleton-line.short {
    width: 50%;
}

@keyframes elcSkeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}



