/* Admin dark theme overrides: deeper palette + navbar switch + custom blocks */

/* ---- Navbar 3-way theme switch ---- */
.aa-admin-theme-nav {
	display: flex;
	align-items: center;
	padding: 8px 6px;
}

.aa-admin-theme-switch {
	display: flex;
	align-items: center;
	position: relative;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	padding: 3px;
	gap: 0;
	overflow: hidden;
	min-width: 108px;
}

.aa-admin-theme-btn {
	flex: 1;
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.72);
	border-radius: 8px;
	cursor: pointer;
	transition: color 0.2s ease;
}

.aa-admin-theme-btn:hover {
	color: #fff;
}

.aa-admin-theme-btn.active {
	color: #fff;
}

.aa-admin-theme-slider {
	position: absolute;
	top: 3px;
	bottom: 3px;
	width: calc(33.333% - 2px);
	left: 3px;
	border-radius: 8px;
	background: linear-gradient(135deg, #7c3aed, #6366f1);
	z-index: 1;
	transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 6px rgba(43, 124, 255, 0.35);
}

.aa-admin-theme-switch[data-active-theme="light"] .aa-admin-theme-slider {
	left: 3px;
}

.aa-admin-theme-switch[data-active-theme="auto"] .aa-admin-theme-slider {
	left: calc(50% - (33.333% - 2px) / 2);
}

.aa-admin-theme-switch[data-active-theme="dark"] .aa-admin-theme-slider {
	left: calc(100% - 3px - (33.333% - 2px));
}

/* ---- Deeper stock palette (less ashy grey) ---- */
.dle_theme_dark {
	color: rgba(255, 255, 255, 0.92);
	background-color: #12161f !important;
}

.dle_theme_dark .sidebar,
.dle_theme_dark .navbar-default,
.dle_theme_dark .panel,
.dle_theme_dark .panel-flat > .panel-heading,
.dle_theme_dark .modal-content,
.dle_theme_dark .dropdown-menu,
.dle_theme_dark .select2-dropdown,
.dle_theme_dark .popover,
.dle_theme_dark .well,
.dle_theme_dark .breadcrumb-line,
.dle_theme_dark .footer,
.dle_theme_dark .sidebar-user-material,
.dle_theme_dark .sidebar-category-title,
.dle_theme_dark .navigation > li.active > a,
.dle_theme_dark .navigation > li > a:hover,
.dle_theme_dark .navigation > li > a:focus {
	background-color: #1a2030 !important;
}

.dle_theme_dark .page-header,
.dle_theme_dark .page-header-content {
	color: #fff;
	background-color: #0e121a !important;
}

.dle_theme_dark .navbar-inverse,
.dle_theme_dark .navbar.bg-primary-700 {
	background-color: #0b0e14 !important;
	border-color: #0b0e14 !important;
}

.dle_theme_dark .content-wrapper,
.dle_theme_dark .page-content,
.dle_theme_dark .page-container {
	background-color: #12161f;
}

.dle_theme_dark .panel,
.dle_theme_dark .panel-body,
.dle_theme_dark .modal-content,
.dle_theme_dark .table > thead > tr > th,
.dle_theme_dark .table > tbody > tr > td,
.dle_theme_dark .table > tbody > tr > th {
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.92);
}

.dle_theme_dark .table-striped > tbody > tr:nth-of-type(odd),
.dle_theme_dark .table-hover > tbody > tr:hover {
	background-color: #161c28 !important;
}

.dle_theme_dark .form-control,
.dle_theme_dark .input-group-addon,
.dle_theme_dark .bootstrap-select .btn,
.dle_theme_dark .select2-selection,
.dle_theme_dark .tokenfield,
.dle_theme_dark .multiselect-container {
	background-color: #0b0e14 !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.92) !important;
}

.dle_theme_dark .form-control:focus {
	border-color: #a78bfa !important;
	box-shadow: 0 0 0 2px rgba(61, 90, 254, 0.25);
}

.dle_theme_dark .text-muted,
.dle_theme_dark .help-block,
.dle_theme_dark .breadcrumb > li + li:before {
	color: rgba(255, 255, 255, 0.55) !important;
}

.dle_theme_dark a:not(.btn):not(.label) {
	color: #c4b5fd;
}

.dle_theme_dark hr {
	border-top-color: #2a3344;
}

.dle_theme_dark .pagination > li > a,
.dle_theme_dark .pagination > li > span,
.dle_theme_dark .pager li > a,
.dle_theme_dark .pager li > span {
	background-color: #1a2030;
	border-color: #2a3344;
	color: rgba(255, 255, 255, 0.85);
}

.dle_theme_dark .nav-tabs > li > a {
	color: rgba(255, 255, 255, 0.7);
}

.dle_theme_dark .nav-tabs > li.active > a,
.dle_theme_dark .nav-tabs > li.active > a:hover,
.dle_theme_dark .nav-tabs > li.active > a:focus {
	background-color: #1a2030;
	border-color: #2a3344;
	color: #fff;
}

.dle_theme_dark .label-default,
.dle_theme_dark .badge {
	background-color: #2a3344;
}

.dle_theme_dark .alert {
	border-color: #2a3344;
}

.dle_theme_dark #style_switcher {
	background: #1a2030;
	color: rgba(255, 255, 255, 0.9);
	border-color: #2a3344;
}

/* Login */
body.no-theme.dle_theme_dark,
.dle_theme_dark.no-theme {
	background-color: #12161f !important;
	color: rgba(255, 255, 255, 0.92);
}

.dle_theme_dark.no-theme .panel,
.dle_theme_dark.no-theme .panel-body {
	background-color: #1a2030 !important;
	border-color: #2a3344;
	color: rgba(255, 255, 255, 0.92);
}

/* ---- Editor panel ---- */
.dle_theme_dark .editor-panel .shadow-depth1 {
	background: #1a2030;
	border-color: #2a3344;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.dle_theme_dark .editor-panel .bbcodes-editor {
	background: linear-gradient(180deg, #161c28 0%, #1a2030 100%);
}

.dle_theme_dark .editor-panel .bbcodes-toolbar {
	border-bottom-color: #2a3344;
}

.dle_theme_dark .editor-panel .bbcodes-toolbar .btn-group .btn {
	background: #0b0e14;
	color: rgba(255, 255, 255, 0.85);
	border-color: #2a3344;
}

.dle_theme_dark .editor-panel .bbcodes-toolbar .btn-group .btn:hover,
.dle_theme_dark .editor-panel .bbcodes-toolbar .btn-group .btn.active {
	background: linear-gradient(135deg, #a78bfa 0%, #764ba2 100%);
	color: #fff;
}

.dle_theme_dark .editor-panel .bbcodes-toolbar .btn-group.dropb .dropdown-menu {
	background: #1a2030;
	border-color: #2a3344;
}

.dle_theme_dark .editor-panel .bbcodes-toolbar .btn-group.dropb .dropdown-menu li a {
	color: rgba(255, 255, 255, 0.9);
}

.dle_theme_dark .editor-panel .bbcodes-toolbar .btn-group.dropb .dropdown-menu li a:hover {
	background: rgba(91, 108, 255, 0.18);
}

.dle_theme_dark .editor-panel textarea.editor {
	background: #12161f;
	color: rgba(255, 255, 255, 0.92);
}

.dle_theme_dark .editor-panel textarea.editor:focus {
	box-shadow: inset 0 0 0 2px rgba(91, 108, 255, 0.35);
}

/* ---- Req emulator picker ---- */
.dle_theme_dark #req-emulator-picker-block {
	background: rgba(26, 32, 48, 0.96);
	border-color: #2a3344;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.dle_theme_dark #req-emulator-picker-block .req-emu-summary::before {
	border-color: #c4b5fd;
}

.dle_theme_dark #req-emulator-picker-block #req-emu-qsearch,
.dle_theme_dark #req-emulator-picker-block input[type="text"],
.dle_theme_dark #req-emulator-picker-block select {
	background: #0b0e14 !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.92) !important;
}

