/* ========================================
   ADDNEWS — Форма добавления новости
   Палитра: indigo (#4f46e5) + emerald (#10b981)
   ======================================== */

/* --- Карточка --- */
.addnews-card {
  width: 100%;
  animation: addnews-fade-in 0.4s ease;
}
@keyframes addnews-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Заголовок --- */
.addnews-card .pheading { margin-bottom: 20px; }
.addnews-card .pheading h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  padding: 14px 20px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(79,70,229,.25);
}
.addnews-card .pheading h2 svg { flex-shrink: 0; }

/* --- Прогресс-бар --- */
.addnews-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 24px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.addnews-progress__bar {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.addnews-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #10b981);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.addnews-progress__text {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  min-width: 80px;
  text-align: right;
}

/* --- Основная форма --- */
.addnews-main {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

/* --- Поля --- */
.addnews-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.addnews-label {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}
.required { color: #ef4444; margin-left: 2px; }

.addnews-hint {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}
.addnews-hint::before {
  content: '\2139';
  font-size: 13px;
}

.addnews-inputRow { display: flex; gap: 8px; align-items: stretch; }
.addnews-input {
  padding: 11px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: #fff;
  color: #1e293b;
  box-sizing: border-box;
}
.addnews-input:focus {
  border-color: #4f46e5;
  outline: 2px solid rgba(79,70,229,.15);
  outline-offset: -2px;
}
.addnews-input--wide { width: 100%; }
.addnews-input--code { max-width: 220px; }

.addnews-input.is-invalid {
  border-color: #ef4444;
  outline: 2px solid rgba(239,68,68,.15);
  outline-offset: -2px;
}

.addnews-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  transition: all 0.2s ease;
  background: #fff;
  color: #1e293b;
  box-sizing: border-box;
}
.addnews-textarea:focus {
  border-color: #4f46e5;
  outline: 2px solid rgba(79,70,229,.15);
  outline-offset: -2px;
}
.addnews-textarea.is-invalid {
  border-color: #ef4444;
  outline: 2px solid rgba(239,68,68,.15);
  outline-offset: -2px;
}

/* --- Кнопки --- */
.addnews-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  line-height: 1.4;
}
.addnews-btn--primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16,185,129,.25);
}
.addnews-btn--primary:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 6px 20px rgba(16,185,129,.35);
  transform: translateY(-1px);
}
.addnews-btn--ghost {
  background: rgba(79,70,229,.06);
  border: 1px solid rgba(79,70,229,.15);
  color: #4f46e5;
}
.addnews-btn--ghost:hover {
  background: rgba(79,70,229,.10);
  border-color: rgba(79,70,229,.3);
  transform: translateY(-1px);
}
.addnews-btn--icon {
  padding: 10px 12px;
  flex-shrink: 0;
  border-radius: 8px;
}

/* --- Чекбоксы --- */
.addnews-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 14px;
  color: #334155;
}
.addnews-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4f46e5;
  cursor: pointer;
}

