/* ========================================
   Léman Livraison - Styles
   ======================================== */

/* --- Design Tokens --- */
:root {
    --ll-red: #E63946;
    --ll-blue: #3b82f6;
    --ll-indigo: #6366f1;
    --ll-green: #10b981;
    --ll-orange: #e76f51;
    --ll-yellow: #f59e0b;
    --ll-dark: #1a1a2e;
    --ll-gray-50: #f9fafb;
    --ll-gray-100: #f3f4f6;
    --ll-gray-200: #e5e7eb;
    --ll-gray-300: #d1d5db;
    --ll-gray-400: #9ca3af;
    --ll-gray-500: #6b7280;
    --ll-gray-600: #4b5563;
    --ll-gray-700: #374151;
    --ll-gray-800: #1f2937;
    --ll-gray-900: #111827;
    --ll-white: #ffffff;
    --ll-radius: 12px;
    --ll-radius-lg: 20px;
    --ll-radius-full: 100px;
    --ll-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --ll-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --ll-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --ll-transition: 0.2s ease;
    --ll-font: 'Inter', -apple-system, sans-serif;
    --ll-container: 1120px;
    --ll-accent: var(--ll-blue);

    /* Dashboard dark theme */
    --ll-dash-bg: #0f1117;
    --ll-dash-card: #1a1d2e;
    --ll-dash-border: #2a2d3e;
    --ll-dash-text: #e2e8f0;
    --ll-dash-text-muted: #94a3b8;
    --ll-dash-accent: #818cf8;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--ll-font);
    color: var(--ll-gray-800);
    background: var(--ll-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

.container { max-width: var(--ll-container); margin: 0 auto; padding: 0 20px; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--ll-radius-full);
    font-weight: 600; font-size: 0.95rem;
    transition: all var(--ll-transition);
    white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-primary {
    background: linear-gradient(135deg, var(--ll-red), #c62828);
    color: white; box-shadow: 0 4px 15px rgba(230,57,70,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,57,70,0.4); }
.btn-accent {
    background: linear-gradient(135deg, var(--ll-blue), var(--ll-indigo));
    color: white; box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59,130,246,0.4); }
.btn-outline {
    border: 2px solid var(--ll-gray-200); color: var(--ll-gray-700);
    background: white;
}
.btn-outline:hover { border-color: var(--ll-blue); color: var(--ll-blue); }
.btn-ghost { color: var(--ll-gray-600); padding: 8px 12px; }
.btn-ghost:hover { color: var(--ll-blue); background: var(--ll-gray-50); border-radius: 8px; }
.btn-success { background: var(--ll-green); color: white; }
.btn-danger { background: #ef4444; color: white; }
.btn-icon { width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 10px; }

/* --- Header / Nav --- */
.ll-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ll-gray-100);
    padding: 0 20px;
}
.ll-header-inner {
    max-width: var(--ll-container);
    margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.ll-logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 1.2rem; color: var(--ll-dark);
}
.ll-logo-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--ll-red), var(--ll-blue));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.1rem;
}
.ll-nav { display: flex; align-items: center; gap: 8px; }
.ll-nav a {
    padding: 8px 14px; border-radius: 8px; font-size: 0.9rem;
    font-weight: 500; color: var(--ll-gray-600); transition: all var(--ll-transition);
}
.ll-nav a:hover { color: var(--ll-blue); background: var(--ll-gray-50); }
.ll-cart-badge {
    position: relative; font-size: 1.2rem; color: var(--ll-gray-600);
    padding: 8px; cursor: pointer;
}
.ll-cart-badge .badge {
    position: absolute; top: 2px; right: 0;
    background: var(--ll-red); color: white;
    font-size: 0.65rem; font-weight: 700;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.ll-user-menu { position: relative; }
.ll-user-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 8px;
    font-size: 0.9rem; font-weight: 500; color: var(--ll-gray-600);
    cursor: pointer; transition: all var(--ll-transition);
}
.ll-user-btn:hover { background: var(--ll-gray-50); color: var(--ll-blue); }
.ll-user-dropdown {
    display: none; position: absolute; right: 0; top: 100%; margin-top: 4px;
    background: white; border: 1px solid var(--ll-gray-200);
    border-radius: var(--ll-radius); box-shadow: var(--ll-shadow-lg);
    min-width: 180px; overflow: hidden; z-index: 50;
}
.ll-user-dropdown.open { display: block; }
.ll-user-dropdown a {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; font-size: 0.9rem; color: var(--ll-gray-700);
}
.ll-user-dropdown a:hover { background: var(--ll-gray-50); color: var(--ll-blue); }
.ll-mobile-toggle { display: none; font-size: 1.4rem; color: var(--ll-gray-600); cursor: pointer; padding: 8px; }

