:root {
    --primary: #0d4f8b;
    --secondary: #f5f7fb;
    --accent: #1e88e5;
    --dark: #102542;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 100%);
    color: #223;
}

@media (min-width: 992px) {
    .row.g-0.min-vh-100 > .bg-dark {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        z-index: 1;
    }

    .row.g-0.min-vh-100 > .bg-light {
        min-height: 100vh;
    }
}

.nav-pills .nav-link.active,
.nav-pills .nav-link:hover {
    background-color: var(--accent);
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.sidebar-brand {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
    max-height: 80px;
    width: auto;
}

.sidebar-user {
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.sidebar-nav .nav-link:hover {
    transform: translateX(3px);
}

.sidebar-card .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.sidebar-card .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.card {
    border: none;
    box-shadow: 0 8px 24px rgba(13, 79, 139, 0.08);
    border-radius: 16px;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.hero {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 24px;
}

.table thead {
    background-color: var(--dark);
    color: white;
}

.auth-card {
    max-width: 520px;
    margin: 40px auto;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
}

.hero-card {
    background: linear-gradient(135deg, #0d4f8b 0%, #1e88e5 100%);
    color: #fff;
    border-radius: 24px;
    box-shadow: 0 32px 80px rgba(13, 79, 139, 0.16);
}

.feature-card {
    border: 1px solid rgba(13, 79, 139, 0.1);
    border-radius: 20px;
    background-color: #fff;
}

.top-nav {
    background: rgba(255, 255, 255, 0.92);
    padding: 1rem 1.25rem;
    border-radius: 20px;
    border: 1px solid rgba(13, 79, 139, 0.08);
    box-shadow: 0 20px 45px rgba(13, 79, 139, 0.08);
    margin-bottom: 1.5rem;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--dark);
}

.nav-links a {
    color: var(--dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.hero-top-banner {
    background-color: #0d4f8b;
    color: #fff;
    text-align: center;
    padding: 1.75rem 1.5rem;
    border-radius: 24px;
    margin-bottom: 1.5rem;
    box-shadow: 0 20px 48px rgba(13, 79, 139, 0.18);
}

.hero-top-title {
    font-size: 4.8rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.02;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.03em;
    max-width: 520px;
    font-size: 3.8rem;
    line-height: 1.05;
    font-weight: 900;
}

.about-section {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 28px;
    padding: 2rem 2rem 2.5rem;
    border: 1px solid rgba(13, 79, 139, 0.08);
}

.about-list li {
    line-height: 1.8;
}

.stat-box {
    min-width: 140px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 20px 40px rgba(13, 79, 139, 0.08);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 991.98px) {
    .top-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

.hero-section {
    min-height: 72vh;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-card {
    min-height: 100%;
    max-width: 900px;
    border-radius: 32px;
    padding: 2rem;
}

.hero-label {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #0d4f8b;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.hero-area {
    min-height: calc(100vh - 120px);
}

.hero-copy {
    max-width: 640px;
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #1f2937;
    font-weight: 700;
    font-size: 0.9rem;
}

.hero-headline {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.04em;
    font-size: clamp(3rem, 4vw, 4.4rem);
    line-height: 1.02;
    color: #111827;
}

.hero-description {
    max-width: 560px;
    color: #4b5563;
}

.hero-car-figure {
    max-width: 100%;
    height: auto;
    transform: translateY(0);
}

.hero-buttons .btn {
    min-width: 170px;
}

.btn-outline-primary {
    color: #0d4f8b;
    border-color: #0d4f8b;
}

.btn-outline-primary:hover {
    background-color: rgba(13, 79, 139, 0.08);
}

.toast-popup-wrapper {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
    display: flex;
    justify-content: flex-end;
    width: auto;
    pointer-events: none;
}

.toast-popup {
    pointer-events: auto;
    min-width: 260px;
    max-width: 320px;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(16, 37, 66, 0.08);
    box-shadow: 0 24px 40px rgba(16, 37, 66, 0.12);
    border-radius: 18px;
    color: #102542;
    backdrop-filter: blur(12px);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.toast-popup.alert-success {
    border-color: rgba(30, 136, 229, 0.2);
}

.toast-popup.alert-danger {
    border-color: rgba(220, 38, 38, 0.2);
}

.toast-popup.toast-hide {
    opacity: 0;
    transform: translateY(-12px);
}

@media (max-width: 575.98px) {
    .toast-popup-wrapper {
        right: 0.75rem;
        left: 0.75rem;
        justify-content: center;
    }
}

.popup-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(5px);
    z-index: 1300;
    padding: 1.5rem;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.popup-overlay.overlay-hidden {
    opacity: 0;
    pointer-events: none;
}

.popup-card {
    width: min(380px, calc(100% - 3rem));
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    border-radius: 22px;
    padding: 1.6rem 1.4rem;
    position: relative;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.popup-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.popup-card-message {
    color: #334155;
    line-height: 1.7;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    border: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.popup-close:hover {
    opacity: 1;
}

.popup-card.popup-hide {
    opacity: 0;
    transform: translateY(-18px);
}

@media (max-width: 991.98px) {
    .hero-area {
        min-height: auto;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-subtitle,
    .hero-headline,
    .hero-description {
        text-align: center;
    }
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.03em;
    max-width: 520px;
}

.hero-text {
    max-width: 540px;
    color: rgba(255, 255, 255, 0.88);
}

.hero-buttons .btn-outline-primary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.hero-buttons .btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.hero-image-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 32px;
    box-shadow: 0 32px 80px rgba(13, 79, 139, 0.12);
    min-height: 520px;
    overflow: hidden;
}

.hero-image-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 26px;
}

.hero-car-image {
    width: 100%;
    height: auto;
}

.click-ripple {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, 0.5);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

.features-row {
    gap: 1rem;
}

.feature-card {
    border: 1px solid rgba(13, 79, 139, 0.08);
    border-radius: 24px;
    background-color: #fff;
}

.form-control,
.form-select {
    border-radius: 14px;
    border: 1px solid #d7dde6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(14, 98, 170, 0.75);
    box-shadow: 0 0 0 0.2rem rgba(14, 98, 170, 0.12);
}

.btn-primary {
    background-image: linear-gradient(135deg, #0d4f8b 0%, #1e88e5 100%);
    border: none;
}

.btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.85);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

.auth-header {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(13, 79, 139, 0.08);
}

.small-link {
    color: var(--dark);
    text-decoration: none;
}

.small-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.alert {
    border-radius: 16px;
}

body {
    min-height: 100vh;
}

.hero {
    border-radius: 24px;
}

@media (max-width: 767.98px) {
    .hero-card {
        padding: 2rem;
    }

    .auth-card {
        margin: 20px auto;
    }
}