/*
 * Autoport - Car Dealership Website
 * Color Theme: Luxury Gold, Deep Black, Premium Dark Gray
 */

/* ===== CSS VARIABLES ===== */
:root {
    --bg-primary: #0B0B0B;
    --bg-secondary: #1A1A1A;
    --bg-card: #161616;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8B8;
    --gold: #D4AF37;
    --gold-hover: #E5C158;
    --gold-border: rgba(212,175,55,0.25);
    --success: #2ECC71;
    --warning: #F39C12;
    --error: #E74C3C;
}

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

a { text-decoration: none; color: var(--gold); transition: color 0.3s ease; }
a:hover { color: var(--gold-hover); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ===== UTILITY CLASSES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex-group { display: flex; gap: 15px; flex-wrap: wrap; }
.flex-group-small { display: flex; gap: 8px; flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; gap: 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-full { grid-column: 1 / -1; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.pb-50 { padding-bottom: 50px; }
.p-25 { padding: 25px; }
.text-muted { color: var(--text-secondary) !important; font-size: 13px; }
.text-gold { color: var(--gold) !important; }
.text-small { font-size: 12px; }
.text-lg { font-size: 18px; }
.w-full { width: 100%; }
.max-w-300 { max-width: 300px; }
.lh-1-8 { line-height: 1.8; }
.section-padding { padding: 80px 0; }
.section-padding-small { padding: 30px 0; }
.filter-section { background: var(--bg-secondary); border-bottom: 1px solid rgba(255,255,255,0.08); }
.ml-auto { margin-left: auto; }
.d-none { display: none; }
.unread-row { background: rgba(212,175,55,0.03) !important; font-weight: 600; }
.input-disabled { background: rgba(255,255,255,0.05) !important; cursor: not-allowed; }
.image-placeholder { width: 80px; height: 60px; background: var(--bg-secondary); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 20px; }
.inline-block { display: inline-block; }
.status-select { padding: 7px 10px; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; font-size: 12px; font-family: inherit; background: var(--bg-primary); color: var(--text-primary); }
.status-select:focus { border-color: var(--gold); outline: none; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block; padding: 12px 30px; border: none; border-radius: 4px;
    font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease;
    text-align: center; letter-spacing: 1px; text-transform: uppercase;
}

.btn-nav-auth {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 22px; font-size: 13px; font-weight: 600; letter-spacing: 1.2px;
    text-transform: uppercase; border-radius: 6px; cursor: pointer;
    transition: all 0.3s ease; text-decoration: none; position: relative; overflow: hidden;
}

.nav-menu .btn-nav-login { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.nav-menu .btn-nav-login:hover { background: var(--gold); color: var(--bg-primary); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(212,175,55,0.3); }

.nav-menu .btn-nav-register { background: linear-gradient(135deg, var(--gold) 0%, #c9a227 100%); color: var(--bg-primary); border: 1.5px solid var(--gold); }
.nav-menu .btn-nav-register:hover { background: linear-gradient(135deg, #c9a227 0%, var(--gold) 100%); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(212,175,55,0.4); border-color: var(--gold-hover); }

.btn-primary { background: var(--gold); color: var(--bg-primary); }
.btn-primary:hover { background: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 5px 20px rgba(212,175,55,0.3); }

.btn-secondary { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--gold-border); }
.btn-secondary:hover { background: var(--bg-card); transform: translateY(-2px); border-color: var(--gold); }

.btn-outline { background: transparent; border: 2px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--bg-primary); }

.btn-outline-white { background: transparent; border: 2px solid #FFFFFF; color: #FFFFFF; }
.btn-outline-white:hover { background: #FFFFFF; color: var(--bg-primary); }

.btn-danger { background: var(--error); color: var(--text-primary); }
.btn-danger:hover { background: #c0392b; }

.btn-small { padding: 8px 20px; font-size: 13px; }
.btn-block { display: block; width: 100%; }

/* ===== HEADER / NAVIGATION ===== */
.header { background: var(--bg-primary); padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,0.5); border-bottom: 1px solid var(--gold-border); }
.header .container { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 60px; width: auto; }
.logo-text { font-size: 28px; font-weight: 800; color: var(--text-primary); letter-spacing: 3px; }
.logo-text span { color: var(--gold); }

.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-menu a { color: var(--text-secondary); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px; padding: 5px 0; position: relative; transition: color 0.3s ease; }
.nav-menu a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--gold); transition: width 0.3s ease; }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu a:hover, .nav-menu a.active { color: var(--gold); }

.menu-toggle { display: none; flex-direction: column; cursor: pointer; }
.menu-toggle span { width: 25px; height: 2px; background: var(--text-primary); margin: 3px 0; transition: 0.3s; }

/* ===== HERO SECTION ===== */
.hero { background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%); color: var(--text-primary); padding: 120px 0 80px; text-align: center; position: relative; overflow: hidden; }
.hero .container { position: relative; z-index: 2; }

.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23D4AF37" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom; background-size: cover; opacity: 0.4; pointer-events: none; }

.hero h1 { font-size: 52px; font-weight: 800; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 4px; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 20px; color: var(--text-secondary); margin-bottom: 40px; max-width: 700px; margin-left: auto; margin-right: auto; line-height: 1.8; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ===== SECTION TITLES ===== */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 36px; font-weight: 700; color: var(--text-primary); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 3px; }
.section-title p { color: var(--text-secondary); font-size: 18px; max-width: 600px; margin: 0 auto; }
.section-title .underline { width: 80px; height: 3px; background: var(--gold); margin: 15px auto 0; border-radius: 2px; }

/* ===== CAR CARDS ===== */
.cars-section { padding: 80px 0; background: var(--bg-primary); }
.cars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }

.car-card { background: var(--bg-card); border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); transition: all 0.4s ease; }
.car-card:hover { transform: translateY(-10px); border-color: var(--gold-border); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }

.car-card-image { height: 220px; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 60px; position: relative; overflow: hidden; }
.car-card-image img { width: 100%; height: 100%; object-fit: cover; }

.car-card-status { position: absolute; top: 15px; right: 15px; padding: 5px 15px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.status-available { background: var(--success); color: var(--text-primary); }
.status-sold { background: var(--error); color: var(--text-primary); }
.status-pending { background: var(--warning); color: var(--bg-primary); }

.car-card-body { padding: 25px; }
.car-card-title { font-size: 20px; font-weight: 700; margin-bottom: 5px; color: var(--text-primary); }
.car-card-year { color: var(--text-secondary); font-size: 14px; margin-bottom: 15px; }
.car-card-price { font-size: 26px; font-weight: 800; color: var(--gold); margin-bottom: 15px; }

.car-card-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); }
.car-card-spec { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.car-card-spec i { color: var(--gold); width: 18px; }
.car-card-actions { display: flex; gap: 10px; }
.car-card-actions .btn { flex: 1; font-size: 12px; padding: 10px; }

/* ===== FEATURES SECTION ===== */
.features-section { padding: 80px 0; background: var(--bg-secondary); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }

.feature-card { text-align: center; padding: 40px 30px; border-radius: 8px; transition: all 0.4s ease; border: 1px solid rgba(255,255,255,0.05); background: var(--bg-card); }
.feature-card:hover { background: var(--bg-card); border-color: var(--gold-border); transform: translateY(-5px); box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.feature-card:hover .feature-icon { background: var(--gold); color: var(--bg-primary); }
.feature-card:hover h3 { color: var(--gold); }

.feature-icon { width: 80px; height: 80px; margin: 0 auto 20px; background: rgba(212,175,55,0.1); border: 1px solid var(--gold-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--gold); transition: all 0.4s ease; }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; color: var(--text-primary); transition: color 0.3s ease; }
.feature-card p { color: var(--text-secondary); line-height: 1.7; }

/* ===== ABOUT SECTION ===== */
.about-section { padding: 80px 0; background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%); color: var(--text-primary); }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 36px; font-weight: 700; margin-bottom: 20px; }
.about-text h2 span { color: var(--gold); }
.about-text p { margin-bottom: 20px; color: var(--text-secondary); line-height: 1.8; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.stat { text-align: center; padding: 30px; background: rgba(212,175,55,0.05); border-radius: 8px; border: 1px solid var(--gold-border); }
.stat-number { font-size: 42px; font-weight: 800; color: var(--gold); }
.stat-label { color: var(--text-secondary); font-size: 14px; text-transform: uppercase; letter-spacing: 2px; margin-top: 5px; }

/* ===== CONTACT SECTION ===== */
.contact-section { padding: 80px 0; background: var(--bg-primary); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h3 { font-size: 24px; margin-bottom: 20px; color: var(--text-primary); }
.contact-info-item { display: flex; gap: 15px; margin-bottom: 25px; }
.contact-info-icon { width: 50px; height: 50px; background: rgba(212,175,55,0.1); border: 1px solid var(--gold-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 20px; flex-shrink: 0; }
.contact-info-text h4 { font-size: 16px; margin-bottom: 5px; color: var(--text-primary); }
.contact-info-text p { color: var(--text-secondary); }
.contact-form .form-group { margin-bottom: 20px; }

.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 14px 18px; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; font-size: 16px; font-family: inherit; transition: border-color 0.3s ease; background: var(--bg-card); color: var(--text-primary); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { height: 150px; resize: vertical; }

/* ===== FOOTER ===== */
.footer { background: var(--bg-primary); color: var(--text-secondary); padding: 60px 0 0; border-top: 1px solid var(--gold-border); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: var(--text-primary); font-size: 20px; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: var(--gold); }
.footer-col p { margin-bottom: 15px; line-height: 1.7; color: var(--text-secondary); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-secondary); transition: color 0.3s ease; }
.footer-col ul li a:hover { color: var(--gold); padding-left: 5px; }

.footer-social { display: flex; gap: 15px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; background: rgba(212,175,55,0.1); border: 1px solid var(--gold-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 18px; transition: all 0.3s ease; }
.footer-social a:hover { background: var(--gold); color: var(--bg-primary); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding: 20px 0; text-align: center; font-size: 14px; color: var(--text-secondary); }

/* ===== DASHBOARD COMMON ===== */
.dashboard-wrapper { display: flex; min-height: calc(100vh - 80px); }
.dashboard-sidebar { width: 280px; background: var(--bg-secondary); color: var(--text-primary); padding: 30px 0; flex-shrink: 0; border-right: 1px solid var(--gold-border); }
.dashboard-sidebar .user-info { padding: 0 25px 25px; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 20px; }
.dashboard-sidebar .user-avatar { width: 70px; height: 70px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--bg-primary); margin-bottom: 15px; }
.dashboard-sidebar .user-name { font-size: 18px; font-weight: 600; }
.dashboard-sidebar .user-role { font-size: 13px; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }
.sidebar-nav a { display: flex; align-items: center; gap: 15px; padding: 14px 25px; color: var(--text-secondary); font-size: 15px; transition: all 0.3s ease; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(212,175,55,0.1); color: var(--gold); border-left: 3px solid var(--gold); }
.sidebar-nav a i { width: 20px; text-align: center; font-size: 18px; }
.dashboard-content { flex: 1; padding: 30px; background: var(--bg-primary); overflow-y: auto; }
.dashboard-header { margin-bottom: 30px; }
.dashboard-header h1 { font-size: 28px; color: var(--text-primary); }
.dashboard-header p { color: var(--text-secondary); }

/* ===== DASHBOARD STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; margin-bottom: 30px; }
.stat-card { background: var(--bg-card); padding: 25px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; gap: 20px; }
.stat-card-icon { width: 60px; height: 60px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.stat-card-icon.blue { background: rgba(212,175,55,0.1); color: var(--gold); }
.stat-card-icon.green { background: rgba(46,204,113,0.1); color: var(--success); }
.stat-card-icon.orange { background: rgba(243,156,18,0.1); color: var(--warning); }
.stat-card-icon.red { background: rgba(231,76,60,0.1); color: var(--error); }
.stat-card-info h3 { font-size: 28px; font-weight: 700; color: var(--text-primary); }
.stat-card-info p { color: var(--text-secondary); font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== TABLES ===== */
.table-container { background: var(--bg-card); border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); margin-bottom: 30px; }
.table-container h3 { padding: 20px 25px; font-size: 20px; color: var(--text-primary); border-bottom: 1px solid rgba(255,255,255,0.05); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 14px 20px; text-align: left; font-size: 14px; }
.data-table th { background: var(--bg-secondary); color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }
.data-table tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.data-table tr:hover { background: rgba(212,175,55,0.05); }
.data-table td { color: var(--text-secondary); }

/* ===== STATUS BADGES ===== */
.badge { padding: 4px 12px; border-radius: 15px; font-size: 11px; font-weight: 600; display: inline-block; }
.badge-success { background: rgba(46,204,113,0.15); color: var(--success); }
.badge-danger { background: rgba(231,76,60,0.15); color: var(--error); }
.badge-warning { background: rgba(243,156,18,0.15); color: var(--warning); }
.badge-info { background: rgba(212,175,55,0.15); color: var(--gold); }

/* ===== AUTH PAGES ===== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%); padding: 20px; }
.auth-card { background: var(--bg-card); border: 1px solid var(--gold-border); border-radius: 12px; padding: 50px 40px; width: 100%; max-width: 450px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.auth-card .logo-text { text-align: center; margin-bottom: 30px; font-size: 32px; color: var(--text-primary); letter-spacing: 2px; }
.auth-card .logo-text span { color: var(--gold); }
.auth-card h2 { text-align: center; font-size: 24px; color: var(--text-primary); margin-bottom: 10px; }
.auth-card p { text-align: center; color: var(--text-secondary); margin-bottom: 30px; }
.auth-card .form-group { margin-bottom: 20px; }
.auth-card label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-primary); font-size: 14px; }
.auth-card input, .auth-card select { width: 100%; padding: 14px 18px; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; font-size: 16px; transition: border-color 0.3s ease; background: var(--bg-primary); color: var(--text-primary); }
.auth-card input:focus, .auth-card select:focus { outline: none; border-color: var(--gold); }
.auth-card .auth-footer { text-align: center; margin-top: 20px; color: var(--text-secondary); }
.auth-card .auth-footer a { color: var(--gold); font-weight: 600; }

/* ===== ALERTS ===== */
.alert { padding: 15px 20px; border-radius: 4px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; border: 1px solid transparent; }
.alert-success { background: rgba(46,204,113,0.1); color: var(--success); border-color: rgba(46,204,113,0.2); }
.alert-danger { background: rgba(231,76,60,0.1); color: var(--error); border-color: rgba(231,76,60,0.2); }
.alert-warning { background: rgba(243,156,18,0.1); color: var(--warning); border-color: rgba(243,156,18,0.2); }
.alert-info { background: rgba(212,175,55,0.1); color: var(--gold); border-color: var(--gold-border); }

/* ===== CAR DETAIL PAGE ===== */
.car-detail { padding: 40px 0; background: var(--bg-primary); }
.car-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.car-detail-image { background: var(--bg-secondary); border-radius: 8px; height: 400px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 80px; border: 1px solid rgba(255,255,255,0.05); }
.car-detail-info h1 { font-size: 32px; margin-bottom: 5px; color: var(--text-primary); }
.car-detail-info .price { font-size: 36px; font-weight: 800; color: var(--gold); margin-bottom: 20px; }
.car-detail-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 25px 0; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); }
.car-detail-spec { display: flex; gap: 10px; }
.car-detail-spec strong { color: var(--text-secondary); font-size: 13px; text-transform: uppercase; }
.car-detail-spec span { color: var(--text-primary); font-weight: 600; }
.car-detail-features { margin: 25px 0; }
.car-detail-features h3 { margin-bottom: 15px; color: var(--text-primary); }
.feature-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.feature-tag { background: rgba(212,175,55,0.08); padding: 8px 15px; border-radius: 20px; font-size: 13px; color: var(--gold); border: 1px solid var(--gold-border); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-primary); font-size: 14px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; font-size: 15px; background: var(--bg-card); color: var(--text-primary); transition: border-color 0.3s ease; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); outline: none; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-actions { display: flex; gap: 15px; margin-top: 30px; }

