/* Modern Styles for DeMV Platform - Inspired by Cyberpunk/Blockchain Aesthetic */

/* Base styling */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #00ffcc;
    --primary-dark: #00ccaa;
    --secondary: #6c63ff;
    --dark: #121212;
    --darker: #0a0a0a;
    --light: #f0f0f0;
    --gray: #333333;
    --gray-light: #444444;
    --gradient-1: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-2: linear-gradient(90deg, #ff3e9d 0%, #0edcfc 100%);
    --neon-shadow: 0 0 10px rgba(0, 255, 204, 0.7);
    --card-bg: rgba(30, 30, 30, 0.6);
    --glass-effect: rgba(255, 255, 255, 0.05);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 10% 20%, rgba(0, 255, 204, 0.05) 0%, transparent 20%), radial-gradient(circle at 90% 50%, rgba(108, 99, 255, 0.05) 0%, transparent 25%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

a {
    color: var(--light);
    text-decoration: none;
}

a:hover {
    color: var(--primary);
}

button {
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    border: none;
    outline: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Navigation styles removed to avoid conflicts with unified-navigation.css */
/* All header and nav styles have been removed to prevent conflicts */

/* Buttons */
button {
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    border: none;
    outline: none;
}

.btn-login, .btn-register {
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
}

.btn-login {
    border: 1px solid var(--light);
}

.btn-register {
    background: var(--gradient-1);
    color: var(--dark);
    box-shadow: 0 2px 10px rgba(0, 255, 204, 0.3);
}

.btn-register:hover {
    box-shadow: 0 4px 15px rgba(0, 255, 204, 0.4);
}

/* Complete hero section rewrite */
.hero {
    position: relative;
    padding: 120px 0 80px 0 !important;
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
    margin-top: 0 !important;
    margin-bottom: 60px !important;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
    z-index: 1 !important;
    display: block !important;
}

.hero-content {
    position: relative;
    z-index: 10 !important;
    max-width: 600px;
    margin: 0 auto 40px auto !important;
    padding: 0 20px !important;
    text-align: center !important;
}

.hero-image {
    position: relative;
    z-index: 5 !important;
    max-width: 500px;
    margin: 0 auto !important;
    padding: 0 20px !important;
    text-align: center !important;
    display: block !important;
}

.hero-image img {
    max-width: 100% !important;
    max-height: 300px !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

.hero-buttons {
    margin-top: 30px !important;
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    position: relative !important;
    z-index: 20 !important;
}

/* Features Section */
.features {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(240, 240, 240, 0.8);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-effect);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 255, 204, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 204, 0.1);
    border-radius: 50%;
    color: var(--primary);
    font-size: 2rem;
}

.feature-card h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-card p {
    text-align: center;
    color: rgba(240, 240, 240, 0.7);
}

/* CTA Section - optimized for performance */
.cta {
    padding: 6rem 0;
    background-color: rgba(10, 10, 10, 0.8);
    text-align: center;
    position: relative;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.cta p {
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    position: relative;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h3 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: var(--primary);
}

.about-content p {
    margin-bottom: 1.5rem;
    color: rgba(240, 240, 240, 0.8);
}

.benefits-list {
    list-style: none;
    margin: 2rem 0;
}

.benefits-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.benefits-list li strong {
    color: var(--primary);
}

.cta-button {
    margin-top: 3rem;
    text-align: center;
}

/* Form Styles */
.form-section {
    padding: 8rem 0 6rem;
    position: relative;
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-effect);
    backdrop-filter: blur(10px);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--primary);
    font-size: 2.5rem;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: rgba(240, 240, 240, 0.9);
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 255, 204, 0.2);
}

.wallet-status {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: rgba(240, 240, 240, 0.6);
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
    color: rgba(240, 240, 240, 0.7);
}

.form-footer a {
    color: var(--primary);
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--darker);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.footer-col p {
    color: rgba(240, 240, 240, 0.6);
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: rgba(240, 240, 240, 0.6);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(240, 240, 240, 0.5);
}

/* Page Header */
.page-header {
    padding: 10rem 0 4rem;
    text-align: center;
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7)), radial-gradient(circle at center, rgba(0, 255, 204, 0.2), transparent 70%);
    position: relative;
}

.page-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(240, 240, 240, 0.8);
}

/* Animations - Removed to reduce CPU usage */
.fade-in {
    display: block;
}