.dle_theme_dark #req-emulator-picker-block #req-emu-qsearch-dropdown,
.dle_theme_dark #req-emulator-picker-block #req-emu-qsearch-dropdown .req-emu-hit {
	background: #1a2030;
	border-color: #2a3344;
	color: rgba(255, 255, 255, 0.9);
}

.dle_theme_dark #req-emulator-picker-block #req-emu-qsearch-dropdown .req-emu-hit:hover,
.dle_theme_dark #req-emulator-picker-block #req-emu-qsearch-dropdown .req-emu-hit:focus {
	background: rgba(91, 108, 255, 0.18);
}

.dle_theme_dark #req-emulator-picker-block .req-emu-top-btn {
	background: rgba(91, 108, 255, 0.12);
	border-color: #2a3344;
	color: #b4c7ff;
}

.dle_theme_dark #req-emulator-picker-block .req-emu-selected-label {
	color: rgba(255, 255, 255, 0.55);
}

.dle_theme_dark #req-emulator-picker-block #req-emu-selected .req-emu-chip {
	background: #0b0e14;
	border-color: #2a3344;
	color: #b4c7ff;
	box-shadow: none;
}

.dle_theme_dark #req-emulator-picker-block #req-emu-selected .req-emu-chip button {
	color: #c4b5fd;
}

/* ---- Post fields / glass cards ---- */
.dle_theme_dark .autocomplete,
.dle_theme_dark .autocomplete > div,
.dle_theme_dark .ui-autocomplete {
	background: #1a2030 !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.92) !important;
}

.dle_theme_dark .panel-default > .panel-heading .heading-elements .icons-list .pf-admin-panel-width-toggle {
	background: rgba(26, 32, 48, 0.9) !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.9) !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.dle_theme_dark .panel-default > .panel-heading .heading-elements .icons-list .pf-admin-panel-width-toggle:hover {
	background: rgba(36, 44, 64, 0.98) !important;
}

.dle_theme_dark .pf-app-card {
	background: linear-gradient(145deg, rgba(22, 32, 52, 0.95), rgba(14, 18, 28, 0.92)) !important;
	border-color: #2a3344 !important;
	box-shadow: 0 18px 46px rgba(0, 0, 0, 0.4) !important;
	color: rgba(255, 255, 255, 0.92);
}

.dle_theme_dark .pf-app-card__title,
.dle_theme_dark .pf-app-card__meta,
.dle_theme_dark .pf-app-card label,
.dle_theme_dark .pf-flag-card,
.dle_theme_dark .pf-flag-card__title {
	color: rgba(255, 255, 255, 0.92) !important;
}

.dle_theme_dark .pf-app-card__edit-info {
	background: rgba(11, 14, 20, 0.72) !important;
	color: rgba(255, 255, 255, 0.62) !important;
	border: 1px solid #2a3344;
}

.dle_theme_dark .pf-app-card #screen.dropzone.pf-dropzone-tile--screen,
.dle_theme_dark .pf-app-card #video-dropzone.dropzone.pf-dropzone-tile--video,
.dle_theme_dark .pf-app-card__mounted-field--screen #screen,
.dle_theme_dark .pf-app-card__mounted-field--video #video-dropzone,
.dle_theme_dark .pf-app-card__mounted-field--icon #icon,
.dle_theme_dark .pf-app-card .dropzone.pf-dropzone-tile,
.dle_theme_dark .pf-app-card .dropzone.pf-dropzone-tile.dz-started,
.dle_theme_dark .pf-app-card .dropzone.pf-dropzone-tile.dz-clickable {
	background: #0b0e14 !important;
	background-color: #0b0e14 !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.85);
}

.dle_theme_dark .pf-app-card #screen.dropzone.pf-dropzone-tile--screen:not(.dz-started),
.dle_theme_dark .pf-app-card__mounted-field--screen #screen.dropzone:not(.dz-started) {
	background-color: #0b0e14 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52' viewBox='0 0 24 24'%3E%3Cpath fill='%23c4b5fd' fill-opacity='0.12' d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2M8.5 13.5l2.5 3 3.5-4.5 4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E") !important;
	background-size: 52px 52px !important;
	background-repeat: repeat !important;
}

.dle_theme_dark .pf-app-card #video-dropzone.dropzone.pf-dropzone-tile--video:not(.dz-started),
.dle_theme_dark .pf-app-card__mounted-field--video #video-dropzone.dropzone:not(.dz-started) {
	background-color: #0b0e14 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='%23c4b5fd' fill-opacity='0.08'/%3E%3Cpath fill='%23c4b5fd' fill-opacity='0.16' d='M10.2 8.6v6.8l6.1-3.4-6.1-3.4z'/%3E%3C/svg%3E") !important;
	background-size: 52px 52px !important;
	background-repeat: repeat !important;
}

.dle_theme_dark .pf-app-card .pf-dropzone-tile.dz-started,
.dle_theme_dark .pf-app-card .dropzone.pf-dropzone-tile--screen.dz-started,
.dle_theme_dark .pf-app-card .dropzone.pf-dropzone-tile--video.dz-started {
	background: #0b0e14 !important;
	background-image: none !important;
}

.dle_theme_dark .pf-app-card .dropzone .dz-preview,
.dle_theme_dark .pf-app-card .dropzone .dz-preview.dz-image-preview,
.dle_theme_dark .pf-app-card .dropzone .dz-preview.dz-file-preview {
	background: #161c28 !important;
	border-color: #2a3344 !important;
}

.dle_theme_dark .pf-app-card .dropzone .dz-preview .dz-details,
.dle_theme_dark .pf-app-card .dropzone .dz-preview .dz-filename span,
.dle_theme_dark .pf-app-card .dropzone .dz-preview .dz-size span {
	background: transparent !important;
	color: rgba(255, 255, 255, 0.85) !important;
}

.dle_theme_dark .pf-app-card .pf-dropzone-tile .dz-default.dz-message {
	background: rgba(26, 32, 48, 0.92) !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
	color: rgba(255, 255, 255, 0.88) !important;
}

.dle_theme_dark .pf-source-field__glass {
	background: linear-gradient(145deg, rgba(26, 32, 48, 0.96), rgba(14, 18, 28, 0.92)) !important;
	border-color: #2a3344 !important;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35) !important;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	color: rgba(255, 255, 255, 0.92);
}

.dle_theme_dark .pf-source-field__glass:focus-within {
	border-color: #a78bfa !important;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(61, 90, 254, 0.25) !important;
}

.dle_theme_dark .pf-source-field--google .pf-source-field__glass {
	background: linear-gradient(145deg, rgba(28, 36, 52, 0.96), rgba(16, 22, 34, 0.94)) !important;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38) !important;
}

.dle_theme_dark .pf-source-field--alt .pf-source-field__glass {
	background: linear-gradient(145deg, rgba(24, 32, 46, 0.96), rgba(14, 18, 28, 0.94)) !important;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38) !important;
}

.dle_theme_dark .pf-source-field__icon,
.dle_theme_dark .pf-source-field__icon-link {
	background: rgba(11, 14, 20, 0.75) !important;
	color: rgba(255, 255, 255, 0.65) !important;
}

.dle_theme_dark .pf-source-field__icon-link.is-active {
	color: #86efac !important;
	background: rgba(22, 101, 52, 0.35) !important;
	box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.28) !important;
}

.dle_theme_dark .pf-source-field__icon-link.is-active:hover {
	color: #bbf7d0 !important;
	background: rgba(22, 101, 52, 0.5) !important;
}

.dle_theme_dark .pf-source-field__title {
	color: rgba(255, 255, 255, 0.92) !important;
}

.dle_theme_dark .pf-source-field__hint {
	color: rgba(255, 255, 255, 0.55) !important;
}