/* ===== ADMIN SPECIFIC ===== */
.image-preview { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1); }
.main-image-preview { max-width: 200px; max-height: 150px; border-radius: 8px; border: 1px solid var(--gold-border); margin-top: 10px; }
.gallery-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.gallery-item { position: relative; width: 100px; height: 80px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1); }
.gallery-item .delete-img { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; background: var(--error); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; text-decoration: none; transition: transform 0.2s; }
.gallery-item .delete-img:hover { transform: scale(1.2); }
.file-input-wrapper { position: relative; }
.file-input-wrapper input[type="file"] { padding: 10px; border: 1px dashed rgba(255,255,255,0.2); border-radius: 4px; background: rgba(255,255,255,0.03); color: var(--text-secondary); cursor: pointer; width: 100%; }
.file-input-wrapper input[type="file"]:hover { border-color: var(--gold-border); }

/* ===== FILTERS & SEARCH ===== */
.filters-bar { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.search-box { display: flex; flex: 1; min-width: 250px; background: var(--bg-card); border-radius: 4px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.search-box input { flex: 1; border: none !important; background: transparent !important; }
.search-box button { background: var(--gold); color: var(--bg-primary); border: none; padding: 0 20px; cursor: pointer; transition: 0.3s; }
.search-box button:hover { background: var(--gold-hover); }

/* ===== MODAL ===== */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 20px; }
.modal.active { display: flex; }
.modal-content { background: var(--bg-card); border: 1px solid var(--gold-border); border-radius: 12px; padding: 40px; width: 100%; max-width: 500px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 28px; color: var(--text-secondary); cursor: pointer; transition: 0.3s; }
.modal-close:hover { color: var(--gold); }
.modal-content h2 { font-size: 24px; color: var(--text-primary); margin-bottom: 10px; }

.booking-form .form-group { margin-bottom: 20px; }
.booking-form label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-primary); font-size: 14px; }
.booking-form input, .booking-form select, .booking-form textarea { width: 100%; padding: 12px 15px; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; font-size: 15px; background: var(--bg-primary); color: var(--text-primary); }
.booking-form input:focus, .booking-form select:focus { border-color: var(--gold); outline: none; }

