/* ============================================================
   SKilz Auto Trading - Main Stylesheet
   Dark/Luxury theme with gold accents
   Font: Inter
   ============================================================ */

:root {
    --dark-primary: #0d0d0d;
    --dark-secondary: #1a1a1a;
    --dark-card: #252525;
    --dark-border: #333333;
    --gold-primary: #D4AF37;
    --gold-light: #C9A84C;
    --gold-dark: #B8962E;
    --text-white: #ffffff;
    --text-light: #cccccc;
    --text-muted: #999999;
    --danger: #dc3545;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--dark-primary);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-light);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-white);
    font-weight: 600;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

.loader-wrapper.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--dark-border);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Header */
.site-header {
    background: var(--dark-secondary);
    border-bottom: 1px solid var(--dark-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.site-header .navbar {
    padding: 0;
}

.logo {
    height: 45px;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 14px !important;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold-primary) !important;
}

.nav-register {
    background: var(--gold-primary) !important;
    color: var(--dark-primary) !important;
    border-radius: 6px;
    padding: 8px 20px !important;
    font-weight: 600;
}

.nav-register:hover {
    background: var(--gold-dark) !important;
    color: var(--dark-primary) !important;
}

.dropdown-menu {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    padding: 8px 0;
}

.dropdown-menu .dropdown-item {
    color: var(--text-light);
    font-size: 14px;
    padding: 8px 20px;
    transition: var(--transition);
}

.dropdown-menu .dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
}

.dropdown-divider {
    border-top-color: var(--dark-border);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    overflow: hidden;
    background: var(--dark-primary);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../images/luxury-sports-car.jpg') center center / cover no-repeat;
    opacity: 0.25;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.5) 50%, rgba(10,10,10,0.92) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-white);
    line-height: 1.15;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-search {
    max-width: 650px;
    margin: 0 auto;
}

.hero-search .input-group {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    overflow: hidden;
}

.hero-search .input-group .form-control,
.hero-search .input-group .form-select {
    background: transparent;
    border: none;
    color: var(--text-white);
    padding: 14px 20px;
    font-size: 15px;
}

.hero-search .input-group .form-control::placeholder {
    color: var(--text-muted);
}

.hero-search .input-group .form-select option {
    background: var(--dark-card);
    color: var(--text-white);
}

.hero-search .btn-search {
    background: var(--gold-primary);
    color: var(--dark-primary);
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 0;
    font-size: 15px;
}

.hero-search .btn-search:hover {
    background: var(--gold-dark);
}

.hero-info {
    margin-top: 30px;
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.hero-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-info i {
    color: var(--gold-primary);
}

/* Category Icons Row */
.category-row {
    padding: 40px 0;
    background: var(--dark-secondary);
}

.category-item {
    text-align: center;
    cursor: pointer;
    padding: 15px 10px;
    transition: var(--transition);
    border-radius: 12px;
}

.category-item:hover {
    background: var(--dark-card);
}

.category-item img {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    transition: var(--transition);
    filter: brightness(0) saturate(100%) invert(79%) sepia(31%) saturate(718%) hue-rotate(359deg) brightness(107%) contrast(99%);
}

.category-item:hover img {
    opacity: 0.8;
    filter: brightness(0) saturate(100%) invert(85%) sepia(40%) saturate(800%) hue-rotate(359deg) brightness(110%) contrast(100%);
}

.category-item.active img {
    filter: brightness(0) saturate(100%) invert(79%) sepia(31%) saturate(718%) hue-rotate(359deg) brightness(107%) contrast(99%);
}

.category-item:hover img {
    opacity: 0.8;
}

.category-item span {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.category-item:hover span {
    color: var(--gold-primary);
}

.category-item.active img {
    filter: brightness(0) saturate(100%) invert(79%) sepia(31%) saturate(718%) hue-rotate(359deg) brightness(107%) contrast(99%) !important;
}

.category-item.active span {
    color: var(--gold-primary);
}

/* Section Styling */
.section-padding {
    padding: 60px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Car Cards */
.car-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 25px;
}

.car-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.car-card .card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.car-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.car-card:hover .card-image img {
    transform: scale(1.05);
}

.car-card .card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gold-primary);
    color: var(--dark-primary);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
}

.car-card .card-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: var(--text-white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.car-card .card-wishlist:hover,
.car-card .card-wishlist.active {
    background: var(--danger);
    color: var(--text-white);
}

.car-card .card-body {
    padding: 18px;
}

.car-card .card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 5px;
}

.car-card .card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 10px;
}