/* --- Toggle (переключатель) --- */
.addnews-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  margin-left: auto;
}
.addnews-toggle input { opacity: 0; width: 0; height: 0; }
.addnews-toggle__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: 0.25s;
}
.addnews-toggle__slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.25s;
}
.addnews-toggle input:checked + .addnews-toggle__slider { background: #10b981; }
.addnews-toggle input:checked + .addnews-toggle__slider::before { transform: translateX(20px); }

/* --- Опрос --- */
.addnews-poll-editor { margin-top: 18px; }
.addnews-poll-toggle { cursor: pointer; }
.addnews-poll-body { padding: 4px 18px 18px; }

/* --- Редакторы --- */
.addnews-cats { position: relative; }

.addnews-editors {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.addnews-editor {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.addnews-editor:hover { border-color: #cbd5e1; }
.addnews-editor__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}
.addnews-editor__head svg { flex-shrink: 0; color: #4f46e5; }
.addnews-editor__body { padding: 0; }
.addnews-editor__body > .addnews-input,
.addnews-editor__body > .addnews-hint,
.addnews-editor__body > .addnews-field,
.addnews-editor__body > .addnews-captcha { margin: 14px; }
.addnews-editor__body > textarea { border-radius: 0; border: none; background: #fff; }
.addnews-editor__body > textarea:focus { box-shadow: none; outline: 2px solid rgba(79,70,229,.15); outline-offset: -2px; }

.addnews-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(79,70,229,.08);
  color: #6366f1;
}

/* ========================================
   ВЕРТИКАЛЬНЫЕ ТАБЫ (LAYOUT)
   ======================================== */
.addnews-layout {
  display: flex;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 24px;
}

/* --- Sidebar с табами --- */
.addnews-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 8px 0;
}
.addnews-vtabs { display: flex; flex-direction: column; }
.addnews-vtab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #64748b;
  border-left: 3px solid transparent;
  position: relative;
}
.addnews-vtab:hover {
  color: #4f46e5;
  background: rgba(79,70,229,.04);
}
.addnews-vtab.is-active {
  color: #4f46e5;
  background: rgba(79,70,229,.06);
  border-left-color: #4f46e5;
}
.addnews-vtab__ico {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: inherit;
}
.addnews-vtab__label { flex: 1; }

/* Индикатор заполненности */
.addnews-vtab__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.addnews-vtab__dot.is-filled {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
}

/* --- Контент табов --- */
.addnews-content {
  flex: 1;
  min-width: 0;
  padding: 0;
}
.addnews-panel {
  display: none;
  animation: panel-fade-in 0.25s ease;
}
@keyframes panel-fade-in {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}
.addnews-panel.is-active { display: block; }

.addnews-panel__header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.addnews-panel__header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 4px;
}
.addnews-panel__desc {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

/* --- Форма внутри панелей --- */
.addnews-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
}

/* ========================================
   XFIELDS (дополнительные поля)
   ======================================== */
.addnews-xfields-section { min-height: 60px; }
.addnews-xfields-section .xfieldsrow {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.addnews-xfields-section .xfieldsrow:last-child { border-bottom: none; }
.addnews-xfields-section .xfieldsrow:has(textarea),
.addnews-xfields-section .xfieldsrow:has(.quick-edit-textarea) {
  flex-direction: column;
}
.addnews-xfields-section .xfieldscolleft {
  flex-shrink: 0;
  width: 220px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  padding: 10px 20px 10px 0;
  line-height: 1.5;
}
.addnews-xfields-section .xfieldsrow:has(textarea) .xfieldscolleft,
.addnews-xfields-section .xfieldsrow:has(.quick-edit-textarea) .xfieldscolleft {
  width: auto;
  padding: 0 0 4px;
}
.addnews-xfields-section .xfieldscolright {
  flex: 1;
  min-width: 0;
}
.addnews-xfields-section .xfieldsrow:has(textarea) .xfieldscolright,
.addnews-xfields-section .xfieldsrow:has(.quick-edit-textarea) .xfieldscolright {
  width: 100%;
  flex: none;
}
.addnews-xfields-section .xfieldscolright .xfieldsnote {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

/* Переопределение DLE-стилей */
.addnews-xfields-section input[type="text"],
.addnews-xfields-section input[type="number"],
.addnews-xfields-section input[type="url"],
.addnews-xfields-section input[type="email"],
.addnews-xfields-section select,
.addnews-xfields-section textarea,
.addnews-xfields-section .quick-edit-text,
.addnews-xfields-section .quick-edit-textarea,
.addnews-xfields-section .categoryselect {
  width: 100% !important;
  max-width: 100% !important;
  padding: 9px 13px !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  background: #fff !important;
  color: #1e293b !important;
  transition: border-color .2s ease !important;
  box-sizing: border-box !important;
  height: auto !important;
  min-height: 40px !important;
  line-height: 1.5 !important;
}
.addnews-xfields-section textarea,
.addnews-xfields-section .quick-edit-textarea[contenteditable] {
  min-height: 100px !important;
  resize: vertical;
}
.addnews-xfields-section input:focus,
.addnews-xfields-section select:focus,
.addnews-xfields-section textarea:focus,
.addnews-xfields-section .quick-edit-textarea:focus {
  border-color: #4f46e5 !important;
  outline: 2px solid rgba(79,70,229,.15) !important;
  outline-offset: -2px !important;
  box-shadow: none !important;
}
.addnews-xfields-section .qq-uploader { margin: 8px 0; }
.addnews-xfields-section .qq-upload-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 22px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  border: none !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(16,185,129,.25) !important;
  transition: all .2s ease !important;
  width: auto !important;
  height: auto !important;
  line-height: 1.4 !important;
}
.addnews-xfields-section .qq-upload-button:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
  box-shadow: 0 6px 20px rgba(16,185,129,.35) !important;
  transform: translateY(-1px);
}
.addnews-xfields-section .xfieldgroup { display: none; }
.addnews-xfields-section select[multiple] { height: auto !important; min-height: 40px; }
.addnews-xfields-section select[multiple] option { padding: 3px 6px; }
.addnews-xfields-section br { display: none; }

/* Плейсхолдер xfields */
.xfields-placeholder {
  padding: 48px 20px;
  text-align: center;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.xfields-placeholder svg { opacity: .5; }
.xfields-placeholder span { font-size: 14px; }

/* ========================================
   Селектор (кнопка + модалка)
   ======================================== */
.eg-sel-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  box-sizing: border-box;
}
.eg-sel-btn:hover { border-color: #4f46e5; }
.eg-sel-btn:focus { border-color: #4f46e5; outline: 2px solid rgba(79,70,229,.15); outline-offset: -2px; }
.eg-sel-btn__txt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eg-sel-btn__ico { flex-shrink: 0; transition: transform 0.2s; color: #94a3b8; }
.eg-sel-btn--open .eg-sel-btn__ico { transform: rotate(180deg); }

/* Модалка */
.eg-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,.5);
  align-items: center;
  justify-content: center;
}
.eg-modal.is-open { display: flex; }
.eg-modal__content {
  background: #fff;
  border-radius: 14px;
  width: 480px;
  max-width: calc(100vw - 40px);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  margin: auto;
}
.eg-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}
.eg-modal__close {
  background: none;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}
.eg-modal__close:hover { color: #ef4444; }
.eg-modal__body { flex: 1; overflow-y: auto; padding: 14px 22px; }
.eg-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid #e2e8f0;
}

.eg-checkrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 6px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}
.eg-checkrow:hover { background: #f1f5f9; }
.eg-checkrow input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4f46e5;
  cursor: pointer;
  flex-shrink: 0;
}
.eg-checkrow__label { font-size: 14px; color: #334155; cursor: pointer; }

/* ========================================
   Капча
   ======================================== */
.addnews-captcha {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.addnews-captcha__image img { border-radius: 10px; }

/* ========================================
   Опции новости
   ======================================== */
.addnews-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}
.addnews-options__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #334155;
  margin: 0 0 4px;
}
.addnews-options__title svg { color: #4f46e5; }

/* ========================================
   Кнопки отправки
   ======================================== */
.addnews-submit {
  display: flex;
  gap: 14px;
  padding-top: 8px;
  flex-wrap: wrap;
}
.addnews-submit .addnews-btn {
  min-height: 50px;
  padding: 13px 30px;
  font-size: 15px;
}

/* Sticky submit */
.addnews-submit-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0;
  padding: 12px 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.addnews-submit-sticky.is-visible { transform: translateY(0); }
.addnews-submit-sticky__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.addnews-submit-sticky .addnews-btn {
  min-height: 46px;
  padding: 12px 28px;
  font-size: 14px;
}

/* ========================================
   PREVIEW CARD
   ======================================== */
.preview-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  animation: addnews-fade-in 0.4s ease;
}
.preview-card__header {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #10b981 100%);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}
.preview-card__header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.12) 0%, transparent 60%);
}
.preview-card__header__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.preview-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  background: rgba(255,255,255,.18);
  padding: 5px 14px;
  border-radius: 999px;
  width: fit-content;
  backdrop-filter: blur(4px);
}
.preview-card__header__title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}
.preview-card__header__title a {
  color: #fff;
  text-decoration: none;
}
.preview-card__header__title a:hover { text-decoration: underline; }

