@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@font-face {
    font-family: 'AZLicensePlate';
    src: url('../fonts/licenseplate.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Colors */
    --main-blue-color: rgb(68, 119, 247);
    --dark-gray-color: #1a1a1a;
    --light-gray-color: #2d2d2d;
    --light-gray-hover-color: #353535;
    --light-border-color: #e5e5e5;
    --light-fill-color: #f3f4f6;
    --card-icon-color: #999;
    --solid-red-color: #ef4444;
    --solid-yellow-color: #f59e0b;

    /* Font Sizes */
    --font-size-2xs: 7px;
    --font-size-xs: 10px;
    --font-size-caption: 11px;
    --font-size-small: 12px;
    --font-size-body: 13px;
    --font-size-card-title: 14px;
    --font-size-medium: 16px;
    --font-size-body-lg: 15px;
    --font-size-large: 18px;
    --font-size-xl: 22px;
}



/* Reset */

a {
    text-decoration: none;
    color: inherit;
}

body {
    background: #faf8f8;
}

* {
    font-family: "Poppins", sans-serif; 
}

/* Buttons */

.header-action-button {
    background-color: var(--light-gray-color);
    border: none;
    color: #ffffff;
    padding: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.header-action-button-count {
    font-size: var(--font-size-xs);
    padding: 3px 5px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 4px;
    right: 4px;
    background-color: var(--solid-red-color);
}

.header-action-button:hover {
    background-color: var(--light-gray-hover-color);
}

.header-profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

.header-profile-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--main-blue-color);
    color: #ffffff;
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 0;
}

.header-profile-button {
    background-color: var(--dark-gray-color);
    border: 1px solid #333;
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
}

.header-profile-button:hover {
    border-color: var(--main-blue-color);
}

.header-profile-dropdown {
    gap: 4px;
}

.header-profile-arrow {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 2px;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.header-profile-arrow i {
    font-size: var(--font-size-xs);
}

.header-profile-button[aria-expanded="true"] + .header-profile-arrow {
    transform: rotate(180deg);
}

.btn-drivenation-primary-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 9999px;
    border: 1px solid var(--main-blue-color);
    background-color: transparent;
    color: var(--main-blue-color);
    font-size: var(--font-size-small);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.btn-drivenation-primary-outline:hover {
    background-color: var(--main-blue-color);
    color: #ffffff;
}

.btn-drivenation-primary-outline.disabled,
.btn-drivenation-primary-outline:disabled {
    background-color: var(--light-fill-color);
    border-color: #d1d5db;
    color: #9ca3af;
    cursor: default;
    pointer-events: none;
}

.btn-drivenation-danger-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 9999px;
    border: 1px solid var(--solid-red-color);
    background-color: transparent;
    color: var(--solid-red-color);
    font-size: var(--font-size-small);
    font-weight: 500;
    cursor: pointer;
}

.btn-drivenation-danger-outline:hover {
    background-color: var(--solid-red-color);
    color: #ffffff;
}

/* Site statistics modal */

.site-stats-modal .modal-content {
    border-radius: 0;
    border: 1px solid var(--light-border-color);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.site-stats-modal .modal-dialog {
    max-width: 720px;
    margin: 0 auto;
}

.site-stats-modal .modal-body {
    padding: 16px 20px 12px;
}

.site-stats-modal .modal-footer {
    padding: 10px 20px 16px;
}

.site-stats-modal .modal-body > .section-title {
    margin-bottom: 10px;
}

.site-stats-modal hr {
    margin: 12px 0 14px;
}

.site-stats-card {
    background-color: #f9fafb;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid var(--light-border-color);
}

.site-stats-label {
    font-size: var(--font-size-caption);
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.site-stats-value {
    font-size: var(--font-size-large);
    font-weight: 600;
    color: var(--dark-gray-color);
    margin-bottom: 2px;
}

.site-stats-sub {
    font-size: var(--font-size-caption);
    color: #9ca3af;
}

.site-stats-list-title {
    font-size: var(--font-size-body);
    font-weight: 600;
    color: var(--dark-gray-color);
    margin-bottom: 4px;
}

.site-stats-list ul {
    padding-left: 18px;
    margin: 0;
    font-size: var(--font-size-small);
    color: #4b5563;
}

/* Alerts */

.alert {
    border-radius: 0;
    border-width: 1px;
    padding: 8px 10px;
    margin-bottom: 10px;
    font-size: var(--font-size-body);
}

.alert-dismissible {
    display: flex;
    align-items: center;
}

.alert-dismissible .btn-close {
    padding: 0.5rem 0.5rem;
    align-self: center;
}

.alert-danger {
    background-color: #fef2f2;
    border-color: rgba(239, 68, 68, 0.7);
    color: #991b1b;
}

.alert-danger ul {
    margin: 0;
    padding-left: 18px;
    font-size: var(--font-size-body);
}

.alert-danger li + li {
    margin-top: 2px;
}


/* Navbar */

.navbar {
    background-color: var(--dark-gray-color) !important;
    padding: 16px 0px;
}

.nav-link {
    color: var(--dark-gray-color);
    font-size: var(--font-size-small);
    font-weight: 500;
    transition: 0s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--main-blue-color);
}

/* Header bottom nav icon boxes */

.header-bottom .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-gray-color);
    transition: none;
}

.header-bottom .nav-link i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: var(--light-fill-color);
    color: var(--card-icon-color);
    transition: none;
}

.header-bottom .nav-link:hover i,
.header-bottom .nav-link.active i {
    background-color: var(--main-blue-color);
    color: #ffffff;
}

.header-bottom .nav-link:hover,
.header-bottom .nav-link.active {
    color: var(--main-blue-color);
}

/* Header bottom mobile menu (hamburger) */

.header-bottom-menu-toggle {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background-color: #ffffff;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.14s ease;
}

.header-bottom-menu-toggle:hover {
    border-color: var(--main-blue-color);
    background-color: var(--light-fill-color);
}

.header-bottom-menu-toggle:active {
    transform: translateY(1px) scale(0.98);
}

.header-bottom-menu-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    width: 18px;
}

.header-bottom-menu-toggle-icon span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background-color: var(--dark-gray-color);
    transition:
        transform 0.18s ease,
        opacity 0.18s ease,
        background-color 0.18s ease;
}

/* Open state: morph into "X" and invert colors */
.header-bottom-menu-toggle.is-open {
    background-color: var(--dark-gray-color);
    border-color: var(--dark-gray-color);
}

.header-bottom-menu-toggle.is-open .header-bottom-menu-toggle-icon span {
    background-color: #ffffff;
}

.header-bottom-menu-toggle.is-open .header-bottom-menu-toggle-icon span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.header-bottom-menu-toggle.is-open .header-bottom-menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.header-bottom-menu-toggle.is-open .header-bottom-menu-toggle-icon span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

.dropdown-item {
    font-size: var(--font-size-small);
}

/* Header dropdowns (heart + bell layout) */

.header-dropdown-menu {
    width: 360px;
    max-width: 360px;
}

/* Shared dropdown theme (colors/typography) */

.header-dropdown-theme {
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--light-border-color);
    background-color: var(--light-fill-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    overflow: hidden;
}

.header-dropdown-header,
.header-dropdown-body,
.header-dropdown-footer {
    background-color: var(--light-fill-color);
    color: #111827;
}

.header-dropdown-title {
    font-size: var(--font-size-small);
    font-weight: 600;
}

.header-dropdown-verified-badge {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.header-dropdown-link {
    font-size: var(--font-size-small);
    color: #6b7280;
    text-decoration: none;
}

.header-dropdown-link:hover {
    color: #111827;
    text-decoration: underline;
}

.header-dropdown-menu .header-dropdown-body {
    min-height: 140px;
    max-height: 260px;
    overflow-y: auto;
}

.header-notifications-list {
    font-size: var(--font-size-small);
}

.header-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
}

.header-notification-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
    flex-shrink: 0;
}