.car-card .card-location {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.car-card .card-location i {
    margin-right: 5px;
}

.car-card .card-specs {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px solid var(--dark-border);
}

.car-card .card-specs span i {
    margin-right: 4px;
    color: var(--gold-primary);
}

/* Section Header with title and view all */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.section-header .view-all {
    color: var(--gold-primary);
    font-weight: 500;
    font-size: 14px;
}

/* Sell Your Car CTA */
.sell-cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--dark-secondary), var(--dark-card));
}

.sell-cta-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.sell-cta-image {
    flex: 0 0 45%;
}

.sell-cta-image img {
    width: 100%;
    border-radius: 12px;
}

.sell-cta-text {
    flex: 1;
}

.sell-cta-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.sell-cta-text p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.btn-gold {
    background: var(--gold-primary);
    color: var(--dark-primary);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-gold:hover {
    background: var(--gold-dark);
    color: var(--dark-primary);
    transform: translateY(-2px);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 8px;
    transition: var(--transition);
    display: inline-block;
}

.btn-outline-gold:hover {
    background: var(--gold-primary);
    color: var(--dark-primary);
}

.btn-dark-custom {
    background: var(--dark-card);
    color: var(--text-white);
    border: 1px solid var(--dark-border);
    padding: 10px 25px;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-dark-custom:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* Services Section */
.services-section {
    padding: 60px 0;
}

.service-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    margin-bottom: 25px;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
}

.service-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.service-card h4 {
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    background: var(--dark-secondary);
    padding: 50px 0 20px;
    border-top: 1px solid var(--dark-border);
}

.site-footer h5 {
    color: var(--gold-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-contact li i {
    width: 20px;
    color: var(--gold-primary);
    margin-right: 8px;
}

.footer-contact li a {
    color: var(--text-muted);
}

.footer-contact li a:hover {
    color: var(--gold-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links li a:hover {
    color: var(--gold-primary);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--dark-border);
}

.footer-logo {
    height: 35px;
}

.copyright {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

.payment-icons img {
    height: 25px;
    margin-left: 10px;
    opacity: 0.6;
}

.social-icons a {
    display: inline-block;
    margin-left: 8px;
    opacity: 0.6;
    transition: var(--transition);
}

.social-icons a:hover {
    opacity: 1;
}

.social-icons img {
    width: 24px;
    height: 24px;
}

/* Page Header */
.page-header {
    background: var(--dark-secondary);
    padding: 40px 0;
    border-bottom: 1px solid var(--dark-border);
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.page-header p {
    color: var(--text-white);
    margin-top: 8px;
    font-size: 16px;
}

/* Listing Filters */
.filter-sidebar {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 25px;
}

.filter-sidebar h5 {
    font-size: 16px;
    color: var(--text-white);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--dark-border);
}

.filter-sidebar .form-control,
.filter-sidebar .form-select {
    background: var(--dark-secondary);
    border: 1px solid var(--dark-border);
    color: var(--text-white);
    font-size: 14px;
    padding: 10px 14px;
}

.filter-sidebar .form-control::placeholder {
    color: var(--text-muted);
}

.filter-sidebar .form-select option {
    background: var(--dark-secondary);
    color: var(--text-white);
}

.filter-sidebar .price-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Listing controls */
.listing-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 15px 20px;
}

.listing-controls .result-count {
    font-size: 14px;
    color: var(--text-muted);
}

.listing-controls .view-toggle {
    display: flex;
    gap: 5px;
}

.listing-controls .view-toggle button {
    background: transparent;
    border: 1px solid var(--dark-border);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.listing-controls .view-toggle button.active {
    background: var(--gold-primary);
    color: var(--dark-primary);
    border-color: var(--gold-primary);
}

.listing-controls .sort-select {
    background: var(--dark-secondary);
    border: 1px solid var(--dark-border);
    color: var(--text-white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
}

/* Vehicle Detail Page */
.vehicle-gallery {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
}

.vehicle-gallery .main-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    cursor: pointer;
}

.vehicle-gallery .thumbnails {
    display: flex;
    gap: 8px;
    padding: 10px;
    overflow-x: auto;
}

.vehicle-gallery .thumbnails img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
}

.vehicle-gallery .thumbnails img.active,
.vehicle-gallery .thumbnails img:hover {
    opacity: 1;
    border-color: var(--gold-primary);
}

.vehicle-info {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.vehicle-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.vehicle-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 15px;
}

.vehicle-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--dark-border);
}

.vehicle-meta span {
    font-size: 14px;
    color: var(--text-muted);
}

.vehicle-meta span i {
    color: var(--gold-primary);
    margin-right: 6px;
    width: 16px;
}

.vehicle-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.vehicle-specs .spec-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--dark-border);
    font-size: 14px;
}

