/* ========================================= */
/* 1. GLOBAL VARIABLES & RESET               */
/* ========================================= */
:root {
    --primary: #F36622;
    --dark: #163B59;
    --slate: #64748b;
    --bg: #f8fafc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: var(--dark);
    line-height: 1.5;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-orange { color: var(--primary); }
.text-dark { color: var(--dark); }

/* ========================================= */
/* 2. NAVBAR & LOGO (PERFECTLY ALIGNED)      */
/* ========================================= */
.navbar {
    height: 90px; display: flex; align-items: center;
    background: #ffffff; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: sticky; top: 0; z-index: 1000;
}

.nav-content { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo-section { cursor: pointer; display: flex; align-items: center; gap: 8px; }
.nav-logo-icon { height: 45px; width: 55px; object-fit: cover; object-position: top center; }

.nav-logo-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.05; margin-left: 5px; }
.nav-logo-text .text-top { font-size: 1.1rem; font-weight: 900; color: var(--dark); letter-spacing: 0.5px; }
.nav-logo-text .text-bottom { font-size: 1.4rem; font-weight: 900; color: var(--primary); letter-spacing: 0.5px; }

/* Middle Links (Animated Underline) */
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { 
    text-decoration: none; color: var(--dark); font-weight: 700; font-size: 1rem; 
    transition: color 0.3s ease; position: relative; padding-bottom: 5px; 
}
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 3px; bottom: 0; left: 0;
    background-color: var(--primary); transition: width 0.3s ease-in-out; border-radius: 2px;
}
.nav-links a:hover::after, .nav-links a.active-link::after { width: 100%; }
.nav-links a:hover, .nav-links a.active-link { color: var(--primary); }

/* Right Actions */
.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-location {
    display: flex; align-items: center; gap: 5px; background: #f8fafc; padding: 0 12px; height: 44px;
    border-radius: 8px; border: 1px solid #e2e8f0; transition: 0.3s;
}
.nav-location:hover { border-color: var(--primary); }
.location-select { border: none; background: transparent; font-weight: 700; color: var(--dark); font-size: 0.95rem; outline: none; cursor: pointer; font-family: inherit; }

.btn-action {
    border: none; padding: 0 20px; height: 44px; border-radius: 8px; font-weight: 700;
    font-size: 0.95rem; cursor: pointer; transition: all 0.3s ease; font-family: inherit;
    display: flex; align-items: center; justify-content: center; text-decoration: none; color: #ffffff; 
}

.btn-buy-sell { background: #163B59; }
.btn-buy-sell:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(22, 59, 89, 0.4); }

.btn-login { background: #ef4444; }
.btn-login:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(239, 68, 68, 0.4); }

.btn-join { background: #F36622; }
.btn-join:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(243, 102, 34, 0.4); }