.dle_theme_dark .pf-source-field__input {
	background: rgba(11, 14, 20, 0.85) !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.92) !important;
	box-shadow: none !important;
}

.dle_theme_dark .pf-source-field__input:focus {
	background: rgba(11, 14, 20, 0.95) !important;
	border-color: #a78bfa !important;
}

.dle_theme_dark .pf-flag-card,
.dle_theme_dark .pf-flag-card__glass {
	background: rgba(26, 32, 48, 0.95) !important;
	border-color: #2a3344 !important;
}

.dle_theme_dark .pf-itog-card,
.dle_theme_dark .pf-admin-blocks__panel-fill,
.dle_theme_dark .pf-flag-card__glass,
.dle_theme_dark [class*="pf-"][class*="glass"]:not(.pf-block-glass-btn):not(.pf-block-glass-btn *) {
	border-color: #2a3344 !important;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35) !important;
	backdrop-filter: none;
}

.dle_theme_dark .pf-itog-card-plus {
	background: linear-gradient(145deg, rgba(20, 60, 40, 0.9), rgba(18, 28, 36, 0.92)) !important;
}

.dle_theme_dark .pf-itog-card-minus {
	background: linear-gradient(145deg, rgba(70, 28, 28, 0.9), rgba(18, 28, 36, 0.92)) !important;
}

.dle_theme_dark .pf-itog-card-title,
.dle_theme_dark .pf-admin-blocks__panel-fill,
.dle_theme_dark .pf-block-glass-btn {
	color: rgba(255, 255, 255, 0.92);
}

.dle_theme_dark .pf-itog-textarea,
.dle_theme_dark .pf-admin-blocks__editor .shadow-depth1,
.dle_theme_dark .pf-admin-blocks__editor textarea.editor {
	background: #0b0e14 !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.92) !important;
	box-shadow: none !important;
}

