/* ===== Global Styles & Reset ===== */
@import url('fonts-vazirmatn.css');

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

html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

html {
    overflow-x: hidden !important;
}

body {
    font-family: Vazirmatn, sans-serif;
    margin: 0;
    background: #f8f9fa;
    direction: rtl;
    min-width: 320px;
    overflow-x: hidden !important;
}

body.products-page {
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ===== Auth Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 560px;
    width: 92vw;
    padding: 16px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

html[data-theme="dark"] .modal-box {
    background: #0F172A;
    color: var(--dark-color);
    border: 1px solid var(--border-color);
}

.off2go-rate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 21000;
    padding: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.off2go-rate-overlay.show {
    display: flex;
}

.off2go-rate-card {
    width: min(520px, 100%);
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.28);
    overflow: hidden;
    transform: translateY(16px) scale(0.98);
    opacity: 0;
    transition: all 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.06);
}

.off2go-rate-overlay.show .off2go-rate-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.off2go-rate-header {
    padding: 18px 18px 14px;
    background: var(--primary-gradient);
    color: #fff;
}

.off2go-rate-title {
    font-weight: 900;
    font-size: 18px;
    margin: 0;
    line-height: 1.4;
}

.off2go-rate-subtitle {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.92;
    line-height: 1.8;
}

.off2go-rate-body {
    padding: 16px 18px 18px;
}

.off2go-rate-stars {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    padding: 10px 0 2px;
}

.off2go-rate-star {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,165,0,0.10);
    color: #FF8C00;
    font-size: 16px;
}

.off2go-rate-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.off2go-rate-btn {
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.off2go-rate-btn:active {
    transform: translateY(1px);
}

.off2go-rate-btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 10px 22px rgba(255, 140, 0, 0.25);
}

.off2go-rate-btn-primary:hover {
    box-shadow: 0 14px 28px rgba(255, 140, 0, 0.35);
}

.off2go-rate-btn-secondary {
    background: #f3f4f6;
    color: #1f2937;
}

.off2go-rate-btn-secondary:hover {
    opacity: 0.95;
}

.off2go-rate-close {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,0.22);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.off2go-rate-card-wrap {
    position: relative;
    width: min(520px, 100%);
}

html[data-theme="dark"] .off2go-rate-card {
    background: #0B1220;
    border-color: rgba(255,255,255,0.08);
}

html[data-theme="dark"] .off2go-rate-btn-secondary {
    background: rgba(255,255,255,0.10);
    color: #fff;
}

.modal-close {
    position: absolute;
    top: 10px;
    left: 10px;
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: #666;
}

.auth-modal .section-title {
    font-size: 20px;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin: 4px 0 10px;
    border-bottom: 1px solid #eee;
}

.auth-tab {
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    color: #555;
    font-weight: 600;
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-content .form-group {
    margin-bottom: 12px;
}

.auth-content label {
    display: block;
    margin-bottom: 6px;
    color: #333;
}

.auth-content input[type="text"],
.auth-content input[type="tel"],
.auth-content input[type="password"],
.auth-content input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

html[data-theme="dark"] .auth-content input[type="text"],
html[data-theme="dark"] .auth-content input[type="tel"],
html[data-theme="dark"] .auth-content input[type="password"],
html[data-theme="dark"] .auth-content input[type="email"] {
    background: #0B1220;
    color: var(--dark-color);
    border-color: var(--border-color);
}

html[data-theme="dark"] .auth-content label {
    color: var(--dark-color);
}

.password-input {
    position: relative;
}

.password-input .toggle-password {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    color: #666;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 4px;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== User Type Selection Styles ===== */
.user-type-selection {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    border-radius: 16px;
    padding: 20px;
    border: 2px solid rgba(255, 165, 0, 0.2);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.1);
}

.user-type-selection p {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 16px;
}

.user-type-options {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.user-type-option {
    flex: 1;
    border: 2px solid #e9ecef;
    border-radius: 14px;
    padding: 18px 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.user-type-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.user-type-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.25);
    border-color: var(--primary-color);
}

.user-type-option:hover::before {
    opacity: 0.05;
}

.user-type-option.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.08) 0%, rgba(255, 140, 0, 0.08) 100%);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.3);
    transform: translateY(-2px);
}

.user-type-option.selected::before {
    opacity: 0.1;
}

.option-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(255, 165, 0, 0.2);
}

.user-type-option:hover .option-icon {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
}

.user-type-option.selected .option-icon {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
}

