[data-bs-theme="dark"] {
    --app-primary: #e28c55;
    --app-primary-deep: #c66c38;
    --app-secondary: #f0f1ff;
    --app-secondary-strong: #ffffff;
    --app-accent-soft: #2d3064;
    --app-accent-row: #2f336c;
    --app-surface: #17193a;
    --app-surface-card: #1d2050;
    --app-surface-muted: #252962;
    --app-text: #eef0ff;
    --app-muted: #b7bbdf;
    --app-shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.22);
}

[data-bs-theme="dark"] body {
    background: linear-gradient(180deg, #151734 0%, #1b1e46 100%);
}

[data-bs-theme="dark"] .app-navbar .container-fluid,
[data-bs-theme="dark"] .app-footer-card,
[data-bs-theme="dark"] .app-glass-dropdown,
[data-bs-theme="dark"] .app-store-card,
[data-bs-theme="dark"] .app-status-card,
[data-bs-theme="dark"] .app-stat-card,
[data-bs-theme="dark"] .app-section-card,
[data-bs-theme="dark"] .app-store-summary-card,
[data-bs-theme="dark"] .app-form-card,
[data-bs-theme="dark"] .app-auth-intro,
[data-bs-theme="dark"] .app-auth-panel {
    background: var(--app-surface-card);
}

[data-bs-theme="dark"] .app-icon-button,
[data-bs-theme="dark"] .btn-warning,
[data-bs-theme="dark"] .btn-outline-secondary,
[data-bs-theme="dark"] .app-empty-state,
[data-bs-theme="dark"] .app-auth-support-card,
[data-bs-theme="dark"] .app-service-row,
[data-bs-theme="dark"] .app-card-button.secondary {
    background: var(--app-surface-muted);
}

[data-bs-theme="dark"] .app-card-button {
    background: #23275d;
    color: var(--app-text);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .app-nav-link,
[data-bs-theme="dark"] .app-brand,
[data-bs-theme="dark"] .app-form-label,
[data-bs-theme="dark"] .app-detail-list dd {
    color: var(--app-text);
}

[data-bs-theme="dark"] .app-store-switch-trigger {
    color: var(--app-text);
}

[data-bs-theme="dark"] .app-store-switch-trigger:hover,
[data-bs-theme="dark"] .app-store-switch-trigger:focus-visible {
    background: var(--app-surface-muted);
}

[data-bs-theme="dark"] .app-brand-tagline,
[data-bs-theme="dark"] .app-page-lead,
[data-bs-theme="dark"] .app-auth-copy,
[data-bs-theme="dark"] .app-detail-list dt,
[data-bs-theme="dark"] .app-footer-card {
    color: var(--app-muted);
}

[data-bs-theme="dark"] .app-support-list li,
[data-bs-theme="dark"] .password-toggle,
[data-bs-theme="dark"] .input-group-text {
    color: var(--app-text);
}

[data-bs-theme="dark"] .password-toggle,
[data-bs-theme="dark"] .input-group-text {
    background: var(--app-surface-muted);
    border: 0;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background: #2a2f67;
    color: var(--app-text);
}

[data-bs-theme="dark"] .table {
    --bs-table-color: var(--app-text);
    --bs-table-striped-bg: #262b61;
    --bs-table-hover-bg: #2e3473;
}

[data-bs-theme="dark"] .table thead th {
    background: #2d3167;
    color: var(--app-text);
}

[data-bs-theme="dark"] .app-datatable-shell .dataTables_wrapper .dataTables_filter input,
[data-bs-theme="dark"] .app-datatable-shell .dataTables_wrapper .dataTables_length select {
    background: var(--app-surface-muted);
    color: var(--app-text);
}

[data-bs-theme="dark"] .app-datatable-shell .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--app-text) !important;
}

[data-bs-theme="dark"] .app-datatable-shell .dataTables_wrapper .dataTables_paginate .paginate_button:hover,
[data-bs-theme="dark"] .app-datatable-shell .dataTables_wrapper .dataTables_paginate .paginate_button:focus-visible {
    background: var(--app-accent-soft) !important;
    color: #fff !important;
}

[data-bs-theme="dark"] .app-datatable-shell .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
[data-bs-theme="dark"] .app-datatable-shell .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
[data-bs-theme="dark"] .app-datatable-shell .dataTables_wrapper .dataTables_paginate .ellipsis {
    color: var(--app-muted) !important;
}

[data-bs-theme="dark"] #products-table tbody tr.locked-row {
    background-color: #524224 !important;
    color: #f4d28a !important;
}

[data-bs-theme="dark"] #products-table tbody tr.locked-row td,
[data-bs-theme="dark"] #products-table tbody tr.locked-row .fa-lock {
    color: #f4d28a !important;
}

[data-bs-theme="dark"] .app-metadata-card,
[data-bs-theme="dark"] .app-scrollable-table thead th {
    background: var(--app-surface-muted);
}

[data-bs-theme="dark"] .app-provider-tabs .nav-link {
    background: var(--app-surface-muted);
    color: var(--app-text);
}

[data-bs-theme="dark"] .app-provider-tabs .nav-link.disabled {
    color: var(--app-muted);
}

[data-bs-theme="dark"] .app-inline-warning {
    background: #4d3e1f;
    color: #f4d28a;
}
