/* =====================================================
   ADMIN BASE
===================================================== */

:root {
  --admin-bg: #111316;
  --admin-surface: #191d22;
  --admin-surface-2: #101318;
  --admin-surface-3: #222831;
  --admin-border: rgba(255, 255, 255, 0.08);
  --admin-border-strong: rgba(255, 255, 255, 0.14);
  --admin-text: #f5f5f5;
  --admin-text-muted: rgba(255, 255, 255, 0.58);
  --admin-chip: #f4f0e8;
  --admin-chip-text: #2f2418;
  --admin-danger: #7f3f34;
  --admin-danger-bg: #f6f3ee;
  --admin-success: #256c38;
  --admin-success-bg: #e8f5ea;
  --admin-shadow: 0 20px 40px -32px rgba(0, 0, 0, 0.45);
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--admin-text-muted);
  font-size: 14px;
}

body.admin {
  background: var(--admin-bg);
  color: var(--admin-text);
}

.admin-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.admin-header {
  margin-bottom: 18px;
}

.admin-header--stacked {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-title-row h1,
.admin-page h1 {
  margin: 0;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-search {
  flex: 1;
  min-width: 220px;
}

.admin-search input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-2);
  color: var(--admin-text);
  font-size: 14px;
}

.admin-search input:focus,
input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #7c5cff;
  box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.18);
}

.admin-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-filter {
  all: unset;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  background: var(--admin-surface-2);
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--admin-border);
  transition: 0.18s ease;
}

.admin-filter:hover {
  background: #171c22;
}

.admin-filter.is-active {
  background: var(--admin-chip);
  color: var(--admin-chip-text);
  border-color: rgba(125, 95, 56, 0.16);
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 24px;
  box-shadow: var(--admin-shadow);
}

.admin-inline-form {
  margin: 0;
}

/* =====================================================
   BUTTONS / INPUTS
===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid rgba(125, 95, 56, 0.16);
  background: var(--admin-chip);
  color: var(--admin-chip-text);
  text-decoration: none;
  padding: 10px 14px;
  font: inherit;
  transition: 0.18s ease;
}

.btn:hover {
  background: #ede6da;
}

.btn.primary {
  background: var(--admin-chip);
  color: var(--admin-chip-text);
}

.btn.small {
  padding: 9px 12px;
  font-size: 13px;
  border-radius: 10px;
}

.btn.ghost,
.btn.small.ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--admin-border-strong);
}

.btn.ghost:hover,
.btn.small.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.btn.unpublish,
.btn.small.unpublish {
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.btn.unpublish:hover,
.btn.small.unpublish:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn.publish,
.btn.small.publish {
  background: var(--admin-chip);
  color: var(--admin-chip-text);
}

.btn.danger,
.btn.small.danger {
  background: var(--admin-danger-bg);
  color: var(--admin-danger);
  border: 1px solid rgba(127, 63, 52, 0.16);
}

.btn.danger:hover,
.btn.small.danger:hover {
  background: #f2e7e3;
}

input[type="text"],
input[type="number"],
input[type="file"],
select,
textarea {
  width: 100%;
  background: var(--admin-surface-2);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--admin-text);
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.editable {
  cursor: text;
}

body.admin .editable[contenteditable="true"]:hover {
  outline: 2px dashed rgba(199, 191, 255, 0.7);
}

body.admin .editable[contenteditable="true"]:focus {
  outline: 2px dashed #6c5ce7;
  background: #f3f4f6;
  color: #111;
}

.editable:empty::before {
  content: "«кликните, чтобы добавить»";
  color: #999;
}

/* =====================================================
   RECIPE / LESSON SECTION EDITOR
===================================================== */

body.admin .recipe-section {
  position: relative;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  border-radius: 16px;
  margin-bottom: 18px;
}

body.admin .recipe-section:hover {
  border-color: rgba(124, 92, 255, 0.24);
}

body.admin .section-delete {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-2);
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  cursor: pointer;
  z-index: 10;
}

body.admin .section-delete:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

