* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f0f0f;
    --bg-card: #141414;
    --bg-card-hover: #1c1c1c;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #6b7280;
    --primary-color: #fbbf24;
    --primary-dark: #f59e0b;
    --primary-hover: #facc15;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --info-color: #3b82f6;
    --border-color: #222222;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== نویگیشن ========== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary-color);
}

.logo span {
    background: linear-gradient(135deg, var(--primary-color), #facc15);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-login, .btn-register {
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-login {
    color: var(--text-primary);
    border: 1px solid var(--primary-color);
}

.btn-login:hover {
    background: var(--primary-color);
    color: #000;
}

.btn-register {
    background: var(--primary-color);
    color: #000;
}

.btn-register:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 10px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 5px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 8px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -8px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 999;
    padding: 80px 2rem 2rem 2rem;
    transition: right 0.4s ease;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .nav-links-mobile {
    list-style: none;
    margin-bottom: 2rem;
}

.mobile-menu .nav-links-mobile li {
    margin-bottom: 1.5rem;
}

.mobile-menu .nav-links-mobile a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 998;
    display: none;
}

.menu-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .nav-links, .nav-buttons {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .container {
        padding: 0 1rem;
    }
}

/* ========== دکمه‌ها ========== */
.btn-primary, .btn-outline {
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #000;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(251, 191, 36, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #000;
}

/* ========== اسلایدر ========== */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 70px;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    max-width: 800px;
}

.slide-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), #facc15);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.slide-content p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.slide-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
    z-index: 10;
}
.slider-prev { right: 20px; }
.slider-next { left: 20px; }
.slider-prev:hover, .slider-next:hover {
    background: var(--primary-color);
    color: #000;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}
.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .slide-content h1 { font-size: 32px; }
    .slide-content p { font-size: 16px; }
    .slide-buttons { flex-direction: column; align-items: center; }
}

/* ========== بخش جستجو ========== */
.search-section {
    padding: 2rem 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.search-main-box {
    max-width: 800px;
    margin: 0 auto;
}

.search-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-tab {
    background: transparent;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    transition: 0.3s;
}

.search-tab.active {
    background: var(--primary-color);
    color: #000;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 60px;
    padding: 5px 5px 5px 20px;
    border: 1px solid var(--border-color);
}

.search-input-group i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.search-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 12px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.search-input-group button {
    background: var(--primary-color);
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.search-input-group button:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

/* ========== آمار ========== */
.stats-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 20px;
    transition: 0.3s;
}
.stat-card:hover {
    transform: translateY(-5px);
    border: 1px solid var(--primary-color);
}
.stat-card i {
    font-size: 48px;
    color: var(--primary-color);
}
.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
}
.stat-label {
    color: var(--text-secondary);
}

/* ========== بخش‌ها ========== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    font-size: 36px;
    margin-bottom: 1rem;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

.featured-cars, .rental-cars, .brands, .features, .testimonials {
    padding: 4rem 0;
}

/* گرید موترها */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.car-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
}
.car-card:hover {
    transform: translateY(-5px);
    border: 1px solid var(--primary-color);
}
.car-image {
    height: 220px;
    background-size: cover;
    background-position: center;
}
.car-info {
    padding: 1.5rem;
}
.car-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    font-family: monospace;
    letter-spacing: 0.5px;
}
.car-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
}
.car-price-afn {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: -5px;
    margin-bottom: 10px;
}
.car-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 12px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.car-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.car-meta i {
    color: var(--primary-color);
    font-size: 0.7rem;
}
.car-seller {
    color: var(--primary-color);
    font-size: 0.85rem;
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.car-location {
    color: var(--text-muted);
    font-size: 0.7rem;
}
.rental-price {
    background: rgba(251, 191, 36, 0.15);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-top: 8px;
}
.rental-price i {
    color: var(--primary-color);
}

/* برندها */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}
.brand-card {
    background: var(--bg-card);
    padding: 1.5rem;
    text-align: center;
    border-radius: 20px;
    transition: 0.3s;
    font-size: 18px;
    font-weight: bold;
}
.brand-card i {
    font-size: 32px;
    color: var(--primary-color);
    margin-left: 10px;
}
.brand-card:hover {
    border: 1px solid var(--primary-color);
    transform: translateY(-3px);
}

/* مزایا */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}
.feature-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: 0.3s;
}
.feature-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.feature-card h3 {
    margin-bottom: 1rem;
}
.feature-card p {
    color: var(--text-secondary);
}

/* نظرات */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem;
}
.testimonial-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}
.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.8;
}
.testimonial-rating i {
    color: var(--primary-color);
}

/* فوتر */
.footer {
    background: var(--bg-secondary);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
}
.footer-col a:hover {
    color: var(--primary-color);
}
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-links a:hover {
    background: var(--primary-color);
    color: #000;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.text-center {
    text-align: center;
}

/* ========== چت پاپ‌آپ ========== */
/* ========== چت دکمه‌ای شناور ========== */
.chat-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.chat-button {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    transition: 0.3s;
    position: relative;
}

.chat-button:hover {
    transform: scale(1.1);
}

.chat-button i {
    font-size: 28px;
    color: #000;
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.chat-window {
    position: absolute;
    bottom: 75px;
    left: 0;
    width: 330px;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--primary-color);
    display: none;
    flex-direction: column;
    height: 450px;
    overflow: hidden;
}

.chat-window.open {
    display: flex;
}

.chat-header {
    background: var(--primary-color);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
    font-weight: bold;
}

.chat-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #000;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    padding: 8px 12px;
    border-radius: 16px;
    max-width: 85%;
    word-break: break-word;
}

.message.received {
    background: #1f2937;
    align-self: flex-start;
}

.message.sent {
    background: var(--primary-color);
    color: #000;
    align-self: flex-end;
}

.chat-input {
    display: flex;
    padding: 12px;
    gap: 8px;
    border-top: 1px solid var(--border-color);
}

.chat-input input {
    flex: 1;
    background: #111827;
    border: none;
    padding: 10px;
    border-radius: 40px;
    color: white;
    outline: none;
}

.chat-input button {
    background: var(--primary-color);
    border: none;
    padding: 0 16px;
    border-radius: 40px;
    cursor: pointer;
}

.whatsapp-hint {
    text-align: center;
    padding: 12px;
    border-top: 1px solid var(--border-color);
}

.whatsapp-hint a {
    color: #25D366;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 550px) {
    .chat-window {
        width: 300px;
        right: 0;
        left: auto;
        bottom: 75px;
    }
    .chat-float {
        left: auto;
        right: 16px;
        bottom: 16px;
    }
}

/* ========== بج‌ها ========== */
.badge-fuel {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: bold;
}
.badge-petrol { background: #10b981; color: #000; }
.badge-diesel { background: #f59e0b; color: #000; }
.badge-electric { background: #3b82f6; color: #fff; }
.badge-automatic { background: #8b5cf6; color: #fff; }
.badge-manual { background: #6b7280; color: #fff; }