/**
 * Charamit Dark Mode Theme
 * High-contrast, clean SaaS dark palette for all non-admin pages.
 * Primary Background: #0f172a / #0b1120
 * Card / Surface: #1e293b
 * Hover / Secondary Surface: #162032 / #243047
 * Borders: #334155 / #475569
 * Primary Text: #f8fafc
 * Secondary / Muted Text: #94a3b8
 * Accent Primary: #3b82f6 / #2563eb
 */

/* ==========================================================================
   1. CSS Custom Properties Overrides
   ========================================================================== */
html[data-theme="dark"],
html.dark-mode {
    --primary_color: #3b82f6;
    --secondary_color: #60a5fa;
    --third_color: #f1f5f9;
    --paper_color: #1e293b;
    --paper_2_color: #162032;
    --background_color: #0f172a;
    --sidebar_color: #0b1120;
    --navbar_color: #0f172a;
    --surface_color: #1e293b;
    --surface_soft: #162032;
    --surface_muted: #1e293b;
    --surface_hover: #243047;
    --surface_subtle: #162032;
    --input_bg: #162032;
    --preview_bg: #162032;
    --mix_base: #0f172a;
    --text_color: #f8fafc;
    --text_heading: #ffffff;
    --text_secondary: #94a3b8;
    --text_muted: #64748b;
    --text_label: #cbd5e1;
    --text_body: #f1f5f9;
    --text_inverse: #0f172a;
    --border_color: #334155;
    --border_strong: #475569;
    --border_soft: #1e293b;
    --scrollbar_thumb: #334155;
    --ink: #f8fafc;
    --paper: #1e293b;
    --paper-2: #162032;
    --line: #ffffff;
    --muted: #94a3b8;
    --bgColor: #0f172a;
    color-scheme: dark;
}

/* ==========================================================================
   2. Global Document & Layout Reset
   ========================================================================== */
html[data-theme="dark"] body,
html.dark-mode body,
html[data-theme="dark"] .sheet,
html.dark-mode .sheet,
html[data-theme="dark"] .ib-page,
html.dark-mode .ib-page,
html[data-theme="dark"] .desk,
html.dark-mode .desk,
html[data-theme="dark"] .desk-shell,
html.dark-mode .desk-shell,
html[data-theme="dark"] .ib-auth,
html.dark-mode .ib-auth {
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
}

