/* =====================================================================
   THEME SWITCH — Suppress transitions during theme change
   ===================================================================== */

.jsc-theme-switching,
.jsc-theme-switching *,
.jsc-theme-switching *::before,
.jsc-theme-switching *::after {
    transition: none !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-delay: 0s !important;
}

/* =====================================================================
   JAVID SOFTWARE CENTER — DARK MODE
   ===================================================================== */

[data-theme="dark"] {
    --color-bg:            #0f172a;
    --color-bg-soft:       #1e293b;
    --color-bg-dark:       #020617;
    --color-text:          #f1f5f9;
    --color-text-soft:     #cbd5e1;
    --color-muted:         #94a3b8;
    --color-border:        #334155;
    --color-primary:       #3b82f6;
    --color-primary-dark:  #60a5fa;
    --color-primary-light: #1e3a8a;
    color-scheme: dark;
}

[data-theme="dark"] html,
[data-theme="dark"] body {
    background: #0f172a;
    color: #f1f5f9;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #f1f5f9;
}

[data-theme="dark"] p { color: #cbd5e1; }
[data-theme="dark"] strong { color: #f1f5f9; }
[data-theme="dark"] a { color: #60a5fa; }
[data-theme="dark"] a:hover { color: #93c5fd; }
[data-theme="dark"] hr { border-top-color: #334155; }
[data-theme="dark"] small { color: #94a3b8; }

/* ─── Header ─── */
[data-theme="dark"] .site-header {
    background: #0f172a;
    border-bottom-color: #334155;
}

[data-theme="dark"] .brand-name { color: #f1f5f9; }
[data-theme="dark"] .brand-tag { color: #64748b; }

[data-theme="dark"] .primary-nav a { color: #cbd5e1; }

[data-theme="dark"] .primary-nav a:hover,
[data-theme="dark"] .primary-nav a.active {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

[data-theme="dark"] .nav-toggle {
    border-color: #334155;
    background: #1e293b;
}

[data-theme="dark"] .nav-toggle .bar { background: #f1f5f9; }

/* ─── Search ─── */
[data-theme="dark"] .jsc-search-box {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .jsc-search-input { color: #f1f5f9; }
[data-theme="dark"] .jsc-search-input::placeholder { color: #64748b; }

[data-theme="dark"] .jsc-search-dropdown {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .jsc-result { color: #f1f5f9; }

[data-theme="dark"] .jsc-result:hover,
[data-theme="dark"] .jsc-result.is-active {
    background: #0f172a;
}

/* ─── Buttons ─── */
[data-theme="dark"] .btn-primary {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

[data-theme="dark"] .btn-primary:hover {
    background: #60a5fa;
    border-color: #60a5fa;
    color: #fff;
}

[data-theme="dark"] .btn-secondary {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .btn-secondary:hover {
    background: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .btn-outline {
    background: transparent;
    color: #60a5fa;
    border-color: #3b82f6;
}

/* ─── Cards ─── */
[data-theme="dark"] .card {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .card:hover { border-color: #475569; }
[data-theme="dark"] .card-media { background: #0f172a; }
[data-theme="dark"] .card-title { color: #f1f5f9; }
[data-theme="dark"] .card-title a { color: #f1f5f9; }
[data-theme="dark"] .card-text { color: #94a3b8; }

[data-theme="dark"] .card-meta {
    border-top-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .feature-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .feature-icon {
    background: #1e3a8a;
    color: #60a5fa;
}

/* ─── Hero ─── */
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e293b 100%);
}

[data-theme="dark"] .hero h1 { color: #f1f5f9; }
[data-theme="dark"] .hero p.lead { color: #94a3b8; }

[data-theme="dark"] .hero-badge {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] .hero-stats { border-top-color: #334155; }
[data-theme="dark"] .hero-stat .num { color: #f1f5f9; }
[data-theme="dark"] .hero-stat .lbl { color: #94a3b8; }

/* ─── Page header ─── */
[data-theme="dark"] .page-header {
    background: #1e293b;
    border-bottom-color: #334155;
}

[data-theme="dark"] .page-header h1 { color: #f1f5f9; }
[data-theme="dark"] .page-header p { color: #94a3b8; }

/* ─── Sections ─── */
[data-theme="dark"] .section-soft { background: #1e293b; }
[data-theme="dark"] .section-sm { background: #0f172a !important; }

[data-theme="dark"] .section:not(.section-soft):not(.section-sm) {
    background: #0f172a;
}

[data-theme="dark"] .section:not(.section-soft):not(.section-sm) .container {
    background: transparent;
}

/* ─── Badges ─── */
[data-theme="dark"] .badge-primary { background: #1e3a8a; color: #93c5fd; }
[data-theme="dark"] .badge-success { background: #064e3b; color: #6ee7b7; }
[data-theme="dark"] .badge-danger  { background: #7f1d1d; color: #fca5a5; }
[data-theme="dark"] .badge-warning { background: #78350f; color: #fcd34d; }
[data-theme="dark"] .badge-info    { background: #164e63; color: #67e8f9; }
[data-theme="dark"] .badge-muted   { background: #334155; color: #cbd5e1; }

/* ─── Alerts ─── */
[data-theme="dark"] .alert-success { background: #064e3b; border-color: #10b981; color: #a7f3d0; }
[data-theme="dark"] .alert-danger  { background: #7f1d1d; border-color: #ef4444; color: #fecaca; }
[data-theme="dark"] .alert-warning { background: #78350f; border-color: #f59e0b; color: #fde68a; }
[data-theme="dark"] .alert-info    { background: #164e63; border-color: #06b6d4; color: #a5f3fc; }

/* ─── Forms ─── */
[data-theme="dark"] .form-label { color: #e2e8f0; }

[data-theme="dark"] .form-control {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .form-control::placeholder { color: #64748b !important; }

[data-theme="dark"] .form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
}

[data-theme="dark"] .form-hint { color: #94a3b8; }

/* ─── Tables ─── */
[data-theme="dark"] .table-wrap {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .table th {
    background: #0f172a;
    color: #94a3b8;
    border-bottom-color: #334155;
}

[data-theme="dark"] .table td {
    color: #cbd5e1;
    border-bottom-color: #334155;
}

[data-theme="dark"] .table tbody tr:hover { background: #0f172a; }

/* ─── Empty state ─── */
[data-theme="dark"] .empty-state {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .empty-state h3 { color: #cbd5e1; }
[data-theme="dark"] .empty-state p { color: #94a3b8; }

/* ─── Pagination ─── */
[data-theme="dark"] .pagination a,
[data-theme="dark"] .pagination span {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] .pagination .current {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

/* ─── Footer ─── */
[data-theme="dark"] .site-footer {
    background: #020617;
    color: #94a3b8;
}

[data-theme="dark"] .footer-col h4 { color: #f1f5f9; }
[data-theme="dark"] .footer-col ul a { color: #cbd5e1; }

/* ─── Breadcrumbs ─── */
[data-theme="dark"] .breadcrumbs a { color: #94a3b8; }
[data-theme="dark"] .breadcrumbs .current { color: #f1f5f9; }

/* ─── FAQ ─── */
[data-theme="dark"] .faq-item {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .faq-question { color: #f1f5f9; }

[data-theme="dark"] .faq-answer {
    color: #cbd5e1;
    border-top-color: #334155;
}

/* ─── Contact ─── */
[data-theme="dark"] .contact-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .contact-card-head {
    background: #1e293b;
    border-bottom-color: #334155;
}

[data-theme="dark"] .contact-card-title { color: #f1f5f9; }
[data-theme="dark"] .contact-card-body { background: #1e293b; }
[data-theme="dark"] .contact-info-value { color: #f1f5f9; }
[data-theme="dark"] .contact-info-label { color: #94a3b8; }

/* ─── Dark Mode Toggle Button ─── */
.jsc-dark-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    color: #1e293b;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.jsc-dark-toggle:hover {
    background: #f1f5f9;
    transform: scale(1.08);
}

[data-theme="dark"] .jsc-dark-toggle {
    border-color: #334155;
    color: #f1f5f9;
    background: #1e293b;
}

[data-theme="dark"] .jsc-dark-toggle:hover { background: #334155; }

/* ─── Smooth transitions ─── */
html, body, .site-header, .card, .form-control, .btn, .table-wrap {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* =====================================================================
   ACCOUNT DASHBOARD — Panels + Empty states
   ===================================================================== */

[data-theme="dark"] .account-main .account-panel {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .account-main .account-panel-head {
    background: #1e293b !important;
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .account-main .account-panel-head h2 { color: #f1f5f9 !important; }
[data-theme="dark"] .account-main .account-panel-head a { color: #60a5fa !important; }

[data-theme="dark"] .account-main .account-panel-body {
    background: #1e293b !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .account-main .empty-state,
[data-theme="dark"] .account-main .account-empty {
    background: #0f172a !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .account-main .empty-state h3,
[data-theme="dark"] .account-main .account-empty h3 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .account-main .empty-state p,
[data-theme="dark"] .account-main .account-empty p {
    color: #94a3b8 !important;
}

[data-theme="dark"] .account-main .empty-state .icon,
[data-theme="dark"] .account-main .account-empty .icon {
    opacity: 0.7;
}

[data-theme="dark"] .account-main .account-panel-body > div[style*="text-align"],
[data-theme="dark"] .account-main .account-panel-body > div[style*="padding"] {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .account-main [style*="background: #fff"],
[data-theme="dark"] .account-main [style*="background:#fff"],
[data-theme="dark"] .account-main [style*="background: #ffffff"],
[data-theme="dark"] .account-main [style*="background:#ffffff"] {
    background: #1e293b !important;
}

[data-theme="dark"] .account-main .quick-actions,
[data-theme="dark"] .account-main [class*="quick"] {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .account-main .account-list-item,
[data-theme="dark"] .account-main .list-item {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .account-main .account-list-item:hover,
[data-theme="dark"] .account-main .list-item:hover {
    background: #0f172a !important;
}

[data-theme="dark"] .account-main h1,
[data-theme="dark"] .account-main h2,
[data-theme="dark"] .account-main h3,
[data-theme="dark"] .account-main h4 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .account-main p { color: #cbd5e1 !important; }
[data-theme="dark"] .account-main strong { color: #f1f5f9 !important; }
[data-theme="dark"] .account-main small { color: #94a3b8 !important; }

/* =====================================================================
   ACCOUNT SIDEBAR — Dark Mode
   ===================================================================== */

[data-theme="dark"] .account-sidebar {
    background: #0f172a !important;
    border-right-color: #334155 !important;
}

[data-theme="dark"] .account-nav { background: transparent !important; }
[data-theme="dark"] .account-nav-section { color: #64748b !important; }

[data-theme="dark"] .account-nav-item {
    color: #cbd5e1 !important;
    background: transparent !important;
}

[data-theme="dark"] .account-nav-item:hover {
    background: #1e293b !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .account-nav-item.active {
    background: #1e3a8a !important;
    color: #93c5fd !important;
}

[data-theme="dark"] .account-nav-item.active .account-nav-icon { color: #93c5fd !important; }
[data-theme="dark"] .account-nav-icon { color: inherit !important; }

[data-theme="dark"] .account-nav-count {
    background: #3b82f6 !important;
    color: #fff !important;
}

/* =====================================================================
   ACCOUNT DASHBOARD — Stat Cards
   ===================================================================== */

[data-theme="dark"] .account-main .account-stat,
[data-theme="dark"] .account-main .account-stat-card,
[data-theme="dark"] .account-main .stat-card,
[data-theme="dark"] .account-main .dash-card,
[data-theme="dark"] .account-main .account-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .account-main .account-stat h1,
[data-theme="dark"] .account-main .account-stat h2,
[data-theme="dark"] .account-main .account-stat h3,
[data-theme="dark"] .account-main .account-stat h4,
[data-theme="dark"] .account-main .stat-card h1,
[data-theme="dark"] .account-main .stat-card h2,
[data-theme="dark"] .account-main .stat-card h3,
[data-theme="dark"] .account-main .stat-card h4 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .account-main .account-panel-body > div > div[style*="background"],
[data-theme="dark"] .account-main .account-panel-body > div[style*="background"] {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .account-main [class*="stat"],
[data-theme="dark"] .account-main [class*="metric"],
[data-theme="dark"] .account-main [class*="overview"] {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .account-main [class*="stat"] h1,
[data-theme="dark"] .account-main [class*="stat"] h2,
[data-theme="dark"] .account-main [class*="stat"] h3,
[data-theme="dark"] .account-main [class*="stat"] h4,
[data-theme="dark"] .account-main [class*="stat"] strong,
[data-theme="dark"] .account-main [class*="stat"] span {
    color: inherit;
}

[data-theme="dark"] .account-main div[style*="border-radius"][style*="background"],
[data-theme="dark"] .account-main div[style*="border-radius: 12px"],
[data-theme="dark"] .account-main div[style*="border-radius: 14px"],
[data-theme="dark"] .account-main div[style*="border-radius: 16px"] {
    border-color: #334155;
}

[data-theme="dark"] .account-main .stats-grid > *,
[data-theme="dark"] .account-main .stats-row > *,
[data-theme="dark"] .account-main .dashboard-stats > * {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

/* =====================================================================
   SMM BUY PAGE — Price Box + Service Info
   ===================================================================== */

[data-theme="dark"] .account-main div[style*="background: #f8fafc"],
[data-theme="dark"] .account-main div[style*="background:#f8fafc"],
[data-theme="dark"] .account-main div[style*="background: #f1f5f9"],
[data-theme="dark"] .account-main div[style*="background:#f1f5f9"] {
    background: #0f172a !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .account-main div[style*="background: #f8fafc"] span,
[data-theme="dark"] .account-main div[style*="background:#f8fafc"] span,
[data-theme="dark"] .account-main div[style*="background: #f8fafc"] div,
[data-theme="dark"] .account-main div[style*="background:#f8fafc"] div,
[data-theme="dark"] .account-main div[style*="background: #f8fafc"] strong,
[data-theme="dark"] .account-main div[style*="background:#f8fafc"] strong {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .account-main div[style*="background: #f8fafc"] [style*="color: #0d6efd"],
[data-theme="dark"] .account-main div[style*="background:#f8fafc"] [style*="color:#0d6efd"] {
    color: #60a5fa !important;
}

[data-theme="dark"] .account-main aside .account-panel,
[data-theme="dark"] .account-main aside .card {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .account-main aside .account-panel-head,
[data-theme="dark"] .account-main aside .card-header {
    background: #1e293b !important;
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .account-main aside .account-panel-head h2,
[data-theme="dark"] .account-main aside h2,
[data-theme="dark"] .account-main aside h3 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .account-main aside .account-panel-body,
[data-theme="dark"] .account-main aside .card-body {
    background: #1e293b !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .account-main aside p,
[data-theme="dark"] .account-main aside span,
[data-theme="dark"] .account-main aside div,
[data-theme="dark"] .account-main aside strong,
[data-theme="dark"] .account-main aside small,
[data-theme="dark"] .account-main aside label {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .account-main aside strong { color: #f1f5f9 !important; }

[data-theme="dark"] .account-main aside div[style*="background: #eff6ff"],
[data-theme="dark"] .account-main aside div[style*="background:#eff6ff"],
[data-theme="dark"] .account-main aside div[style*="background: #f8fafc"],
[data-theme="dark"] .account-main aside div[style*="background:#f8fafc"] {
    background: #0f172a !important;
}

[data-theme="dark"] .account-main aside [style*="background: #f0f9ff"],
[data-theme="dark"] .account-main aside [style*="background:#f0f9ff"],
[data-theme="dark"] .account-main aside [style*="background: #eff6ff"],
[data-theme="dark"] .account-main aside [style*="background:#eff6ff"] {
    background: #0f172a !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .account-main aside .account-panel[style*="linear-gradient"],
[data-theme="dark"] .account-main aside [style*="linear-gradient"] {
    color: #fff !important;
}

[data-theme="dark"] .account-main .form-hint,
[data-theme="dark"] .account-main .form-label + .form-hint {
    color: #94a3b8 !important;
}

[data-theme="dark"] .account-main .form-label { color: #e2e8f0 !important; }
[data-theme="dark"] .account-main a[href*="smm-services"] { color: #60a5fa !important; }
[data-theme="dark"] .account-page-header h1 { color: #f1f5f9 !important; }
[data-theme="dark"] .account-page-header p { color: #94a3b8 !important; }

/* =====================================================================
   ADMIN DASHBOARD — Complete Dark Mode
   ===================================================================== */

[data-theme="dark"] .admin-body,
[data-theme="dark"] .admin-main {
    background: #0f172a !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .admin-topbar {
    background: #0f172a !important;
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .admin-brand-name { color: #f1f5f9 !important; }
[data-theme="dark"] .admin-brand-tag { color: #64748b !important; }

[data-theme="dark"] .admin-sidebar {
    background: #0f172a !important;
    border-right-color: #334155 !important;
}

[data-theme="dark"] .admin-nav { background: transparent !important; }
[data-theme="dark"] .admin-nav-section { color: #64748b !important; }

[data-theme="dark"] .admin-nav-item {
    color: #cbd5e1 !important;
    background: transparent !important;
}

[data-theme="dark"] .admin-nav-item:hover {
    background: #1e293b !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .admin-nav-item.active {
    background: #1e3a8a !important;
    color: #93c5fd !important;
}

[data-theme="dark"] .admin-nav-icon { color: inherit !important; }

[data-theme="dark"] .admin-nav-count {
    background: #3b82f6 !important;
    color: #fff !important;
}

[data-theme="dark"] .admin-page-header h1 { color: #f1f5f9 !important; }
[data-theme="dark"] .admin-page-header p { color: #94a3b8 !important; }

/* =====================================================================
   ADMIN — Stat cards
   ===================================================================== */

[data-theme="dark"] .dash-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .dash-card:hover {
    background: #1e293b !important;
    border-color: #475569 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .dash-card-label { color: #94a3b8 !important; }
[data-theme="dark"] .dash-card-value { color: #f1f5f9 !important; }
[data-theme="dark"] .dash-card-sub { color: #94a3b8 !important; }
[data-theme="dark"] .dash-card-sub.alert { color: #f87171 !important; }
[data-theme="dark"] .dash-card-sub.success { color: #34d399 !important; }
[data-theme="dark"] .dash-card-arrow { color: #475569 !important; }
[data-theme="dark"] .dash-card:hover .dash-card-arrow { color: #60a5fa !important; }
[data-theme="dark"] .dash-section-title { color: #64748b !important; }

[data-theme="dark"] .dash-card.dash-card-featured {
    background: linear-gradient(135deg, #1e40af 0%, #4c1d95 100%) !important;
    border: none !important;
}

[data-theme="dark"] .dash-card.dash-card-featured .dash-card-value,
[data-theme="dark"] .dash-card.dash-card-featured .dash-card-label,
[data-theme="dark"] .dash-card.dash-card-featured .dash-card-sub {
    color: #fff !important;
}

/* =====================================================================
   ADMIN — Panels
   ===================================================================== */

[data-theme="dark"] .admin-panel {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .admin-panel-head {
    background: #1e293b !important;
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .admin-panel-head h2 { color: #f1f5f9 !important; }
[data-theme="dark"] .admin-panel-head a { color: #60a5fa !important; }

[data-theme="dark"] .admin-panel-body {
    background: #1e293b !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .admin-list-item {
    background: transparent !important;
    border-bottom-color: #334155 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .admin-list-item:hover { background: #0f172a !important; }
[data-theme="dark"] .admin-list-title { color: #f1f5f9 !important; }
[data-theme="dark"] .admin-list-meta { color: #94a3b8 !important; }

[data-theme="dark"] .admin-list-icon {
    background: #0f172a !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .admin-list-empty { color: #94a3b8 !important; }

/* =====================================================================
   ADMIN — Forms, tables, cards
   ===================================================================== */

[data-theme="dark"] .admin-main .card {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .admin-main .card-body {
    background: #1e293b !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .admin-main h1,
[data-theme="dark"] .admin-main h2,
[data-theme="dark"] .admin-main h3,
[data-theme="dark"] .admin-main h4 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .admin-main p { color: #cbd5e1 !important; }
[data-theme="dark"] .admin-main strong { color: #f1f5f9 !important; }
[data-theme="dark"] .admin-main small { color: #94a3b8 !important; }

[data-theme="dark"] .admin-main .table-wrap {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .admin-main .table th {
    background: #0f172a !important;
    color: #94a3b8 !important;
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .admin-main .table td {
    color: #cbd5e1 !important;
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .admin-main .table tbody tr:hover { background: #0f172a !important; }

[data-theme="dark"] .admin-main .form-label { color: #e2e8f0 !important; }

[data-theme="dark"] .admin-main .form-control {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .admin-main .form-control::placeholder { color: #64748b !important; }
[data-theme="dark"] .admin-main .form-hint { color: #94a3b8 !important; }

[data-theme="dark"] .admin-main .empty-state {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .admin-main .empty-state h3 { color: #cbd5e1 !important; }
[data-theme="dark"] .admin-main .empty-state p { color: #94a3b8 !important; }

[data-theme="dark"] .admin-main .stat-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .admin-main .stat-label { color: #94a3b8 !important; }
[data-theme="dark"] .admin-main .stat-value { color: #f1f5f9 !important; }
[data-theme="dark"] .admin-main .stat-sub { color: #94a3b8 !important; }
[data-theme="dark"] .admin-main .stat-sub.alert { color: #f87171 !important; }

[data-theme="dark"] .admin-main .badge-primary { background: #1e3a8a !important; color: #93c5fd !important; }
[data-theme="dark"] .admin-main .badge-success { background: #064e3b !important; color: #6ee7b7 !important; }
[data-theme="dark"] .admin-main .badge-danger  { background: #7f1d1d !important; color: #fca5a5 !important; }
[data-theme="dark"] .admin-main .badge-warning { background: #78350f !important; color: #fcd34d !important; }
[data-theme="dark"] .admin-main .badge-info    { background: #164e63 !important; color: #67e8f9 !important; }
[data-theme="dark"] .admin-main .badge-muted   { background: #334155 !important; color: #cbd5e1 !important; }

[data-theme="dark"] .admin-main .alert-success { background: #064e3b !important; border-color: #10b981 !important; color: #a7f3d0 !important; }
[data-theme="dark"] .admin-main .alert-danger  { background: #7f1d1d !important; border-color: #ef4444 !important; color: #fecaca !important; }
[data-theme="dark"] .admin-main .alert-warning { background: #78350f !important; border-color: #f59e0b !important; color: #fde68a !important; }
[data-theme="dark"] .admin-main .alert-info    { background: #164e63 !important; border-color: #06b6d4 !important; color: #a5f3fc !important; }

[data-theme="dark"] .admin-main [style*="background: #fff"],
[data-theme="dark"] .admin-main [style*="background:#fff"],
[data-theme="dark"] .admin-main [style*="background: #ffffff"],
[data-theme="dark"] .admin-main [style*="background:#ffffff"],
[data-theme="dark"] .admin-main [style*="background: #f8fafc"],
[data-theme="dark"] .admin-main [style*="background:#f8fafc"],
[data-theme="dark"] .admin-main [style*="background: #f1f5f9"],
[data-theme="dark"] .admin-main [style*="background:#f1f5f9"] {
    background: #0f172a !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .admin-nav-section { color: #64748b !important; }
[data-theme="dark"] .admin-page-header { border-bottom-color: #334155 !important; }

/* =====================================================================
   PUBLIC SMM SERVICES PAGE — Dark Mode Fix
   ===================================================================== */

[data-theme="dark"] main [style*="background: #f0fdf4"],
[data-theme="dark"] main [style*="background:#f0fdf4"] {
    background: #064e3b !important;
    border: 1px solid #10b981 !important;
}

[data-theme="dark"] main [style*="background: #f0fdf4"] div,
[data-theme="dark"] main [style*="background:#f0fdf4"] div,
[data-theme="dark"] main [style*="background: #f0fdf4"] span,
[data-theme="dark"] main [style*="background:#f0fdf4"] span {
    color: #6ee7b7 !important;
}

[data-theme="dark"] main [style*="color: #16a34a"],
[data-theme="dark"] main [style*="color:#16a34a"] {
    color: #34d399 !important;
}

[data-theme="dark"] main .card div[style*="color: #64748b"],
[data-theme="dark"] main .card div[style*="color:#64748b"] {
    color: #94a3b8 !important;
}

[data-theme="dark"] main .card div[style*="background: #eff6ff"],
[data-theme="dark"] main .card div[style*="background:#eff6ff"] {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
}

[data-theme="dark"] main .card h3 { color: #f1f5f9 !important; }

[data-theme="dark"] main .badge-muted {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] main .section-sm { background: #0f172a !important; }

/* Boost Services — results info & grid in dark */
[data-theme="dark"] .jsc-results-info { color: #94a3b8; }
[data-theme="dark"] .jsc-results-count { color: #cbd5e1; }
[data-theme="dark"] .jsc-loading { color: #94a3b8; }
[data-theme="dark"] .jsc-loading p { color: #94a3b8 !important; }

/* =====================================================================
   BOOST SERVICES — Layout stability
   ===================================================================== */

#jscServicesSection {
    min-height: 600px;
}

@media (max-width: 860px) {
    #jscServicesSection { min-height: 500px; }
}

@media (max-width: 560px) {
    #jscServicesSection { min-height: 400px; }
}

/* =====================================================================
   BOOST SERVICES — Platform logo visibility in dark mode
   ===================================================================== */

[data-theme="dark"] svg.smm-plat-svg[data-platform="tiktok"] path,
[data-theme="dark"] svg.smm-plat-svg[data-platform="x"] path,
[data-theme="dark"] svg.smm-plat-svg[data-platform="twitter"] path {
    fill: #f1f5f9 !important;
}

[data-theme="dark"] #jscFallbackGrid .smm-card-icon svg path[fill="#000000"],
[data-theme="dark"] #jscFallbackGrid .smm-card-icon svg path[fill="#000"] {
    fill: #f1f5f9 !important;
}

[data-theme="dark"] svg.smm-plat-svg[data-platform="snapchat"] path {
    fill: #FFFC00 !important;
}