/* --- Hero --- */
.ll-hero {
    padding: 80px 20px 60px;
    text-align: center;
    background: linear-gradient(135deg, #fef3f2 0%, #eff6ff 50%, #f0fdf4 100%);
}
.ll-hero h1 {
    font-size: 3rem; font-weight: 900; line-height: 1.1;
    color: var(--ll-dark); margin-bottom: 16px;
}
.ll-hero h1 span { background: linear-gradient(135deg, var(--ll-red), var(--ll-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ll-hero p { font-size: 1.15rem; color: var(--ll-gray-500); max-width: 560px; margin: 0 auto 32px; }
.ll-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- Zone Pills --- */
.ll-zones { padding: 48px 20px; }
.ll-zones h2 { text-align: center; font-size: 1.6rem; font-weight: 800; margin-bottom: 24px; }
.ll-zone-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ll-zone-pill {
    padding: 10px 20px; border-radius: var(--ll-radius-full);
    border: 2px solid var(--ll-gray-200); background: white;
    font-weight: 600; font-size: 0.9rem; color: var(--ll-gray-700);
    cursor: pointer; transition: all var(--ll-transition);
    display: flex; align-items: center; gap: 6px;
}
.ll-zone-pill:hover { border-color: var(--ll-blue); color: var(--ll-blue); transform: translateY(-2px); }
.ll-zone-pill .dot { width: 10px; height: 10px; border-radius: 50%; }

/* --- Category Grid --- */
.ll-categories { padding: 48px 20px; background: var(--ll-gray-50); }
.ll-categories h2 { text-align: center; font-size: 1.6rem; font-weight: 800; margin-bottom: 24px; }
.ll-cat-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px; max-width: var(--ll-container); margin: 0 auto;
}
.ll-cat-item {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 20px 12px; background: white; border-radius: var(--ll-radius);
    border: 1px solid var(--ll-gray-100); cursor: pointer;
    transition: all var(--ll-transition); text-align: center;
}
.ll-cat-item:hover { transform: translateY(-4px); box-shadow: var(--ll-shadow-md); border-color: transparent; }
.ll-cat-icon {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: white;
}
.ll-cat-item span { font-size: 0.85rem; font-weight: 600; color: var(--ll-gray-700); }

/* --- Section Titles --- */
.ll-section { padding: 48px 20px; }
.ll-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; max-width: var(--ll-container); margin-left: auto; margin-right: auto;
}
.ll-section-header h2 { font-size: 1.6rem; font-weight: 800; }

/* --- Merchant Cards Grid --- */
.ll-merchant-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px; max-width: var(--ll-container); margin: 0 auto;
}

/* --- Merchant Card --- */
.ll-merchant-card {
    background: white; border: 1px solid var(--ll-gray-100);
    border-radius: var(--ll-radius-lg); overflow: hidden;
    transition: all var(--ll-transition); cursor: pointer;
}
.ll-merchant-card:hover { transform: translateY(-4px); box-shadow: var(--ll-shadow-lg); border-color: transparent; }
.ll-merchant-card-banner { height: 120px; display: flex; align-items: center; justify-content: center; }
.ll-merchant-card-body { padding: 16px 20px; }
.ll-merchant-card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.ll-merchant-card-meta { display: flex; align-items: center; gap: 12px; font-size: 0.82rem; color: var(--ll-gray-500); margin-bottom: 8px; }
.ll-merchant-card-meta .stars { color: var(--ll-yellow); }
.ll-merchant-card-desc { font-size: 0.88rem; color: var(--ll-gray-500); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ll-merchant-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px; border-top: 1px solid var(--ll-gray-100);
    font-size: 0.82rem; color: var(--ll-gray-500);
}
.ll-merchant-card-footer .tag {
    padding: 4px 10px; border-radius: var(--ll-radius-full);
    font-size: 0.75rem; font-weight: 600;
}

/* --- Product Card --- */
.ll-product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.ll-product-card {
    background: white; border: 1px solid var(--ll-gray-100);
    border-radius: var(--ll-radius); overflow: hidden;
    transition: all var(--ll-transition);
}
.ll-product-card:hover { box-shadow: var(--ll-shadow-md); }
.ll-product-card-img { height: 140px; display: flex; align-items: center; justify-content: center; background: var(--ll-gray-50); }
.ll-product-card-body { padding: 14px 16px; }
.ll-product-card-body h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.ll-product-card-body .desc { font-size: 0.82rem; color: var(--ll-gray-500); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ll-product-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px 14px;
}
.ll-product-card-footer .price { font-size: 1.05rem; font-weight: 700; color: var(--ll-dark); }
.ll-product-card-footer .btn-add {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--ll-blue); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; transition: all var(--ll-transition);
}
.ll-product-card-footer .btn-add:hover { background: var(--ll-indigo); transform: scale(1.1); }