/* Typography Overrides */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode h5,
html.dark-mode h6 {
    color: #ffffff !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] span,
html[data-theme="dark"] label,
html.dark-mode p,
html.dark-mode span,
html.dark-mode label {
    color: inherit;
}

html[data-theme="dark"] .text-dark,
html[data-theme="dark"] .text-black,
html[data-theme="dark"] .text-slate-800,
html[data-theme="dark"] .text-slate-700,
html[data-theme="dark"] .text-slate-900,
html.dark-mode .text-dark,
html.dark-mode .text-black,
html.dark-mode .text-slate-800,
html.dark-mode .text-slate-700,
html.dark-mode .text-slate-900 {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .text-secondary,
html[data-theme="dark"] .text-slate-500,
html[data-theme="dark"] .text-slate-600,
html.dark-mode .text-muted,
html.dark-mode .text-secondary,
html.dark-mode .text-slate-500,
html.dark-mode .text-slate-600 {
    color: #94a3b8 !important;
}

/* Common Background Utilities */
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-light,
html[data-theme="dark"] .bg-body,
html.dark-mode .bg-white,
html.dark-mode .bg-light,
html.dark-mode .bg-body {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .border,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] .border-start,
html[data-theme="dark"] .border-end,
html.dark-mode .border,
html.dark-mode .border-top,
html.dark-mode .border-bottom,
html.dark-mode .border-start,
html.dark-mode .border-end {
    border-color: #334155 !important;
}

/* ==========================================================================
   3. Brand & Logo Handling in Dark Mode
   ========================================================================== */
.theme-logo-light {
    display: none !important;
}
.theme-logo-dark {
    display: inline-block !important;
}

html[data-theme="dark"] .theme-logo-dark,
html.dark-mode .theme-logo-dark {
    display: none !important;
}

html[data-theme="dark"] .theme-logo-light,
html.dark-mode .theme-logo-light {
    display: inline-block !important;
}

/* ==========================================================================
   4. Public Header & Navigation Bar
   ========================================================================== */
html[data-theme="dark"] .ib-top,
html[data-theme="dark"] .nav-bar,
html.dark-mode .ib-top,
html.dark-mode .nav-bar {
    background: #0f172a !important;
    border-bottom: 1px solid #334155 !important;
}

html[data-theme="dark"] .nav-bar-links a,
html.dark-mode .nav-bar-links a {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .nav-bar-links a:hover,
html.dark-mode .nav-bar-links a:hover {
    color: #3b82f6 !important;
}

html[data-theme="dark"] .nav-bar-links a.active,
html.dark-mode .nav-bar-links a.active {
    color: #60a5fa !important;
}

html[data-theme="dark"] .ib-pill--ghost,
html.dark-mode .ib-pill--ghost {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .ib-pill--ghost:hover,
html.dark-mode .ib-pill--ghost:hover {
    background: #243047 !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

/* Mobile Navigation Drawer */
html[data-theme="dark"] .nav-bar-menu .ib-top__links,
html.dark-mode .nav-bar-menu .ib-top__links {
    background: #0f172a !important;
    border-inline-end: 1px solid #334155 !important;
}

html[data-theme="dark"] .nav-bar-menu-close svg,
html[data-theme="dark"] .ib-menu-btn svg,
html.dark-mode .nav-bar-menu-close svg,
html.dark-mode .ib-menu-btn svg {
    stroke: #f1f5f9 !important;
}

/* ==========================================================================
   5. Publisher Dashboard Top Bar (`.desk-bar`) & Sidebar (`.desk-side`)
   ========================================================================== */
html[data-theme="dark"] .desk-bar,
html.dark-mode .desk-bar {
    background-color: #0f172a !important;
    border-bottom: 1px solid #334155 !important;
}

html[data-theme="dark"] .desk-bar__search input,
html.dark-mode .desk-bar__search input {
    background: #162032 !important;
    border: 1px solid #334155 !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .desk-bar__search input::placeholder,
html.dark-mode .desk-bar__search input::placeholder {
    color: #64748b !important;
}

html[data-theme="dark"] .desk-bar__search .icon,
html.dark-mode .desk-bar__search .icon {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .desk-bar__toggle,
html.dark-mode .desk-bar__toggle {
    color: #f1f5f9 !important;
    border-color: #334155 !important;
}

/* Sidebar */
html[data-theme="dark"] .desk-side__panel,
html.dark-mode .desk-side__panel {
    background-color: #0b1120 !important;
    border-inline-end: 1px solid #334155 !important;
}

html[data-theme="dark"] .desk-side__link,
html.dark-mode .desk-side__link {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .desk-side__link:hover,
html.dark-mode .desk-side__link:hover {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .desk-side__link.is-active,
html.dark-mode .desk-side__link.is-active {
    background-color: rgba(59, 130, 246, 0.15) !important;
    color: #3b82f6 !important;
}

html[data-theme="dark"] .desk-side__user,
html.dark-mode .desk-side__user {
    background-color: #162032 !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .desk-side__user strong,
html.dark-mode .desk-side__user strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .desk-side__user small,
html.dark-mode .desk-side__user small {
    color: #94a3b8 !important;
}

/* ==========================================================================
   6. Dropdowns & Notification Menus
   ========================================================================== */
html[data-theme="dark"] .drop-down-menu,
html[data-theme="dark"] .dropdown-menu,
html.dark-mode .drop-down-menu,
html.dark-mode .dropdown-menu {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .drop-down-item,
html[data-theme="dark"] .dropdown-item,
html.dark-mode .drop-down-item,
html.dark-mode .dropdown-item {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .drop-down-item:hover,
html[data-theme="dark"] .dropdown-item:hover,
html.dark-mode .drop-down-item:hover,
html.dark-mode .dropdown-item:hover {
    background-color: #243047 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .drop-down-btn,
html.dark-mode .drop-down-btn {
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .desk-notify-menu__head,
html.dark-mode .desk-notify-menu__head {
    border-bottom: 1px solid #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .desk-notify-item,
html.dark-mode .desk-notify-item {
    background: transparent !important;
    border-bottom: 1px solid #334155 !important;
}

html[data-theme="dark"] .desk-notify-item:hover,
html.dark-mode .desk-notify-item:hover {
    background: #162032 !important;
}

html[data-theme="dark"] .desk-notify-item.is-unread,
html.dark-mode .desk-notify-item.is-unread {
    background: rgba(59, 130, 246, 0.08) !important;
}

html[data-theme="dark"] .desk-notify-item strong,
html.dark-mode .desk-notify-item strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .desk-notify-item small,
html.dark-mode .desk-notify-item small {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .desk-notify-menu__all,
html.dark-mode .desk-notify-menu__all {
    border-top: 1px solid #334155 !important;
    color: #3b82f6 !important;
}

/* ==========================================================================
   7. Cards, Boxes, Panels & Dashboard Widgets
   ========================================================================== */
html[data-theme="dark"] .card,
html[data-theme="dark"] .desk-card,
html[data-theme="dark"] .desk-shot,
html[data-theme="dark"] .desk-box,
html[data-theme="dark"] .desk-empty-card,
html[data-theme="dark"] .sheet-well,
html.dark-mode .card,
html.dark-mode .desk-card,
html.dark-mode .desk-shot,
html.dark-mode .desk-box,
html.dark-mode .desk-empty-card,
html.dark-mode .sheet-well {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

html[data-theme="dark"] .desk-card strong,
html.dark-mode .desk-card strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .desk-card span,
html.dark-mode .desk-card span {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .desk-lines > div,
html.dark-mode .desk-lines > div {
    border-bottom: 1px solid #334155 !important;
}

/* ==========================================================================
   8. Video Manager (`/user/videos` - File Manager)
   ========================================================================== */
html[data-theme="dark"] .video-manager-bar,
html.dark-mode .video-manager-bar {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .file-manager-table th,
html.dark-mode .file-manager-table th {
    background-color: #162032 !important;
    border-bottom: 1px solid #334155 !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .file-manager-table td,
html.dark-mode .file-manager-table td {
    border-bottom: 1px solid #334155 !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .file-manager-table tbody tr:hover,
html.dark-mode .file-manager-table tbody tr:hover {
    background-color: #162032 !important;
}

html[data-theme="dark"] .file-manager-table tbody tr.is-selected,
html.dark-mode .file-manager-table tbody tr.is-selected {
    background-color: rgba(59, 130, 246, 0.14) !important;
}

html[data-theme="dark"] .btn-icon,
html.dark-mode .btn-icon {
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .btn-icon:hover,
html.dark-mode .btn-icon:hover {
    background-color: #243047 !important;
    border-color: #475569 !important;
    color: #3b82f6 !important;
}

/* Grid View Wall in Dark Mode */
html[data-theme="dark"] .desk-wall__item,
html.dark-mode .desk-wall__item {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .desk-wall__meta,
html.dark-mode .desk-wall__meta {
    background-color: #1e293b !important;
    border-top: 1px solid #334155 !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .desk-wall__meta strong,
html.dark-mode .desk-wall__meta strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .desk-wall__meta em,
html.dark-mode .desk-wall__meta em {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .desk-wall__icon,
html.dark-mode .desk-wall__icon {
    background-color: #162032 !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .desk-wall__icon:hover,
html.dark-mode .desk-wall__icon:hover {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .desk-wall__pick,
html.dark-mode .desk-wall__pick {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .desk-wall__placeholder,
html.dark-mode .desk-wall__placeholder {
    background-color: #162032 !important;
    color: #64748b !important;
}

/* Bulk Export Modal & Options */
html[data-theme="dark"] #customExportOptions,
html.dark-mode #customExportOptions {
    background-color: #162032 !important;
    border: 1px solid #334155 !important;
}

html[data-theme="dark"] #bulkExportTextarea,
html.dark-mode #bulkExportTextarea {
    background-color: #0b1120 !important;
    border-color: #334155 !important;
    color: #38bdf8 !important;
}

html[data-theme="dark"] .export-tab-btn,
html.dark-mode .export-tab-btn {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .export-tab-btn.active,
html.dark-mode .export-tab-btn.active {
    background-color: #243047 !important;
    color: #60a5fa !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* ==========================================================================
   9. Form Controls, Inputs, Modals & Alerts
   ========================================================================== */
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="url"],
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html.dark-mode .form-control,
html.dark-mode .form-select,
html.dark-mode input[type="text"],
html.dark-mode input[type="password"],
html.dark-mode input[type="email"],
html.dark-mode input[type="number"],
html.dark-mode input[type="search"],
html.dark-mode input[type="url"],
html.dark-mode textarea,
html.dark-mode select {
    background-color: #162032 !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus,
html.dark-mode .form-control:focus,
html.dark-mode .form-select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
    background-color: #162032 !important;
}

html[data-theme="dark"] .form-check-input,
html.dark-mode .form-check-input {
    background-color: #162032 !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .form-check-input:checked,
html.dark-mode .form-check-input:checked {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
}

html[data-theme="dark"] .input-group-text,
html.dark-mode .input-group-text {
    background-color: #162032 !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

/* Modals */
html[data-theme="dark"] .modal-content,
html.dark-mode .modal-content {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer,
html.dark-mode .modal-header,
html.dark-mode .modal-footer {
    background-color: #162032 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .btn-close,
html.dark-mode .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Buttons */
html[data-theme="dark"] .btn-outline-secondary,
html.dark-mode .btn-outline-secondary {
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .btn-outline-secondary:hover,
html.dark-mode .btn-outline-secondary:hover {
    background-color: #243047 !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .btn-light,
html.dark-mode .btn-light {
    background-color: #162032 !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

/* ==========================================================================
   10. Upload Modal & Remote Upload Box
   ========================================================================== */
html[data-theme="dark"] .uploadbox,
html.dark-mode .uploadbox {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .upload-zone,
html.dark-mode .upload-zone {
    background-color: #162032 !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .remote-upload-pane,
html.dark-mode .remote-upload-pane {
    background-color: #1e293b !important;
}

html[data-theme="dark"] .remote-upload-pane textarea,
html.dark-mode .remote-upload-pane textarea {
    background-color: #162032 !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .uploadbox-tabs,
html.dark-mode .uploadbox-tabs {
    border-bottom: 1px solid #334155 !important;
}

html[data-theme="dark"] .uploadbox-tabs button,
html.dark-mode .uploadbox-tabs button {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .uploadbox-tabs button.active,
html.dark-mode .uploadbox-tabs button.active {
    color: #3b82f6 !important;
    border-bottom-color: #3b82f6 !important;
}

html[data-theme="dark"] .uploadbox-footer,
html.dark-mode .uploadbox-footer {
    background-color: #162032 !important;
    border-top: 1px solid #334155 !important;
}

/* ==========================================================================
   11. Video Watch Page (`/watch` or `file/view.blade.php`)
   ========================================================================== */
html[data-theme="dark"] .watch,
html[data-theme="dark"] .watch-content,
html[data-theme="dark"] .watch-card,
html[data-theme="dark"] .watch-head,
html[data-theme="dark"] .watch-meta,
html[data-theme="dark"] .watch-desc,
html.dark-mode .watch,
html.dark-mode .watch-content,
html.dark-mode .watch-card,
html.dark-mode .watch-head,
html.dark-mode .watch-meta,
html.dark-mode .watch-desc {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .watch-title,
html.dark-mode .watch-title {
    color: #ffffff !important;
}

html[data-theme="dark"] .pre-watch-hook-bar,
html.dark-mode .pre-watch-hook-bar {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .hook-badge,
html.dark-mode .hook-badge {
    background: #162032 !important;
    border-color: #334155 !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] .yt-share,
html.dark-mode .yt-share {
    background: #1e293b !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .watch-field,
html.dark-mode .watch-field {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .watch-copy input,
html[data-theme="dark"] .watch-copy textarea,
html.dark-mode .watch-copy input,
html.dark-mode .watch-copy textarea {
    background-color: #162032 !important;
    border-color: #334155 !important;
    color: #38bdf8 !important;
}

/* ==========================================================================
   12. Authentication Pages (Login, Register, Password Reset)
   ========================================================================== */
html[data-theme="dark"] .sign-box,
html[data-theme="dark"] .sign-form,
html[data-theme="dark"] .sign-card,
html.dark-mode .sign-box,
html.dark-mode .sign-form,
html.dark-mode .sign-card {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .sign-title,
html.dark-mode .sign-title {
    color: #ffffff !important;
}

/* ==========================================================================
   13. Homepage Sections & Features
   ========================================================================== */
html[data-theme="dark"] .pb-monetize-section,
html.dark-mode .pb-monetize-section {
    background-color: #0f172a !important;
}

html[data-theme="dark"] .pb-step-card,
html.dark-mode .pb-step-card {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
}

html[data-theme="dark"] .pb-step-title,
html.dark-mode .pb-step-title {
    color: #ffffff !important;
}

html[data-theme="dark"] .pb-step-desc,
html.dark-mode .pb-step-desc {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .feature-section,
html[data-theme="dark"] .blog-section,
html[data-theme="dark"] .faq-section,
html.dark-mode .feature-section,
html.dark-mode .blog-section,
html.dark-mode .faq-section {
    background-color: #0f172a !important;
}

html[data-theme="dark"] .feature-board li,
html.dark-mode .feature-board li {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .feature-board h3,
html.dark-mode .feature-board h3 {
    color: #ffffff !important;
}

html[data-theme="dark"] .feature-board p,
html.dark-mode .feature-board p {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .accordion-item,
html.dark-mode .accordion-item {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .accordion-button,
html.dark-mode .accordion-button {
    background-color: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .accordion-button:not(.collapsed),
html.dark-mode .accordion-button:not(.collapsed) {
    background-color: #162032 !important;
    color: #3b82f6 !important;
}

html[data-theme="dark"] .accordion-body,
html.dark-mode .accordion-body {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
}

/* Footer */
html[data-theme="dark"] .footer,
html[data-theme="dark"] .ib-foot,
html.dark-mode .footer,
html.dark-mode .ib-foot {
    background-color: #0b1120 !important;
    border-top: 1px solid #334155 !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .footer a,
html.dark-mode .footer a {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .footer a:hover,
html.dark-mode .footer a:hover {
    color: #3b82f6 !important;
}

/* ==========================================================================
   14. API Settings & Code Snippets (`/user/settings/api`)
   ========================================================================== */
html[data-theme="dark"] .api-key-box,
html.dark-mode .api-key-box {
    background: #162032 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] pre,
html[data-theme="dark"] code,
html.dark-mode pre,
html.dark-mode code {
    background-color: #0b1120 !important;
    border-color: #334155 !important;
}

/* ==========================================================================
   15. Theme Toggle Button Component Styles
   ========================================================================== */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateY(-1px);
}

.theme-toggle-btn:active {
    transform: translateY(0);
}

.theme-toggle-btn svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

/* In Light Mode: Show Moon, Hide Sun */
.theme-toggle-btn .theme-icon-sun {
    display: none;
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.theme-toggle-btn .theme-icon-moon {
    display: block;
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* In Dark Mode: Show Sun, Hide Moon */
html[data-theme="dark"] .theme-toggle-btn,
html.dark-mode .theme-toggle-btn {
    background-color: #1e293b;
    border-color: #334155;
    color: #f59e0b; /* Amber warm sun */
}

html[data-theme="dark"] .theme-toggle-btn:hover,
html.dark-mode .theme-toggle-btn:hover {
    background-color: #243047;
    border-color: #475569;
    color: #fbbf24;
}

html[data-theme="dark"] .theme-toggle-btn .theme-icon-moon,
html.dark-mode .theme-toggle-btn .theme-icon-moon {
    display: none;
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

html[data-theme="dark"] .theme-toggle-btn .theme-icon-sun,
html.dark-mode .theme-toggle-btn .theme-icon-sun {
    display: block;
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* ==========================================================================
   16. Primary Buttons & Header Action Buttons in Dark Mode
   ========================================================================== */
html[data-theme="dark"] .btn-primary,
html.dark-mode .btn-primary,
html[data-theme="dark"] a.btn-primary,
html.dark-mode a.btn-primary,
html[data-theme="dark"] button.btn-primary,
html.dark-mode button.btn-primary,
html[data-theme="dark"] [data-upload-btn],
html.dark-mode [data-upload-btn] {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .btn-primary:hover,
html.dark-mode .btn-primary:hover,
html[data-theme="dark"] [data-upload-btn]:hover,
html.dark-mode [data-upload-btn]:hover {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .btn-primary *,
html.dark-mode .btn-primary *,
html[data-theme="dark"] [data-upload-btn] *,
html.dark-mode [data-upload-btn] * {
    color: #ffffff !important;
}

html[data-theme="dark"] .btn-primary svg,
html.dark-mode .btn-primary svg,
html[data-theme="dark"] [data-upload-btn] svg,
html.dark-mode [data-upload-btn] svg {
    stroke: #ffffff !important;
}

/* ==========================================================================
   17. Upload Box & Remote URL Import Pane in Dark Mode
   ========================================================================== */
html[data-theme="dark"] .uploadbox-tabs-pill-wrap,
html.dark-mode .uploadbox-tabs-pill-wrap {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
}

html[data-theme="dark"] .uploadbox-tab-nav-btn,
html.dark-mode .uploadbox-tab-nav-btn {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .uploadbox-tab-nav-btn:hover,
html.dark-mode .uploadbox-tab-nav-btn:hover {
    color: #ffffff !important;
    background: #243047 !important;
}

html[data-theme="dark"] .uploadbox-tab-nav-btn.active,
html.dark-mode .uploadbox-tab-nav-btn.active {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4) !important;
}

html[data-theme="dark"] .upload-limit,
html[data-theme="dark"] .upload-limit-sep,
html.dark-mode .upload-limit,
html.dark-mode .upload-limit-sep {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .upload-limit strong,
html.dark-mode .upload-limit strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .remote-upload-container,
html.dark-mode .remote-upload-container {
    color: #f8fafc !important;
}

html[data-theme="dark"] .remote-upload-container h5,
html[data-theme="dark"] .remote-upload-container h6,
html.dark-mode .remote-upload-container h5,
html.dark-mode .remote-upload-container h6 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .remote-upload-container p,
html[data-theme="dark"] .remote-upload-container p.small,
html.dark-mode .remote-upload-container p,
html.dark-mode .remote-upload-container p.small {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .remote-limit-badge,
html[data-theme="dark"] .remote-upload-container .badge,
html.dark-mode .remote-limit-badge,
html.dark-mode .remote-upload-container .badge {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border: 1px solid #334155 !important;
}

html[data-theme="dark"] .remote-urls-input-box,
html.dark-mode .remote-urls-input-box {
    background: #162032 !important;
    border: 1px solid #334155 !important;
}

html[data-theme="dark"] .remote-urls-input-box:focus-within,
html.dark-mode .remote-urls-input-box:focus-within {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

html[data-theme="dark"] .remote-urls-topbar,
html.dark-mode .remote-urls-topbar {
    background: #162032 !important;
    border-bottom: 1px solid #334155 !important;
}

html[data-theme="dark"] .remote-urls-title,
html.dark-mode .remote-urls-title {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .remote-url-counter,
html.dark-mode .remote-url-counter {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .remote-clear-btn,
html.dark-mode .remote-clear-btn {
    color: #94a3b8 !important;
    background: transparent !important;
}

html[data-theme="dark"] .remote-clear-btn:hover,
html.dark-mode .remote-clear-btn:hover {
    color: #f87171 !important;
    background: rgba(239, 68, 68, 0.2) !important;
}

html[data-theme="dark"] .remote-urls-textarea,
html.dark-mode .remote-urls-textarea {
    background: #162032 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .remote-urls-textarea::placeholder,
html.dark-mode .remote-urls-textarea::placeholder {
    color: #64748b !important;
}

html[data-theme="dark"] .remote-tracker-card,
html.dark-mode .remote-tracker-card {
    border-top: 1px solid #334155 !important;
}

html[data-theme="dark"] .remote-upload-container .table-responsive,
html.dark-mode .remote-upload-container .table-responsive {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
}

html[data-theme="dark"] #remoteUploadsTable,
html.dark-mode #remoteUploadsTable {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] #remoteUploadsTable thead,
html.dark-mode #remoteUploadsTable thead {
    background-color: #162032 !important;
    border-bottom: 1px solid #334155 !important;
}

html[data-theme="dark"] #remoteUploadsTable th,
html.dark-mode #remoteUploadsTable th {
    background-color: #162032 !important;
    border-bottom: 1px solid #334155 !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] #remoteUploadsTable tbody tr,
html.dark-mode #remoteUploadsTable tbody tr {
    background-color: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
}

html[data-theme="dark"] #remoteUploadsTable tbody tr:hover,
html.dark-mode #remoteUploadsTable tbody tr:hover {
    background-color: #162032 !important;
}

html[data-theme="dark"] #remoteUploadsTable td,
html.dark-mode #remoteUploadsTable td {
    color: #cbd5e1 !important;
    border-bottom: 1px solid #334155 !important;
}

html[data-theme="dark"] #remoteUploadsTable .fw-semibold,
html.dark-mode #remoteUploadsTable .fw-semibold {
    color: #f8fafc !important;
}

html[data-theme="dark"] #remoteUploadsTable small,
html.dark-mode #remoteUploadsTable small {
    color: #94a3b8 !important;
}

html[data-theme="dark"] #remoteUploadsTable .progress,
html.dark-mode #remoteUploadsTable .progress {
    background-color: #0f172a !important;
}

html[data-theme="dark"] #remoteUploadsTable .btn-outline-secondary,
html.dark-mode #remoteUploadsTable .btn-outline-secondary {
    border-color: #334155 !important;
    color: #cbd5e1 !important;
    background: transparent !important;
}

html[data-theme="dark"] #remoteUploadsTable .btn-outline-secondary:hover,
html.dark-mode #remoteUploadsTable .btn-outline-secondary:hover {
    background: #243047 !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   18. Monetization Steps & CPM Rate Cards in Dark Mode
   ========================================================================== */
html[data-theme="dark"] .pb-monetize-section,
html.dark-mode .pb-monetize-section {
    background-color: #0b1120 !important;
}

html[data-theme="dark"] .pb-step-card,
html.dark-mode .pb-step-card,
html[data-theme="dark"] .pb-cpm-card,
html.dark-mode .pb-cpm-card {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="dark"] .pb-cpm-card--highlight,
html.dark-mode .pb-cpm-card--highlight {
    border: 2px solid #3b82f6 !important;
    box-shadow: 0 8px 25px -4px rgba(59, 130, 246, 0.25) !important;
}

html[data-theme="dark"] .pb-step-tag,
html.dark-mode .pb-step-tag {
    background: rgba(37, 99, 235, 0.18) !important;
    border: 1px solid #3b82f6 !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] .pb-step-icon-wrap,
html.dark-mode .pb-step-icon-wrap {
    background: rgba(37, 99, 235, 0.15) !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] .pb-main-heading,
html[data-theme="dark"] .pb-payout-heading,
html[data-theme="dark"] .pb-step-title,
html[data-theme="dark"] .pb-cpm-amount,
html[data-theme="dark"] .pb-other-title,
html.dark-mode .pb-main-heading,
html.dark-mode .pb-payout-heading,
html.dark-mode .pb-step-title,
html.dark-mode .pb-cpm-amount,
html.dark-mode .pb-other-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .pb-main-subheading,
html[data-theme="dark"] .pb-payout-subheading,
html[data-theme="dark"] .pb-step-desc,
html[data-theme="dark"] .pb-cpm-period,
html[data-theme="dark"] .pb-other-desc,
html.dark-mode .pb-main-subheading,
html.dark-mode .pb-payout-subheading,
html.dark-mode .pb-step-desc,
html.dark-mode .pb-cpm-period,
html.dark-mode .pb-other-desc {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .pb-cpm-badge,
html.dark-mode .pb-cpm-badge {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .pb-cpm-divider,
html.dark-mode .pb-cpm-divider {
    background: #334155 !important;
}

html[data-theme="dark"] .pb-country-row,
html.dark-mode .pb-country-row {
    border-bottom: 1px dashed #334155 !important;
}

html[data-theme="dark"] .pb-country-name,
html.dark-mode .pb-country-name {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .pb-rate-check,
html.dark-mode .pb-rate-check,
html[data-theme="dark"] .pb-feat-check,
html.dark-mode .pb-feat-check {
    color: #34d399 !important;
}

html[data-theme="dark"] .pb-pill-badge,
html.dark-mode .pb-pill-badge {
    background: rgba(37, 99, 235, 0.15) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    color: #60a5fa !important;
}

/* ==========================================================================
   19. SaaS Footer in Dark Mode
   ========================================================================== */
html[data-theme="dark"] .pb-saas-footer,
html.dark-mode .pb-saas-footer {
    background-color: #0b1120 !important;
    border-top: 1px solid #334155 !important;
}

html[data-theme="dark"] .pb-saas-footer h3.pb-footer-heading,
html.dark-mode .pb-saas-footer h3.pb-footer-heading {
    color: #f8fafc !important;
}

html[data-theme="dark"] .pb-saas-footer a.pb-footer-link,
html.dark-mode .pb-saas-footer a.pb-footer-link {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .pb-saas-footer a.pb-footer-link:hover,
html.dark-mode .pb-saas-footer a.pb-footer-link:hover {
    color: #3b82f6 !important;
}

html[data-theme="dark"] .pb-saas-footer .pb-footer-desc,
html.dark-mode .pb-saas-footer .pb-footer-desc,
html[data-theme="dark"] .pb-saas-footer .pb-footer-copy,
html.dark-mode .pb-saas-footer .pb-footer-copy {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .pb-saas-footer .pb-footer-bottom,
html.dark-mode .pb-saas-footer .pb-footer-bottom {
    border-top: 1px solid #334155 !important;
}

html[data-theme="dark"] .pb-saas-footer .pb-footer-badge,
html.dark-mode .pb-saas-footer .pb-footer-badge {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .pb-saas-footer .pb-footer-badge svg,
html.dark-mode .pb-saas-footer .pb-footer-badge svg {
    stroke: #cbd5e1 !important;
}

/* ==========================================================================
   20. Publisher Dashboard (`/user/dashboard`) in Dark Mode
   ========================================================================== */
html[data-theme="dark"] .dash-v2-wrap,
html.dark-mode .dash-v2-wrap {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .dash-v2-card,
html.dark-mode .dash-v2-card {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .dash-v2-kpi,
html.dark-mode .dash-v2-kpi {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
}

html[data-theme="dark"] .dash-v2-card h3,
html[data-theme="dark"] .dash-v2-num,
html.dark-mode .dash-v2-card h3,
html.dark-mode .dash-v2-num {
    color: #f8fafc !important;
}

html[data-theme="dark"] .dash-v2-progress,
html.dark-mode .dash-v2-progress {
    background: #0f172a !important;
}

html[data-theme="dark"] .dash-v2-video-card,
html.dark-mode .dash-v2-video-card {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .dash-v2-video-body,
html.dark-mode .dash-v2-video-body {
    background: #1e293b !important;
}

html[data-theme="dark"] .dash-v2-video-title,
html.dark-mode .dash-v2-video-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .dash-v2-video-meta,
html.dark-mode .dash-v2-video-meta {
    border-top: 1px solid #334155 !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .dash-v2-card .text-muted,
html.dark-mode .dash-v2-card .text-muted {
    color: #94a3b8 !important;
}

/* ==========================================================================
   21. Publisher Earnings & Analytics (`/user/earnings`) in Dark Mode
   ========================================================================== */
html[data-theme="dark"] .pb-analytics-wrap,
html.dark-mode .pb-analytics-wrap {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .pb-glass-card,
html.dark-mode .pb-glass-card {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .pb-page-subhead,
html.dark-mode .pb-page-subhead {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .pb-tabular-num,
html.dark-mode .pb-tabular-num {
    color: #f8fafc !important;
}

html[data-theme="dark"] .pb-glass-card h5,
html[data-theme="dark"] .pb-glass-card h6,
html.dark-mode .pb-glass-card h5,
html.dark-mode .pb-glass-card h6 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .pb-pill-nav,
html.dark-mode .pb-pill-nav {
    background: #0f172a !important;
}

html[data-theme="dark"] .pb-pill-btn,
html.dark-mode .pb-pill-btn {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .pb-pill-btn.active,
html.dark-mode .pb-pill-btn.active {
    background: #2563eb !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .pb-glass-card > div[style*="border-bottom"],
html.dark-mode .pb-glass-card > div[style*="border-bottom"] {
    background: #162032 !important;
    border-bottom: 1px solid #334155 !important;
}

html[data-theme="dark"] .pb-card-table th,
html.dark-mode .pb-card-table th {
    background: #162032 !important;
    border-bottom: 1px solid #334155 !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .pb-card-table td,
html.dark-mode .pb-card-table td {
    border-bottom: 1px solid #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .pb-card-table td .text-dark,
html.dark-mode .pb-card-table td .text-dark {
    color: #f8fafc !important;
}

html[data-theme="dark"] .pb-card-table tbody tr:hover td,
html.dark-mode .pb-card-table tbody tr:hover td {
    background: #162032 !important;
}

html[data-theme="dark"] .pb-glass-card .p-4.text-center.text-muted,
html.dark-mode .pb-glass-card .p-4.text-center.text-muted {
    background: #162032 !important;
    color: #94a3b8 !important;
}

/* ==========================================================================
   22. Publisher Payouts (`/user/payouts`) in Dark Mode
   ========================================================================== */
html[data-theme="dark"] .pb-payouts-wrap,
html.dark-mode .pb-payouts-wrap {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .pb-hero-banner,
html.dark-mode .pb-hero-banner {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 8px 26px -4px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .pb-hero-banner h4,
html.dark-mode .pb-hero-banner h4 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .pb-history-table th,
html.dark-mode .pb-history-table th {
    background: #162032 !important;
    border-bottom: 1px solid #334155 !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .pb-history-table td,
html.dark-mode .pb-history-table td {
    border-bottom: 1px solid #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .pb-history-table tbody tr:hover td,
html.dark-mode .pb-history-table tbody tr:hover td {
    background: #162032 !important;
}

html[data-theme="dark"] .pb-glass-card .py-5.text-center,
html.dark-mode .pb-glass-card .py-5.text-center {
    background: #162032 !important;
}

html[data-theme="dark"] .pb-glass-modal .modal-content,
html.dark-mode .pb-glass-modal .modal-content {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .pb-modal-header,
html.dark-mode .pb-modal-header {
    background: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
}

html[data-theme="dark"] .pb-modal-header h5,
html.dark-mode .pb-modal-header h5 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .pb-modal-footer,
html.dark-mode .pb-modal-footer {
    background: #162032 !important;
    border-top: 1px solid #334155 !important;
}

html[data-theme="dark"] .pb-amount-box,
html.dark-mode .pb-amount-box {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
}

html[data-theme="dark"] .pb-amount-input,
html.dark-mode .pb-amount-input {
    color: #f8fafc !important;
}

html[data-theme="dark"] .pb-method-card,
html.dark-mode .pb-method-card {
    background: #162032 !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .pb-field-input,
html.dark-mode .pb-field-input {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .pb-btn-cancel,
html.dark-mode .pb-btn-cancel {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

/* ==========================================================================
   23. Publisher Notifications (`/user/notifications`) in Dark Mode
   ========================================================================== */
html[data-theme="dark"] .pb-inbox-wrapper,
html.dark-mode .pb-inbox-wrapper {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .pb-inbox-title,
html.dark-mode .pb-inbox-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .pb-btn-subtle,
html.dark-mode .pb-btn-subtle {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .pb-btn-subtle:hover,
html.dark-mode .pb-btn-subtle:hover {
    background-color: #243047 !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .pb-underline-tabs,
html.dark-mode .pb-underline-tabs {
    border-bottom: 1px solid #334155 !important;
}

html[data-theme="dark"] .pb-tab-item,
html.dark-mode .pb-tab-item {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .pb-tab-item.active,
html.dark-mode .pb-tab-item.active {
    color: #3b82f6 !important;
    border-bottom: 2px solid #3b82f6 !important;
}

html[data-theme="dark"] .pb-tab-badge,
html.dark-mode .pb-tab-badge {
    background-color: #0f172a !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .pb-unified-card,
html.dark-mode .pb-unified-card {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
}

html[data-theme="dark"] .pb-unified-list > div:not(:last-child),
html.dark-mode .pb-unified-list > div:not(:last-child) {
    border-bottom: 1px solid #334155 !important;
}

html[data-theme="dark"] .pb-row,
html.dark-mode .pb-row {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .pb-row:hover,
html.dark-mode .pb-row:hover {
    background-color: #243047 !important;
}

html[data-theme="dark"] .pb-row.is-unread,
html.dark-mode .pb-row.is-unread {
    background-color: #162032 !important;
}

html[data-theme="dark"] .pb-row-title,
html.dark-mode .pb-row-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .pb-icon-circle,
html.dark-mode .pb-icon-circle {
    background-color: #0f172a !important;
    color: #94a3b8 !important;
}

/* ==========================================================================
   24. Publisher API Settings (`/user/settings/api`) in Dark Mode
   ========================================================================== */
html[data-theme="dark"] .api-hero-icon,
html.dark-mode .api-hero-icon {
    background-color: rgba(37, 99, 235, 0.2) !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] .api-badge-cors,
html.dark-mode .api-badge-cors {
    background-color: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(52, 211, 153, 0.3) !important;
}

html[data-theme="dark"] .api-badge-secret,
html.dark-mode .api-badge-secret {
    background-color: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251, 191, 36, 0.3) !important;
}

html[data-theme="dark"] .api-base-endpoint-box,
html.dark-mode .api-base-endpoint-box {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .settingsbox .card,
html.dark-mode .settingsbox .card {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
}

html[data-theme="dark"] .settingsbox .card-header,
html.dark-mode .settingsbox .card-header {
    background: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .settingsbox .card-header h6,
html.dark-mode .settingsbox .card-header h6 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .settingsbox .border.rounded.p-3,
html.dark-mode .settingsbox .border.rounded.p-3 {
    background: #162032 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .settingsbox .border.rounded.p-3 code,
html.dark-mode .settingsbox .border.rounded.p-3 code {
    color: #60a5fa !important;
}

html[data-theme="dark"] .settingsbox table,
html.dark-mode .settingsbox table {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .settingsbox table th,
html.dark-mode .settingsbox table th {
    background: #162032 !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .settingsbox table td,
html.dark-mode .settingsbox table td {
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .settingsbox input[readonly],
html.dark-mode .settingsbox input[readonly] {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

/* ==========================================================================
   25. Social Login (Continue with Google) in Auth Pages
   ========================================================================== */
html[data-theme="dark"] .btn-social,
html.dark-mode .btn-social,
html[data-theme="dark"] .ib-auth .btn-social,
html.dark-mode .ib-auth .btn-social {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .btn-social:hover,
html[data-theme="dark"] .btn-social:focus,
html[data-theme="dark"] .btn-social:active,
html.dark-mode .btn-social:hover,
html.dark-mode .btn-social:focus,
html.dark-mode .btn-social:active,
html[data-theme="dark"] .ib-auth .btn-social:hover,
html[data-theme="dark"] .ib-auth .btn-social:focus,
html[data-theme="dark"] .ib-auth .btn-social:active,
html.dark-mode .ib-auth .btn-social:hover,
html.dark-mode .ib-auth .btn-social:focus,
html.dark-mode .ib-auth .btn-social:active {
    background: #283548 !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .btn-social span,
html.dark-mode .btn-social span,
html[data-theme="dark"] .ib-auth .btn-social span,
html.dark-mode .ib-auth .btn-social span {
    color: #f8fafc !important;
}

html[data-theme="dark"] .login-with-divider,
html.dark-mode .login-with-divider,
html[data-theme="dark"] .ib-auth .login-with-divider,
html.dark-mode .ib-auth .login-with-divider {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .login-with-divider::before,
html[data-theme="dark"] .login-with-divider::after,
html[data-theme="dark"] .ib-auth .login-with-divider::before,
html[data-theme="dark"] .ib-auth .login-with-divider::after,
html.dark-mode .login-with-divider::before,
html.dark-mode .login-with-divider::after,
html.dark-mode .ib-auth .login-with-divider::before,
html.dark-mode .ib-auth .login-with-divider::after {
    background: #334155 !important;
    opacity: 1 !important;
}

/* ==========================================================================
   26. Payout Request Modal & Details Modal Contrast Enhancements
   ========================================================================== */
/* Modal Close Button */
html[data-theme="dark"] .pb-modal-close,
html.dark-mode .pb-modal-close {
    background: #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .pb-modal-close:hover,
html.dark-mode .pb-modal-close:hover {
    background: #475569 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .pb-modal-close svg,
html.dark-mode .pb-modal-close svg {
    stroke: #f8fafc !important;
}

/* Step & Section Headings in Request Modal */
html[data-theme="dark"] .pb-step-heading,
html.dark-mode .pb-step-heading,
html[data-theme="dark"] #requestPayoutModal label.form-label,
html.dark-mode #requestPayoutModal label.form-label {
    color: #f8fafc !important;
}

/* Payment Gateway Cards (PayPal, Payoneer, Wise, SWIFT, USDT, CIH Bank, Bitcoin) */
html[data-theme="dark"] .pb-gateway-name,
html.dark-mode .pb-gateway-name,
html[data-theme="dark"] .pb-method-card .fw-bold,
html.dark-mode .pb-method-card .fw-bold {
    color: #f8fafc !important;
}

html[data-theme="dark"] .pb-badge-min,
html.dark-mode .pb-badge-min,
html[data-theme="dark"] .pb-method-card .badge.pb-badge-min {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .pb-badge-fee,
html.dark-mode .pb-badge-fee,
html[data-theme="dark"] .pb-method-card .badge.pb-badge-fee {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

/* Step 2 Summary Calculation Box */
html[data-theme="dark"] .pb-receipt-box,
html.dark-mode .pb-receipt-box {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
}

html[data-theme="dark"] .pb-receipt-box > div,
html.dark-mode .pb-receipt-box > div {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .pb-receipt-box span.pb-tabular-num,
html.dark-mode .pb-receipt-box span.pb-tabular-num {
    color: #f8fafc !important;
}

html[data-theme="dark"] .pb-receipt-box strong,
html.dark-mode .pb-receipt-box strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .pb-receipt-box strong.text-success,
html.dark-mode .pb-receipt-box strong.text-success {
    color: #34d399 !important;
}

html[data-theme="dark"] .pb-receipt-box div[style*="border-top"],
html.dark-mode .pb-receipt-box div[style*="border-top"] {
    border-top: 1px dashed #334155 !important;
}

/* Payout Details Modal Net Received Card & Account Info */
html[data-theme="dark"] .pb-detail-net-card,
html.dark-mode .pb-detail-net-card,
html[data-theme="dark"] #detailsModal .rounded-3[style*="border"],
html.dark-mode #detailsModal .rounded-3[style*="border"] {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
}

html[data-theme="dark"] #detailsModal #detailRefCode,
html.dark-mode #detailsModal #detailRefCode {
    color: #f8fafc !important;
}

html[data-theme="dark"] #detailsModal #detailNet,
html.dark-mode #detailsModal #detailNet {
    color: #34d399 !important;
}

html[data-theme="dark"] #detailsModal #detailMethod,
html.dark-mode #detailsModal #detailMethod {
    color: #f8fafc !important;
}

html[data-theme="dark"] #detailsModal #detailFields,
html[data-theme="dark"] #detailsModal #detailTx,
html[data-theme="dark"] #detailsModal #detailNote,
html.dark-mode #detailsModal #detailFields,
html.dark-mode #detailsModal #detailTx,
html.dark-mode #detailsModal #detailNote {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] #detailsModal #detailFields strong,
html.dark-mode #detailsModal #detailFields strong {
    color: #f8fafc !important;
}

/* Payout History Table Method Name & Records Badge */
html[data-theme="dark"] .pb-history-method-name,
html.dark-mode .pb-history-method-name,
html[data-theme="dark"] .pb-history-table td .fw-semibold,
html.dark-mode .pb-history-table td .fw-semibold {
    color: #f8fafc !important;
}

html[data-theme="dark"] .pb-history-records-badge,
html.dark-mode .pb-history-records-badge {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #e2e8f0 !important;
}

/* Status Badges (Pending, Paid, Rejected, Cancelled) in Table & Details Modal */
html[data-theme="dark"] .pb-status-pending,
html.dark-mode .pb-status-pending {
    background: rgba(245, 158, 11, 0.18) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    color: #fbbf24 !important;
}

html[data-theme="dark"] .pb-status-pending svg,
html.dark-mode .pb-status-pending svg {
    stroke: #fbbf24 !important;
}

html[data-theme="dark"] .pb-status-paid,
html.dark-mode .pb-status-paid {
    background: rgba(16, 185, 129, 0.18) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: #34d399 !important;
}

html[data-theme="dark"] .pb-status-paid svg,
html.dark-mode .pb-status-paid svg {
    stroke: #34d399 !important;
}

html[data-theme="dark"] .pb-status-rejected,
html.dark-mode .pb-status-rejected {
    background: rgba(239, 68, 68, 0.18) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #f87171 !important;
}

html[data-theme="dark"] .pb-status-rejected svg,
html.dark-mode .pb-status-rejected svg {
    stroke: #f87171 !important;
}

html[data-theme="dark"] .pb-status-cancelled,
html.dark-mode .pb-status-cancelled {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #94a3b8 !important;
}

/* ==========================================================================
   27. Video Watch Page (`/watch` or `file.view`) & Creator Incentive Section
   ========================================================================== */

/* Main Creator Incentive Card */
html[data-theme="dark"] .watch-creator-card,
html.dark-mode .watch-creator-card {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .badge-creator-program,
html.dark-mode .badge-creator-program {
    background: rgba(37, 99, 235, 0.18) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

html[data-theme="dark"] .badge-bonus-pill,
html.dark-mode .badge-bonus-pill {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

html[data-theme="dark"] .creator-headline,
html.dark-mode .creator-headline {
    color: #f8fafc !important;
}

html[data-theme="dark"] .creator-lead,
html.dark-mode .creator-lead {
    color: #94a3b8 !important;
}

/* 3 Step Cards on Left / Right */
html[data-theme="dark"] .creator-step-row,
html.dark-mode .creator-step-row {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
}

html[data-theme="dark"] .creator-step-row:hover,
html.dark-mode .creator-step-row:hover {
    background: #162032 !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .creator-step-icon-wrap,
html.dark-mode .creator-step-icon-wrap {
    background: rgba(37, 99, 235, 0.18) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] .creator-step-icon-wrap svg,
html.dark-mode .creator-step-icon-wrap svg {
    color: #60a5fa !important;
    stroke: #60a5fa !important;
}

html[data-theme="dark"] .creator-step-tag,
html.dark-mode .creator-step-tag {
    background: #2563eb !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .creator-step-title,
html.dark-mode .creator-step-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .creator-step-desc,
html.dark-mode .creator-step-desc {
    color: #94a3b8 !important;
}

/* Simulator Box (Calculator) */
html[data-theme="dark"] .simulator-box,
html.dark-mode .simulator-box {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
}

html[data-theme="dark"] .sim-header-title,
html.dark-mode .sim-header-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .sim-badge-cpm,
html.dark-mode .sim-badge-cpm {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] .sim-badge-cpm svg,
html.dark-mode .sim-badge-cpm svg {
    color: #60a5fa !important;
    stroke: #60a5fa !important;
}

html[data-theme="dark"] .sim-presets-label,
html.dark-mode .sim-presets-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .btn-sim-preset,
html.dark-mode .btn-sim-preset {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .btn-sim-preset:hover,
html.dark-mode .btn-sim-preset:hover {
    background: #243047 !important;
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
}

html[data-theme="dark"] .btn-sim-preset.active,
html.dark-mode .btn-sim-preset.active {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .simulator-box label,
html.dark-mode .simulator-box label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] #simViewsDisplay,
html[data-theme="dark"] .simulator-box .text-slate-900,
html.dark-mode #simViewsDisplay,
html.dark-mode .simulator-box .text-slate-900 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .custom-slider,
html.dark-mode .custom-slider {
    background: #334155 !important;
}

html[data-theme="dark"] .custom-slider::-webkit-slider-thumb,
html.dark-mode .custom-slider::-webkit-slider-thumb {
    border-color: #1e293b !important;
}

html[data-theme="dark"] .custom-slider::-moz-range-thumb,
html.dark-mode .custom-slider::-moz-range-thumb {
    border-color: #1e293b !important;
}

html[data-theme="dark"] .sim-slider-wrapper + div span,
html.dark-mode .sim-slider-wrapper + div span {
    color: #64748b !important;
}

/* Simulator Breakdown Card */
html[data-theme="dark"] .simulator-breakdown-card,
html.dark-mode .simulator-breakdown-card {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
}

html[data-theme="dark"] .breakdown-label,
html[data-theme="dark"] .breakdown-label.text-slate-600,
html.dark-mode .breakdown-label,
html.dark-mode .breakdown-label.text-slate-600 {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .breakdown-value,
html[data-theme="dark"] #simBreakdownViewsRev,
html.dark-mode .breakdown-value,
html.dark-mode #simBreakdownViewsRev {
    color: #f8fafc !important;
}

html[data-theme="dark"] .breakdown-divider,
html.dark-mode .breakdown-divider {
    background: #334155 !important;
}

html[data-theme="dark"] .breakdown-total-label,
html.dark-mode .breakdown-total-label {
    color: #f8fafc !important;
}

html[data-theme="dark"] .breakdown-total-row svg,
html.dark-mode .breakdown-total-row svg {
    color: #94a3b8 !important;
    stroke: #94a3b8 !important;
}

html[data-theme="dark"] .breakdown-total-sub,
html.dark-mode .breakdown-total-sub {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .breakdown-total-value,
html[data-theme="dark"] #simGrandTotalDisplay,
html.dark-mode .breakdown-total-value,
html.dark-mode #simGrandTotalDisplay {
    color: #34d399 !important;
}

/* Pre-Watch Hook Bar */
html[data-theme="dark"] #preWatchHookBar,
html.dark-mode #preWatchHookBar {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .hook-badge,
html.dark-mode .hook-badge {
    background: rgba(37, 99, 235, 0.18) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] .hook-text-desktop,
html[data-theme="dark"] .hook-text-mobile,
html.dark-mode .hook-text-desktop,
html.dark-mode .hook-text-mobile {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .hook-text-desktop strong,
html[data-theme="dark"] .hook-text-mobile strong,
html.dark-mode .hook-text-desktop strong,
html.dark-mode .hook-text-mobile strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .btn-hook-steps,
html[data-theme="dark"] .btn-hook-steps-mobile,
html.dark-mode .btn-hook-steps,
html.dark-mode .btn-hook-steps-mobile {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .btn-hook-steps:hover,
html[data-theme="dark"] .btn-hook-steps-mobile:hover,
html.dark-mode .btn-hook-steps:hover,
html.dark-mode .btn-hook-steps-mobile:hover {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .hook-steps-collapse,
html.dark-mode .hook-steps-collapse {
    border-top: 1px solid #334155 !important;
}

html[data-theme="dark"] .hook-step-card,
html.dark-mode .hook-step-card {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
}

html[data-theme="dark"] .hook-step-info strong,
html.dark-mode .hook-step-info strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .hook-step-info p,
html.dark-mode .hook-step-info p {
    color: #94a3b8 !important;
}

/* Video Head, Info Bar, and Actions */
html[data-theme="dark"] .watch-head,
html.dark-mode .watch-head {
    background: transparent !important;
}

html[data-theme="dark"] .watch-title,
html.dark-mode .watch-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .watch-desc,
html.dark-mode .watch-desc {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .watch-by strong,
html.dark-mode .watch-by strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .watch-by span,
html.dark-mode .watch-by span {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .watch-monetized-pill,
html.dark-mode .watch-monetized-pill {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .watch-report-btn,
html.dark-mode .watch-report-btn {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .watch-report-btn:hover,
html.dark-mode .watch-report-btn:hover {
    background: #283548 !important;
    color: #f8fafc !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .watch-private,
html.dark-mode .watch-private {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .watch-processing__card,
html.dark-mode .watch-processing__card {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .watch-processing__card p,
html.dark-mode .watch-processing__card p {
    color: #94a3b8 !important;
}

/* Watch Page Ads & Floating Elements */
html[data-theme="dark"] .watch-skyscraper-ad > div,
html.dark-mode .watch-skyscraper-ad > div {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .watch-ad-native,
html.dark-mode .watch-ad-native {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px dashed #334155 !important;
}

/* Modals on Watch Page (Share, Report) */
html[data-theme="dark"] #shareVideo .modal-content,
html[data-theme="dark"] #report .modal-content,
html.dark-mode #shareVideo .modal-content,
html.dark-mode #report .modal-content {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] #shareVideo .modal-header,
html[data-theme="dark"] #report .modal-header,
html.dark-mode #shareVideo .modal-header,
html.dark-mode #report .modal-header {
    border-bottom: 1px solid #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] #shareVideo .modal-title,
html[data-theme="dark"] #report .modal-title,
html.dark-mode #shareVideo .modal-title,
html.dark-mode #report .modal-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .yt-share__title,
html.dark-mode .yt-share__title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .watch-field label,
html.dark-mode .watch-field label {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .watch-copy input,
html[data-theme="dark"] .watch-copy textarea,
html.dark-mode .watch-copy input,
html.dark-mode .watch-copy textarea {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .watch-copy .btn-copy,
html.dark-mode .watch-copy .btn-copy {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] .watch-copy .btn-copy:hover,
html.dark-mode .watch-copy .btn-copy:hover {
    background: #283548 !important;
    color: #93c5fd !important;
    border-color: #3b82f6 !important;
}

/* Watch Page FAQ and Blog section dark mode */
html[data-theme="dark"] .faq-section .faq-board details,
html.dark-mode .faq-section .faq-board details {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .faq-section .faq-board summary,
html.dark-mode .faq-section .faq-board summary {
    color: #f8fafc !important;
}

html[data-theme="dark"] .faq-section .faq-board .ck-html,
html.dark-mode .faq-section .faq-board .ck-html {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .sheet-posts a,
html.dark-mode .sheet-posts a {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .sheet-posts a strong,
html.dark-mode .sheet-posts a strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .sheet-posts a small,
html[data-theme="dark"] .sheet-posts a em,
html.dark-mode .sheet-posts a small,
html.dark-mode .sheet-posts a em {
    color: #94a3b8 !important;
}


/* ==========================================================================
   CHARAMIT - Dark Mode: Mobile Subbar & Folders System
   ========================================================================== */

html[data-theme="dark"] .desk-bar__subbar,
html.dark-mode .desk-bar__subbar {
    background: #1e293b !important;
    border-top: 1px solid #334155 !important;
    border-bottom: 1px solid #334155 !important;
}

html[data-theme="dark"] .desk-bar__subbar-search .form-control,
html.dark-mode .desk-bar__subbar-search .form-control {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .desk-bar__subbar-search .form-control::placeholder,
html.dark-mode .desk-bar__subbar-search .form-control::placeholder {
    color: #64748b !important;
}

html[data-theme="dark"] .folder-breadcrumbs,
html.dark-mode .folder-breadcrumbs {
    background: #1e293b !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .folder-breadcrumbs .breadcrumb-item a,
html.dark-mode .folder-breadcrumbs .breadcrumb-item a {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .folder-breadcrumbs .breadcrumb-item.active,
html.dark-mode .folder-breadcrumbs .breadcrumb-item.active {
    color: #60a5fa !important;
}

html[data-theme="dark"] .folder-card,
html.dark-mode .folder-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .folder-card:hover,
html.dark-mode .folder-card:hover {
    background: #243044 !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .folder-card__name,
html.dark-mode .folder-card__name {
    color: #f8fafc !important;
}

html[data-theme="dark"] .folder-card__count,
html.dark-mode .folder-card__count {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .video-manager-bar,
html.dark-mode .video-manager-bar {
    background: #1e293b !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .file-manager-table th,
html.dark-mode .file-manager-table th {
    background-color: #0f172a !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .file-manager-table td,
html.dark-mode .file-manager-table td {
    border-color: #334155 !important;
}

html[data-theme="dark"] .file-manager-table tbody tr:hover,
html.dark-mode .file-manager-table tbody tr:hover {
    background-color: #243044 !important;
}

html[data-theme="dark"] .file-manager-table tbody tr.is-selected,
html.dark-mode .file-manager-table tbody tr.is-selected {
    background-color: #1e3a8a !important;
}


/* Dark Mode: Folder Share Page & Thumbnail Preview */
html[data-theme="dark"] .folder-share-header,
html.dark-mode .folder-share-header {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .folder-share-header h1,
html.dark-mode .folder-share-header h1 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .thumb-preview-box,
html.dark-mode .thumb-preview-box {
    background: #0f172a !important;
    border-color: #334155 !important;
}

/* Dark Mode: Folder UI Polish, Drag & Drop & Modals */
html[data-theme="dark"] .folder-icon-box,
html.dark-mode .folder-icon-box {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    color: #f59e0b !important;
    border: 1px solid #475569 !important;
}

html[data-theme="dark"] .breadcrumb-icon-box,
html.dark-mode .breadcrumb-icon-box {
    background: #1e3a8a !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] .active-folder-pill,
html.dark-mode .active-folder-pill {
    background: #1e293b !important;
    color: #93c5fd !important;
    border-color: #3b82f6 !important;
}

html[data-theme="dark"] .drop-target-active,
html.dark-mode .drop-target-active {
    outline: 2px dashed #3b82f6 !important;
    outline-offset: 3px !important;
    background: #1e3a8a !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35) !important;
}

html[data-theme="dark"] .breadcrumb-root-drop.drop-target-active,
html.dark-mode .breadcrumb-root-drop.drop-target-active {
    background: #1e3a8a !important;
}

html[data-theme="dark"] .thumb-dropzone,
html.dark-mode .thumb-dropzone {
    border-color: #334155 !important;
    background: #0f172a !important;
}

html[data-theme="dark"] .thumb-dropzone:hover,
html[data-theme="dark"] .thumb-dropzone.dragover,
html.dark-mode .thumb-dropzone:hover,
html.dark-mode .thumb-dropzone.dragover {
    border-color: #3b82f6 !important;
    background: #1e293b !important;
}

html[data-theme="dark"] .desk-empty-icon-box,
html.dark-mode .desk-empty-icon-box {
    background: #0f172a !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .desk-empty-card,
html.dark-mode .desk-empty-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .folder-share-link-input,
html.dark-mode .folder-share-link-input {
    background: #0f172a !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}