.vehicle-specs .spec-item .label {
    color: var(--text-muted);
}

.vehicle-specs .spec-item .value {
    color: var(--text-white);
    font-weight: 500;
}

.vehicle-description {
    margin-top: 20px;
}

.vehicle-description h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.vehicle-description p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Seller sidebar */
.seller-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.seller-card h5 {
    font-size: 16px;
    margin-bottom: 15px;
}

.seller-card .seller-info {
    margin-bottom: 15px;
}

.seller-card .seller-info .seller-type {
    font-size: 12px;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.seller-card .btn-contact {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

/* Auth Pages */
.auth-section {
    padding: 60px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.auth-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
}

.auth-card .auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-card .auth-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.auth-card .auth-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.auth-card .form-control {
    background: var(--dark-secondary);
    border: 1px solid var(--dark-border);
    color: var(--text-white);
    padding: 12px 16px;
    font-size: 14px;
}

.auth-card .form-control:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.auth-card .form-control::placeholder {
    color: var(--text-muted);
}

.auth-card .form-label {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.auth-card .btn-gold {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.auth-card .auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-card .auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--dark-border);
}

.auth-card .auth-tabs .tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.auth-card .auth-tabs .tab-btn.active {
    color: var(--gold-primary);
    border-bottom-color: var(--gold-primary);
}

/* Registration role cards */
.role-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.role-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.role-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px);
}

.role-card .role-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gold-primary);
}

.role-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.role-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* Dashboard */
.dashboard-wrapper {
    display: flex;
    min-height: 80vh;
}

.dashboard-sidebar {
    width: 250px;
    background: var(--dark-card);
    border-right: 1px solid var(--dark-border);
    padding: 25px 0;
    flex-shrink: 0;
}

.dashboard-sidebar .sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--dark-border);
    margin-bottom: 15px;
}

.dashboard-sidebar .sidebar-header h5 {
    font-size: 16px;
    margin: 0;
}

.dashboard-sidebar .sidebar-header p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 5px 0 0;
}

.dashboard-sidebar .nav-item {
    padding: 0 15px;
}

.dashboard-sidebar .nav-link {
    color: var(--text-muted);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
}

.dashboard-sidebar .nav-link i {
    width: 20px;
}

.dashboard-content {
    flex: 1;
    padding: 25px 30px;
    overflow-x: hidden;
}

.dashboard-content .page-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
}

/* Stats Cards */
.stat-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--gold-primary);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Tables */
.table-custom {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    overflow: hidden;
}

.table-custom table {
    margin: 0;
    color: var(--text-light);
}

.table-custom th {
    background: var(--dark-secondary);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--dark-border);
}

.table-custom td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--dark-border);
    vertical-align: middle;
    font-size: 14px;
}

.table-custom tr:hover td {
    background: rgba(212, 175, 55, 0.03);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

.form-control, .form-select {
    background: var(--dark-secondary);
    border: 1px solid var(--dark-border);
    color: var(--text-white);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
    background: var(--dark-secondary);
    color: var(--text-white);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-select option {
    background: var(--dark-secondary);
    color: var(--text-white);
}

/* Pagination */
.pagination-custom {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination-custom .page-item .page-link {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    color: var(--text-light);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
}

.pagination-custom .page-item.active .page-link {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--dark-primary);
}

.pagination-custom .page-item .page-link:hover {
    background: var(--gold-primary);
    color: var(--dark-primary);
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background: rgba(40, 167, 69, 0.15);
    color: var(--success);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.15);
    color: var(--danger);
}

.alert-info {
    background: rgba(23, 162, 184, 0.15);
    color: var(--info);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.15);
    color: var(--warning);
}

/* Badge */
.badge {
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.bg-success { background: var(--success) !important; }
.bg-danger { background: var(--danger) !important; }
.bg-warning { background: var(--warning) !important; color: var(--dark-primary) !important; }
.bg-info { background: var(--info) !important; }
.bg-secondary { background: var(--text-muted) !important; }

/* Modal */
.modal-content {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid var(--dark-border);
}

.modal-footer {
    border-top: 1px solid var(--dark-border);
}

.modal-title {
    color: var(--text-white);
}

.btn-close {
    filter: invert(1);
}

/* Sell Wizard */
.sell-wizard {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 30px;
}

.wizard-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.wizard-step .step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--dark-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.wizard-step.active .step-number {
    background: var(--gold-primary);
    color: var(--dark-primary);
}

.wizard-step.completed .step-number {
    background: var(--success);
    color: white;
}

/* Finance Calculator */
.calculator-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 30px;
}