.header-notification-icon-approve {
    background-color: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.header-notification-icon-reject {
    background-color: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.header-notification-icon-default {
    background-color: rgba(148, 163, 184, 0.15);
    color: #4b5563;
}

.header-notification-icon-warning {
    background-color: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.header-notification-icon-info {
    background-color: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.header-notification-icon-winning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(250, 204, 21, 0.2));
    color: #b45309;
}

.header-notification-content {
    flex: 1;
    min-width: 0;
}

.header-notification-remove {
    font-size: var(--font-size-caption);
}

.header-notification-text {
    display: block;
    line-height: 1.4;
}

.header-notification-unread .header-notification-text {
    font-weight: 600;
    color: #111827;
}

.header-notification-read .header-notification-text {
    color: #6b7280;
}

.header-dropdown-footer-btn {
    font-size: var(--font-size-small);
    padding-top: 10px;
    padding-bottom: 10px;
}

.header-dropdown-body .text-muted {
    color: #6b7280 !important;
    font-size: var(--font-size-small);
}

.header-dropdown-footer .btn-primary {
    background-color: var(--main-blue-color);
    border-color: var(--main-blue-color);
}

.header-dropdown-footer .btn-primary:hover {
    background-color: #335adf;
    border-color: #335adf;
}

.header-dropdown-theme .dropdown-item {
    background-color: var(--light-fill-color);
    color: #111827;
}

.header-dropdown-theme .dropdown-item:hover {
    background-color: #e5e7eb;
    color: #111827;
}

.header-dropdown-theme .dropdown-divider {
    border-top-color: #e5e7eb;
}

/* Main navigation offcanvas (light theme) */

.main-nav-offcanvas {
    background-color: #ffffff;
    color: var(--dark-gray-color);
    border-left: 1px solid var(--light-border-color);
}

.main-nav-offcanvas-header {
    border-bottom: 1px solid var(--light-border-color);
    padding: 14px 18px;
    background-color: #f9fafb;
}

.main-nav-offcanvas-logo img {
    max-height: 28px;
    width: auto;
    display: block;
}

.main-nav-offcanvas-body {
    padding: 14px 18px 18px;
}

.main-nav-offcanvas-nav ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.main-nav-offcanvas-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    font-size: var(--font-size-card-title);
}

.main-nav-offcanvas-link:hover {
    background-color: var(--light-fill-color);
    color: var(--dark-gray-color);
}

.main-nav-offcanvas-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background-color: var(--light-fill-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.main-nav-offcanvas-icon i {
    font-size: var(--font-size-card-title);
    color: var(--card-icon-color);
}

/* On hover, highlight icon box with main blue */
.main-nav-offcanvas-link:hover .main-nav-offcanvas-icon {
    background-color: var(--main-blue-color);
}

.main-nav-offcanvas-link:hover .main-nav-offcanvas-icon i {
    color: #ffffff;
}

.main-nav-offcanvas-text {
    font-weight: 500;
}

.main-nav-offcanvas-footer {
    color: #4b5563;
}

.main-nav-offcanvas-social-label {
    font-size: var(--font-size-small);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.main-nav-offcanvas-social-link {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--light-border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    text-decoration: none;
    background-color: #ffffff;
}

.main-nav-offcanvas-social-link:hover {
    background-color: var(--light-fill-color);
    border-color: #9ca3af;
}

/* WhatsApp social icon hover (brand background like TikTok / YouTube) */
a[aria-label="WhatsApp"]:hover,
.car-detail-share-btn[aria-label="WhatsApp"]:hover,
.main-nav-offcanvas-social-link[aria-label="WhatsApp"]:hover {
    background-color: #25d366;
    border-color: #25d366;
    color: #ffffff;
}
/* ensure icon uses white on hover */
a[aria-label="WhatsApp"]:hover i,
.car-detail-share-btn[aria-label="WhatsApp"]:hover i,
.main-nav-offcanvas-social-link[aria-label="WhatsApp"]:hover i {
    color: #ffffff;
}

/* Profile dropdown specific styles */

.header-dropdown-menu-profile .dropdown-item {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-dropdown-menu-profile .header-dropdown-body li + li {
    margin-top: 4px;
}

/* Sections */

.section-title {
    font-size: var(--font-size-medium);
    font-weight: 600;
    color: var(--dark-gray-color);
}

.section-header-link {
    font-size: var(--font-size-small);
    font-weight: 500;
    color: var(--main-blue-color);
}

/* Contact section */
.section-contact .contact-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 55%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.10), transparent 55%),
        #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.40);
    box-shadow: none;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.section-contact .contact-card-bg-icon {
    position: absolute;
    top: -14px;
    right: -12px;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0.08;
    z-index: 0;
    transform: rotate(10deg);
    filter: blur(0.2px);
}

.section-contact .contact-card-bg-icon i {
    font-size: 120px;
    color: #0f172a;
}

.section-contact .contact-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 16px;
    position: relative;
    z-index: 1;
}
.section-contact .contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--main-blue-color);
    box-shadow: none;
    color: #ffffff;
}
.section-contact .contact-card-icon i {
    font-size: 20px;
}
.section-contact .contact-card-title {
    font-size: var(--font-size-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 4px;
}
.section-contact .contact-card-text {
    font-size: var(--font-size-body);
    font-weight: 600;
    color: #4b5563;
    word-break: break-word;
}
.section-contact .contact-card-link:hover {
    color: var(--main-blue-color);
}

.section-contact .contact-card:hover {
    border-color: rgba(59, 130, 246, 0.65);
    transform: translateY(-4px);
}

@media (max-width: 575.98px) {
    .section-contact .contact-card-body {
        align-items: flex-start;
    }
}

/* Mini share button (detail pages & public profile) */
.share-mini-btn{
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--light-border-color);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.share-mini-btn i{ font-size: 13px; }
.share-mini-btn:hover{
    border-color: rgba(68, 119, 247, 0.35);
    background: rgba(68, 119, 247, 0.06);
    color: var(--main-blue-color);
}

/* Cars page: filter bar */

.cars-filter {
    font-size: var(--font-size-small);
}

.cars-filter-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cars-filter-label {
    font-size: var(--font-size-caption);
    color: #6b7280;
}

.cars-filter-select {
    min-width: 140px;
}

.cars-filter-plate {
    min-width: 210px;
}

.cars-filter-plate-input .input-group-text {
    background-color: var(--light-fill-color);
    border-color: var(--light-border-color);
}

.cars-filter-plate-input .form-control {
    border-color: var(--light-border-color);
    font-size: var(--font-size-small);
}

/* Hero banner + side ad */

.section-hero-banners .hero-banner-carousel {
    height: auto;
    background-color: #0f172a;
    border: 1px solid var(--light-border-color);
}

.section-hero-banners .hero-banner {
    height: auto;
    width: 100%;
    overflow: hidden;
}

.section-hero-banners .hero-banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Hero banner carousel controls (adaptive) */
.section-hero-banners .hero-banner-carousel .carousel-control-prev,
.section-hero-banners .hero-banner-carousel .carousel-control-next {
    width: clamp(36px, 6vw, 64px);
    opacity: 0.95;
}
.section-hero-banners .hero-banner-carousel .carousel-control-prev-icon,
.section-hero-banners .hero-banner-carousel .carousel-control-next-icon {
    width: clamp(18px, 3.2vw, 34px);
    height: clamp(18px, 3.2vw, 34px);
    background-size: 100% 100%;
}
.section-hero-banners .hero-banner-carousel .carousel-control-prev:hover,
.section-hero-banners .hero-banner-carousel .carousel-control-next:hover {
    opacity: 1;
}

@media (max-width: 575.98px) {
    .section-hero-banners .hero-banner-carousel .carousel-control-prev,
    .section-hero-banners .hero-banner-carousel .carousel-control-next {
        width: 32px;
    }
    .section-hero-banners .hero-banner-carousel .carousel-control-prev-icon,
    .section-hero-banners .hero-banner-carousel .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
}

.section-hero-banners .hero-side-ad {
    height: 250px;
    border: 1px dashed var(--light-border-color);
    background-color: #f9fafb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    gap: 4px;
}

.section-hero-banners .hero-side-ad-label {
    font-size: var(--font-size-caption);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.section-hero-banners .hero-side-ad-size {
    font-size: var(--font-size-body);
    font-weight: 500;
    color: #4b5563;
}

.section-hero-banners .hero-side-ad-mail {
    font-size: var(--font-size-body);
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
}

.section-hero-banners .hero-side-ad-mail:hover {
    text-decoration: underline;
}

/* News lent + social icons */

.section-news-lent .news-lent-bar {
    background-color: #ffffff;
    border: 1px solid var(--light-border-color);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.section-news-lent .news-lent-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.section-news-lent .news-lent-title {
    font-size: var(--font-size-small);
    font-weight: 600;
    color: var(--dark-gray-color);
    white-space: nowrap;
}

.section-news-lent .news-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: var(--solid-red-color);
    display: inline-block;
    margin-right: 6px;
    position: relative;
}

.section-news-lent .news-live-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid rgba(239, 68, 68, 0.45);
    animation: newsLivePulse 1.4s ease-out infinite;
}

.section-news-lent .news-ticker {
    overflow: hidden;
    min-width: 0;
    flex: 1;
}

.section-news-lent .news-ticker-track {
    display: flex;
    align-items: center;
    gap: 18px;
    width: max-content;
  will-change: transform;
}

.section-news-lent .news-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-direction: row-reverse; /* thumb on right */
    text-decoration: none;
    color: var(--dark-gray-color);
    white-space: nowrap;
}

.section-news-lent .news-ticker-item:hover .news-ticker-text {
    color: var(--main-blue-color);
}

.section-news-lent .news-ticker-thumb {
    width: 56px;
    height: 34px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid var(--light-border-color);
    background-color: var(--light-fill-color);
}

.section-news-lent .news-ticker-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section-news-lent .news-ticker-text {
    font-size: var(--font-size-body);
    font-weight: 500;
    color: inherit;
    max-width: 520px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr; /* ellipsis at end of title (not start) when truncated, especially on mobile */
}

