        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: var(--font-body);
        }

        :root {
            /* Paleta Minimalista - Preto/Branco com Acento */
            --primary: #000000;
            --primary-dark: #1a1a1a;
            --primary-light: #333333;
            --primary-bg: #f5f5f5;
            --gradient-primary: linear-gradient(135deg, #000000, #1a1a1a);

            --secondary: #5B8C9E;
            --secondary-dark: #4A7A8A;
            --secondary-light: #7BA8B8;
            --secondary-bg: #E8F2F5;

            --accent: #5B8C9E;
            --warning: #FF9800;
            --danger: #E53935;
            --success: #43A047;
            --info: #5B8C9E;

            /* Escala de Cinza Moderna */
            --gray-50: #f9fafb;
            --gray-100: #f3f4f6;
            --gray-200: #e5e7eb;
            --gray-300: #d1d5db;
            --gray-400: #9ca3af;
            --gray-500: #6b7280;
            --gray-600: #4b5563;
            --gray-700: #374151;
            --gray-800: #1f2937;
            --gray-900: #111827;

            /* Variáveis de Compatibilidade */
            --light: #ffffff;
            --gray: #6b7280;
            --gray-light: #f3f4f6;

            /* Typography */
            --font-body: 'Manrope', 'Segoe UI', sans-serif;
            --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;

            /* Background System */
            --bg-primary: #ffffff;
            --bg-secondary: #fafafa;
            --bg-tertiary: #f3f4f6;

            /* Text Colors */
            --text-primary: #000000;
            --text-secondary: #666666;
            --text-tertiary: #999999;

            /* Border System - Rounded & Smooth */
            --border-color: #e0e0e0;
            --border-radius-sm: 8px;
            --border-radius: 12px;
            --border-radius-lg: 16px;
            --border-radius-xl: 24px;

            /* Shadow System - Flat & Minimal */
            --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
            --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
            --shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.12);
            --shadow-xl: 0 8px 28px rgba(0, 0, 0, 0.15);

            /* Status Colors */
            --status-pending: #f59e0b;
            --status-in-transit: #3b82f6;
            --status-delivered: #10b981;
            --status-cancelled: #ef4444;

            /* Transitions - Snappy */
            --transition-fast: 150ms ease;
            --transition: 250ms ease;
            --transition-slow: 300ms ease;

            /* Spacing Scale */
            --space-xs: 0.25rem;
            --space-sm: 0.5rem;
            --space: 1rem;
            --space-lg: 1.5rem;
            --space-xl: 2rem;
            --space-2xl: 3rem;
        }

        body {
            background: #ffffff;
            color: var(--text-primary);
            line-height: 1.6;
            position: relative;
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* Clean background - No patterns */
        body::before {
            display: none;
        }

        /* No animated gradients */
        body::after {
            display: none;
        }

        .container {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 var(--space-lg);
        }

        /* ========================================
           🎯 HEADER EXECUTIVO PROFISSIONAL
           ======================================== */
        header {
            background: #ffffff;
            border: none;
            border-bottom: 1px solid #e5e7eb;
            position: sticky;
            top: 0;
            z-index: 10;
            padding: 0;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }

        header::after {
            display: none;
        }

        header.scrolled {
            background: #ffffff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            border-bottom-color: #d1d5db;
        }

        header.scrolled::after {
            display: none;
        }

        /* Esconde o header principal enquanto overlays/modais estiverem ativos */
        body:has(.auth-overlay.active) header,
        body:has(.success-overlay.active) header,
        body:has(.delivery-modal-overlay.active) header,
        body:has(.loading-overlay.active) header,
        body:has(.profile-modal-overlay.active) header,
        body:has(#creditsModal.active) header,
        body:has(#feedbackModal.active) header {
            opacity: 0;
            pointer-events: none;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: var(--space-lg);
            padding: 10px 0;
            position: relative;
            height: 56px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 600;
            font-size: 1.25rem;
            color: var(--text-primary);
            transition: opacity 0.2s ease;
            user-select: none;
            position: relative;
            z-index: 1;
            font-family: var(--font-display);
        }

        .logo i {
            width: 32px;
            height: 32px;
            background: #000000;
            color: white;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            box-shadow: none;
            transition: all 0.2s ease;
        }

        .logo:hover {
            opacity: 0.8;
        }

        .logo:hover i {
            transform: scale(1.05);
            box-shadow: 0 3px 12px rgba(14, 165, 233, 0.32);
        }

        .logo span {
            color: var(--text-primary);
            letter-spacing: -0.3px;
        }

        .auth-status {
            display: flex;
            align-items: center;
            gap: 10px;
            position: relative;
            z-index: 1;
        }

        .auth-status .btn {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            border: none;
            color: white;
            font-weight: 500;
            font-size: 14px;
            padding: 8px 16px;
            border-radius: 8px;
            transition: all 0.2s ease;
            box-shadow: 0 1px 3px rgba(14, 165, 233, 0.15);
        }

        .auth-status .btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
        }

        .auth-status .btn:active {
            transform: translateY(0);
        }

        .user-profile-section {
            background: rgba(0, 0, 0, 0.03);
            border: 1px solid rgba(0, 0, 0, 0.06);
            border-radius: 12px;
            padding: 6px 12px 6px 6px;
            transition: all 0.2s ease;
        }

        .user-profile-section:hover {
            background: rgba(0, 0, 0, 0.05);
            border-color: rgba(14, 165, 233, 0.2);
        }

        .user-profile-avatar {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
            font-weight: 600;
            box-shadow: 0 2px 4px rgba(14, 165, 233, 0.18);
        }

        .user-profile-section .auth-user {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary) !important;
        }

        .user-profile-section div {
            color: var(--text-secondary) !important;
            font-size: 12px;
        }

        .header-badge {
            background: rgba(14, 165, 233, 0.12);
            border: none;
            border-radius: 10px;
            padding: 6px 12px;
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--primary-dark);
            font-weight: 500;
            font-size: 13px;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .header-badge:hover {
            background: rgba(14, 165, 233, 0.18);
            transform: translateY(-1px);
        }

        .header-badge-count {
            background: var(--primary);
            color: white;
            border-radius: 6px;
            min-width: 20px;
            height: 20px;
            padding: 0 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 600;
        }

        /* ========================================
           📱 NAVIGATION SYSTEM
           ======================================== */

        /* Main Layout */
        .main-layout {
            display: flex;
            min-height: calc(100vh - 80px);
            position: relative;
            z-index: 1;
        }

        /* Sidebar */
        .sidebar {
            width: 280px;
            background: var(--bg-primary);
            padding: var(--space-lg) 0;
            border-right: 1px solid var(--border-color);
            display: none;
            position: sticky;
            top: 80px;
            height: calc(100vh - 80px);
            overflow-y: auto;
        }

        .sidebar.active {
            display: block;
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: var(--space);
            padding: var(--space) var(--space-lg);
            color: var(--text-secondary);
            text-decoration: none;
            border-left: 3px solid transparent;
            transition: var(--transition);
            cursor: pointer;
            position: relative;
            font-weight: 500;
            margin: 0 var(--space-sm);
            border-radius: var(--border-radius-sm);
        }

        .nav-item:hover {
            background-color: var(--gray-50);
            color: var(--text-primary);
        }

        .nav-item.active {
            background: linear-gradient(90deg, var(--primary-bg) 0%, transparent 100%);
            border-left-color: var(--primary);
            color: var(--primary);
            font-weight: 600;
        }

        .nav-item i {
            width: 20px;
            text-align: center;
            font-size: 1.125rem;
        }

        /* Mobile Nav */
        .mobile-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #ffffff;
            border-top: 1px solid #e5e7eb;
            display: flex;
            justify-content: space-around;
            padding: 8px 0;
            box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
            z-index: 90;
        }

        .mobile-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.75rem;
            padding: 8px;
            border-radius: 8px;
            transition: all 0.3s ease;
            flex: 1;
            text-align: center;
            position: relative;
            font-weight: 600;
        }

        .mobile-nav-item i {
            font-size: 1.25rem;
            transition: all 0.3s ease;
        }

        .mobile-nav-item.active {
            color: var(--primary);
        }

        .mobile-nav-item.active i {
            transform: translateY(-2px);
        }

        .mobile-nav-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 40%;
            height: 3px;
            background: var(--primary);
            border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
            opacity: 0;
            transition: var(--transition);
        }

        .mobile-nav-item.active::before {
            opacity: 1;
        }

        /* ========================================
           📄 MAIN CONTENT
           ======================================== */

        /* Main Content */
        .main-content {
            flex: 1;
            padding: var(--space-xl);
            overflow-x: hidden;
            background: var(--bg-secondary);
        }

        .section {
            display: none;
            animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .section.active {
            display: block;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--space-xl);
            flex-wrap: wrap;
            gap: var(--space);
        }

        .section-title {
            font-size: 1.75rem;
            font-weight: 800;
            color: #000000;
            letter-spacing: -0.02em;
            font-family: var(--font-display);
            border-left: 5px solid var(--secondary);
            padding-left: 16px;
            margin-bottom: 24px;
        }

        .section-title+p {
            max-width: 520px;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: var(--space-sm);
        }

        .header-actions .btn {
            width: auto;
            padding: 8px 14px;
        }

        .btn-ghost {
            background: transparent;
            color: var(--text-primary);
            border: 1px solid rgba(0, 0, 0, 0.08);
        }

        .btn-ghost:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: var(--primary-bg);
        }

        .hero-overview {
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 32px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
            margin-bottom: 32px;
            position: relative;
            overflow: hidden;
        }

        .hero-overview::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 85% 20%, rgba(14, 165, 233, 0.14), transparent 55%);
            pointer-events: none;
        }

        .hero-main {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: var(--space-lg);
            margin-bottom: var(--space-xl);
            position: relative;
            z-index: 1;
        }

        .hero-kicker {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 0.8rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--secondary);
            font-weight: 700;
            background: var(--secondary-bg);
            padding: 8px 14px;
            border-radius: 12px;
        }

        .hero-title {
            font-size: 2.25rem;
            font-weight: 800;
            margin: 12px 0 8px;
            font-family: var(--font-display);
            letter-spacing: -0.02em;
            color: #000000;
        }

        .hero-subtitle {
            color: var(--text-secondary);
            max-width: 560px;
            font-size: 1.05rem;
            line-height: 1.6;
        }

        .hero-main-actions {
            display: flex;
            gap: var(--space-sm);
            flex-wrap: wrap;
        }

        .hero-kpis {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: var(--space-lg);
            position: relative;
            z-index: 1;
        }

        .hero-card {
            background: var(--bg-primary);
            border-radius: var(--border-radius-lg);
            padding: 20px;
            border: 1px solid rgba(0, 0, 0, 0.06);
            box-shadow: var(--shadow-sm);
            display: flex;
            flex-direction: column;
            gap: var(--space-sm);
            position: relative;
            overflow: hidden;
        }

        .hero-card::after {
            display: none;
        }

        .hero-card-primary {
            background: #ffffff;
            border-color: #e5e7eb;
        }

        .hero-card-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: var(--space-sm);
        }

        .hero-card-label {
            font-size: 0.85rem;
            color: var(--text-secondary);
            font-weight: 600;
        }

        .hero-card-pill {
            padding: 6px 14px;
            border-radius: 999px;
            background: var(--secondary);
            color: white;
            font-size: 0.7rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .hero-card-value {
            font-size: 2.5rem;
            font-weight: 900;
            color: var(--secondary);
            line-height: 1;
            font-family: var(--font-display);
        }

        .hero-card-meta {
            display: grid;
            gap: 6px;
            color: var(--text-secondary);
            font-size: 0.85rem;
        }

        .hero-card-meta strong {
            color: var(--text-primary);
        }

        @media (max-width: 900px) {
            .header-actions {
                display: none;
            }

            .hero-overview {
                padding: var(--space-lg);
            }

            .hero-title {
                font-size: 1.5rem;
            }
        }

        /* ========================================
           🎴 CARD SYSTEM - FAT DESIGN
           ======================================== */

        /* Quick Actions */
        .quick-actions {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: var(--space-lg);
            margin-bottom: var(--space-2xl);
        }

        .action-card {
            background: #ffffff;
            border-radius: var(--border-radius-lg);
            padding: 32px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid #e0e0e0;
            position: relative;
            overflow: hidden;
        }

        .action-card::before {
            display: none;
        }

        .action-card:hover::before {
            display: none;
        }

        .action-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            border-color: #000000;
        }

        .action-card i {
            font-size: 2.5rem;
            color: #000000;
            margin-bottom: 16px;
            transition: all 0.3s ease;
            display: inline-block;
            position: relative;
            z-index: 1;
        }

        .action-card:hover i {
            transform: scale(1.08);
        }

        .action-card h3 {
            font-size: 1.125rem;
            margin-bottom: var(--space-sm);
            font-weight: 700;
            color: var(--text-primary);
            position: relative;
            z-index: 1;
            font-family: var(--font-display);
        }

        .action-card p {
            font-size: 0.875rem;
            color: var(--text-secondary);
            font-weight: 500;
            position: relative;
            z-index: 1;
        }

        /* ========================================
           📝 REQUEST DELIVERY FORM
           ======================================== */

        /* Request Delivery */
        .request-container {
            background: white;
            border-radius: 12px;
            padding: 0;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
            overflow: hidden;
            margin-bottom: var(--space-xl);
            border: 1px solid rgba(0, 0, 0, 0.06);
            max-width: 100%;
        }

        .request-header {
            background: #000000;
            color: white;
            padding: 20px 24px;
            position: relative;
        }

        .request-header h2 {
            font-size: 1.25rem;
            margin-bottom: 4px;
            font-weight: 600;
        }

        .request-header p {
            opacity: 0.9;
            font-size: 0.875rem;
        }

        .request-form {
            padding: 24px;
            max-width: 100%;
            overflow-x: hidden;
        }

        /* ========================================
           🎨 FORMS & INPUTS
           ======================================== */

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--text-primary);
            font-size: 0.875rem;
        }

        .form-control {
            width: 100%;
            padding: 10px 14px;
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.2s ease;
            background: white;
            color: var(--text-primary);
            font-family: inherit;
            box-sizing: border-box;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
        }

        .form-control:hover:not(:focus) {
            border-color: rgba(0, 0, 0, 0.2);
        }

        .form-control::placeholder {
            color: rgba(0, 0, 0, 0.4);
        }

        .address-input {
            position: relative;
        }

        .address-input i {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--primary);
        }

        .address-input input {
            padding-left: 45px;
        }

        .distance-info {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
            padding: var(--space);
            border-radius: var(--border-radius);
            margin: var(--space) 0;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            border: 1px solid rgba(16, 185, 129, 0.2);
            gap: var(--space-sm);
        }

        .distance-info>div {
            flex: 1;
            min-width: 120px;
            text-align: center;
        }

        .distance-value {
            font-weight: 700;
            font-size: 1.25rem;
            color: var(--secondary);
        }

        .price-calculator {
            background: var(--gray-50);
            padding: var(--space-lg);
            border-radius: var(--border-radius);
            margin: var(--space-lg) 0;
            border: 1px solid var(--border-color);
            overflow-x: auto;
        }

        .price-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: var(--space-sm);
            padding-bottom: var(--space-sm);
            border-bottom: 1px solid var(--border-color);
            color: var(--text-secondary);
            font-size: 0.9375rem;
            flex-wrap: wrap;
            gap: var(--space-sm);
        }

        .price-row>span {
            flex: 1;
            min-width: 100px;
        }

        .price-row.total {
            font-weight: 700;
            font-size: 1.25rem;
            border-bottom: none;
            color: var(--primary);
            margin-top: var(--space-sm);
        }

        /* ========================================
           🔘 BUTTON SYSTEM
           ======================================== */

        .btn {
            padding: 10px 20px;
            border-radius: 8px;
            border: none;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.25s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            line-height: 1;
            position: relative;
            overflow: hidden;
        }

        .btn-primary {
            background: #000000;
            color: white;
            box-shadow: none;
        }

        .btn-primary:hover {
            background: #1a1a1a;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        .btn-primary:active {
            transform: translateY(0);
            box-shadow: none;
        }

        .btn-outline {
            background: white;
            color: var(--secondary);
            border: 2px solid var(--secondary);
        }

        .btn-outline:hover {
            background: var(--secondary);
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(91, 140, 158, 0.25);
        }

        .btn-sm {
            padding: 6px 12px;
            font-size: 13px;
        }

        .btn-lg {
            padding: 12px 24px;
            font-size: 15px;
        }

        /* ========================================
           📦 DELIVERY CARDS
           ======================================== */

        /* Active Deliveries */
        .deliveries-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
            gap: 20px;
            margin-bottom: var(--space-xl);
        }

        .delivery-card {
            background: #ffffff;
            border-radius: var(--border-radius);
            padding: 20px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
            position: relative;
            border: 1px solid #e0e0e0;
            border-left: 3px solid #000000;
            transition: all 0.2s ease;
        }

        .delivery-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .delivery-card.searching {
            border-left-color: #f59e0b;
        }

        .delivery-card.accepted {
            border-left-color: #10b981;
        }

        .delivery-card.delivering {
            border-left-color: #3b82f6;
        }

        .delivery-card.delivered {
            border-left-color: #9ca3af;
        }

        .delivery-card.cancelled {
            border-left-color: #ef4444;
        }

        .delivery-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
        }

        .delivery-code {
            font-weight: 600;
            color: var(--text-primary);
            font-size: 1.0625rem;
        }

        .delivery-time {
            font-size: 0.8125rem;
            color: var(--text-secondary);
        }

        /* ========================================
           🏷️ STATUS BADGES
           ======================================== */

        .delivery-status,
        .badge,
        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.6875rem;
            font-weight: 600;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.025em;
        }

        .status-searching,
        .badge-warning {
            background: rgba(245, 158, 11, 0.1);
            color: #f59e0b;
        }

        .status-accepted,
        .badge-success {
            background: rgba(16, 185, 129, 0.1);
            color: #10b981;
        }

        .status-picked-up,
        .status-on-the-way,
        .badge-info {
            background: rgba(59, 130, 246, 0.1);
            color: #3b82f6;
        }

        .status-delivered,
        .badge-default {
            background: rgba(156, 163, 175, 0.1);
            color: #6b7280;
        }

        .status-cancelled,
        .badge-danger {
            background: rgba(239, 68, 68, 0.1);
            color: #ef4444;
        }

        .delivery-info {
            margin: var(--space) 0;
        }

        .info-item {
            display: flex;
            align-items: center;
            gap: var(--space);
            margin-bottom: var(--space-sm);
            font-size: 0.9375rem;
            color: var(--text-secondary);
        }

        .info-item i {
            color: var(--primary);
            width: 18px;
            text-align: center;
        }

        .motoboy-info {
            background: var(--gray-50);
            padding: var(--space);
            border-radius: var(--border-radius);
            margin: var(--space) 0;
            display: flex;
            align-items: center;
            gap: var(--space);
            border: 1px solid var(--border-color);
            transition: var(--transition);
        }

        .motoboy-info:hover {
            background: var(--gray-100);
        }

        .motoboy-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 1.125rem;
            flex-shrink: 0;
        }

        .motoboy-details {
            flex: 1;
        }

        .motoboy-details h4 {
            margin-bottom: var(--space-xs);
            font-weight: 600;
            color: var(--text-primary);
            font-size: 0.9375rem;
        }

        .motoboy-details p {
            font-size: 0.8125rem;
            color: var(--text-secondary);
        }

        .delivery-actions {
            display: flex;
            gap: var(--space-sm);
            margin-top: var(--space);
        }

        /* Available Motoboys */
        .motoboys-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 15px;
            margin-bottom: 25px;
        }

        .motoboy-card {
            background-color: var(--light);
            border-radius: 10px;
            padding: 20px;
            box-shadow: var(--card-shadow);
            text-align: center;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 2px solid transparent;
            animation: scaleIn 0.4s ease-out;
        }

        .motoboy-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
        }

        .motoboy-card.available {
            border-color: var(--motoboy-online);
        }

        .motoboy-card.busy {
            border-color: var(--motoboy-busy);
            opacity: 0.7;
        }

        .motoboy-avatar-small {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--motoboy-online) 0%, #45a049 100%);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 1.3rem;
            margin: 0 auto 15px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
        }

        .motoboy-card:hover .motoboy-avatar-small {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
        }

        .motoboy-name {
            font-weight: 700;
            margin-bottom: 5px;
        }

        .motoboy-rating {
            color: var(--warning);
            margin-bottom: 10px;
        }

        .motoboy-status {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            margin-bottom: 15px;
        }

        .status-available {
            background-color: rgba(76, 175, 80, 0.1);
            color: var(--motoboy-online);
        }

        .status-busy {
            background-color: rgba(255, 152, 0, 0.1);
            color: var(--motoboy-busy);
        }

        .motoboy-stats {
            display: flex;
            justify-content: space-around;
            margin-top: 15px;
        }

        .stat {
            text-align: center;
        }

        .stat-value {
            font-weight: 700;
            font-size: 1.1rem;
        }

        .stat-label {
            font-size: 0.75rem;
            color: var(--gray);
        }

        /* Map */
        .map-container {
            background-color: var(--light);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 25px;
            box-shadow: var(--card-shadow);
        }

        .map-view {
            height: 300px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            border-radius: 8px;
            position: relative;
            overflow: hidden;
            box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .map-view::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
            animation: float 8s ease-in-out infinite;
        }

        .map-point {
            position: absolute;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .map-point.restaurant {
            background-color: var(--primary);
            top: 50%;
            left: 20%;
            transform: translate(-50%, -50%);
        }

        .map-point.delivery {
            background-color: var(--secondary);
            top: 30%;
            left: 70%;
            transform: translate(-50%, -50%);
        }

        .map-point.motoboy {
            background-color: var(--motoboy-online);
            top: 60%;
            left: 45%;
            transform: translate(-50%, -50%);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% {
                transform: translate(-50%, -50%) scale(1);
                box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
            }

            50% {
                transform: translate(-50%, -50%) scale(1.1);
                box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
            }

            100% {
                transform: translate(-50%, -50%) scale(1);
                box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
            }
        }

        @keyframes glow {

            0%,
            100% {
                box-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary);
            }

            50% {
                box-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary);
            }
        }

        /* History */
        .history-list {
            background-color: var(--light);
            border-radius: 10px;
            padding: 20px;
            box-shadow: var(--card-shadow);
        }

        .history-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
            border-bottom: 1px solid var(--border);
            transition: all 0.3s ease;
        }

        .history-item:hover {
            padding-left: 10px;
            background-color: rgba(255, 107, 53, 0.03);
            border-radius: 5px;
        }

        .history-item:last-child {
            border-bottom: none;
        }

        .history-info h4 {
            margin-bottom: 5px;
        }

        .history-info p {
            font-size: 0.85rem;
            color: var(--gray);
        }

        .history-price {
            font-weight: 700;
            color: var(--primary);
        }

        /* Finance */
        .finance-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 25px;
        }

        .finance-card {
            background: linear-gradient(135deg, var(--light) 0%, #f8f9fa 100%);
            border-radius: 10px;
            padding: 20px;
            box-shadow: var(--card-shadow);
            text-align: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 2px solid transparent;
            animation: scaleIn 0.4s ease-out;
        }

        .ai-reports {
            background: radial-gradient(circle at 10% 10%, rgba(14, 165, 233, 0.08), transparent 45%),
                radial-gradient(circle at 90% 0%, rgba(16, 185, 129, 0.1), transparent 50%),
                linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
            border: 1px solid rgba(14, 165, 233, 0.18);
            border-radius: 20px;
            padding: 24px;
            box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
            position: relative;
            overflow: hidden;
        }

        .ai-reports::before {
            content: '';
            position: absolute;
            inset: -40% -10% auto auto;
            width: 280px;
            height: 280px;
            background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 60%);
            filter: blur(10px);
            pointer-events: none;
        }

        .ai-reports::after {
            content: '';
            position: absolute;
            inset: auto auto -60% -20%;
            width: 320px;
            height: 320px;
            background: radial-gradient(circle, rgba(16, 185, 129, 0.18), transparent 60%);
            filter: blur(12px);
            pointer-events: none;
        }

        .ai-assistant {
            display: grid;
            grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
            gap: 16px;
            margin-bottom: 18px;
            position: relative;
            z-index: 1;
        }

        .ai-assistant-left {
            background: rgba(255, 255, 255, 0.92);
            border-radius: 16px;
            padding: 16px;
            border: 1px solid rgba(14, 165, 233, 0.16);
            box-shadow: 0 10px 16px rgba(15, 23, 42, 0.06);
            display: grid;
            gap: 12px;
        }

        .ai-assistant-title {
            font-weight: 700;
            font-size: 1.05rem;
            font-family: var(--font-display);
        }

        .ai-assistant-subtitle {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .ai-ask {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .ai-ask-input {
            flex: 1;
            border-radius: 999px;
            border: 1px solid rgba(15, 23, 42, 0.12);
            padding: 10px 16px;
            font-size: 0.9rem;
            background: #ffffff;
            transition: var(--transition);
        }

        .ai-ask-input:focus {
            outline: none;
            border-color: rgba(14, 165, 233, 0.5);
            box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
        }

        .ai-ask-btn {
            border: none;
            border-radius: 999px;
            padding: 10px 18px;
            font-weight: 700;
            font-size: 0.85rem;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: #ffffff;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 10px 18px rgba(14, 165, 233, 0.24);
        }

        .ai-ask-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 12px 20px rgba(14, 165, 233, 0.3);
        }

        .ai-quick-questions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .ai-quick-btn {
            border: 1px solid rgba(14, 165, 233, 0.2);
            background: rgba(255, 255, 255, 0.9);
            color: var(--primary-dark);
            border-radius: 999px;
            padding: 6px 12px;
            font-size: 0.78rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }

        .ai-quick-btn:hover {
            background: rgba(14, 165, 233, 0.12);
            border-color: rgba(14, 165, 233, 0.4);
        }

        .ai-assistant-right {
            background: #0f172a;
            border-radius: 16px;
            padding: 16px;
            color: #e2e8f0;
            box-shadow: 0 14px 22px rgba(15, 23, 42, 0.2);
            position: relative;
            overflow: hidden;
        }

        .ai-assistant-right::before {
            content: '';
            position: absolute;
            inset: auto -20% -40% auto;
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 60%);
            opacity: 0.7;
        }

        .ai-answer {
            position: relative;
            z-index: 1;
            display: grid;
            gap: 8px;
        }

        .ai-answer-title {
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            color: #7dd3fc;
        }

        .ai-answer-body {
            font-size: 1.05rem;
            font-weight: 600;
            color: #f8fafc;
        }

        .ai-answer-meta {
            font-size: 0.85rem;
            color: #cbd5f5;
        }

        .ai-legend {
            margin-bottom: 16px;
            background: rgba(255, 255, 255, 0.92);
            border-radius: 16px;
            padding: 14px 16px;
            border: 1px solid rgba(14, 165, 233, 0.16);
            box-shadow: 0 8px 14px rgba(15, 23, 42, 0.05);
            position: relative;
            z-index: 1;
        }

        .ai-legend-title {
            font-weight: 700;
            margin-bottom: 10px;
            font-size: 0.95rem;
        }

        .ai-legend-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 8px 12px;
        }

        .ai-legend-item {
            display: flex;
            gap: 8px;
            align-items: center;
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .ai-legend-item i {
            color: var(--primary);
        }

        .ai-layout {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            grid-template-areas:
                "summary summary"
                "hourly weekday"
                "table table";
            gap: 16px;
            position: relative;
            z-index: 1;
        }

        .ai-summary-grid {
            grid-area: summary;
        }

        .ai-chart-card.hourly {
            grid-area: hourly;
        }

        .ai-chart-card.weekday {
            grid-area: weekday;
        }

        .ai-table-card {
            grid-area: table;
        }

        .ai-reports-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 16px;
            position: relative;
            z-index: 1;
        }

        .ai-controls {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
        }

        .ai-control-btn {
            border: 1.5px solid rgba(14, 165, 233, 0.25);
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.95) 100%);
            color: var(--primary-dark);
            border-radius: 10px;
            padding: 8px 16px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
        }

        .ai-control-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(14, 165, 233, 0.12);
            border-color: rgba(14, 165, 233, 0.4);
        }

        .ai-control-btn.active {
            background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
            color: #ffffff;
            border-color: transparent;
            box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
            transform: translateY(-2px);
        }

        .ai-reports-title {
            font-weight: 700;
            font-size: 1.2rem;
            font-family: var(--font-display);
            margin-bottom: 4px;
        }

        .ai-reports-subtitle {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .ai-badge {
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(16, 185, 129, 0.2));
            color: var(--primary-dark);
            font-weight: 700;
            border-radius: 999px;
            padding: 6px 12px;
            font-size: 0.8rem;
            white-space: nowrap;
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }

        .ai-summary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 14px;
        }

        .ai-summary-card {
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            border-radius: 16px;
            padding: 16px;
            border: 1px solid rgba(14, 165, 233, 0.15);
            box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
            display: grid;
            gap: 8px;
            transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
            position: relative;
            overflow: hidden;
        }

        .ai-summary-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: linear-gradient(180deg, #0ea5e9 0%, #38bdf8 100%);
            border-radius: 16px 0 0 16px;
        }

        .ai-summary-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 24px rgba(14, 165, 233, 0.16);
            border-color: rgba(14, 165, 233, 0.25);
        }

        .ai-summary-card:nth-child(2)::before {
            background: linear-gradient(180deg, #10b981 0%, #059669 100%);
        }

        .ai-summary-card:nth-child(3)::before {
            background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
        }

        .ai-summary-card:nth-child(4)::before {
            background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
        }

        .ai-summary-card:nth-child(5)::before {
            background: linear-gradient(180deg, #ec4899 0%, #db2777 100%);
        }

        .ai-summary-card:nth-child(6)::before {
            background: linear-gradient(180deg, #06b6d4 0%, #0891b2 100%);
        }

        .ai-summary-card:nth-child(7)::before {
            background: linear-gradient(180deg, #f97316 0%, #c2410c 100%);
        }

        .ai-summary-card:nth-child(8)::before {
            background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%);
        }

        .ai-summary-card:nth-child(9)::before {
            background: linear-gradient(180deg, #84cc16 0%, #65a30d 100%);
        }

        .ai-summary-card:nth-child(10)::before {
            background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
        }

        .ai-summary-label {
            font-size: 0.75rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
            margin-left: 8px;
        }

        .ai-summary-value {
            font-size: 1.35rem;
            font-weight: 800;
            color: var(--text-primary);
            margin-left: 8px;
            font-family: var(--font-display);
            letter-spacing: -0.5px;
        }

        .ai-summary-card .ai-report-meta {
            margin-left: 8px;
            font-size: 0.8rem;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .ai-reports-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 16px;
            position: relative;
            z-index: 1;
        }

        .ai-chart-card {
            background: #ffffff;
            border-radius: 16px;
            padding: 16px;
            border: 1px solid rgba(14, 165, 233, 0.12);
            box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
            height: 220px;
            display: flex;
            flex-direction: column;
        }

        .ai-chart-title {
            font-weight: 700;
            font-size: 0.95rem;
            margin-bottom: 10px;
            color: var(--text-primary);
        }

        #aiHourlyChart,
        #aiWeekdayChart {
            flex: 1;
            min-height: 140px;
        }

        .ai-table-card {
            background: #ffffff;
            border-radius: 16px;
            padding: 16px;
            border: 1px solid rgba(14, 165, 233, 0.12);
            box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
        }

        .ai-table {
            display: grid;
            gap: 8px;
            max-height: 280px;
            overflow: auto;
            padding-right: 4px;
        }

        .ai-table-row {
            display: grid;
            grid-template-columns: 1.2fr 0.6fr 0.6fr;
            gap: 12px;
            padding: 10px 12px;
            border-radius: 12px;
            background: var(--bg-secondary);
            align-items: center;
            font-size: 0.9rem;
        }

        .ai-table-row.header {
            background: rgba(14, 165, 233, 0.08);
            font-weight: 700;
            color: var(--primary-dark);
        }

        .ai-table-cell {
            color: var(--text-secondary);
        }

        .ai-table-cell strong {
            color: var(--text-primary);
        }

        @media (max-width: 1024px) {
            .ai-layout {
                grid-template-columns: 1fr;
                grid-template-areas:
                    "summary"
                    "hourly"
                    "weekday"
                    "table";
            }

            .ai-assistant {
                grid-template-columns: 1fr;
            }
        }

        .ai-report-card {
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            border-radius: 16px;
            padding: 18px;
            border: 1px solid rgba(14, 165, 233, 0.15);
            display: flex;
            flex-direction: column;
            gap: 12px;
            box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
            transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
        }

        .ai-report-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 16px 32px rgba(14, 165, 233, 0.16);
            border-color: rgba(14, 165, 233, 0.25);
        }

        .ai-report-title {
            font-weight: 700;
            font-size: 1rem;
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--text-primary);
        }

        .ai-report-title i {
            font-size: 1.2rem;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(14, 165, 233, 0.1);
            border-radius: 10px;
        }

        .ai-report-value {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--text-primary);
            font-family: var(--font-display);
            letter-spacing: -0.5px;
        }

        .ai-report-meta {
            color: var(--text-secondary);
            font-size: 0.9rem;
            font-weight: 500;
        }

        .ai-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(16, 185, 129, 0.12);
            color: var(--secondary-dark);
            border-radius: 999px;
            padding: 6px 10px;
            font-size: 0.8rem;
            font-weight: 600;
            width: fit-content;
        }

        .ai-pill.warn {
            background: rgba(245, 158, 11, 0.15);
            color: #b45309;
        }

        .ai-pill.danger {
            background: rgba(239, 68, 68, 0.12);
            color: #b91c1c;
        }

        .ai-list {
            display: grid;
            gap: 8px;
        }

        .ai-list-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.88rem;
            color: var(--text-secondary);
        }

        .ai-list-item strong {
            color: var(--text-primary);
        }

        .finance-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
            border-color: var(--primary);
        }

        .finance-card i {
            font-size: 2rem;
            color: var(--primary);
            margin-bottom: 15px;
            transition: all 0.3s ease;
            display: inline-block;
        }

        .finance-card:hover i {
            transform: scale(1.2) rotate(-5deg);
        }

        .finance-value {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .finance-label {
            color: var(--gray);
            font-size: 0.9rem;
        }

        /* Support Chat Styles */
        .support-chat {
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
            border-radius: 12px;
            border: 1px solid rgba(0, 0, 0, 0.08);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            height: 500px;
            max-height: 70vh;
        }

        .chat-header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: white;
            padding: 16px 20px;
            font-weight: 700;
            font-size: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-radius: 12px 12px 0 0;
        }

        .chat-close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            padding: 0;
        }

        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 16px 20px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .chat-message {
            display: flex;
            gap: 12px;
            animation: slideUp 0.3s ease;
        }

        .chat-message.user-message {
            justify-content: flex-end;
        }

        .chat-message.user-message .message-content {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            border-radius: 12px 12px 0 12px;
        }

        .chat-message.bot-message .message-avatar {
            background: rgba(14, 165, 233, 0.1);
            color: var(--secondary);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .message-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
        }

        .message-content {
            background: var(--bg-secondary);
            padding: 12px 16px;
            border-radius: 12px 12px 12px 0;
            max-width: 70%;
            word-wrap: break-word;
        }

        .message-content p {
            margin: 0;
            font-size: 0.95rem;
            line-height: 1.4;
        }

        .message-content p:not(:last-child) {
            margin-bottom: 8px;
        }

        .chat-input-area {
            display: flex;
            gap: 10px;
            padding: 12px 16px;
            border-top: 1px solid rgba(0, 0, 0, 0.08);
            background: #ffffff;
            border-radius: 0 0 12px 12px;
        }

        .chat-input {
            flex: 1;
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            padding: 10px 14px;
            font-size: 0.9rem;
            font-family: inherit;
            transition: border-color 0.3s;
        }

        .chat-input:focus {
            outline: none;
            border-color: var(--secondary);
            box-shadow: 0 0 0 3px rgba(91, 140, 158, 0.1);
        }

        .chat-send-btn {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            border: none;
            border-radius: 8px;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 1rem;
        }

        .chat-send-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(91, 140, 158, 0.3);
        }

        .chat-send-btn:active {
            transform: translateY(0);
        }

        /* Scrollbar */
        .chat-messages::-webkit-scrollbar {
            width: 6px;
        }

        .chat-messages::-webkit-scrollbar-track {
            background: transparent;
        }

        .chat-messages::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.1);
            border-radius: 3px;
        }

        .chat-messages::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 0, 0, 0.2);
        }

        /* Skeleton Loading */
        .skeleton {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: loading 1.5s ease-in-out infinite;
            border-radius: 4px;
        }

        @keyframes loading {
            0% {
                background-position: 200% 0;
            }

            100% {
                background-position: -200% 0;
            }
        }

        .skeleton-text {
            height: 16px;
            margin-bottom: 8px;
        }

        .skeleton-title {
            height: 24px;
            width: 60%;
            margin-bottom: 16px;
        }

        .skeleton-card {
            height: 120px;
            margin-bottom: 16px;
        }

        /* Ripple Effect */
        .ripple {
            position: relative;
            overflow: hidden;
        }

        .ripple::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .ripple:active::after {
            width: 300px;
            height: 300px;
        }

        /* Smooth Scroll */
        html {
            scroll-behavior: smooth;
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
        }

        /* Tooltip */
        [data-tooltip] {
            position: relative;
            cursor: pointer;
        }

        [data-tooltip]::before {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(-8px);
            padding: 8px 12px;
            background: rgba(0, 0, 0, 0.9);
            color: white;
            font-size: 0.85rem;
            border-radius: 6px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: all 0.3s ease;
        }

        [data-tooltip]:hover::before {
            opacity: 1;
            transform: translateX(-50%) translateY(-4px);
        }

        /* Bounce In Animation */
        @keyframes bounceIn {
            0% {
                opacity: 0;
                transform: scale(0.3);
            }

            50% {
                opacity: 1;
                transform: scale(1.05);
            }

            70% {
                transform: scale(0.9);
            }

            100% {
                transform: scale(1);
            }
        }

        .bounce-in {
            animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        /* Delivery Details Modal */
        .delivery-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            align-items: flex-start;
            justify-content: center;
            padding: 32px 20px 24px;
            z-index: 9999;
            animation: fadeIn 0.2s ease;
            overflow-y: auto;
            pointer-events: auto;
        }

        .delivery-modal-overlay.active {
            display: flex;
        }

        .delivery-modal {
            background: white;
            border-radius: 12px;
            max-width: 700px;
            width: 100%;
            max-height: calc(100vh - 56px);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            pointer-events: auto;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
            animation: modalSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            margin: 0 auto;
        }

        @keyframes modalSlide {
            from {
                opacity: 0;
                transform: translateY(20px) scale(0.95);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .delivery-modal-header {
            background: white;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
            color: var(--text-primary);
            padding: 20px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
        }

        .delivery-modal-title {
            font-size: 1.25rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--text-primary);
        }

        .delivery-modal-close {
            background: rgba(0, 0, 0, 0.04);
            border: none;
            color: var(--text-secondary);
            width: 32px;
            height: 32px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            font-size: 18px;
        }

        .delivery-modal-close:hover {
            background: rgba(0, 0, 0, 0.08);
            color: var(--text-primary);
        }

        .delivery-modal-content {
            padding: 24px;
            overflow-y: auto;
            flex: 1;
        }

        .modal-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 12px;
            margin-bottom: 16px;
        }

        .summary-item {
            background: var(--gray-light);
            border-radius: 10px;
            padding: 12px;
            border: 1px solid rgba(0, 0, 0, 0.04);
        }

        .summary-label {
            font-size: 0.8rem;
            color: var(--gray);
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .summary-value {
            font-weight: 700;
            color: var(--text-primary);
            font-size: 0.98rem;
        }

        .map-helper {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .map-legend {
            position: absolute;
            left: 12px;
            bottom: 12px;
            background: rgba(255, 255, 255, 0.92);
            border-radius: 10px;
            padding: 8px 10px;
            display: flex;
            gap: 10px;
            align-items: center;
            font-size: 0.8rem;
            color: var(--text-secondary);
            box-shadow: var(--shadow-sm);
            z-index: 2;
        }

        .map-legend span {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .map-legend-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            display: inline-block;
        }

        .delivery-timeline {
            position: relative;
            padding-left: 40px;
            margin-bottom: 24px;
        }

        .delivery-timeline::before {
            content: '';
            position: absolute;
            left: 12px;
            top: 0;
            bottom: 0;
            width: 3px;
            background: linear-gradient(to bottom, var(--secondary) 0%, var(--gray-light) 100%);
        }

        .timeline-item {
            position: relative;
            margin-bottom: 24px;
            animation: slideInFromLeft 0.5s ease-out;
        }

        .timeline-item::before {
            content: '';
            position: absolute;
            left: -34px;
            top: 4px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: white;
            border: 3px solid var(--gray-light);
            transition: all 0.3s ease;
        }

        .timeline-item.completed::before {
            background: var(--secondary);
            border-color: var(--secondary);
            box-shadow: 0 0 12px rgba(0, 200, 83, 0.4);
        }

        .timeline-item.active::before {
            background: var(--primary);
            border-color: var(--primary);
            box-shadow: 0 0 12px rgba(255, 107, 53, 0.4);
            animation: pulse-timeline 2s infinite;
        }

        .timeline-item.pending::before {
            background: #f8fafc;
            border-color: #d1d5db;
            opacity: 0.6;
            box-shadow: none;
        }

        @keyframes pulse-timeline {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.2);
            }
        }

        .timeline-content {
            background: var(--gray-light);
            padding: 16px;
            border-radius: 12px;
            transition: all 0.3s ease;
        }

        .timeline-item.completed .timeline-content {
            background: linear-gradient(135deg, rgba(0, 200, 83, 0.1) 0%, rgba(0, 200, 83, 0.05) 100%);
        }

        .timeline-item.active .timeline-content {
            background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%);
        }

        .timeline-item.pending .timeline-content {
            opacity: 0.5;
            filter: grayscale(0.15);
            background: #f3f4f6;
        }

        .timeline-title-wrapper {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 8px;
        }

        .timeline-title {
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
        }

        .timeline-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            font-size: 0.7rem;
            margin-left: 8px;
        }

        .timeline-badge.completed {
            background: var(--secondary);
            color: white;
            box-shadow: 0 2px 8px rgba(0, 200, 83, 0.3);
        }

        .timeline-badge.active {
            background: var(--primary);
            color: white;
            box-shadow: 0 2px 8px rgba(0, 100, 200, 0.3);
            animation: pulse-badge 1.5s infinite;
        }

        .timeline-item.pending .timeline-badge {
            background: #e5e7eb;
            color: #9ca3af;
            border: 1px solid #d1d5db;
        }

        @keyframes pulse-badge {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.15); }
        }

        .timeline-status-desc {
            font-size: 0.75rem;
            color: var(--gray);
            margin-top: 4px;
            font-weight: 500;
        }

        .delivery-status-eta {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 200, 83, 0.05) 100%);
            border: 1px solid var(--gray-light);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 24px;
        }

        .status-eta-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .status-eta-label {
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            color: var(--gray);
            letter-spacing: 0.5px;
        }

        .status-eta-value {
            font-size: 1rem;
            font-weight: 700;
            color: var(--primary);
        }


        .timeline-time {
            font-size: 0.85rem;
            color: var(--gray);
        }

        .delivery-map-mini {
            height: 300px;
            background: #E5E3DF;
            border-radius: 12px;
            margin-bottom: 24px;
            position: relative;
            overflow: hidden;
            box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .map-route-line {
            position: absolute;
            width: 2px;
            background: linear-gradient(to bottom, var(--primary), var(--secondary));
            transform-origin: top;
            box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
        }

        .detail-section {
            background: #ffffff;
            padding: 22px 20px 20px;
            border-radius: 14px;
            margin-bottom: 20px;
            position: relative;
            border: 1px dashed rgba(0, 0, 0, 0.15);
            box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
            overflow: hidden;
        }

        .detail-section::before,
        .detail-section::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            height: 14px;
            background: radial-gradient(circle, transparent 6px, #ffffff 7px);
            background-size: 18px 14px;
        }

        .detail-section::before {
            top: -7px;
        }

        .detail-section::after {
            bottom: -7px;
            transform: rotate(180deg);
        }

        .detail-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
            gap: 16px;
        }

        .detail-row:last-child {
            border-bottom: none;
        }

        .detail-label {
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--gray);
            font-size: 0.95rem;
        }

        .detail-label i {
            color: var(--primary);
            width: 20px;
        }

        .detail-value {
            font-weight: 600;
            text-align: right;
        }

        .motoboy-detail-card {
            background: linear-gradient(135deg, rgba(0, 200, 83, 0.1) 0%, rgba(0, 200, 83, 0.05) 100%);
            padding: 20px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 20px;
            border: 2px solid rgba(0, 200, 83, 0.2);
        }

        .motoboy-detail-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--secondary) 0%, #008f5c 100%);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.5rem;
            box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
        }

        .motoboy-detail-info {
            flex: 1;
        }

        .motoboy-detail-name {
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .motoboy-detail-meta {
            display: flex;
            gap: 16px;
            font-size: 0.9rem;
            color: var(--gray);
        }

        .motoboy-detail-rating {
            color: var(--warning);
        }

        .modal-actions {
            display: flex;
            gap: 12px;
            padding: 24px;
            background: var(--gray-light);
            border-radius: 0 0 16px 16px;
        }

        .modal-actions .btn {
            flex: 1;
        }

        /* ====================================
           MODAL DE COMANDAS
           ==================================== */

        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            z-index: 9999;
            align-items: center;
            justify-content: center;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal-comanda {
            background: var(--light);
            border-radius: var(--border-radius-lg);
            width: 90%;
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: var(--shadow-xl);
            animation: slideUp 0.3s ease;
        }

        /* Header da Comanda */
        .modal-header-comanda {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: var(--space-xl);
            border-bottom: 1px solid var(--border-color);
            background: linear-gradient(135deg, rgba(229, 57, 53, 0.05), rgba(255, 152, 0, 0.05));
        }

        .modal-header-comanda h2 {
            font-size: 1.5rem;
            color: var(--text-primary);
            margin: 0;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .modal-header-comanda p {
            font-size: 0.9rem;
            color: var(--gray);
            margin: 4px 0 0 32px;
        }

        .btn-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--gray);
            transition: color var(--transition);
            padding: 0;
        }

        .btn-close:hover {
            color: var(--text-primary);
        }

        /* Body da Comanda */
        .modal-body-comanda {
            padding: var(--space-xl);
            display: flex;
            flex-direction: column;
            gap: var(--space-xl);
        }

        /* Info do Dia - Simplificado */
        .comanda-info-day {
            background: linear-gradient(135deg, rgba(91, 140, 158, 0.08) 0%, rgba(67, 160, 71, 0.05) 100%);
            padding: var(--space-lg);
            border-radius: var(--border-radius);
            border-left: 4px solid var(--secondary);
            display: flex;
            flex-direction: column;
            gap: var(--space-md);
        }

        .comanda-info-day .day-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: var(--space);
        }

        .comanda-info-day .day-header strong {
            font-size: 1.3rem;
            color: var(--text-primary);
        }

        .comanda-info-day .status-badge {
            font-size: 0.95rem;
            font-weight: 600;
            padding: 4px 12px;
            border-radius: 20px;
            background: rgba(255, 152, 0, 0.1);
            color: var(--warning);
            white-space: nowrap;
        }

        .comanda-info-day .day-period {
            font-size: 0.9rem;
            color: var(--gray);
            font-weight: 500;
            letter-spacing: 0.3px;
        }

        .info-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .info-item .label {
            font-size: 0.85rem;
            color: var(--gray);
            font-weight: 500;
        }

        .info-item .value {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .info-item .status-pending {
            color: var(--warning);
            display: inline-block;
            width: fit-content;
        }

        /* Lista de Entregas */
        .comanda-items {
            display: flex;
            flex-direction: column;
            gap: var(--space);
        }

        .comanda-list-header {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: var(--space);
            padding: var(--space) var(--space-lg);
            background: var(--primary-bg);
            border-radius: var(--border-radius);
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--gray);
        }

        .comanda-list {
            display: flex;
            flex-direction: column;
            gap: var(--space-sm);
            max-height: 300px;
            overflow-y: auto;
        }

        .comanda-item {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: var(--space);
            padding: var(--space) var(--space-lg);
            background: var(--primary-bg);
            border-radius: var(--border-radius);
            border-left: 3px solid var(--warning);
            transition: all var(--transition);
        }

        .comanda-item:hover {
            background: #f0f0f0;
            transform: translateX(4px);
        }

        .comanda-item-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .comanda-item-title {
            font-weight: 600;
            color: var(--text-primary);
            font-size: 0.95rem;
        }

        .comanda-item-meta {
            font-size: 0.8rem;
            color: var(--gray);
        }

        .comanda-item-value {
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--danger);
        }

        .empty-state {
            padding: 2rem;
            text-align: center;
            color: var(--gray);
        }

        .empty-state i {
            font-size: 2.5rem;
            margin-bottom: var(--space);
            opacity: 0.5;
        }

        /* Alerta de Dívida - Simplificado */
        .comanda-alert {
            background: linear-gradient(135deg, rgba(229, 57, 53, 0.05), rgba(255, 152, 0, 0.05));
            border: 2px solid var(--danger);
            border-radius: var(--border-radius);
            padding: var(--space-lg);
            display: flex;
            gap: var(--space-lg);
        }

        .alert-icon {
            font-size: 1.5rem;
            flex-shrink: 0;
        }

        .alert-text {
            flex: 1;
        }

        .alert-text strong {
            display: block;
            color: var(--danger);
            font-size: 1rem;
            margin-bottom: 4px;
        }

        .alert-text p {
            font-size: 0.9rem;
            color: var(--text-primary);
            margin: 0;
        }

        /* Tabs da Comanda */
        .comanda-tabs {
            display: flex;
            gap: var(--space-sm);
            border-bottom: 2px solid var(--border-color);
            margin-bottom: var(--space-lg);
        }

        .tab-btn {
            background: none;
            border: none;
            padding: var(--space-md) var(--space-lg);
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--gray);
            cursor: pointer;
            border-bottom: 3px solid transparent;
            transition: all var(--transition);
        }

        .tab-btn:hover {
            color: var(--primary);
        }

        .tab-btn.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        /* Histórico */
        .history-list {
            display: flex;
            flex-direction: column;
            gap: var(--space-md);
        }

        .history-item {
            background: var(--light);
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius);
            padding: var(--space-lg);
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all var(--transition);
        }

        .history-item:hover {
            border-color: var(--primary);
            box-shadow: var(--shadow-sm);
        }

        .history-item-left {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .history-item-date {
            font-weight: bold;
            color: var(--text-primary);
            font-size: 1rem;
        }

        .history-item-info {
            font-size: 0.85rem;
            color: var(--gray);
        }

        .history-item-right {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 4px;
        }

        .history-item-value {
            font-size: 1.1rem;
            font-weight: bold;
            color: var(--danger);
        }

        .history-item-status {
            font-size: 0.85rem;
            padding: 4px 10px;
            border-radius: 12px;
        }

        .history-item-status.paid {
            background: rgba(67, 160, 71, 0.1);
            color: var(--success);
        }

        .history-item-status.pending {
            background: rgba(255, 152, 0, 0.1);
            color: var(--warning);
        }

        .history-item .btn-sm {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.85rem;
            padding: 6px 12px;
            white-space: nowrap;
        }

        /* Footer da Comanda -->
        .modal-footer-comanda {
            padding: var(--space-xl);
            border-top: 1px solid var(--border-color);
            display: flex;
            gap: var(--space);
            justify-content: flex-end;
        }

        .modal-footer-comanda .btn {
            flex: 1;
            max-width: 200px;
        }

        @media (max-width: 600px) {
            .modal-comanda {
                width: 95%;
                max-height: 95vh;
                border-radius: var(--border-radius);
            }

            .comanda-info-day {
                gap: var(--space);
            }

            .modal-footer-comanda {
                flex-direction: column;
            }

            .modal-footer-comanda .btn {
                max-width: none;
                width: 100%;
            }
        }

        @media (max-width: 400px) {
            .modal-header-comanda h2 {
                font-size: 1.25rem;
            }

            .modal-header-comanda p {
                margin-left: 24px;
            }

            .comanda-list-header {
                grid-template-columns: 1fr auto;
                font-size: 0.85rem;
            }

            .comanda-item {
                grid-template-columns: 1fr auto;
            }
        }

        @media (max-width: 768px) {
            .delivery-modal-overlay {
                padding: 0;
                align-items: stretch;
            }

            .delivery-modal {
                max-width: 100%;
                max-height: none;
                border-radius: 0;
                margin: 0;
            }

            .delivery-modal-header {
                border-radius: 0;
                padding: var(--space);
            }

            .delivery-modal-title {
                font-size: 1.125rem;
            }

            .delivery-modal-content {
                padding: var(--space);
            }

            .detail-row {
                flex-direction: column;
                align-items: flex-start;
            }

            .detail-value {
                text-align: left;
                width: 100%;
            }

            .modal-actions {
                border-radius: 0;
                flex-direction: column;
                padding: var(--space);
            }

            .delivery-timeline {
                padding-left: 30px;
            }
        }

        /* Responsive */
        @media (min-width: 768px) {
            .sidebar {
                display: block;
            }

            .mobile-nav {
                display: none;
            }
        }

        @media (max-width: 767px) {
            .main-content {
                padding: 15px;
                padding-bottom: 120px;
            }

            .deliveries-grid {
                grid-template-columns: 1fr;
            }

            .motoboys-grid {
                grid-template-columns: 1fr;
            }

            .quick-actions {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Auth UI */
        .auth-status {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .auth-user {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--dark);
        }

        .user-profile-section {
            display: flex;
            transition: var(--transition);
            border-radius: var(--border-radius);
            padding: var(--space-xs);
        }

        .user-profile-section:hover {
            background: var(--gray-50);
        }

        .user-profile-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 1rem;
            box-shadow: var(--shadow);
            transition: var(--transition);
            overflow: hidden;
        }

        .user-profile-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .user-profile-section:hover .user-profile-avatar {
            transform: scale(1.05);
            box-shadow: var(--shadow-lg);
        }

        /* Modal de Perfil */
        .profile-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.65);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            z-index: 9999;
            pointer-events: auto;
        }

        .profile-modal-overlay.active {
            display: flex;
        }

        .profile-modal {
            background: var(--bg-primary);
            border-radius: var(--border-radius-lg);
            max-width: 500px;
            width: 100%;
            box-shadow: var(--shadow-xl);
            animation: slideUp 0.3s ease;
            pointer-events: auto;
        }

        .profile-modal-header {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            padding: var(--space-xl);
            border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .profile-modal-title {
            font-size: 1.25rem;
            font-weight: 700;
        }

        .profile-modal-close {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .profile-modal-close:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: rotate(90deg);
        }

        .profile-modal-content {
            padding: var(--space-xl);
        }

        .profile-photo-section {
            text-align: center;
            margin-bottom: var(--space-xl);
        }

        .profile-photo-container {
            position: relative;
            display: inline-block;
            margin-bottom: var(--space);
        }

        .profile-photo {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
            font-weight: 700;
            box-shadow: var(--shadow-lg);
            overflow: hidden;
        }

        .profile-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .profile-photo-upload {
            position: absolute;
            bottom: 0;
            right: 0;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--primary);
            color: white;
            border: 3px solid var(--bg-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
        }

        .profile-photo-upload:hover {
            background: var(--primary-dark);
            transform: scale(1.1);
        }

        .profile-photo-upload input {
            display: none;
        }

        .profile-info-item {
            margin-bottom: var(--space-lg);
        }

        .profile-info-label {
            font-size: 0.875rem;
            color: var(--text-secondary);
            margin-bottom: var(--space-xs);
            font-weight: 600;
        }

        .profile-info-value {
            font-size: 1rem;
            color: var(--text-primary);
            font-weight: 500;
        }

        .profile-logout-btn {
            width: 100%;
            background: white;
            color: #dc2626;
            border: 2px solid #dc2626;
            transition: all 0.3s ease;
        }

        .profile-logout-btn:hover {
            background: #dc2626;
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
        }

        .app-locked header,
        .app-locked .main-layout,
        .app-locked .mobile-nav {
            pointer-events: none;
        }

        .auth-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.55);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            z-index: 999;
            pointer-events: auto;
        }

        .auth-overlay.active {
            display: flex;
        }

        .auth-modal {
            width: 100%;
            max-width: 420px;
            background: var(--light);
            border-radius: 14px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            pointer-events: auto;
        }

        .auth-header {
            padding: 20px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
        }

        .auth-header h2 {
            font-size: 1.3rem;
            margin-bottom: 5px;
        }

        .auth-tabs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            background: var(--gray-light);
        }

        .auth-tab {
            padding: 12px 16px;
            text-align: center;
            font-weight: 600;
            border: none;
            background: transparent;
            cursor: pointer;
            color: var(--gray);
        }

        .auth-tab.active {
            background: var(--light);
            color: var(--primary);
        }

        .auth-body {
            padding: 20px;
        }

        .auth-form {
            display: none;
        }

        .auth-form.active {
            display: block;
        }

        .auth-message {
            margin-top: 10px;
            font-size: 0.9rem;
            color: var(--danger);
        }

        .auth-hint {
            font-size: 0.8rem;
            color: var(--gray);
            margin-top: 8px;
        }

        /* Loading Overlay */
        .loading-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.7);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            pointer-events: auto;
        }

        .loading-overlay.active {
            display: flex;
        }

        .loading-content {
            text-align: center;
            color: white;
        }

        .loading-spinner {
            width: 60px;
            height: 60px;
            border: 4px solid rgba(255, 255, 255, 0.2);
            border-top-color: var(--primary);
            border-right-color: var(--secondary);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin: 0 auto 20px;
            position: relative;
        }

        .loading-spinner::after {
            content: '';
            position: absolute;
            top: 4px;
            left: 4px;
            right: 4px;
            bottom: 4px;
            border: 3px solid transparent;
            border-top-color: rgba(255, 255, 255, 0.5);
            border-radius: 50%;
            animation: spin 1.2s linear infinite reverse;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .loading-text {
            font-size: 1.1rem;
            font-weight: 600;
        }

        /* Google Maps Autocomplete */
        .pac-container {
            z-index: 10000;
            font-family: 'Manrope', sans-serif;
        }

        /* QR Code Styles */
        [id^="qr_wrapper_"] {
            overflow: visible !important;
            position: relative !important;
        }

        [id^="qr_wrapper_"] canvas {
            display: block !important;
            width: 80px !important;
            height: 80px !important;
            margin: 0 !important;
            padding: 0 !important;
            opacity: 1 !important;
            visibility: visible !important;
            position: relative !important;
            z-index: 1 !important;
        }

        [id^="qr_wrapper_"] img {
            display: none !important;
        }

        /* Success Modal */
        .success-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            z-index: 9998;
            animation: fadeIn 0.3s ease;
            pointer-events: auto;
        }

        .success-overlay.active {
            display: flex;
        }

        .success-modal {
            background: var(--light);
            border-radius: 20px;
            max-width: 480px;
            width: 100%;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideUp 0.4s ease;
            pointer-events: auto;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .success-header {
            background: linear-gradient(135deg, var(--secondary) 0%, #00A843 100%);
            padding: 40px 30px;
            text-align: center;
            color: white;
        }

        .success-icon {
            width: 80px;
            height: 80px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            animation: scaleIn 0.5s ease 0.2s both;
        }

        .success-icon i {
            font-size: 2.5rem;
        }

        @keyframes scaleIn {
            from {
                transform: scale(0);
            }

            to {
                transform: scale(1);
            }
        }

        .success-header h2 {
            font-size: 1.5rem;
            margin-bottom: 8px;
        }

        .success-header p {
            opacity: 0.95;
            font-size: 0.95rem;
        }

        .success-body {
            padding: 30px;
        }

        .success-details {
            background: var(--gray-light);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 25px;
        }

        .success-detail-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid var(--border);
        }

        .success-detail-row:last-child {
            border-bottom: none;
        }

        .success-detail-label {
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--gray);
            font-size: 0.9rem;
        }

        .success-detail-label i {
            color: var(--primary);
            width: 18px;
        }

        .success-detail-value {
            font-weight: 600;
            color: var(--dark);
        }

        .success-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .success-btn {
            padding: 14px 20px;
            border-radius: 10px;
            border: none;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 0.95rem;
        }

        .success-btn-primary {
            background: var(--primary);
            color: white;
        }

        .success-btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
        }

        .success-btn-secondary {
            background: var(--gray-light);
            color: var(--dark);
        }

        .success-btn-secondary:hover {
            background: var(--border);
        }

        /* ========================================
           📊 DASHBOARD KPIs - FAT DESIGN           ======================================== */

        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: var(--space-lg);
            margin-bottom: var(--space-2xl);
            max-width: 100%;
        }

        .metric-card {
            background: #ffffff;
            border-radius: 12px;
            padding: 24px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            cursor: pointer;
            border: 1px solid #e5e7eb;
        }

        .metric-card::before {
            display: none;
        }

        .metric-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            border-color: #d1d5db;
        }

        .metric-card:hover::before {
            display: none;
        }

        .metric-card-glow {
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(99, 102, 241, 0.03), transparent 70%);
            pointer-events: none;
        }

        .metric-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: var(--space-lg);
            position: relative;
            z-index: 1;
        }

        .metric-icon {
            width: 56px;
            height: 56px;
            border-radius: 12px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: white;
            box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
            transition: all 0.3s ease;
        }

        .metric-card:hover .metric-icon {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
        }

        .metric-trend {
            display: flex;
            align-items: center;
            gap: var(--space-xs);
            font-size: 0.875rem;
            font-weight: 700;
            padding: var(--space-xs) var(--space);
            border-radius: 20px;
        }

        .metric-trend.up {
            background: rgba(16, 185, 129, 0.1);
            color: var(--secondary);
        }

        .metric-trend.down {
            background: rgba(239, 68, 68, 0.1);
            color: var(--danger);
        }

        .metric-trend i {
            font-size: 0.75rem;
        }

        .metric-value {
            font-size: 2.5rem;
            font-weight: 700;
            color: #000000;
            margin-bottom: var(--space-sm);
            line-height: 1;
            position: relative;
            z-index: 1;
        }

        .metric-label {
            color: var(--text-secondary);
            font-size: 0.875rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            position: relative;
            z-index: 1;
        }

        .metric-chart {
            margin-top: var(--space);
            height: 60px;
            position: relative;
            z-index: 1;
        }

        /* ========================================
           📈 CHART WIDGETS
           ======================================== */

        .chart-widget {
            background: #ffffff;
            border-radius: 12px;
            padding: 24px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
            margin-bottom: 24px;
            border: 1px solid #e5e7eb;
            transition: all 0.3s ease;
        }

        .chart-widget:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .widget-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: var(--space-lg);
            flex-wrap: wrap;
            gap: var(--space);
        }

        .widget-title {
            font-size: 1.125rem;
            font-weight: 700;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: var(--space-sm);
            font-family: var(--font-display);
        }

        .widget-actions {
            display: flex;
            gap: var(--space-sm);
        }

        .widget-btn {
            padding: var(--space-sm) var(--space);
            border-radius: var(--border-radius-sm);
            border: 1px solid var(--border-color);
            background: var(--bg-primary);
            color: var(--text-secondary);
            font-size: 0.875rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }

        .widget-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            box-shadow: var(--shadow-sm);
        }

        .widget-btn:hover:not(.active) {
            border-color: var(--primary);
            color: var(--primary);
            background: var(--primary-bg);
        }

        .chart-container {
            position: relative;
            height: 280px;
        }

        .charts-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: var(--space-lg);
            margin-bottom: var(--space-xl);
        }

        @media (min-width: 1024px) {
            .charts-grid {
                grid-template-columns: 1.5fr 1fr;
            }
        }

        .timeline-scroll-container {
            max-height: 400px;
            overflow-y: auto;
            padding-right: var(--space-sm);
        }

        .activity-scroll-container {
            max-height: 400px;
            overflow-y: auto;
            padding-right: var(--space-sm);
        }

        /* ========================================
           ⏱️ TIMELINE VISUAL
           ======================================== */

        .delivery-timeline {
            background: var(--bg-primary);
            border-radius: var(--border-radius-lg);
            padding: var(--space-xl);
            box-shadow: var(--shadow);
            border: 1px solid var(--border-color);
        }

        .timeline-item {
            display: flex;
            gap: var(--space);
            padding: var(--space) 0;
            position: relative;
        }

        .timeline-item:not(:last-child) {
            border-bottom: 1px solid var(--gray-lighter);
        }

        .timeline-icon {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: var(--gradient-primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
            box-shadow: var(--shadow-md);
            animation: pulse-glow 2s ease-in-out infinite;
        }

        @keyframes pulse-glow {

            0%,
            100% {
                box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.6);
            }

            50% {
                box-shadow: 0 0 0 10px rgba(14, 165, 233, 0);
            }
        }

        .timeline-content {
            flex: 1;
        }

        .timeline-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        .timeline-title {
            font-weight: 700;
            font-size: 15px;
            color: var(--dark);
        }

        .timeline-time {
            font-size: 12px;
            color: var(--gray);
            font-weight: 600;
        }

        .timeline-description {
            color: var(--gray);
            font-size: 14px;
            line-height: 1.5;
        }

        .timeline-meta {
            display: flex;
            gap: 16px;
            margin-top: 12px;
        }

        .timeline-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: var(--gray-lighter);
            border-radius: 8px;
            font-size: 12px;
            font-weight: 600;
            color: var(--dark);
        }

        /* ========================================
           📊 ACTIVITY FEED - MODERNIZADO
           ======================================== */
        .activity-feed {
            background: var(--bg-primary);
            border-radius: var(--border-radius-lg);
            padding: var(--space-xl);
            box-shadow: var(--shadow);
            border: 1px solid var(--border-color);
        }

        .activity-item {
            display: flex;
            gap: var(--space);
            padding: var(--space) 0;
            border-bottom: 1px solid var(--border-color);
            transition: var(--transition);
        }

        .activity-item:last-child {
            border-bottom: none;
        }

        .activity-item:hover {
            background: var(--gray-50);
            margin: 0 calc(var(--space) * -1);
            padding-left: var(--space);
            padding-right: var(--space);
            border-radius: var(--border-radius-sm);
        }

        @keyframes slideInLeft {
            from {
                opacity: 0;
                transform: translateX(-20px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .activity-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.875rem;
            flex-shrink: 0;
        }

        .activity-content {
            flex: 1;
        }

        .activity-text {
            font-size: 0.875rem;
            color: var(--text-primary);
            margin-bottom: var(--space-xs);
            font-weight: 500;
        }

        .activity-text strong {
            font-weight: 700;
        }

        .activity-time {
            font-size: 0.75rem;
            color: var(--text-tertiary);
        }

        /* ========== MAPA DE CALOR ========== */
        .heatmap-widget {
            background: white;
            border-radius: 20px;
            padding: 28px;
            box-shadow: var(--shadow-lg);
        }

        .heatmap-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 8px;
            margin-top: 20px;
        }

        .heatmap-cell {
            aspect-ratio: 1;
            border-radius: 8px;
            background: var(--gray-lighter);
            transition: all var(--transition-base);
            cursor: pointer;
            position: relative;
        }

        .heatmap-cell:hover::after {
            content: attr(data-count);
            position: absolute;
            top: -30px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--darker);
            color: white;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 700;
            white-space: nowrap;
        }

        .heatmap-cell[data-level="1"] {
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(16, 185, 129, 0.12));
        }

        .heatmap-cell[data-level="2"] {
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.4), rgba(16, 185, 129, 0.2));
        }

        .heatmap-cell[data-level="3"] {
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.6), rgba(16, 185, 129, 0.35));
        }

        .heatmap-cell[data-level="4"] {
            background: var(--gradient-primary);
        }

        .heatmap-legend {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 20px;
            font-size: 12px;
            color: var(--gray);
        }

        .heatmap-legend-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .heatmap-legend-color {
            width: 16px;
            height: 16px;
            border-radius: 4px;
        }

        /* ========== PROGRESS RINGS ========== */
        .progress-rings {
            display: flex;
            gap: 32px;
            justify-content: space-around;
            margin-top: 24px;
        }

        .progress-ring-wrapper {
            text-align: center;
        }

        .progress-ring-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--gray);
            margin-top: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* ========== LEADERBOARD ========== */
        .leaderboard {
            background: white;
            border-radius: 20px;
            padding: 28px;
            box-shadow: var(--shadow-lg);
        }

        .leaderboard-item {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 16px;
            background: var(--gray-lighter);
            border-radius: 12px;
            margin-bottom: 12px;
            transition: all var(--transition-base);
        }

        .leaderboard-item:hover {
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(16, 185, 129, 0.05));
            transform: translateX(4px);
        }

        .leaderboard-rank {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--gradient-primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 900;
            font-size: 14px;
            flex-shrink: 0;
        }

        .leaderboard-rank.top {
            background: linear-gradient(135deg, #FFD700, #FFA500);
        }

        .leaderboard-info {
            flex: 1;
        }

        .leaderboard-name {
            font-weight: 700;
            font-size: 15px;
            color: var(--dark);
            margin-bottom: 4px;
        }

        .leaderboard-stats {
            font-size: 12px;
            color: var(--gray);
        }

        .leaderboard-value {
            font-size: 18px;
            font-weight: 800;
            color: var(--primary);
        }

        /* ========================================
           ✨ ANIMATIONS & MICROINTERACTIONS
           ======================================== */

        /* Loading Skeleton */
        .skeleton {
            background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s ease-in-out infinite;
            border-radius: var(--border-radius-sm);
        }

        @keyframes shimmer {
            0% {
                background-position: 200% 0;
            }

            100% {
                background-position: -200% 0;
            }
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }

        ::-webkit-scrollbar-track {
            background: var(--gray-100);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, var(--primary-dark), var(--primary));
        }

        /* Tooltip */
        [data-tooltip] {
            position: relative;
            cursor: pointer;
        }

        [data-tooltip]::before {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(-8px);
            padding: var(--space-sm) var(--space);
            background: var(--gray-900);
            color: white;
            font-size: 0.8125rem;
            border-radius: var(--border-radius-sm);
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: var(--transition);
            font-weight: 500;
            box-shadow: var(--shadow-lg);
        }

        [data-tooltip]:hover::before {
            opacity: 1;
            transform: translateX(-50%) translateY(-4px);
        }

        /* Focus Visible */
        *:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }

        /* Selection */
        ::selection {
            background: var(--primary-bg);
            color: var(--primary-dark);
        }

        /* Reduce Motion */
        @media (prefers-reduced-motion: reduce) {

            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }

        /* ========================================
           📱 RESPONSIVE DESIGN
           ======================================== */

        @media (max-width: 768px) {
            :root {
                --space: 0.875rem;
                --space-lg: 1.25rem;
                --space-xl: 1.75rem;
            }

            .header-content {
                padding: var(--space) 0;
                gap: var(--space);
            }

            .logo {
                font-size: 1.25rem;
            }

            .logo i {
                width: 40px;
                height: 40px;
                font-size: 1.25rem;
            }

            .auth-status {
                flex-wrap: wrap;
                gap: var(--space-sm);
            }

            .auth-status .btn {
                font-size: 0.875rem;
                padding: 8px 16px;
            }

            .user-profile-section {
                font-size: 0.875rem;
                padding: 6px 12px 6px 6px;
            }

            .user-profile-avatar {
                width: 36px;
                height: 36px;
            }

            .header-badge {
                font-size: 0.8rem;
                padding: 6px 12px;
            }

            .header-badge span {
                display: none;
            }

            .header-badge-count {
                width: 22px;
                height: 22px;
                font-size: 0.7rem;
            }

            #deliveryMap {
                height: 400px;
            }

            .map-kpis {
                grid-template-columns: repeat(2, 1fr);
            }

            .request-container {
                border-radius: var(--border-radius);
            }

            .request-header {
                padding: var(--space-lg);
            }

            .request-header h2 {
                font-size: 1.25rem;
            }

            .request-form {
                padding: var(--space);
            }

            .form-control,
            .form-control select,
            .form-control textarea {
                font-size: 0.9375rem;
            }

            .distance-info {
                flex-direction: column;
                gap: var(--space);
                text-align: center;
            }

            .distance-info>div {
                width: 100%;
            }

            .price-row {
                font-size: 0.875rem;
            }

            .price-row>span {
                width: 100%;
            }

            .distance-value {
                font-size: 1.125rem;
            }

            .price-calculator {
                padding: var(--space);
            }

            .map-legend {
                gap: var(--space);
            }

            .legend-item {
                font-size: 0.75rem;
            }

            .auth-status {
                flex-wrap: wrap;
                gap: var(--space-sm);
                width: 100%;
                justify-content: flex-end;
            }

            .main-content {
                padding: var(--space-lg);
                padding-bottom: 100px;
            }

            .section-title {
                font-size: 1.5rem;
            }

            .metric-value {
                font-size: 1.75rem;
            }

            .metric-icon {
                width: 48px;
                height: 48px;
                font-size: 1.25rem;
            }

            .metric-chart {
                height: 50px;
            }

            .dashboard-grid {
                grid-template-columns: 1fr;
                gap: var(--space);
                max-width: 100%;
            }

            .charts-grid {
                grid-template-columns: 1fr;
            }

            .distance-info {
                flex-direction: column;
                gap: var(--space);
                text-align: center;
            }

            .delivery-modal-content {
                padding: var(--space);
            }

            .profile-modal {
                max-width: 100%;
                margin: var(--space);
            }

            .timeline-scroll-container,
            .activity-scroll-container {
                max-height: 300px;
            }

            .deliveries-grid {
                grid-template-columns: 1fr;
            }

            .quick-actions {
                grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            }

            .sidebar {
                display: none !important;
            }
        }

        /* ========================================
           🗺️ MAPA INTERATIVO DE ENTREGAS
           ======================================== */
        .map-container-wrapper {
            background: linear-gradient(165deg, #ffffff 0%, #f7fbff 100%);
            border-radius: 18px;
            padding: 24px;
            box-shadow: 0 20px 45px rgba(15, 23, 42, 0.09);
            border: 1px solid #dbe8f7;
            margin-bottom: 32px;
            overflow: hidden;
            transition: all 0.3s ease;
            position: relative;
        }

        .map-container-wrapper::before {
            content: '';
            position: absolute;
            width: 300px;
            height: 300px;
            right: -130px;
            top: -120px;
            border-radius: 50%;
            pointer-events: none;
            background: radial-gradient(circle, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0));
        }

        .map-container-wrapper:hover {
            box-shadow: 0 24px 52px rgba(15, 23, 42, 0.12);
            transform: translateY(-2px);
        }

        .map-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            flex-wrap: wrap;
            gap: 12px;
        }

        .map-title {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        .map-title i {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, #2563eb, #0ea5e9);
            color: white;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            box-shadow: 0 10px 20px rgba(14, 165, 233, 0.24);
        }

        .map-kpis {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            margin-bottom: 20px;
        }

        .map-kpi {
            background: white;
            padding: 20px;
            border-radius: var(--border-radius);
            border: 2px solid #e0e0e0;
            text-align: center;
            transition: all 0.3s ease;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        }

        .map-kpi:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
            border-color: var(--secondary);
        }

        .map-kpi-value {
            font-size: 2.5rem;
            font-weight: 900;
            margin-bottom: 6px;
            color: var(--secondary);
            transition: all 0.3s ease;
        }

        .map-kpi-label {
            font-size: 0.9rem;
            color: var(--text-primary);
            font-weight: 600;
        }

        .map-kpi.active .map-kpi-value {
            color: var(--primary);
        }

        .map-kpi.completed .map-kpi-value {
            color: #10b981;
        }

        #deliveryMap {
            width: 100%;
            height: 450px;
            border-radius: var(--border-radius-lg);
            box-shadow: var(--shadow-sm);
            border: 1px solid rgba(0, 0, 0, 0.04);
            overflow: hidden;
        }

        .map-legend {
            display: flex;
            justify-content: center;
            gap: var(--space-xl);
            margin-top: var(--space-lg);
            flex-wrap: wrap;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.875rem;
            font-weight: 500;
        }

        .legend-icon {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.875rem;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .legend-icon.restaurant {
            background: linear-gradient(135deg, #ef4444, #dc2626);
        }

        .legend-icon.delivery {
            background: linear-gradient(135deg, #3b82f6, #2563eb);
        }

        .legend-icon.driver {
            background: linear-gradient(135deg, #10b981, #059669);
        }

        .legend-icon.route {
            width: 48px;
            height: 4px;
            border-radius: 2px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            box-shadow: 0 1px 3px rgba(14, 165, 233, 0.3);
        }

        @media (min-width: 769px) {
            .mobile-nav {
                display: none;
            }

            .sidebar.active {
                display: block;
            }
        }

        @media (max-width: 480px) {
            .logo span {
                font-size: 1.125rem;
            }

            .logo i {
                width: 28px;
                height: 28px;
                font-size: 16px;
            }

            .header-content {
                height: 56px;
                padding: 10px 0;
            }

            .auth-status .btn {
                font-size: 13px;
                padding: 6px 12px;
            }

            .user-profile-section {
                padding: 4px 10px 4px 4px;
            }

            .user-profile-avatar {
                width: 28px;
                height: 28px;
                font-size: 13px;
            }

            .header-badge {
                padding: 5px 10px;
                font-size: 12px;
            }

            .header-badge-count {
                min-width: 18px;
                height: 18px;
                font-size: 10px;
            }

            .metric-grid {
                grid-template-columns: 1fr;
            }

            .quick-actions {
                grid-template-columns: 1fr;
            }

            .btn {
                font-size: 0.875rem;
                padding: 10px 16px;
            }

            .section-title {
                font-size: 1.25rem;
            }

            .widget-title {
                font-size: 1rem;
            }

            #deliveryMap {
                height: 350px;
            }

            .map-kpis {
                grid-template-columns: 1fr;
            }

            .map-container-wrapper {
                padding: 16px;
                margin-bottom: var(--space);
            }

            .map-title {
                font-size: 1rem;
            }

            .map-title i {
                width: 32px;
                height: 32px;
                font-size: 16px;
            }

            .map-legend {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }

            .request-header {
                padding: var(--space);
            }

            .request-header h2 {
                font-size: 1.125rem;
            }

            .request-header p {
                font-size: 0.875rem;
            }

            .request-form {
                padding: var(--space-sm);
            }

            .btn {
                width: 100%;
                padding: 12px;
                font-size: 0.9375rem;
            }

            /* Auth Modal Mobile */
            .auth-overlay {
                padding: 0;
            }

            .auth-modal {
                max-width: 100%;
                min-height: 100vh;
                border-radius: 0;
                display: flex;
                flex-direction: column;
            }

            .auth-header {
                padding: var(--space);
            }

            .auth-header h2 {
                font-size: 1.125rem;
            }

            .auth-body {
                padding: var(--space);
                flex: 1;
            }

            /* Success Modal Mobile */
            .success-overlay {
                padding: 0;
            }

            .success-modal {
                max-width: 100%;
                border-radius: 0;
                min-height: 100vh;
                display: flex;
                flex-direction: column;
            }

            .success-header {
                padding: var(--space-xl) var(--space);
            }

            .success-body {
                padding: var(--space);
                flex: 1;
            }

            /* Delivery Modal Mobile */
            .delivery-modal {
                max-width: 100%;
                max-height: 100vh;
                border-radius: 0;
            }

            .delivery-modal-header {
                padding: 16px;
            }

            .delivery-modal-title {
                font-size: 1.125rem;
            }

            .delivery-modal-content {
                padding: 16px;
            }
        }

        @media (min-width: 1024px) {
            .container {
                max-width: 1400px;
            }
        }

        /* ========================================
           🏠 HOME REDESIGN - CLARO PROFISSIONAL
           ======================================== */
        #dashboard .hero-overview {
            background: linear-gradient(140deg, #ffffff 0%, #f8fbff 100%);
            border: 1px solid #dbe7f3;
            border-radius: 20px;
            box-shadow: 0 16px 35px rgba(30, 58, 95, 0.08);
            padding: 28px;
            overflow: hidden;
            position: relative;
        }

        #dashboard .hero-overview::before {
            content: '';
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at 8% 10%, rgba(37, 99, 235, 0.14), transparent 35%),
                radial-gradient(circle at 92% 85%, rgba(14, 165, 233, 0.12), transparent 35%);
            pointer-events: none;
        }

        #dashboard .hero-main {
            margin-bottom: 20px;
            position: relative;
            z-index: 1;
        }

        #dashboard .hero-kicker {
            background: #eef5ff;
            color: #1d4ed8;
            border: 1px solid #c8dcff;
            border-radius: 999px;
        }

        #dashboard .hero-title {
            font-size: 2rem;
            line-height: 1.12;
            letter-spacing: -0.03em;
            color: #0f172a;
        }

        #dashboard .hero-subtitle {
            max-width: 620px;
            color: #475569;
            font-size: 1rem;
        }

        .delivery-preview-panel {
            position: relative;
            z-index: 1;
            background: #ffffff;
            border: 1px solid #d7e2ed;
            border-radius: 18px;
            padding: 18px;
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
        }

        .delivery-preview-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 14px;
            flex-wrap: wrap;
        }

        .delivery-preview-header h3 {
            margin: 0;
            font-family: var(--font-display);
            font-size: 1.1rem;
            color: #0f172a;
        }

        .delivery-preview-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 7px 12px;
            border-radius: 999px;
            background: #eff6ff;
            border: 1px solid #bfdbfe;
            color: #1d4ed8;
            font-size: 0.8rem;
            font-weight: 800;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .delivery-preview-slider-wrap {
            display: grid;
            grid-template-columns: auto 1fr auto;
            align-items: stretch;
            gap: 10px;
        }

        .preview-nav-btn {
            width: 38px;
            border: 1px solid #bfdbfe;
            border-radius: 12px;
            background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
            color: #1d4ed8;
            cursor: pointer;
            transition: all 180ms ease;
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .preview-nav-btn:hover {
            background: #dbeafe;
            transform: translateY(-1px);
        }

        .preview-nav-btn:disabled {
            opacity: 0.45;
            cursor: not-allowed;
            transform: none;
        }

        .delivery-preview-list {
            display: flex;
            gap: 14px;
            overflow-x: auto;
            scroll-behavior: smooth;
            scroll-snap-type: x mandatory;
            padding-bottom: 6px;
        }

        .delivery-preview-list::-webkit-scrollbar {
            height: 7px;
        }

        .delivery-preview-list::-webkit-scrollbar-track {
            background: #e2e8f0;
            border-radius: 999px;
        }

        .delivery-preview-list::-webkit-scrollbar-thumb {
            background: #94a3b8;
            border-radius: 999px;
        }

        .delivery-preview-card {
            border: 1px solid #dbe5ef;
            border-radius: 14px;
            background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
            padding: 14px;
            box-shadow: 0 5px 16px rgba(15, 23, 42, 0.05);
            transform: translateY(8px);
            opacity: 0;
            animation: previewRise 480ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
            min-width: min(320px, 88vw);
            flex: 0 0 min(320px, 88vw);
            scroll-snap-align: start;
        }

        .delivery-preview-card:hover {
            transform: translateY(-2px);
            border-color: #93c5fd;
            box-shadow: 0 12px 22px rgba(30, 64, 175, 0.13);
        }

        .delivery-preview-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 10px;
        }

        .delivery-preview-code {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            border: 1px solid #dbe7f5;
            background: #f8fbff;
            color: #1e3a8a;
            border-radius: 10px;
            padding: 4px 8px;
            font-size: 0.8rem;
            font-weight: 700;
        }

        .delivery-preview-status {
            font-size: 0.74rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            padding: 4px 8px;
            border-radius: 999px;
            border: 1px solid transparent;
        }

        .delivery-preview-status.searching {
            color: #92400e;
            background: #fef3c7;
            border-color: #fcd34d;
        }

        .delivery-preview-status.accepted,
        .delivery-preview-status.arrived_pickup {
            color: #1e40af;
            background: #dbeafe;
            border-color: #93c5fd;
        }

        .delivery-preview-status.picked_up,
        .delivery-preview-status.on_the_way,
        .delivery-preview-status.arrived_destination,
        .delivery-preview-status.returning_to_origin {
            color: #0f766e;
            background: #ccfbf1;
            border-color: #5eead4;
        }

        .delivery-preview-status.delivered {
            color: #166534;
            background: #dcfce7;
            border-color: #86efac;
        }

        .delivery-preview-status.cancelled {
            color: #991b1b;
            background: #fee2e2;
            border-color: #fca5a5;
        }

        .delivery-preview-client {
            margin: 0;
            color: #0f172a;
            font-weight: 700;
            font-size: 1rem;
        }

        .delivery-preview-address {
            margin: 4px 0 12px;
            color: #475569;
            font-size: 0.9rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .delivery-preview-meta {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-bottom: 12px;
        }

        .delivery-preview-meta-item {
            border: 1px solid #e3ebf4;
            border-radius: 10px;
            padding: 8px;
            background: #ffffff;
        }

        .delivery-preview-meta-label {
            display: block;
            color: #64748b;
            font-size: 0.74rem;
            margin-bottom: 4px;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            font-weight: 700;
        }

        .delivery-preview-meta-value {
            color: #1e293b;
            font-size: 0.88rem;
            font-weight: 700;
        }

        .preview-track-btn {
            width: 100%;
            border: 1px solid #bfdbfe;
            background: #eff6ff;
            color: #1d4ed8;
            border-radius: 10px;
            padding: 9px 12px;
            font-size: 0.86rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 180ms ease;
        }

        .preview-track-btn:hover {
            background: #dbeafe;
            border-color: #60a5fa;
            transform: translateY(-1px);
        }

        .delivery-empty-state {
            border: 1px dashed #bfdbfe;
            background: linear-gradient(180deg, #f8fbff 0%, #f0f7ff 100%);
            border-radius: 16px;
            padding: 26px 20px;
            text-align: center;
            animation: fadeInUp 450ms ease;
        }

        .delivery-empty-state h4 {
            margin: 16px 0 8px;
            font-size: 1.08rem;
            color: #0f172a;
            font-family: var(--font-display);
        }

        .delivery-empty-state p {
            margin: 0;
            color: #64748b;
            font-size: 0.92rem;
        }

        .delivery-empty-visual {
            width: 94px;
            height: 94px;
            margin: 0 auto;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .empty-core {
            width: 54px;
            height: 54px;
            border-radius: 50%;
            background: linear-gradient(140deg, #2563eb 0%, #0ea5e9 100%);
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            z-index: 2;
            box-shadow: 0 10px 22px rgba(37, 99, 235, 0.36);
            animation: emptyPulse 2.6s ease-in-out infinite;
        }

        .empty-orbit {
            position: absolute;
            border: 1px solid #93c5fd;
            border-radius: 50%;
            inset: 0;
            animation: orbitRotate 9s linear infinite;
        }

        .empty-orbit-two {
            inset: 9px;
            border-color: #7dd3fc;
            animation-duration: 6.5s;
            animation-direction: reverse;
        }

        .dashboard-onboarding {
            margin-top: 14px;
            border: 1px solid #d9e7f7;
            border-radius: 14px;
            background: #ffffff;
            padding: 16px;
            animation: fadeInUp 450ms ease;
        }

        .dashboard-onboarding h4 {
            margin: 0 0 12px;
            color: #0f172a;
            font-size: 1rem;
            font-family: var(--font-display);
        }

        .dashboard-onboarding-steps {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
            gap: 10px;
            margin-bottom: 14px;
        }

        .dashboard-onboarding-step {
            border: 1px solid #e2e8f0;
            background: #f8fbff;
            border-radius: 12px;
            padding: 12px;
        }

        .dashboard-onboarding-step strong {
            display: block;
            color: #1e3a8a;
            margin-bottom: 6px;
            font-size: 0.84rem;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .dashboard-onboarding-step span {
            color: #475569;
            font-size: 0.87rem;
        }

        .dashboard-onboarding-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .command-deck {
            margin: 22px 0 14px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
            gap: 10px;
        }

        .deck-card {
            border: 1px solid #d7e3f1;
            border-radius: 14px;
            padding: 12px;
            background: linear-gradient(165deg, #ffffff 0%, #f4f8fe 100%);
            box-shadow: 0 8px 22px rgba(37, 99, 235, 0.08);
            position: relative;
            overflow: hidden;
            transform-style: preserve-3d;
            transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
        }

        .deck-card:hover {
            transform: translateY(-3px) rotateX(2deg);
            border-color: #bfdbfe;
            box-shadow: 0 16px 30px rgba(37, 99, 235, 0.14);
        }

        .deck-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #1d4ed8, #0ea5e9);
        }

        .deck-card.critical::before {
            background: linear-gradient(90deg, #ef4444, #f97316);
        }

        .deck-label {
            display: block;
            color: #64748b;
            font-size: 0.74rem;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            font-weight: 700;
            margin-bottom: 6px;
        }

        .deck-value {
            display: block;
            font-size: 1.55rem;
            color: #0f172a;
            line-height: 1;
            margin-bottom: 6px;
            font-family: var(--font-display);
            letter-spacing: -0.02em;
        }

        .deck-foot {
            display: block;
            color: #475569;
            font-size: 0.79rem;
            line-height: 1.4;
        }

        .air-traffic-grid {
            margin: 8px 0 18px;
            display: grid;
            grid-template-columns: 1.1fr 0.9fr;
            gap: 12px;
        }

        .street-traffic-panel {
            border: 1px solid #ccddf2;
            border-radius: 16px;
            background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
            box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
            padding: 12px;
        }

        .street-traffic-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 10px;
        }

        .street-traffic-head h3 {
            margin: 0;
            color: #0f172a;
            font-size: 1rem;
            display: flex;
            align-items: center;
            gap: 8px;
            font-family: var(--font-display);
        }

        #streetLaneCount {
            border: 1px solid #bfdbfe;
            background: #eff6ff;
            color: #1d4ed8;
            border-radius: 999px;
            padding: 4px 9px;
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .street-traffic-list {
            max-height: 330px;
            overflow: auto;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .street-lane-item {
            border: 1px solid #d3e3f5;
            border-radius: 12px;
            background: #ffffff;
            padding: 10px;
        }

        .street-lane-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 4px;
        }

        .street-lane-name {
            font-size: 0.89rem;
            font-weight: 700;
            color: #0f172a;
        }

        .street-lane-load {
            font-size: 0.72rem;
            color: #1e3a8a;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            border: 1px solid #bfdbfe;
            background: #eff6ff;
            border-radius: 999px;
            padding: 2px 7px;
            font-weight: 700;
        }

        .street-lane-meta {
            font-size: 0.78rem;
            color: #475569;
            line-height: 1.4;
        }

        .street-lane-bar {
            margin-top: 7px;
            height: 6px;
            border-radius: 999px;
            background: #e2e8f0;
            overflow: hidden;
        }

        .street-lane-fill {
            height: 100%;
            background: linear-gradient(90deg, #38bdf8 0%, #2563eb 100%);
        }

        .operation-cards {
            margin: 24px 0;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
            gap: 12px;
        }

        .operation-card {
            border: 1px solid #d6e4f2;
            border-radius: 14px;
            background: linear-gradient(145deg, #ffffff 0%, #f3f8ff 100%);
            padding: 14px;
            box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
        }

        .operation-card-label {
            display: block;
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: #475569;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .operation-card-value {
            display: block;
            font-size: 1.45rem;
            color: #0f172a;
            font-family: var(--font-display);
            margin-bottom: 6px;
            line-height: 1;
        }

        .operation-card-note {
            color: #64748b;
            font-size: 0.82rem;
        }

        .map-subtitle {
            margin: 6px 0 0;
            color: #64748b;
            font-size: 0.9rem;
        }

        .operational-stack {
            margin-top: 12px;
            display: grid;
            gap: 12px;
        }

        .ops-grid-panels {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
        }

        .ops-priority-block {
            border-color: #f2d9a6;
            background: linear-gradient(180deg, #fff9ec 0%, #fff4de 100%);
        }

        .ops-priority-block .ops-panel-head {
            background: rgba(255, 244, 214, 0.9);
            border-bottom-color: #f6dfb6;
        }

        .ops-priority-item {
            border: 1px solid #e6eaf1;
            border-left: 4px solid #cbd5e1;
            border-radius: 10px;
            background: #ffffff;
            padding: 10px;
        }

        .ops-priority-item strong {
            display: block;
            color: #0f172a;
            font-size: 0.9rem;
            margin-bottom: 4px;
        }

        .ops-priority-item span {
            display: block;
            color: #475569;
            font-size: 0.82rem;
            line-height: 1.45;
        }

        .ops-priority-item.critical {
            border-left-color: #dc2626;
            background: #fff6f6;
        }

        .ops-priority-item.warning {
            border-left-color: #d97706;
            background: #fffaf3;
        }

        .ops-priority-item.info {
            border-left-color: #2563eb;
            background: #f5f9ff;
        }

        .tactical-map-shell {
            margin-top: 14px;
            display: grid;
            grid-template-columns: 1.4fr 0.9fr;
            gap: 14px;
        }

        .tactical-map-stage {
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid #cdddf0;
            min-height: 440px;
            background: #eaf2fb;
        }

        .tactical-grid-overlay {
            position: absolute;
            inset: 0;
            pointer-events: none;
            background-image:
                linear-gradient(to right, rgba(148, 163, 184, 0.18) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(148, 163, 184, 0.18) 1px, transparent 1px);
            background-size: 26px 26px;
            z-index: 1;
            mix-blend-mode: multiply;
        }

        #deliveryMap {
            height: 440px;
            position: relative;
            z-index: 0;
        }

        .tactical-map-feed {
            border: 1px solid #cedff2;
            border-radius: 16px;
            background: linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
            padding: 14px;
            display: flex;
            flex-direction: column;
            min-height: 440px;
        }

        .tactical-feed-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 10px;
        }

        .tactical-feed-head h3 {
            margin: 0;
            color: #0f172a;
            font-size: 1rem;
            font-family: var(--font-display);
            display: flex;
            align-items: center;
            gap: 7px;
        }

        .tactical-feed-head span {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-weight: 700;
            color: #1d4ed8;
            border: 1px solid #bfdbfe;
            background: #eff6ff;
            border-radius: 999px;
            padding: 5px 9px;
        }

        .tactical-feed-list {
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 9px;
            padding-right: 2px;
        }

        .tactical-feed-item {
            border: 1px solid #d5e5f5;
            background: #ffffff;
            border-radius: 12px;
            padding: 11px;
            border-left: 4px solid var(--route-color, #2563eb);
            box-shadow: 0 8px 14px rgba(15, 23, 42, 0.05);
        }

        .tactical-feed-item-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            margin-bottom: 6px;
        }

        .tactical-feed-driver {
            color: #0f172a;
            font-weight: 700;
            font-size: 0.9rem;
        }

        .tactical-feed-status {
            font-size: 0.72rem;
            text-transform: uppercase;
            font-weight: 700;
            letter-spacing: 0.04em;
            color: #0f766e;
            background: #ccfbf1;
            border: 1px solid #5eead4;
            border-radius: 999px;
            padding: 3px 7px;
        }

        .tactical-feed-meta {
            color: #475569;
            font-size: 0.82rem;
            line-height: 1.4;
        }

        .tactical-route-line {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .tactical-route-color {
            width: 16px;
            height: 16px;
            border-radius: 999px;
            background: var(--route-color, #2563eb);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
            flex-shrink: 0;
        }

        .tactical-feed-empty {
            border: 1px dashed #bfd5ed;
            border-radius: 12px;
            padding: 24px 14px;
            text-align: center;
            color: #64748b;
            background: #ffffff;
        }

        .home-ops-footer {
            margin-top: 16px;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
            flex-wrap: wrap;
        }

        .ops-map-shell {
            margin-top: 12px;
            display: grid;
            grid-template-columns: 1.38fr 1.02fr;
            gap: 12px;
            align-items: start;
        }

        .ops-map-stage {
            border: 1px solid #c7d9ef;
            border-radius: 16px;
            background: #eef5ff;
            overflow: hidden;
            position: relative;
            height: 700px;
            box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
        }

        .ops-map-stage::before {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
            background-image:
                radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.18), transparent 58%),
                linear-gradient(to right, rgba(148, 163, 184, 0.12) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
            background-size: auto, 34px 34px, 34px 34px;
            z-index: 2;
            mix-blend-mode: multiply;
        }

        .ops-map-stage::after {
            content: '';
            position: absolute;
            width: 460px;
            height: 460px;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            border-radius: 50%;
            pointer-events: none;
            background: radial-gradient(circle, rgba(37, 99, 235, 0.14), rgba(37, 99, 235, 0));
            z-index: 3;
        }

        .ops-map-toolbar {
            position: absolute;
            top: 12px;
            left: 12px;
            right: 12px;
            z-index: 7;
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .ops-chip {
            border: 1px solid rgba(191, 219, 254, 0.8);
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(6px);
            color: #1e3a8a;
            border-radius: 999px;
            padding: 5px 10px;
            font-size: 0.75rem;
            font-weight: 700;
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
        }

        .ops-right-panel {
            border: 1px solid #cfdef0;
            border-radius: 16px;
            background: linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
            display: flex;
            flex-direction: column;
            gap: 10px;
            height: 700px;
            padding: 10px;
            overflow-y: auto;
            overflow-x: hidden;
        }

        .ops-panel-block {
            border: 1px solid #d8e4f2;
            border-radius: 12px;
            background: #ffffff;
            display: flex;
            flex-direction: column;
            min-height: 210px;
            flex: 0 0 auto;
            overflow: hidden;
        }

        .ops-panel-block:nth-child(2) {
            min-height: 280px;
        }

        .ops-panel-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 10px 12px;
            border-bottom: 1px solid #e2e8f0;
            background: #f8fbff;
        }

        .ops-panel-head h3 {
            margin: 0;
            font-size: 0.86rem;
            color: #0f172a;
            font-family: var(--font-display);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .ops-panel-head span {
            border: 1px solid #bfdbfe;
            background: #eff6ff;
            color: #1d4ed8;
            border-radius: 999px;
            padding: 3px 7px;
            font-size: 0.68rem;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            font-weight: 700;
        }
        #deliveryMap {
            min-height: 700px;
            height: 700px;
            position: relative;
            z-index: 1;
        }

        .ops-panel-list {
            padding: 10px;
            overflow: visible;
            display: flex;
            flex-direction: column;
            gap: 9px;
        }

        .ops-list-item {
            border: 1px solid #d7e4f4;
            border-radius: 10px;
            padding: 10px;
            background: #ffffff;
        }

        .ops-list-item strong {
            display: block;
            color: #0f172a;
            font-size: 0.9rem;
            margin-bottom: 4px;
        }

        .ops-list-item span {
            color: #475569;
            font-size: 0.82rem;
            line-height: 1.45;
        }

        @keyframes previewRise {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes orbitRotate {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(360deg);
            }
        }

        @keyframes emptyPulse {
            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.06);
            }
        }

        @media (max-width: 900px) {
            #dashboard .hero-overview {
                padding: 16px;
                border-radius: 16px;
            }

            #dashboard .hero-title {
                font-size: 1.5rem;
            }

            .delivery-preview-list {
                gap: 10px;
            }

            .delivery-preview-meta {
                grid-template-columns: 1fr;
            }

            .delivery-preview-slider-wrap {
                grid-template-columns: 1fr;
            }

            .preview-nav-btn {
                display: none;
            }

            .operation-cards {
                grid-template-columns: 1fr;
            }

            .command-deck {
                grid-template-columns: 1fr 1fr;
            }

            .air-traffic-grid {
                grid-template-columns: 1fr;
            }

            .tactical-map-shell {
                grid-template-columns: 1fr;
            }

            .ops-map-shell {
                grid-template-columns: 1fr;
            }

            .ops-grid-panels {
                grid-template-columns: 1fr;
            }

            .ops-map-stage,
            .ops-right-panel {
                height: 520px;
            }
            #deliveryMap {
                min-height: 520px;
                height: 520px;
            }

            .tactical-map-stage,
            #deliveryMap,
            .tactical-map-feed {
                min-height: 350px;
                height: 350px;
            }

            .home-ops-footer .btn {
                width: 100%;
            }

            .dashboard-onboarding-actions .btn {
                width: 100%;
            }
        }