.dle_theme_dark .pf-block-glass-btn {
	background: rgba(26, 32, 48, 0.95) !important;
	box-shadow: none !important;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.dle_theme_dark .pf-block-glass-btn:hover,
.dle_theme_dark .pf-block-glass-btn.is-open {
	background: rgba(36, 44, 64, 0.98) !important;
	box-shadow: none !important;
	transform: none;
}

.dle_theme_dark .pf-block-glass-btn--comment,
.dle_theme_dark .pf-block-glass-btn--spoiler,
.dle_theme_dark .pf-block-glass-btn--colorbox,
.dle_theme_dark .pf-block-glass-btn--stub,
.dle_theme_dark .pf-block-glass-btn--filled {
	box-shadow: none !important;
}

.dle_theme_dark .pf-block-glass-btn__body {
	box-shadow: none !important;
	text-shadow: none !important;
	filter: none !important;
}

.dle_theme_dark .pf-admin-blocks__panel-fill {
	background: rgba(26, 32, 48, 0.96) !important;
}

/* ---- Single dropzone (Firus/VT) ---- */
.dle_theme_dark .single-dropzone,
.dle_theme_dark .single-dropzone__zone,
.dle_theme_dark [class*="single-dropzone"] {
	color: rgba(255, 255, 255, 0.9);
}

.dle_theme_dark .single-dropzone__zone {
	background: linear-gradient(135deg, #161c28 0%, #1a2030 100%) !important;
	border-color: #2a3344 !important;
}

.dle_theme_dark .single-dropzone__zone:hover {
	background: linear-gradient(135deg, #1a2030 0%, #222a3c 100%) !important;
}

.dle_theme_dark .single-dropzone__file,
.dle_theme_dark .single-dropzone__meta,
.dle_theme_dark .single-dropzone__actions,
.dle_theme_dark .single-dropzone select,
.dle_theme_dark .single-dropzone input:not([type="checkbox"]):not([type="radio"]) {
	background: #0b0e14 !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.92) !important;
}

.dle_theme_dark .single-dropzone__progress > svg .background {
	fill: #0b0e14;
}

/* ---- Collections / MagicSuggest admin ---- */
.dle_theme_dark .ms-ctn,
.dle_theme_dark .ms-ctn input,
.dle_theme_dark .ms-ctn input:focus,
.dle_theme_dark .ms-sel-ctn .ms-sel-text,
.dle_theme_dark .ms-sel-ctn .ms-sel-text:hover {
	background: #0b0e14 !important;
	color: rgba(255, 255, 255, 0.92) !important;
	border-color: #2a3344 !important;
}

.dle_theme_dark .ms-res-ctn {
	background: #1a2030 !important;
	border-color: #2a3344 !important;
}

.dle_theme_dark .ms-res-ctn .ms-res-item {
	color: rgba(255, 255, 255, 0.85) !important;
}

.dle_theme_dark .ms-res-ctn .ms-res-odd,
.dle_theme_dark .ms-res-ctn .ms-res-item-active {
	background: #161c28 !important;
}

.dle_theme_dark .ms-ctn .ms-trigger {
	border-left-color: #2a3344 !important;
}

.dle_theme_dark .ms-ctn .ms-trigger:hover {
	background-color: #222a3c !important;
}

.dle_theme_dark .coll-bg-preview {
	background: #0b0e14 !important;
	border-color: #2a3344 !important;
}

.dle_theme_dark .coll-bg-preview__placeholder {
	color: rgba(255, 255, 255, 0.55);
}

/* ---- Req soc picker (inline styles from reqcheck_lib) ---- */
.dle_theme_dark .req-soc-picker {
	background: #1a2030 !important;
	border-color: #2a3344 !important;
}

.dle_theme_dark .req-soc-picker-toolbar {
	background: #161c28 !important;
	border-bottom-color: #2a3344 !important;
}

.dle_theme_dark .req-soc-picker-count,
.dle_theme_dark .req-soc-picker-sub,
.dle_theme_dark .req-soc-picker-empty {
	color: rgba(255, 255, 255, 0.55) !important;
}

.dle_theme_dark .req-soc-picker-item {
	border-bottom-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.9);
}

.dle_theme_dark .req-soc-picker-item:hover {
	background: rgba(91, 108, 255, 0.14) !important;
}

.dle_theme_dark .req-soc-picker-item.req-soc-picker-near {
	background: rgba(40, 100, 60, 0.35) !important;
}

.dle_theme_dark .req-soc-picker-item.req-soc-picker-picked {
	background: rgba(61, 90, 254, 0.22) !important;
	box-shadow: inset 3px 0 0 #a78bfa !important;
}

.dle_theme_dark .req-soc-picker-score {
	color: #c4b5fd !important;
}

/* ---- Floating share (editnews) ---- */
.dle_theme_dark .floating-share-button {
	background: #1a2030 !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.92) !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

.dle_theme_dark .floating-share-button .share-header,
.dle_theme_dark .floating-share-button .share-scroll-wrap,
.dle_theme_dark .floating-share-button input,
.dle_theme_dark .floating-share-button textarea,
.dle_theme_dark .floating-share-button select {
	background: #0b0e14 !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.92) !important;
}

/* ---- Misc bright cards often used in admin ops ---- */
.dle_theme_dark .card,
.dle_theme_dark .box,
.dle_theme_dark .white-box,
.dle_theme_dark .bg-white {
	background-color: #1a2030 !important;
	color: rgba(255, 255, 255, 0.92);
}

.dle_theme_dark .list-group-item {
	background-color: #1a2030;
	border-color: #2a3344;
	color: rgba(255, 255, 255, 0.9);
}

/* ---- Custom file-manager blocks: darker surfaces, keep accents ---- */
.dle_theme_dark [class*="custom-manager-"].file-manager {
	--fm-bg-a: rgba(18, 24, 38, 0.96);
	--fm-bg-b: rgba(14, 18, 28, 0.94);
	--fm-bg-c: rgba(11, 14, 20, 0.92);
	--fm-glow-a: rgba(var(--fm-accent-rgb), 0.2);
	--fm-glow-b: rgba(var(--fm-accent-rgb), 0.12);
	border-color: #2a3344 !important;
	box-shadow:
		0 18px 46px rgba(0, 0, 0, 0.42),
		inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.dle_theme_dark .custom-manager-main.file-manager {
	--fm-bg-a: rgba(16, 28, 52, 0.94);
	--fm-bg-b: rgba(12, 22, 40, 0.92);
	--fm-bg-c: rgba(10, 18, 32, 0.9);
}

.dle_theme_dark .custom-manager-mod.file-manager {
	--fm-bg-a: rgba(32, 22, 52, 0.94);
	--fm-bg-b: rgba(24, 16, 40, 0.92);
	--fm-bg-c: rgba(18, 12, 32, 0.9);
}

.dle_theme_dark .custom-manager-parser.file-manager {
	--fm-bg-a: rgba(24, 28, 36, 0.94);
	--fm-bg-b: rgba(18, 22, 30, 0.92);
	--fm-bg-c: rgba(14, 16, 22, 0.9);
}

.dle_theme_dark .custom-manager-other.file-manager {
	--fm-bg-a: rgba(12, 32, 48, 0.94);
	--fm-bg-b: rgba(10, 26, 40, 0.92);
	--fm-bg-c: rgba(8, 22, 34, 0.9);
}

.dle_theme_dark .custom-manager-cache_hidden.file-manager {
	--fm-bg-a: rgba(12, 36, 28, 0.94);
	--fm-bg-b: rgba(10, 28, 22, 0.92);
	--fm-bg-c: rgba(8, 22, 18, 0.9);
}

.dle_theme_dark [class*="custom-manager-"].file-manager .file-manager__header h1 {
	color: rgba(255, 255, 255, 0.92) !important;
}

.dle_theme_dark [class*="custom-manager-"].file-manager .file-manager__header button {
	background: linear-gradient(145deg, rgba(11, 14, 20, 0.9), rgba(var(--fm-accent-rgb), 0.22)) !important;
	border-color: rgba(var(--fm-accent-rgb), 0.4) !important;
	box-shadow:
		0 8px 20px rgba(0, 0, 0, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.dle_theme_dark [class*="custom-manager-"].file-manager .file-manager__header button:hover {
	background: linear-gradient(145deg, rgba(18, 24, 38, 0.95), rgba(var(--fm-accent-rgb), 0.3)) !important;
	box-shadow:
		0 12px 28px rgba(0, 0, 0, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.dle_theme_dark [class*="custom-manager-"].file-manager .file-item {
	background: rgba(11, 14, 20, 0.72) !important;
	border-color: #2a3344 !important;
	box-shadow:
		0 8px 24px rgba(0, 0, 0, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.dle_theme_dark [class*="custom-manager-"].file-manager .file-item:hover {
	background: rgba(18, 24, 38, 0.88) !important;
	border-color: rgba(var(--fm-accent-rgb), 0.35) !important;
	box-shadow:
		0 12px 30px rgba(0, 0, 0, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.dle_theme_dark [class*="custom-manager-"].file-manager .file-position,
.dle_theme_dark [class*="custom-manager-"].file-manager .file-version,
.dle_theme_dark [class*="custom-manager-"].file-manager .file-version-code,
.dle_theme_dark [class*="custom-manager-"].file-manager .file-message,
.dle_theme_dark [class*="custom-manager-"].file-manager .file-message-editor {
	background-color: rgba(11, 14, 20, 0.9) !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.9) !important;
	box-shadow: none !important;
}

.dle_theme_dark [class*="custom-manager-"].file-manager .file-position:focus,
.dle_theme_dark [class*="custom-manager-"].file-manager .file-version:focus,
.dle_theme_dark [class*="custom-manager-"].file-manager .file-version-code:focus,
.dle_theme_dark [class*="custom-manager-"].file-manager .file-message:focus,
.dle_theme_dark [class*="custom-manager-"].file-manager .file-message-editor:focus {
	border-color: rgba(var(--fm-accent-rgb), 0.55) !important;
	box-shadow: 0 0 0 3px rgba(var(--fm-accent-rgb), 0.18) !important;
}

.dle_theme_dark [class*="custom-manager-"].file-manager .single-dropzone__zone,
.dle_theme_dark [class*="custom-manager-"].file-manager .single-dropzone__filename {
	background: rgba(11, 14, 20, 0.85) !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.65) !important;
	box-shadow: none !important;
}

.dle_theme_dark [class*="custom-manager-"].file-manager .single-dropzone__filename:hover,
.dle_theme_dark [class*="custom-manager-"].file-manager .single-dropzone__zone:hover {
	background: rgba(18, 24, 38, 0.95) !important;
	border-color: rgba(var(--fm-accent-rgb), 0.4) !important;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
}

.dle_theme_dark [class*="custom-manager-"].file-manager .file-size-info,
.dle_theme_dark [class*="custom-manager-"].file-manager .file-column {
	color: rgba(255, 255, 255, 0.7);
}

.dle_theme_dark .custom-manager-main.file-manager .file-message-quickfill__btn,
.dle_theme_dark .custom-manager-mod.file-manager .file-message-quickfill__btn,
.dle_theme_dark .custom-manager-main.file-manager .file-message-quickfill__toggle,
.dle_theme_dark .custom-manager-mod.file-manager .file-message-quickfill__toggle {
	background: rgba(11, 14, 20, 0.9) !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.85) !important;
}

/* ---- Network usage monitor ---- */
.dle_theme_dark .network-usage-header:hover {
	background-color: rgba(26, 32, 48, 0.85) !important;
}

.dle_theme_dark .network-usage-header h3 {
	color: rgba(255, 255, 255, 0.92) !important;
}

.dle_theme_dark .network-usage-toggle,
.dle_theme_dark .network-usage-timestamp {
	color: rgba(255, 255, 255, 0.55) !important;
}

.dle_theme_dark .network-usage-content,
.dle_theme_dark .network-usage-table-scroll {
	background: transparent;
}

.dle_theme_dark .network-usage-table-scroll {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

.dle_theme_dark .network-usage-table {
	background: #1a2030 !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

.dle_theme_dark .network-usage-table thead {
	/* keep purple gradient accent */
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	color: #fff !important;
}

.dle_theme_dark .network-usage-table tbody tr:hover {
	background-color: #222a3c !important;
}

.dle_theme_dark .network-usage-table tbody tr:nth-child(even) {
	background-color: #161c28 !important;
}

.dle_theme_dark .network-usage-table tbody tr:nth-child(even):hover {
	background-color: #222a3c !important;
}

.dle_theme_dark .network-usage-table td {
	border-bottom-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.85) !important;
}

.dle_theme_dark .network-usage-table td.server-name {
	color: rgba(255, 255, 255, 0.95) !important;
}

.dle_theme_dark .network-usage-table .value-highlight {
	color: #c4b5fd !important;
}

.dle_theme_dark .network-usage-table .disk-bar-container {
	background-color: #0b0e14 !important;
}

/* ---- Transfer file select ---- */
.dle_theme_dark #transfer-file-id {
	background-color: #0b0e14 !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.92) !important;
}

.dle_theme_dark #transfer-file-id:hover {
	border-color: #a78bfa !important;
}

.dle_theme_dark #transfer-file-id option {
	background-color: #1a2030;
	color: rgba(255, 255, 255, 0.92);
}

.dle_theme_dark #transfer-file-loading {
	color: rgba(255, 255, 255, 0.55) !important;
}

/* ---- Links: blue → violet accents ---- */
.dle_theme_dark a:not(.btn):not(.label):not(.badge) {
	color: #c4b5fd;
}

.dle_theme_dark a:not(.btn):not(.label):not(.badge):hover,
.dle_theme_dark a:not(.btn):not(.label):not(.badge):focus {
	color: #ddd6fe;
}

.dle_theme_dark .network-usage-table .value-highlight,
.dle_theme_dark .req-soc-picker-score {
	color: #c4b5fd !important;
}

.dle_theme_dark .req-soc-picker-item.req-soc-picker-picked {
	box-shadow: inset 3px 0 0 #a78bfa !important;
}

.dle_theme_dark .form-control:focus,
.dle_theme_dark .pf-source-field__input:focus,
.dle_theme_dark #transfer-file-id:hover {
	border-color: #a78bfa !important;
}

.dle_theme_dark .form-control:focus,
.dle_theme_dark .pf-source-field__glass:focus-within {
	box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.28) !important;
}

/* ---- App card controls / glass wrappers ---- */
.dle_theme_dark .pf-app-card__control .form-control,
.dle_theme_dark .pf-app-card__control input[type="text"],
.dle_theme_dark .pf-app-card__control input[type="datetime-local"],
.dle_theme_dark .pf-app-card__control textarea,
.dle_theme_dark .pf-app-card__control select {
	background-color: #0b0e14 !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.92) !important;
}

.dle_theme_dark .pf-app-card__textarea-wrap {
	background: rgba(11, 14, 20, 0.85) !important;
	border-color: #2a3344 !important;
	box-shadow: none !important;
}

.dle_theme_dark .pf-app-card__textarea-wrap #short_story,
.dle_theme_dark .pf-app-card__textarea-wrap textarea {
	background: transparent !important;
	color: rgba(255, 255, 255, 0.92) !important;
}

.dle_theme_dark .form-horizontal .pf-app-card .control-label:not(.text-right) {
	color: rgba(255, 255, 255, 0.78) !important;
}

.dle_theme_dark .pf-app-card .chosen-container-single .chosen-single,
.dle_theme_dark .pf-app-card .chosen-container-multi .chosen-choices {
	background: #0b0e14 !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.92) !important;
	box-shadow: none !important;
}

/* ---- Chosen search placeholder ---- */
.dle_theme_dark .chosen-container .chosen-search input[type="text"],
.dle_theme_dark .chosen-container .chosen-search-input,
.dle_theme_dark .chosen-container-multi .chosen-choices li.search-field input[type="text"] {
	background: transparent !important;
	color: rgba(255, 255, 255, 0.92) !important;
}

.dle_theme_dark .chosen-container .chosen-search input[type="text"]::placeholder,
.dle_theme_dark .chosen-container .chosen-search-input::placeholder,
.dle_theme_dark .chosen-container-multi .chosen-choices li.search-field input[type="text"]::placeholder,
.dle_theme_dark .chosen-container .chosen-search input[type="text"]::-webkit-input-placeholder,
.dle_theme_dark .chosen-container .chosen-search-input::-webkit-input-placeholder {
	color: rgba(255, 255, 255, 0.42) !important;
	opacity: 1 !important;
}

.dle_theme_dark .chosen-container-multi .chosen-choices,
.dle_theme_dark .chosen-container-single .chosen-single,
.dle_theme_dark .chosen-container .chosen-drop {
	background-color: #0b0e14 !important;
	background: #0b0e14 !important;
	border-color: #2a3344 !important;
}

.dle_theme_dark .chosen-container .chosen-results li.no-results {
	background: #161c28 !important;
	color: rgba(255, 255, 255, 0.55) !important;
}

/* ---- Admin device tests ---- */
.dle_theme_dark .admin-device-tests,
.dle_theme_dark .form-horizontal .pf-app-card .admin-device-tests,
.dle_theme_dark #admin-device-tests {
	background: rgba(11, 14, 20, 0.85) !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.88) !important;
}

.dle_theme_dark .admin-device-tests__icon {
	background: rgba(99, 102, 241, 0.22) !important;
	color: #c4b5fd !important;
}

.dle_theme_dark .admin-device-tests__head strong,
.dle_theme_dark .admin-device-tests__head small,
.dle_theme_dark .admin-device-tests__empty,
.dle_theme_dark .admin-device-test-row__version,
.dle_theme_dark .form-horizontal .admin-device-test-row__title > label,
.dle_theme_dark .form-horizontal .admin-device-test-row__fps label,
.dle_theme_dark .admin-device-tests__catalog-summary,
.dle_theme_dark .admin-device-tests__catalog-field > span,
.dle_theme_dark .admin-device-tests__catalog-message {
	color: rgba(255, 255, 255, 0.78) !important;
}

.dle_theme_dark .admin-device-tests__head strong {
	color: rgba(255, 255, 255, 0.95) !important;
}

.dle_theme_dark .admin-device-test-row {
	border-top-color: #2a3344 !important;
}

.dle_theme_dark .admin-device-test-row__status {
	background: #161c28 !important;
}

.dle_theme_dark .admin-device-test-row__status label:has(input[value="launched"]:checked),
.dle_theme_dark .admin-device-test-row__status label:has(input[value="not_launched"]:checked) {
	background: #0b0e14 !important;
}

.dle_theme_dark .form-horizontal .admin-device-test-row__fps input[type="number"],
.dle_theme_dark .admin-device-tests input[type="text"],
.dle_theme_dark .admin-device-tests select,
.dle_theme_dark .admin-device-tests .form-control {
	background: #0b0e14 !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.92) !important;
}

.dle_theme_dark .admin-device-tests__catalog,
.dle_theme_dark .admin-device-tests__catalog-body,
.dle_theme_dark .admin-device-tests__catalog-results,
.dle_theme_dark .admin-device-tests__foreign {
	background: rgba(18, 24, 38, 0.9);
	border-color: #2a3344;
	color: rgba(255, 255, 255, 0.88);
}

.dle_theme_dark .admin-device-tests__preset-save {
	background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%) !important;
	border-color: transparent !important;
	color: #fff !important;
}

/* ---- Files stub toolbar ---- */
.dle_theme_dark .pf-files-stub-toolbar {
	background: linear-gradient(145deg, rgba(60, 40, 12, 0.92), rgba(40, 28, 10, 0.9)) !important;
	border-color: rgba(251, 191, 36, 0.28) !important;
}

.dle_theme_dark .pf-files-stub-toolbar__note,
.dle_theme_dark .pf-files-stub-toolbar__note b {
	color: rgba(255, 237, 200, 0.9) !important;
}

/* ---- Download popup panel ---- */
.dle_theme_dark [class*="custom-manager-"].file-manager .item-download-popup__panel {
	background: linear-gradient(145deg,
		rgba(36, 28, 64, 0.92) 0%,
		rgba(22, 28, 52, 0.9) 45%,
		rgba(18, 22, 40, 0.92) 100%) !important;
	border-color: #2a3344 !important;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.05) inset,
		0 10px 30px rgba(0, 0, 0, 0.35) !important;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.dle_theme_dark [class*="custom-manager-"].file-manager .item-download-popup__panel::before {
	background: radial-gradient(circle at 20% 15%, rgba(167, 139, 250, 0.18), transparent 65%) !important;
	opacity: 0.8;
}

.dle_theme_dark [class*="custom-manager-"].file-manager .item-download-popup__label {
	color: #c4b5fd !important;
}

.dle_theme_dark [class*="custom-manager-"].file-manager .file-download-popup,
.dle_theme_dark [class*="custom-manager-"].file-manager .file-download-popup-editor {
	background: rgba(11, 14, 20, 0.9) !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.92) !important;
	box-shadow: none !important;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.dle_theme_dark [class*="custom-manager-"].file-manager .file-download-popup-editor:empty:before {
	color: rgba(196, 181, 253, 0.55);
}

.dle_theme_dark [class*="custom-manager-"].file-manager .file-download-popup-editor a {
	color: #93c5fd;
}

.dle_theme_dark [class*="custom-manager-"].file-manager .file-download-popup-editor a[data-bb="leech"] {
	color: #c4b5fd;
}

.dle_theme_dark .file-message-link-dialog {
	background: #1a1f2b;
	border-color: #2a3344;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.dle_theme_dark .file-message-link-dialog__input {
	background: rgba(11, 14, 20, 0.95);
	border-color: #2a3344;
	color: rgba(255, 255, 255, 0.92);
}

.dle_theme_dark .file-message-link-dialog__unlink {
	background: #243044;
	color: rgba(255, 255, 255, 0.88);
}

.dle_theme_dark [class*="custom-manager-"].file-manager .item-download-popup__help {
	background: #151a24 !important;
	border-color: #3a4458 !important;
	color: #c7d2fe !important;
	box-shadow: none !important;
}

.dle_theme_dark [class*="custom-manager-"].file-manager .item-download-popup__toggle,
.dle_theme_dark [class*="custom-manager-"].file-manager .item-download-popup__toggle-label,
.dle_theme_dark .file-comment-en-toggle {
	color: #e5e7eb !important;
}

.dle_theme_dark [class*="custom-manager-"].file-manager .item-download-popup__toggle,
.dle_theme_dark .file-comment-en-toggle {
	background: #151a24 !important;
	border-color: #3a4458 !important;
	box-shadow: none !important;
}

.dle_theme_dark [class*="custom-manager-"].file-manager .item-download-popup__toggle:hover:not(:disabled),
.dle_theme_dark .file-comment-en-toggle:hover:not(:disabled) {
	color: #fff !important;
	background: #1a2030 !important;
	border-color: #818cf8 !important;
}

.dle_theme_dark [class*="custom-manager-"].file-manager .item-download-popup--has-value:not(.item-download-popup--open) .item-download-popup__toggle,
.dle_theme_dark [class*="custom-manager-"].file-manager .item-download-popup--has-value:not(.item-download-popup--open) .item-download-popup__toggle-label,
.dle_theme_dark .file-comment-en-toggle.is-filled:not(.is-open) {
	color: #e0e7ff !important;
	background: rgba(99, 102, 241, 0.22) !important;
	border-color: rgba(165, 180, 252, 0.55) !important;
}

.dle_theme_dark [class*="custom-manager-"].file-manager .item-download-popup--open .item-download-popup__toggle,
.dle_theme_dark [class*="custom-manager-"].file-manager .item-download-popup--open .item-download-popup__toggle-label,
.dle_theme_dark .file-comment-en-toggle.is-open {
	color: #fff !important;
	background: #312e81 !important;
	border-color: #312e81 !important;
}

.dle_theme_dark .file-comment-en-toggle__status {
	background: #1e293b;
	color: #cbd5e1;
}

.dle_theme_dark .file-comment-en-toggle.is-filled .file-comment-en-toggle__status {
	background: #14532d;
	color: #bbf7d0;
}

.dle_theme_dark .file-comment-en-toggle.is-open:not(.is-filled) .file-comment-en-toggle__status {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}


/* ---- Readable text on dark ---- */
.dle_theme_dark .pf-block-glass-btn__title {
	color: rgba(255, 255, 255, 0.95) !important;
}

.dle_theme_dark .pf-block-glass-btn__hint {
	color: rgba(255, 255, 255, 0.55) !important;
}

.dle_theme_dark .pf-block-glass-btn__chevron {
	background: rgba(11, 14, 20, 0.7) !important;
	color: rgba(255, 255, 255, 0.7) !important;
}

.dle_theme_dark .file-app-id,
.dle_theme_dark [class*="custom-manager-"].file-manager .file-app-id {
	background: linear-gradient(135deg, rgba(49, 46, 129, 0.85) 0%, rgba(67, 56, 202, 0.75) 100%) !important;
	border-color: rgba(167, 139, 250, 0.45) !important;
	color: #e9d5ff !important;
	box-shadow: none !important;
}

.dle_theme_dark .file-app-id:hover,
.dle_theme_dark [class*="custom-manager-"].file-manager .file-app-id:hover {
	background: linear-gradient(135deg, rgba(67, 56, 202, 0.9) 0%, rgba(49, 46, 129, 0.9) 100%) !important;
}

.dle_theme_dark .file-sha256,
.dle_theme_dark [class*="custom-manager-"].file-manager .file-sha256 {
	background: linear-gradient(135deg, rgba(6, 78, 59, 0.85) 0%, rgba(4, 120, 87, 0.75) 100%) !important;
	border-color: rgba(52, 211, 153, 0.45) !important;
	color: #a7f3d0 !important;
	box-shadow: none !important;
}

.dle_theme_dark .file-sha256:hover,
.dle_theme_dark [class*="custom-manager-"].file-manager .file-sha256:hover {
	background: linear-gradient(135deg, rgba(4, 120, 87, 0.9) 0%, rgba(6, 78, 59, 0.9) 100%) !important;
}

.dle_theme_dark [class*="custom-manager-"].file-manager .file-ru-lang {
	background-color: #0b0e14 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c4b5fd' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 10px center !important;
	border-color: rgba(167, 139, 250, 0.35) !important;
	color: rgba(255, 255, 255, 0.92) !important;
	box-shadow: none !important;
}

.dle_theme_dark [class*="custom-manager-"].file-manager .file-ru-lang option {
	background: #1a2030;
	color: rgba(255, 255, 255, 0.92);
}

.dle_theme_dark .cache-hidden-keep-original-wrap {
	color: rgba(255, 255, 255, 0.85) !important;
}

.dle_theme_dark .pf-other-data-spoiler__header:hover {
	background-color: rgba(26, 32, 48, 0.9) !important;
}

.dle_theme_dark .pf-other-data-spoiler__title {
	color: rgba(255, 255, 255, 0.95) !important;
}

.dle_theme_dark .pf-other-data-spoiler__toggle {
	color: rgba(255, 255, 255, 0.55) !important;
}

.dle_theme_dark .pf-visibility-item .pf-visibility-label {
	color: rgba(255, 255, 255, 0.88) !important;
}

.dle_theme_dark .pf-visibility-item .fa-info-circle {
	color: rgba(255, 255, 255, 0.45) !important;
}

.dle_theme_dark .pf-visibility-item .pf-toggle-track {
	background: #161c28 !important;
}

.dle_theme_dark .pf-visibility-item .pf-visibility-select {
	background: #161c28 !important;
	color: rgba(255, 255, 255, 0.88) !important;
	border-color: rgba(255, 255, 255, 0.15) !important;
}

/* ---- upload-server-mode select ---- */
.dle_theme_dark .file-column.upload-server-mode,
.dle_theme_dark [class*="custom-manager-"].file-manager .upload-server-mode,
.dle_theme_dark [class*="custom-manager-"].file-manager .file-column.upload-server-mode {
	color: rgba(255, 255, 255, 0.92) !important;
	border-color: rgba(167, 139, 250, 0.4) !important;
	background-color: #0b0e14 !important;
	background-image:
		linear-gradient(145deg, rgba(11, 14, 20, 0.98) 0%, rgba(26, 32, 48, 0.9) 100%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c4b5fd' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat, no-repeat !important;
	background-position: 0 0, right 9px center !important;
	background-size: auto, 12px 12px !important;
	box-shadow: none !important;
}

.dle_theme_dark .file-column.upload-server-mode:hover,
.dle_theme_dark [class*="custom-manager-"].file-manager .upload-server-mode:hover {
	border-color: rgba(167, 139, 250, 0.65) !important;
	box-shadow: none !important;
}

.dle_theme_dark .file-column.upload-server-mode:focus,
.dle_theme_dark [class*="custom-manager-"].file-manager .upload-server-mode:focus {
	border-color: #a78bfa !important;
	box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.22) !important;
}

.dle_theme_dark .file-column.upload-server-mode option,
.dle_theme_dark [class*="custom-manager-"].file-manager .upload-server-mode option {
	background: #1a2030;
	color: rgba(255, 255, 255, 0.92);
}

.dle_theme_dark .file-column.file-audience,
.dle_theme_dark [class*="custom-manager-"].file-manager .file-audience {
	color: rgba(255, 255, 255, 0.92) !important;
	border-color: rgba(167, 139, 250, 0.4) !important;
	background-color: #0b0e14 !important;
	background-image:
		linear-gradient(145deg, rgba(11, 14, 20, 0.98) 0%, rgba(26, 32, 48, 0.9) 100%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c4b5fd' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat, no-repeat !important;
	background-position: 0 0, right 6px center !important;
	background-size: auto, 12px 12px !important;
	box-shadow: none !important;
}

.dle_theme_dark .file-column.file-audience option,
.dle_theme_dark [class*="custom-manager-"].file-manager .file-audience option {
	background: #1a2030;
	color: rgba(255, 255, 255, 0.92);
}

/* ---- editnews status tabs ---- */
.dle_theme_dark .editnews-status-tabs .btn,
.dle_theme_dark .editnews-status-tabs .btn.btn-default {
	background: #161c28 !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.85) !important;
	box-shadow: none !important;
}

.dle_theme_dark .editnews-status-tabs .btn:hover,
.dle_theme_dark .editnews-status-tabs .btn:focus,
.dle_theme_dark .editnews-status-tabs .btn.btn-default:hover,
.dle_theme_dark .editnews-status-tabs .btn.btn-default:focus {
	background: #222a3c !important;
	border-color: #3a455c !important;
	color: #fff !important;
}

.dle_theme_dark .editnews-status-tabs .btn.btn-primary,
.dle_theme_dark .editnews-status-tabs .btn.btn-primary.active,
.dle_theme_dark .editnews-status-tabs .btn.active {
	background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%) !important;
	border-color: transparent !important;
	color: #fff !important;
}

.dle_theme_dark .editnews-status-tabs .btn.btn-primary:hover,
.dle_theme_dark .editnews-status-tabs .btn.btn-primary.active:hover,
.dle_theme_dark .editnews-status-tabs .btn.active:hover {
	background: linear-gradient(135deg, #8b5cf6 0%, #818cf8 100%) !important;
	color: #fff !important;
}

.dle_theme_dark .editnews-status-tabs .editnews-hidden-tab-hint,
.dle_theme_dark .editnews-status-tabs .editnews-rh-tab-hint {
	color: rgba(255, 255, 255, 0.65) !important;
	opacity: 1;
}

/* ---- editnews quick search ---- */
.dle_theme_dark #editnews-qsearch,
.dle_theme_dark .editnews-qsearch-wrap .form-control {
	background: #0b0e14 !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.92) !important;
}

.dle_theme_dark #editnews-qsearch::placeholder {
	color: rgba(255, 255, 255, 0.42) !important;
	opacity: 1;
}

.dle_theme_dark #editnews-qsearch-reset,
.dle_theme_dark #editnews-qsearch-reset.btn,
.dle_theme_dark #editnews-qsearch-reset.btn-default {
	background: #161c28 !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.85) !important;
	box-shadow: none !important;
}

.dle_theme_dark #editnews-qsearch-reset:hover,
.dle_theme_dark #editnews-qsearch-reset:focus,
.dle_theme_dark #editnews-qsearch-reset.btn-default:hover,
.dle_theme_dark #editnews-qsearch-reset.btn-default:focus {
	background: #222a3c !important;
	border-color: #3a455c !important;
	color: #fff !important;
}