.section-news-lent .news-lent-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.section-news-lent .news-social-icon {
    width: 34px;
    height: 34px;
    border: 1px solid var(--light-border-color);
    background-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6b7280;
    transition: none;
}

.section-news-lent .news-social-icon:hover {
    border-color: #cbd5e1;
}

.section-news-lent .news-social-icon i {
    font-size: var(--font-size-body);
}

/* Brand-specific hover colors */

.section-news-lent .news-social-icon[aria-label="Instagram"]:hover {
    background-color: #e1306c;
    border-color: #e1306c;
    color: #ffffff;
}

.section-news-lent .news-social-icon[aria-label="Telegram"]:hover {
    background-color: #0088cc;
    border-color: #0088cc;
    color: #ffffff;
}

.section-news-lent .news-social-icon[aria-label="TikTok"]:hover {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

.section-news-lent .news-social-icon[aria-label="YouTube"]:hover {
    background-color: #ff0000;
    border-color: #ff0000;
    color: #ffffff;
}

@keyframes newsLivePulse {
    0% {
        transform: scale(0.8);
        opacity: 0.9;
    }
    70% {
        transform: scale(1.6);
        opacity: 0;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .section-news-lent .news-ticker-track {
        animation: none;
    }
}

@media (max-width: 575.98px) {
    .section-news-lent .news-lent-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .section-news-lent .news-lent-social {
        justify-content: flex-end;
    }
}

/* User car card + badges */

.user-badge-item {
    width: 16px;
}

/* Car card badges – responsive, normal size (never big) */
.card-user-car .user-badge-item {
    width: 12px;
}
@media (min-width: 400px) {
    .card-user-car .user-badge-item {
        width: 13px;
    }
}
@media (min-width: 576px) {
    .card-user-car .user-badge-item {
        width: 14px;
    }
}
@media (min-width: 768px) {
    .card-user-car .user-badge-item {
        width: 15px;
    }
}
@media (min-width: 992px) {
    .card-user-car .user-badge-item {
        width: 16px;
    }
}

.card-user-car {
    border-radius: 0;
    border: none !important;
    overflow: hidden;
    position: relative;
    height: 100%;
    background-color: #ffffff;
}

/* User cars grid borders (no double thickness) */

.user-cars-grid {
    --user-cars-grid-border: rgba(229, 229, 229, 0.75);
    border-left: 1px solid var(--user-cars-grid-border);
    border-top: 1px solid var(--user-cars-grid-border);
}

.user-cars-grid > .col {
    border-right: 1px solid var(--user-cars-grid-border);
    border-bottom: 1px solid var(--user-cars-grid-border);
}

/* User cars empty alert */
.user-cars-empty-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-cars-empty-alert {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: rgba(68, 119, 247, 0.08);
    border-left: 4px solid var(--main-blue-color);
    font-size: var(--font-size-small);
    color: #4b5563;
}

.user-cars-empty-alert-icon {
    color: var(--main-blue-color);
    font-size: 18px;
    flex-shrink: 0;
}

.user-cars-empty-alert-text {
    flex: 0 1 auto;
}

.user-cars-empty-alert-cta {
    font-weight: 500;
    color: var(--main-blue-color);
    white-space: nowrap;
}

.user-cars-empty-alert-cta:hover {
    color: #3d6fe0;
}

.leaderboard-empty-col {
    justify-content: center;
}

/* Ad banner */

.section-ad .ad-banner {
    width: 100%;
    height: 180px;
    border: 1px dashed var(--light-border-color);
    background-color: #f9fafb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.section-ad .ad-banner-label {
    font-size: var(--font-size-caption);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.section-ad .ad-banner-text {
    font-size: var(--font-size-body);
    font-weight: 500;
    color: #4b5563;
}

/* Ad banner info - clickable */
.ad-banner-info {
    cursor: pointer;
}

.card-user-car-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.card-user-car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.card-user-car:hover .card-user-car-image img {
    transform: scale(1.05);
}

.card-user-car .card-body {
    padding: 12px 14px 12px;
}

/* News cards */

.card-news {
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.card-news-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.card-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-news-title {
    font-size: var(--font-size-card-title);
    font-weight: 600;
    color: var(--dark-gray-color);
    margin-bottom: 4px;
}

.card-news-title-link {
    color: inherit;
    text-decoration: none;
}

.card-news-title-link:hover {
    color: var(--main-blue-color);
}

.card-news-description {
    font-size: var(--font-size-small);
    color: #4b5563;
    margin-bottom: 0;
    font-style: normal;
    font-weight: normal;
    white-space: normal;
}

.card-news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-size-caption);
    border-top: 1px solid var(--light-border-color);
    padding: 8px 14px;
    color: #6b7280;
}

.card-news-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.card-news-meta span,
.card-news-views span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-news-footer i {
    font-size: var(--font-size-caption);
}

.card-user-car-title {
    font-size: var(--font-size-card-title);
    font-weight: 600;
    color: var(--dark-gray-color);
    margin-bottom: 4px;
}

.card-user-car-title-link {
    color: inherit;
    text-decoration: none;
}

.card-user-car-title-link:hover {
    color: var(--main-blue-color);
}

.card-user-car-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 0;
    border: 1px solid var(--light-border-color);
    background-color: #ffffff;
    margin-bottom: 8px;
    margin-top: 8px;
    min-height: 28px;
}

.card-user-car-plate-country {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 24px;
    height: 100%;
    border-radius: 0;
    background-color: #ffffff;
}

.card-user-car-plate-country-code {
    font-size: var(--font-size-2xs);
    font-weight: 600;
    color: #111827;
    margin-top: 0;
    line-height: 1;
    text-align: center;
}

.card-user-car-plate-flag {
    width: 60%;
    height: 9px;
    border-radius: 2px;
    object-fit: cover;
    display: block;
}

.card-user-car-plate-number {
    letter-spacing: 2px;
    font-weight: 600;
    font-size: var(--font-size-card-title);
    color: #111827;
    font-family: 'AZLicensePlate', "Poppins", sans-serif;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.card-user-car-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

/* Car card avatar – responsive (mobile-first) */
.card-user-car-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-fill-color);
}
@media (min-width: 576px) {
    .card-user-car-user-avatar {
        width: 30px;
        height: 30px;
    }
}
@media (min-width: 768px) {
    .card-user-car-user-avatar {
        width: 32px;
        height: 32px;
    }
}
@media (min-width: 992px) {
    .card-user-car-user-avatar {
        width: 36px;
        height: 36px;
    }
}

.card-user-car-user-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
}

.card-user-car-user-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--main-blue-color);
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
}
@media (min-width: 576px) {
    .card-user-car-user-initials {
        font-size: 11px;
    }
}
@media (min-width: 768px) {
    .card-user-car-user-initials {
        font-size: var(--font-size-xs);
    }
}
@media (min-width: 992px) {
    .card-user-car-user-initials {
        font-size: var(--font-size-xs);
    }
}

.card-user-car-user-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.card-user-car-user-block .card-user-car-user {
    margin-bottom: 0;
}

.card-user-car-leaderboard-place {
    font-size: var(--font-size-caption);
    color: #6b7280;
    text-decoration: none;
}

.card-user-car-leaderboard-place:hover {
    color: var(--main-blue-color);
}

.card-user-car-leaderboard-place i {
    color: var(--solid-yellow-color);
}

.card-user-car-leaderboard-place-label {
    color: inherit;
}

.card-user-car-leaderboard-place-label-mobile {
    display: none;
}

.card-user-car-leaderboard-place-label-desktop {
    display: inline;
}

.card-user-car-leaderboard-place-rank {
    font-weight: 600;
    color: var(--dark-gray-color);
}

/* Car card username – responsive */
.card-user-car-user-name {
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--dark-gray-color);
}
@media (min-width: 576px) {
    .card-user-car-user-name {
        font-size: var(--font-size-caption);
    }
}
@media (min-width: 768px) {
    .card-user-car-user-name {
        font-size: var(--font-size-small);
    }
}

.card-user-car-user-link {
    color: inherit;
    text-decoration: none;
}

.card-user-car-user-link:hover {
    color: var(--main-blue-color);
    text-decoration: underline;
}

.card-user-car-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-size-small);
    border-top: 1px solid var(--light-border-color);
    padding-top: 8px;
    margin-top: 2px;
}

.card-user-car-footer-left,
.card-user-car-footer-right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
}

.card-user-car-footer-left {
    gap: 12px;
}

.card-user-car-footer-like,
.card-user-car-footer-comments {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-user-car-footer-left span,
.card-user-car-footer-right span {
    font-weight: 600;
    color: var(--dark-gray-color);
}

.card-user-car-footer-like i {
    color: var(--solid-red-color);
}

.card-user-car-footer-comments i {
    color: #64748b;
}

.card-user-car-footer-right i {
    color: var(--solid-yellow-color);
}

/* Card favorite button */

.card-user-car-favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s ease;
    z-index: 2;
}