.calculator-card .form-control,
.calculator-card .form-select {
    background: var(--dark-secondary);
    border: 1px solid var(--dark-border);
    color: var(--text-white);
}

.calculator-results {
    background: var(--dark-secondary);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.calculator-results .result-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--gold-primary);
}

.calculator-results .result-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Blog Cards */
.blog-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 25px;
}

.blog-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-primary);
}

.blog-card .blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-card .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card .blog-body {
    padding: 20px;
}

.blog-card .blog-category {
    font-size: 12px;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.blog-card .blog-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
}

.blog-card .blog-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-card .blog-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* Blog Detail */
.blog-content {
    color: var(--text-white);
    line-height: 1.8;
}

.blog-content h1, .blog-content h2, .blog-content h3, .blog-content h4,
.blog-content h5, .blog-content h6 {
    color: var(--text-white);
    margin-top: 24px;
    margin-bottom: 12px;
}

.blog-content p {
    color: var(--text-white);
    margin-bottom: 16px;
}

.blog-content a {
    color: var(--gold-primary);
}

.blog-content ul, .blog-content ol {
    color: var(--text-white);
    padding-left: 20px;
}

.blog-content li {
    color: var(--text-white);
    margin-bottom: 8px;
}

.blog-content blockquote {
    border-left: 3px solid var(--gold-primary);
    padding: 12px 20px;
    margin: 20px 0;
    background: var(--dark-card);
    border-radius: 0 8px 8px 0;
    color: var(--text-white);
    font-style: italic;
}

.blog-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

.blog-content pre, .blog-content code {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-white);
}

.blog-content pre {
    padding: 16px;
    overflow-x: auto;
}

.blog-content hr {
    border-color: var(--dark-border);
    margin: 24px 0;
}

/* FAQ */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item .faq-question {
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--text-white);
}

.faq-item .faq-question:hover {
    background: rgba(212, 175, 55, 0.05);
}

.faq-item .faq-question i {
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item .faq-answer {
    padding: 0 20px 18px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* Image upload preview */
.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.image-preview .preview-item {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--dark-border);
}

.image-preview .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview .preview-item .remove-btn {
    position: absolute;
    top: 3px;
    right: 3px;
    background: var(--danger);
    color: white;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Admin specific */
.admin-container {
    display: flex;
    min-height: calc(100vh - 60px);
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--dark-border);
    margin-bottom: 15px;
}

.sidebar-brand {
    display: block;
}

.sidebar-logo {
    height: 35px;
}

.sidebar-nav .nav-item {
    padding: 0 15px;
}

.sidebar-nav .nav-link {
    color: var(--text-muted);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
}

.admin-header {
    background: var(--dark-primary);
    border-bottom: 1px solid var(--dark-border);
}

.admin-sidebar {
    width: 260px;
    background: var(--dark-secondary);
    border-right: 1px solid var(--dark-border);
    min-height: calc(100vh - 60px);
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: var(--text-muted);
    padding: 10px 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
    border-left: 3px solid var(--gold-primary);
}

.admin-main {
    flex: 1;
    padding: 25px;
}

.admin-main .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    background: none;
    padding: 0;
    border: none;
}

.admin-main .page-header h2 {
    font-size: 24px;
    font-weight: 700;
}

/* Search page */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results img {
    max-width: 200px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.no-results p {
    color: var(--text-muted);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-content h1 { font-size: 32px; }
    .hero-section { min-height: 450px; padding: 60px 0; }
    .role-cards { grid-template-columns: 1fr; }
    .dashboard-sidebar { width: 200px; }
    .sell-cta-content { flex-direction: column; }
    .sell-cta-image { flex: none; width: 100%; }
}

@media (max-width: 767px) {
    .hero-section { min-height: auto; padding: 50px 0 40px; }
    .hero-content h1 { font-size: 26px; }
    .hero-content p { font-size: 15px; margin-bottom: 20px; }
    .hero-info { gap: 14px; font-size: 13px; }
    .dashboard-wrapper { flex-direction: column; }
    .dashboard-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--dark-border); }
    .dashboard-content { padding: 20px; }
    .vehicle-gallery .main-image { height: 250px; }
    .vehicle-specs { grid-template-columns: 1fr; }
    .auth-card { padding: 25px; }
    .vehicle-meta { flex-direction: column; gap: 10px; }
}

@media (max-width: 575px) {
    .hero-content h1 { font-size: 22px; }
    .hero-info { flex-direction: column; align-items: center; gap: 10px; }
    .listing-controls { flex-direction: column; gap: 10px; }
}
