/* style.css - Système de Design "Brilliance" Glassmorphic pour Allobahssin */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Palette de couleurs */
    --bg-dark: #0d111a;
    --bg-card: rgba(20, 26, 40, 0.6);
    --bg-card-hover: rgba(26, 34, 52, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --teal-blue: #3b20ce;         /* HSL 200, 98%, 32% - Surface principale / boutons */
    --blue-green: #502bf2;        /* HSL 192, 100%, 35% - Dégradés secondaires / cartes */
    --turquoise-surf: #7953ff;    /* HSL 188, 100%, 42% - Accent néon / glows / bordures actives */
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Statuts */
    --status-pending-bg: rgba(245, 158, 11, 0.1);
    --status-pending-border: rgba(245, 158, 11, 0.4);
    --status-pending-text: #fbbf24;
    
    --status-accepted-bg: rgba(59, 32, 206, 0.1);
    --status-accepted-border: rgba(59, 32, 206, 0.4);
    --status-accepted-text: #38bdf8;
    
    --status-picked_up-bg: rgba(139, 92, 246, 0.1);
    --status-picked_up-border: rgba(139, 92, 246, 0.4);
    --status-picked_up-text: #a78bfa;
    
    --status-delivered-bg: rgba(16, 185, 129, 0.1);
    --status-delivered-border: rgba(16, 185, 129, 0.4);
    --status-delivered-text: #34d399;
    
    --status-cancelled-bg: rgba(239, 68, 68, 0.1);
    --status-cancelled-border: rgba(239, 68, 68, 0.4);
    --status-cancelled-text: #f87171;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background animated glow mesh */
body::before {
    content: "";
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(59, 32, 206, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(121, 83, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(80, 43, 242, 0.08) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(59, 32, 206, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--turquoise-surf);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
    border-color: rgba(121, 83, 255, 0.2);
    box-shadow: 0 12px 40px 0 rgba(121, 83, 255, 0.06);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 17, 26, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.nav-logo span {
    background: linear-gradient(135deg, var(--turquoise-surf), var(--teal-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-logo-img {
    height: 32px;
    width: auto;
    border-radius: 50%;
    filter: drop-shadow(0 0 5px rgba(121, 83, 255, 0.4));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-logo:hover .nav-logo-img {
    transform: rotate(15deg) scale(1.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--turquoise-surf);
}

/* Boutons */
.btn-primary {
    background: linear-gradient(135deg, var(--teal-blue), var(--blue-green));
    color: var(--text-primary);
    border: 1px solid rgba(121, 83, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 32, 206, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(121, 83, 255, 0.5), 0 0 10px rgba(121, 83, 255, 0.2);
    border-color: var(--turquoise-surf);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 2rem 4rem 2rem;
    text-align: center;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: saturate(1.5) contrast(1.1) brightness(0.8);
}

/* Fallback gradient si la vidéo ne charge pas */
.hero-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(13, 17, 26, 0.2) 0%, var(--bg-dark) 100%);
}

.hero-content {
    max-width: 900px;
    z-index: 10;
}

.hero-badge {
    background: rgba(59, 32, 206, 0.15);
    border: 1px solid rgba(121, 83, 255, 0.3);
    color: var(--turquoise-surf);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    display: inline-block;
    box-shadow: 0 0 15px rgba(121, 83, 255, 0.1);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 30%, #e2e8f0 70%, var(--turquoise-surf) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Form & Map Section */
.order-section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-title-gradient {
    background: linear-gradient(135deg, var(--text-primary), var(--turquoise-surf));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grid-order {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .grid-order {
        grid-template-columns: 1fr;
    }
}

.map-container-wrapper {
    position: relative;
    height: 550px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

#map {
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Custom dark styling for Leaflet */
.leaflet-tile-container {
    filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(1.15);
}

.leaflet-container {
    background: var(--bg-dark) !important;
}

.leaflet-bar {
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

.leaflet-bar a {
    background-color: rgba(20, 26, 40, 0.85) !important;
    color: var(--turquoise-surf) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.2s ease !important;
}

.leaflet-bar a:hover {
    background-color: var(--teal-blue) !important;
    color: white !important;
}

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background: rgba(13, 17, 26, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(121, 83, 255, 0.2) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-popup-content {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Form Styles */
.form-card {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.form-input {
    width: 100%;
    background: rgba(13, 17, 26, 0.5);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--turquoise-surf);
    background: rgba(13, 17, 26, 0.8);
    box-shadow: 0 0 15px rgba(121, 83, 255, 0.15);
}

.form-input:focus + .input-icon {
    color: var(--turquoise-surf);
}

/* Autocomplete Suggestion List */
.suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(13, 17, 26, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    margin-top: 4px;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(59, 32, 206, 0.3);
    color: var(--text-primary);
}

/* Pricing Info card inside order */
.price-display-card {
    background: rgba(59, 32, 206, 0.1);
    border: 1px solid rgba(121, 83, 255, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-details {
    display: flex;
    flex-direction: column;
}

.price-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.price-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--turquoise-surf);
}

.distance-val {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Features Section */
.features-section {
    padding: 6rem 2rem;
    background: rgba(13, 17, 26, 0.4);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    padding: 2.5rem 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(121, 83, 255, 0.1);
    border: 1px solid rgba(121, 83, 255, 0.2);
    color: var(--turquoise-surf);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(121, 83, 255, 0.05);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Tarification Section */
.pricing-section {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .pricing-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
}

.pricing-left h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.pricing-left p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.pricing-formula {
    background: rgba(13, 17, 26, 0.6);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
}

.formula-step {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.formula-step:last-child {
    border-bottom: none;
    font-weight: 700;
    color: var(--turquoise-surf);
}

.pricing-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--border-color);
    padding-left: 3rem;
}

@media (max-width: 768px) {
    .pricing-right {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-left: 0;
        padding-top: 2rem;
    }
}

.pricing-bubble {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    background: radial-gradient(circle, rgba(59, 32, 206, 0.3) 0%, transparent 70%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px dashed rgba(121, 83, 255, 0.4);
    box-shadow: 0 0 25px rgba(121, 83, 255, 0.1);
}

.pricing-bubble span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* FAQ Section */
.faq-section {
    padding: 6rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    text-align: left;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--turquoise-surf);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0, 1, 0, 1);
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 1.5rem 1.5rem 1.5rem;
    transition: all 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Admin Auth Overlay */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(13, 17, 26, 0.9);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.auth-card {
    max-width: 450px;
    width: 100%;
    padding: 3rem 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-card h2 {
    font-size: 2rem;
}

.auth-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Admin Dashboard CSS */
.admin-layout {
    min-height: 100vh;
    padding: 6rem 2rem 2rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.admin-title-box h1 {
    font-size: 2.2rem;
}

.admin-title-box p {
    color: var(--text-secondary);
}

.admin-actions {
    display: flex;
    gap: 0.75rem;
}

/* Collapsible Config Bar */
.config-bar {
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
}

.config-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.config-toggle:hover {
    color: var(--text-primary);
}

.config-inputs {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 0.6fr;
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .config-inputs {
        grid-template-columns: 1fr;
    }
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(59, 32, 206, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.stat-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 4px;
}

.admin-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.admin-tab:hover {
    color: var(--text-primary);
}

.admin-tab.active {
    color: var(--turquoise-surf);
    border-bottom-color: var(--turquoise-surf);
}

/* Admin Main View Grid */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    height: calc(100vh - 350px);
    min-height: 550px;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .admin-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
}

.orders-list-pane {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    padding-right: 0.5rem;
}

@media (max-width: 1024px) {
    .orders-list-pane {
        max-height: 500px;
    }
}

.admin-map-pane {
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Order Cards in Admin Panel */
.order-card-admin {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
}

.order-card-admin.active {
    border-color: var(--turquoise-surf);
    box-shadow: 0 0 15px rgba(121, 83, 255, 0.1);
    background: var(--bg-card-hover);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.order-card-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.order-card-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    border: 1px solid transparent;
}

.status-pending {
    background-color: var(--status-pending-bg);
    border-color: var(--status-pending-border);
    color: var(--status-pending-text);
}

.status-accepted {
    background-color: var(--status-accepted-bg);
    border-color: var(--status-accepted-border);
    color: var(--status-accepted-text);
}

.status-picked_up {
    background-color: var(--status-picked_up-bg);
    border-color: var(--status-picked_up-border);
    color: var(--status-picked_up-text);
}

.status-delivered {
    background-color: var(--status-delivered-bg);
    border-color: var(--status-delivered-border);
    color: var(--status-delivered-text);
}

.status-cancelled {
    background-color: var(--status-cancelled-bg);
    border-color: var(--status-cancelled-border);
    color: var(--status-cancelled-text);
}

.order-card-addresses {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.address-item {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.address-icon {
    font-size: 0.95rem;
    margin-top: 0.2rem;
}

.address-item.pickup .address-icon {
    color: #10b981;
}

.address-item.delivery .address-icon {
    color: #ef4444;
}

.order-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 0.75rem;
    color: var(--text-secondary);
}

.order-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 0.75rem;
}

.order-card-driver {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.order-card-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon.call:hover {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.1);
}

.btn-icon.route:hover {
    color: var(--turquoise-surf);
    border-color: rgba(121, 83, 255, 0.4);
    background: rgba(121, 83, 255, 0.1);
}

/* Controls inside Order cards for assignment and status */
.driver-assign-select {
    background: rgba(13, 17, 26, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

.driver-assign-select:focus {
    border-color: var(--turquoise-surf);
}

.status-action-select {
    background: rgba(13, 17, 26, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

.status-action-select:focus {
    border-color: var(--turquoise-surf);
}

/* Toasts Container */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 10000;
    max-width: 400px;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    background: rgba(20, 26, 40, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(100px);
    opacity: 0;
    animation: toastSlideIn 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.3s ease;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.info {
    border-left: 4px solid var(--turquoise-surf);
}

.toast-closing {
    animation: toastSlideOut 0.3s forwards ease-in;
}

@keyframes toastSlideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-links {
        display: none; /* simple burger implementation or hidden on simple vitrine */
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .order-section, .features-section, .pricing-section, .faq-section {
        padding: 4rem 1rem;
    }
    
    .map-container-wrapper {
        height: 350px;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .admin-layout {
        padding: 5rem 1rem 1rem 1rem;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .admin-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

/* empty list message */
.no-orders-msg {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* --- Support RTL et Arabe (Cairo Font) --- */
[dir="rtl"] {
    font-family: 'Cairo', 'Inter', sans-serif !important;
}
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] .nav-logo {
    font-family: 'Cairo', 'Outfit', sans-serif !important;
}
[dir="rtl"] .input-icon {
    left: auto;
    right: 1rem;
}
[dir="rtl"] .form-input {
    padding-left: 1rem;
    padding-right: 2.5rem;
}
[dir="rtl"] .faq-question,
[dir="rtl"] .feature-card {
    text-align: right;
}
[dir="rtl"] .pricing-right {
    border-left: none;
    border-right: 1px solid var(--border-color);
    padding-left: 0;
    padding-right: 3rem;
}
@media (max-width: 768px) {
    [dir="rtl"] .pricing-right {
        border-right: none;
        border-top: 1px solid var(--border-color);
        padding-right: 0;
        padding-top: 2rem;
    }
}
[dir="rtl"] .toast-container {
    right: auto;
    left: 2rem;
}
[dir="rtl"] .toast.success {
    border-left: none;
    border-right: 4px solid #10b981;
}
[dir="rtl"] .toast.error {
    border-left: none;
    border-right: 4px solid #ef4444;
}
[dir="rtl"] .toast.info {
    border-left: none;
    border-right: 4px solid var(--turquoise-surf);
}
[dir="rtl"] .toast-closing {
    animation: toastSlideOutRtl 0.3s forwards ease-in;
}
@keyframes toastSlideOutRtl {
    to {
        transform: translateX(-120%);
        opacity: 0;
    }
}
[dir="rtl"] .orders-list-pane {
    padding-right: 0;
    padding-left: 0.5rem;
}
[dir="rtl"] .stat-card::after {
    right: auto;
    left: 0;
}
[dir="rtl"] .leaflet-popup-content {
    text-align: right;
}
[dir="rtl"] .nav-logo:hover .nav-logo-img {
    transform: rotate(-15deg) scale(1.1);
}
[dir="rtl"] .order-card-buttons {
    margin-right: auto;
    margin-left: 0;
}

