/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #d4a843;
    --primary-dark: #b8912e;
    --dark: #0d0d0d;
    --dark-light: #1a1a1a;
    --dark-card: #141414;
    --gray: #2a2a2a;
    --gray-light: #3a3a3a;
    --text: #f0f0f0;
    --text-muted: #999;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul { list-style: none; }

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER / NAV ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.15);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(13, 13, 13, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--dark);
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(212, 168, 67, 0.1);
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.hamburger span {
    width: 28px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,13,13,0.9) 0%, rgba(13,13,13,0.6) 50%, rgba(13,13,13,0.85) 100%),
                url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1920') center/cover no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--dark), transparent);
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,13,13,0.88) 0%, rgba(13,13,13,0.55) 50%, rgba(13,13,13,0.82) 100%);
    z-index: 1;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--dark), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(212, 168, 67, 0.15);
    border: 1px solid rgba(212, 168, 67, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), #e8c76a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 168, 67, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-light);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: var(--dark-light);
    border-top: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(212, 168, 67, 0.1);
    border: 1px solid rgba(212, 168, 67, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-img .badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--primary);
    color: var(--dark);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

.about-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--dark-card);
    border: 1px solid var(--gray);
    border-radius: 10px;
    transition: var(--transition);
}

.feature-item:hover {
    border-color: rgba(212, 168, 67, 0.3);
    transform: translateX(4px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(212, 168, 67, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.feature-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===== OFFERS / CARDS ===== */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.offer-card {
    background: var(--dark-card);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.offer-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 168, 67, 0.3);
    box-shadow: var(--shadow);
}

.offer-card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.offer-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.offer-card:hover .offer-card-img img {
    transform: scale(1.08);
}

.offer-card-img .tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--dark);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.offer-card-body {
    padding: 20px;
}

.offer-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.offer-card-body .price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.offer-specs {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.offer-specs span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--gray);
    padding: 4px 10px;
    border-radius: 6px;
}

.offer-card-body .btn {
    width: 100%;
    justify-content: center;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--dark-card);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(212, 168, 67, 0.3);
    transform: translateY(-4px);
}

.service-card .icon {
    width: 64px;
    height: 64px;
    background: rgba(212, 168, 67, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--dark-card);
    border: 1px solid var(--gray);
    border-radius: 10px;
}

.contact-info-item .icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(212, 168, 67, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-info-item h4 {
    margin-bottom: 4px;
}

.contact-info-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 16px;
    background: var(--dark-card);
    border: 1px solid var(--gray);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-light);
    border-top: 1px solid var(--gray);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 16px;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--gray);
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 40px 24px;
}

.mobile-nav.active {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav a {
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: rgba(212, 168, 67, 0.1);
    color: var(--primary);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    text-align: center;
    border-bottom: 1px solid var(--gray);
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.page-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ===== VEHICLE LIST ===== */
.filters-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 24px;
    background: var(--dark-card);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.filters-bar select,
.filters-bar input {
    padding: 10px 16px;
    background: var(--dark);
    border: 1px solid var(--gray);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    flex: 1;
    min-width: 150px;
}

.filters-bar select:focus,
.filters-bar input:focus {
    border-color: var(--primary);
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* Results bar */
.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.results-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* View toggle buttons */
.view-toggle {
    display: flex;
    gap: 6px;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--dark-card);
    border: 1px solid var(--gray);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.view-btn:hover,
.view-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(212, 168, 67, 0.1);
}

/* Body type badge on card image */
.body-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.65);
    color: var(--text);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    backdrop-filter: blur(4px);
}

/* List view layout */
.vehicles-grid.list-view {
    grid-template-columns: 1fr;
}

.vehicles-grid.list-view .offer-card {
    display: flex;
    flex-direction: row;
}

.vehicles-grid.list-view .offer-card-img {
    width: 260px;
    min-width: 260px;
    height: auto;
}

.vehicles-grid.list-view .offer-card-img img {
    height: 100%;
    object-fit: cover;
}

.vehicles-grid.list-view .offer-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ===== MAP ===== */
.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray);
    margin-top: 40px;
}

.map-wrapper iframe {
    width: 100%;
    height: 400px;
    display: block;
}

