/* ═══════════════════════════════════════════════════════
   DEALER DARK THEME — Shared Styles
   ═══════════════════════════════════════════════════════ */

/* ── Base ── */
#main {
    background: #0f172a;
}

body {
    color: #cbd5e1;
}

/* ── Dark Hero (shared) ── */
.dealer-dark-hero {
    background: radial-gradient(circle at 15% 10%, #1e293b 0%, #0f172a 40%, #020617 100%);
    color: #e2e8f0;
    padding: 5rem 0 2.5rem;
    margin-top: 7%;
}

.dealer-dark-hero .hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 24px rgba(34, 211, 238, 0.2);
}

.dealer-dark-hero .hero-icon i {
    font-size: 1.75rem;
    color: #06202a;
}

.dealer-dark-hero h2 {
    color: #e2e8f0;
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dealer-dark-hero p {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.dealer-dark-hero .breadcrumb-nav {
    margin-top: 1.25rem;
}

.dealer-dark-hero .breadcrumb-nav ol {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.dealer-dark-hero .breadcrumb-nav li {
    color: #64748b;
    font-size: 0.85rem;
}

.dealer-dark-hero .breadcrumb-nav li a {
    color: #67e8f9;
    text-decoration: none;
}

.dealer-dark-hero .breadcrumb-nav li a:hover {
    color: #a5f3fc;
}

.dealer-dark-hero .breadcrumb-nav li+li::before {
    content: '/';
    margin-right: 0.5rem;
    color: #475569;
}

/* ── Dark Content Section ── */
.dealer-dark-section {
    background: linear-gradient(165deg, #020617 0%, #0b1222 100%);
    padding: 2.5rem 0 3rem;
}

/* ── Dark Card ── */
.dealer-dark-card {
    background: linear-gradient(165deg, #0b1222 0%, #111827 100%);
    border: 1px solid #243042;
    border-radius: 20px;
    padding: 2rem 2.25rem;
    box-shadow: 0 8px 28px rgba(2, 6, 23, 0.45);
}

/* ── Section Divider ── */
.section-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.75rem 0 1.25rem;
    color: #67e8f9;
    font-weight: 600;
    font-size: 0.95rem;
}

.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #243042;
}

.section-divider i {
    font-size: 1.1rem;
}

/* ── Dark Form Controls ── */
.dealer-dark-card label,
.dealer-dark-section label {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    letter-spacing: 0.03em;
}

.dealer-dark-card .form-control,
.dealer-dark-card .form-select,
.dealer-dark-section .form-control,
.dealer-dark-section .form-select {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    color: #e2e8f0;
    padding: 0.65rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dealer-dark-card .form-control::placeholder,
.dealer-dark-section .form-control::placeholder {
    color: #475569;
}

.dealer-dark-card .form-control:focus,
.dealer-dark-card .form-select:focus,
.dealer-dark-section .form-control:focus,
.dealer-dark-section .form-select:focus {
    background: #0f172a;
    border-color: #22d3ee;
    color: #e2e8f0;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.dealer-dark-card textarea.form-control {
    min-height: 100px;
}

/* Date inputs dark */
.dealer-dark-card input[type="date"],
.dealer-dark-section input[type="date"] {
    color-scheme: dark;
}

/* ── Dark Tables ── */
.dealer-dark-card .table,
.dealer-dark-section .table {
    color: #cbd5e1;
    border-color: #243042;
}

.dealer-dark-card .table thead,
.dealer-dark-section .table thead,
.dealer-dark-card .table thead th,
.dealer-dark-section .table thead th {
    background: #0f172a;
    color: #67e8f9;
    border-color: #243042;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.dealer-dark-card .table tbody tr,
.dealer-dark-section .table tbody tr {
    border-color: #1e293b;
}

.dealer-dark-card .table tbody tr:hover,
.dealer-dark-section .table tbody tr:hover {
    background: rgba(34, 211, 238, 0.04);
}

.dealer-dark-card .table tbody td,
.dealer-dark-section .table tbody td {
    border-color: #1e293b;
    padding: 0.75rem;
    vertical-align: middle;
}

.dealer-dark-card .table-striped tbody tr:nth-of-type(odd),
.dealer-dark-section .table-striped tbody tr:nth-of-type(odd) {
    background: rgba(15, 23, 42, 0.5);
}

/* ── Dark Accordion ── */
.dealer-dark-section .accordion-item {
    background: linear-gradient(165deg, #0b1222 0%, #111827 100%);
    border: 1px solid #243042;
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.dealer-dark-section .accordion-button {
    background: transparent;
    color: #e2e8f0;
    font-weight: 600;
    box-shadow: none;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
}

.dealer-dark-section .accordion-button::after {
    filter: invert(0.7);
}

.dealer-dark-section .accordion-button:not(.collapsed) {
    background: rgba(34, 211, 238, 0.06);
    color: #67e8f9;
}

.dealer-dark-section .accordion-body {
    background: #0b1222;
    color: #cbd5e1;
    border-top: 1px solid #243042;
    padding: 1.25rem;
}

.dealer-dark-section .question-icon {
    color: #22d3ee;
}

/* ── Dark Alerts ── */
.dealer-dark-section .alert-success,
.dealer-dark-card .alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 12px;
    color: #86efac;
}

.dealer-dark-section .alert-danger,
.dealer-dark-card .alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 12px;
    color: #fca5a5;
}

.dealer-dark-section .alert-warning,
.dealer-dark-card .alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 12px;
    color: #fcd34d;
}

.dealer-dark-section .alert-info,
.dealer-dark-card .alert-info {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 12px;
    color: #7dd3fc;
}

/* ── Dark Buttons ── */
.btn-dark-primary {
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    color: #06202a;
    border: none;
    border-radius: 12px;
    padding: 0.65rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-dark-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 211, 238, 0.3);
    color: #04131a;
}

.btn-dark-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.65rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-dark-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
    color: #fff;
}

.btn-dark-success {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.65rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-dark-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    color: #fff;
}

.btn-dark-warning {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #06202a;
    border: none;
    border-radius: 12px;
    padding: 0.65rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-dark-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
    color: #04131a;
}

.btn-dark-outline {
    background: transparent;
    color: #67e8f9;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 0.55rem 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-dark-outline:hover {
    background: rgba(34, 211, 238, 0.08);
    border-color: #22d3ee;
    color: #a5f3fc;
}

/* ── Status Badges ── */
.dark-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.dark-badge-pending {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.dark-badge-processed {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.dark-badge-payment {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.dark-badge-shipped {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.dark-badge-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.dark-badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.dark-badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.dark-badge-info {
    background: rgba(14, 165, 233, 0.15);
    color: #7dd3fc;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

/* ── Dark Pagination ── */
.dealer-dark-section .pagination {
    margin-top: 1.5rem;
    gap: 4px;
}

.dealer-dark-section .pagination .page-item .page-link {
    background: #111827;
    border: 1px solid #243042;
    color: #94a3b8;
    border-radius: 10px;
    padding: 0.5rem 0.85rem;
    transition: all 0.2s ease;
}

.dealer-dark-section .pagination .page-item .page-link:hover {
    background: rgba(34, 211, 238, 0.1);
    border-color: #22d3ee;
    color: #67e8f9;
}

.dealer-dark-section .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    border-color: transparent;
    color: #06202a;
    font-weight: 700;
}

.dealer-dark-section .pagination .page-item.disabled .page-link {
    background: #0b1222;
    border-color: #1e293b;
    color: #475569;
}

/* ── Section Header (dark override) ── */
.dealer-dark-section .section-header span {
    color: #22d3ee;
}

.dealer-dark-section .section-header h2 {
    color: #e2e8f0;
}

/* ── Dark Product Card ── */
.dark-product-card {
    background: linear-gradient(165deg, #0b1222 0%, #111827 100%);
    border: 1px solid #243042;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.4);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dark-product-card:hover {
    border-color: #334155;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.55);
}

.dark-product-card h3 {
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 700;
}

.dark-product-card h3 a {
    color: #e2e8f0;
    text-decoration: none;
}

.dark-product-card h3 a:hover {
    color: #67e8f9;
}

.dark-product-card h4 {
    color: #e2e8f0;
    font-weight: 700;
}

.dark-product-card h4 sup {
    color: #94a3b8;
    font-size: 0.75rem;
}

.dark-product-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dark-product-card ul li {
    color: #cbd5e1;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.15rem 0;
}

.dark-product-card ul li i {
    color: #22d3ee;
    font-size: 0.75rem;
}

/* ── Product Card (Quick Order) ── */
.product-card {
    padding: 0;
    overflow: hidden;
}

.product-card-layout {
    display: flex;
    align-items: stretch;
}

.product-card-image {
    flex-shrink: 0;
    width: 140px;
    background: #0a0f1a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-card-image img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    border-radius: 8px;
}

.product-card-details {
    flex: 1;
    min-width: 0;
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #1e293b;
}

.product-card-title {
    color: #e2e8f0;
    font-size: 1.02rem;
    font-weight: 600;
    margin: 0 0 0.6rem 0;
    line-height: 1.4;
}

.product-card-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1.15rem;
}

.product-card-meta li {
    color: #94a3b8;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.product-card-meta li i {
    color: #22d3ee;
    font-size: 0.75rem;
}

.product-card-meta li span {
    color: #cbd5e1;
    font-weight: 500;
}

.product-card-info-link {
    color: #67e8f9;
    text-decoration: none;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s;
}

.product-card-info-link:hover {
    color: #22d3ee;
}

.product-card-actions {
    flex-shrink: 0;
    width: 180px;
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.product-card-price-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.product-card-price {
    color: #f59e0b;
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
}

.product-card-discount {
    color: #34d399;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 767px) {
    .product-card-layout {
        flex-direction: column;
    }

    .product-card-image {
        width: 100%;
        height: 160px;
        padding: 1rem;
    }

    .product-card-image img {
        max-height: 130px;
    }

    .product-card-details {
        border-right: none;
        border-bottom: 1px solid #1e293b;
        padding: 1rem;
    }

    .product-card-meta {
        flex-direction: column;
        gap: 0.25rem;
    }

    .product-card-actions {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        gap: 0.65rem;
    }

    .product-card-price-block {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
    }
}

/* ── Dark List Item Card (order/ticket row) ── */
.dark-list-card {
    background: linear-gradient(165deg, #0b1222 0%, #111827 100%);
    border: 1px solid #243042;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.4);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.dark-list-card:hover {
    border-color: #334155;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.55);
}

.dark-list-card h3 {
    color: #e2e8f0;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.dark-list-card h4 {
    color: #e2e8f0;
}

.dark-list-card p {
    color: #cbd5e1;
}

.dark-list-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.5rem;
}

.dark-list-card ul li {
    color: #cbd5e1;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dark-list-card ul li i {
    color: #22d3ee;
    font-size: 0.75rem;
}

.dark-list-card .btn-view {
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    color: #06202a;
    border: none;
    border-radius: 10px;
    padding: 0.55rem 1.25rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.dark-list-card .btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 211, 238, 0.3);
    color: #04131a;
}

/* ── SKU Card (Top Purchases) ── */
.sku-card {
    padding: 0;
    display: block;
}

.sku-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
}

.sku-card-info {
    flex: 1;
    min-width: 0;
}

.sku-card-title {
    color: #e2e8f0;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.6rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sku-card-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
}

.sku-card-meta li {
    color: #94a3b8;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.sku-card-meta li i {
    color: #22d3ee;
    font-size: 0.78rem;
}

.sku-card-meta li span {
    color: #cbd5e1;
    font-weight: 500;
}

.sku-card-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.sku-card-price {
    color: #f59e0b;
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .sku-card-body {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem 1.15rem;
    }

    .sku-card-title {
        white-space: normal;
    }

    .sku-card-meta {
        flex-direction: column;
        gap: 0.3rem;
    }

    .sku-card-actions {
        justify-content: space-between;
        border-top: 1px solid #1e293b;
        padding-top: 0.85rem;
    }
}

/* ── Dark Detail Info ── */
.dark-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.dark-info-item {
    flex: 1;
    min-width: 200px;
}

.dark-info-item h4 {
    color: #67e8f9;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.dark-info-item p {
    color: #e2e8f0;
    font-size: 1rem;
    margin: 0;
}

/* ── Dark Service Cards ── */
.dark-service-card {
    background: linear-gradient(165deg, #0b1222 0%, #111827 100%);
    border: 1px solid #243042;
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dark-service-card:hover {
    border-color: #334155;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.55);
    transform: translateY(-4px);
}

.dark-service-card .card-img img {
    width: 100%;
    border-radius: 16px 16px 0 0;
}

.dark-service-card h3 {
    color: #e2e8f0;
    padding: 1rem 1.25rem 0.25rem;
    font-size: 1.15rem;
}

.dark-service-card h3 a {
    color: #e2e8f0;
    text-decoration: none;
}

.dark-service-card h3 a:hover {
    color: #67e8f9;
}

.dark-service-card p {
    color: #94a3b8;
    padding: 0 1.25rem 1.25rem;
    font-size: 0.9rem;
}

/* ── Dark Modal ── */
.dark-modal .modal-content {
    background: linear-gradient(165deg, #0b1222 0%, #111827 100%);
    border: 1px solid #243042;
    border-radius: 16px;
    color: #e2e8f0;
}

.dark-modal .modal-header {
    border-bottom: 1px solid #243042;
}

.dark-modal .modal-header .modal-title {
    color: #e2e8f0;
}

.dark-modal .modal-body {
    color: #cbd5e1;
}

.dark-modal .modal-footer {
    border-top: 1px solid #243042;
}

/* ── Dark Notification List ── */
.dark-list-group .list-group-item {
    background: linear-gradient(165deg, #0b1222 0%, #111827 100%);
    border: 1px solid #243042;
    color: #cbd5e1;
    border-radius: 12px !important;
    margin-bottom: 0.5rem;
}

.dark-list-group .list-group-item:hover {
    background: rgba(34, 211, 238, 0.04);
    border-color: #334155;
}

.dark-list-group .list-group-item h5 {
    color: #e2e8f0;
}

.dark-list-group .list-group-item small {
    color: #64748b;
}

.dark-list-group .list-group-item p {
    color: #94a3b8;
}

/* ── Dark Bootstrap Cards ── */
.dealer-dark-section .card {
    background: linear-gradient(165deg, #0b1222 0%, #111827 100%);
    border: 1px solid #243042;
    border-radius: 16px;
    color: #cbd5e1;
}

.dealer-dark-section .card .card-header {
    background: #0f172a;
    border-bottom: 1px solid #243042;
    border-radius: 16px 16px 0 0 !important;
    color: #e2e8f0;
}

.dealer-dark-section .card .card-header h5 {
    color: #e2e8f0;
}

.dealer-dark-section .card .card-body {
    color: #cbd5e1;
}

.dealer-dark-section .card .card-footer {
    background: #0b1222;
    border-top: 1px solid #243042;
}

/* ── Dark Comments Section ── */
.dark-comment {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
}

.dark-comment h5 {
    color: #e2e8f0;
    font-size: 0.95rem;
}

.dark-comment span.text-muted,
.dark-comment .g-color-gray-dark-v4 {
    color: #64748b !important;
}

.dark-comment p {
    color: #94a3b8;
}

.dark-comment ul {
    list-style: none;
    padding: 0;
}

.dark-comment ul li a {
    color: #67e8f9;
}

/* ── Dark Select2 Override ── */
.dealer-dark-card .select2-container--default .select2-selection--single,
.dealer-dark-section .select2-container--default .select2-selection--single {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    border-radius: 12px !important;
    color: #e2e8f0 !important;
    height: 48px !important;
}

.dealer-dark-card .select2-container--default .select2-selection--single .select2-selection__rendered,
.dealer-dark-section .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #e2e8f0 !important;
    line-height: 46px !important;
    padding-left: 14px !important;
}

.dealer-dark-card .select2-container--default .select2-selection--single .select2-selection__arrow,
.dealer-dark-section .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
}

.select2-dropdown {
    background: #111827 !important;
    border-color: #334155 !important;
    border-radius: 10px !important;
}

.select2-results__option {
    color: #cbd5e1 !important;
    padding: 8px 14px !important;
}

.select2-results__option--highlighted {
    background: rgba(34, 211, 238, 0.12) !important;
    color: #67e8f9 !important;
}

.select2-search--dropdown .select2-search__field {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
    border-radius: 8px !important;
}

/* ── Dark DataTables Override ── */
.dealer-dark-section .dataTables_wrapper .dataTables_filter input,
.dealer-dark-section .dataTables_wrapper .dataTables_length select {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    color: #e2e8f0;
    padding: 0.4rem 0.75rem;
}

.dealer-dark-section .dataTables_wrapper .dataTables_filter label,
.dealer-dark-section .dataTables_wrapper .dataTables_length label,
.dealer-dark-section .dataTables_wrapper .dataTables_info {
    color: #94a3b8;
}

.dealer-dark-section .dataTables_wrapper .dataTables_paginate .paginate_button {
    background: #111827 !important;
    border: 1px solid #243042 !important;
    color: #94a3b8 !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
}

.dealer-dark-section .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(34, 211, 238, 0.1) !important;
    border-color: #22d3ee !important;
    color: #67e8f9 !important;
}

.dealer-dark-section .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #0ea5e9, #22d3ee) !important;
    border-color: transparent !important;
    color: #06202a !important;
    font-weight: 700;
}

/* ── File Upload ── */
.dealer-dark-card input[type="file"],
.dealer-dark-section input[type="file"] {
    color: #94a3b8;
}

.dealer-dark-card input[type="file"]::file-selector-button,
.dealer-dark-section input[type="file"]::file-selector-button {
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    color: #06202a;
    border: none;
    border-radius: 8px;
    padding: 0.4rem 1rem;
    font-weight: 600;
    margin-right: 1rem;
    cursor: pointer;
}

/* ── Dark Footer Override ── */
#footer.footer {
    background: #020617;
    border-top: 1px solid #1e293b;
}

#footer .footer-info p {
    color: #94a3b8;
}

#footer .footer-links h4,
#footer .footer-contact h4 {
    color: #e2e8f0;
}

#footer .footer-links ul li a {
    color: #94a3b8;
}

#footer .footer-links ul li a:hover {
    color: #67e8f9;
}

#footer .footer-contact p {
    color: #94a3b8;
}