.card-user-car-favorite-btn i {
    color: #ffffff;
    font-size: var(--font-size-large);
    transition: color 0.2s ease;
}

.card-user-car-favorite-btn:hover {
    background-color: transparent;
}

.card-user-car-favorite-btn.is-favorite {
    background-color: transparent;
}

.card-user-car-favorite-btn.is-favorite i {
    color: var(--solid-red-color);
}

/* Card badges */

.card-user-car-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: var(--font-size-caption);
    font-weight: 600;
    line-height: 1;
    border-radius: 999px;
    user-select: none;
}

.card-user-car-badge-vip {
    background-color: rgba(254, 243, 199, 0.95); /* soft gold */
    border: 1px solid rgba(252, 211, 77, 0.9);
    color: #92400e;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.card-user-car-badge-vip i {
    color: #b45309;
    font-size: var(--font-size-small);
}

/* Leaderboard section */

.section-leaderboard {
    margin-top: 8px;
}

.section-leaderboard .section-header {
    padding-bottom: 6px;
}

.leaderboard-nav .nav-link {
    border-radius: 999px;
    padding: 4px 14px;
    font-size: var(--font-size-small);
    border: 1px solid transparent;
    color: #6b7280;
    background-color: transparent;
}

.leaderboard-nav .nav-link.active {
    background-color: var(--main-blue-color);
    color: #ffffff;
}

.leaderboard-nav .nav-link:not(.active):hover {
    border-color: var(--light-border-color);
    color: var(--dark-gray-color);
}

.leaderboard-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    border: 1px solid var(--light-border-color);
    background-color: #ffffff;
    overflow: hidden;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--light-border-color);
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-item-top {
    background: linear-gradient(to right, #fef9c3, #fef3c7);
}

.leaderboard-rank {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-small);
    font-weight: 700;
    color: #111827;
    background-color: #e5e7eb;
    flex-shrink: 0;
}

.leaderboard-item:nth-child(1) .leaderboard-rank {
    background-color: #facc15;
}

.leaderboard-item:nth-child(2) .leaderboard-rank {
    background-color: #e5e7eb;
}

.leaderboard-item:nth-child(3) .leaderboard-rank {
    background-color: #f97316;
    color: #ffffff;
}

.leaderboard-main {
    flex: 1;
    min-width: 0;
}

.leaderboard-title {
    font-size: var(--font-size-body);
    font-weight: 600;
    color: var(--dark-gray-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
    font-size: var(--font-size-caption);
    color: #6b7280;
}

.leaderboard-meta span:nth-child(2) {
    color: var(--main-blue-color);
}

.leaderboard-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: var(--font-size-caption);
    color: #6b7280;
    flex-shrink: 0;
}

.leaderboard-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.leaderboard-stats i.fa-heart {
    color: var(--solid-red-color);
}

.leaderboard-stats i.fa-eye {
    color: #64748b;
}

.leaderboard-view-btn {
    margin-top: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--main-blue-color);
    background-color: transparent;
    color: var(--main-blue-color);
    font-size: var(--font-size-caption);
    font-weight: 500;
    text-decoration: none;
}

.leaderboard-view-btn:hover {
    background-color: var(--main-blue-color);
    color: #ffffff;
}

/* Forums section (forum.html) */

.section-forums {
    margin-top: 8px;
}

.forums-list {
    border-radius: 0;
    overflow: hidden;
}

.forum-item {
    border: 1px solid var(--light-border-color);
    border-radius: 0 !important;
    padding: 10px 14px;
    background-color: #ffffff;
    transition: background-color 0.15s ease;
}

.forum-item + .forum-item {
    border-top: none;
}

.forum-item:hover {
    background-color: #f9fafb;
}

.forum-avatar {
    width: 40px;
    height: 40px;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.7);
    background-color: #e5e7eb;
}

.forum-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.forum-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.forum-left {
    flex-shrink: 0;
}

.forum-title {
    font-size: var(--font-size-card-title);
    font-weight: 600;
    color: var(--dark-gray-color);
}

.forum-meta {
    font-size: var(--font-size-caption);
    display: flex;
    align-items: center;
    gap: 1px;
    flex-wrap: wrap;
}

.forum-author-link {
    display: inline;
    padding: 0;
    border-radius: 0;
    background-color: transparent;
    color: var(--main-blue-color);
    font-weight: 600;
    text-decoration: none;
}

.forum-author-link:hover {
    background-color: transparent;
    color: var(--main-blue-color);
    text-decoration: underline;
}

.forum-author-badges .user-badge-item {
    width: 12px;
}

.forum-stats {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.forum-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.forum-stats i.fa-heart {
    color: var(--solid-red-color);
}

.forum-stats i.fa-comment {
    color: #64748b;
}

.forum-stats i.fa-clock {
    color: #64748b;
}

.forum-stats-numbers span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.forum-stats-numbers i.fa-heart {
    color: var(--solid-red-color);
}

.forum-stats-numbers i.fa-comment {
    color: #64748b;
}

.forum-stats-numbers i.fa-clock {
    color: #9ca3af;
}

.forum-join-btn {
    font-size: var(--font-size-caption);
    padding-inline: 14px;
}

/* Forum topic detail (forum-detail.html) */

.section-forum-detail {
    margin-top: 8px;
}

.forum-topic-card {
    background-color: #ffffff;
    border: 1px solid var(--light-border-color);
    padding: 14px 18px;
}

.forum-topic-breadcrumb {
    font-size: var(--font-size-caption);
}

.forum-breadcrumb-link {
    color: #6b7280;
    text-decoration: none;
}

.forum-breadcrumb-link:hover {
    color: var(--main-blue-color);
    text-decoration: underline;
}

.forum-topic-title {
    font-size: var(--font-size-large);
    font-weight: 600;
    color: var(--dark-gray-color);
}

.forum-topic-meta {
    font-size: var(--font-size-caption);
}

.forum-topic-dot {
    color: #d1d5db;
}

.forum-topic-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.forum-topic-stats i.fa-heart {
    color: var(--solid-red-color);
}

.forum-topic-body {
    font-size: var(--font-size-body);
    color: #4b5563;
    line-height: 1.6;
}

.forum-topic-body p + p {
    margin-top: 6px;
}

.forum-comments-title {
    font-size: var(--font-size-card-title);
    font-weight: 600;
    color: var(--dark-gray-color);
}

.forum-comments-sort {
    min-width: 150px;
}

.forum-comment-list {
    margin-top: 6px;
    border-top: 1px solid var(--light-border-color);
}

.forum-comment {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-border-color);
}

.forum-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
}

.forum-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.forum-comment-avatar-initials {
    font-size: var(--font-size-small);
    font-weight: 600;
}

.forum-comment-main {
    flex: 1;
    min-width: 0;
    position: relative;
    padding-right: 26px;
}

.forum-comment-name {
    font-size: var(--font-size-small);
    font-weight: 600;
    color: var(--dark-gray-color);
}

.forum-comment-username {
    font-weight: 500;
    color: #6b7280;
}

.forum-comment-reply-notice {
    font-size: var(--font-size-small);
    color: var(--main-blue-color);
    padding: 6px 10px;
    background-color: rgba(68, 119, 247, 0.08);
    border-radius: 6px;
    border-left: 3px solid var(--main-blue-color);
}

.forum-comment-reply-to {
    font-size: var(--font-size-caption);
    color: #6b7280;
}

.forum-comment-reply-to-username {
    color: var(--main-blue-color);
    font-weight: 500;
}

.forum-comment-meta {
    margin-top: 2px;
}

.forum-comment-time {
    display: inline-block;
    font-size: var(--font-size-caption);
    font-weight: 400;
    color: #6b7280;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}

.forum-comment-body {
    font-size: var(--font-size-body);
    font-weight: 600;
    color: #4b5563;
    margin-top: 4px;
}

.forum-comment-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: var(--font-size-caption);
}

.forum-comment-action-btn {
    border: none;
    background-color: transparent;
    padding: 0;
    color: #6b7280;
    cursor: pointer;
}

/* Comment delete button (top-right, owner-only) */
.forum-comment-delete-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    padding: 0;
    line-height: 1;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.forum-comment-delete-btn i {
    font-size: 12px;
    color: #ef4444;
}
.forum-comment-delete-btn:hover i {
    color: #dc2626;
}

.forum-comment-action-btn i.fa-heart {
    color: var(--solid-red-color);
}

.forum-comment-replies {
    margin-top: 8px;
    border-left: 2px solid var(--light-border-color);
    padding-left: 10px;
}

.forum-comment-reply {
    border-bottom: none;
    padding-bottom: 0;
}

.forum-comment-form textarea {
    font-size: var(--font-size-body);
}

.forum-comment-toolbar {
    font-size: var(--font-size-body);
    color: #6b7280;
}

.forum-comment-emoji-toggle {
    border: none;
    background-color: transparent;
    padding: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
}

