/* Loaded after page-specific Blade styles so dark mode wins consistently. */
:root[data-theme="dark"] .button.secondary,
:root[data-theme="dark"] button.secondary,
:root[data-theme="dark"] .button.ghost,
:root[data-theme="dark"] button.ghost {
    color: #edf2fb !important;
    background: #22324b !important;
    border-color: #526783 !important;
}

:root[data-theme="dark"] .button.primary,
:root[data-theme="dark"] button.primary,
:root[data-theme="dark"] input[type="submit"].primary,
:root[data-theme="dark"] .nav-pill {
    color: #fff !important;
    background: linear-gradient(135deg, #536bd4 0%, #4056b9 100%) !important;
}

:root[data-theme="dark"] .nav .language-trigger {
    color: #edf2fb !important;
    background: #22324b !important;
}

:root[data-theme="dark"] .empty,
:root[data-theme="dark"] .dashboard-empty-domains {
    color: #dbe6f6 !important;
    background: #22324b !important;
    border-color: #526783 !important;
}

:root[data-theme="dark"] .empty-state {
    color: #edf2fb !important;
    border-color: #526783 !important;
    background: linear-gradient(135deg, rgba(72, 96, 205, .18), rgba(24, 34, 52, .92)) !important;
}

:root[data-theme="dark"] .empty-state p,
:root[data-theme="dark"] .dashboard-empty-domains p { color: #b9c6d9 !important; }

:root[data-theme="dark"] .alert.info,
:root[data-theme="dark"] [style*="color: #1d4ed8"],
:root[data-theme="dark"] [style*="color:#1d4ed8"] {
    color: #c2ceff !important;
}

:root[data-theme="dark"] [style*="color: #b42318"],
:root[data-theme="dark"] [style*="color:#b42318"],
:root[data-theme="dark"] .field-error { color: #ffaaa3 !important; }

:root[data-theme="dark"] .rich-preview-builder {
    color: #edf2fb;
    background: #18263b !important;
    border-color: #526783 !important;
}
:root[data-theme="dark"] .rich-preview-builder h2 { color: #f1f5fc !important; }
:root[data-theme="dark"] .rich-preview-builder p,
:root[data-theme="dark"] .rich-preview-builder-meta span { color: #b9c6d9 !important; }
:root[data-theme="dark"] .rich-preview-builder-actions .secondary {
    color: #edf2fb !important;
    background: #22324b !important;
    border-color: #526783 !important;
}

:root[data-theme="dark"] .support-hero {
    background: linear-gradient(135deg, #18263b, #142136) !important;
    border-color: #526783 !important;
}
:root[data-theme="dark"] .support-status { color: #8ff0bd !important; }
:root[data-theme="dark"] .support-shell {
    background: #18263b !important;
    border-color: #526783 !important;
}
:root[data-theme="dark"] .support-list { background: #142136 !important; }
:root[data-theme="dark"] .support-chat { background: #101b2c !important; }
:root[data-theme="dark"] .support-messages {
    background: linear-gradient(180deg, #101b2c, #0d1727) !important;
}
:root[data-theme="dark"] .support-composer { background: #18263b !important; }
:root[data-theme="dark"] .support-message-bubble,
:root[data-theme="dark"] .melink-floating-bubble,
:root[data-theme="dark"] .melink-floating-action button {
    color: #edf2fb !important;
    background: #22324b !important;
    border-color: #526783 !important;
}
:root[data-theme="dark"] .support-message.system .support-message-bubble,
:root[data-theme="dark"] .melink-floating-message.system .melink-floating-bubble {
    color: #b9c6d9 !important;
    background: #1a2940 !important;
}
:root[data-theme="dark"] .melink-floating-panel {
    background: #18263b !important;
    border-color: #526783 !important;
}
:root[data-theme="dark"] .melink-floating-messages {
    background: linear-gradient(180deg, #101b2c, #0d1727) !important;
}
:root[data-theme="dark"] .melink-floating-form { background: #18263b !important; }
:root[data-theme="dark"] .melink-floating-new,
:root[data-theme="dark"] .melink-floating-compose textarea {
    color: #edf2fb !important;
    background: #22324b !important;
    border-color: #526783 !important;
}

:root[data-theme="dark"] .billing-card,
:root[data-theme="dark"] .plan-card { color: #edf2fb; }
:root[data-theme="dark"] .pagination-link.is-disabled { color: #9eacc0 !important; }