#footer .social-links a {
    background: #1e293b;
    color: #94a3b8;
}

#footer .social-links a:hover {
    background: #22d3ee;
    color: #06202a;
}

#footer .copyright {
    color: #475569;
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
}

#footer .copyright strong span {
    color: #67e8f9;
}

/* ── Dark Search Input ── */
.dark-search .form-control {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    color: #e2e8f0;
    padding: 0.75rem 1.25rem;
    height: auto;
}

.dark-search .form-control:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
    background: #0f172a;
    color: #e2e8f0;
}

.dark-search .form-control::placeholder {
    color: #475569;
}

/* ── Cart Card (My Cart) ── */
.cart-card {
    position: relative;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-card-delete {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 2;
    background: rgba(153, 27, 27, 0.85);
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.cart-card-delete:hover {
    background: #dc2626;
    transform: scale(1.1);
    color: #fff;
}

.cart-card-top {
    display: flex;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    flex: 1;
}

.cart-card-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: #0a0f1a;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.cart-card-main {
    flex: 1;
    min-width: 0;
}

.cart-card-title {
    color: #e2e8f0;
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0 0 0.45rem 0;
    line-height: 1.35;
    padding-right: 2rem;
}

.cart-card-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 0.65rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1rem;
}

.cart-card-meta li {
    color: #94a3b8;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.cart-card-meta li i {
    color: #22d3ee;
    font-size: 0.72rem;
}