.forum-comment-emoji-toggle:hover {
    background-color: var(--light-fill-color);
}

.forum-comment-emoji-picker {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    background-color: #f9fafb;
    border: 1px solid var(--light-border-color);
    max-width: 100%;
}

.forum-comment-emoji-picker.is-open {
    display: inline-flex;
}

.forum-emoji-btn {
    border: none;
    background-color: transparent;
    padding: 0 2px;
    cursor: pointer;
    font-size: var(--font-size-medium);
    line-height: 1;
}

.forum-topic-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.forum-topic-sidebar-card {
    background-color: #ffffff;
    border: 1px solid var(--light-border-color);
    padding: 12px 14px;
}

.forum-topic-sidebar-title {
    font-size: var(--font-size-body);
    font-weight: 600;
    color: var(--dark-gray-color);
}

.forum-topic-sidebar-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: var(--font-size-small);
    color: #4b5563;
}

.forum-topic-sidebar-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 3px 0;
}

.forum-topic-sidebar-list span {
    color: #6b7280;
}

.forum-topic-sidebar-links {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: var(--font-size-small);
}

.forum-topic-sidebar-links li + li {
    margin-top: 4px;
}

.forum-topic-sidebar-links a {
    color: var(--dark-gray-color);
    text-decoration: none;
}

.forum-topic-sidebar-links a:hover {
    color: var(--main-blue-color);
}

/* Car detail section (car-detail.html) */

.section-car-detail {
    margin-top: 8px;
}

.car-detail-left {
    background-color: #ffffff;
    border: 1px solid var(--light-border-color);
    padding: 12px;
}

.car-detail-right {
    background-color: #ffffff;
    border: 1px solid var(--light-border-color);
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.car-detail-right-header {
    background-color: #f9fafb;
    padding: 14px 16px;
}

.car-detail-right-body {
    padding: 14px 16px;
    flex: 1;
}

.car-detail-right-bottom {
    background-color: #f9fafb;
    padding: 14px 16px;
    margin-top: auto;
}

.car-detail-breadcrumb {
    font-size: var(--font-size-caption);
}

.car-detail-breadcrumb-link {
    color: #6b7280;
    text-decoration: none;
}

.car-detail-breadcrumb-link:hover {
    color: var(--main-blue-color);
    text-decoration: underline;
}

.car-detail-main-image {
    width: 100%;
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    background-color: var(--light-fill-color);
}

.car-detail-main-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.car-detail-gallery {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.car-detail-gallery-inner {
    display: flex;
    gap: 8px;
    padding-bottom: 4px;
}

.car-detail-gallery-thumb {
    flex-shrink: 0;
    width: 48px;
    height: 36px;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--light-fill-color);
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.car-detail-gallery-thumb:hover {
    border-color: var(--light-border-color);
}

.car-detail-gallery-thumb.is-active {
    border-color: var(--main-blue-color);
}

.car-detail-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Car detail gallery lightbox */
.car-detail-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.car-detail-gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.car-detail-gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.car-detail-gallery-lightbox-close,
.car-detail-gallery-lightbox-prev,
.car-detail-gallery-lightbox-next {
    position: absolute;
    z-index: 10;
    width: 48px;
    height: 48px;
    border: none;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color 0.2s ease;
}

.car-detail-gallery-lightbox-close:hover,
.car-detail-gallery-lightbox-prev:hover,
.car-detail-gallery-lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.car-detail-gallery-lightbox-close {
    top: 20px;
    right: 20px;
}

.car-detail-gallery-lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.car-detail-gallery-lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.car-detail-gallery-lightbox.is-single .car-detail-gallery-lightbox-prev,
.car-detail-gallery-lightbox.is-single .car-detail-gallery-lightbox-next {
    display: none;
}

.car-detail-gallery-lightbox-content {
    position: relative;
    z-index: 5;
    max-width: 90vw;
    max-height: 90vh;
}

.car-detail-gallery-lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.car-detail-gallery-lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #fff;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 6px 14px;
    border-radius: 4px;
}

.car-detail-title {
    font-size: var(--font-size-medium);
    font-weight: 600;
    color: var(--dark-gray-color);
}

.car-detail-right .card-user-car-plate {
    margin-top: 0;
}

.car-detail-right .card-user-car-user {
    margin-bottom: 8px;
}

.car-detail-leaderboard-place-link {
    font-size: var(--font-size-caption);
    color: #6b7280;
    text-decoration: none;
}

.car-detail-leaderboard-place-link:hover {
    color: var(--main-blue-color);
}

.car-detail-leaderboard-place-link i {
    color: var(--solid-yellow-color);
}

.car-detail-leaderboard-place-rank {
    font-weight: 600;
    color: var(--dark-gray-color);
}

.car-detail-leaderboard-place-label-mobile {
    display: none;
}

.car-detail-leaderboard-place-label-desktop {
    display: inline;
}

.car-detail-body-title {
    color: var(--dark-gray-color);
}

.car-detail-description {
    font-size: var(--font-size-small);
    color: #4b5563;
    line-height: 1.55;
}

.car-detail-share {
    display: flex;
    align-items: center;
    gap: 3px;
}

.car-detail-share-btn {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background-color: var(--light-fill-color);
    color: #6b7280;
    font-size: var(--font-size-caption);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.car-detail-share-btn i {
    font-size: var(--font-size-caption);
}

.car-detail-share-btn:hover {
    background-color: var(--main-blue-color);
    color: #ffffff;
}

.car-detail-like-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

.car-detail-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid var(--light-border-color);
    background-color: transparent;
    border-radius: 8px;
    font-size: var(--font-size-body);
    color: #6b7280;
    cursor: pointer;
    transition: 0s;
}

.car-detail-like-btn:hover {
    border-color: var(--solid-red-color);
    color: var(--solid-red-color);
}

.car-detail-like-btn i {
    transition: 0s;
}

.car-detail-like-btn:hover i,
.car-detail-like-btn.is-liked i {
    color: var(--solid-red-color);
}

.car-detail-like-btn.is-liked {
    border-color: var(--solid-red-color);
    color: var(--solid-red-color);
}

.car-detail-rate-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid var(--light-border-color);
    background-color: transparent;
    border-radius: 8px;
    font-size: var(--font-size-body);
    color: #6b7280;
    cursor: pointer;
    transition: 0s;
}

.car-detail-rate-btn:hover {
    border-color: var(--solid-yellow-color);
    color: var(--solid-yellow-color);
}

.car-detail-rate-btn:hover i {
    color: var(--solid-yellow-color);
}

.car-detail-rating-value {
    font-size: var(--font-size-card-title);
    font-weight: 600;
    color: var(--dark-gray-color);
}

.car-detail-comments .forum-comment-list {
    margin-top: 6px;
    padding-top: 0;
}

.car-detail-comment-alert {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: var(--font-size-caption);
    color: #4b5563;
    background-color: var(--light-fill-color);
    border: 1px solid var(--light-border-color);
}

.car-detail-comment-alert i {
    color: var(--main-blue-color);
    font-size: var(--font-size-small);
}

/* News detail */
.section-news-detail {
    margin-top: 8px;
}

.news-detail-side-ad {
    position: sticky;
    top: 100px;
}

.news-detail-side-ad a {
    display: block;
    border: 1px solid var(--light-border-color);
    overflow: hidden;
    min-height: 500px;
    background: #f9fafb;
}

.news-detail-side-ad img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.news-detail-card {
    background-color: #ffffff;
    border: 1px solid var(--light-border-color);
    overflow: hidden;
}

.news-detail-header {
    background-color: #f9fafb;
    padding: 14px 16px;
}

.news-detail-title {
    font-size: var(--font-size-large);
    font-weight: 600;
    color: var(--dark-gray-color);
    margin-bottom: 8px;
}

.news-detail-meta {
    font-size: var(--font-size-caption);
    color: #6b7280;
}

.news-detail-meta-item {
    display: inline-flex;
    align-items: center;
}

.news-detail-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    background-color: var(--light-fill-color);
}

.news-detail-main-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.news-detail-body {
    padding: 14px 16px;
}

.news-detail-content {
    font-size: var(--font-size-body);
    color: #4b5563;
    line-height: 1.6;
}

.news-detail-content p {
    margin-bottom: 12px;
    font-size: var(--font-size-body);
}

.news-detail-content strong {
    font-weight: 600;
}

.news-detail-content a {
    color: var(--main-blue-color);
    text-decoration: underline;
}

.news-detail-block-title {
    font-size: var(--font-size-card-title);
    font-weight: 600;
    color: var(--dark-gray-color);
    margin-bottom: 8px;
}

.news-detail-gallery {
    margin-top: 20px;
}

.news-detail-gallery-thumbs {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin-top: 8px;
}

.news-detail-gallery-thumbs-inner {
    display: flex;
    gap: 8px;
    padding-bottom: 4px;
}

.news-detail-gallery-thumb {
    flex-shrink: 0;
    width: 48px;
    height: 36px;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--light-fill-color);
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.news-detail-gallery-thumb:hover {
    border-color: var(--light-border-color);
}

