:root {
    --ui-bg: #f4f7fb;
    --ui-surface: #ffffff;
    --ui-surface-muted: #f8fafc;
    --ui-border: #dbe3ee;
    --ui-border-strong: #c6d3e1;
    --ui-text: #0f172a;
    --ui-text-muted: #64748b;
    --ui-primary: #c1121f;
    --ui-primary-dark: #9f1239;
    --ui-accent: #0f4c81;
    --ui-success: #0f9d58;
    --ui-shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.07);
    --ui-shadow-md: 0 22px 50px rgba(15, 23, 42, 0.12);
    --ui-radius-sm: 12px;
    --ui-radius-md: 20px;
    --ui-radius-lg: 28px;
}

body {
    background:
        radial-gradient(circle at top, rgba(15, 76, 129, 0.08), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, var(--ui-bg) 100%) !important;
    color: var(--ui-text);
}

.navbar,
.header {
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
}

.navbar {
    border-bottom: 1px solid rgba(203, 213, 225, 0.7) !important;
}

.nav-link,
.btn,
.card,
.vehicle-card,
.category-card,
.popular-search-card,
.recently-viewed-card,
.most-compared-card,
.premium-ad-card,
.content-card,
.search-card,
.stats-card,
.box-ad,
.info-item,
.form-control,
.form-select,
.table,
.vehicle-detail,
.search-results {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.card,
.vehicle-card,
.category-card,
.popular-search-card,
.recently-viewed-card,
.most-compared-card,
.premium-ad-card,
.content-card,
.search-card,
.stats-card,
.box-ad,
.vehicle-detail,
.search-results {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(219, 227, 238, 0.9) !important;
    border-radius: var(--ui-radius-md) !important;
    box-shadow: var(--ui-shadow-sm) !important;
}

.card:hover,
.vehicle-card:hover,
.category-card:hover,
.popular-search-card:hover,
.recently-viewed-card:hover,
.most-compared-card:hover,
.premium-ad-card:hover,
.content-card:hover,
.search-card:hover,
.stats-card:hover,
.box-ad:hover {
    transform: translateY(-4px);
    box-shadow: var(--ui-shadow-md) !important;
}

.card-header,
.vehicle-header,
.results-header,
.page-header {
    border: 0 !important;
}

.card-header,
.vehicle-header {
    background:
        linear-gradient(135deg, rgba(15, 76, 129, 0.96), rgba(12, 37, 63, 0.96)) !important;
    color: #fff !important;
}

.page-header,
.results-header {
    background:
        linear-gradient(135deg, rgba(15, 76, 129, 0.95), rgba(193, 18, 31, 0.92)) !important;
    color: #fff !important;
    border-radius: var(--ui-radius-lg) !important;
    box-shadow: var(--ui-shadow-md);
}

.page-title,
.results-header h2,
.vehicle-header h2,
.hero-title {
    letter-spacing: -0.03em;
}

.hero-section {
    position: relative;
    border-radius: 0 0 36px 36px;
    overflow: hidden;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(244, 247, 251, 0.92));
    pointer-events: none;
}

.search-section {
    position: relative;
    z-index: 3;
}

.search-card {
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.14) !important;
}

.search-tabs {
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-tab {
    border-radius: 999px !important;
}

.btn-primary,
.btn-search,
.hero-btn,
.btn.btn-primary {
    background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-dark)) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 16px 30px rgba(193, 18, 31, 0.2);
}

.btn-primary:hover,
.btn-search:hover,
.hero-btn:hover,
.btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(193, 18, 31, 0.28);
}

.btn-secondary,
.btn-outline-primary,
.btn.btn-secondary {
    background: #fff !important;
    color: var(--ui-accent) !important;
    border: 1px solid rgba(15, 76, 129, 0.16) !important;
}

.form-control,
.form-select {
    border: 1px solid var(--ui-border) !important;
    border-radius: 14px !important;
    background: #fff !important;
    min-height: 48px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(15, 76, 129, 0.55) !important;
    box-shadow: 0 0 0 0.22rem rgba(15, 76, 129, 0.14) !important;
}

.table,
.info-item,
.description,
.dealer-info {
    border: 1px solid var(--ui-border);
    border-radius: 16px !important;
}

.info-item,
.description {
    background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
    border-left: 0 !important;
}

.dealer-info {
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.09), rgba(193, 18, 31, 0.08)) !important;
}

.vehicle-card .card-content,
.card-body,
.search-results,
.vehicle-info {
    padding: 1.35rem !important;
}

.vehicles-grid,
.info-grid {
    gap: 1.25rem !important;
}

.vehicle-card .price,
.card-content .price,
.price {
    color: var(--ui-primary) !important;
}

.vehicle-card .model,
.footer-section h4 {
    color: var(--ui-accent) !important;
}

.footer {
    background:
        linear-gradient(135deg, #0f172a, #1e293b) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-section ul li a,
.footer-bottom,
.footer p {
    color: rgba(255, 255, 255, 0.78) !important;
}

.banner-ad-section {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(219, 227, 238, 0.9) !important;
    box-shadow: none !important;
    padding: 18px !important;
}

.banner-ad-container {
    background:
        linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.96)) !important;
    border: 1px solid rgba(219, 227, 238, 0.9);
    border-radius: 26px !important;
    box-shadow: var(--ui-shadow-sm) !important;
    backdrop-filter: none !important;
}

.banner-ad,
.banner-ad > div {
    border-radius: 20px !important;
}

.banner-ad img,
.banner-image,
.banner-image-container {
    background: #ffffff !important;
    border-radius: 18px !important;
}

.banner-ad-placeholder,
.modern-banner {
    background: linear-gradient(135deg, #0f4c81 0%, #1d3557 55%, #c1121f 100%) !important;
    border-radius: 18px !important;
}

.box-ad {
    overflow: hidden;
}

.box-ad-content {
    display: block !important;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.box-ad-title {
    color: var(--ui-text) !important;
}

.system-report-page {
    background:
        radial-gradient(circle at top right, rgba(15, 76, 129, 0.12), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    color: var(--ui-text);
    font-family: Inter, "Segoe UI", sans-serif;
    margin: 0;
}

.system-report-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.system-report-hero {
    background: linear-gradient(135deg, #0f4c81, #1d3557 60%, #c1121f);
    color: #fff;
    border-radius: 28px;
    padding: 32px;
    box-shadow: var(--ui-shadow-md);
    margin-bottom: 24px;
}

.system-report-hero h1,
.system-report-hero p {
    margin: 0;
}

.system-report-hero p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
}

.system-report-card {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(219, 227, 238, 0.92);
    border-radius: 24px;
    box-shadow: var(--ui-shadow-sm);
    padding: 24px;
}

.system-report-page h2,
.system-report-page h3,
.system-report-page h4 {
    color: #0f172a;
    margin-top: 1.2rem;
    margin-bottom: 0.75rem;
}

.system-report-page p,
.system-report-page li {
    color: #334155;
    line-height: 1.7;
}

.system-report-page ul,
.system-report-page ol {
    padding-left: 1.3rem;
}

@media (max-width: 768px) {
    .banner-ad-section {
        padding: 12px !important;
    }

    .banner-ad-container {
        border-radius: 18px !important;
    }

    .system-report-shell {
        padding: 20px 14px 36px;
    }

    .system-report-hero {
        padding: 24px 18px;
        border-radius: 22px;
    }
}