.dle_theme_dark #editnews-qsearch-reset i {
	color: inherit !important;
}

/* ---- Admin header notifications dropdown ---- */
.aa-admin-notify-dropdown {
	min-width: 400px;
}

.aa-admin-notify-dropdown .dropdown-content-body.aa-admin-notify-list,
.aa-admin-notify-dropdown [data-aa-admin-notify-body] .media-list {
	max-height: 420px;
	overflow-y: auto;
	margin-bottom: 0;
}

.aa-admin-notify-item.is-unread {
	background: rgba(43, 124, 255, 0.06);
}

.aa-admin-notify-item.is-unread:hover,
.aa-admin-notify-item:hover {
	background: rgba(15, 23, 42, 0.04);
}

.aa-admin-notify-type {
	font-size: 12px;
	font-weight: 400;
	margin-left: 4px;
}

.aa-admin-notify-empty {
	color: #94a3b8;
	text-align: center;
	padding: 24px 16px;
}

.aa-admin-notify-link {
	display: block;
}

.aa-admin-notify-link:hover .text-semibold {
	color: #2b7cff;
}

.dle_theme_dark .aa-admin-notify-item.is-unread {
	background: rgba(99, 102, 241, 0.12);
}

.dle_theme_dark .aa-admin-notify-item.is-unread:hover,
.dle_theme_dark .aa-admin-notify-item:hover {
	background: rgba(255, 255, 255, 0.04);
}