.news-detail-gallery-thumb.is-active {
    border-color: var(--main-blue-color);
}

.news-detail-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-detail-main-img {
    cursor: pointer;
}

/* News detail gallery lightbox - reuses car lightbox structure */
.news-detail-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.news-detail-gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.news-detail-gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.news-detail-gallery-lightbox-close,
.news-detail-gallery-lightbox-prev,
.news-detail-gallery-lightbox-next {
    position: absolute;
    z-index: 10;
    width: 48px;
    height: 48px;
    border: none;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color 0.2s ease;
}

.news-detail-gallery-lightbox-close:hover,
.news-detail-gallery-lightbox-prev:hover,
.news-detail-gallery-lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.news-detail-gallery-lightbox-close {
    top: 20px;
    right: 20px;
}

.news-detail-gallery-lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.news-detail-gallery-lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.news-detail-gallery-lightbox-content {
    position: relative;
    z-index: 5;
    max-width: 90vw;
    max-height: 90vh;
}

.news-detail-gallery-lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.news-detail-gallery-lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #fff;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 6px 14px;
    border-radius: 4px;
}

.news-detail-gallery-lightbox.is-single .news-detail-gallery-lightbox-prev,
.news-detail-gallery-lightbox.is-single .news-detail-gallery-lightbox-next {
    display: none;
}

.news-detail-youtube {
    margin-top: 20px;
}

.news-detail-bottom {
    background-color: #f9fafb;
    padding: 14px 16px;
}

.news-detail-bottom-divider {
    height: 1px;
    background-color: var(--light-border-color);
    margin-bottom: 14px;
}

.news-detail-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.news-detail-bottom-left {
    flex: 1;
    min-width: 0;
}

.news-detail-bottom-right {
    flex-shrink: 0;
}

.news-detail-bottom-no-ref {
    justify-content: flex-end;
}

.news-detail-ref-btn {
    padding: 6px 14px;
    font-size: var(--font-size-caption);
}

.news-detail-sidebar-card {
    background-color: #ffffff;
    border: 1px solid var(--light-border-color);
    padding: 14px 16px;
    position: sticky;
    top: 80px;
}

.news-detail-sidebar-title {
    font-size: var(--font-size-card-title);
    font-weight: 600;
    color: var(--dark-gray-color);
    margin-bottom: 12px;
    padding-bottom: 8px;
    padding-left: 12px;
    border-bottom: 1px solid var(--light-border-color);
    border-left: 3px solid var(--main-blue-color);
}

.news-detail-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-detail-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px 8px 0;
    border-bottom: 1px solid var(--light-fill-color);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 4px;
}

.news-detail-sidebar-item-arrow {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-fill-color);
    color: var(--main-blue-color);
    font-size: var(--font-size-caption);
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.news-detail-sidebar-item:hover .news-detail-sidebar-item-arrow {
    background-color: var(--main-blue-color);
    color: #ffffff;
}

.news-detail-sidebar-item-demo {
    pointer-events: none;
    cursor: default;
}

.news-detail-sidebar-item:last-child {
    border-bottom: none;
}

.news-detail-sidebar-item:hover {
    background-color: var(--light-fill-color);
}

.news-detail-sidebar-item:hover .news-detail-sidebar-item-title {
    color: var(--main-blue-color);
}

.news-detail-sidebar-item-body {
    flex: 1;
    min-width: 0;
}