.option-icon i {
    font-size: 28px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.user-type-option:hover .option-icon i,
.user-type-option.selected .option-icon i {
    color: white;
    transform: scale(1.1);
}

.user-type-option span {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.user-type-option.selected span {
    color: var(--primary-color);
}

@media (max-width: 480px) {
    .user-type-options {
        flex-direction: column;
        gap: 12px;
    }

    .user-type-option {
        flex-direction: row;
        padding: 14px 16px;
    }

    .option-icon {
        width: 50px;
        height: 50px;
    }

    .option-icon i {
        font-size: 24px;
    }
}

body.modal-open {
    overflow: hidden;
}

/* Only add scrollable behavior when modal content overflows on mobile */
@media (max-width: 768px) {
    .modal-overlay {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 0;
    }

    .modal-box {
        max-height: 90vh;
        overflow-y: auto;
        margin: auto;
    }
}

@media (max-width: 480px) {
    .modal-box {
        padding: 16px;
        width: 96vw;
    }
}

/* Locate control (bottom-right) */
.leaflet-control.locate-control {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.leaflet-control.locate-control .locate-btn {
    all: unset;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.leaflet-control.locate-control .locate-btn i {
    color: #1976D2;
    font-size: 18px;
}

.leaflet-control.locate-control .locate-btn:hover {
    background: rgba(25, 118, 210, 0.08);
}

/* User location pulsing marker */
.user-location-marker {
    position: relative;
    width: 36px;
    height: 50px;
    animation: bob 1.6s ease-in-out infinite;
}

.user-location-marker .pulse-ring {
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: rgba(25, 118, 210, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.6);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.6);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(25, 118, 210, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(25, 118, 210, 0);
    }
}

@keyframes bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* Advanced Map Controls */
.map-controls-advanced {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

/* Main Search Bar */
.search-bar-main {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 0;
}

.search-control-large {
    position: relative;
    flex: 1;
}

.search-control-large .search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    pointer-events: none;
}

.search-input-large {
    width: 100%;
    padding: 14px 50px;
    border: 2px solid #E0E0E0;
    border-radius: 999px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    background: #F8F9FA;
    transition: all 0.3s ease;
    outline: none;
}

.search-input-large:focus {
    border-color: #FFA500;
    box-shadow: 0 0 0 4px rgba(255, 165, 0, 0.12);
    background: #fff;
}

.search-input-large::placeholder {
    color: #999;
}

.clear-search {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: #E0E0E0;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.clear-search:hover {
    background: #FFA500;
    color: #fff;
}

.btn-advanced-filter {
    background: #fff;
    color: #FFA500;
    border: 2px solid #FFA500;
    border-radius: 999px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

.btn-advanced-filter:hover {
    background: rgba(255, 165, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-advanced-filter.active {
    background: #FFA500;
    color: #fff;
}

.btn-advanced-filter .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.btn-advanced-filter.active .toggle-icon {
    transform: rotate(180deg);
}

/* Filter count badge */
.btn-advanced-filter .filter-count-badge {
    position: absolute;
    top: -8px;
    inset-inline-start: 6px;
    background: #FF5722;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.btn-advanced-filter .filter-count-badge.hidden {
    display: none;
}

/* Advanced Filters Panel */
.advanced-filters-panel {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #F0F0F0;
    animation: slideDown 0.3s ease;
}

html[data-theme="dark"] .advanced-filters-panel {
    border-top-color: rgba(255, 255, 255, 0.08);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    column-gap: 16px;
    row-gap: 18px;
    margin-bottom: 16px;
}

.filters-row:last-child {
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    /* allow shrinking within grid */
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

html[data-theme="dark"] .filter-label {
    color: var(--dark-color);
}

.filter-label i {
    color: #FFA500;
    font-size: 14px;
}

/* Fancy custom select (category) */
.custom-select {
    position: relative;
}

.custom-select-trigger {
    width: 100%;
    background: #fff;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-select-trigger:focus-visible,
.custom-select.open .custom-select-trigger {
    border-color: #FFA500;
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1);
}

.custom-select-trigger .selected-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 165, 0, 0.12);
    color: #FFA500;
}

.custom-select-trigger .caret {
    color: #999;
    font-size: 12px;
}

.custom-select-menu {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 2px solid #F0F0F0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 6px;
    z-index: 1000;
    display: none;
    max-height: 280px;
    overflow: auto;
}

html[data-theme="dark"] .custom-select-menu {
    background: #0F172A;
    border-color: var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.custom-select.open .custom-select-menu {
    display: block;
}

.custom-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.custom-option i {
    color: #555;
    width: 18px;
    text-align: center;
}

html[data-theme="dark"] .custom-option i {
    color: var(--dark-color);
}

.custom-option:hover {
    background: #F8F9FA;
}

html[data-theme="dark"] .custom-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.custom-option.active {
    background: rgba(255, 165, 0, 0.12);
}

/* Searchable custom select styles */
.custom-select.searchable .custom-select-menu {
    padding: 0;
    max-height: none;
    overflow: visible;
}

.custom-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid #F0F0F0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

html[data-theme="dark"] .custom-search {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: #0F172A;
}

.custom-search .search-icon {
    color: #999;
    font-size: 14px;
    flex-shrink: 0;
}

html[data-theme="dark"] .custom-search .search-icon {
    color: rgba(229, 231, 235, 0.75);
}

.custom-search .search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    color: #333;
}

html[data-theme="dark"] .custom-search .search-input {
    color: var(--dark-color);
}

.custom-search .search-input::placeholder {
    color: #999;
}

.custom-options {
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
}

html[data-theme="dark"] .custom-options {
    background: #0F172A;
}

.custom-select.searchable .custom-option {
    margin: 0;
    border-radius: 8px;
}

/* Hide options that don't match search */
.custom-option[style*="display: none"] {
    display: none !important;
}

.filter-select {
    padding: 10px 14px;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: #F8F9FA;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.filter-select:focus {
    border-color: #FFA500;
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1);
    background: #fff;
}

.filter-select option {
    padding: 10px;
}

.range-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.range-sep {
    color: #666;
    font-weight: 600;
}

.filter-input {
    padding: 10px 12px;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: #F8F9FA;
    outline: none;
    transition: all 0.2s ease;
    width: 100%;
    min-width: 0;
    /* prevent overflow in grid */
}

.filter-input:focus {
    border-color: #FFA500;
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1);
    background: #fff;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-reset-filters {
    flex: 1;
    background: #fff;
    color: #666;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.2;
    min-height: 48px;
    max-height: 48px;
}

.btn-reset-filters:hover {
    border-color: #999;
    color: #333;
    background: #F8F9FA;
}

.btn-apply-filters {
    flex: 1;
    background: #FFA500;
    color: #fff;
    border: 2px solid #FFA500;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.2;
    min-height: 48px;
    max-height: 48px;
}

.btn-apply-filters:hover {
    background: #e69500;
    border-color: #e69500;
}

.btn-view-map-inline {
    flex: 1;
    background: #FFA500;
    color: #fff;
    border: 2px solid #FFA500;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-view-map-inline:hover {
    background: #FF8C00;
    border-color: #FF8C00;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}

@media (max-width: 992px) {
    .filters-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .search-bar-main {
        flex-direction: column;
    }

    .search-control-large,
    .btn-advanced-filter {
        width: 100%;
    }

    .filters-row {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column;
    }
}

:root {
    --primary-color: #FFA500;
    --primary-gradient: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    --secondary-color: #004E89;
    --accent-color: #F77F00;
    --success-color: #06D6A0;
    --danger-color: #EF476F;
    --dark-color: #1A1A2E;
    --light-color: #F8F9FA;
    --gray-color: #6C757D;
    --border-color: #DEE2E6;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html[data-theme="dark"] {
    --dark-color: #E5E7EB;
    --light-color: #0B1220;
    --gray-color: #9CA3AF;
    --border-color: rgba(255, 255, 255, 0.12);
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 6px 24px rgba(0, 0, 0, 0.55);
    --text-primary: #E5E7EB;
    --text-secondary: #9CA3AF;
    color-scheme: dark;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

html[data-theme="dark"] body {
    background-color: var(--light-color);
    color: var(--dark-color);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    background: #0B1220;
    color: var(--dark-color);
    border-color: var(--border-color);
}

html[data-theme="dark"] .search-input,
html[data-theme="dark"] .search-input-large,
html[data-theme="dark"] .filter-input,
html[data-theme="dark"] .filter-select,
html[data-theme="dark"] .custom-select-trigger,
html[data-theme="dark"] .custom-options,
html[data-theme="dark"] .custom-options-header,
html[data-theme="dark"] .map-controls-advanced,
html[data-theme="dark"] .leaflet-control.locate-control,
html[data-theme="dark"] .map-control-btn,
html[data-theme="dark"] .map-sidebar,
html[data-theme="dark"] .sidebar-section,
html[data-theme="dark"] .admin-container,
html[data-theme="dark"] .leads-container,
html[data-theme="dark"] .selected-filters-bar,
html[data-theme="dark"] .chip {
    background: #0F172A;
    color: var(--dark-color);
    border-color: var(--border-color);
}

/* Dark mode styles for active chips */
html[data-theme="dark"] .chip.active {
    background: rgba(255, 165, 0, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

html[data-theme="dark"] .btn-advanced-filter,
html[data-theme="dark"] .btn-reset-filters {
    background: #0F172A;
    border-color: var(--border-color);
}

html[data-theme="dark"] .section-title,
html[data-theme="dark"] .user-name,
html[data-theme="dark"] .user-type-selection p,
html[data-theme="dark"] .user-type-option span {
    color: var(--dark-color);
}

/* Dark mode styles for user type selection */
html[data-theme="dark"] .user-type-selection {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f172a 100%);
    border-color: rgba(255, 165, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .user-type-selection p {
    color: var(--dark-color);
}

html[data-theme="dark"] .user-type-option {
    background: #0f172a;
    border-color: var(--border-color);
    color: var(--dark-color);
}

html[data-theme="dark"] .user-type-option:hover {
    background: rgba(255, 165, 0, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.2);
}

html[data-theme="dark"] .user-type-option.selected {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.15) 0%, rgba(255, 140, 0, 0.15) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.3);
}

html[data-theme="dark"] .option-icon {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f172a 100%);
    border-color: rgba(255, 165, 0, 0.3);
}

html[data-theme="dark"] .user-type-option:hover .option-icon,
html[data-theme="dark"] .user-type-option.selected .option-icon {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
}

html[data-theme="dark"] .user-type-option span {
    color: var(--dark-color);
}

html[data-theme="dark"] .user-type-option.selected span {
    color: var(--primary-color);
}

html[data-theme="dark"] table,
html[data-theme="dark"] th,
html[data-theme="dark"] td {
    border-color: var(--border-color);
}

html[data-theme="dark"] .discount-table th {
    background: #0F172A;
    color: var(--primary-color);
}

html[data-theme="dark"] [style*="background:#fff"],
html[data-theme="dark"] [style*="background: #fff"],
html[data-theme="dark"] [style*="background-color:#fff"],
html[data-theme="dark"] [style*="background-color: #fff"],
html[data-theme="dark"] [style*="background:white"],
html[data-theme="dark"] [style*="background: white"],
html[data-theme="dark"] [style*="background-color:white"],
html[data-theme="dark"] [style*="background-color: white"] {
    background-color: #0F172A !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] [style*="background:#f8f9fa"],
html[data-theme="dark"] [style*="background: #f8f9fa"],
html[data-theme="dark"] [style*="background-color:#f8f9fa"],
html[data-theme="dark"] [style*="background-color: #f8f9fa"],
html[data-theme="dark"] [style*="background:#e9ecef"],
html[data-theme="dark"] [style*="background: #e9ecef"],
html[data-theme="dark"] [style*="background-color:#e9ecef"],
html[data-theme="dark"] [style*="background-color: #e9ecef"],
html[data-theme="dark"] [style*="background:#f0f0f0"],
html[data-theme="dark"] [style*="background: #f0f0f0"],
html[data-theme="dark"] [style*="background-color:#f0f0f0"],
html[data-theme="dark"] [style*="background-color: #f0f0f0"],
html[data-theme="dark"] [style*="background:#fafafa"],
html[data-theme="dark"] [style*="background: #fafafa"],
html[data-theme="dark"] [style*="background-color:#fafafa"],
html[data-theme="dark"] [style*="background-color: #fafafa"],
html[data-theme="dark"] [style*="background:#f8fafc"],
html[data-theme="dark"] [style*="background: #f8fafc"],
html[data-theme="dark"] [style*="background-color:#f8fafc"],
html[data-theme="dark"] [style*="background-color: #f8fafc"],
html[data-theme="dark"] [style*="background:#e2e8f0"],
html[data-theme="dark"] [style*="background: #e2e8f0"],
html[data-theme="dark"] [style*="background-color:#e2e8f0"],
html[data-theme="dark"] [style*="background-color: #e2e8f0"],
html[data-theme="dark"] [style*="background:#d1d5db"],
html[data-theme="dark"] [style*="background: #d1d5db"],
html[data-theme="dark"] [style*="background-color:#d1d5db"],
html[data-theme="dark"] [style*="background-color: #d1d5db"],
html[data-theme="dark"] [style*="background:#e7f3ff"],
html[data-theme="dark"] [style*="background: #e7f3ff"],
html[data-theme="dark"] [style*="background-color:#e7f3ff"],
html[data-theme="dark"] [style*="background-color: #e7f3ff"],
html[data-theme="dark"] [style*="background:#e3f2fd"],
html[data-theme="dark"] [style*="background: #e3f2fd"],
html[data-theme="dark"] [style*="background-color:#e3f2fd"],
html[data-theme="dark"] [style*="background-color: #e3f2fd"],
html[data-theme="dark"] [style*="background: rgba(255,255,255"],
html[data-theme="dark"] [style*="background:rgba(255,255,255"],
html[data-theme="dark"] [style*="background: rgba(255, 255, 255"],
html[data-theme="dark"] [style*="background:rgba(255, 255, 255"],
html[data-theme="dark"] [style*="linear-gradient(135deg, #f8f9fa"],
html[data-theme="dark"] [style*="linear-gradient(135deg,#f8f9fa"],
html[data-theme="dark"] [style*="linear-gradient(135deg, #e9ecef"],
html[data-theme="dark"] [style*="linear-gradient(135deg,#e9ecef"] {
    background-color: #0F172A !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] [style*="color:#000"],
html[data-theme="dark"] [style*="color: #000"],
html[data-theme="dark"] [style*="color:#111"],
html[data-theme="dark"] [style*="color: #111"],
html[data-theme="dark"] [style*="color:#222"],
html[data-theme="dark"] [style*="color: #222"],
html[data-theme="dark"] [style*="color:#333"],
html[data-theme="dark"] [style*="color: #333"] {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] [style*="color:#495057"],
html[data-theme="dark"] [style*="color: #495057"],
html[data-theme="dark"] [style*="color:#555"],
html[data-theme="dark"] [style*="color: #555"],
html[data-theme="dark"] [style*="color:#666"],
html[data-theme="dark"] [style*="color: #666"],
html[data-theme="dark"] [style*="color:#777"],
html[data-theme="dark"] [style*="color: #777"],
html[data-theme="dark"] [style*="color:#999"],
html[data-theme="dark"] [style*="color: #999"] {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] [style*="color:#1565c0"],
html[data-theme="dark"] [style*="color: #1565c0"],
html[data-theme="dark"] [style*="color:#1976d2"],
html[data-theme="dark"] [style*="color: #1976d2"],
html[data-theme="dark"] [style*="color:#2196f3"],
html[data-theme="dark"] [style*="color: #2196f3"] {
    color: #93C5FD !important;
}

html[data-theme="dark"] [style*="border: 1px solid #ced4da"],
html[data-theme="dark"] [style*="border:1px solid #ced4da"],
html[data-theme="dark"] [style*="border: 2px dashed #dee2e6"],
html[data-theme="dark"] [style*="border:2px dashed #dee2e6"],
html[data-theme="dark"] [style*="border: 2px solid #dee2e6"],
html[data-theme="dark"] [style*="border:2px solid #dee2e6"],
html[data-theme="dark"] [style*="border: 1px solid #e2e8f0"],
html[data-theme="dark"] [style*="border:1px solid #e2e8f0"],
html[data-theme="dark"] [style*="border: 1px solid #d1d5db"],
html[data-theme="dark"] [style*="border:1px solid #d1d5db"],
html[data-theme="dark"] [style*="border-bottom: 1px solid #f0f0f0"],
html[data-theme="dark"] [style*="border-bottom:1px solid #f0f0f0"],
html[data-theme="dark"] [style*="border-top: 2px solid #f0f0f0"],
html[data-theme="dark"] [style*="border-top:2px solid #f0f0f0"],
html[data-theme="dark"] [style*="border-bottom: 2px solid #f0f0f0"],
html[data-theme="dark"] [style*="border-bottom:2px solid #f0f0f0"] {
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] body.sellers-page {
    background: var(--light-color);
}

html[data-theme="dark"] body.sellers-page .loading-text {
    color: var(--gray-color);
}

html[data-theme="dark"] body.sellers-page .loading-spinner,
html[data-theme="dark"] body.sellers-page .loading-spinner::after {
    border-color: rgba(255, 255, 255, 0.14) !important;
    border-top-color: var(--primary-color) !important;
}

html[data-theme="dark"] body.sellers-page .skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.06) 75%) !important;
    background-size: 200% 100% !important;
}

html[data-theme="dark"] body.sellers-page .pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

html[data-theme="dark"] body.sellers-page .pagination-container {
    color: var(--dark-color);
}

html[data-theme="dark"] body.sellers-page .pagination-btn {
    background: #0F172A !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] body.sellers-page .pagination-btn:disabled {
    opacity: 0.55;
    color: var(--gray-color) !important;
}

/* Products page pagination dark mode styles */
html[data-theme="dark"] body.products-page .pagination-container {
    color: var(--dark-color);
}

html[data-theme="dark"] body.products-page .pagination-btn {
    background: #0F172A !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] body.products-page .pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

html[data-theme="dark"] body.products-page .pagination-btn:disabled {
    opacity: 0.55;
    color: var(--gray-color) !important;
}

/* Override inline styles for pagination active states in dark mode */
html[data-theme="dark"] body.products-page .pagination-btn[style*="#4a90e2"] {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] body.products-page .pagination-btn[style*="background:#4a90e2"],
html[data-theme="dark"] body.products-page .pagination-btn[style*="background: #4a90e2"],
html[data-theme="dark"] body.products-page .pagination-btn[style*="rgb(74, 144, 226)"] {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] body.sellers-page .pagination-btn[style*="#4a90e2"] {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] body.sellers-page .pagination-btn[style*="background:#4a90e2"],
html[data-theme="dark"] body.sellers-page .pagination-btn[style*="background: #4a90e2"],
html[data-theme="dark"] body.sellers-page .pagination-btn[style*="rgb(74, 144, 226)"] {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

/* Marketer Panel Dark Mode Styles */
html[data-theme="dark"] .admin-container {
    background: #0F172A !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .admin-header {
    background: #0B1220 !important;
    border-bottom-color: var(--border-color) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .admin-header h1 {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .admin-header h1 i {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .btn-header {
    background: #1a1a2e !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .btn-header:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .admin-tabs {
    background: #0B1220 !important;
    border-bottom-color: var(--border-color) !important;
}

html[data-theme="dark"] .admin-tab {
    background: transparent !important;
    color: var(--gray-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .admin-tab:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .admin-tab.active {
    background: rgba(255, 165, 0, 0.2) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .admin-tab i {
    color: inherit !important;
}

html[data-theme="dark"] .admin-content {
    background: #0F172A !important;
}

html[data-theme="dark"] .section-title {
    color: var(--dark-color) !important;
    border-bottom-color: var(--border-color) !important;
}

html[data-theme="dark"] .section-title i {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .tab-pane {
    background: transparent !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .loading {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .loading i {
    color: var(--primary-color) !important;
}

/* Notice Box Dark Mode */
html[data-theme="dark"] .notice-box {
    background: rgba(255, 107, 107, 0.1) !important;
    border-color: rgba(255, 107, 107, 0.3) !important;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.1) !important;
}

html[data-theme="dark"] .notice-box h3 {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .notice-box p {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .notice-box strong {
    color: var(--primary-color) !important;
}

/* Route Map Buttons */
html[data-theme="dark"] .route-map-btn {
    background: #1a1a2e !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .route-map-btn:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .route-map-btn--secondary {
    background: #0B1220 !important;
    color: var(--gray-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .route-map-btn--secondary:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Form Elements in Modals */
html[data-theme="dark"] #withdrawalRequestModal .form-group label {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] #withdrawalRequestModal input[type="text"] {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] #withdrawalRequestModal input[type="text"]::placeholder {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] #withdrawalRequestModal input[type="text"]:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1) !important;
}

html[data-theme="dark"] #withdrawalModalMax {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] #withdrawalModalMax i {
    color: var(--primary-color) !important;
}

/* Manual Lead Modal */
html[data-theme="dark"] #manualLeadModal label {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] #manualLeadModal input[type="text"],
html[data-theme="dark"] #manualLeadModal input[type="tel"],
html[data-theme="dark"] #manualLeadModal textarea {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] #manualLeadModal input[type="text"]::placeholder,
html[data-theme="dark"] #manualLeadModal input[type="tel"]::placeholder,
html[data-theme="dark"] #manualLeadModal textarea::placeholder {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] #manualLeadModal input[type="text"]:focus,
html[data-theme="dark"] #manualLeadModal input[type="tel"]:focus,
html[data-theme="dark"] #manualLeadModal textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1) !important;
}

html[data-theme="dark"] #manualLeadModal .btn-primary {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] #manualLeadModal .btn-secondary {
    background: #6c757d !important;
    color: #fff !important;
    border-color: #6c757d !important;
}

html[data-theme="dark"] #manualLeadModal .btn-secondary:hover {
    background: #5a6268 !important;
    border-color: #5a6268 !important;
}

/* Info Box in Manual Lead Modal */
html[data-theme="dark"] #manualLeadModal div[style*="background: #f8f9fa"] {
    background: #0B1220 !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] #manualLeadModal div[style*="color: #666"] p {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] #manualLeadModal div[style*="color: #666"] i {
    color: var(--primary-color) !important;
}

/* Photos Grid */
html[data-theme="dark"] .photos-grid {
    background: #0F172A !important;
}

/* Map Containers */
html[data-theme="dark"] #singleLocationMap,
html[data-theme="dark"] #allLocationsMap {
    background: #0B1220 !important;
    border-color: var(--border-color) !important;
}

/* Profile Card Dark Mode */
html[data-theme="dark"] .profile-card {
    background: linear-gradient(145deg, #0F172A, #0B1220) !important;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .profile-card div[style*="font-size:20px; font-weight:800; color:#0f172a;"] {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .profile-card div[style*="color:#6b7280; font-size:14px;"] {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .profile-card div[style*="background:rgba(16,185,129,0.12); color:#059669;"] {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10B981 !important;
}

/* Info Grid Cards */
html[data-theme="dark"] .info-grid div[style*="background:#fff;"] {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.2) !important;
}

html[data-theme="dark"] .info-grid label[style*="color:#4f46e5;"] {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .info-grid label[style*="color:#0f172a;"] {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .info-grid label[style*="color:#475569;"] {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .info-grid div[style*="color:#111827;"] {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .info-grid div[style*="color:#94a3b8;"] {
    color: var(--gray-color) !important;
}

/* Referral Link Input */
html[data-theme="dark"] .info-grid input[style*="background:#f8fafc; color:#0f172a;"] {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .info-grid input[style*="background:#f8fafc; color:#0f172a;"]::placeholder {
    color: var(--gray-color) !important;
}

/* Copy Button */
html[data-theme="dark"] .info-grid button[style*="background:linear-gradient(135deg,#4f46e5,#7c3aed);"] {
    background: var(--primary-color) !important;
}

html[data-theme="dark"] .info-grid button[style*="background:linear-gradient(135deg,#4f46e5,#7c3aed);"]:hover {
    background: rgba(255, 165, 0, 0.8) !important;
}

/* National Card Image */
html[data-theme="dark"] .info-grid img[style*="border:2px solid #e5e9f5;"] {
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .info-grid img[style*="border:2px solid #e5e9f5;"]+p {
    color: #EF4444 !important;
}

/* Salary Card */
html[data-theme="dark"] .salary-card {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .salary-card div[style*="color:#0f172a;"] {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .salary-card span[style*="background:#eef2ff; color:#4f46e5;"] {
    background: rgba(255, 165, 0, 0.1) !important;
    color: var(--primary-color) !important;
}

/* Salary Commission Select */
html[data-theme="dark"] .salary-card select[style*="background: #fff; color: #0f172a;"] {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .salary-card select[style*="background: #fff; color: #0f172a;"]:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1) !important;
}

/* Salary Description Box Dark Mode */
html[data-theme="dark"] #salaryDescriptionBox {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: rgba(255, 165, 0, 0.3) !important;
}

html[data-theme="dark"] #salaryDescriptionBox div[style*="background:#dbe8ff; color:#365eff;"] {
    background: rgba(255, 165, 0, 0.2) !important;
    color: var(--primary-color) !important;
}

html[data-theme="dark"] #salaryDescriptionBox div[style*="color: #0f172a;"] {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] #salaryDescriptionBox div[style*="background: #fff; border-right: 3px solid #4a90e2;"] {
    background: #0B1220 !important;
    border-right-color: var(--primary-color) !important;
}

html[data-theme="dark"] #salaryDescriptionBox div[style*="color: #475569;"] {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] #salaryDescriptionBox i[style*="color: #4a90e2;"] {
    color: var(--primary-color) !important;
}

/* Save Bank Info Button Dark Mode */
html[data-theme="dark"] #saveBankInfoBtn {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] #saveBankInfoBtn:hover {
    background: rgba(255, 165, 0, 0.8) !important;
    border-color: rgba(255, 165, 0, 0.8) !important;
}

html[data-theme="dark"] #saveBankInfoBtn i {
    color: #fff !important;
}

/* Save Bank Info Status Text */
html[data-theme="dark"] #saveBankInfoStatus {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] body.sellers-page .empty-state {
    color: var(--gray-color);
}

html[data-theme="dark"] [style*="background:#f5f5f5"],
html[data-theme="dark"] [style*="background: #f5f5f5"],
html[data-theme="dark"] [style*="background-color:#f5f5f5"],
html[data-theme="dark"] [style*="background-color: #f5f5f5"] {
    background-color: #0F172A !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] [style*="border: 1px solid #ddd"],
html[data-theme="dark"] [style*="border:1px solid #ddd"] {
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] [style*="color:#ccc"],
html[data-theme="dark"] [style*="color: #ccc"] {
    color: var(--gray-color) !important;
}

/* User Panel Profile Page Dark Mode Styles */
html[data-theme="dark"] .street-search-container {
    background: #0F172A;
    border-color: var(--border-color);
}

html[data-theme="dark"] .search-input-wrapper {
    background: #0B1220;
    border-color: var(--border-color);
}

html[data-theme="dark"] .search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1);
}

html[data-theme="dark"] .search-icon {
    color: var(--gray-color);
}

html[data-theme="dark"] .search-input-wrapper:focus-within .search-icon {
    color: var(--primary-color);
}

html[data-theme="dark"] #streetSearchInput {
    background: transparent;
    color: var(--dark-color);
}

html[data-theme="dark"] #streetSearchInput::placeholder {
    color: var(--gray-color);
}

html[data-theme="dark"] .clear-search-btn {
    background: var(--border-color);
    color: var(--gray-color);
}

html[data-theme="dark"] .clear-search-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

html[data-theme="dark"] .search-suggestions {
    background: #0F172A;
    border-color: var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .suggestion-city {
    color: var(--gray-color);
}

html[data-theme="dark"] .location-info {
    background: #0F172A;
    border-color: var(--border-color);
    color: var(--dark-color);
}

/* Map search suggestions dark mode */
html[data-theme="dark"] #mapSearchSuggestions {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] #mapSearchSuggestions button {
    background: transparent !important;
    color: var(--dark-color) !important;
    border: none !important;
    text-align: right !important;
}

html[data-theme="dark"] #mapSearchSuggestions button:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    color: var(--primary-color) !important;
}

html[data-theme="dark"] #mapSearchSuggestions button:not(:hover) {
    background: transparent !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] #mapSearchSuggestions button span {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] #mapSearchSuggestions button:hover span {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] #mapSearchSuggestions button i {
    color: var(--primary-color) !important;
}

/* Override inline styles for search suggestions */
html[data-theme="dark"] #mapSearchSuggestions[style*="background: #fff"] {
    background: #0F172A !important;
}

html[data-theme="dark"] #mapSearchSuggestions[style*="border: 1px solid #e0e0e0"] {
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] #mapSearchSuggestions button[style*="background: #f7f7f7"] {
    background: rgba(255, 165, 0, 0.1) !important;
}

html[data-theme="dark"] .discount-section-title {
    color: var(--dark-color);
}

html[data-theme="dark"] .scope-option {
    background: #0F172A;
    border-color: var(--border-color);
}

html[data-theme="dark"] .scope-option:hover {
    background: rgba(255, 165, 0, 0.1);
    border-color: var(--primary-color);
}

html[data-theme="dark"] .scope-card {
    background: transparent;
    color: var(--dark-color);
}

html[data-theme="dark"] .scope-card span {
    color: var(--dark-color);
}

html[data-theme="dark"] .scope-card p {
    color: var(--gray-color);
}

html[data-theme="dark"] .opening-hours label {
    color: var(--dark-color);
}

html[data-theme="dark"] .day-label {
    color: var(--dark-color);
}

html[data-theme="dark"] .time-inputs input {
    background: #0B1220;
    color: var(--dark-color);
    border-color: var(--border-color);
}

html[data-theme="dark"] .time-inputs span {
    color: var(--gray-color);
}

html[data-theme="dark"] .btn-tatil {
    background: #374151;
    color: var(--gray-color);
    border-color: var(--border-color);
}

html[data-theme="dark"] .btn-tatil:hover {
    background: #EF4444;
    color: #fff;
}

/* Tatil button dark mode - override inline styles */
html[data-theme="dark"] .btn-tatil {
    background: #374151 !important;
    color: var(--gray-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .btn-tatil:hover {
    background: #EF4444 !important;
    color: #fff !important;
}

/* Tatil button selected state dark mode */
html[data-theme="dark"] .btn-tatil.active,
html[data-theme="dark"] .btn-tatil.selected {
    background: #EF4444 !important;
    color: #fff !important;
    border-color: #EF4444 !important;
}

/* Additional phone number button dark mode */
html[data-theme="dark"] #addPhoneBtn {
    background: linear-gradient(135deg, #1a1a2e, #0f172a) !important;
    border-color: var(--border-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] #addPhoneBtn:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

html[data-theme="dark"] #addPhoneBtn[style*="linear-gradient"] {
    background: linear-gradient(135deg, #1a1a2e, #0f172a) !important;
}

/* Working hours container dark mode */
html[data-theme="dark"] .hours-grid {
    background: #0F172A;
    border-color: var(--border-color);
}

html[data-theme="dark"] .day-hours {
    background: #0B1220;
    border-color: var(--border-color);
}

html[data-theme="dark"] .opening-hours {
    background: transparent;
}

/* Additional phone rows dark mode - override inline styles */
html[data-theme="dark"] .additional-phone-row {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .additional-phone-type {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .additional-phone-number {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .remove-phone-btn {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    color: #fff !important;
}

html[data-theme="dark"] .remove-phone-btn:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

/* Additional phones section container */
html[data-theme="dark"] #additionalPhonesSection {
    background: #0F172A;
    border-color: var(--border-color);
}

html[data-theme="dark"] #additionalPhonesList {
    background: transparent;
}

/* Bulk operations container dark mode */
html[data-theme="dark"] [style*="background: linear-gradient(135deg, #f8f9fa, #e9ecef)"],
html[data-theme="dark"] [style*="background:linear-gradient(135deg, #f8f9fa, #e9ecef)"] {
    background: linear-gradient(135deg, #1a1a2e, #0f172a) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .bulk-actions-container {
    background: linear-gradient(135deg, #1a1a2e, #0f172a);
    border-color: var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Operations button dark mode */
html[data-theme="dark"] .btn-operations,
html[data-theme="dark"] button[title*="عملیات"] {
    background: #0F172A !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .btn-operations:hover,
html[data-theme="dark"] button[title*="عملیات"]:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

/* Products table enable/disable items dark mode */
html[data-theme="dark"] .products-table .status-enabled,
html[data-theme="dark"] .products-table .status-active {
    background: #065f46 !important;
    color: #10b981 !important;
}

html[data-theme="dark"] .products-table .status-disabled,
html[data-theme="dark"] .products-table .status-inactive {
    background: #7f1d1d !important;
    color: #ef4444 !important;
}

html[data-theme="dark"] .products-table tr[data-status="enabled"],
html[data-theme="dark"] .products-table tr[data-status="active"] {
    background: rgba(16, 185, 129, 0.1) !important;
}

html[data-theme="dark"] .products-table tr[data-status="disabled"],
html[data-theme="dark"] .products-table tr[data-status="inactive"] {
    background: rgba(239, 68, 68, 0.1) !important;
}

html[data-theme="dark"] .products-table .badge-enabled,
html[data-theme="dark"] .products-table .badge-active {
    background: #10b981 !important;
    color: #fff !important;
}

html[data-theme="dark"] .products-table .badge-disabled,
html[data-theme="dark"] .products-table .badge-inactive {
    background: #ef4444 !important;
    color: #fff !important;
}

/* Products table rows dark mode - full row color based on status */
html[data-theme="dark"] .products-table tbody tr {
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .products-table tbody tr[data-status="enabled"],
html[data-theme="dark"] .products-table tbody tr[data-status="active"] {
    background: rgba(16, 185, 129, 0.2) !important;
}

html[data-theme="dark"] .products-table tbody tr[data-status="disabled"],
html[data-theme="dark"] .products-table tbody tr[data-status="inactive"] {
    background: rgba(239, 68, 68, 0.2) !important;
}

html[data-theme="dark"] .products-table tbody tr:hover {
    background: #1a1a2e !important;
}

html[data-theme="dark"] .products-table tbody tr[data-status="enabled"]:hover,
html[data-theme="dark"] .products-table tbody tr[data-status="active"]:hover {
    background: rgba(16, 185, 129, 0.3) !important;
}

html[data-theme="dark"] .products-table tbody tr[data-status="disabled"]:hover,
html[data-theme="dark"] .products-table tbody tr[data-status="inactive"]:hover {
    background: rgba(239, 68, 68, 0.3) !important;
}

html[data-theme="dark"] .products-table td {
    background: transparent !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .products-table th {
    background: #1a1a2e !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

/* Products table active/inactive row classes dark mode */
html[data-theme="dark"] .products-table tbody tr.active-row {
    background: rgba(16, 185, 129, 0.2) !important;
}

html[data-theme="dark"] .products-table tbody tr.inactive-row {
    background: rgba(239, 68, 68, 0.2) !important;
}

html[data-theme="dark"] .products-table tbody tr.active-row:hover {
    background: rgba(16, 185, 129, 0.3) !important;
}

html[data-theme="dark"] .products-table tbody tr.inactive-row:hover {
    background: rgba(239, 68, 68, 0.3) !important;
}

/* Payment modal dark mode */
html[data-theme="dark"] #paymentModal .discount-modal-box {
    background: #0F172A;
    border-color: var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] #paymentModal .discount-modal-header {
    background: linear-gradient(135deg, #1a1a2e, #0f172a);
    border-bottom-color: var(--border-color);
}

html[data-theme="dark"] #paymentModal .discount-modal-header h2 {
    color: var(--dark-color);
}

html[data-theme="dark"] #paymentModal .discount-modal-close {
    background: var(--border-color);
    color: var(--gray-color);
}

html[data-theme="dark"] #paymentModal .discount-modal-close:hover {
    background: #EF4444;
    color: #fff;
}

/* Payment modal content sections */
html[data-theme="dark"] #paymentModal [style*="background: rgba(255,165,0,0.08)"] {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] #paymentModal [style*="color: var(--text-secondary)"] {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] #paymentModal [style*="color: var(--primary-color)"] {
    color: var(--primary-color) !important;
}

/* Marketer code section */
html[data-theme="dark"] #paymentModal [style*="background: #e7f3ff"] {
    background: rgba(33, 150, 243, 0.1) !important;
    border-color: #2196F3 !important;
}

html[data-theme="dark"] #paymentModal [style*="color: #1565C0"] {
    color: var(--primary-color) !important;
}

/* Info section */
html[data-theme="dark"] #paymentModal [style*="background: #fff3cd"] {
    background: rgba(255, 193, 7, 0.1) !important;
    border-color: #ffc107 !important;
}

html[data-theme="dark"] #paymentModal [style*="color: #856404"] {
    color: #ffc107 !important;
}

/* Upload hexagon section */
html[data-theme="dark"] #paymentModal [style*="background: white"] {
    background: #1a1a2e !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] #paymentModal [style*="color: var(--dark-color)"] {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] #paymentModal .btn-whatsapp {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
}

html[data-theme="dark"] #paymentModal .btn-whatsapp:hover {
    background: #128C7E;
    border-color: #25D366 !important;
}

/* Marketer code modal dark mode */
html[data-theme="dark"] #marketerPreModal .discount-modal-box {
    background: #0F172A;
    border-color: var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] #marketerPreModal .discount-modal-header {
    background: linear-gradient(135deg, #1a1a2e, #0f172a);
    border-bottom-color: var(--border-color);
}

html[data-theme="dark"] #marketerPreModal .discount-modal-header h2 {
    color: var(--dark-color);
}