/* --- Merchant Page --- */
.ll-merchant-header {
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, var(--ll-gray-50), var(--ll-gray-100));
}
.ll-merchant-header-inner {
    max-width: var(--ll-container); margin: 0 auto;
    display: flex; gap: 24px; align-items: flex-start;
}
.ll-merchant-avatar {
    width: 80px; height: 80px; border-radius: var(--ll-radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 800; color: white; flex-shrink: 0;
}
.ll-merchant-info h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 6px; }
.ll-merchant-info .meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.9rem; color: var(--ll-gray-500); }
.ll-merchant-info .meta i { margin-right: 4px; }
.ll-merchant-products { padding: 40px 20px; max-width: var(--ll-container); margin: 0 auto; }
.ll-product-group { margin-bottom: 32px; }
.ll-product-group h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--ll-gray-100); }

/* --- Catalog Filters --- */
.ll-catalog-header { padding: 32px 20px; background: var(--ll-gray-50); }
.ll-catalog-filters {
    max-width: var(--ll-container); margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.ll-search-box {
    flex: 1; min-width: 240px; position: relative;
}
.ll-search-box input {
    width: 100%; padding: 12px 16px 12px 42px;
    border: 2px solid var(--ll-gray-200); border-radius: var(--ll-radius-full);
    font-size: 0.95rem; outline: none; transition: border-color var(--ll-transition);
    background: white;
}
.ll-search-box input:focus { border-color: var(--ll-blue); }
.ll-search-box i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ll-gray-400); }
.ll-filter-select {
    padding: 10px 16px; border: 2px solid var(--ll-gray-200);
    border-radius: var(--ll-radius-full); font-size: 0.9rem;
    color: var(--ll-gray-700); background: white; outline: none;
    cursor: pointer;
}
.ll-filter-select:focus { border-color: var(--ll-blue); }
.ll-catalog-results { padding: 32px 20px; }
.ll-results-count { font-size: 0.9rem; color: var(--ll-gray-500); margin-bottom: 20px; max-width: var(--ll-container); margin-left: auto; margin-right: auto; }