.news-detail-sidebar-item-title {
    font-size: var(--font-size-small);
    font-weight: 500;
    color: var(--dark-gray-color);
    margin-bottom: 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-detail-sidebar-item-meta {
    font-size: var(--font-size-caption);
    color: #6b7280;
}

.news-detail-sidebar-empty {
    font-size: var(--font-size-small);
    padding: 12px 0;
}

@media (max-width: 991.98px) {
    .news-detail-sidebar-card {
        position: static;
    }
}

.car-detail-share-label {
    font-size: var(--font-size-caption);
    color: #6b7280;
}

.forum-comment-alert {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: var(--font-size-caption);
    color: #4b5563;
    background-color: var(--light-fill-color);
    border: 1px solid var(--light-border-color);
}

.forum-comment-alert i {
    color: var(--main-blue-color);
    font-size: var(--font-size-small);
}

@media (max-width: 575.98px) {
    .leaderboard-item {
        padding-inline: 8px;
    }

    .leaderboard-title {
        font-size: var(--font-size-small);
    }
}

/* Header dropdown behavior on tablet & mobile */
@media (max-width: 991.98px) {
    /* Let dropdown menus be positioned relative to the whole navbar */
    .navbar .dropdown {
        position: static;
    }

    .navbar .header-dropdown-menu,
    .navbar .header-dropdown-menu-profile {
        width: 100%;
        max-width: 100%;
    }

    /* Make the end-aligned menus stretch full width and open just under navbar */
    .navbar .dropdown-menu-end.header-dropdown-menu,
    .navbar .dropdown-menu-end.header-dropdown-menu-profile {
        right: 0;
        left: 0;
        transform: none;
        margin-top: 0px;
    }

    /* Remove rounded corners for full-width dropdowns on tablet & mobile */
    .navbar .header-dropdown-theme {
        border-radius: 0;
    }
}

/* Footer */

.site-footer {
    background-color: #ffffff;
    color: var(--dark-gray-color);
    margin-top: 24px;
}

.site-footer-top {
    padding: 28px 0 20px;
    border-top: 1px solid var(--light-border-color);
    border-bottom: 1px solid var(--light-border-color);
}

.site-footer-bottom {
    padding: 10px 0 14px;
    font-size: var(--font-size-caption);
    background-color: #f9fafb;
    color: #4b5563;

}

.footer-credits {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: var(--font-size-caption);
    line-height: 1.4;
    color: #4b5563;
    flex-wrap: wrap;
}

.footer-credits span {
    white-space: nowrap;
}

.footer-credits-link {
    display: inline-flex;
    align-items: center;
}

.footer-credits-logo {
    height: 16px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.footer-credits-link:hover .footer-credits-logo {
    opacity: 1;
    filter: none;
}

.site-footer-logo {
    max-width: 180px;
    height: auto;
    display: block;
    margin-bottom: 12px;
}

.site-footer-text {
    font-size: var(--font-size-small);
    color: #4b5563;
    margin-bottom: 0;
}

.site-footer-payments {
    padding-top: 0;
}

.site-footer-payments-label {
    font-size: var(--font-size-caption);
    color: #6b7280;
    font-weight: 500;
}

.site-footer-payments-icons {
    flex-wrap: wrap;
}

.site-footer-payment-logo {
    height: 24px;
    width: auto;
    max-width: 84px;
    display: block;
    object-fit: contain;
}

.site-footer-payment-logo-card {
    height: 18px;
    max-width: 28px;
}

.site-footer-nav-title {
    font-size: var(--font-size-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 8px;
}

.site-footer-nav-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.site-footer-nav-list a {
    font-size: var(--font-size-small);
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-footer-nav-list a:hover {
    color: var(--main-blue-color);
}

.site-footer-nav-link {
    text-decoration: none;
}

.site-footer-nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background-color: var(--light-fill-color);
    color: var(--card-icon-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.site-footer-nav-icon i {
    font-size: var(--font-size-body);
}

.site-footer-nav-list a:hover .site-footer-nav-icon {
    background-color: var(--main-blue-color);
    color: #ffffff;
}

.site-footer-dev-link {
    color: #4b5563;
    text-decoration: none;
}

.site-footer-dev-link:hover {
    color: var(--main-blue-color);
}

.site-footer-dev-logo {
    height: 16px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.site-footer-bottom-text {
    font-size: var(--font-size-caption);
    line-height: 1.4;
}

/* WhatsApp channel floating button */

.whatsapp-channel-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 10px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffffff;
    text-decoration: none;
}

.whatsapp-channel-fab:hover {
    color: #ffffff;
    filter: brightness(1.05);
}

.whatsapp-channel-fab-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-channel-fab-icon i {
    font-size: var(--font-size-xl);
    color: #25d366;
}

.whatsapp-channel-fab-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.whatsapp-channel-fab-label {
    font-size: var(--font-size-body);
    font-weight: 600;
}

.whatsapp-channel-fab-sub {
    font-size: var(--font-size-caption);
    opacity: 0.9;
}
@media (max-width: 575.98px) {
    .site-footer-top {
        padding-top: 20px;
        padding-bottom: 16px;
    }
}

/* Auth pages (login / register) */

.section-auth {
    margin-top: 8px;
}

.section-auth .auth-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    border-radius: 12px;
}

.section-auth .auth-card-body {
    padding: 20px 18px 18px;
}

@media (min-width: 768px) {
    .section-auth .auth-card-body {
        padding: 26px 28px 24px;
    }
}

.section-auth .auth-title {
    font-size: var(--font-size-medium);
    font-weight: 600;
    color: var(--dark-gray-color);
}

.section-auth .auth-subtitle {
    font-size: var(--font-size-small);
    color: #6b7280;
}

.section-auth .form-label {
    font-size: var(--font-size-body);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #6b7280;
}

.section-auth .form-control {
    border-radius: 10px;
    border: 1px solid var(--light-border-color);
    background-color: #ffffff;
    font-size: var(--font-size-body);
    padding: 8px 12px;
}

.section-auth .form-control:hover {
    border-color: rgba(68, 119, 247, 0.35);
    background-color: #fafbff;
}

.section-auth .form-control:focus {
    border-color: var(--main-blue-color);
    box-shadow: 0 0 0 3px rgba(68, 119, 247, 0.12);
    background-color: #ffffff;
}

.section-auth .auth-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.section-auth .auth-input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background-color: var(--light-fill-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--card-icon-color);
    pointer-events: none;
}

.section-auth .auth-input-icon i {
    font-size: var(--font-size-body);
}

.section-auth .auth-input-control {
    padding-left: 46px;
}

.section-auth .auth-input-group .form-select {
    border-radius: 10px;
    border: 1px solid var(--light-border-color);
    background-color: #ffffff;
    font-size: var(--font-size-body);
    padding: 8px 12px;
    padding-left: 46px;
    min-height: 38px;
}

.section-auth .auth-input-group .form-select:hover {
    border-color: rgba(68, 119, 247, 0.35);
    background-color: #fafbff;
}

.section-auth .auth-input-group .form-select:focus {
    border-color: var(--main-blue-color);
    box-shadow: 0 0 0 3px rgba(68, 119, 247, 0.12);
    outline: none;
}

.section-auth .auth-input-group .form-select:disabled {
    background-color: var(--light-fill-color);
    cursor: not-allowed;
}

.section-auth .auth-input-group-textarea {
    align-items: flex-start;
}

.section-auth .auth-input-icon-textarea {
    top: 12px;
    transform: none;
}

.section-auth .auth-input-control-textarea {
    padding-top: 8px;
    min-height: 100px;
    resize: vertical;
}

.section-auth .auth-input-group:focus-within .auth-input-icon {
    background-color: rgba(68, 119, 247, 0.08);
    color: var(--main-blue-color);
}

.section-auth .form-check-input:checked {
    background-color: var(--main-blue-color);
    border-color: var(--main-blue-color);
}

.section-auth .btn-auth-submit {
    border-radius: 999px;
    background-color: var(--main-blue-color);
    border-color: var(--main-blue-color);
    font-size: var(--font-size-body);
    font-weight: 600;
    padding: 9px 16px;
}

.section-auth .btn-auth-submit:hover {
    background-color: #335adf;
    border-color: #335adf;
}

/* Login split layout – left form, right benefits */
.login-split-wrapper {
    display: flex;
    flex-wrap: wrap;
    min-height: 420px;
    background: #ffffff;
    border: 1px solid var(--light-border-color);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.login-split-left {
    flex: 1 1 100%;
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-split-right {
    flex: 1 1 100%;
    background-color: var(--light-fill-color);
    border-top: 1px solid var(--light-border-color);
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .login-split-wrapper {
        flex-wrap: nowrap;
        min-height: 480px;
    }

    .login-split-left {
        flex: 1 1 50%;
        padding: 32px 28px 28px;
        border-right: 1px solid var(--light-border-color);
    }

    .login-split-right {
        flex: 1 1 50%;
        border-top: none;
        border-left: none;
        padding: 32px 28px 28px;
    }
}

/* Login section: unified font size */
.login-split-left,
.login-split-right {
    font-size: var(--font-size-body);
}

.login-split-left .auth-title {
    font-size: var(--font-size-body);
    font-weight: 600;
    color: var(--dark-gray-color);
    margin-bottom: 4px;
}

.login-split-left .auth-subtitle {
    font-size: var(--font-size-body);
    color: #6b7280;
    margin-bottom: 20px;
}

.login-benefits-title {
    font-size: var(--font-size-body);
    font-weight: 600;
    color: var(--dark-gray-color);
    margin-bottom: 16px;
}

.login-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: var(--font-size-body);
    color: #4b5563;
}

.login-benefit-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: #ffffff;
    border: 1px solid var(--light-border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--main-blue-color);
}

.login-benefit-icon i {
    font-size: var(--font-size-body);
}

.login-benefit-text strong {
    font-size: var(--font-size-body);
    font-weight: 600;
    color: var(--dark-gray-color);
    display: block;
    margin-bottom: 2px;
}

.login-split-left .section-header-link,
.login-split-left .text-muted,
.login-split-left .alert,
.login-split-left .form-control,
.login-split-left .form-control-sm,
.login-split-left .btn-auth-submit {
    font-size: var(--font-size-body) !important;
}

/* Profile page – same section design as index (section-cars, section-leaderboard) */
.section-profile {
    margin-top: 8px;
}

.section-profile .profile-section-card {
    border-radius: 0;
    border: 1px solid var(--light-border-color);
    background-color: #ffffff;
    box-shadow: none;
}

.section-profile .profile-section-card .card-body {
    padding: 14px 18px;
}

@media (min-width: 768px) {
    .section-profile .profile-section-card .card-body {
        padding: 18px 22px;
    }
}

.section-profile .profile-image-block {
    width: 100%;
}

.section-profile .profile-image-row {
    flex-wrap: wrap;
}

.section-profile .profile-bio-container {
    padding: 14px 16px;
    border: 1px solid var(--light-border-color);
    background-color: #ffffff;
}

.section-profile .profile-bio-container:hover {
    border-color: rgba(68, 119, 247, 0.35);
    background-color: #fafbff;
}

.section-profile .profile-bio-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.section-profile .profile-bio-icon {
    font-size: var(--font-size-body);
    color: var(--main-blue-color);
}

.section-profile .profile-bio-label {
    font-size: var(--font-size-small);
    font-weight: 600;
    color: #6b7280;
}

.section-profile .profile-bio-text {
    font-size: var(--font-size-body);
    color: var(--dark-gray-color);
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

.section-profile .profile-image-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--main-blue-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-profile .profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-profile .profile-image-initials {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: #ffffff;
}

.section-profile .profile-user-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.section-profile .profile-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: var(--font-size-small);
    font-weight: 600;
}

.section-profile .profile-badge-item.profile-badge-verified {
    background-color: rgba(68, 119, 247, 0.12);
    color: var(--main-blue-color);
}

.section-profile .profile-badge-item.profile-badge-vip {
    background-color: rgba(168, 85, 247, 0.12);
    color: #a855f7;
}

.section-profile .profile-badge-item .profile-badge-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.section-profile .btn-profile-remove-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--solid-red-color);
    background-color: transparent;
    color: var(--solid-red-color);
    font-size: var(--font-size-body);
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.section-profile .btn-profile-remove-avatar:hover {
    background-color: var(--solid-red-color);
    color: #ffffff;
}

.section-profile .profile-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.section-profile .profile-detail-row {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--light-border-color);
    background-color: #ffffff;
}

.section-profile .profile-detail-row:hover {
    border-color: rgba(68, 119, 247, 0.35);
    background-color: #fafbff;
}

.section-profile .profile-detail-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 8px;
    background-color: var(--light-fill-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--card-icon-color);
}

.section-profile .profile-detail-icon i {
    font-size: var(--font-size-body);
}

.section-profile .profile-detail-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 14px;
}

.section-profile .profile-detail-label {
    font-size: var(--font-size-small);
    font-weight: 600;
    color: #6b7280;
}

.section-profile .profile-detail-value {
    font-size: var(--font-size-body);
    font-weight: 500;
    color: var(--dark-gray-color);
}

.section-profile .profile-social-title {
    font-size: var(--font-size-card-title);
    font-weight: 600;
    color: var(--dark-gray-color);
    margin-bottom: 16px;
}

.section-profile .profile-detail-link {
    font-size: var(--font-size-body);
    font-weight: 500;
    color: var(--main-blue-color);
    text-decoration: none;
    word-break: break-all;
}

.section-profile .profile-detail-link:hover {
    text-decoration: underline;
}

.section-profile .profile-detail-empty {
    font-size: var(--font-size-body);
    color: #9ca3af;
    font-style: italic;
}

.section-profile .profile-badges-intro {
    font-size: var(--font-size-body);
    color: var(--dark-gray-color);
    margin-bottom: 20px;
}

.section-profile .profile-badge-block {
    padding: 18px;
    border: 1px solid var(--light-border-color);
    background-color: var(--light-fill-color);
    height: 100%;
}

.section-profile .profile-badge-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.section-profile .profile-badge-icon {
    width: 40px;
    height: 40px;
}

.section-profile .profile-badge-modal-icon,
.profile-badge-modal-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

