/* ============================================================
   FULL STYLESHEET — WITH ENHANCED DARK NIGHT MODE
   ============================================================ */

/* --- 1. VARIABLES & GLOBAL --- */
:root {
    --brand-blue: #285179;
    --brand-green: #198754;
    --brand-orange: #fd7e14;
    --success-green: #58a67d;
    --royal-blue: #4169E1;

    /* Light theme colors */
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --bg-light: #f8fafc;
    --text-primary: #1f2937;
    --text-secondary: #6c757d;
    --text-muted: #94a3b8;
    --border-color: #eef2f6;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
    --dropdown-bg: #ffffff;
    --dropdown-item-hover: #f1f5f9;
    --input-bg: #f8fafc;
    --input-border: #e2e8f0;
    --category-item-hover: rgba(65, 105, 225, 0.05);
    --notif-unread-bg: #f0f7ff;
    --notif-hover-bg: #f8fafc;
    --sidebar-bg: #ffffff;
    --footer-bg: #ffffff;
    --footer-bottom-bg: #f8f9fa;
    --social-link-bg: #ffffff;
    --social-link-hover-bg: #285179;
}

/* ============================================================
   DARK NIGHT MODE — FULL OVERRIDE
   ============================================================ */
body.dark {
    /* Brand adjustments for dark */
    --brand-blue: #5b9bd5;
    --royal-blue: #6c8eef;

    /* Core surfaces — deep navy-black layered system */
    --bg-body: #29303a;
    --bg-card: #161b22;
    --bg-light: #1c2230;

    /* Text */
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #787879;

    /* Borders */
    --border-color: #21262d;

    /* Shadows — stronger glow-based */
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
    --card-hover-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(91, 155, 213, 0.15);

    /* Dropdowns & inputs */
    --dropdown-bg: #1c2230;
    --dropdown-item-hover: #21262d;
    --input-bg: #1c2230;
    --input-border: #30363d;

    /* Interactive hover states */
    --category-item-hover: rgba(108, 142, 239, 0.12);
    --notif-unread-bg: #111d2e;
    --notif-hover-bg: #1c2230;

    /* Component-specific */
    --sidebar-bg: #161b22;
    --footer-bg: #161b22;
    --footer-bottom-bg: #0d1117;
    --social-link-bg: #1c2230;
    --social-link-hover-bg: #5b9bd5;
}

/* Dark mode — global surface & scrollbar polish */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--brand-blue) var(--bg-light);
}

body.dark html {
    scrollbar-color: var(--brand-blue) var(--bg-light);
}

body.dark {
    background-color: var(--bg-body);
    color: var(--text-primary);
}

body.dark ::-webkit-scrollbar-track {
    background: #0d1117;
}

body.dark ::-webkit-scrollbar-thumb {
    background: #30363d;
}

body.dark ::-webkit-scrollbar-thumb:hover {
    background: var(--brand-blue);
}

/* Dark — Navbar */
body.dark .navbar-custom {
    background-color: #161b22;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark .trendyol-search {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-primary);
}

body.dark .trendyol-search input,
body.dark .trendyol-search input::placeholder {
    color: var(--text-secondary);
    background: transparent;
}

body.dark .trendyol-search:focus-within {
    background: var(--bg-card);
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.15);
}

body.dark .navbar .navbar-nav .nav-link {
    color: var(--text-primary) !important;
}

body.dark .navbar .navbar-nav .nav-link:hover {
    background: var(--dropdown-item-hover);
    color: var(--brand-blue) !important;
}

body.dark .navbar .dropdown-menu {
    background-color: var(--dropdown-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

body.dark .navbar .dropdown-item {
    color: var(--text-secondary);
}

body.dark .navbar .dropdown-item:hover {
    background: var(--dropdown-item-hover);
    color: var(--brand-blue);
}

body.dark .navbar .dropdown-item.text-danger:hover {
    background: rgba(220, 38, 38, 0.12);
    color: #f87171;
}

/* Dark — Category Nav */
body.dark .category-nav-wrapper {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

body.dark .nav-link-item {
    color: var(--text-secondary);
}

body.dark .nav-link-item.active {
    background-color: var(--brand-blue) !important;
    color: #ffffff !important;
}

body.dark .nav-link-item:hover:not(.active) {
    background-color: var(--category-item-hover);
    color: var(--brand-blue);
}

/* Dark — Cards */
body.dark .car-card,
body.dark .ad-card-modern,
body.dark .home-market-card,
body.dark .news-card,
body.dark .news-card-modern {
    background: var(--bg-card);
    border-color: var(--border-color) !important;
    box-shadow: var(--card-shadow);
}

body.dark .car-card:hover,
body.dark .ad-card-modern:hover,
body.dark .home-market-card:hover,
body.dark .news-card:hover,
body.dark .news-card-modern:hover {
    box-shadow: var(--card-hover-shadow);
    border-color: var(--brand-blue) !important;
}

body.dark .car-card.vip {
    border-color: #b8860b !important;
}

body.dark .car-title {
    color: var(--text-primary);
}

body.dark .car-details span {
    background: var(--bg-light);
    color: var(--text-secondary);
}

body.dark .car-price-location {
    border-top-color: var(--border-color);
}

body.dark .price {
    color: #60a5fa;
}

body.dark .location {
    color: var(--text-secondary);
}

body.dark .car-image {
    background: var(--bg-light);
}

/* Dark — Filter Sidebar */
body.dark .filter-sidebar {
    background: var(--bg-card);
    border-color: var(--border-color) !important;
}

body.dark .filter-sidebar .form-control,
body.dark .filter-sidebar .form-select {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-primary);
}

body.dark .filter-sidebar .form-control:focus,
body.dark .filter-sidebar .form-select:focus {
    background: var(--bg-card);
    border-color: var(--brand-blue) !important;
    box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.15);
    color: var(--text-primary);
}

body.dark .category-list-item {
    color: var(--text-secondary);
}

body.dark .category-list-item:hover {
    background-color: var(--category-item-hover);
    color: var(--royal-blue);
}

body.dark .category-list-item.active {
    background-color: var(--royal-blue);
    color: white;
}

body.dark .price-input-group .form-control {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-primary);
}

body.dark .price-input-group .form-control:focus {
    background-color: var(--bg-card);
    border-color: var(--royal-blue);
}