/* ===== ADMIN ===== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
}

.admin-sidebar {
    width: 260px;
    background: var(--dark-light);
    border-right: 1px solid var(--gray);
    padding: 24px 16px;
    position: fixed;
    top: 80px;
    bottom: 0;
    overflow-y: auto;
}

.admin-sidebar h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding: 0 12px;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
    margin-bottom: 4px;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(212, 168, 67, 0.1);
    color: var(--primary);
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.admin-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background: var(--dark-card);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    padding: 24px;
}

.admin-stat-card .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.admin-stat-card .value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.admin-stat-card .change {
    font-size: 0.8rem;
    margin-top: 4px;
}

.admin-stat-card .change.up { color: #4ade80; }
.admin-stat-card .change.down { color: #f87171; }

.admin-table-wrap {
    background: var(--dark-card);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    overflow: hidden;
}

.admin-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray);
}

.admin-table-header h2 {
    font-size: 1.2rem;
}

table.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 14px 24px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--gray);
}

.admin-table td {
    padding: 16px 24px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: rgba(212, 168, 67, 0.03);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

.status-badge.sold {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

.status-badge.reserved {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.action-btns {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--gray);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.85rem;
}

.action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== SOCIAL LINKS ===== */
.social-links {
    margin-top: 16px;
    text-align: center;
}

.social-links p {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.action-btn.delete:hover {
    border-color: #f87171;
    color: #f87171;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}
.modal-overlay.active {
    display: grid;
    display: flex !important;
    padding: 20px;
}

.modal-overlay:not(.active) {
    display: none !important;
}
.modal {
    background: var(--dark-light);
    border: 1px solid var(--gray);
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin: auto;
}

.modal h2 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    font-weight: 700;
}

.modal .form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal .form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.modal .form-group input,
.modal .form-group select,
.modal .form-group textarea {
    padding: 12px 14px;
    background: var(--dark-card);
    border: 1px solid var(--gray);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.modal .form-group input:focus,
.modal .form-group select:focus,
.modal .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

.modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.modal .form-row .form-group {
    margin-bottom: 0;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--gray);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--dark-card);
    border: 1px solid var(--gray);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 16px 24px;
    z-index: 3000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 360px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success { border-left-color: #4ade80; }
.toast.error { border-left-color: #f87171; }

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== VEHICLE DETAIL ===== */
.detail-gallery {
    margin-bottom: 40px;
}

.detail-main-img {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--dark-card);
    margin-bottom: 12px;
}

.detail-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.detail-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.detail-thumb {
    width: 100px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: var(--transition);
    flex-shrink: 0;
}

.detail-thumb:hover,
.detail-thumb.active {
    opacity: 1;
    border-color: var(--primary);
}

.detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    margin-top: 16px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray);
}

.detail-header h1 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
}

.detail-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.detail-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

.detail-section {
    margin-bottom: 36px;
}

.detail-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray);
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.spec-row:nth-child(odd) {
    background: rgba(255,255,255,0.02);
}

.spec-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.spec-value {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}

.equipment-item {
    padding: 10px 14px;
    background: var(--dark-card);
    border: 1px solid var(--gray);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text);
}

.detail-cta {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--gray);
    flex-wrap: wrap;
}

/* Clickable vehicle card */
a.offer-card {
    display: block;
    color: inherit;
}

/* ===== LOGIN SCREEN ===== */
#loginScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 9000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    overflow-y: auto;
}

.login-box {
    background: var(--dark-card);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    animation: loginFadeIn 0.6s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-box.shake {
    animation: loginShake 0.5s ease;
}

@keyframes loginShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-12px); }
    40% { transform: translateX(12px); }
    60% { transform: translateX(-8px); }
    80% { transform: translateX(8px); }
}

.login-screen.login-success .login-box {
    animation: loginSuccess 0.4s ease forwards;
}

#loginScreen.login-success .login-box {
    animation: loginSuccess 0.4s ease forwards;
}

@keyframes loginSuccess {
    to { opacity: 0; transform: scale(0.95); }
}

.login-box .logo-icon,
.login-box .logo-img {
    margin: 0 auto 20px;
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
}

.login-box h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.login-box .subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.login-box .form-group {
    text-align: left;
    margin-bottom: 20px;
}

.login-error {
    color: #f87171;
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: none;
    padding: 10px;
    background: rgba(248, 113, 113, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px 8px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.password-toggle:hover {
    opacity: 1;
}

.login-btn {
    position: relative;
    gap: 8px;
}

.login-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: var(--dark);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.login-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 24px;
    opacity: 0.7;
}

/* ===== SIDEBAR USER ===== */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--gray);
}