/* Badge buy modal (same style as site stats modal) */
.badge-buy-modal .modal-content {
    border-radius: 0;
    border: 1px solid var(--light-border-color);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.badge-buy-modal .modal-dialog {
    max-width: 420px;
    margin: 0 auto;
}

.badge-buy-modal .modal-body {
    padding: 16px 20px 12px;
}

.badge-buy-modal .modal-footer {
    padding: 10px 20px 16px;
}

.badge-buy-box {
    background-color: #f9fafb;
    border: 1px solid var(--light-border-color);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.badge-buy-icon-wrap {
    flex-shrink: 0;
}

.badge-buy-icon {
    width: 48px;
    height: 48px;
}

.badge-buy-info {
    flex: 1;
}

.badge-buy-price {
    font-size: var(--font-size-large);
    font-weight: 600;
    color: var(--dark-gray-color);
    margin-bottom: 6px;
}

.badge-buy-desc {
    font-size: var(--font-size-small);
    color: #6b7280;
    margin-bottom: 8px;
}

.badge-buy-balance {
    font-size: var(--font-size-caption);
    color: #6b7280;
}

.badge-buy-modal .btn-badge-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid var(--solid-red-color);
    background-color: transparent;
    color: var(--solid-red-color);
    font-size: var(--font-size-body);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.badge-buy-modal .btn-badge-close:hover {
    background-color: var(--solid-red-color);
    color: #ffffff;
}

.badge-buy-modal .btn-badge-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid var(--main-blue-color);
    background-color: var(--main-blue-color);
    color: #ffffff;
    font-size: var(--font-size-body);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.badge-buy-modal .btn-badge-buy:hover {
    background-color: #335adf;
    border-color: #335adf;
    color: #ffffff;
}

/* Referral link modal helpers (uses badge-buy-modal theme) */
.referral-link-input {
    font-size: var(--font-size-body);
    font-weight: 600;
}
.referral-link-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.referral-link-actions .btn-badge-buy,
.referral-link-actions .btn-badge-close {
    padding: 9px 20px;
}
.referral-link-note {
    font-size: var(--font-size-caption);
    color: #6b7280;
}

.section-profile .profile-badge-title {
    font-size: var(--font-size-card-title);
    font-weight: 600;
    color: var(--dark-gray-color);
    margin: 0;
}

.section-profile .profile-badge-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
}

.section-profile .profile-badge-benefits li {
    font-size: var(--font-size-small);
    color: var(--dark-gray-color);
    margin-bottom: 8px;
}

.section-profile .profile-garage-placeholder {
    min-height: 80px;
}

.section-profile .profile-wallet-balance {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--light-border-color);
    background: linear-gradient(135deg, rgba(68, 119, 247, 0.06) 0%, rgba(68, 119, 247, 0.02) 100%);
    margin-top: 16px;
}

.section-profile .profile-wallet-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background-color: var(--main-blue-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-profile .profile-wallet-icon i {
    font-size: var(--font-size-body);
}

.section-profile .profile-wallet-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.section-profile .profile-wallet-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-profile .profile-wallet-amount {
    font-size: var(--font-size-card-title);
    font-weight: 700;
    color: var(--dark-gray-color);
}

.section-profile .profile-wallet-amount small {
    font-size: var(--font-size-small);
    font-weight: 500;
    color: #6b7280;
}

.section-profile .profile-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-border-color);
}

.section-profile .btn-profile-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid var(--main-blue-color);
    background-color: var(--main-blue-color);
    color: #ffffff;
    font-size: var(--font-size-body);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.section-profile .btn-profile-primary:hover {
    background-color: #335adf;
    border-color: #335adf;
    color: #ffffff;
}

.section-profile .btn-profile-primary.disabled,
.section-profile .btn-profile-primary:disabled {
    background-color: var(--light-fill-color);
    border-color: #d1d5db;
    color: #9ca3af;
    cursor: default;
    pointer-events: none;
}

.section-profile .btn-drivenation-primary-outline {
    font-size: var(--font-size-body);
    font-weight: 600;
    padding: 9px 20px;
}

/* Cars filter (section-cars) */
.section-cars .cars-filter-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.section-cars .cars-filter-label {
    display: inline-block;
    margin-bottom: 6px;
    font-size: var(--font-size-small);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(15, 23, 42, 0.7);
}

/* Cars filter inputs – modern design */
.section-cars .cars-filter-select,
.section-cars .cars-filter-input {
    border-radius: 12px;
    border: 1px solid var(--light-border-color);
    background-color: #ffffff;
    color: var(--dark-gray-color);
    font-size: var(--font-size-card-title);
    font-weight: 500;
    padding: 10px 14px;
    min-height: 42px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.section-cars .cars-filter-select:hover,
.section-cars .cars-filter-input:hover {
    border-color: rgba(68, 119, 247, 0.35);
    background-color: #fafbff;
}

.section-cars .cars-filter-select:focus,
.section-cars .cars-filter-input:focus {
    border-color: var(--main-blue-color);
    box-shadow: 0 0 0 3px rgba(68, 119, 247, 0.15);
    background-color: #ffffff;
    outline: none;
}

.section-cars .cars-filter-plate-input {
    border-radius: 12px;
    transition: box-shadow 0.2s ease;
}

.section-cars .cars-filter-plate-input:focus-within {
    box-shadow: 0 0 0 3px rgba(68, 119, 247, 0.15);
}

.section-cars .cars-filter-plate-input .input-group-text {
    border-radius: 12px 0 0 12px;
    border: 1px solid var(--light-border-color);
    border-right: none;
    background-color: var(--light-fill-color);
    color: var(--card-icon-color);
    padding: 10px 14px;
    min-height: 42px;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.section-cars .cars-filter-plate-input:focus-within .input-group-text {
    border-color: var(--main-blue-color);
    background-color: rgba(68, 119, 247, 0.06);
    color: var(--main-blue-color);
}

.section-cars .cars-filter-plate-input:hover .input-group-text {
    border-color: rgba(68, 119, 247, 0.35);
    background-color: #f0f4ff;
}

.section-cars .cars-filter-plate-input .cars-filter-input {
    border-radius: 0 12px 12px 0;
    text-transform: uppercase;
    border-left: none;
}

.section-cars .cars-filter-plate-input:focus-within .cars-filter-input {
    border-color: var(--main-blue-color);
}

.section-cars .cars-filter-plate-input:hover .cars-filter-input {
    border-color: rgba(68, 119, 247, 0.35);
}

.section-cars .cars-filter-plate-wrap {
    position: relative;
}

.section-cars .cars-filter-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    min-height: 42px;
    font-size: var(--font-size-body);
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid var(--light-border-color);
    background-color: #ffffff;
    color: var(--dark-gray-color);
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.section-cars .cars-filter-reset-btn:hover {
    border-color: var(--main-blue-color);
    background-color: rgba(68, 119, 247, 0.06);
    color: var(--main-blue-color);
}

.section-cars .cars-filter-reset-btn:focus {
    outline: none;
    border-color: var(--main-blue-color);
    box-shadow: 0 0 0 3px rgba(68, 119, 247, 0.15);
}

.section-cars .cars-filter-plate-ghost {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    /* Match input padding: 10px 14px; left = icon width (14+14+14≈42px) + input padding-left (14px) */
    padding: 10px 14px 10px 56px;
    font-size: var(--font-size-card-title);
    color: rgba(15, 23, 42, 0.45);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-cars .cars-filter-plate-ghost-prefix {
    margin-right: 6px;
    color: rgba(15, 23, 42, 0.45);
}

.section-cars .cars-filter-plate-anim {
    display: inline-block;
    padding-right: 2px;
    border-right: 2px solid rgba(15, 23, 42, 0.35);
    animation: dn-caret-blink 900ms steps(1) infinite;
}

.section-cars .cars-filter-plate-wrap.is-hidden .cars-filter-plate-ghost {
    opacity: 0;
}

@keyframes dn-caret-blink {
    0%,
    49% {
        border-right-color: rgba(15, 23, 42, 0.35);
    }
    50%,
    100% {
        border-right-color: transparent;
    }
}

/* SweetAlert Modals */
.swal-drivenation-popup {
    font-family: "Poppins", sans-serif;
    border-radius: 12px;
    border: 1px solid var(--light-border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.swal-drivenation-popup .swal2-title {
    font-size: var(--font-size-large);
    font-weight: 600;
    color: var(--dark-gray-color);
}

.swal-drivenation-popup .swal2-html-container {
    font-size: var(--font-size-body);
    color: var(--dark-gray-color);
}

.swal-drivenation-popup .swal2-actions {
    gap: 12px;
}

.swal-drivenation-confirm,
.swal-drivenation-cancel {
    padding: 10px 20px;
    font-size: var(--font-size-body);
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.swal-drivenation-confirm {
    background-color: var(--main-blue-color);
    color: #ffffff;
}

.swal-drivenation-confirm:hover {
    background-color: rgb(56, 99, 217);
}

.swal-drivenation-cancel {
    background-color: var(--light-fill-color);
    color: var(--dark-gray-color);
    border: 1px solid var(--light-border-color);
}

.swal-drivenation-cancel:hover {
    background-color: var(--light-border-color);
}