.dle_theme_dark .aa-admin-notify-empty {
	color: rgba(255, 255, 255, 0.5);
}

.dle_theme_dark .aa-admin-notify-link:hover .text-semibold {
	color: #a78bfa;
}

.dle_theme_dark .aa-admin-notify-dropdown .dropdown-content-body,
.dle_theme_dark .aa-admin-notify-dropdown .media-list {
	background: transparent;
}

/* ---- Global btn-default (sm) ---- */
.dle_theme_dark .btn-default,
.dle_theme_dark .btn.btn-default,
.dle_theme_dark .btn-default.btn-sm,
.dle_theme_dark a.btn-default {
	background-color: #161c28 !important;
	background-image: none !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.88) !important;
	box-shadow: none !important;
}

.dle_theme_dark .btn-default:hover,
.dle_theme_dark .btn-default:focus,
.dle_theme_dark .btn-default:active,
.dle_theme_dark .btn-default.active,
.dle_theme_dark .open > .dropdown-toggle.btn-default {
	background-color: #222a3c !important;
	border-color: #3a455c !important;
	color: #fff !important;
}

.dle_theme_dark .btn-default .caret {
	border-top-color: rgba(255, 255, 255, 0.75);
}

/* ---- Stat cards (automod / leech / generic) ---- */
.dle_theme_dark .stat-card,
.dle_theme_dark .automod-log .stat-card {
	background: #1a2030 !important;
	background-image: none !important;
	border: 1px solid #2a3344 !important;
	color: rgba(255, 255, 255, 0.92) !important;
	box-shadow: none !important;
}