.sidebar-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.sidebar-user-info strong {
    display: block;
    font-size: 0.9rem;
}

.sidebar-status {
    font-size: 0.75rem;
    color: #4ade80;
}

/* ===== ADMIN WELCOME ===== */
.admin-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(212,168,67,0.1) 0%, rgba(212,168,67,0.02) 100%);
    border: 1px solid rgba(212,168,67,0.15);
    border-radius: var(--radius);
}

.admin-welcome h1 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.admin-welcome p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: capitalize;
}

/* ===== ENHANCED STAT CARDS ===== */
.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(212,168,67,0.1);
    border: 1px solid rgba(212,168,67,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* ===== COOKIES POPUP ===== */
.cookies-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--dark-card);
    border-top: 2px solid var(--primary);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.8);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookies-popup.fade-out {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookies-popup-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.cookies-header {
    margin-bottom: 12px;
}

.cookies-header h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.cookies-popup-content > p {
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookies-types {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.cookie-type {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.cookie-type strong {
    color: var(--text);
}

.cookies-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookies-buttons .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .cookies-popup-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cookies-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookies-buttons .btn {
        width: 100%;
    }

    .cookies-popup-content > p {
        grid-column: 1;
    }

    .cookies-types {
        grid-column: 1;
    }
}

/* ===== DISCOUNT BANNER ===== */
.discount-banner {
    background: linear-gradient(135deg, rgba(212,168,67,0.2), rgba(212,168,67,0.05));
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0;
    position: relative;
    overflow: hidden;
}

.discount-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(212,168,67,0.05) 10px,
        rgba(212,168,67,0.05) 20px
    );
    pointer-events: none;
}

.discount-banner-content {
    position: relative;
    z-index: 1;
}

.discount-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.discount-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.discount-banner p {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 12px;
}

.discount-code {
    display: inline-block;
    background: rgba(212,168,67,0.1);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    border: 1px solid var(--primary);
    font-family: 'Courier New', monospace;
}

.discount-code strong {
    color: var(--primary);
    font-size: 1.1rem;
}

/* ===== PRICE REDUCTION SYSTEM ===== */
.price-reduction {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.price-current {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.price-badge {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.badge-percent {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
}

.badge-save {
    display: inline-block;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
}

.price-reduction-detail {
    background: linear-gradient(135deg, rgba(40,167,69,0.1), rgba(40,167,69,0.05));
    border: 2px solid #28a745;
    border-radius: var(--radius);
    padding: 16px;
    margin: 20px 0;
}

.price-reduction-detail h3 {
    margin: 0;
    color: #28a745;
    font-size: 1.2rem;
}

.price-reduction-detail p {
    margin: 8px 0;
    font-size: 0.95rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .price-current {
        font-size: 1.2rem;
    }

    .badge-percent {
        font-size: 0.75rem;
    }

    /* LOGIN SCREEN MOBILE */
    #loginScreen {
        padding: 16px;
    }

    .login-box {
        padding: 32px 24px;
        max-width: 100%;
    }

    .login-box h1 {
        font-size: 1.4rem;
    }

    .login-box .subtitle {
        font-size: 0.85rem;
        margin-bottom: 24px;
    }

    /* MODAL MOBILE */
    .modal-overlay {
        align-items: center;
    }

    .modal {
        padding: 24px;
        max-width: 100%;
        max-height: 90vh;
        margin: auto;
    }

    .modal h2 {
        font-size: 1.2rem;
        margin-bottom: 18px;
        font-weight: 700;
    }

    .modal .form-group {
        margin-bottom: 16px;
    }

    .modal .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .modal-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .modal-actions .btn {
        width: 100%;
    }

    /* HEADER MOBILE */
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    /* GRIDS MOBILE */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .offers-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* ADMIN LAYOUT MOBILE */
    .admin-layout {
        flex-direction: column;
        padding-top: 80px;
        min-height: 100vh;
    }

    .admin-sidebar {
        width: 100%;
        position: relative;
        top: auto;
        bottom: auto;
        max-height: none;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--gray);
        padding: 16px;
    }

    .admin-main {
        margin-left: 0;
        padding: 16px;
        flex: 1;
    }

    .admin-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* HERO MOBILE */
    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

    /* PAGE SECTIONS MOBILE */
    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .hero {
        padding-top: 100px;
    }

    .page-hero {
        padding: 120px 0 40px;
    }

    /* DETAIL PAGE MOBILE */
    .specs-grid {
        grid-template-columns: 1fr;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-price {
        font-size: 1.6rem;
    }

    /* FILTERS MOBILE */
    .filters-bar {
        flex-direction: column;
        gap: 8px;
    }

    .filters-bar select,
    .filters-bar input {
        width: 100%;
        min-width: auto;
    }

    /* ADMIN TABLE MOBILE */
    .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
    .action-btns { display: flex !important; gap: 8px; }
    .action-btn { width: 36px; height: 36px; font-size: 1rem; }
}

/* ===== TABLET RESPONSIVENESS (768px - 1024px) ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .offers-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-sidebar {
        width: 220px;
    }

    .admin-main {
        margin-left: 220px;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vehicles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal {
        max-width: 90%;
    }
}

/* ===== EXTRA SMALL MOBILE (< 480px) ===== */
@media (max-width: 480px) {
    .login-box {
        padding: 24px 16px;
    }

    .login-box h1 {
        font-size: 1.2rem;
    }

    .login-box .subtitle {
        font-size: 0.8rem;
    }

    .modal {
        padding: 16px;
        max-height: 95vh;
    }

    .modal h2 {
        font-size: 1rem;
    }

    .modal .form-group label {
        font-size: 0.8rem;
    }

    .modal .form-group input,
    .modal .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px 12px;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }

    .hero p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .admin-welcome {
        flex-direction: column;
        text-align: center;
    }

    .admin-sidebar a {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .result-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .view-toggle {
        width: 100%;
    }
}
    gap: 16px;
}

.discount-item {
    background: var(--dark-card);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    padding: 16px;
    transition: var(--transition);
}

.discount-item:hover {
    border-color: var(--primary);
    background: rgba(212,168,67,0.05);
}

.discount-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.discount-item-code {
    font-weight: 700;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.discount-item-value {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
}

.discount-item p {
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.discount-item small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .discount-banner {
        padding: 16px;
    }

    .discount-banner h3 {
        font-size: 1.4rem;
    }

    .discount-banner p {
        font-size: 0.95rem;
    }

    .discount-code {
        display: block;
        margin-top: 8px;
    }
}
    flex-shrink: 0;
}

.stat-content .label {
    font-size: 0.8rem;
}

.stat-content .value {
    font-size: 1.8rem;
}

/* ===== QUICK ACTIONS ===== */
.admin-quick-actions {
    margin-bottom: 32px;
}

.admin-quick-actions h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: var(--dark-card);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}

.quick-action-btn:hover {
    border-color: var(--primary);
    background: rgba(212,168,67,0.05);
    transform: translateY(-2px);
}

.qa-icon {
    font-size: 1.4rem;
}

/* ===== SETTINGS SECTIONS ===== */
.settings-section {
    margin-bottom: 40px;
    padding: 24px;
    background: var(--dark-card);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
}

.settings-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray);
}