html[data-theme="dark"] #marketerPreModal .discount-modal-close {
    background: var(--border-color);
    color: var(--gray-color);
}

html[data-theme="dark"] #marketerPreModal .discount-modal-close:hover {
    background: #EF4444;
    color: #fff;
}

html[data-theme="dark"] #marketerPreModal .discountrw-modal-content {
    color: var(--dark-color);
}

html[data-theme="dark"] #marketerPreModal #marketerCodeInput {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] #marketerPreModal #marketerCodeInput::placeholder和价值 {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] #marketerPreModal .btn-primary {
    background: var(--primary-color) !important;
    color: #fff !important;
}

html[data-theme="dark"] #marketerPreModal .btn-secondary {
    background: var(--border-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] #marketerPreModal .btn-primary:hover {
    background: var(--accent-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.3) !important;
}

html[data-theme="dark"] #marketerPreModal .btn-secondary:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.3) !important;
}

html[data-theme="dark"] #marketerPreModal .btn-secondary {
    background: var(--border-color) !important;
    color: var(--dark-color) !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] #marketerPreModal .btn-secondary:not(:hover) {
    background: var(--border-color) !important;
    color: var(--dark-color) !important;
}

/* Marketer skip button specific styles */
html[data-theme="dark"] #marketerSkipBtn {
    background: var(--border-color) !important;
    color: var(--dark-color) !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] #marketerSkipBtn:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.3) !important;
}

html[data-theme="dark"] #marketerSkipBtn:not(:hover) {
    background: var(--border-color) !important;
    color: var(--dark-color) !important;
}

/* Add product modal dark mode */
html[data-theme="dark"] #discountModal .discount-modal-box {
    background: #0F172A;
    border-color: var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] #discountModal .discount-modal-header {
    background: linear-gradient(135deg, #1a1a2e, #0f172a);
    border-bottom-color: var(--border-color);
}

html[data-theme="dark"] #discountModal .discount-modal-header h2 {
    color: var(--dark-color);
}

html[data-theme="dark"] #discountModal .discount-modal-close {
    background: var(--border-color);
    color: var(--gray-color);
}

html[data-theme="dark"] #discountModal .discount-modal-close:hover {
    background: #EF4444;
    color: #fff;
}

html[data-theme="dark"] #discountModal .discount-modal-content {
    color: var(--dark-color);
}

html[data-theme="dark"] #discountModal .discount-section-title {
    color: var(--dark-color);
}

html[data-theme="dark"] #discountModal .scope-option {
    background: #0F172A;
    border-color: var(--border-color);
}

html[data-theme="dark"] #discountModal .scope-option:hover {
    background: rgba(255, 165, 0, 0.1);
    border-color: var(--primary-color);
}

html[data-theme="dark"] #discountModal .scope-card {
    background: transparent;
    color: var(--dark-color);
}

