/* ===== ROOT VARIABLES ===== */
:root {
    --primary-black: #0d0d0d;
    --secondary-black: #1a1a1a;
    --charcoal: #2a2a2a;
    --accent-orange: #e87a20;
    --accent-orange-light: #f59a3a;
    --text-white: #ffffff;
    --text-light: #f5f5f5;
    --text-muted: #b0b0b0;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    --transition: 0.3s ease;
    --bg-primary: var(--primary-black);
    --bg-secondary: var(--secondary-black);
    --bg-card: var(--secondary-black);
    --text-primary: var(--text-white);
    --text-secondary: var(--text-muted);
    --border-color: rgba(255, 255, 255, 0.06);
}

/* ===== LIGHT MODE ===== */
body.light-mode {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode header {
    background: rgba(255, 255, 255, 0.95);
}

body.light-mode .feature-card,
body.light-mode .restaurant-card,
body.light-mode .benefit-card,
body.light-mode .driver-application,
body.light-mode .about-content,
body.light-mode .mission-item {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .feature-card:hover,
body.light-mode .restaurant-card:hover {
    border-color: var(--accent-orange);
}

body.light-mode .hero {
    background: #ffffff;
}

body.light-mode .hero-content p {
    color: #4a4a4a;
}

body.light-mode .btn-secondary {
    border-color: rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
}

body.light-mode .btn-secondary:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

body.light-mode .search-box input {
    background: #f0f0f0;
    color: #1a1a1a;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .filter-tab {
    background: #f0f0f0;
    color: #4a4a4a;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .filter-tab.active {
    background: var(--accent-orange);
    color: #ffffff;
}

body.light-mode .cart-sidebar {
    background: #ffffff;
}

body.light-mode .cart-header {
    background: #f5f5f5;
}

body.light-mode .cart-footer {
    background: #f5f5f5;
}

body.light-mode .checkout-modal {
    background: #ffffff;
}

body.light-mode .form-group input,
body.light-mode .form-group select {
    background: #f5f5f5;
    color: #1a1a1a;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode footer {
    background: #1a1a1a;
}

body.light-mode .about-mission .mission-item {
    border-color: rgba(0, 0, 0, 0.08);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ===== HEADER ===== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-white);
}

.logo span {
    color: var(--accent-orange);
}

.logo .tagline {
    font-size: 0.65rem;
    font-weight: 300;
    color: var(--text-muted);
    display: block;
    letter-spacing: 2px;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    gap: 2.2rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    flex-wrap: wrap;
}

nav ul li a {
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-orange);
    border-bottom-color: var(--accent-orange);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.btn-outline-light {
    background: transparent;
    color: var(--text-white);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 60px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-outline-light:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.dark-mode-toggle {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.cart-icon {
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--text-white);
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.cart-icon:hover {
    color: var(--accent-orange);
}

.cart-count {
    background: var(--accent-orange);
    color: var(--primary-black);
    border-radius: 50%;
    padding: 0.1rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    position: absolute;
    top: -10px;
    right: -12px;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 3rem 0 4rem;
    background: var(--bg-primary);
    transition: background var(--transition);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-content h1 span {
    color: var(--accent-orange);
    position: relative;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 10px;
    opacity: 0.3;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-orange);
    color: var(--primary-black);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.9rem 2.8rem;
    border-radius: 60px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(232, 122, 32, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(232, 122, 32, 0.4);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-white);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 2.8rem;
    border-radius: 60px;
    transition: var(--transition);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat .number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-orange);
    display: block;
}

.hero-stats .stat .label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title span {
    color: var(--accent-orange);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 2.2rem 1.8rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-orange);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card .icon {
    font-size: 2.8rem;
    color: var(--accent-orange);
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== MAP SECTION ===== */
.map-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.map-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

#map {
    width: 100%;
    height: 400px;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

/* ===== DRIVER CTA SECTION ===== */
.driver-cta-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.driver-cta {
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
    border: 1px solid var(--border-color);
}

.driver-cta-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.driver-cta-content h2 span {
    color: var(--accent-orange);
}

.driver-cta-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.driver-cta-image {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8rem;
    color: var(--accent-orange);
}

/* ===== RESTAURANTS PAGE ===== */
.restaurants-page {
    padding: 3rem 0;
}

.menu-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-box {
    position: relative;
    margin-bottom: 1rem;
}

#searchInput {
    width: 100%;
    padding: 0.9rem 3rem 0.9rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 60px;
    font-size: 1rem;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
}

#searchInput:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 4px rgba(232, 122, 32, 0.1);
}

.clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: none;
    padding: 0.3rem;
}

.clear-search.visible {
    display: block;
}

.clear-search:hover {
    color: var(--text-primary);
}

.filter-tabs {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 60px;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.filter-tab:hover {
    border-color: var(--accent-orange);
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--primary-black);
}

.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.restaurant-card {
    background: var(--bg-card);
    border-radius: 1.2rem;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.restaurant-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-orange);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.restaurant-card .icon {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}

.restaurant-card h4 {
    font-weight: 600;
    font-size: 1.05rem;
}

.restaurant-card p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.restaurant-card .price {
    display: block;
    color: var(--accent-orange);
    font-weight: 700;
    margin: 0.5rem 0;
}

.restaurant-card .btn-add {
    background: var(--accent-orange);
    color: var(--primary-black);
    border: none;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.restaurant-card .btn-add:hover {
    transform: scale(1.05);
}

.restaurant-card .btn-add.added {
    background: #2d8a4e;
    color: white;
}

/* ===== DRIVERS PAGE ===== */
.drivers-page {
    padding: 3rem 0;
}

.drivers-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.driver-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.benefit-card {
    background: var(--bg-card);
    border-radius: 1.2rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.benefit-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-4px);
}

.benefit-card .icon {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}

.benefit-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: var(--text-secondary);
}

.driver-application {
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    max-width: 700px;
    margin: 0 auto;
}

.driver-application h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--accent-orange);
}

/* ===== ABOUT PAGE ===== */
.about-page {
    padding: 3rem 0;
}

.about-content {
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 3rem;
    border: 1px solid var(--border-color);
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.about-mission {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.mission-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.mission-item i {
    font-size: 2rem;
    color: var(--accent-orange);
    flex-shrink: 0;
}

.mission-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.mission-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ===== QUICK STATS ===== */
.quick-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 1rem;
    flex-wrap: wrap;
}

.quick-stat {
    text-align: center;
}

.quick-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-orange);
}

.quick-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== CONTACT INFO ===== */
.contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.contact-info h3 {
    font-size: 1.3rem;
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.contact-info p i {
    color: var(--accent-orange);
    margin-right: 0.5rem;
    width: 1.2rem;
}

/* ===== ORDER HISTORY ===== */
.order-history-section {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.empty-orders {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding: 2rem;
}

.order-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-orange);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.order-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.order-total {
    font-weight: 700;
    color: var(--accent-orange);
    font-size: 1.2rem;
}

.order-items {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== DELIVERY OPTIONS ===== */
.delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.delivery-card {
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.delivery-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-4px);
}

.delivery-card .icon {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 0.75rem;
}

.delivery-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.delivery-card p {
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 1.2rem;
}

.delivery-card .badge {
    display: inline-block;
    background: rgba(232, 122, 32, 0.15);
    color: var(--accent-orange);
    padding: 0.2rem 1.2rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-black);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
   
   