body.admin .section-item {
  position: relative;
  padding: 16px 16px 40px;
  margin-bottom: 12px;
  border: 1px dashed var(--admin-border-strong);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

body.admin .section-item:hover {
  border-color: rgba(170, 182, 255, 0.46);
  background: rgba(255, 255, 255, 0.035);
}

body.admin .section-item.dragging,
.ingredient-dragging,
.admin-recipe-card.dragging {
  opacity: 0.5;
}

body.admin .item-delete--floating {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}

body.admin .section-item:hover .item-delete--floating {
  opacity: 1;
}

body.admin .item-drag-wrap {
  position: absolute;
  right: 8px;
  bottom: 8px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

body.admin .section-item:hover .item-drag-wrap {
  opacity: 1;
}

.item-drag-handle,
.ingredient-drag,
.pw-drag {
  cursor: grab;
  user-select: none;
  color: #999;
}

.item-drag-handle:hover,
.ingredient-drag:hover,
.pw-drag:hover {
  color: #fff;
}

.item-drag-handle:active,
.ingredient-drag:active,
.pw-drag:active {
  cursor: grabbing;
}

body.admin .ingredient-remove,
.pw-actions button,
.pw-block-actions button {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
}

body.admin .ingredient-remove:hover,
.pw-actions button:hover,
.pw-block-actions button:hover {
  color: #fff;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-item {
  position: relative;
  padding: 14px 16px;
  padding-right: 56px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.step-delete {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  opacity: 0;
}

.step-item:hover .step-delete {
  opacity: 1;
}

.step-delete:hover {
  color: #dc2626;
}

.dragging iframe {
  pointer-events: none !important;
}

body:not(.admin) .section-item {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

body:not(.admin) .item-delete--floating,
body:not(.admin) .item-drag-wrap,
body:not(.admin) .item-drag-handle,
body:not(.admin) .section-delete,
body:not(.admin) .text-toolbar,
body:not(.admin) .ingredient-remove,
body:not(.admin) .step-delete,
body:not(.admin) .section-drag-handle,
body:not(.admin) .section-actions,
body:not(.admin) .sections-add-wrapper,
body:not(.admin) .sections-add,
body:not(.admin) .add-section-wrapper,
body:not(.admin) .add-section-btn {
  display: none !important;
}

.section-actions,
body.admin .section-actions,
.text-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.section-actions button,
.text-toolbar button,
.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 10px;
  border: 1px dashed var(--admin-border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: all 0.15s ease;
}

.section-actions button:hover,
.text-toolbar button:hover,
.btn-add:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(199, 203, 224, 0.4);
}

.text-toolbar button.active {
  background: rgba(124, 92, 255, 0.2);
  border-color: rgba(124, 92, 255, 0.34);
}

.section-heading {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
}

.tag-btn {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--admin-border);
  color: var(--admin-text);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.tag-btn.active {
  background: #e7c389;
  border-color: #e7c389;
  color: #2b1d0f;
  font-weight: 600;
}

.bulk-ingredients-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.25s ease;
}

.bulk-ingredients-panel.active {
  max-height: 300px;
  opacity: 1;
}

.sections-id-panel {
  position: sticky;
  top: 80px;
  z-index: 5;
  margin-bottom: 20px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  font-size: 13px;
}

.sections-id-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sections-id-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.section-id-item {
  background: var(--admin-surface-2);
  border: 1px solid var(--admin-border);
  padding: 4px 6px;
  border-radius: 6px;
  font-family: monospace;
}

.copy-btn {
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-2);
  color: #d8c4a5;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.sections-bulk-create {
  margin-top: 10px;
  display: flex;
  gap: 6px;
}

.sections-bulk-create input {
  width: 70px;
}

.sections-bulk-create button {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(125, 95, 56, 0.16);
  background: var(--admin-chip);
  color: var(--admin-chip-text);
  cursor: pointer;
}

.ingredient-select {
  width: 110px;
  padding: 8px 10px;
}

.ingredients-view .ingredient-view-item,
.section-item[data-itemtype="ingredients"] .ingredient-view-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ingredient-name {
  flex: 1;
}

.ingredient-amount {
  flex: 0 0 auto;
  min-width: 70px;
  text-align: right;
}

.lesson-title-inline,
.recipe-title-inline {
  cursor: text;
  border-bottom: 1px dashed transparent;
}

.lesson-title-inline:hover,
.recipe-title-inline:hover {
  border-bottom-color: #888;
}

.lesson-title-inline.saved,
.recipe-title-inline.saved {
  background: rgba(120, 255, 150, 0.15);
}

/* =====================================================
   ADMIN FORMS / STEP PAGES
===================================================== */

.admin-page-header,
.admin-page-header--with-back {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 16px;
}

.admin-page-header--with-back {
  flex-direction: column;
}

.admin-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d8c4a5;
  text-decoration: none;
}