html[data-theme="dark"] #discountModal .scope-card span {
    color: var(--dark-color);
}

html[data-theme="dark"] #discountModal .scope-card p {
    color: var(--gray-color);
}

html[data-theme="dark"] #discountModal .product-choice-tab {
    background: #0B1220;
    color: var(--dark-color);
    border-color: var(--border-color);
}

html[data-theme="dark"] #discountModal .product-choice-tab.active {
    background: var(--primary-color);
    color: #fff;
}

html[data-theme="dark"] #discountModal .product-choice-tab:hover {
    background: rgba(255, 165, 0, 0.1);
    border-color: var(--primary-color);
}

html[data-theme="dark"] #discountModal .product-search-box {
    background: #0B1220;
    border-color: var(--border-color);
}

html[data-theme="dark"] #discountModal .product-search-box input {
    background: transparent;
    color: var(--dark-color);
}

html[data-theme="dark"] #discountModal .product-search-box i {
    color: var(--gray-color);
}

html[data-theme="dark"] #discountModal .form-field label {
    color: var(--dark-color);
}

html[data-theme="dark"] #discountModal .form-field input {
    background: #0B1220;
    color: var(--dark-color);
    border-color: var(--border-color);
}

html[data-theme="dark"] #discountModal .custom-select-trigger {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] #discountModal .custom-select-menu {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

/* Custom search component dark mode */
html[data-theme="dark"] .custom-search {
    background: #0F172A !important;
    border-bottom-color: var(--border-color) !important;
}