.dle_theme_dark .stat-card .stat-info .stat-value,
.dle_theme_dark .stat-card .num,
.dle_theme_dark .automod-log .stat-card .num {
	color: rgba(255, 255, 255, 0.95) !important;
}

.dle_theme_dark .stat-card .stat-info .stat-label,
.dle_theme_dark .stat-card .lbl,
.dle_theme_dark .automod-log .stat-card .lbl {
	color: rgba(255, 255, 255, 0.55) !important;
}

/* ---- Automod log ---- */
.dle_theme_dark .automod-log table.log-table th {
	background: #161c28 !important;
	color: rgba(255, 255, 255, 0.9) !important;
	border-color: #2a3344 !important;
}

.dle_theme_dark .automod-log table.log-table td {
	background: #1a2030 !important;
	color: rgba(255, 255, 255, 0.88) !important;
	border-color: #2a3344 !important;
}

.dle_theme_dark .automod-log .explain-row,
.dle_theme_dark .automod-log .explain-row.open {
	background: #12161f !important;
}

.dle_theme_dark .automod-log .explain-body {
	color: rgba(255, 255, 255, 0.85) !important;
}

.dle_theme_dark .automod-log .automod-log-comment-text {
	color: rgba(255, 255, 255, 0.88) !important;
}

.dle_theme_dark .automod-log .automod-log-comment-id,
.dle_theme_dark .automod-log .automod-log-post-title {
	color: rgba(255, 255, 255, 0.95) !important;
}

.dle_theme_dark .automod-log .automod-log-post-title a,
.dle_theme_dark .automod-log .automod-log-comment-autor,
.dle_theme_dark .automod-log .btn-toggle {
	color: #c4b5fd !important;
}