/* --- Cart --- */
.ll-cart { padding: 40px 20px; max-width: 800px; margin: 0 auto; }
.ll-cart h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 24px; }
.ll-cart-group { margin-bottom: 24px; background: white; border: 1px solid var(--ll-gray-100); border-radius: var(--ll-radius-lg); overflow: hidden; }
.ll-cart-group-header { padding: 16px 20px; background: var(--ll-gray-50); font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.ll-cart-item {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px; border-top: 1px solid var(--ll-gray-100);
}
.ll-cart-item-info { flex: 1; }
.ll-cart-item-info h4 { font-size: 0.95rem; font-weight: 600; }
.ll-cart-item-info .price { font-size: 0.85rem; color: var(--ll-gray-500); }
.ll-cart-qty {
    display: flex; align-items: center; gap: 8px;
}
.ll-cart-qty button {
    width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--ll-gray-200);
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
    color: var(--ll-gray-600); background: white; transition: all var(--ll-transition);
}
.ll-cart-qty button:hover { border-color: var(--ll-blue); color: var(--ll-blue); }
.ll-cart-qty span { font-weight: 600; min-width: 24px; text-align: center; }
.ll-cart-line-total { font-weight: 700; min-width: 80px; text-align: right; }
.ll-cart-summary {
    background: white; border: 1px solid var(--ll-gray-100);
    border-radius: var(--ll-radius-lg); padding: 24px;
}
.ll-cart-summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.95rem; }
.ll-cart-summary-row.total { font-size: 1.15rem; font-weight: 800; border-top: 2px solid var(--ll-gray-100); padding-top: 16px; margin-top: 8px; }

/* --- Checkout --- */
.ll-checkout { padding: 40px 20px; max-width: 700px; margin: 0 auto; }
.ll-checkout h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 24px; }
.ll-steps { display: flex; gap: 4px; margin-bottom: 32px; }
.ll-step { flex: 1; height: 4px; border-radius: 2px; background: var(--ll-gray-200); }
.ll-step.active { background: var(--ll-blue); }
.ll-step.done { background: var(--ll-green); }

/* --- Forms --- */
.ll-form-group { margin-bottom: 20px; }
.ll-form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ll-gray-700); margin-bottom: 6px; }
.ll-form-group input,
.ll-form-group select,
.ll-form-group textarea {
    width: 100%; padding: 12px 16px;
    border: 2px solid var(--ll-gray-200); border-radius: var(--ll-radius);
    font-size: 0.95rem; outline: none; transition: border-color var(--ll-transition);
    background: white;
}
.ll-form-group input:focus,
.ll-form-group select:focus,
.ll-form-group textarea:focus { border-color: var(--ll-blue); }
.ll-form-group textarea { resize: vertical; min-height: 80px; }
.ll-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* --- Tracking --- */
.ll-tracking { padding: 40px 20px; max-width: 700px; margin: 0 auto; }
.ll-tracking h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.ll-tracking-ref { font-size: 0.95rem; color: var(--ll-gray-500); margin-bottom: 32px; }
.ll-timeline { position: relative; padding-left: 32px; }
.ll-timeline::before {
    content: ''; position: absolute; left: 11px; top: 0; bottom: 0;
    width: 2px; background: var(--ll-gray-200);
}
.ll-timeline-step { position: relative; padding-bottom: 28px; }
.ll-timeline-step:last-child { padding-bottom: 0; }
.ll-timeline-dot {
    position: absolute; left: -32px; top: 2px;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--ll-gray-200); display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; color: white; z-index: 1;
}
.ll-timeline-step.active .ll-timeline-dot { background: var(--ll-blue); box-shadow: 0 0 0 4px rgba(59,130,246,0.2); }
.ll-timeline-step.done .ll-timeline-dot { background: var(--ll-green); }
.ll-timeline-step h4 { font-size: 0.95rem; font-weight: 600; }
.ll-timeline-step p { font-size: 0.85rem; color: var(--ll-gray-500); }
.ll-slp-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 20px; border-radius: var(--ll-radius);
    background: linear-gradient(135deg, #e76f51, #f4a261);
    color: white; font-weight: 600; font-size: 0.9rem;
    margin-top: 24px;
}

/* --- Auth Forms --- */
.ll-auth { padding: 60px 20px; max-width: 480px; margin: 0 auto; }
.ll-auth-card {
    background: white; border: 1px solid var(--ll-gray-100);
    border-radius: var(--ll-radius-lg); padding: 40px 32px;
    box-shadow: var(--ll-shadow-lg);
}
.ll-auth-card h1 { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 8px; }
.ll-auth-card .subtitle { text-align: center; color: var(--ll-gray-500); font-size: 0.9rem; margin-bottom: 28px; }
.ll-auth-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.ll-auth-links { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--ll-gray-500); }
.ll-auth-links a { color: var(--ll-blue); font-weight: 600; }