/* Main CTA for body */
.btn-primary {
    border: none; padding: 0 28px; height: 52px; border-radius: 12px; font-weight: 700; font-size: 1.1rem;
    cursor: pointer; transition: 0.3s; font-family: inherit; display: flex; align-items: center; justify-content: center;
    background: var(--primary); color: #ffffff; box-shadow: 0 8px 20px rgba(243, 102, 34, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(243, 102, 34, 0.4); }
.btn-ghost { background: transparent; border: none; color: var(--dark); font-weight: 800; cursor: pointer; transition: 0.3s; }

/* ========================================= */
/* 📢 3. SINGLE ANNOUNCEMENT SLIDER (FIXED)  */
/* ========================================= */
.announcement-slider {
    background-color: var(--dark);
    height: 40px; 
    position: relative; 
    overflow: hidden; 
    width: 100%;
    border-bottom: 2px solid var(--primary);
    z-index: 998;
}

.announce-msg {
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #ffffff; font-size: 0.85rem; font-weight: 600;
    transform: translateX(100%); 
    opacity: 0;
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.announce-msg.active-msg { transform: translateX(0); opacity: 1; }
.announce-msg.exit-msg { transform: translateX(-100%); opacity: 0; }

/* ========================================= */
/* 4. HERO & PREMIUM CARDS                   */
/* ========================================= */
.hero { display: flex; align-items: center; gap: 50px; }
.hero-text { flex: 1.2; }
.hero-img { width: 100%; border-radius: 24px; box-shadow: 0 25px 50px -12px rgba(22, 59, 89, 0.25); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px;}
.card {
    background: #ffffff; padding: 40px 30px; border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.6); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px -10px rgba(22, 59, 89, 0.08);
}
.card:hover { border-color: rgba(243, 102, 34, 0.3); transform: translateY(-8px); box-shadow: 0 20px 40px -10px rgba(243, 102, 34, 0.15); }

.stat-icon-box {
    width: 60px; height: 60px; background: rgba(243, 102, 34, 0.1); color: var(--primary);
    border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}

/* ========================================= */
/* 5. SERVICES & PRODUCTS UI                 */
/* ========================================= */
.service-layout, .product-layout { display: flex; gap: 30px; margin-top: 40px; }
.service-menu, .filter-sidebar {
    flex: 0 0 260px; background: #ffffff; padding: 25px; border-radius: 20px;
    border: 1px solid #e2e8f0; position: sticky; top: 110px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}
.menu-item {
    display: block; width: 100%; text-align: left; padding: 15px 20px; background: transparent;
    border: none; border-radius: 12px; font-size: 1rem; font-weight: 700; color: var(--slate);
    cursor: pointer; transition: 0.3s; margin-bottom: 10px; font-family: inherit;
}
.menu-item.active, .menu-item:hover { background: var(--dark); color: #ffffff; }

.checkout-box {
    flex: 0 0 320px; background: #ffffff; padding: 25px; border-radius: 20px;
    border: 2px solid var(--primary); position: sticky; top: 110px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; flex: 1; }
.prod-card {
    background: #ffffff; border: 1px solid #f1f5f9; border-radius: 15px; padding: 20px;
    transition: 0.3s; position: relative; display: flex; flex-direction: column;
}
.prod-card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 15px 30px -10px rgba(243, 102, 34, 0.15); }
.prod-img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; margin-bottom: 15px; }
.badge-oem {
    position: absolute; top: 30px; left: 30px; background: #10b981; color: white;
    padding: 5px 12px; font-size: 0.7rem; font-weight: 800; border-radius: 20px; box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* ========================================= */
/* 6. LIVE TRACKER & HOW IT WORKS            */
/* ========================================= */
.tracker-section { 
    background: var(--dark); border-radius: 24px; padding: 40px; color: white; 
    position: relative; overflow: hidden; box-shadow: 0 20px 40px -10px rgba(22, 59, 89, 0.4);
}
.tracker-input-group { display: flex; gap: 15px; max-width: 500px; margin: 25px 0 35px; }
.tracker-input-group input { 
    flex: 1; padding: 0 20px; height: 44px; border-radius: 8px; border: 2px solid #334155; 
    background: #1e293b; color: white; outline: none; font-size: 1rem; font-family: inherit; transition: 0.3s;
}
.tracker-input-group input:focus { border-color: var(--primary); }

.track-steps-container { display: flex; justify-content: space-between; position: relative; margin-top: 40px; display: none; }
.track-line-bg { position: absolute; top: 20px; left: 0; width: 100%; height: 4px; background: #334155; z-index: 1; }
.track-line-fill { position: absolute; top: 20px; left: 0; width: 0%; height: 4px; background: var(--primary); z-index: 2; transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1); }
.track-step { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; width: 25%; }
.track-dot { width: 44px; height: 44px; background: #334155; border-radius: 50%; border: 6px solid var(--dark); display: flex; align-items: center; justify-content: center; transition: 0.5s; }
.track-dot.active { background: var(--primary); box-shadow: 0 0 20px rgba(243, 102, 34, 0.6); }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.process-step { text-align: center; padding: 20px; }
.process-icon { 
    width: 80px; height: 80px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.06); color: var(--primary); border: 2px solid #f8fafc; transition: 0.3s;
}
.process-step:hover .process-icon { transform: scale(1.1); border-color: var(--primary); }

/* ========================================= */
/* 7. ENHANCED FOOTER                        */
/* ========================================= */
.footer { background: var(--dark); color: #cbd5e1; padding: 80px 0 30px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-logo-section { display: flex; align-items: center; gap: 12px; }
.footer-logo-icon { height: 45px; width: 55px; object-fit: cover; object-position: top center; }
.footer-logo-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; }
.footer-logo-text .text-top, .footer-logo-text .text-bottom { font-size: 1.15rem; font-weight: 800; color: #ffffff; letter-spacing: 0.5px; }
.footer-link { color: #94a3b8; cursor: pointer; margin-bottom: 15px; transition: color 0.3s ease, transform 0.3s ease; display: block; width: fit-content; }
.footer-link:hover { color: var(--primary); transform: translateX(5px); }

/* ========================================= */
/* 8. MOBILE BOTTOM NAV & RESPONSIVENESS     */
/* ========================================= */
.mobile-bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; width: 100%;
    background: #ffffff; box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08); z-index: 2000;
    padding: 12px 20px; padding-bottom: calc(12px + env(safe-area-inset-bottom));
    justify-content: space-between; align-items: center; border-top: 1px solid #f1f5f9;
}
.mob-nav-item {
    display: flex; flex-direction: column; align-items: center; color: var(--slate);
    cursor: pointer; text-decoration: none; font-size: 0.75rem; font-weight: 800;
    gap: 4px; transition: 0.3s; width: 60px;
}
.mob-nav-item i { width: 24px; height: 24px; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

/* Active States */
.mob-nav-item.active-nav { color: var(--primary); }
.mob-nav-item.active-nav i { transform: translateY(-4px); color: var(--primary); }

@media (max-width: 900px) {
    .nav-location, .nav-links { display: none; }
    .btn-buy-sell, .btn-join { display: none !important; } 
    .nav-actions { gap: 10px; }
    .btn-login { height: 32px; padding: 0 14px; font-size: 0.85rem; border-width: 1px; }

    .mobile-bottom-nav { display: flex; }
    body { padding-bottom: 80px; }
    
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .service-layout, .product-layout { flex-direction: column; }
    .service-menu, .filter-sidebar, .checkout-box { position: static; width: 100%; flex: none; }
    .service-menu { display: flex; overflow-x: auto; white-space: nowrap; }
    .menu-item { flex: 0 0 auto; margin-bottom: 0; margin-right: 10px; }
}

@media (max-width: 768px) {
    .announce-msg { font-size: 0.75rem; padding: 0 10px; text-align: center; }
    .hero { flex-direction: column; text-align: center; gap: 30px; }
    .hero-text h1 { font-size: 10vw !important; line-height: 1.1 !important; margin-bottom: 15px; }
    .hero-text p { font-size: 0.95rem !important; margin-bottom: 25px; }
    .hero-text div { flex-direction: column; gap: 12px; }
    .btn-primary, .btn-ghost { width: 100%; height: 44px; font-size: 1rem; }
    
    .nav-logo-icon { height: 35px; width: 45px; }
    .nav-logo-text .text-top { font-size: 0.8rem; }
    .nav-logo-text .text-bottom { font-size: 1.1rem; }

    .grid-3 { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .tracker-input-group { flex-direction: column; }
    .track-dot { width: 30px; height: 30px; border-width: 4px; }
    .track-line-bg, .track-line-fill { top: 13px; }
}

@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer-logo-section { justify-content: center; }
    .footer-link { margin: 0 auto 12px; }
    .process-grid { grid-template-columns: 1fr; }
}
/* ========================================= */
/* 🚀 9. PRO FEATURES (MODAL, PROFILE, CARS) */
/* ========================================= */

/* --- 1. Product Details Modal (Pop-up) --- */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8); z-index: 3000; justify-content: center; align-items: center;
    backdrop-filter: blur(5px);
}
.modal-content {
    background: #fff; width: 90%; max-width: 800px; border-radius: 24px;
    display: flex; overflow: hidden; position: relative; animation: modalIn 0.3s ease-out;
}
@keyframes modalIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
    position: absolute; top: 15px; right: 20px; background: #f1f5f9; border: none;
    width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex;
    align-items: center; justify-content: center; transition: 0.3s; color: var(--slate);
}
.modal-close:hover { background: #ef4444; color: white; }
.modal-img-box { flex: 1; background: #f8fafc; padding: 20px; display: flex; align-items: center; }
.modal-img-box img { width: 100%; border-radius: 16px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.modal-info { flex: 1; padding: 40px; display: flex; flex-direction: column; }

/* --- 2. Buy & Sell (Car Grid) --- */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; margin-top: 30px; }
.car-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; overflow: hidden; transition: 0.3s; }
.car-card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(22, 59, 89, 0.1); }
.car-img { width: 100%; height: 200px; object-fit: cover; }
.car-details { padding: 25px; }
.car-specs { display: flex; gap: 15px; margin: 15px 0; color: var(--slate); font-size: 0.9rem; font-weight: 600; }
.car-specs span { display: flex; align-items: center; gap: 5px; background: #f1f5f9; padding: 5px 10px; border-radius: 8px; }

/* --- 3. Profile & Dashboard --- */
.profile-layout { display: flex; gap: 40px; margin-top: 40px; align-items: flex-start; }
.profile-sidebar { flex: 0 0 280px; background: #fff; padding: 30px; border-radius: 24px; border: 1px solid #e2e8f0; text-align: center; }
.profile-avatar { width: 100px; height: 100px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 900; margin: 0 auto 15px; }
.profile-main { flex: 1; }
.history-card { border: 1px solid #e2e8f0; padding: 20px; border-radius: 16px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; background: #fff; }

/* --- 4. Checkout Form --- */
.checkout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-top: 30px; }
.form-box { background: #fff; padding: 40px; border-radius: 24px; border: 1px solid #e2e8f0; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-weight: 700; color: var(--dark); margin-bottom: 8px; font-size: 0.9rem; }
.input-group input, .input-group select { width: 100%; padding: 14px 16px; border: 2px solid #e2e8f0; border-radius: 10px; font-family: inherit; font-size: 1rem; transition: 0.3s; }
.input-group input:focus { border-color: var(--primary); outline: none; }
.radio-group { display: flex; gap: 20px; margin-top: 10px; }
.radio-box { flex: 1; border: 2px solid #e2e8f0; padding: 15px; border-radius: 10px; cursor: pointer; font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 10px; }
.radio-box input { width: auto; transform: scale(1.2); }

/* Mobile Adjustments for Pro Features */
@media (max-width: 768px) {
    .modal-content { flex-direction: column; width: 95%; max-height: 90vh; overflow-y: auto; }
    .profile-layout, .checkout-grid { flex-direction: column; }
    .profile-sidebar { width: 100%; }
    .car-grid { grid-template-columns: 1fr; }
    .radio-group { flex-direction: column; gap: 10px; }
}
/* ========================================= */
/* 🚀 9. PRO FEATURES (MODAL, PROFILE, CARS) */
/* ========================================= */

/* --- 1. Product Details Modal (Pop-up) --- */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8); z-index: 3000; justify-content: center; align-items: center;
    backdrop-filter: blur(5px);
}
.modal-content {
    background: #fff; width: 90%; max-width: 800px; border-radius: 24px;
    display: flex; overflow: hidden; position: relative; animation: modalIn 0.3s ease-out;
}
@keyframes modalIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
    position: absolute; top: 15px; right: 20px; background: #f1f5f9; border: none;
    width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex;
    align-items: center; justify-content: center; transition: 0.3s; color: var(--slate);
}
.modal-close:hover { background: #ef4444; color: white; }
.modal-img-box { flex: 1; background: #f8fafc; padding: 20px; display: flex; align-items: center; }
.modal-img-box img { width: 100%; border-radius: 16px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.modal-info { flex: 1; padding: 40px; display: flex; flex-direction: column; }

/* --- 2. Buy & Sell (Car Grid) --- */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; margin-top: 30px; }
.car-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; overflow: hidden; transition: 0.3s; }
.car-card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(22, 59, 89, 0.1); }
.car-img { width: 100%; height: 200px; object-fit: cover; }
.car-details { padding: 25px; }
.car-specs { display: flex; gap: 15px; margin: 15px 0; color: var(--slate); font-size: 0.9rem; font-weight: 600; }
.car-specs span { display: flex; align-items: center; gap: 5px; background: #f1f5f9; padding: 5px 10px; border-radius: 8px; }

/* --- 3. Profile & Dashboard --- */
.profile-layout { display: flex; gap: 40px; margin-top: 40px; align-items: flex-start; }
.profile-sidebar { flex: 0 0 280px; background: #fff; padding: 30px; border-radius: 24px; border: 1px solid #e2e8f0; text-align: center; }
.profile-avatar { width: 100px; height: 100px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 900; margin: 0 auto 15px; }
.profile-main { flex: 1; }
.history-card { border: 1px solid #e2e8f0; padding: 20px; border-radius: 16px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; background: #fff; }

/* --- 4. Checkout Form --- */
.checkout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-top: 30px; }
.form-box { background: #fff; padding: 40px; border-radius: 24px; border: 1px solid #e2e8f0; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-weight: 700; color: var(--dark); margin-bottom: 8px; font-size: 0.9rem; }
.input-group input, .input-group select { width: 100%; padding: 14px 16px; border: 2px solid #e2e8f0; border-radius: 10px; font-family: inherit; font-size: 1rem; transition: 0.3s; }
.input-group input:focus { border-color: var(--primary); outline: none; }
.radio-group { display: flex; gap: 20px; margin-top: 10px; }
.radio-box { flex: 1; border: 2px solid #e2e8f0; padding: 15px; border-radius: 10px; cursor: pointer; font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 10px; }
.radio-box input { width: auto; transform: scale(1.2); }

/* Mobile Adjustments for Pro Features */
@media (max-width: 768px) {
    .modal-content { flex-direction: column; width: 95%; max-height: 90vh; overflow-y: auto; }
    .profile-layout, .checkout-grid { flex-direction: column; }
    .profile-sidebar { width: 100%; }
    .car-grid { grid-template-columns: 1fr; }
    .radio-group { flex-direction: column; gap: 10px; }
}
/* ========================================= */
/* 🔐 10. LOGIN & OTP MODAL STYLING          */
/* ========================================= */
.login-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8); z-index: 4000; justify-content: center; align-items: center;
    backdrop-filter: blur(5px);
}
.login-box {
    background: #fff; width: 90%; max-width: 400px; border-radius: 24px;
    padding: 40px 30px; position: relative; animation: modalIn 0.3s ease-out;
    text-align: center; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.login-box h2 { color: var(--dark); font-size: 1.8rem; margin-bottom: 10px; }
.login-box p { color: var(--slate); font-size: 0.95rem; margin-bottom: 25px; line-height: 1.5; }
.login-input { 
    width: 100%; padding: 15px; border: 2px solid #e2e8f0; border-radius: 12px; 
    margin-bottom: 20px; font-size: 1.1rem; text-align: center; letter-spacing: 2px;
    font-family: inherit; font-weight: 700; color: var(--dark); transition: 0.3s;
}
.login-input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(243, 102, 34, 0.1); }