.admin-back-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.admin-form,
.form-group {
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.admin-step-card {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 16px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}

.admin-step-image,
.step-image-label {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
}

.step-image-label {
  display: block;
  cursor: pointer;
  background: var(--admin-surface-2);
}

.step-image-label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-step-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #9aa0a6;
  text-align: center;
  padding: 8px;
}

.admin-step-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.admin-step-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
}

.admin-step-meta {
  font-size: 13px;
  color: var(--admin-text-muted);
}

.step-edit-actions,
.admin-step-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-step-actions {
  flex-direction: column;
  justify-content: center;
}

/* =====================================================
   PAYWALL EDITOR
===================================================== */

.paywall-template-select {
  margin-bottom: 8px;
}

.paywall-template-dropdown,
.font-size-input {
  border-radius: 8px;
}

.paywall-status {
  font-size: 13px;
  margin-bottom: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.paywall-status.saving {
  color: #f59e0b;
  opacity: 1;
}

.paywall-status.saved {
  color: #10b981;
  opacity: 1;
}

.paywall-status.error {
  color: #ef4444;
  opacity: 1;
}

.pw-upload-btn {
  display: inline-block;
  padding: 8px 14px;
  background: var(--admin-surface-2);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.pw-image-preview img,
.pw-feature-preview,
#pw-audience-preview {
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.pw-image-preview img {
  max-width: 220px;
  margin-top: 12px;
}

.pw-feature-preview {
  width: 100px;
  height: 100px;
  margin-top: 8px;
}

#pw-audience-preview {
  width: 180px;
  height: 180px;
  margin-top: 12px;
}

.pw-editor {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pw-editor-block,
.pw-block,
.pw-editor-card {
  background: var(--admin-surface);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow);
}

.pw-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-weight: 600;
}

.pw-block-actions,
.pw-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hidden-block {
  opacity: 0.45;
  filter: grayscale(0.6);
  position: relative;
}

.hidden-block::after {
  content: "Скрыт во фронте";
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 12px;
  color: #999;
}

.pw-add-block-wrapper {
  margin-top: 20px;
  position: relative;
}

.pw-add-main {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  color: var(--admin-text);
  cursor: pointer;
}

.pw-add-menu {
  position: absolute;
  top: 45px;
  left: 0;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 100;
}

.pw-add-menu.hidden {
  display: none;
}

.pw-add-menu button {
  background: none;
  border: none;
  color: var(--admin-text);
  padding: 6px 10px;
  text-align: left;
  cursor: pointer;
}

/* =====================================================
   ACTIVITY / TABLES
===================================================== */

.admin-pre {
  background: #0f172a;
  color: #e5e7eb;
  padding: 14px;
  border-radius: 10px;
  font-size: 13px;
  overflow-x: auto;
}

.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-main {
  font-size: 14px;
  font-weight: 600;
}

.activity-meta {
  font-size: 12px;
  color: var(--admin-text-muted);
  display: flex;
  gap: 10px;
  margin-top: 2px;
}

.activity-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.filter-btn,
.activity-filter {
  appearance: none;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-2);
  color: rgba(255, 255, 255, 0.84);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 32px;
  transition: 0.15s ease;
}

.filter-btn:hover,
.activity-filter:hover {
  background: rgba(255, 255, 255, 0.06);
}

.filter-btn.active,
.activity-filter.active {
  background: var(--admin-chip);
  color: var(--admin-chip-text);
  border-color: rgba(125, 95, 56, 0.16);
}

.activity-scroll {
  max-height: 520px;
  overflow-y: auto;
  resize: vertical;
  padding-right: 6px;
}

.activity-scroll::-webkit-scrollbar {
  width: 8px;
}

.activity-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 6px;
}