.fade-in.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 3.5rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    nav ul {
        margin-top: 1.5rem;
        justify-content: center;
    }
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 3rem;
    }
    .hero-content {
        margin-bottom: 3rem;
    }
    .hero h2 {
        font-size: 3rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .btn {
        padding: 0.7rem 1.5rem;
    }
}

/* Marketplace Styles */
.marketplace-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(18, 18, 24, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.search-bar {
    display: flex;
    gap: 0.5rem;
}

.search-bar input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    border: 1px solid rgba(108, 99, 255, 0.3);
    background: rgba(18, 18, 24, 0.6);
    color: #fff;
    font-size: 1rem;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 255, 204, 0.2);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.filter-options select {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    border: 1px solid rgba(108, 99, 255, 0.3);
    background: rgba(18, 18, 24, 0.6);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.view-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.view-toggle button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
}

.view-toggle button.active {
    color: var(--primary);
    background: rgba(0, 255, 204, 0.1);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.sort-options select {
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid rgba(108, 99, 255, 0.3);
    background: rgba(18, 18, 24, 0.6);
    color: #fff;
    font-size: 0.9rem;
}

/* Filter groups with labels */
.filter-group {
    display: flex;
    flex-direction: column;
    margin-right: 15px;
}

.filter-group label {
    font-size: 0.8rem;
    margin-bottom: 5px;
    color: var(--primary);
    font-weight: 500;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .filter-group {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .filter-options {
        flex-direction: column;
    }
}

/* Vehicle Grid and List Views */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.vehicle-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.vehicle-card {
    background: rgba(18, 18, 24, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.vehicle-grid .vehicle-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 255, 204, 0.2);
}

.vehicle-list .vehicle-card {
    display: flex;
    height: 200px;
}

.vehicle-list .vehicle-image {
    width: 300px;
    min-width: 300px;
}

.vehicle-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.verified-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 255, 204, 0.9);
    color: #121212;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.vehicle-info {
    padding: 1.5rem;
}

.vehicle-list .vehicle-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.vehicle-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #fff;
}

.vehicle-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.vehicle-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.vehicle-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.vehicle-list .vehicle-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}

.vehicle-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    align-items: center;
}

.vehicle-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: fit-content;
}

.vehicle-actions .btn i {
    margin-right: 8px;
}

.add-to-favorites {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: fit-content;
    padding: 0.5rem 1rem !important;
}