.preview-card__body { padding: 28px; }

.preview-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}
.preview-card__meta__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: #475569;
}
.preview-card__meta__item svg { flex-shrink: 0; opacity: .7; }
.preview-card__meta__sep { opacity: .4; }

.preview-card__content {
  font-size: 15px;
  line-height: 1.75;
  color: #334155;
}
.preview-card__content p { margin: 0 0 14px; }
.preview-card__content img { max-width: 100%; border-radius: 10px; }

.preview-card__xfields {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}
.preview-card__xfields__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #4f46e5;
  margin: 0 0 14px;
}
.preview-card__xfields__title svg { flex-shrink: 0; }
.preview-card__xfields table { width: 100%; border-collapse: collapse; }
.preview-card__xfields td {
  padding: 8px 14px;
  vertical-align: top;
  border-bottom: 1px solid #f1f5f9;
}
.preview-card__xfields tr:nth-child(even) { background: #f8fafc; }
.preview-card__xfields td:first-child {
  width: 180px;
  font-weight: 700;
  color: #4f46e5;
  white-space: nowrap;
}
.preview-card__xfields td:last-child { color: #334155; }

.preview-card__footer {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
  color: #64748b;
}
.preview-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.preview-card__stat svg { flex-shrink: 0; opacity: .7; }
.preview-card__more { margin-left: auto; }
.preview-card__more a {
  font-weight: 700;
  color: #4f46e5;
  text-decoration: none;
  transition: color 0.2s;
}
.preview-card__more a:hover { color: #7c3aed; }
.preview-card__back a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}
.preview-card__back a:hover { color: #4f46e5; }
.preview-card__pages { margin-top: 18px; text-align: center; }

/* Скрываем дубли DLE-чекбоксов */
.addnews-form .checkbox { display: none !important; }

/* ========================================
   DARK THEME
   ======================================== */
[data-theme="dark"] .addnews-card { color: #cbd5e1; }
[data-theme="dark"] .addnews-card .pheading h2 {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  box-shadow: 0 4px 16px rgba(67,56,202,.3);
}
[data-theme="dark"] .addnews-main { border-color: rgba(255,255,255,.08); }

[data-theme="dark"] .addnews-progress {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .addnews-progress__bar { background: rgba(255,255,255,.08); }
[data-theme="dark"] .addnews-progress__text { color: #94a3b8; }

[data-theme="dark"] .addnews-label { color: #cbd5e1; }
[data-theme="dark"] .addnews-hint { color: #64748b; }

[data-theme="dark"] .addnews-input {
  background: #1e293b;
  border-color: rgba(255,255,255,.10);
  color: #e2e8f0;
}
[data-theme="dark"] .addnews-input:focus {
  border-color: #6366f1;
  outline-color: rgba(99,102,241,.2);
}
[data-theme="dark"] .addnews-textarea {
  background: #1e293b;
  border-color: rgba(255,255,255,.10);
  color: #e2e8f0;
}
[data-theme="dark"] .addnews-textarea:focus {
  border-color: #6366f1;
  outline-color: rgba(99,102,241,.2);
}

[data-theme="dark"] .addnews-btn--primary {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 14px rgba(5,150,105,.3);
}
[data-theme="dark"] .addnews-btn--primary:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
[data-theme="dark"] .addnews-btn--ghost {
  background: rgba(99,102,241,.08);
  border-color: rgba(99,102,241,.2);
  color: #818cf8;
}
[data-theme="dark"] .addnews-btn--ghost:hover {
  background: rgba(99,102,241,.14);
  border-color: rgba(99,102,241,.35);
}

[data-theme="dark"] .addnews-checkbox { color: #cbd5e1; }
[data-theme="dark"] .addnews-toggle__slider { background: #475569; }
[data-theme="dark"] .addnews-toggle__slider::before { background: #1e293b; }

[data-theme="dark"] .addnews-editor {
  background: #1e293b;
  border-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .addnews-editor:hover { border-color: rgba(255,255,255,.12); }
[data-theme="dark"] .addnews-editor__head {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.08);
  color: #cbd5e1;
}
[data-theme="dark"] .addnews-editor__head svg { color: #818cf8; }
[data-theme="dark"] .addnews-editor__body { background: transparent; }
[data-theme="dark"] .addnews-editor__body > textarea { background: #1e293b; color: #e2e8f0; }
[data-theme="dark"] .addnews-badge {
  background: rgba(99,102,241,.12);
  color: #818cf8;
}

[data-theme="dark"] .addnews-layout {
  background: #1e293b;
  border-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .addnews-sidebar {
  background: rgba(255,255,255,.02);
  border-color: rgba(255,255,255,.06);
}
[data-theme="dark"] .addnews-vtab { color: #64748b; }
[data-theme="dark"] .addnews-vtab:hover {
  color: #818cf8;
  background: rgba(99,102,241,.06);
}
[data-theme="dark"] .addnews-vtab.is-active {
  color: #818cf8;
  background: rgba(99,102,241,.10);
  border-left-color: #6366f1;
}
[data-theme="dark"] .addnews-vtab__dot { background: rgba(255,255,255,.10); }
[data-theme="dark"] .addnews-vtab__dot.is-filled {
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52,211,153,.15);
}

[data-theme="dark"] .addnews-panel__header { border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .addnews-panel__header h3 { color: #e2e8f0; }
[data-theme="dark"] .addnews-panel__desc { color: #64748b; }

[data-theme="dark"] .addnews-xfields-section .xfieldscolleft { color: #cbd5e1; }
[data-theme="dark"] .addnews-xfields-section .xfieldsrow { border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .addnews-xfields-section .xfieldscolright .xfieldsnote { color: #64748b; }
[data-theme="dark"] .addnews-xfields-section input[type="text"],
[data-theme="dark"] .addnews-xfields-section input[type="number"],
[data-theme="dark"] .addnews-xfields-section input[type="url"],
[data-theme="dark"] .addnews-xfields-section input[type="email"],
[data-theme="dark"] .addnews-xfields-section select,
[data-theme="dark"] .addnews-xfields-section textarea,
[data-theme="dark"] .addnews-xfields-section .quick-edit-text,
[data-theme="dark"] .addnews-xfields-section .quick-edit-textarea,
[data-theme="dark"] .addnews-xfields-section .categoryselect {
  background: #1e293b !important;
  border-color: rgba(255,255,255,.10) !important;
  color: #e2e8f0 !important;
}
[data-theme="dark"] .addnews-xfields-section input:focus,
[data-theme="dark"] .addnews-xfields-section select:focus,
[data-theme="dark"] .addnews-xfields-section textarea:focus,
[data-theme="dark"] .addnews-xfields-section .quick-edit-textarea:focus {
  border-color: #6366f1 !important;
  outline-color: rgba(99,102,241,.2) !important;
}
[data-theme="dark"] .addnews-xfields-section .qq-upload-button {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 4px 14px rgba(5,150,105,.3) !important;
}
[data-theme="dark"] .addnews-xfields-section .qq-upload-button:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

[data-theme="dark"] .xfields-placeholder { color: #64748b; }
[data-theme="dark"] .xfields-placeholder svg { opacity: .4; }

[data-theme="dark"] .eg-sel-btn {
  background: #1e293b;
  border-color: rgba(255,255,255,.10);
  color: #e2e8f0;
}
[data-theme="dark"] .eg-sel-btn:hover { border-color: #6366f1; }
[data-theme="dark"] .eg-sel-btn__ico { color: #64748b; }

[data-theme="dark"] .eg-modal__content { background: #1e293b; }
[data-theme="dark"] .eg-modal__header { border-color: rgba(255,255,255,.08); color: #e2e8f0; }
[data-theme="dark"] .eg-modal__body { color: #cbd5e1; }
[data-theme="dark"] .eg-modal__footer { border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .eg-checkrow:hover { background: rgba(255,255,255,.04); }
[data-theme="dark"] .eg-checkrow__label { color: #cbd5e1; }

[data-theme="dark"] .addnews-captcha__image img { border-radius: 10px; filter: brightness(.9); }

[data-theme="dark"] .addnews-options {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .addnews-options__title { color: #cbd5e1; }
[data-theme="dark"] .addnews-options__title svg { color: #818cf8; }

[data-theme="dark"] .addnews-submit-sticky {
  background: rgba(30,41,59,.95);
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
}

[data-theme="dark"] .preview-card {
  background: #1e293b;
  border-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .preview-card__header {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 50%, #059669 100%);
}
[data-theme="dark"] .preview-card__header__title { color: #f1f5f9; }
[data-theme="dark"] .preview-card__header__title a { color: #f1f5f9; }
[data-theme="dark"] .preview-card__body { color: #cbd5e1; }
[data-theme="dark"] .preview-card__meta { color: #64748b; }
[data-theme="dark"] .preview-card__meta__item { color: #94a3b8; }
[data-theme="dark"] .preview-card__content { color: #cbd5e1; }
[data-theme="dark"] .preview-card__xfields { border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .preview-card__xfields__title { color: #818cf8; }
[data-theme="dark"] .preview-card__xfields td { border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .preview-card__xfields tr:nth-child(even) { background: rgba(255,255,255,.02); }
[data-theme="dark"] .preview-card__xfields td:first-child { color: #818cf8; }
[data-theme="dark"] .preview-card__xfields td:last-child { color: #cbd5e1; }
[data-theme="dark"] .preview-card__footer { border-color: rgba(255,255,255,.08); color: #64748b; }
[data-theme="dark"] .preview-card__back a { color: #94a3b8; }
[data-theme="dark"] .preview-card__back a:hover { color: #818cf8; }
[data-theme="dark"] .preview-card__more a { color: #818cf8; }
[data-theme="dark"] .preview-card__more a:hover { color: #a78bfa; }