/* ===== IMAGE UPLOAD ===== */
.image-upload-area,
.gallery-upload-area {
    border: 2px dashed var(--gray);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    transition: var(--transition);
}

.image-upload-area:hover,
.gallery-upload-area:hover {
    border-color: var(--primary);
}

.image-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(212,168,67,0.1);
    border: 1px solid rgba(212,168,67,0.3);
    border-radius: 8px;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    margin: 8px 0;
}

.image-upload-btn:hover {
    background: rgba(212,168,67,0.2);
}

.image-upload-or {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 8px 0;
}

.image-url-input {
    width: 100%;
    padding: 8px 12px;
    background: var(--dark-light);
    border: 1px solid var(--gray);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.85rem;
}

.image-url-input:focus {
    outline: none;
    border-color: var(--primary);
}

.image-upload-preview,
.gallery-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.img-preview-item {
    position: relative;
    width: 100px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gray);
}

.img-preview-item.main-preview {
    width: 200px;
    height: 140px;
}

.img-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    border: none;
    color: #f87171;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.img-preview-item:hover .img-preview-remove {
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .offers-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }

    .hero h1 { font-size: 2.2rem; }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .offers-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-welcome {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .vehicles-grid {
        grid-template-columns: 1fr;
    }

    .detail-header {
        flex-direction: column;
    }

    .detail-price {
        font-size: 1.6rem;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }
}