.add-to-favorites.favorited {
    background: rgba(255, 0, 76, 0.2);
    color: #ff004c;
    border-color: rgba(255, 0, 76, 0.4);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.pagination button {
    background: rgba(18, 18, 24, 0.7);
    border: 1px solid rgba(108, 99, 255, 0.3);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.pagination button:hover:not(:disabled) {
    background: rgba(108, 99, 255, 0.2);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination span {
    color: rgba(255, 255, 255, 0.7);
}

/* Sell Vehicle CTA */
.sell-vehicle-cta {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(0, 255, 204, 0.2));
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin: 3rem 0;
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.sell-vehicle-cta h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Sell Vehicle Form */
.form-container {
    background: rgba(18, 18, 24, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid rgba(108, 99, 255, 0.2);
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    border: 1px solid rgba(108, 99, 255, 0.3);
    background: rgba(18, 18, 24, 0.6);
    color: #fff;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.form-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.3rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

/* Vehicle Details Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    overflow-y: auto;
}

.modal-content {
    background: rgba(18, 18, 24, 0.95);
    border-radius: 10px;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(108, 99, 255, 0.3);
    margin: 50px auto;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
}

.close-modal:hover {
    color: #fff;
    background: rgba(255, 0, 76, 0.3);
}

.vehicle-details-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vehicle-details-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.vehicle-price-large {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.vehicle-details-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.verified-badge-large {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 255, 204, 0.9);
    color: #121212;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
}

.vehicle-details-info {
    padding: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.3rem;
}

.info-value {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
}

.vehicle-description-full {
    margin-bottom: 2rem;
}

.vehicle-description-full h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.vehicle-description-full p {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.seller-info {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.seller-info h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.seller-info p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.purchase-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.blockchain-info {
    padding: 1.5rem;
    background: rgba(0, 255, 204, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.blockchain-info h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--primary);
}

.blockchain-info p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

.btn-outline:hover {
    background: rgba(0, 255, 204, 0.1);
}

.no-results {
    text-align: center;
    padding: 3rem;
    background: rgba(18, 18, 24, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.no-results i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.no-results h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.no-results p {
    color: rgba(255, 255, 255, 0.6);
}

.hidden {
    display: none !important;
}

/* Demo login button (for testing) */
.demo-login-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .marketplace-controls {
        flex-direction: column;
    }
    .filter-options {
        flex-direction: column;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .vehicle-list .vehicle-card {
        flex-direction: column;
        height: auto;
    }
    .vehicle-list .vehicle-image {
        width: 100%;
    }
    .view-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .purchase-actions {
        flex-direction: column;
    }
    .vehicle-details-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Watch vehicle button styling - optimized for performance */
.watch-vehicle-btn {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    background-color: rgba(108, 92, 231, 0.8) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 100 !important;
}

.watch-vehicle-btn:hover {
    background-color: rgba(108, 92, 231, 1) !important;
}

.watch-vehicle-btn.watched i {
    color: white !important;
}

/* Homepage layout fixes */
section {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
    margin: 0 0 60px 0 !important;
    padding: 60px 0 !important;
    z-index: 1 !important;
    clear: both !important;
}

.tab-content {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
    padding: 30px !important;
    z-index: 1 !important;
    clear: both !important;
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        padding: 40px 0;
    }
    .hero-content, .hero-image {
        max-width: 100%;
        text-align: center;
        padding: 20px;
    }
    .hero-image img {
        max-height: 300px;
    }
}

/* Vehicle Details Tabs */
.vehicle-details-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    padding: 0 20px;
}

.vehicle-details-tab {
    padding: 10px 20px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

.vehicle-details-tab.active {
    color: #00ffcc;
    font-weight: 500;
}

.vehicle-details-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #00ffcc 0%, #6c63ff 100%);
}

.vehicle-details-tab:hover {
    color: #00ffcc;
}

.tab-content {
    display: none;
    height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 20px;
}

.tab-content.active {
    display: block;
    height: auto;
    opacity: 1;
    overflow: visible;
}

.vehicle-history-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.history-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.history-icon i {
    color: #00ffcc;
    font-size: 1.2rem;
}

.history-details {
    flex-grow: 1;
}

.history-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.history-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* History accordion styles */
.history-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.history-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.history-header {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
}

.history-header:hover {
    background: rgba(0, 0, 0, 0.4);
}

.history-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.history-icon i {
    color: #00ffcc;
    font-size: 1.2rem;
}

.history-title {
    flex-grow: 1;
}

.history-title h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #fff;
}

.history-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.history-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
}

.history-content {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
}

.history-item.active .history-content {
    padding: 0 15px 15px;
}

.history-content p {
    margin-top: 0;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.blockchain-data {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 10px;
}

.blockchain-data-item {
    display: flex;
    margin-bottom: 5px;
}

.blockchain-data-item:last-child {
    margin-bottom: 0;
}

.data-label {
    width: 100px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.data-value {
    color: #00ffcc;
    font-family: monospace;
    font-size: 0.85rem;
}

/* Bidding form in tabs */
.bidding-form {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 20px;
}

.bidding-form h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.bid-input-group {
    margin-bottom: 15px;
}

.bid-input-group label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
}

.bid-slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bid-slider {
    flex-grow: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    position: relative;
    cursor: pointer;
}

.bid-slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(135deg, #00ffcc 0%, #6c63ff 100%);
    border-radius: 5px;
}

.bid-slider-handle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    position: absolute;
    top: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.bid-value {
    font-weight: 500;
    color: var(--primary);
    width: 100px;
    text-align: right;
}

.bid-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00ffcc 0%, #6c63ff 100%);
    border: none;
    border-radius: 5px;
    color: #121212;
    font-weight: 500;
    cursor: pointer;
}

.bid-submit:hover {
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
}

/* Blockchain verification styles */
.blockchain-verification {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 20px;
}

.blockchain-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.blockchain-header i {
    font-size: 1.5rem;
    color: #00ffcc;
    margin-right: 10px;
}

.blockchain-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.verification-info {
    margin-bottom: 20px;
}

.verification-info p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.verification-details {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.verification-item {
    display: flex;
    margin-bottom: 10px;
}

.verification-item:last-child {
    margin-bottom: 0;
}

.verification-label {
    width: 150px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.verification-value {
    color: #00ffcc;
    font-family: monospace;
    font-size: 0.9rem;
}

.blockchain-events-container {
    margin-top: 25px;
}

.blockchain-events-container h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.blockchain-events {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blockchain-event {
    display: flex;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.blockchain-event:hover {
    background: rgba(0, 0, 0, 0.4);
}

.event-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.event-icon i {
    color: #00ffcc;
    font-size: 1.2rem;
}

.event-details {
    flex-grow: 1;
}

.event-title {
    font-weight: 500;
    margin-bottom: 5px;
    color: #00ffcc;
}

.event-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.event-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Notification styles for fallback */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.notification {
    background: rgba(18, 18, 18, 0.95);
    border-left: 4px solid #6c63ff;
    border-radius: 5px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.notification-success {
    border-left-color: #00ffcc;
}

.notification-icon {
    margin-right: 12px;
    font-size: 1.2rem;
    color: #6c63ff;
}

.notification-success .notification-icon {
    color: #00ffcc;
}

.notification-content {
    flex-grow: 1;
}

.notification-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.notification-message {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    margin-left: 10px;
}

.notification-close:hover {
    color: rgba(255, 255, 255, 0.8);
}

.notification-hide {
    opacity: 0;
}

/* Bid History Styles */
.bid-history-container {
    margin-top: 30px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.bid-history-container h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.bid-history-chart {
    height: 120px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.chart-container {
    display: flex;
    align-items: flex-end;
    height: 100%;
    gap: 5px;
}

.chart-bar-container {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.chart-bar {
    width: 80%;
    background: linear-gradient(to top, #3498db, #2980b9);
    border-radius: 3px 3px 0 0;
}

.chart-bar.your-bid {
    background: linear-gradient(to top, #2ecc71, #27ae60);
}

.bid-history-list {
    max-height: 300px;
    overflow-y: auto;
}

.bid-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #f5f5f5;
}

.bid-history-item:hover {
    background-color: #e9e9e9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.bid-history-item.your-bid {
    background-color: #e8f7f0;
    border-left: 4px solid #2ecc71;
}

.bid-amount {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.bid-details {
    flex: 1;
    margin: 0 15px;
}

.bid-bidder {
    font-weight: 500;
    color: #444;
}

.bid-time {
    font-size: 12px;
    color: #777;
}

.bid-expiry {
    font-size: 13px;
    color: #666;
    background-color: #f0f0f0;
    padding: 3px 8px;
    border-radius: 12px;
}

.your-bid .bid-bidder {
    color: #27ae60;
    font-weight: 600;
}

.no-bids {
    text-align: center;
    padding: 20px;
    color: #777;
    font-style: italic;
}

/* Real-time Updates Styles */
.realtime-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2ecc71;
    margin-right: 5px;
}

/* Vehicle Comparison Styles */
.comparison-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-title {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.comparison-title .realtime-indicator {
    margin-right: 8px;
}

.comparison-actions {
    display: flex;
    gap: 10px;
}

.comparison-table {
    width: 100%;
    overflow-x: auto;
    padding: 0 20px 20px;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    padding: 12px 15px;
    text-align: left;
    background-color: #f5f5f5;
    color: #333;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.comparison-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .vehicle-image {
    width: 150px;
    height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    margin: 0 auto;
}

.comparison-table .price {
    font-weight: 600;
    color: #e74c3c;
}

.comparison-table .highlight {
    background-color: #e8f7f0;
}

.comparison-empty {
    padding: 30px;
    text-align: center;
    color: #777;
}

.add-to-compare {
    background-color: transparent;
    border: 1px solid #3498db;
    color: #3498db;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.add-to-compare:hover {
    background-color: #3498db;
    color: white;
}

.add-to-compare.active {
    background-color: #3498db;
    color: white;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .vehicle-details-modal .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    .vehicle-details-info {
        padding: 15px;
    }
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
    .vehicle-details-tabs {
        flex-direction: column;
    }
    .vehicle-details-tab {
        width: 100%;
        margin-bottom: 5px;
    }
    .bid-slider-container {
        flex-direction: column;
    }
    .bid-value {
        margin-top: 10px;
        margin-left: 0;
    }
    .bid-history-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .bid-amount {
        margin-bottom: 10px;
    }
    .bid-details {
        margin: 0 0 10px 0;
    }
    .comparison-table {
        overflow-x: scroll;
    }
}