/* Dark — Sort Select */
body.dark .sort-select-wrapper .form-select {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-primary);
}

/* Dark — Notifications */
body.dark .notif-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

body.dark .notif-item {
    border-bottom-color: var(--border-color);
}

body.dark .notif-item:hover {
    background-color: var(--notif-hover-bg);
}

body.dark .notif-item.unread {
    background-color: var(--notif-unread-bg);
}

body.dark .notif-item.unread::before {
    background-color: var(--royal-blue);
}

body.dark .notif-icon-box {
    background: var(--bg-light);
    color: var(--royal-blue);
}

body.dark .notif-msg {
    color: var(--text-secondary);
}

/* Dark — Cart Badge */
body.dark .cart-badge-pro {
    border-color: var(--bg-card);
}

/* Dark — Sidebar Components */
body.dark .sidebar-section-title {
    color: var(--text-secondary);
    border-bottom-color: var(--border-color);
}

body.dark .seller-list-item {
    border-color: var(--border-color);
    background: var(--bg-card);
}

body.dark .seller-list-item:hover {
    background: var(--notif-hover-bg);
    border-color: var(--royal-blue);
}

body.dark .recommend-item {
    border-bottom-color: var(--border-color);
}

body.dark .recommend-item:hover {
    background: var(--bg-light);
}

body.dark .recommend-price {
    color: #60a5fa;
}

body.dark .recommend-title {
    color: var(--text-primary);
}

/* Dark — Footer */
body.dark .footer {
    background-color: var(--footer-bg);
    border-top: 1px solid var(--border-color);
}

body.dark .footer-bottom {
    background-color: var(--footer-bottom-bg);
    border-top-color: var(--border-color);
}

body.dark .footer-links li a {
    color: var(--text-secondary);
}

body.dark .footer-links li a:hover {
    color: var(--brand-blue) !important;
}

body.dark .social-link {
    background: var(--social-link-bg);
    color: var(--brand-blue);
    border: 1px solid var(--border-color);
}

body.dark .social-link:hover {
    background: var(--social-link-hover-bg);
    color: white;
    border-color: var(--brand-blue);
}

body.dark .footer .bi-telephone-fill,
body.dark .footer .bi-envelope-fill,
body.dark .footer .bi-geo-alt-fill {
    color: var(--brand-blue) !important;
}

/* Dark — Back to Top */
body.dark #backToTop {
    background: var(--bg-card);
    color: var(--brand-blue);
    border-color: var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Dark — Mobile Bottom Nav */