.activity-row {
  display: grid;
  grid-template-columns: 56px 180px 1fr 140px;
  gap: 12px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.activity-row:last-child {
  border-bottom: none;
}

.activity-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.activity-time,
.activity-ip,
.activity-target {
  color: var(--admin-text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.activity-time {
  font-variant-numeric: tabular-nums;
}

.activity-target,
.activity-ip {
  font-family: monospace;
}

.activity-target {
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-ip {
  text-align: right;
}

/* =====================================================
   MEDIA
===================================================== */

@media (max-width: 900px) {
  .admin-page {
    padding-inline: 12px;
  }

  .admin-step-card {
    grid-template-columns: 1fr;
  }

  .admin-step-image,
  .step-image-label {
    width: 100%;
    height: 220px;
  }

  .activity-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* =====================================================
   SHARED EDITOR FIXES
===================================================== */
body.admin .tg-post {
  background: var(--admin-surface) !important;
  border: 1px solid var(--admin-border) !important;
  border-radius: 18px !important;
  color: var(--admin-text) !important;
  overflow: visible !important;
}

body.admin .tg-header,
body.admin .tg-body,
body.admin .section-items,
body.admin .lesson-content,
body.admin .content-card {
  background: transparent !important;
  color: var(--admin-text) !important;
}

body.admin .lesson-section-title,
body.admin .section-item-heading,
body.admin .section-item-content,
body.admin .text-content,
body.admin .step-text,
body.admin .ingredient-name,
body.admin .ingredient-amount {
  color: var(--admin-text) !important;
}

body.admin .section-item-heading,
body.admin .step-item {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--admin-border) !important;
  border-radius: 14px !important;
}

body.admin .step-number {
  background: var(--admin-surface-2) !important;
  color: var(--admin-chip-text) !important;
}

body.admin .section-actions,
body.admin .text-toolbar {
  position: relative;
  z-index: 2;
}

body.admin .section-actions button,
body.admin .text-toolbar button,
body.admin .sections-add,
body.admin .copy-btn,
body.admin #sectionsBulkCreateBtn {
  background: var(--admin-chip) !important;
  color: var(--admin-chip-text) !important;
  border: 1px solid rgba(125, 95, 56, 0.16) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.admin .section-actions button:hover,
body.admin .text-toolbar button:hover,
body.admin .sections-add:hover,
body.admin .copy-btn:hover,
body.admin #sectionsBulkCreateBtn:hover {
  background: #ede6da !important;
}

body.admin .item-delete--floating,
body.admin .section-delete {
  background: var(--admin-surface-2) !important;
  color: rgba(255,255,255,0.72) !important;
}

/* =====================================================
   SHARED INGREDIENTS / VIDEO FIXES
===================================================== */
body.admin .ingredients-block,
body.admin .video-block,
body.admin .video-admin-box {
  background: transparent !important;
  color: var(--admin-text) !important;
}

body.admin .ingredients-view {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.admin .ingredient-view-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--admin-border) !important;
  border-radius: 12px;
}

body.admin .ingredient-drag {
  color: rgba(255,255,255,0.45) !important;
}

body.admin .ingredient-name,
body.admin .ingredient-amount {
  color: var(--admin-text) !important;
}

body.admin .ingredient-name[contenteditable="true"],
body.admin .ingredient-amount[contenteditable="true"] {
  background: transparent;
  border-bottom: 1px dashed rgba(255,255,255,0.16);
  min-height: 24px;
}

body.admin .ingredient-remove,
body.admin .ingredient-add,
body.admin .btn-bulk-ingredients,
body.admin .btn-parse-ingredients,
body.admin .btn-cancel-bulk {
  background: var(--admin-chip) !important;
  color: var(--admin-chip-text) !important;
  border: 1px solid rgba(125, 95, 56, 0.16) !important;
  border-radius: 10px;
  padding: 8px 12px;
  opacity: 1 !important;
}

body.admin .ingredient-remove {
  padding: 6px 10px;
  min-width: 36px;
}

body.admin .bulk-ingredients-panel,
body.admin .bulk-ingredients-input {
  background: transparent !important;
  color: var(--admin-text) !important;
}

body.admin .bulk-ingredients-input {
  border: 1px solid var(--admin-border) !important;
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--admin-surface-2) !important;
}

body.admin .video-admin-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid var(--admin-border) !important;
  border-radius: 14px;
}

body.admin .video-admin-box label {
  color: var(--admin-text) !important;
  font-size: 14px;
  opacity: 0.88;
}

body.admin .video-url-input {
  background: var(--admin-surface-2) !important;
  color: var(--admin-text) !important;
  border: 1px solid var(--admin-border) !important;
  border-radius: 12px;
  padding: 11px 14px;
}

body.admin .video-wrapper {
  max-width: 280px !important;
  margin: 0 auto !important;
  border-radius: 18px !important;
  border: 1px solid var(--admin-border) !important;
  background: #0b0d10 !important;
  overflow: hidden !important;
}

body.admin .video-preview {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

body.admin .video-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.admin .video-play-btn {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(15,17,20,0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