/* --- Dashboard (Dark Theme) --- */
.ll-dashboard { display: flex; min-height: 100vh; }
body.ll-dash-theme { background: var(--ll-dash-bg); color: var(--ll-dash-text); }
body.ll-dash-theme .ll-header { background: rgba(15,17,23,0.92); border-color: var(--ll-dash-border); }
body.ll-dash-theme .ll-header a, body.ll-dash-theme .ll-header .ll-logo { color: var(--ll-dash-text); }

.ll-sidebar {
    width: 240px; background: var(--ll-dash-card);
    border-right: 1px solid var(--ll-dash-border);
    padding: 20px 0; flex-shrink: 0; position: fixed;
    top: 64px; bottom: 0; left: 0; overflow-y: auto; z-index: 10;
}
.ll-sidebar-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 24px; font-size: 0.9rem; font-weight: 500;
    color: var(--ll-dash-text-muted); transition: all var(--ll-transition);
}
.ll-sidebar-nav a:hover { color: var(--ll-dash-text); background: rgba(255,255,255,0.05); }
.ll-sidebar-nav a.active { color: var(--ll-dash-accent); background: rgba(129,140,248,0.1); border-right: 3px solid var(--ll-dash-accent); }
.ll-sidebar-nav a i { font-size: 1.1rem; width: 20px; text-align: center; }

.ll-dash-main {
    flex: 1; margin-left: 240px; padding: 32px;
}
.ll-dash-main h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 24px; color: var(--ll-dash-text); }

/* Dashboard Cards */
.ll-kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 32px; }
.ll-kpi-card {
    background: var(--ll-dash-card); border: 1px solid var(--ll-dash-border);
    border-radius: var(--ll-radius); padding: 20px;
}
.ll-kpi-card .label { font-size: 0.82rem; color: var(--ll-dash-text-muted); margin-bottom: 4px; }
.ll-kpi-card .value { font-size: 1.6rem; font-weight: 800; color: var(--ll-dash-text); }
.ll-kpi-card .change { font-size: 0.8rem; color: var(--ll-green); margin-top: 2px; }

/* Dashboard Tables */
.ll-dash-table {
    width: 100%; border-collapse: collapse;
    background: var(--ll-dash-card); border: 1px solid var(--ll-dash-border);
    border-radius: var(--ll-radius); overflow: hidden;
}
.ll-dash-table th {
    text-align: left; padding: 12px 16px; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--ll-dash-text-muted); background: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--ll-dash-border);
}
.ll-dash-table td {
    padding: 12px 16px; font-size: 0.9rem;
    border-bottom: 1px solid var(--ll-dash-border);
    color: var(--ll-dash-text);
}
.ll-dash-table tr:last-child td { border-bottom: none; }
.ll-dash-table tr:hover td { background: rgba(255,255,255,0.02); }