body.dark .mobile-header-row {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

body.dark .mobile-search-container {
    background: var(--input-bg);
    border-color: var(--input-border);
}

body.dark .mobile-search-container input {
    color: var(--text-primary);
}

body.dark .mobile-search-container input::placeholder {
    color: var(--text-muted);
}

body.dark .mobile-bottom-nav {
    background: rgba(22, 27, 34, 0.96);
    border-color: var(--border-color);
}

body.dark .m-nav-item {
    color: var(--text-muted);
}

body.dark .m-nav-item.active {
    color: var(--brand-blue);
}

body.dark .mobile-logo-short {
    color: var(--brand-blue);
}

/* Dark — Brands Page */
body.dark .brand-ui-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

body.dark .brand-ui-logo {
    background: var(--bg-card);
}

body.dark .brand-ui-logo img {
    filter: brightness(0.85) contrast(1.1);
    opacity: 0.85;
}

body.dark .brand-ui-card:hover .brand-ui-logo img {
    filter: brightness(1) contrast(1);
    opacity: 1;
}

body.dark .brand-ui-name {
    background: var(--bg-light);
    border-top-color: var(--border-color);
}

body.dark .brand-ui-name span {
    color: var(--text-primary);
}

body.dark .brand-ui-card:hover {
    border-color: var(--royal-blue);
    box-shadow: 0 10px 30px rgba(108, 142, 239, 0.15);
}

body.dark .brand-ui-card:hover .brand-ui-name {
    background-color: var(--bg-card);
}

/* Dark — Home Market Cards */
body.dark .home-market-card {
    background-color: var(--bg-card);
    border-color: var(--border-color) !important;
}

body.dark .home-market-logo {
    background: var(--bg-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark .glass-pill-sm {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* Dark — Marquee / Brands */
body.dark .brands-marquee-wrapper {
    background: var(--bg-card);
    border-color: var(--border-color);
}

body.dark .brand-box img {
    filter: grayscale(100%) brightness(1.5);
    opacity: 0.4;
}

body.dark .brand-box:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 0.9;
}

/* Dark — Cars Show Page */
body.dark .car-gallery-main {
    background: #0d1117;
}

body.dark .thumb-strip {
    background: var(--bg-card);
    border-top-color: var(--border-color);
}

body.dark .thumb {
    border-color: transparent;
    opacity: 0.6;
}

body.dark .thumb:hover,
body.dark .thumb.active {
    border-color: var(--brand-blue);
    opacity: 1;
}

body.dark .spec-item {
    border-bottom-color: var(--border-color);
}

body.dark .spec-label {
    color: var(--text-muted);
}

body.dark .spec-value {
    color: var(--text-primary);
}

body.dark .price-big {
    color: #60a5fa;
}

body.dark .car-price-flag {
    background: #1a56db;
}

/* Dark — Markets Index */
body.dark .rank-badge {
    background: var(--brand-blue);
}

body.dark .card-cover {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-card) 100%);
}

body.dark .logo-overlap {
    background: var(--bg-card);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark .premium-border {
    border-color: var(--brand-blue) !important;
}

/* Dark — Markets Show Page */
body.dark .shop-profile-card {
    background: rgba(22, 27, 34, 0.97);
    border: 1px solid var(--border-color);
}

body.dark .shop-name {
    color: var(--text-primary);
}

body.dark .shop-meta {
    color: var(--text-secondary);
}

body.dark .filter-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

body.dark .filter-label {
    color: var(--text-muted);
}

body.dark .avatar-inner {
    background: var(--bg-card);
}

body.dark .avatar-placeholder {
    background: var(--royal-blue);
}

body.dark .verified-badge {
    background: var(--bg-card);
    color: var(--royal-blue);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

body.dark .nav-pills .nav-link {
    color: var(--text-secondary);
}

body.dark .nav-pills .nav-link.active {
    background-color: var(--royal-blue);
    color: white;
}

/* Dark — Markets Register */
body.dark .logo-preview-box {
    border-color: var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

body.dark .form-control,
body.dark .form-select {
    background-color: var(--input-bg) !important;
    border-color: var(--input-border) !important;
    color: var(--text-primary) !important;
}

body.dark .form-control:focus,
body.dark .form-select:focus {
    background-color: var(--bg-card) !important;
    border-color: var(--brand-blue) !important;
    box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.15) !important;
}

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

body.dark .border-dashed {
    border-color: var(--border-color) !important;
}

/* Dark — Markets Pending Page */
body.dark .pending-page-wrapper {
    background: radial-gradient(circle at center, #1a1f2e 0%, #0d1117 70%);
}

body.dark .status-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

body.dark .icon-circle {
    background: var(--bg-card);
}

/* Dark — News Pages */
body.dark .news-card-modern {
    background: var(--bg-card);
    border-color: var(--border-color);
}

body.dark .news-title-text {
    color: var(--text-primary);
}

body.dark .news-excerpt {
    color: var(--text-secondary);
}

body.dark .news-date-badge {
    background: var(--bg-card);
    color: var(--text-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark .summary-box {
    background: var(--bg-light);
    border-left-color: var(--brand-blue);
}

body.dark .rich-text-body {
    color: var(--text-secondary);
}

body.dark .share-icon-btn {
    border-color: var(--border-color);
    color: var(--text-muted);
    background: var(--bg-card);
}

body.dark .related-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

body.dark .sidebar-item:hover .sidebar-title {
    color: var(--brand-blue) !important;
}

body.dark .cta-gradient-card {
    background: linear-gradient(145deg, #0f2138 0%, #1a3a5a 100%);
}

/* Dark — Product Cards */
body.dark .product-card-compact {
    background: var(--bg-card);
    border-color: var(--border-color) !important;
}

body.dark .image-wrapper-sm {
    background: var(--bg-card);
}

body.dark .product-title-compact {
    color: var(--text-primary);
}

body.dark .current-price-sm {
    color: #60a5fa;
}

body.dark .old-price-sm {
    color: var(--text-muted);
}

/* Dark — User Ads */
body.dark .bazar-hero {
    background: linear-gradient(135deg, #1a3a5a 0%, #1e2f6e 100%);
}

body.dark .filter-pill-link {
    color: var(--text-secondary);
}

body.dark .filter-pill-link:hover {
    background: var(--bg-light);
    color: var(--brand-blue);
}

body.dark .filter-pill-link.active {
    background: var(--royal-blue);
    color: white !important;
}

/* Dark — User Ads Show Page */
body.dark .seller-avatar {
    background: linear-gradient(135deg, #1a3a5a, #2d4aa3);
}

/* Dark — Product Detail Page */
body.dark .product-media-card {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

body.dark .thumb-scroll-wrapper {
    background: var(--bg-card);
    border-top-color: var(--border-color);
}

body.dark .thumb-wrapper {
    border-color: var(--border-color);
}

body.dark .thumb-wrapper.active {
    border-color: var(--royal-blue);
}

body.dark .description-box {
    color: var(--text-secondary);
}

/* Dark — Orders */
body.dark .btn-outline-brand {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}

body.dark .btn-outline-brand:hover {
    background-color: var(--brand-blue);
    color: white;
}

/* Dark — Checkout Success */
body.dark .tracker-wrapper::before {
    background: var(--border-color);
}

body.dark .step-dot {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

body.dark .tracker-step.active .step-dot {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: white;
}

body.dark .step-label {
    color: var(--text-muted);
}

body.dark .tracker-step.active .step-label {
    color: var(--brand-blue);
}

/* Dark — Vacancies */
body.dark .bg-primary-subtle {
    background-color: rgba(91, 155, 213, 0.1) !important;
}

body.dark .bg-warning-subtle {
    background-color: rgba(253, 126, 20, 0.1) !important;
}

/* Dark — Loading Overlay */
body.dark .loading-overlay {
    background: rgba(0, 0, 0, 0.75);
}

/* Dark — Custom Popup */
body.dark .custom-popup {
    background: var(--success-green);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Dark — Bootstrap Overrides */
body.dark .card {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

body.dark .list-group-item {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

body.dark .table {
    color: var(--text-primary);
    border-color: var(--border-color);
}

body.dark .table th,
body.dark .table td {
    border-color: var(--border-color);
}

body.dark .table-striped>tbody>tr:nth-of-type(odd)>* {
    background-color: rgba(255, 255, 255, 0.02);
}

body.dark .badge.bg-light {
    background-color: var(--bg-light) !important;
    color: var(--text-secondary) !important;
}

body.dark .text-dark {
    color: var(--text-primary) !important;
}

body.dark .text-muted {
    color: var(--text-muted) !important;
}

body.dark .bg-white {
    background-color: var(--bg-card) !important;
}

body.dark .bg-light {
    background-color: var(--bg-light) !important;
}

body.dark .border {
    border-color: var(--border-color) !important;
}

body.dark .border-top,
body.dark .border-bottom,
body.dark .border-start,
body.dark .border-end {
    border-color: var(--border-color) !important;
}

body.dark hr {
    border-color: var(--border-color);
    opacity: 1;
}

body.dark .modal-content {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

body.dark .modal-header {
    border-bottom-color: var(--border-color);
}

body.dark .modal-footer {
    border-top-color: var(--border-color);
}

body.dark .btn-close {
    filter: invert(1) grayscale(100%) brightness(2);
}

body.dark .pagination .page-link {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--brand-blue);
}

body.dark .pagination .page-item.active .page-link {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    color: white;
}

body.dark .pagination .page-link:hover {
    background-color: var(--bg-light);
    border-color: var(--border-color);
    color: var(--brand-blue);
}

body.dark .dropdown-menu {
    background-color: var(--dropdown-bg);
    border-color: var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

body.dark .dropdown-item {
    color: var(--text-secondary);
}

body.dark .dropdown-item:hover {
    background-color: var(--dropdown-item-hover);
    color: var(--text-primary);
}

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

body.dark .alert-info {
    background-color: rgba(91, 155, 213, 0.12);
    border-color: rgba(91, 155, 213, 0.3);
    color: #93c5fd;
}

body.dark .alert-warning {
    background-color: rgba(253, 126, 20, 0.1);
    border-color: rgba(253, 126, 20, 0.3);
    color: #fbbf24;
}

body.dark .alert-success {
    background-color: rgba(88, 166, 125, 0.1);
    border-color: rgba(88, 166, 125, 0.3);
    color: #6ee7b7;
}

body.dark .alert-danger {
    background-color: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
    color: #f87171;
}

/* ============================================================
   ORIGINAL STYLES BELOW (preserved as-is)
   ============================================================ */

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.text-brand,
.text-blue {
    color: var(--brand-blue) !important;
}

.bg-brand {
    background-color: var(--brand-blue) !important;
    color: white;
}

/* --- 2. NAVBAR & NAVIGATION --- */
.py-1.border-bottom .dropdown-menu {
    z-index: 1060 !important;
}

.navbar-custom {
    background-color: var(--brand-blue);
    box-shadow: 0 4px 10px rgba(40, 81, 121, 0.2);
}

.trendyol-search {
    background: var(--input-bg);
    border-radius: 8px;
    border: 1px solid var(--input-border);
    transition: 0.3s;
}

.trendyol-search:focus-within {
    background: var(--bg-card);
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(40, 81, 121, 0.1);
}

.navbar .d-none.d-lg-flex {
    min-height: 60px;
}

.navbar .flex-grow-1 {
    min-width: 0;
    max-width: 520px;
    flex-shrink: 1;
}

.navbar .navbar-nav.flex-row {
    flex-shrink: 0;
    flex-wrap: nowrap;
    align-items: center;
}

.navbar .navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--text-primary) !important;
    padding: 0 !important;
    transition: background 0.2s, color 0.2s;
    position: relative;
}

.navbar .navbar-nav .nav-link:hover {
    background: var(--dropdown-item-hover);
    color: var(--brand-blue) !important;
}

.navbar .navbar-nav .nav-link i {
    font-size: 1.3rem;
    line-height: 1;
    display: block;
}

.navbar .navbar-nav .nav-link.dropdown-toggle::after {
    display: none;
}

.navbar .dropdown-menu {
    background-color: var(--dropdown-bg);
    border: none;
    box-shadow: var(--card-shadow);
    border-radius: 14px;
    padding: 8px;
    min-width: 220px;
}

.navbar .dropdown-item {
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 9px 14px;
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
}

.navbar .dropdown-item:hover {
    background: var(--dropdown-item-hover);
    color: var(--brand-blue);
}

.navbar .dropdown-item.text-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.category-nav-wrapper {
    display: flex;
    justify-content: center;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.category-nav-wrapper::-webkit-scrollbar {
    display: none;
}

.nav-link-item {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 10px;
    margin: 5px 2px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link-item.active {
    background-color: var(--brand-blue) !important;
    color: #ffffff !important;
}

.nav-link-item:hover:not(.active) {
    background-color: var(--category-item-hover);
    color: var(--brand-blue);
}

/* --- 4. HOME & GRIDS --- */
.custom-grid-5 {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 576px) {
    .custom-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .custom-grid-5 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .custom-grid-5 {
        grid-template-columns: repeat(5, 1fr);
    }
}

.section-title {
    font-weight: 800;
    color: var(--brand-blue);
    font-size: 1.25rem;
}

.view-all-link {
    color: rgb(44, 62, 116);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

body.dark .view-all-link {
    color: #f8f9fa;
}

/* --- 9. SHOP CATALOG & SIDEBAR --- */
.filter-sidebar {
    position: sticky;
    top: 90px;
    background: var(--bg-card);
    border: 1px solid var(--border-color) !important;
    border-radius: 20px;
}

.filter-section-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.category-list-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.category-list-item:hover {
    background-color: var(--category-item-hover);
    color: var(--royal-blue);
}

.category-list-item.active {
    background-color: var(--royal-blue);
    color: white;
}

.price-input-group .form-control {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 12px;
}

.price-input-group .form-control:focus {
    background-color: var(--bg-card);
    border-color: var(--royal-blue);
    box-shadow: none;
}

/* --- 10. PRODUCTS GRID --- */
.products-grid-5-col {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .products-grid-5-col {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .products-grid-5-col {
        grid-template-columns: repeat(5, 1fr);
    }
}

.sort-select-wrapper .form-select {
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid var(--input-border);
    background-color: var(--input-bg);
    padding: 8px 35px 8px 15px;
    border-radius: 50px;
    cursor: pointer;
    color: var(--text-primary);
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- 12. NOTIFICATIONS --- */
.notif-container {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
}

.notif-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: 0.2s ease;
    position: relative;
}

.notif-item:hover {
    background-color: var(--notif-hover-bg);
}

.notif-item.unread {
    background-color: var(--notif-unread-bg);
}

.notif-item.unread::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--royal-blue);
    border-radius: 50%;
}

.notif-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    background: var(--bg-light);
    color: var(--royal-blue);
}

.notif-msg {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 500;
}

/* --- 18. CART ICON & BADGE --- */
.nav-cart-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: transform 0.2s ease;
}

.nav-cart-wrapper:hover {
    transform: scale(1.1);
}

.cart-icon-base {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.cart-badge-pro {
    position: absolute;
    top: 2px;
    right: -2px;
    background-color: var(--royal-blue);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

@media (max-width: 991px) {
    .cart-icon-base {
        font-size: 1.4rem;
    }

    .m-nav-item .nav-cart-wrapper {
        padding: 0;
    }
}

/* --- 20. SIDEBAR COMPONENTS --- */
.sidebar-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.seller-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none !important;
    margin-bottom: 10px;
    transition: 0.2s;
}

.seller-list-item:hover {
    background: var(--notif-hover-bg);
    border-color: var(--royal-blue);
}

.recommend-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    text-decoration: none !important;
}

.recommend-img {
    width: 70px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.recommend-price {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 0.8rem;
    line-height: 1;
}

.recommend-title {
    font-size: 0.75rem;
    color: var(--royal-blue);
    font-weight: 600;
    display: block;
}

/* --- SPECIFIC TAGS --- */
.price-tag-tm {
    position: absolute;
    top: 20px;
    left: 0;
    background: #f36f21;
    color: white;
    padding: 10px 25px;
    font-size: 1.8rem;
    font-weight: 900;
    z-index: 10;
    clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%);
}

.vip-badge-tm {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff3b30;
    color: white;
    padding: 20px 40px;
    transform: rotate(45deg) translate(25%, -60%);
    font-weight: 900;
    z-index: 5;
}

/* Car Card Styles */
.car-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    height: 100%;
}

.car-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
}

.car-card.vip {
    border: 2px solid #ffc107;
}

.car-card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.car-image {
    position: relative;
    height: 185px;
    background: var(--bg-light);
    overflow: hidden;
    flex-shrink: 0;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.vip-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffc107;
    color: #000;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.image-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.68rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.car-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}

.car-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.car-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.car-details span {
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.car-price-location {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid var(--border-color);
}

.price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a56db;
}

.location {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 3px;
}

.car-part-list-item {
    transition: background-color 0.2s;
    border-radius: 20px;

}

.car-part-list-item:hover {
    background-color: var(--notif-hover-bg);
    border-radius: 20px;
    padding: 3px;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    margin-top: auto;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--social-link-bg);
    border-radius: 50%;
    color: var(--brand-blue);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--social-link-hover-bg);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(40, 81, 121, 0.3);
}

.footer-links li a {
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-block;
    color: var(--text-secondary);
}

.footer-links li a:hover {
    color: var(--brand-blue) !important;
    transform: translateX(5px);
}

.footer-links li a i {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.footer-links li a:hover i {
    opacity: 1;
}

.footer .bi-telephone-fill,
.footer .bi-envelope-fill,
.footer .bi-geo-alt-fill {
    color: var(--brand-blue) !important;
}

.footer-bottom {
    background-color: var(--footer-bottom-bg);
    border-top: 1px solid var(--border-color);
}

.fw-500 {
    font-weight: 500;
}

@media (max-width: 768px) {

    .footer .col-lg-2,
    .footer .col-lg-3,
    .footer .col-lg-4 {
        margin-bottom: 2rem;
    }

    .footer-bottom .row>div {
        text-align: center !important;
    }
}

/* Markets VIP section */
.home-market-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color) !important;
    background-color: var(--bg-card);
}

.home-market-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--brand-blue) !important;
}

.home-market-logo {
    width: 65px;
    height: 65px;
    margin: -32px auto 0;
    background: var(--bg-card);
    border-radius: 50%;
    padding: 3px;
    position: relative;
    z-index: 2;
}

.ls-1 {
    letter-spacing: 0.5px;
}

@media (max-width: 576px) {
    .home-market-logo {
        width: 50px;
        height: 50px;
        margin-top: -25px;
    }

    .home-market-card h6 {
        font-size: 0.8rem;
    }
}

/* Brands marquee */
.brands-marquee-wrapper {
    background: var(--bg-card);
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: 60px;
    animation: scroll-marquee 40s linear infinite;
    align-items: center;
}

.brand-box {
    width: 120px;
    height: 60px;
    flex-shrink: 0;
}

.brand-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
}

.brand-box:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Users ads card */
.text-royal {
    color: var(--royal-blue) !important;
}

.bg-royal {
    background-color: var(--royal-blue) !important;
}

.ad-card-modern {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color) !important;
    background-color: var(--bg-card);
}

.ad-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(65, 105, 225, 0.12);
}

.ad-card-modern:hover .transition-transform {
    transform: scale(1.08);
}

.glass-pill-sm {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
}

.avatar-initials-sm {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.btn-royal {
    background-color: var(--royal-blue);
    color: white;
    border: none;
    transition: 0.3s;
}

.btn-royal:hover {
    background-color: var(--brand-blue);
    color: white;
}

.hover-lift {
    transition: transform 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
}

/* Layout */
@media (max-width: 991px) {
    body {
        padding-bottom: 90px;
    }

    .mobile-header-row {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 15px;
        background: #fff;
    }

    .mobile-logo-short {
        font-size: 1.4rem;
        font-weight: 800;
        color: var(--brand-blue);
        text-decoration: none;
    }

    .mobile-search-container {
        flex-grow: 1;
        display: flex;
        align-items: center;
        background: #f3f3f3;
        border-radius: 10px;
        padding: 5px 12px;
        border: 1px solid #eee;
        position: relative;
    }

    .mobile-search-container input {
        border: none;
        background: transparent;
        font-size: 0.85rem;
        width: 100%;
        outline: none;
    }

    .mobile-bottom-nav {
        position: fixed;
        bottom: 15px;
        left: 15px;
        right: 15px;
        height: 65px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 35px;
        z-index: 2000;
        border: 1px solid rgba(0, 0, 0, 0.08);
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .m-nav-item {
        text-decoration: none;
        color: #8e8e93;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        position: relative;
    }

    .m-nav-item i {
        font-size: 1.3rem;
    }

    .m-nav-item span {
        font-size: 0.6rem;
        font-weight: 500;
    }

    .m-nav-item.active {
        color: var(--brand-blue);
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-blue);
    border-radius: 5px;
}

#backToTop {
    position: fixed;
    bottom: 120px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #fff;
    color: var(--brand-blue);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

.custom-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    z-index: 9999;
    background: var(--success-green);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.custom-popup.show {
    transform: translateX(-50%) translateY(0);
}

/* Brands index page */
.brands-page {
    min-height: 80vh;
}

.brand-ui-card {
    background: #ffffff;
    border: 3px solid #ebebeb;
    border-radius: 4px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease-in-out;
}

.brand-ui-logo {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #ffffff;
}

.brand-ui-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-ui-name {
    border-top: 3px solid #eae6e6;
    padding: 12px 10px;
    text-align: center;
    background: #ebebeb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-ui-name span {
    color: #1a202c;
    font-weight: 600;
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-ui-card:hover {
    border-color: #4660ad;
    box-shadow: 0 10px 20px rgba(65, 105, 225, 0.1);
    transform: translateY(-4px);
}

.brand-ui-card:hover .brand-ui-logo img {
    transform: scale(1.1);
}

.brand-ui-card:hover .brand-ui-name {
    background-color: #ffffff;
}

.category-brand-group:last-child {
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    .brand-ui-logo {
        height: 120px;
        padding: 15px;
    }

    .brand-ui-name span {
        font-size: 0.8rem;
    }

    h4 {
        font-size: 1.2rem;
    }
}

/* Cars index page */
.filter-sidebar {
    position: sticky;
    top: 90px;
    background: #fff;
    border-radius: 20px;
}

.filter-section-title {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    display: block;
}

.filter-sidebar .form-control,
.filter-sidebar .form-select {
    font-size: 0.875rem;
    border-radius: 10px !important;
}

.car-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.badge-pill {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.badge-pill.credit {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-pill.exchange {
    background: #dcfce7;
    color: #15803d;
}

.sort-select-wrapper select {
    min-width: 200px;
    font-size: 0.875rem;
}

.market-card {
    border-radius: 14px;
    border: 1px solid #eef2f6;
    transition: box-shadow 0.2s;
}

.market-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

#carsListView .card {
    transition: transform 0.2s;
}

#carsListView .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

#carsListView .badge-pill {
    font-size: 0.7rem;
}

/* Cars show page */
.car-gallery-main {
    position: relative;
    height: 460px;
    background: #f5f5f5;
    overflow: hidden;
    cursor: zoom-in;
}

.car-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.car-gallery-main:hover img {
    transform: scale(1.02);
}

.car-price-flag {
    position: absolute;
    bottom: 20px;
    left: 0;
    background: #1a56db;
    color: #fff;
    padding: 8px 22px 8px 16px;
    font-size: 1.25rem;
    font-weight: 800;
    clip-path: polygon(0% 0%, 92% 0%, 100% 50%, 92% 100%, 0% 100%);
    z-index: 10;
}

.vip-flag {
    position: absolute;
    top: 16px;
    right: 0;
    background: linear-gradient(135deg, #f6c90e, #e6a817);
    color: #1a1a1a;
    padding: 5px 20px 5px 24px;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 0% 100%, 12% 50%);
    z-index: 10;
}

.gallery-count {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
    pointer-events: none;
}

.thumb-strip {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    background: #fff;
    border-top: 1px solid #eef2f6;
}

.thumb-strip::-webkit-scrollbar {
    height: 4px;
}

.thumb-strip::-webkit-scrollbar-thumb {
    background: #c0c9d8;
    border-radius: 4px;
}

.thumb {
    flex: 0 0 82px;
    height: 62px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    opacity: 0.7;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb:hover {
    border-color: #1a56db;
    opacity: 1;
    transform: translateY(-2px);
}

.thumb.active {
    border-color: #1a56db;
    opacity: 1;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #f0f4f8;
    font-size: 0.875rem;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
}

.spec-value {
    font-weight: 700;
    color: #1e293b;
}

.recommend-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    transition: background 0.15s;
}

.recommend-item:hover {
    background: #f8faff;
    border-radius: 8px;
    padding-left: 4px;
}

.recommend-img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.recommend-price {
    font-size: 0.82rem;
    font-weight: 800;
    color: #1a56db;
}

.recommend-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 145px;
}

.recommend-item:hover .recommend-title {
    color: #1a56db;
}

.price-big {
    font-size: 2rem;
    font-weight: 900;
    color: #1a56db;
    line-height: 1;
}

.btn-call {
    background: #1a56db;
    color: #fff;
}

.btn-call:hover {
    background: #1546b8;
    color: #fff;
}

.btn-wa {
    background: #25d366;
    color: #fff;
}

.btn-wa:hover {
    background: #1da851;
    color: #fff;
}

/* Markets index page */
.premium-border {
    border: 2px solid #285179 !important;
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #285179;
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    z-index: 5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-cover {
    height: 100px;
    background: linear-gradient(135deg, #f1f4f9 0%, #e2e8f0 100%);
}

.logo-overlap {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: white;
    padding: 4px;
    border-radius: 50%;
}

.btn-outline-primary {
    border-color: #285179;
    color: #285179;
}

.btn-outline-primary:hover {
    background-color: #285179;
    border-color: #285179;
    color: white;
}

/* Market register page */
.logo-preview-box {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-control:focus,
.form-select:focus {
    background-color: white !important;
    box-shadow: 0 0 0 3px rgba(40, 81, 121, 0.1);
    border: 1px solid #285179 !important;
}

.cursor-pointer {
    cursor: pointer;
}

.border-dashed {
    border-style: dashed !important;
    border-color: #dee2e6 !important;
}

/* Markets pending page */
.pending-page-wrapper {
    min-height: 80vh;
    background: radial-gradient(circle at center, #fffbeb 0%, #ffffff 70%);
}

.status-card {
    max-width: 500px;
    width: 100%;
    background: white;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-top-accent {
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.shadow-xl {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.animation-container {
    position: relative;
    height: 100px;
    width: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    z-index: 2;
    position: relative;
}

.icon-spin {
    animation: spin 3s ease-in-out infinite;
    display: inline-block;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.4);
    animation: pulse 2s infinite;
    z-index: 1;
}

.pulse-ring.delay {
    animation-delay: 0.6s;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.fw-black {
    font-weight: 900;
}

.ls-tight {
    letter-spacing: -0.5px;
}

.btn-refresh {
    transition: transform 0.2s;
}

.btn-refresh:active {
    transform: scale(0.98);
}

/* Markets show page */
.text-royal {
    color: var(--royal-blue);
}

.btn-outline-royal {
    border: 2px solid var(--royal-blue);
    color: var(--royal-blue);
    transition: 0.3s;
}

.btn-outline-royal:hover {
    background: var(--royal-blue);
    color: white;
}

.nav-pills .nav-link {
    color: #64748b;
    border: 1px solid transparent;
    padding: 10px 25px;
    transition: 0.3s;
}

.nav-pills .nav-link.active {
    background-color: var(--royal-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.2);
}

.shop-hero-wrapper {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.shop-hero-bg {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.7);
    transform: scale(1.1);
}

.shop-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.6));
}

.shop-profile-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(15px);
    border-radius: 28px;
    padding: 30px;
    width: 100%;
    transform: translateY(80px);
}

.shop-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: -60px auto 0;
}

@media (min-width: 768px) {
    .shop-avatar {
        margin: 0;
    }
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 26px;
    background: white;
    padding: 5px;
}

.avatar-inner img {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    background: var(--royal-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
}

.verified-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: white;
    color: #0d6efd;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.3rem;
}

.shop-name {
    font-weight: 800;
    color: #1a1a1a;
    font-size: 2.2rem;
    letter-spacing: -0.5px;
}

.shop-meta {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
}

.filter-card {
    background: white;
    border-radius: 24px;
    padding: 25px;
    border: 1px solid #f1f5f9;
}

.filter-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    font-weight: 800;
    margin-bottom: 15px;
    display: block;
}

.filter-text {
    transition: 0.2s;
    cursor: pointer;
}

.bg-light-subtle {
    background-color: #fcfdfe !important;
}

.shadow-xs {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.pulse-animation {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0px rgba(220, 53, 69, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0px rgba(220, 53, 69, 0);
    }
}

@media (max-width: 768px) {
    .shop-hero-wrapper {
        height: 400px;
    }

    .shop-profile-card {
        transform: translateY(40px);
        padding: 25px;
        border-radius: 24px;
    }

    .shop-name {
        font-size: 1.6rem;
    }
}

/* News index page */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f7f9;
}

.fw-extrabold {
    font-weight: 800;
}

.news-hero {
    margin-top: -3rem;
    padding-top: 6rem !important;
    margin-bottom: 4rem;
}

.news-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

.news-img-zoom {
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-img-zoom {
    transform: scale(1.08);
}

.editorial-title {
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.hover-primary:hover {
    color: #285179 !important;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-read-more {
    color: #285179;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.btn-read-more:hover {
    border-bottom-color: #285179;
    padding-right: 5px;
}

.min-h-200 {
    min-height: 200px;
}

.pagination .page-link {
    border: none;
    margin: 0 5px;
    border-radius: 8px;
    color: #285179;
    font-weight: 600;
}

.pagination .page-item.active .page-link {
    background-color: #285179;
    color: white;
}

@media (max-width: 768px) {
    .news-hero {
        padding-top: 4rem !important;
    }

    .min-h-200 {
        min-height: 250px;
    }
}

/* News show page */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

.bg-primary-soft {
    background-color: rgba(40, 81, 121, 0.08);
}

.extra-small {
    font-size: 0.72rem;
}

.italic {
    font-style: italic;
}

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

.video-card-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.video-container {
    background: #000;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.video-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background: rgba(40, 81, 121, 0.9);
    backdrop-filter: blur(5px);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.local-video-bg {
    background: radial-gradient(circle, #1e3f5f 0%, #000 100%);
}

.player-custom {
    max-height: 500px;
    outline: none;
}

.article-hero-container {
    height: 240px;
}

.article-hero-img {
    object-fit: cover;
}

.rich-text-body {
    font-size: 1.125rem;
    line-height: 1.85;
}

.summary-box {
    background: #f8f9fa;
    border-left: 5px solid #285179;
}

.share-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-icon-btn.tg:hover {
    background: #0088cc;
    color: white;
    border-color: #0088cc;
}

.share-icon-btn.wa:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

.related-card {
    transition: all 0.3s ease;
    position: relative;
    top: 0;
}

.related-card:hover {
    top: -8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.related-img-wrapper {
    height: 140px;
    overflow: hidden;
}

.related-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.related-card:hover img {
    transform: scale(1.1);
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    z-index: 10;
}

.sidebar-thumb {
    width: 65px;
    height: 65px;
    object-fit: cover;
}

.sidebar-item:hover .sidebar-title {
    color: #285179 !important;
}

.cta-gradient-card {
    background: linear-gradient(145deg, #1e3f5f 0%, #285179 100%);
}

.cta-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .article-hero-container {
        height: 200px;
    }

    .display-6 {
        font-size: 1.75rem;
    }
}

/* Orders index page */
.text-brand {
    color: #285179 !important;
}

.bg-brand {
    background-color: #285179 !important;
}

.btn-outline-brand {
    color: #285179;
    border-color: #285179;
    transition: all 0.3s ease;
}

.btn-outline-brand:hover {
    background-color: #285179;
    color: white;
}

.btn-brand {
    background-color: #285179;
    border-color: #285179;
    color: white;
    transition: all 0.3s ease;
}

.btn-brand:hover {
    background-color: #1a3652;
    border-color: #1a3652;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 81, 121, 0.3);
}

/* Orders show page */
.hover-text-brand:hover {
    color: #285179 !important;
    text-decoration: underline !important;
    transition: 0.2s;
}

/* News home page */
.news-card-modern {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    height: 100%;
}

.news-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.news-img-box {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.news-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.news-body {
    padding: 16px;
}

.news-title-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-excerpt {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 8px;
    height: 2.8em;
    overflow: hidden;
}

/* Product card */
.product-card-compact {
    border-radius: 12px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f2f2f2 !important;
}

.product-card-compact:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

.image-wrapper-sm {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #fff;
    padding: 5px;
}

.card-img-top-sm {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-title-compact {
    font-size: 0.8rem;
    height: 2.4em;
    line-height: 1.2;
    overflow: hidden;
}

.current-price-sm {
    font-size: 1.05rem;
}

.old-price-sm {
    font-size: 0.75rem;
    opacity: 0.6;
}

.compact-badge-stack {
    position: absolute;
    top: 6px;
    left: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 5;
}

.badge-discount-sm {
    background: #ff4d4d;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
}

.badge-vip-sm {
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: var(--royal-blue);
}

.btn-royal-pill-sm {
    background-color: #2d4aa3;
    color: white;
    border-radius: 50px;
    font-size: 0.75rem;
    border: none;
    transition: 0.3s;
}

.btn-royal-pill-sm:hover {
    background-color: var(--brand-blue);
    color: white;
}

.wishlist-overlay-sm {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
}

/* User ads index page */
.bazar-hero {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #4169E1 100%);
    border-radius: 0 0 30px 30px;
    color: white;
}

.filter-pill-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 4px;
    transition: 0.2s;
}

.filter-pill-link:hover {
    background: #f1f5f9;
    color: var(--brand-blue);
}

.filter-pill-link.active {
    background: var(--royal-blue);
    color: white !important;
}

.filter-pill-link .badge {
    background: rgba(0, 0, 0, 0.05);
    color: inherit;
}

/* User ads show page */
.seller-avatar {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #285179, #4169E1);
    color: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.thumb {
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
    border-radius: 8px;
    display: inline-block;
}

.thumb.active {
    opacity: 1;
    border: 2px solid #ffc107;
}

.thumb.video-thumb {
    position: relative;
}

.thumb.video-thumb video {
    pointer-events: none;
}

.cursor-zoom {
    cursor: zoom-in;
}

/* Product detail page */
.product-media-card {
    height: 420px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px 16px 0 0;
}

.stage-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.thumb-scroll-wrapper {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.thumb-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 2px solid #f1f5f9;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}

.thumb-wrapper img,
.thumb-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-wrapper.active {
    border-color: var(--royal-blue);
    transform: scale(1.05);
}

.thumb-wrapper.video-thumb {
    position: relative;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.description-box {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #64748b;
    max-height: 140px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Checkout success page */
.btn-brand-outline {
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue);
    transition: 0.3s;
}

.btn-brand-outline:hover {
    background: var(--brand-blue);
    color: white;
}

.tracker-wrapper::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.tracker-step {
    position: relative;
    z-index: 2;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-dot {
    width: 30px;
    height: 30px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.tracker-step.active .step-dot {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: white;
}

.step-label {
    font-size: 0.65rem;
    font-weight: bold;
    color: #999;
    text-transform: uppercase;
}

.tracker-step.active .step-label {
    color: var(--brand-blue);
}

.success-checkmark {
    width: 80px;
    height: 115px;
    margin: 0 auto;
}

.success-checkmark .check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #4CAF50;
}

.success-checkmark .check-icon::before,
.success-checkmark .check-icon::after {
    content: '';
    height: 100px;
    position: absolute;
    background: #f8f9fa;
    transform: rotate(-45deg);
}

.success-checkmark .check-icon .icon-line {
    height: 5px;
    background-color: #4CAF50;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.success-checkmark .check-icon .icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
}

.success-checkmark .check-icon .icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
}

.success-checkmark .check-icon .icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(76, 175, 80, 0.5);
    position: absolute;
    box-sizing: content-box;
}

/* Vacancies index page */
.bg-primary-subtle {
    background-color: #eef4f9;
}

.object-fit-cover {
    object-fit: cover;
}

/* Vacancies show page */
.btn-white {
    background: white;
    color: #333;
}

.call-btn {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0px rgba(40, 81, 121, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(40, 81, 121, 0);
    }

    100% {
        box-shadow: 0 0 0 0px rgba(40, 81, 121, 0);
    }
}

.rounded-4 {
    border-radius: 1rem !important;
}

.bg-warning-subtle {
    background-color: #fff9e6 !important;
}

@media (max-width: 991px) {
    .sticky-top:not(.navbar) {
        position: static !important;
    }
}


/* ============================================================
   SUPPORT CHAT PAGE
   ============================================================ */

.chat-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2001;
}

.chat-trigger-btn {
    background: linear-gradient(135deg, #3b71a7 0%, #6ca1e3 100%);
    color: white;
    border: none;
    padding: 10px 10px;
    border-radius: 100px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.chat-trigger-btn:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

.chat-window {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid #eee;
}

.chat-header {
    background-color: var(--brand-blue);
    padding: 15px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    background-color: #f8fafc;
    padding: 20px;
}

.chat-footer {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 768px) {
    .chat-widget-container {
        bottom: 95px;
        right: 15px;
    }

    .chat-window {
        width: calc(100vw - 30px);
        height: 450px;
    }

    #backToTop {
        bottom: 160px;
        right: 15px;
    }
}

/* ============================================================
   PROFILE INDEX PAGE
   ============================================================ */

.profile-header-bg {
    height: 80px;
    background: linear-gradient(45deg, var(--brand-blue), var(--royal-blue));
    border-radius: 16px 16px 0 0;
}

.profile-avatar-circle {
    width: 80px;
    height: 80px;
    margin-top: -40px;
    background: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-blue);
    border: 4px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-m-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: 0.2s;
    font-size: 0.9rem;
}

.profile-m-link i {
    margin-right: 12px;
    font-size: 1.2rem;
    opacity: 0.7;
}

.profile-m-link:hover {
    background-color: #f1f5f9;
    color: var(--brand-blue);
}

.profile-m-link.active {
    background-color: var(--royal-blue);
    color: white !important;
}

.profile-m-link.active i {
    opacity: 1;
}

.profile-m-link.text-danger:hover {
    background-color: #fef2f2;
}

.profile-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 10px 0;
}

.form-label-profile {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.f-input-profile {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
}

.f-input-profile:focus {
    background-color: white;
    border-color: var(--royal-blue);
    box-shadow: 0 0 0 4px rgba(65, 105, 225, 0.1);
}

/* ============================================================
   DARK MODE — SUPPORT CHAT PAGE
   ============================================================ */

body.dark .chat-window {
    background: var(--bg-card);
    border-color: var(--border-color);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

body.dark .chat-body {
    background-color: var(--bg-body);
}

body.dark .chat-footer {
    background: var(--bg-card);
    border-top-color: var(--border-color);
}

body.dark .chat-header {
    background-color: var(--brand-blue);
}

/* ============================================================
   DARK MODE — PROFILE INDEX PAGE
   ============================================================ */

body.dark .profile-avatar-circle {
    background: var(--bg-card);
    border-color: var(--bg-card);
    color: var(--brand-blue);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

body.dark .profile-m-link {
    color: var(--text-secondary);
}

body.dark .profile-m-link:hover {
    background-color: var(--dropdown-item-hover);
    color: var(--brand-blue);
}

body.dark .profile-m-link.active {
    background-color: var(--royal-blue);
    color: white !important;
}

body.dark .profile-m-link.text-danger:hover {
    background-color: rgba(220, 38, 38, 0.12);
    color: #f87171;
}

body.dark .profile-divider {
    background: var(--border-color);
}

body.dark .form-label-profile {
    color: var(--text-muted);
}

body.dark .f-input-profile {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-primary);
}

body.dark .f-input-profile:focus {
    background-color: var(--bg-card);
    border-color: var(--royal-blue);
    box-shadow: 0 0 0 4px rgba(108, 142, 239, 0.15);
}



/* Vip Shops */
.home-market-card {
    transition: transform 0.3s ease;
}

.home-market-card:hover {
    transform: translateY(-5px);
}

.home-market-logo {
    width: 70px;
    height: 70px;
    margin-top: -35px;
    position: relative;
    z-index: 2;
}

.x-small {
    font-size: 0.7rem;
}
/* Vip Shops End */