.cart-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cart-card-qty {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-card-qty-input {
    width: 46px !important;
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    padding: 0.2rem 0 !important;
}

.cart-card-pricing {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cart-card-price {
    color: #f59e0b;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
}

.cart-card-discount {
    color: #34d399;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.cart-card-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    padding: 0.7rem 1.25rem;
    border-top: 1px solid #1e293b;
    background: rgba(15, 23, 42, 0.4);
}

.cart-card-info-link {
    color: #67e8f9;
    text-decoration: none;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s;
}

.cart-card-info-link:hover {
    color: #22d3ee;
}

.cart-card-recent {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.6rem;
}

.cart-card-recent-label {
    color: #f87171;
    font-size: 0.75rem;
    font-weight: 600;
}

.cart-card-recent-order {
    color: #22d3ee;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 0.2s;
}

.cart-card-recent-order:hover {
    color: #67e8f9;
}

.cart-card-recent-qty {
    color: #94a3b8;
    font-size: 0.72rem;
}

@media (max-width: 767px) {
    .cart-card-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-card-image {
        width: 64px;
        height: 64px;
    }

    .cart-card-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ── Cart quantity controls ── */
.dark-qty-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.dark-qty-btn:hover {
    background: rgba(34, 211, 238, 0.1);
    border-color: #22d3ee;
    color: #67e8f9;
}

/* ── Toast dark override ── */
.jq-toast-wrap .jq-toast-single {
    background: #111827 !important;
    border: 1px solid #243042 !important;
    color: #e2e8f0 !important;
    border-radius: 12px !important;
}

/* ── HR dark ── */
.dealer-dark-section hr,
.dealer-dark-card hr {
    border-color: #243042;
    opacity: 0.5;
}

/* ── Links ── */
.dealer-dark-section a:not(.btn-view):not(.btn-dark-primary):not(.btn-dark-danger):not(.btn-dark-success):not(.btn-dark-warning):not(.btn-dark-outline):not(.list-group-item) {
    color: #67e8f9;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .dark-list-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .dark-info-row {
        flex-direction: column;
        gap: 1rem;
    }
}