/* ===== CAR GALLERY & LIGHTBOX ===== */
.car-gallery { position: relative; width: 100%; }
.gallery-main { width: 100%; height: 450px; border-radius: 8px; overflow: hidden; position: relative; background: var(--bg-secondary); border: 1px solid rgba(255,255,255,0.05); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s ease; }
.gallery-main .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 80px; color: var(--text-secondary); }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 45px; height: 45px; background: rgba(11, 11, 11, 0.8); border: 1px solid var(--gold-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 18px; cursor: pointer; transition: all 0.3s ease; z-index: 10; }
.gallery-nav:hover { background: var(--gold); color: var(--bg-primary); }
.gallery-nav.prev { left: 15px; }
.gallery-nav.next { right: 15px; }
.gallery-thumbnails { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.gallery-thumb { width: 90px; height: 65px; border-radius: 4px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: all 0.3s ease; opacity: 0.6; position: relative; }
.gallery-thumb:hover { opacity: 0.9; }
.gallery-thumb.active { border-color: var(--gold); opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb .thumb-placeholder { width: 100%; height: 100%; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 20px; }
.image-counter { position: absolute; bottom: 15px; right: 15px; background: rgba(11, 11, 11, 0.8); color: var(--text-primary); padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; border: 1px solid rgba(255,255,255,0.1); z-index: 10; }

.lightbox { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.95); z-index: 3000; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 36px; color: var(--text-primary); cursor: pointer; transition: color 0.3s; z-index: 10; }
.lightbox-close:hover { color: var(--gold); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-primary); font-size: 24px; cursor: pointer; transition: all 0.3s ease; z-index: 10; }
.lightbox-nav:hover { background: var(--gold); color: var(--bg-primary); }
.lb-prev { left: 30px; }
.lb-next { right: 30px; }

/* ===== MEDIA QUERIES ===== */
@media (max-width: 992px) {
    .about-content, .contact-grid, .car-detail-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 42px; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 40px;
        transition: 0.4s;
        z-index: 999;
        gap: 20px;
        align-items: flex-start;
    }

    .nav-menu a::after { display: none; }
    .nav-menu a.active { border-left: 3px solid var(--gold); padding-left: 15px; }

    .nav-menu.active { left: 0; }
    .menu-toggle { display: flex; }
    
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    
    .form-row { grid-template-columns: 1fr; }
    
    .dashboard-wrapper { flex-direction: column; }
    .dashboard-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--gold-border); }
}