.dle_theme_dark .automod-log .daily-chart-wrap {
	border-top-color: #2a3344 !important;
}

.dle_theme_dark .automod-log .daily-chart-wrap h4,
.dle_theme_dark .automod-log .modmode-label {
	color: rgba(255, 255, 255, 0.9) !important;
}

.dle_theme_dark .automod-log .modmode-help {
	color: rgba(255, 255, 255, 0.5) !important;
}

.dle_theme_dark .automod-modmode .segmented-toggle {
	border-color: #2a3344 !important;
}

.dle_theme_dark .automod-modmode .segmented-toggle button {
	background: #161c28 !important;
	color: rgba(255, 255, 255, 0.85) !important;
}

.dle_theme_dark .automod-modmode .segmented-toggle button.active {
	background: #7c3aed !important;
	color: #fff !important;
}

/* ---- Comment moderation form ---- */
.dle_theme_dark #dlemasscomments,
.dle_theme_dark #dlemasscomments .panel,
.dle_theme_dark #dlemasscomments .panel-flat,
.dle_theme_dark #dlemasscomments .panel-heading,
.dle_theme_dark #dlemasscomments .panel-body,
.dle_theme_dark #dlemasscomments .box {
	background-color: #1a2030 !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.9) !important;
}

.dle_theme_dark #dlemasscomments .panel-body.warning {
	background-color: rgba(245, 158, 11, 0.12) !important;
}

.dle_theme_dark #dlemasscomments .cmod-comment-card,
.dle_theme_dark #dlemasscomments .cmod-footer-bar {
	background: transparent;
	color: rgba(255, 255, 255, 0.9);
}

.dle_theme_dark #dlemasscomments .text-muted,
.dle_theme_dark #dlemasscomments .form-control-feedback .text-muted {
	color: rgba(255, 255, 255, 0.5) !important;
}

.dle_theme_dark #dlemasscomments .form-control {
	background: #0b0e14 !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.92) !important;
}

/* ---- cmod need-reply card hover ---- */
.dle_theme_dark .cmod-need-reply-card:hover,
.dle_theme_dark .cmod-need-reply-card.cmod-need-reply-hover,
.dle_theme_dark #dlemasscomments .panel.cmod-need-reply-card:hover,
.dle_theme_dark #dlemasscomments .panel.cmod-need-reply-card.cmod-need-reply-hover,
.dle_theme_dark .panel.panel-default.cmod-comment-card.cmod-need-reply-card:hover,
.dle_theme_dark .panel.panel-default.cmod-comment-card.cmod-need-reply-card.cmod-need-reply-hover {
	border-color: #a78bfa !important;
	background-color: #222a3c !important;
	box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.28) !important;
}

.dle_theme_dark .cmod-need-reply-card.cmod-answered-poll {
	border-color: #3a455c !important;
	background-color: #161c28 !important;
	box-shadow: none !important;
}

.dle_theme_dark .cmod-need-reply-card.cmod-answered-poll::after {
	color: rgba(255, 255, 255, 0.45) !important;
}

/* ---- cmod comment context (parent quote) ---- */
.dle_theme_dark .cmod-comment-context {
	background: rgba(167, 139, 250, 0.1) !important;
	border-color: rgba(167, 139, 250, 0.28) !important;
}

.dle_theme_dark .cmod-comment-context__branch {
	border-left-color: rgba(167, 139, 250, 0.45) !important;
	border-bottom-color: rgba(167, 139, 250, 0.45) !important;
}

.dle_theme_dark .cmod-comment-context__label,
.dle_theme_dark .cmod-comment-context__label.text-muted {
	color: rgba(255, 255, 255, 0.5) !important;
}

.dle_theme_dark .cmod-comment-context__author,
.dle_theme_dark .cmod-comment-context__author strong {
	color: rgba(255, 255, 255, 0.92) !important;
}

.dle_theme_dark .cmod-comment-context__text {
	color: rgba(255, 255, 255, 0.82) !important;
}

/* ---- Generic .table th (overrides inline #f5f5f5) ---- */
.dle_theme_dark .table th,
.dle_theme_dark .table > thead > tr > th,
.dle_theme_dark .table > tbody > tr > th,
.dle_theme_dark .table > tfoot > tr > th,
.dle_theme_dark table.table th,
.dle_theme_dark .dsa-table th,
.dle_theme_dark .ua-table th {
	background: #161c28 !important;
	background-color: #161c28 !important;
	color: rgba(255, 255, 255, 0.92) !important;
	border-color: #2a3344 !important;
	font-weight: bold;
}

/* ---- .box-header (overrides inline #f5f5f5) ---- */
.dle_theme_dark .box-header {
	background: #161c28 !important;
	background-color: #161c28 !important;
	border-bottom-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.92) !important;
}

.dle_theme_dark .box-header h3,
.dle_theme_dark .box-header .box-title,
.dle_theme_dark .box-header strong {
	color: rgba(255, 255, 255, 0.95) !important;
}

/* ---- Complaints (mod=complaint) ---- */
.dle_theme_dark .complaint-ctx {
	background: #161c28 !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.9) !important;
}

.dle_theme_dark .complaint-ctx strong {
	color: rgba(255, 255, 255, 0.95) !important;
}

.dle_theme_dark .complaint-ctx em,
.dle_theme_dark .complaint-ctx .text-muted {
	color: rgba(255, 255, 255, 0.55) !important;
}

.dle_theme_dark .complaint-ctx > table.table,
.dle_theme_dark .complaint-ctx table.table {
	background: #0b0e14 !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.9) !important;
}

.dle_theme_dark .complaint-ctx table.table th,
.dle_theme_dark .complaint-ctx table.table td {
	background: #161c28 !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.9) !important;
}

.dle_theme_dark .complaint-ctx table.table tbody tr:nth-child(even) td {
	background: #12161f !important;
}

.dle_theme_dark .complaint-ctx a:not(.btn) {
	color: #c4b5fd !important;
}

.dle_theme_dark .complaint-screenshots a {
	background: #0b0e14 !important;
	border-color: #2a3344 !important;
}

.dle_theme_dark .complaint-screenshots strong {
	color: rgba(255, 255, 255, 0.95) !important;
}

/* ---- Multplayer stats tab (#statmp) ---- */
.dle_theme_dark #statmp .mp-host-card,
.dle_theme_dark #statmp .mp-card {
	background: #161c28 !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.9) !important;
}

.dle_theme_dark #statmp .mp-host-card__name,
.dle_theme_dark #statmp .mp-card__value,
.dle_theme_dark #statmp .mp-subtitle,
.dle_theme_dark #statmp .mp-host-line {
	color: rgba(255, 255, 255, 0.92) !important;
}

.dle_theme_dark #statmp .mp-card__label,
.dle_theme_dark #statmp .mp-card__hint,
.dle_theme_dark #statmp .mp-coverage,
.dle_theme_dark #statmp .mp-host-procs,
.dle_theme_dark #statmp .mp-table th {
	color: rgba(255, 255, 255, 0.55) !important;
}

.dle_theme_dark #statmp .mp-host-ok {
	color: #86efac !important;
}

.dle_theme_dark #statmp .mp-host-stale {
	color: #fca5a5 !important;
}

.dle_theme_dark #statmp .mp-bar {
	background: #0b0e14 !important;
}

.dle_theme_dark #statmp .mp-bar > span {
	background: #a78bfa !important;
}

.dle_theme_dark #statmp .mp-range__btn {
	background: #161c28 !important;
	border-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.85) !important;
}

.dle_theme_dark #statmp .mp-range__btn.active {
	background: #7c3aed !important;
	border-color: transparent !important;
	color: #fff !important;
}

.dle_theme_dark #statmp .mp-table th,
.dle_theme_dark #statmp .mp-table td {
	border-bottom-color: #2a3344 !important;
	color: rgba(255, 255, 255, 0.88) !important;
}