/* --- Badges --- */
.badge-status {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: var(--ll-radius-full);
    font-size: 0.75rem; font-weight: 600;
}
.badge-pending { background: rgba(107,114,128,0.15); color: #6b7280; }
.badge-confirmed { background: rgba(59,130,246,0.15); color: #3b82f6; }
.badge-preparing { background: rgba(245,158,11,0.15); color: #f59e0b; }
.badge-en_route { background: rgba(231,111,81,0.15); color: #e76f51; }
.badge-delivered { background: rgba(16,185,129,0.15); color: #10b981; }
.badge-cancelled { background: rgba(239,68,68,0.15); color: #ef4444; }

/* --- Modal --- */
.ll-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px); z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; opacity: 0; pointer-events: none;
    transition: opacity var(--ll-transition);
}
.ll-modal-overlay.open { opacity: 1; pointer-events: auto; }
.ll-modal {
    background: white; border-radius: var(--ll-radius-lg);
    max-width: 520px; width: 100%; max-height: 80vh; overflow-y: auto;
    box-shadow: var(--ll-shadow-lg);
}
body.ll-dash-theme .ll-modal { background: var(--ll-dash-card); color: var(--ll-dash-text); }
body.ll-dash-theme .ll-modal input,
body.ll-dash-theme .ll-modal select,
body.ll-dash-theme .ll-modal textarea {
    background: var(--ll-dash-bg); border-color: var(--ll-dash-border); color: var(--ll-dash-text);
}
.ll-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--ll-gray-100);
}
body.ll-dash-theme .ll-modal-header { border-color: var(--ll-dash-border); }
.ll-modal-header h2 { font-size: 1.15rem; font-weight: 700; }
.ll-modal-body { padding: 24px; }
.ll-modal-footer { padding: 16px 24px; border-top: 1px solid var(--ll-gray-100); display: flex; justify-content: flex-end; gap: 8px; }
body.ll-dash-theme .ll-modal-footer { border-color: var(--ll-dash-border); }

/* --- Toast --- */
#toast-container {
    position: fixed; bottom: 20px; right: 20px; z-index: 300;
    display: flex; flex-direction: column; gap: 8px;
}
.ll-toast {
    padding: 12px 20px; border-radius: var(--ll-radius);
    background: var(--ll-gray-800); color: white;
    font-size: 0.9rem; font-weight: 500;
    box-shadow: var(--ll-shadow-lg);
    animation: toastIn 0.3s ease;
}
.ll-toast.success { background: var(--ll-green); }
.ll-toast.error { background: #ef4444; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* --- Map --- */
.ll-map-container { border-radius: var(--ll-radius); overflow: hidden; border: 1px solid var(--ll-gray-200); }
.ll-map-container .leaflet-container { height: 100%; }

/* --- How it works --- */
.ll-how-it-works { padding: 48px 20px; text-align: center; }
.ll-how-it-works h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 32px; }
.ll-steps-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
    max-width: var(--ll-container); margin: 0 auto;
}
.ll-step-card { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ll-step-num {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--ll-blue), var(--ll-indigo));
    color: white; font-weight: 800; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
}
.ll-step-card h3 { font-size: 1.05rem; font-weight: 700; }
.ll-step-card p { font-size: 0.88rem; color: var(--ll-gray-500); }

/* --- Footer --- */
.ll-footer {
    padding: 40px 20px; border-top: 1px solid var(--ll-gray-100);
    text-align: center; color: var(--ll-gray-500); font-size: 0.85rem;
}
.ll-footer a { color: var(--ll-blue); font-weight: 600; }

/* --- Empty State --- */
.ll-empty {
    text-align: center; padding: 60px 20px; color: var(--ll-gray-400);
}
.ll-empty i { font-size: 3rem; margin-bottom: 12px; display: block; }
.ll-empty h3 { font-size: 1.1rem; font-weight: 600; color: var(--ll-gray-600); margin-bottom: 8px; }
.ll-empty p { font-size: 0.9rem; margin-bottom: 20px; }

/* --- Chart container --- */
.ll-chart-container {
    background: var(--ll-dash-card); border: 1px solid var(--ll-dash-border);
    border-radius: var(--ll-radius); padding: 20px; margin-bottom: 24px;
}
.ll-chart-container h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--ll-dash-text); }

/* --- Responsive --- */
@media (max-width: 768px) {
    .ll-hero h1 { font-size: 2rem; }
    .ll-hero p { font-size: 1rem; }
    .ll-steps-grid { grid-template-columns: 1fr; gap: 24px; }
    .ll-merchant-grid { grid-template-columns: 1fr; }
    .ll-product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .ll-form-row { grid-template-columns: 1fr; }
    .ll-merchant-header-inner { flex-direction: column; align-items: center; text-align: center; }
    .ll-merchant-info .meta { justify-content: center; }
    .ll-nav { display: none; }
    .ll-mobile-toggle { display: block; }
    .ll-sidebar { display: none; }
    .ll-sidebar.open { display: block; position: fixed; top: 64px; left: 0; bottom: 0; width: 240px; z-index: 50; }
    .ll-dash-main { margin-left: 0; padding: 20px; }
    .ll-catalog-filters { flex-direction: column; }
    .ll-search-box { min-width: 100%; }
    .ll-cart-item { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .ll-hero h1 { font-size: 1.6rem; }
    .ll-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .ll-cat-icon { width: 44px; height: 44px; font-size: 1.1rem; }
    .ll-kpi-grid { grid-template-columns: 1fr 1fr; }
}