html[data-theme="dark"] .custom-search .search-icon {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .custom-search .search-input {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .custom-search .search-input::placeholder {
    color: var(--gray-color) !important;
}

/* Custom options dropdown dark mode */
html[data-theme="dark"] .custom-options {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .custom-options-header {
    background: #0B1220 !important;
    border-bottom-color: var(--border-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .custom-option {
    background: transparent !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .custom-option:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .custom-option.selected {
    background: rgba(255, 165, 0, 0.2) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .custom-option:not(:hover) {
    background: transparent !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

/* FAQ page dark mode styles */
html[data-theme="dark"] .terms-hero {
    background: linear-gradient(135deg, #1a1a2e, #0f172a) !important;
}

html[data-theme="dark"] .terms-hero h1 {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .terms-hero p {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .terms-card {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
    border-right-color: var(--primary-color) !important;
}

html[data-theme="dark"] .terms-card h2 {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .terms-card h2 i {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .faq-item {
    border-bottom-color: var(--border-color) !important;
}

html[data-theme="dark"] .faq-question {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .faq-question::before {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .faq-answer {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .warning-box {
    background: rgba(255, 193, 7, 0.1) !important;
    border-color: rgba(255, 193, 7, 0.3) !important;
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .warning-box i {
    color: var(--primary-color) !important;
}

/* Contractual marketers status modal dark mode */
html[data-theme="dark"] #statusModal {
    background: rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] #statusModal .modal-box {
    background: #0F172A !important;
    color: var(--dark-color) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] #statusModal .modal-close {
    background: var(--border-color) !important;
    color: var(--gray-color) !important;
}

html[data-theme="dark"] #statusModal .modal-close:hover {
    background: #EF4444 !important;
    color: #fff !important;
}

html[data-theme="dark"] .status-details {
    background: #0B1220 !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .status-details h4 {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .status-details p {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .status-details i {
    color: var(--primary-color) !important;
}

/* Payment card info dark mode */
html[data-theme="dark"] .status-details div[style*="background: #f8f9fa"] {
    background: #0B1220 !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .status-details div[style*="color: #1f2937"] p {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .status-details div[style*="color: #6b7280"] p {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .status-details span[style*="background: #ffc107"] {
    background: rgba(255, 193, 7, 0.2) !important;
    color: var(--primary-color) !important;
}

/* Status icons dark mode */
html[data-theme="dark"] .status-success {
    color: #10B981 !important;
}

html[data-theme="dark"] .status-error {
    color: #EF4444 !important;
}

/* Contractual marketers page dark mode */
html[data-theme="dark"] .page-container {
    background: #0F172A !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .page-header {
    background: linear-gradient(135deg, #1a1a2e, #0f172a) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .page-header h1 {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .warning-section {
    background: rgba(255, 193, 7, 0.1) !important;
    border-color: rgba(255, 193, 7, 0.3) !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.1) !important;
}

html[data-theme="dark"] .warning-section h3 {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .warning-section p {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .warning-section .highlight {
    background: rgba(255, 193, 7, 0.2) !important;
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .marketer-card {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    border-left-color: var(--primary-color) !important;
}

html[data-theme="dark"] .marketer-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .marketer-name {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .marketer-phone {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .marketer-phone a {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .marketer-phone a:hover {
    color: rgba(255, 165, 0, 0.8) !important;
}

html[data-theme="dark"] .loading {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .loading i {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .error-message {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #EF4444 !important;
}

html[data-theme="dark"] .no-marketers {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .no-marketers i {
    color: var(--border-color) !important;
}

html[data-theme="dark"] .search-section {
    background: linear-gradient(135deg, #1a1a2e, #0f172a) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .search-container h2 {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .search-container p {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .search-input-large {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .search-input-large::placeholder {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .search-input-large:focus {
    border-color: var(--primary-color) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] .search-btn-large {
    background: var(--primary-color) !important;
    color: #fff !important;
}

html[data-theme="dark"] .search-btn-large:hover {
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3) !important;
}

/* Modal styles for contractual marketers */
html[data-theme="dark"] .modal-overlay {
    background: rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] .modal-box {
    background: #0F172A !important;
    color: var(--dark-color) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .modal-close {
    background: var(--border-color) !important;
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .modal-close:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    color: var(--primary-color) !important;
}

/* Category dropdown in advanced filters dark mode */
html[data-theme="dark"] #categoryCustom .custom-select-trigger {
    background: #0F172A !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] #categoryCustom .custom-select-trigger:focus-visible,
html[data-theme="dark"] #categoryCustom.open .custom-select-trigger {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1) !important;
}

html[data-theme="dark"] #categoryCustom .selected-icon {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] #categoryCustom .caret {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] #categoryCustom .custom-select-menu {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] #categoryCustom .custom-option {
    background: transparent !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] #categoryCustom .custom-option:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] #categoryCustom .custom-option.selected {
    background: rgba(255, 165, 0, 0.2) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] #categoryCustom .custom-option:not(:hover) {
    background: transparent !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] #categoryCustom .custom-option i {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] #categoryCustom .custom-option span {
    color: inherit !important;
}

/* Category dropdown specific overrides for inline styles */
html[data-theme="dark"] #categoryCustom .custom-select-trigger[style*="background: #fff"] {
    background: #0F172A !important;
}

html[data-theme="dark"] #categoryCustom .custom-select-trigger[style*="border: 2px solid #e9ecef"] {
    border-color: var(--border-color) !important;
}

/* Discount type, details, and percentage sections */
html[data-theme="dark"] #discountModal .discount-type-options {
    background: transparent;
}

html[data-theme="dark"] #discountModal .discount-type-option {
    background: #0F172A;
    border-color: var(--border-color);
    color: var(--dark-color);
}

html[data-theme="dark"] #discountModal .discount-type-option:hover {
    background: rgba(255, 165, 0, 0.1);
    border-color: var(--primary-color);
}

html[data-theme="dark"] #discountModal .discount-type-option.selected {
    background: rgba(255, 165, 0, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

html[data-theme="dark"] #discountModal .discount-details-input {
    background: #0B1220;
    color: var(--dark-color);
    border-color: var(--border-color);
}

html[data-theme="dark"] #discountModal .discount-details-input::placeholder {
    color: var(--gray-color);
}

html[data-theme="dark"] #discountModal .discount-percentage-input {
    background: #0B1220;
    color: var(--dark-color);
    border-color: var(--border-color);
}

html[data-theme="dark"] #discountModal .discount-percentage-input::placeholder {
    color: var(--gray-color);
}

html[data-theme="dark"] #discountModal .percentage-display {
    background: #0F172A;
    color: var(--primary-color);
    border-color: var(--border-color);
}

/* Discount percentage container and type cards */
html[data-theme="dark"] #discountModal .discount-percent-highlight {
    background: linear-gradient(135deg, #1a1a2e, #0f172a) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] #discountModal .discount-type-card {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    color: #fff !important;
}

html[data-theme="dark"] #discountModal .discount-type-card span {
    color: #fff !important;
}

html[data-theme="dark"] #discountModal .discount-type-card p {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] #discountModal .discount-type-card:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] #discountModal .discount-type-option input:checked+.discount-type-card {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.2) !important;
    border-width: 2px !important;
}

html[data-theme="dark"] #discountModal .discount-type-card.selected {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

html[data-theme="dark"] #discountModal .discount-type-card.selected:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
}

/* Product item card dark mode */
html[data-theme="dark"] .product-item-card {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .product-item-card:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .product-item input[type="checkbox"]:checked+.product-item-card {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.2) !important;
}

html[data-theme="dark"] .discount-modal-box .product-item-card {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .discount-modal-box .product-item-card:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .product-item-card .product-item-info {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .product-item-card .product-item-name {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .product-item-card .product-item-price {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .product-item-card .product-item-category {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .product-item-card .product-name,
html[data-theme="dark"] .product-item-card .product-item-name {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .product-item-card h4,
html[data-theme="dark"] .product-item-card h5,
html[data-theme="dark"] .product-item-card h6 {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .product-item-card .name,
html[data-theme="dark"] .product-item-card [class*="name"] {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .product-item-card .product-item-info strong {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .product-item-card strong {
    color: var(--dark-color) !important;
}

/* Scheduled discount settings modal dark mode */
html[data-theme="dark"] .schedule-type-modal {
    background: rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] .schedule-type-modal>div {
    background: #0F172A !important;
    color: var(--dark-color) !important;
    border: 1px solid var(--border-color) !important;
}

html[data-theme="dark"] .schedule-type-modal h3 {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .schedule-type-modal label {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .schedule-type-modal .schedule-days-selector label {
    background: #0B1220 !important;
    border-color: var(--border-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .schedule-type-modal .schedule-days-selector label:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .schedule-type-modal input[type="time"] {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .schedule-type-modal input[type="text"] {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .schedule-type-modal #schedStartDisplay,
html[data-theme="dark"] .schedule-type-modal #schedEndDisplay {
    background: #0B1220 !important;
    border-color: var(--border-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .schedule-type-modal button {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .schedule-type-modal #schedModalConfirm {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .schedule-type-modal #schedModalReset {
    background: #dc2626 !important;
    color: #fff !important;
    border-color: #dc2626 !important;
}

html[data-theme="dark"] .schedule-type-modal button:hover {
    opacity: 0.8;
}

/* Countdown discount settings modal dark mode */
html[data-theme="dark"] .countdown-type-modal {
    background: rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] .countdown-type-modal>div {
    background: #0F172A !important;
    color: var(--dark-color) !important;
    border: 1px solid var(--border-color) !important;
}

html[data-theme="dark"] .countdown-type-modal h3 {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .countdown-type-modal label {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .countdown-type-modal input[type="number"] {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .countdown-type-modal input[type="checkbox"] {
    accent-color: var(--primary-color) !important;
}

html[data-theme="dark"] .countdown-type-modal button {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .countdown-type-modal #countModalConfirm {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .countdown-type-modal button:hover {
    opacity: 0.8;
}

/* Time picker modal dark mode */
html[data-theme="dark"] .time-picker-overlay {
    background: rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] .time-picker-box {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .time-picker-header {
    background: linear-gradient(135deg, #1a1a2e, #0f172a) !important;
    border-bottom-color: var(--border-color) !important;
}

html[data-theme="dark"] .time-picker-header h3 {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .time-picker-close {
    background: var(--border-color) !important;
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .time-picker-close:hover {
    background: #EF4444 !important;
    color: #fff !important;
}

html[data-theme="dark"] .time-inputs input {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .time-inputs span {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .time-picker-actions button {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .time-picker-actions button:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

/* Date picker modal dark mode */
html[data-theme="dark"] .date-picker-overlay {
    background: rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] .date-picker-box {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .date-picker-header {
    background: linear-gradient(135deg, #1a1a2e, #0f172a) !important;
    border-bottom-color: var(--border-color) !important;
}

html[data-theme="dark"] .date-picker-header h3 {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .date-picker-close {
    background: var(--border-color) !important;
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .date-picker-close:hover {
    background: #EF4444 !important;
    color: #fff !important;
}

html[data-theme="dark"] .calendar-grid {
    background: transparent !important;
}

html[data-theme="dark"] .calendar-day {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .calendar-day:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .calendar-day.selected {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .calendar-nav button {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .calendar-nav button:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

/* Remove operations button frame in dark mode */
html[data-theme="dark"] .btn-operations,
html[data-theme="dark"] button[title*="عملیات"] {
    border: none !important;
    background: #0F172A !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .btn-operations:hover,
html[data-theme="dark"] button[title*="عملیات"]:hover {
    border: none !important;
    background: var(--primary-color) !important;
    color: #fff !important;
}

/* Time picker dropdown/scroll elements dark mode */
html[data-theme="dark"] .time-picker-scroll {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .time-picker-column {
    background: #0B1220 !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .time-picker-item {
    background: transparent !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .time-picker-item:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .time-picker-item.selected {
    background: var(--primary-color) !important;
    color: #fff !important;
}

html[data-theme="dark"] .time-picker-label {
    color: var(--dark-color) !important;
}

/* Date picker dropdown/scroll elements dark mode */
html[data-theme="dark"] .date-picker-scroll {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .date-picker-column {
    background: #0B1220 !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .date-picker-item {
    background: transparent !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .date-picker-item:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .date-picker-item.selected {
    background: var(--primary-color) !important;
    color: #fff !important;
}

html[data-theme="dark"] .date-picker-label {
    color: var(--dark-color) !important;
}

/* Generic picker dropdown styles */
html[data-theme="dark"] .picker-dropdown {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .picker-option {
    background: transparent !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .picker-option:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .picker-option.selected {
    background: var(--primary-color) !important;
    color: #fff !important;
}

/* Time scroller list dark mode */
html[data-theme="dark"] .time-scroller-list {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .time-scroller-list .scroller-item {
    background: transparent !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .time-scroller-list .scroller-item:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .time-scroller-list .scroller-item.selected {
    background: var(--primary-color) !important;
    color: #fff !important;
}

html[data-theme="dark"] .time-scroller-list .scroller-header {
    background: linear-gradient(135deg, #1a1a2e, #0f172a) !important;
    color: var(--dark-color) !important;
    border-bottom-color: var(--border-color) !important;
}

html[data-theme="dark"] .time-scroller-list .scroller-footer {
    background: #0B1220 !important;
    border-top-color: var(--border-color) !important;
}

html[data-theme="dark"] .time-scroller-list .scroller-footer button {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .time-scroller-list .scroller-footer button:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

/* انتخاب ساعت popup dark mode */
html[data-theme="dark"] .select-time-popup {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .select-time-popup .popup-header {
    background: linear-gradient(135deg, #1a1a2e, #0f172a) !important;
    color: var(--dark-color) !important;
    border-bottom-color: var(--border-color) !important;
}

html[data-theme="dark"] .select-time-popup .popup-body {
    background: #0B1220 !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .select-time-popup .popup-footer {
    background: #0B1220 !important;
    border-top-color: var(--border-color) !important;
}

html[data-theme="dark"] .select-time-popup .popup-footer button {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .select-time-popup .popup-footer button:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

/* Timepicker box dark mode */
html[data-theme="dark"] .timepicker-box {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .timepicker-box .timepicker-header {
    background: linear-gradient(135deg, #1a1a2e, #0f172a) !important;
    border-bottom-color: var(--border-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .timepicker-box .timepicker-header h3 {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .timepicker-box .timepicker-close {
    background: var(--border-color) !important;
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .timepicker-box .timepicker-close:hover {
    background: #EF4444 !important;
    color: #fff !important;
}

html[data-theme="dark"] .timepicker-box .timepicker-content {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .timepicker-box .timepicker-wheel {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .timepicker-box .timepicker-item {
    background: transparent !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .timepicker-box .timepicker-item:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .timepicker-box .timepicker-item.selected {
    background: var(--primary-color) !important;
    color: #fff !important;
}

html[data-theme="dark"] .timepicker-box .timepicker-footer {
    background: #0B1220 !important;
    border-top-color: var(--border-color) !important;
}

html[data-theme="dark"] .timepicker-box .timepicker-footer button {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .timepicker-box .timepicker-footer button:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

/* Discount modal content dark mode */
html[data-theme="dark"] .discount-modal-content {
    background: #0F172A !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .discount-modal-content h3 {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .discount-modal-content h4 {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .discount-modal-content label {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .discount-modal-content p {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .discount-modal-content span {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .discount-modal-content strong {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .discount-modal-content .required-mark {
    color: #EF4444 !important;
}

html[data-theme="dark"] .discount-modal-content input {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .discount-modal-content select {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .discount-modal-content textarea {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .discount-modal-content .form-field {
    background: transparent !important;
}

html[data-theme="dark"] .discount-modal-content .form-field:hover {
    background: rgba(255, 165, 0, 0.05) !important;
}

/* Discount modal header dark mode fixes */
html[data-theme="dark"] .discount-modal-header {
    background: linear-gradient(135deg, #1a1a2e, #0f172a) !important;
    border-bottom-color: var(--border-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .discount-modal-header h2 {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .discount-modal-header h3 {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .discount-modal-header button {
    background: var(--border-color) !important;
    color: var(--gray-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .discount-modal-header button:hover {
    background: rgba(255, 165, 0, 0.2) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transform: scale(1.05) !important;
}

html[data-theme="dark"] .discount-modal-header button:not(:hover) {
    background: var(--border-color) !important;
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .discount-modal-header .discount-modal-close {
    background: var(--border-color) !important;
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .discount-modal-header .discount-modal-close:hover {
    background: #EF4444 !important;
    color: #fff !important;
    transform: scale(1.1) !important;
}

html[data-theme="dark"] .discount-modal-header .discount-modal-close:not(:hover) {
    background: var(--border-color) !important;
    color: var(--gray-color) !important;
}

/* Icon suggestion item dark mode */
html[data-theme="dark"] .icon-suggestion-item {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .icon-suggestion-item:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.2) !important;
}

html[data-theme="dark"] .icon-suggestion-item.selected {
    background: rgba(255, 165, 0, 0.2) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .icon-suggestion-item i {
    color: var(--primary-color) !important;
}

/* Fix button hover states in first popup (discount modal) */
html[data-theme="dark"] #discountModal button:not(.discount-modal-close):not(.product-choice-tab):not(.time-picker-actions button):not(.time-scroller-list button) {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] #discountModal button:not(.discount-modal-close):not(.product-choice-tab):not(.time-picker-actions button):not(.time-scroller-list button):hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] #discountModal button:not(.discount-modal-close):not(.product-choice-tab):not(.time-picker-actions button):not(.time-scroller-list button):not(:hover) {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

/* Specific fix for product choice tabs */
html[data-theme="dark"] #discountModal .product-choice-tab {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] #discountModal .product-choice-tab:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

html[data-theme="dark"] #discountModal .product-choice-tab:not(:hover):not(.active) {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] #discountModal .product-choice-tab.active {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

/* Category suggestions grid items dark mode */
html[data-theme="dark"] #categorySuggestionsGrid .category-item {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] #categorySuggestionsGrid .category-item:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] #categorySuggestionsGrid .category-item:not(:hover) {
    background: #0F172A !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] #categorySuggestionsGrid .category-item button {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] #categorySuggestionsGrid .category-item button:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] #categorySuggestionsGrid .category-item button:not(:hover) {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] #categorySuggestionsGrid .category-item .category-name {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] #categorySuggestionsGrid .category-item .category-description {
    color: var(--gray-color) !important;
}

/* Generic category item styling */
html[data-theme="dark"] .category-item {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .category-item:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .category-item:not(:hover) {
    background: #0F172A !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .category-item button {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .category-item button:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .category-item button:not(:hover) {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

/* Business category selection items dark mode */
html[data-theme="dark"] .business-category-item {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .business-category-item:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .business-category-item:not(:hover) {
    background: #0F172A !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .business-category-item.selected {
    background: rgba(255, 165, 0, 0.2) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .business-category-item .category-title {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .business-category-item.selected .category-title {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .business-category-item .category-description {
    color: var(--gray-color) !important;
}

/* Category suggestions in registration modal */
html[data-theme="dark"] #categorySuggestionsGrid .business-category-item {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] #categorySuggestionsGrid .business-category-item:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] #categorySuggestionsGrid .business-category-item:not(:hover) {
    background: #0F172A !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] #categorySuggestionsGrid .business-category-item.selected {
    background: rgba(255, 165, 0, 0.2) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

/* Generic category card styling */
html[data-theme="dark"] .category-card {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .category-card:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .category-card:not(:hover) {
    background: #0F172A !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .category-card.selected {
    background: rgba(255, 165, 0, 0.2) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

/* Stronger overrides for category items to prevent white color */
html[data-theme="dark"] div[class*="category"] {
    background: #0F172A !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] div[class*="category"]:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    color: var(--dark-color) !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] div[class*="category"]:not(:hover) {
    background: #0F172A !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] #categorySuggestionsGrid>div {
    background: #0F172A !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] #categorySuggestionsGrid>div:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    color: var(--dark-color) !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] #categorySuggestionsGrid>div:not(:hover) {
    background: #0F172A !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

/* Override any inline styles that might be causing white color */
html[data-theme="dark"] [style*="background: white"],
html[data-theme="dark"] [style*="background:#fff"],
html[data-theme="dark"] [style*="background: #fff"] {
    background: #0F172A !important;
}

html[data-theme="dark"] [style*="color: white"],
html[data-theme="dark"] [style*="color:#fff"],
html[data-theme="dark"] [style*="color: #fff"] {
    color: var(--dark-color) !important;
}

/* Force dark mode for all elements in category grid */
html[data-theme="dark"] #categorySuggestionsGrid * {
    background-color: #0F172A !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] #categorySuggestionsGrid *:hover {
    background-color: rgba(255, 165, 0, 0.1) !important;
    color: var(--dark-color) !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] #categorySuggestionsGrid *:not(:hover) {
    background-color: #0F172A !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

/* Discount percentage selection popup dark mode */
html[data-theme="dark"] .discount-percentage-popup {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .discount-percentage-popup .popup-header {
    background: linear-gradient(135deg, #1a1a2e, #0f172a) !important;
    border-bottom-color: var(--border-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .discount-percentage-popup .popup-header h3 {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .discount-percentage-popup .popup-close {
    background: var(--border-color) !important;
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .discount-percentage-popup .popup-close:hover {
    background: #EF4444 !important;
    color: #fff !important;
}

html[data-theme="dark"] .discount-percentage-popup .popup-content {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
}

/* Discount scroller container and items */
html[data-theme="dark"] .discount-scroller-container {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .discount-scroller-list {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .discount-scroller-item {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .discount-scroller-item:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .discount-scroller-item:not(:hover) {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .discount-scroller-item.selected {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .discount-picker-modal {
    background: rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] .discount-picker-modal>div {
    background: #0F172A !important;
    color: var(--dark-color) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .discount-picker-modal>div>h3 {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .discount-picker-modal .discount-scroller {
    background: #0B1220 !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .discount-picker-modal .discount-scroller-item {
    background: transparent !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .discount-picker-modal .discount-scroller-item:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .discount-picker-modal .discount-scroller-item.selected {
    background: var(--primary-color) !important;
    color: #fff !important;
}

html[data-theme="dark"] .discount-picker-modal #discountPickerCancel {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .discount-picker-modal #discountPickerCancel:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .discount-picker-modal #discountPickerConfirm {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .discount-scroller-item .percentage-text {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .discount-scroller-item:hover .percentage-text {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .discount-scroller-item.selected .percentage-text {
    color: #fff !important;
}

/* Generic discount picker styles */
html[data-theme="dark"] .discount-picker-overlay {
    background: rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] .discount-picker-box {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .discount-picker-box .picker-item {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .discount-picker-box .picker-item:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .discount-picker-box .picker-item:not(:hover) {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .discount-picker-box .picker-item.selected {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

/* Fix parent popup containing discount percentage selection */
html[data-theme="dark"] .percentage-selection-modal,
html[data-theme="dark"] .discount-selection-popup,
html[data-theme="dark"] .percentage-picker-modal {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .percentage-selection-modal>div,
html[data-theme="dark"] .discount-selection-popup>div,
html[data-theme="dark"] .percentage-picker-modal>div {
    background: #0F172A !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .percentage-selection-modal .modal-header,
html[data-theme="dark"] .discount-selection-popup .modal-header,
html[data-theme="dark"] .percentage-picker-modal .modal-header {
    background: linear-gradient(135deg, #1a1a2e, #0f172a) !important;
    border-bottom-color: var(--border-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .percentage-selection-modal .modal-header h3,
html[data-theme="dark"] .discount-selection-popup .modal-header h3,
html[data-theme="dark"] .percentage-picker-modal .modal-header h3 {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .percentage-selection-modal .modal-content,
html[data-theme="dark"] .discount-selection-popup .modal-content,
html[data-theme="dark"] .percentage-picker-modal .modal-content {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .percentage-selection-modal .modal-footer,
html[data-theme="dark"] .discount-selection-popup .modal-footer,
html[data-theme="dark"] .percentage-picker-modal .modal-footer {
    background: #0B1220 !important;
    border-top-color: var(--border-color) !important;
}

html[data-theme="dark"] .percentage-selection-modal button,
html[data-theme="dark"] .discount-selection-popup button,
html[data-theme="dark"] .percentage-picker-modal button {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .percentage-selection-modal button:hover,
html[data-theme="dark"] .discount-selection-popup button:hover,
html[data-theme="dark"] .percentage-picker-modal button:hover {
    background: rgba(255, 165, 0, 0.8) !important;
}

html[data-theme="dark"] .percentage-selection-modal button:not(:hover),
html[data-theme="dark"] .discount-selection-popup button:not(:hover),
html[data-theme="dark"] .percentage-picker-modal button:not(:hover) {
    background: var(--primary-color) !important;
    color: #fff !important;
}

/* Force dark mode for all elements in percentage selection popups */
html[data-theme="dark"] .percentage-selection-modal *,
html[data-theme="dark"] .discount-selection-popup *,
html[data-theme="dark"] .percentage-picker-modal * {
    background-color: #0F172A !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .percentage-selection-modal *:hover,
html[data-theme="dark"] .discount-selection-popup *:hover,
html[data-theme="dark"] .percentage-picker-modal *:hover {
    background-color: rgba(255, 165, 0, 0.1) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .percentage-selection-modal *:not(:hover),
html[data-theme="dark"] .discount-selection-popup *:not(:hover),
html[data-theme="dark"] .percentage-picker-modal *:not(:hover) {
    background-color: #0F172A !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] #discountModal .discount-type-card.selected .card-title {
    color: #fff !important;
}

html[data-theme="dark"] #discountModal .discount-type-card.selected:hover .card-title {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] #discountModal .discount-type-card .card-title {
    color: #fff !important;
}

html[data-theme="dark"] #discountModal .discount-type-card.selected .card-title {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] #discountModal .discount-type-card .card-description {
    color: var(--gray-color) !important;
}

/* Discount timing option cards and texts */
html[data-theme="dark"] #discountModal .timing-option-card {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] #discountModal .timing-option-card:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] #discountModal .timing-option-card.selected {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--dark-color) !important;
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.2) !important;
    border-width: 2px !important;
}

html[data-theme="dark"] #discountModal .timing-option-card .option-title {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] #discountModal .timing-option-card.selected .option-title {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] #discountModal .timing-option-card .option-description {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] #discountModal .timing-option-card.selected:hover .option-title {
    color: var(--primary-color) !important;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

/* ===== Header ===== */
.main-header {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* iPhone Home Screen Web App Safe Area Fix */
@supports (padding: max(0px)) {
    .main-header {
        padding-top: env(safe-area-inset-top);
        top: env(safe-area-inset-top);
    }
    
    .main-header .header-content {
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

html[data-theme="dark"] .main-header {
    background: #0F172A;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 28px;
}

.logo img {
    height: 32px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo {
        flex-direction: column;
        gap: 4px;
        font-size: 18px;
    }
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    color: var(--dark-color);
    padding: 8px 0;
    position: relative;
}

.main-nav a i {
    display: none;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    width: 250px;
    max-width: 100%;
    font-family: inherit;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

.btn-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    color: var(--dark-color);
    font-size: 18px;
}

.btn-icon:hover {
    background: var(--primary-color);
    color: #fff;
}

html[data-theme="dark"] .btn-icon {
    color: var(--dark-color);
}

html[data-theme="dark"] .btn-icon:hover {
    color: #fff;
}

.badge {
    position: relative;
    display: inline-block;
    background: var(--danger-color);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--dark-color);
}

/* ===== Buttons ===== */
.btn-primary {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #003d6b;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

.btn-text {
    color: var(--primary-color);
    font-weight: 600;
    padding: 5px 10px;
}

.btn-text:hover {
    text-decoration: underline;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-search {
    max-width: 700px;
    margin: 0 auto 30px;
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 8px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
}

.hero-search input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
}

.hero-search .btn-primary {
    border-radius: 40px;
}

.quick-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-chip {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.category-chip:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ===== Map Preview Section ===== */
.map-preview-section {
    padding: 24px 0 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-container-wrapper {
    position: relative;
}

.map-container {
    height: 60vh;
    min-height: 400px;
    max-height: 800px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Responsive map heights */
@media (max-width: 768px) {
    .map-container {
        height: 50vh;
        min-height: 300px;
        max-height: 600px;
    }
}

@media (max-width: 480px) {
    .map-container {
        height: 40vh;
        min-height: 250px;
        max-height: 500px;
    }
}

/* City Selector Control - Glass Theme Minimal */
.map-city-selector {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 6px 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.map-city-selector:hover {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.city-selector-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.city-icon {
    color: #4a90e2;
    font-size: 12px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    }

    to {
        filter: drop-shadow(0 1px 4px rgba(74, 144, 226, 0.8));
    }
}

.city-label {
    font-size: 11px;
    font-weight: 700;
    color: #2c3e50;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.city-select-minimal {
    padding: 3px 8px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    font-size: 11px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #ffffff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
    height: 22px;
    line-height: 22px;
    font-weight: 500;
}

.city-select-minimal:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(74, 144, 226, 0.6);
    transform: translateY(-1px);
}

.city-select-minimal:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.4);
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.city-select-minimal option {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    backdrop-filter: blur(10px);
}

/* Responsive adjustments for glass city selector */
@media (max-width: 768px) {
    .map-city-selector {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
    }

    .city-selector-row {
        gap: 6px;
    }

    .city-icon {
        font-size: 10px;
    }

    .city-label {
        font-size: 10px;
    }

    .city-select-minimal {
        padding: 2px 6px;
        font-size: 10px;
        min-width: 60px;
        height: 20px;
        line-height: 20px;
    }
}

/* ===== Products Grid ===== */
.featured-section,
.hot-deals-section,
.categories-section,
.stats-section {
    padding: 60px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

#productsGrid.products-grid {
    grid-template-columns: repeat(4, 1fr);
}

.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.seller-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.0) 20%, rgba(0, 0, 0, 0.65) 100%);
    color: #fff;
    pointer-events: none;
}

.seller-card-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.seller-card-info i {
    font-size: 12px;
}

.seller-card-info .seller-rating {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin-right: auto;
}

.seller-card-info .seller-rating i {
    font-size: 11px;
}

/* Seller Stats Grid */
.seller-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.seller-stat-card {
    background: white;
    border-radius: 12px;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 60px;
}

html[data-theme="dark"] .seller-stat-card {
    background: #0F172A;
    border-color: var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.seller-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.seller-stat-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.12) 0%, rgba(255, 140, 0, 0.12) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 18px;
}

.seller-stat-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    flex: 1;
    min-width: 0;
}

.seller-stat-value {
    font-size: 16px;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html[data-theme="dark"] .seller-stat-value {
    color: var(--text-primary);
}

.seller-stat-label {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html[data-theme="dark"] .seller-stat-label {
    color: var(--text-secondary);
}

/* Seller Address Styling */
.seller-address {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.05) 0%, rgba(255, 140, 0, 0.05) 100%);
    border: 1px solid rgba(255, 165, 0, 0.15);
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    transition: all 0.2s ease;
}

.seller-address:hover {
    border-color: rgba(255, 165, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.08) 0%, rgba(255, 140, 0, 0.08) 100%);
}

.seller-address i {
    color: var(--primary-color);
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.seller-address span {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

/* Product Actions Layout */
.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding: 0 4px;
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    flex: 1;
    justify-content: center;
}

html[data-theme="dark"] .btn-secondary {
    background: #0F172A;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}

.btn-primary {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 8px;
}

/* Marketing Leads Styles */
.leads-container {
    background: white;
    border-radius: 15px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.leads-header {
    margin-bottom: 24px;
}

.leads-header h3 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.leads-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .leads-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .leads-list {
        grid-template-columns: 1fr;
    }
}

.lead-file-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.lead-file-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.1);
    transform: translateY(-1px);
}

/* Lead File Item Dark Mode */
html[data-theme="dark"] .lead-file-item {
    background: #0F172A !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .lead-file-item:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.2) !important;
}

/* Special manual leads item dark mode */
html[data-theme="dark"] .lead-file-item[style*="background: linear-gradient(135deg, #f0fdf4, #dcfce7)"] {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05)) !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
}

html[data-theme="dark"] .lead-file-item[style*="color: #16a34a;"] {
    color: #10B981 !important;
}

/* File info elements */
html[data-theme="dark"] .lead-file-item .file-info {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .lead-file-item .file-info i {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .lead-file-item .file-name {
    color: var(--dark-color) !important;
}

/* File actions */
html[data-theme="dark"] .lead-file-item .file-actions {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .lead-file-item .btn-action {
    background: rgba(255, 165, 0, 0.1) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .lead-file-item .btn-action:hover {
    background: rgba(255, 165, 0, 0.2) !important;
    color: #fff !important;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-info i {
    color: var(--primary-color);
    font-size: 18px;
}

.file-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.file-actions .btn-action {
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.file-actions .btn-view {
    background: var(--primary-color);
    color: white;
}

.file-actions .btn-view:hover {
    background: #e67e00;
    transform: translateY(-1px);
}

.file-actions .btn-download {
    background: #28a745;
    color: white;
}

.file-actions .btn-download:hover {
    background: #218838;
    transform: translateY(-1px);
}

.info-box {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.05) 0%, rgba(255, 140, 0, 0.05) 100%);
    border: 1px solid rgba(255, 165, 0, 0.15);
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.info-box h4 {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.info-box p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Info Box Dark Mode */
html[data-theme="dark"] .info-box {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1) 0%, rgba(255, 140, 0, 0.05) 100%) !important;
    border-color: rgba(255, 165, 0, 0.3) !important;
}

html[data-theme="dark"] .info-box h4 {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .info-box p {
    color: var(--gray-color) !important;
}

/* Link container inside info-box */
html[data-theme="dark"] .info-box div[style*="background:#f3f4ff; border:1px solid #e0e7ff;"] {
    background: #0B1220 !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .info-box span {
    color: var(--dark-color) !important;
}

/* Copy button inside info-box */
html[data-theme="dark"] .info-box button[style*="background:#4f46e5; color:#fff;"] {
    background: var(--primary-color) !important;
    color: #fff !important;
}

html[data-theme="dark"] .info-box button[style*="background:#4f46e5; color:#fff;"]:hover {
    background: rgba(255, 165, 0, 0.8) !important;
}

html[data-theme="dark"] #pastLeadsWarningBackdrop {
    background: rgba(0, 0, 0, 0.72) !important;
}

html[data-theme="dark"] #pastLeadsWarningBackdrop>div {
    background: #0F172A !important;
    color: var(--dark-color) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55) !important;
    border: 1px solid var(--border-color) !important;
}

html[data-theme="dark"] #pastLeadsWarningBackdrop h3 {
    color: #EF4444 !important;
}

html[data-theme="dark"] #pastLeadsWarningBackdrop p {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] #pastLeadsClose {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] #pastLeadsClose:hover {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] #btnGoToImportantLeads {
    background: var(--primary-color) !important;
    color: #fff !important;
}

html[data-theme="dark"] #btnGoToImportantLeads:hover {
    background: rgba(255, 165, 0, 0.85) !important;
}

html[data-theme="dark"] #btnIgnorePastLeads {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] #btnIgnorePastLeads:hover {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: rgba(255, 165, 0, 0.08) !important;
}

/* Excel Data Modal Styles */
.excel-data-display {
    padding: 0;
}

.excel-file-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 12px 12px 0 0;
    margin: -20px -20px 0 -20px;
}

.excel-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.excel-icon-wrapper i {
    font-size: 32px;
    color: white;
}

.excel-file-info h3 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.excel-file-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lead-preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
    border: 1px solid rgba(255, 165, 0, 0.3);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    margin: 20px 0 16px 0;
}

.lead-preview-badge i {
    font-size: 14px;
}

.lead-data-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.lead-field {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.lead-field:last-child {
    margin-bottom: 0;
}

.lead-field:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.1);
    transform: translateX(-2px);
}

.field-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c00 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.field-icon i {
    color: white;
    font-size: 18px;
}

.field-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field-content label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

.field-content .field-value {
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 700;
}

.field-content .phone-clickable {
    cursor: pointer;
    color: #2196F3;
    text-decoration: underline;
    transition: color 0.2s;
}

.field-content .phone-clickable:hover {
    color: #1976D2;
}

/* Lead Information Modal Dark Mode */
html[data-theme="dark"] .excel-file-info h3 {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .excel-file-info p {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .lead-preview-badge {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.15) 0%, rgba(255, 140, 0, 0.1) 100%) !important;
    border-color: rgba(255, 165, 0, 0.4) !important;
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .lead-data-card {
    background: #0F172A !important;
}

html[data-theme="dark"] .lead-field {
    background: #0B1220 !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .lead-field:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.2) !important;
}

html[data-theme="dark"] .field-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c00 100%) !important;
}

html[data-theme="dark"] .field-icon i {
    color: white !important;
}

html[data-theme="dark"] .field-content label {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .field-content .field-value {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .field-content .phone-clickable {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .field-content .phone-clickable:hover {
    color: rgba(255, 165, 0, 0.8) !important;
}

/* Modal Footer Actions Dark Mode */
html[data-theme="dark"] .modal-footer-actions {
    background: transparent !important;
}

html[data-theme="dark"] .modal-footer-actions .btn-primary {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .modal-footer-actions .btn-primary:hover {
    background: rgba(255, 165, 0, 0.8) !important;
    border-color: rgba(255, 165, 0, 0.8) !important;
}

html[data-theme="dark"] .modal-footer-actions .btn-secondary {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .modal-footer-actions .btn-secondary:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .modal-footer-actions .btn-close-modal {
    background: #dc3545 !important;
    color: #fff !important;
    border-color: #dc3545 !important;
}

html[data-theme="dark"] .modal-footer-actions .btn-close-modal:hover {
    background: #c82333 !important;
    border-color: #c82333 !important;
}

/* Follow Up Popup Dark Mode */
html[data-theme="dark"] #followUpBackdrop {
    background: rgba(0, 0, 0, 0.72) !important;
}

html[data-theme="dark"] #followUpPopup {
    background: #0F172A !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55) !important;
    border: 1px solid var(--border-color) !important;
}

html[data-theme="dark"] #followUpPopup h3 {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] #followUpPopup h3 i {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] #followUpPopup p {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] #followUpPopup button[style*="color:#999;"] {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] #followUpPopup button[style*="color:#999;"]:hover {
    color: var(--dark-color) !important;
}

/* Custom Form */
html[data-theme="dark"] #followUpCustomForm {
    border-top-color: var(--border-color) !important;
}

html[data-theme="dark"] #followUpCustomForm label {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] #followUpCustomForm textarea {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] #followUpCustomForm textarea::placeholder {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] #followUpCustomForm textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1) !important;
}

/* Form Buttons */
html[data-theme="dark"] #followUpCustomForm button[style*="background:#2196F3;"] {
    background: var(--primary-color) !important;
    color: #fff !important;
}

html[data-theme="dark"] #followUpCustomForm button[style*="background:#2196F3;"]:hover {
    background: rgba(255, 165, 0, 0.8) !important;
}

html[data-theme="dark"] #followUpCustomForm button[style*="background:white; color:#555;"] {
    background: #0B1220 !important;
    color: var(--dark-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] #followUpCustomForm button[style*="background:white; color:#555;"]:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

/* Follow Up Options */
html[data-theme="dark"] .follow-up-option {
    background: #0B1220 !important;
    border-color: var(--border-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .follow-up-option:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .follow-up-option i {
    color: var(--primary-color) !important;
}

/* Schedule Picker Popup Dark Mode */
html[data-theme="dark"] #schedulePickerBackdrop {
    background: rgba(0, 0, 0, 0.72) !important;
}

html[data-theme="dark"] #schedulePickerPopup {
    background: #0F172A !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55) !important;
    border: 1px solid var(--border-color) !important;
}

html[data-theme="dark"] #schedulePickerPopup h3 {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] #schedulePickerPopup h3 i {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] #schedulePickerPopup p {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] #schedulePickerPopup button[style*="color:#999;"] {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] #schedulePickerPopup button[style*="color:#999;"]:hover {
    color: var(--dark-color) !important;
}

/* Schedule Options */
html[data-theme="dark"] .schedule-option-btn {
    background: #0B1220 !important;
    border-color: var(--border-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .schedule-option-btn:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
}

/* Routes Table Dark Mode */
html[data-theme="dark"] .routes-table-container {
    background: #0F172A !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .routes-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c00 100%) !important;
    color: white !important;
}

html[data-theme="dark"] .routes-table th {
    color: white !important;
    border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

html[data-theme="dark"] .routes-table tbody tr {
    border-bottom-color: var(--border-color) !important;
}

html[data-theme="dark"] .routes-table tbody tr:hover {
    background: rgba(255, 165, 0, 0.05) !important;
}

html[data-theme="dark"] .routes-table td {
    color: var(--dark-color) !important;
}

/* Route Date Cell */
html[data-theme="dark"] .route-date-cell {
    color: var(--dark-color) !important;
}

/* Alert Messages in Routes */
html[data-theme="dark"] .alert {
    background: #0B1220 !important;
    border-color: var(--border-color) !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .alert-warning {
    background: rgba(255, 165, 0, 0.1) !important;
    border-color: rgba(255, 165, 0, 0.3) !important;
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .alert-info {
    background: rgba(33, 150, 243, 0.1) !important;
    border-color: rgba(33, 150, 243, 0.3) !important;
    color: #2196F3 !important;
}

html[data-theme="dark"] .alert-danger {
    background: rgba(244, 67, 54, 0.1) !important;
    border-color: rgba(244, 67, 54, 0.3) !important;
    color: #f44336 !important;
}

/* Withdrawal Summary Dark Mode */
html[data-theme="dark"] .summary-card {
    background: #0F172A !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .summary-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .summary-icon i {
    color: white !important;
}

html[data-theme="dark"] .summary-label {
    color: var(--gray-color) !important;
}

html[data-theme="dark"] .summary-value {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .withdrawal-request-form {
    background: #0F172A !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--border-color) !important;
}

html[data-theme="dark"] .withdrawal-request-form h3 {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .withdrawal-request-form h3 i {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .withdrawal-request-form label {
    color: var(--dark-color) !important;
}

/* Withdrawal Request Form */
html[data-theme="dark"] #openWithdrawalModalBtn {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] #openWithdrawalModalBtn:hover {
    background: rgba(255, 165, 0, 0.8) !important;
    border-color: rgba(255, 165, 0, 0.8) !important;
}

/* Withdrawal History */
html[data-theme="dark"] .withdrawal-history h3 {
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .withdrawal-history h3 i {
    color: var(--primary-color) !important;
}

html[data-theme="dark"] .withdrawal-history {
    background: #0F172A !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--border-color) !important;
}

.modal-footer-actions {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-close-modal {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-close-modal:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4);
}

.btn-close-modal i {
    font-size: 16px;
}

/* Excel file icon color */
.fa-file-excel {
    color: #28a745 !important;
}

@media (max-width: 768px) {
    .seller-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .seller-stat-card {
        padding: 6px 8px;
        min-height: 55px;
    }

    .seller-stat-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .seller-stat-value {
        font-size: 14px;
    }

    .seller-stat-label {
        font-size: 9px;
    }
}

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

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--danger-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.new-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--success-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
}

.btn-wishlist {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--gray-color);
}

.btn-wishlist:hover,
.btn-wishlist.active {
    color: var(--danger-color);
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 14px;
}

.product-rating .fas.fa-star,
.product-rating .fas.fa-star-half-alt {
    color: #FFC107;
}

.product-rating .far.fa-star {
    color: #DEE2E6;
}

.product-rating span {
    color: var(--gray-color);
    font-size: 18px;
}

.seller-info,
.product-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 8px;
}

.seller-info i,
.product-location i {
    color: var(--primary-color);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 16px;
    color: var(--gray-color);
    text-decoration: line-through;
}

/* ===== Hot Deals Section ===== */
.hot-deals-section {
    background: #fff;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--danger-color);
    font-weight: 700;
    font-size: 18px;
}

.deals-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.deal-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.deal-image {
    width: 150px;
    height: 150px;
}

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

.deal-content {
    flex: 1;
    padding: 20px;
}

.deal-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.deal-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.deal-current {
    font-size: 22px;
    font-weight: 700;
}

.deal-original {
    font-size: 16px;
    text-decoration: line-through;
    opacity: 0.7;
}

.deal-progress {
    margin-top: 15px;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: #fff;
    border-radius: 10px;
    transition: var(--transition);
}

.progress-text {
    font-size: 13px;
    opacity: 0.9;
}

/* ===== Categories Section ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.category-box {
    background: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-color);
    color: #fff;
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary-color);
    transition: var(--transition);
}

.category-box:hover .category-icon {
    background: #fff;
}

.category-box h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.category-box p {
    color: var(--gray-color);
    font-size: 14px;
}

.category-box:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== Stats Section ===== */
.stats-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.stat-content h3 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-content p {
    font-size: 16px;
    opacity: 0.9;
}

/* ===== Footer ===== */
.main-footer {
    background: var(--dark-color);
    color: #fff;
    padding: 30px 0 12px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 40px;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-logo i {
    font-size: 20px;
    color: var(--primary-color);
}

.footer-column p {
    margin-bottom: 10px;
    opacity: 0.8;
    line-height: 1.5;
    font-size: 13px;
}

.footer-column h4 {
    margin-bottom: 10px;
    font-size: 15px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 6px;
}

.footer-column ul li a {
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.footer-column ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
}

html[data-theme="dark"] .main-footer {
    background: #0F172A;
    border-top: 1px solid var(--border-color);
}

html[data-theme="dark"] .footer-column h4,
html[data-theme="dark"] .footer-bottom p,
html[data-theme="dark"] .footer-column ul li a,
html[data-theme="dark"] .footer-column p {
    color: var(--dark-color);
}

html[data-theme="dark"] .user-dropdown-menu,
html[data-theme="dark"] .user-profile-dropdown {
    background: #0F172A;
    border: 1px solid var(--border-color);
}

html[data-theme="dark"] .dropdown-item {
    color: var(--dark-color);
}

html[data-theme="dark"] .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .product-card,
html[data-theme="dark"] .seller-card,
html[data-theme="dark"] .category-box,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .filter-card,
html[data-theme="dark"] .map-sidebar,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .content-card {
    background: #0F172A;
    border-color: var(--border-color);
    color: var(--dark-color);
}

html[data-theme="dark"] .selected-item-card {
    background: #0F172A !important;
    color: var(--dark-color) !important;
}

html[data-theme="dark"] .feature-card {
    background: #0F172A;
    border-color: var(--border-color);
    box-shadow: var(--shadow-lg);
}

html[data-theme="dark"] .feature-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .how-it-works {
    background: linear-gradient(to bottom, #0B1220, #0F172A);
}

html[data-theme="dark"] .stats-section {
    background: #0B1220;
}

html[data-theme="dark"] .stats-section .stat-card {
    background: linear-gradient(to bottom, #0F172A, #0B1220);
    border-color: rgba(255, 165, 0, 0.25);
}

html[data-theme="dark"] .btn-cta-primary {
    background: #0F172A;
    color: var(--primary-color);
}

html[data-theme="dark"] .btn-cta-secondary:hover {
    background: #0F172A;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-links a {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    font-size: 13px;
}

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.breadcrumb a {
    opacity: 0.8;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 12px;
    opacity: 0.6;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 36px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: block;
        position: fixed;
        top: 70px;
        right: 0;
        height: calc(100vh - 70px);
        width: 300px;
        background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

    html[data-theme="dark"] .main-nav {
        background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45);
        border-left: 1px solid var(--border-color);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 30px 20px 40px;
    }

    .main-nav li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    html[data-theme="dark"] .main-nav li {
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 12px;
        font-size: 16px;
        font-weight: 600;
        color: #2c3e50;
        border-radius: 10px;
        transition: all 0.25s ease;
    }

    html[data-theme="dark"] .main-nav a {
        color: #e5e7eb;
    }

    .main-nav a i {
        display: inline-block;
        font-size: 18px;
        width: 24px;
        text-align: center;
        color: var(--primary-color);
        transition: color 0.25s ease;
    }

    .main-nav a:hover,
    .main-nav a.active {
        background: var(--primary-gradient);
        color: white;
        transform: translateX(-4px);
    }

    .main-nav a:hover i,
    .main-nav a.active i {
        color: white;
    }

    .main-nav a.active::after {
        display: none;
    }

    body.mobile-nav-open {
        overflow: hidden;
    }

    body.mobile-nav-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .header-actions .search-box {
        display: none;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    .deal-card {
        flex-direction: column;
    }

    .deal-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 30px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr !important;
    }

    .quick-categories {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .main-footer {
        padding: 25px 0 10px;
    }
}


/* Map Page, Products Page, Categories Page, Breadcrumb => style-pages.css */


/* ===== Responsive for Map & Products Pages ===== */
/* ===== Home Map Icons Marquee ===== */
.map-icons-marquee-wrapper {
    position: relative;
    margin: 10px 0 16px;
}

.map-icons-marquee {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    direction: ltr;
    /* ensure horizontal flow for marquee math */
    padding: 10px 16px;
    /* move padding here to avoid affecting translation */
}

html[data-theme="dark"] .map-icons-marquee {
    background: #0F172A;
    border: 1px solid var(--border-color);
}

.map-icons-marquee-wrapper::before,
.map-icons-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Fade edges (RTL: right is leading edge) */
.map-icons-marquee-wrapper::before {
    right: 0;
    background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0));
}

.map-icons-marquee-wrapper::after {
    left: 0;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
}

html[data-theme="dark"] .map-icons-marquee-wrapper::before {
    background: linear-gradient(270deg, #0F172A, rgba(15, 23, 42, 0));
}

html[data-theme="dark"] .map-icons-marquee-wrapper::after {
    background: linear-gradient(90deg, #0F172A, rgba(15, 23, 42, 0));
}

.map-icons-marquee .marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    /* prevent padding from breaking seamless loop */
    width: max-content;
    /* shrink to content width */
    min-width: 200%;
    /* two groups side-by-side */
    white-space: nowrap;
    /* prevent wrapping */
    animation: marquee-scroll 40s linear infinite;
    will-change: transform;
}

.map-icons-marquee .marquee-group {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.map-icons-marquee:hover .marquee-track {
    animation-play-state: paused;
}

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

    to {
        transform: translate3d(var(--marquee-shift, -50%), 0, 0);
    }
}

.icon-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--dark-color);
    font-size: 13px;
    white-space: nowrap;
    direction: rtl;
    /* keep Persian text RTL inside pill */
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.icon-pill:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.icon-pill:active {
    transform: scale(0.98);
}

.icon-pill.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.3);
    color: #fff;
    font-weight: 600;
}

.icon-pill.selected .pill-icon {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.pill-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.pill-blue {
    background: #2196F3;
}

.pill-pink {
    background: #E91E63;
}

.pill-orange {
    background: #FF9800;
}

.pill-green {
    background: #4CAF50;
}

.pill-purple {
    background: #9C27B0;
}

.pill-red {
    background: #F44336;
}

.pill-cyan {
    background: #00BCD4;
}

.pill-gray {
    background: #9E9E9E;
}

.pill-slate {
    background: #607D8B;
}

.pill-lightgreen {
    background: #8BC34A;
}

.pill-deeporange {
    background: #FF5722;
}

.pill-brown {
    background: #795548;
}

@media (max-width: 576px) {
    .map-icons-marquee .marquee-track {
        gap: 8px;
        padding: 0;
    }

    .icon-pill {
        padding: 6px 10px;
        font-size: 12px;
    }

    .pill-icon {
        width: 24px;
        height: 24px;
    }
}

/* Subcategory Row Styling */
.subcategory-row {
    margin: 12px 0 16px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subcategory-container {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    outline: none !important;
}

.subcategory-container:hover {
    border-color: rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    background: rgba(255, 255, 255, 0.7) !important;
    outline: none !important;
}

html[data-theme="dark"] .subcategory-container {
    background: rgba(30, 41, 59, 0.65) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: rgba(148, 163, 184, 0.12) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    outline: none !important;
}

html[data-theme="dark"] .subcategory-container:hover {
    border-color: rgba(148, 163, 184, 0.12) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    background: rgba(30, 41, 59, 0.65) !important;
    outline: none !important;
}

.subcategory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .subcategory-header {
    border-bottom-color: rgba(148, 163, 184, 0.1);
}

.subcategory-title {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 7px;
    letter-spacing: -0.01em;
}

html[data-theme="dark"] .subcategory-title {
    color: #cbd5e1;
}

.subcategory-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 2px;
    flex-shrink: 0;
}

.subcategory-close {
    background: rgba(0, 0, 0, 0.04);
    border: none;
    color: #94a3b8;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.subcategory-close:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    transform: scale(1.05);
}

html[data-theme="dark"] .subcategory-close {
    background: rgba(255, 255, 255, 0.06);
    color: #64748b;
}

html[data-theme="dark"] .subcategory-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.subcategory-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.subcategory-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
}

.subcategory-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.subcategory-pill:active {
    transform: scale(0.97);
    box-shadow: none;
}

.subcategory-pill.selected {
    background: var(--primary-color);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(255, 102, 0, 0.25);
    transform: translateY(-1px);
}

.subcategory-pill.selected:hover {
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.35);
}

html[data-theme="dark"] .subcategory-pill {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

html[data-theme="dark"] .subcategory-pill:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .subcategory-pill.selected {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.05) !important;
}

html[data-theme="dark"] .subcategory-pill.selected:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary-color) !important;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
}

@media (max-width: 576px) {
    .subcategory-container {
        padding: 10px 14px;
        border-radius: 12px;
    }

    .subcategory-pill {
        padding: 5px 11px;
        font-size: 11.5px;
        border-radius: 8px;
    }

    .subcategory-title {
        font-size: 12px;
    }

    .subcategory-pills {
        gap: 5px;
    }
}

/* Maximum specificity override - prevent any hover color changes */
html[data-theme="dark"] body .subcategory-container:hover,
html[data-theme="dark"] body .subcategory-row .subcategory-container:hover,
html[data-theme="dark"] body #subcategoryRow .subcategory-container:hover {
    border-color: rgba(148, 163, 184, 0.12) !important;
    background: rgba(30, 41, 59, 0.65) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    outline: none !important;
}

/* Also prevent hover changes on pills container */
html[data-theme="dark"] body .subcategory-pills:hover,
html[data-theme="dark"] body .subcategory-container .subcategory-pills:hover {
    background: transparent !important;
    border-color: transparent !important;
}

/* Force all children to not change on hover */
html[data-theme="dark"] body .subcategory-container:hover * {
    border-color: inherit !important;
}

/* Force border color inheritance */
.subcategory-container * {
    border-color: inherit;
}

/* Selected filters chips under marquee */
.selected-filters-bar {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.selected-label {
    color: var(--dark-color);
    font-weight: 600;
    white-space: nowrap;
}

.selected-filters {
    display: flex;
    gap: 8px;
    min-height: 28px;
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1 1 auto;
    scroll-behavior: smooth;
    flex-wrap: nowrap;
    white-space: nowrap;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    -webkit-overflow-scrolling: touch;
    /* iOS momentum */
    touch-action: pan-x pan-y;
    /* allow both horizontal and vertical touch pan */
    cursor: grab;
}

.selected-filters::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}

.selected-filters.dragging {
    cursor: grabbing;
}

/* Selected items rail ("موارد انتخاب‌شده") */
.selected-items-row .selected-price {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.selected-items-row .selected-price-main {
    display: inline-flex;
    align-items: flex-end;
    gap: 6px;
    font-weight: 600;
    flex-direction: row-reverse;
}

.selected-items-row .selected-price-main .price-digits {
    font-size: 0.88rem;
    line-height: 1;
    letter-spacing: 0.4px;
    color: #1b1c1d;
}

.selected-items-row .selected-price-main .price-currency {
    font-size: 0.88rem;
    font-weight: 800;
    padding: 0 4px;
    border-radius: 0;
    background: transparent;
    color: #8c8f92;
    line-height: 1.2;
}

.selected-items-row .selected-price-original {
    display: inline-flex;
    align-items: flex-end;
    gap: 4px;
    font-size: 0.75rem;
    color: #9aa0a6;
    flex-direction: row-reverse;
}

.selected-items-row .selected-price-original .price-digits {
    text-decoration: line-through;
}

/* Dark mode styling for price digits in selected items row */
html[data-theme="dark"] .selected-items-row .price-digits {
    color: var(--dark-color) !important;
}

.selected-items-row .selected-price-original .price-currency {
    font-size: 0.7rem;
    color: #9aa0a6;
    font-weight: 800;
}

.selected-items-row .selected-price--single .selected-price-main {
    color: #1a1a1a;
}

/* All-Off Shops Section - Hide scrollbar but allow scrolling */
#allOffShops {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    touch-action: pan-x pan-y;
    /* Allow both horizontal and vertical touch scrolling */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

#allOffShops::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}

/* Selected Items Section - Hide scrollbar but allow scrolling */
#selectedItems {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    touch-action: pan-x pan-y;
    /* Allow both horizontal and vertical touch scrolling */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

#selectedItems::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}

/* Marquee Track - Allow touch scrolling */
.marquee-track {
    touch-action: pan-x pan-y;
    /* Allow both horizontal and vertical touch scrolling */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

.map-icons-marquee {
    touch-action: pan-x pan-y;
    /* Allow both horizontal and vertical touch scrolling */
    overflow-x: auto;
    /* Allow manual horizontal scroll */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.map-icons-marquee::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}

/* Generic chips (categories/job titles) */
.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.chip i {
    color: var(--primary-color);
}

.chip:hover {
    background: #F8F9FA;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.chip.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(255, 165, 0, 0.08);
}

/* Product Card Styles (shared between shopping-details and products pages) */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

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

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

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

.product-card:hover .product-image {
    position: relative;
    overflow: hidden;
}

.product-image .product-photo-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 80%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(2px);
}

.product-image .product-photo-name {
    flex: 1;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-image .product-photo-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.product-image .product-photo-rating i {
    color: #FFC107;
}

.product-discount-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.95) 0%, rgba(200, 35, 51, 0.95) 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    z-index: 1;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.product-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 6px;
}

.price-original {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.price-final {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary-color);
}

.product-discount-type {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0 12px;
    padding: 12px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid rgba(255, 165, 0, 0.25);
    transition: all 0.2s ease;
    box-sizing: border-box;
    overflow: hidden;
    order: 98;
    margin-top: auto;
}

.product-discount-type:hover {
    border-color: rgba(255, 165, 0, 0.5);
}

.product-discount-type .type-prefix {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-discount-type .type-prefix i {
    color: var(--primary-color);
    font-size: 14px;
}

.product-discount-type .type-badge {
    background: transparent;
    color: var(--primary-color);
    font-weight: 800;
    padding: 0;
    border-radius: 0;
    white-space: nowrap;
    align-self: flex-start;
    font-size: 13px;
}

/* Countdown display */
.countdown-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    flex: 1;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.countdown-number {
    background: transparent;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 800;
    padding: 2px 0;
    min-width: 32px;
    text-align: center;
}

@keyframes number-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(255, 75, 75, 0.35);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 16px rgba(255, 75, 75, 0.5);
    }
}

.countdown-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
}

.countdown-separator {
    display: none;
}

@keyframes separator-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Discount content for scheduled/unlimited */
.discount-content {
    display: block;
}

.discount-info-row {
    display: none;
}

.discount-info-row i {
    color: var(--primary-color);
    font-size: 14px;
    min-width: 16px;
}

.discount-info-row .info-value {
    color: var(--text-primary);
    font-weight: 700;
}

/* Countdown active state */
.product-discount-type.countdown-active {
    border-color: rgba(255, 165, 0, 0.5);
}

@keyframes countdown-pulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(255, 75, 75, 0.2);
    }

    50% {
        box-shadow: 0 6px 20px rgba(255, 75, 75, 0.4);
    }
}

.product-discount-type.countdown-active .type-badge {
    color: var(--primary-color);
}

@keyframes badge-glow {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(255, 75, 75, 0.4);
    }

    50% {
        box-shadow: 0 6px 20px rgba(255, 75, 75, 0.7);
    }
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    order: 99;
}

.product-actions .btn-primary {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

/* Empty state */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 64px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 18px;
    font-weight: 600;
}

@media (max-width: 480px) {
    .countdown-number {
        font-size: 14px;
        min-width: 30px;
    }
}

/* Discount table layout */
.discount-table {
    width: 100%;
    border-collapse: collapse;
}

.discount-table th,
.discount-table td {
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    text-align: center;
    font-size: 13px;
}

.discount-table th {
    background: #fff;
    color: var(--primary-color);
    font-weight: 800;
}

.discount-table td.label {
    text-align: right;
    font-weight: 700;
    color: var(--text-secondary);
}

.selected-hint {
    color: var(--gray-color);
    font-size: 13px;
}

.selected-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    color: var(--dark-color);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    flex: 0 0 auto;
    /* prevent shrinking */
}

.selected-chip .chip-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.selected-chip .chip-remove {
    margin-right: 4px;
    color: var(--gray-color);
    cursor: pointer;
}

@media (max-width: 992px) {
    .map-sidebar {
        width: 300px;
    }

    .products-layout {
        flex-direction: column;
    }

    .products-sidebar {
        width: 100%;
    }

    .sidebar-section {
        display: inline-block;
        width: calc(50% - 10px);
        margin-left: 10px;
        vertical-align: top;
    }
}

@media (max-width: 768px) {
    .map-page {
        flex-direction: column;
    }

    .map-sidebar {
        width: 100%;
        height: 300px;
    }

    .map-main {
        height: 500px;
    }

    .sidebar-section {
        width: 100%;
        margin-left: 0;
    }

    .products-toolbar {
        flex-direction: column;
        gap: 15px;
    }

    .toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
}

/* ===== User Profile Dropdown (Logged In State) ===== */
.user-profile-container {
    position: relative;
    z-index: 9999;
    overflow: visible;
}

.user-profile-dropdown {
    position: relative;
    overflow: visible;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 14px;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

html[data-theme="dark"] .user-profile-btn {
    background: #0F172A;
    border-color: rgba(255, 165, 0, 0.35);
}

html[data-theme="dark"] .user-profile-btn .user-name {
    color: var(--dark-color);
}

html[data-theme="dark"] .user-profile-btn>i {
    color: var(--gray-color);
}

.user-profile-btn:hover {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}

.user-profile-btn:hover .user-avatar i {
    color: white;
}

.user-profile-btn:hover .user-info .user-name,
.user-profile-btn:hover .user-info .user-type-badge {
    color: white;
}

.user-profile-btn:hover>i {
    color: white;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.user-avatar i {
    font-size: 20px;
    color: white;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.user-name {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    transition: color 0.3s ease;
}

.user-type-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(255, 165, 0, 0.15);
    padding: 2px 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.user-profile-btn>i {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
}

.user-profile-dropdown.open .user-profile-btn>i {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: fixed;
    top: auto;
    left: auto;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    overflow: visible;
    z-index: 10000;
    animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    color: #666;
    transition: color 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 165, 0, 0.08);
    color: var(--primary-color);
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

@media (max-width: 576px) {
    .user-info {
        display: none;
    }

    .user-profile-btn {
        padding: 8px;
    }

    .user-profile-btn>i {
        display: none;
    }
}

/* ===== Leaflet Popup Custom Styles ===== */
.leaflet-popup-content-wrapper {
    border-radius: 18px;
    padding: 0 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

html[data-theme="dark"] .leaflet-popup-content-wrapper {
    background: #0F172A;
    border: 1px solid var(--border-color);
}

.leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
}

.leaflet-popup-tip {
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.15);
}

html[data-theme="dark"] .leaflet-popup-tip {
    background: #0F172A;
}

.custom-popup .leaflet-popup-tip {
    background: #121212 !important;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.custom-popup .leaflet-popup-content-wrapper {
    border: 3px solid rgba(255, 255, 255, 0.1);
    padding: 0 !important;
    background: #b9b9b9 !important;
}

html[data-theme="dark"] .custom-popup .leaflet-popup-content-wrapper {
    background: #0F172A !important;
    border-color: var(--border-color);
}


/* Shopping Details DM, Admin Panel, User Panel DM, Location Reg, Marketer, Withdrawal, Map Picker => style-pages.css */


.locate-control {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    cursor: pointer;
    padding: 5px;
    margin: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.locate-control:hover {
    background: rgba(25, 118, 210, 0.08);
}

html[data-theme="dark"] .locate-control {
    background: #0F172A;
    border-color: var(--border-color);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] .locate-control {
    background: #fff;
    border-color: #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .locate-control:hover {
    background: rgba(25, 118, 210, 0.08);
}

html[data-theme="dark"] .locate-control:hover {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .leaflet-control.locate-control .locate-btn {
    background: transparent;
}

html[data-theme="dark"] .leaflet-control.locate-control .locate-btn i {
    color: #93C5FD;
}

html[data-theme="dark"] .leaflet-control.locate-control .locate-btn:hover {
    background: rgba(147, 197, 253, 0.08);
}

/* Light mode explicit rules for instant refresh */
html[data-theme="light"] .leaflet-control.locate-control .locate-btn {
    background: transparent;
}

html[data-theme="light"] .leaflet-control.locate-control .locate-btn i {
    color: #1976D2;
}

html[data-theme="light"] .leaflet-control.locate-control .locate-btn:hover {
    background: rgba(25, 118, 210, 0.08);
}

html[data-theme="light"] .my-location-marker div {
    background: #FF6B35 !important;
    border-color: white !important;
}

html[data-theme="light"] .user-location-icon .user-location-marker svg path {
    fill: #00BFA5 !important;
    stroke: white !important;
}

html[data-theme="light"] .user-location-icon .user-location-marker .pulse-ring {
    border-color: rgba(0, 191, 165, 0.6) !important;
}

/* Report Violation Modal Dark Theme */
html[data-theme="dark"] .report-modal-overlay {
    background: rgba(0, 0, 0, 0.7);
}

html[data-theme="dark"] .report-modal {
    background: #0F172A;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    color: var(--dark-color);
}

html[data-theme="dark"] .report-modal h3 {
    color: var(--dark-color);
}

html[data-theme="dark"] .report-modal p {
    color: var(--gray-color);
}

html[data-theme="dark"] .report-reason-btn {
    background: #1a1a2e;
    border: 1px solid var(--border-color);
    color: var(--dark-color);
}

html[data-theme="dark"] .report-reason-btn:hover {
    background: rgba(255, 165, 0, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

html[data-theme="dark"] .report-other-box label {
    color: var(--dark-color);
}

html[data-theme="dark"] .report-other-box textarea {
    background: #0B1220;
    border: 1px solid var(--border-color);
    color: var(--dark-color);
}

html[data-theme="dark"] .report-other-box textarea::placeholder {
    color: var(--gray-color);
}

html[data-theme="dark"] .report-submit-btn {
    background: var(--primary-color);
    color: #fff;
}

html[data-theme="dark"] .report-cancel-btn {
    background: #6c757d;
    color: #fff;
}

html[data-theme="dark"] .report-close-btn {
    background: var(--border-color);
    color: var(--gray-color);
}

html[data-theme="dark"] .report-close-btn:hover {
    background: #EF4444;
    color: #fff;
}

/* === ABSOLUTE HOVER LOCK - NO CHANGES ALLOWED === */

/* Lock the container completely - no visual changes on hover anywhere */
html[data-theme="dark"] body .subcategory-container:hover,
html[data-theme="dark"] body .subcategory-container:hover *,
html[data-theme="dark"] body .subcategory-container:hover *:before,
html[data-theme="dark"] body .subcategory-container:hover *:after,
html[data-theme="dark"] body #subcategoryRow:hover .subcategory-container,
html[data-theme="dark"] body #subcategoryRow:hover .subcategory-container *,
html[data-theme="dark"] body .subcategory-row:hover .subcategory-container,
html[data-theme="dark"] body .subcategory-row:hover .subcategory-container * {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    outline: none !important;
    outline-color: transparent !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
}

/* Lock the pills container specifically */
html[data-theme="dark"] body .subcategory-pills:hover,
html[data-theme="dark"] body .subcategory-container:hover .subcategory-pills,
html[data-theme="dark"] body .subcategory-container .subcategory-pills:hover {
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
}

/* Lock all pills */
html[data-theme="dark"] body .subcategory-pill:hover,
html[data-theme="dark"] body .subcategory-pills:hover .subcategory-pill,
html[data-theme="dark"] body .subcategory-container:hover .subcategory-pill {
    box-shadow: none !important;
    transform: none !important;
}

/* Lock selected pills */
html[data-theme="dark"] body .subcategory-pill.selected:hover,
html[data-theme="dark"] body .subcategory-pills:hover .subcategory-pill.selected,
html[data-theme="dark"] body .subcategory-container:hover .subcategory-pill.selected {
    background: var(--primary-color) !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(255, 98, 0, 0.25) !important;
}

/* Lock subcategory-pills base state - no background at all */
html[data-theme="dark"] body .subcategory-pills,
html[data-theme="dark"] body .subcategory-container .subcategory-pills {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Lock subcategory-pills hover - no visual changes */
html[data-theme="dark"] body .subcategory-pills:hover,
html[data-theme="dark"] body .subcategory-container:hover .subcategory-pills,
html[data-theme="dark"] body .subcategory-container .subcategory-pills:hover,
html[data-theme="dark"] body .subcategory-row:hover .subcategory-pills,
html[data-theme="dark"] body #subcategoryRow:hover .subcategory-pills,
html[data-theme="dark"] body .subcategory-pills *:hover {
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
}

/* Lock header elements */
html[data-theme="dark"] body .subcategory-header:hover,
html[data-theme="dark"] body .subcategory-container:hover .subcategory-header,
html[data-theme="dark"] body .subcategory-title:hover,
html[data-theme="dark"] body .subcategory-container:hover .subcategory-title,
html[data-theme="dark"] body .subcategory-close:hover,
html[data-theme="dark"] body .subcategory-container:hover .subcategory-close {
    background: transparent !important;
    background-color: transparent !important;
    border-color: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
}

/* === SUBCATEGORY-HEADER ABSOLUTE LOCK === */

/* Lock subcategory-header base state */
html[data-theme="dark"] body .subcategory-header,
html[data-theme="dark"] body .subcategory-container .subcategory-header,
html[data-theme="dark"] body #subcategoryRow .subcategory-header,
html[data-theme="dark"] body .subcategory-row .subcategory-header {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Lock subcategory-header on all hover scenarios */
html[data-theme="dark"] body .subcategory-header:hover,
html[data-theme="dark"] body .subcategory-container:hover .subcategory-header,
html[data-theme="dark"] body .subcategory-row:hover .subcategory-header,
html[data-theme="dark"] body #subcategoryRow:hover .subcategory-header,
html[data-theme="dark"] body .subcategory-container .subcategory-header:hover,
html[data-theme="dark"] body .subcategory-header *:hover,
html[data-theme="dark"] body .subcategory-header:hover * {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
}

/* Lock all header children elements */
html[data-theme="dark"] body .subcategory-header:hover *,
html[data-theme="dark"] body .subcategory-header *:hover,
html[data-theme="dark"] body .subcategory-container:hover .subcategory-header *,
html[data-theme="dark"] body .subcategory-container:hover .subcategory-header *:hover {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: inherit !important;
}

/* ===== Map Fullscreen Styles (moved from inline to reduce HTML parse) ===== */
.map-container-wrapper.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 9999 !important;
    background: white !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-position: fixed !important;
    position: -webkit-fixed !important;
    min-height: -webkit-fill-available !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
}

.map-container-wrapper.fullscreen .map-container {
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    border-radius: 0 !important;
    flex: 1 !important;
}

.map-container-wrapper.fullscreen .map-fullscreen-btn i {
    transition: transform 0.3s ease;
}

.map-container-wrapper.fullscreen .map-fullscreen-btn i.fa-expand {
    transform: rotate(180deg);
}

.map-container-wrapper.fullscreen .map-fullscreen-btn {
    z-index: 16050;
    bottom: calc(10px + var(--apk-bottom-nav-offset, 0px));
}

/* Notification animations (moved from main.js inline injection) */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ===== Admin / Marketer / Owner Panel Buttons (fixed bottom-left) ===== */
.admin-panel-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--primary-gradient, linear-gradient(135deg, #FFA500 0%, #FF8C00 100%));
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    transition: all 0.25s ease;
    animation: adminPulse 2s infinite;
}

.admin-panel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.admin-panel-btn i {
    font-size: 20px;
}

.admin-panel-btn .admin-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: #ff4757;
    color: #fff;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(255, 71, 87, 0.35);
}

#ownerPanelBtn {
    bottom: 30px;
}

@keyframes adminPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
    50% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
}

/* Mobile nav (moved from main.js inline injection) */
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
    }
    .main-nav.active { right: 0; }
    .main-nav ul { flex-direction: column; padding: 20px; gap: 0; }
    .main-nav li { border-bottom: 1px solid #f0f0f0; }
    .main-nav a { display: block; padding: 15px 0; }
}