/* aura-scss-build:608d04fcbf192c1fbacfb702d6fe57fa6668f714 */
@charset "UTF-8";
/* Grundlayout */
/* Fehlermeldungen */
.error {
  color: #ff6b6b;
  margin-bottom: 12px;
}

textarea, input[type=text], input[type=number], input[type=datetime-local], select {
  width: 100%;
  background: #0e0e14;
  color: #eceff4;
  border: 1px solid #2a2a33;
  padding: 8px;
  box-sizing: border-box;
}
textarea:focus, input[type=text]:focus, input[type=number]:focus, input[type=datetime-local]:focus, select:focus {
  outline: 2px solid #e48bb4;
  outline-offset: 2px;
}

textarea {
  height: auto;
  min-height: 80px;
  resize: none;
  overflow: hidden;
  line-height: 1.5;
  display: block;
}

/* Ad-Container */
.ausgabe-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 768px) {
  .ausgabe-container {
    flex-direction: row;
    justify-content: space-evenly;
  }
}

.ad-container {
  display: flex;
  flex-direction: column;
  background: #1a1a24;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}
@media (min-width: 768px) {
  .ad-container {
    width: 400px;
  }
}

.ad-image img {
  width: 100%;
  display: block;
}

.ad-content {
  padding: 16px;
}
.ad-content h2 {
  margin-top: 0;
  color: #e48bb4;
  font-size: 16px;
}

.ad-text {
  margin: 12px 0;
  line-height: 1.5;
  font-size: 14px;
}

/* Auto-task edit */
.auto-task-fieldset {
  margin-bottom: 30px;
}

.auto-task-fieldset-top {
  margin-top: 30px;
}

.auto-task-active-label {
  margin-top: 10px;
}

.auto-task-choice {
  margin-bottom: 15px;
}

.auto-task-form {
  display: none;
}

.ad-container.auto-task-layout {
  padding: 12px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  background: transparent;
  box-shadow: none;
}

.ad-container.auto-task-layout .auto-task-actions-col,
.ad-container.auto-task-layout .auto-task-preview-col {
  flex: 0 0 50%;
  max-width: 50%;
  min-width: 0;
}

.auto-task-hidden {
  display: none;
}

.auto-task-loading {
  padding: 10px;
  text-align: center;
}

.auto-task-website-gallery {
  display: none;
  margin-top: 10px;
}

.auto-task-website-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auto-task-preview-img {
  max-width: 100%;
  border-radius: 8px;
}

.auto-task-preview-img--empty {
  display: none;
}

.auto-task-ai-box {
  display: none;
  margin-top: 10px;
}

.auto-task-actions {
  margin-top: 20px;
}

/* Menü & Navigation */
.top-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: #f7f7f7;
  padding: 12px 20px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
  border-radius: 0 0 6px 6px;
  position: sticky;
  top: 0;
  z-index: 999;
}
.top-menu .menu-item {
  font-size: 15px;
  text-decoration: none;
  color: #333;
  padding: 8px 14px;
  border-radius: 6px;
  transition: 0.2s ease;
}
.top-menu .menu-item:hover, .top-menu .menu-item.active {
  background: #ff69b4;
  color: white;
}
.top-menu .menu-item.active {
  font-weight: bold;
}

/* Helferklassen */
.auswahl {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .auswahl {
    flex-direction: row;
    justify-content: space-evenly;
  }
}

.image-gallery {
  display: none;
  margin-top: 0.5rem;
  background: #000;
  padding: 10px;
  border-radius: 8px;
  max-height: 400px;
  overflow-y: auto;
}
.image-gallery .gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.image-gallery .gallery-item {
  width: 110px;
  height: 110px;
  border-radius: 6px;
  cursor: pointer;
  object-fit: cover;
}
.image-gallery .gallery-item.selected {
  outline: 3px solid #ff69b4;
}

.gallery-preview-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  padding: 20px;
}

.gallery-preview-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* ==========================
   AURA BUTTON SYSTEM
   Produktive Version
   Ohne @extend
   ========================== */
/* Farben */
/* Schatten */
/* Mixins */
/* Basis */
.aura-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  border-width: 1px;
  border-style: solid;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
  margin: 0;
  box-sizing: border-box;
}
.aura-btn:hover, .aura-btn:focus {
  text-decoration: none;
  transform: translateY(-1px);
  outline: none;
}
.aura-btn:disabled, .aura-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}
.aura-btn.is-active {
  background: linear-gradient(135deg, #7f5cc2 0%, #b08bed 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(95, 70, 146, 0.28);
}
.aura-btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.82;
}

/* Größen */
.aura-btn--full {
  width: 100%;
}

.aura-btn--xs {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 8px;
}

.aura-btn--sm {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.82rem;
  border-radius: 10px;
}

.aura-btn--lg {
  min-height: 52px;
  padding: 12px 22px;
  font-size: 1rem;
  border-radius: 16px;
}

.aura-btn--pill {
  border-radius: 999px;
}

/* Icon-Buttons */
.aura-btn--icon {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f0ff 100%);
  color: #5d468e;
  border-color: #efe3ff;
  box-shadow: 0 10px 22px rgba(95, 70, 146, 0.1);
}
.aura-btn--icon i,
.aura-btn--icon svg {
  font-size: 0.95rem;
  line-height: 1;
  pointer-events: none;
}
.aura-btn--icon:hover, .aura-btn--icon:focus {
  background: linear-gradient(180deg, #ffffff 0%, #efe3ff 100%);
  color: #4f357d;
  border-color: rgba(127, 92, 194, 0.34);
  box-shadow: 0 14px 28px rgba(95, 70, 146, 0.16);
  transform: translateY(-1px);
}
.aura-btn--icon:active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(95, 70, 146, 0.12);
}
.aura-btn--icon.aura-btn--sm {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 10px;
}
.aura-btn--icon.aura-btn--sm i,
.aura-btn--icon.aura-btn--sm svg {
  font-size: 0.82rem;
}
.aura-btn--icon.aura-btn--lg {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 14px;
}
.aura-btn--icon.aura-btn--lg i,
.aura-btn--icon.aura-btn--lg svg {
  font-size: 1rem;
}
.aura-btn--icon.aura-btn--pill {
  border-radius: 999px;
}

.aura-btn--icon-preview {
  background: linear-gradient(180deg, #ffffff 0%, #f3edff 100%);
  color: #7f5cc2;
  border-color: rgba(127, 92, 194, 0.22);
}
.aura-btn--icon-preview:hover, .aura-btn--icon-preview:focus {
  background: linear-gradient(180deg, #ffffff 0%, #eadcff 100%);
  color: #734fba;
  border-color: rgba(127, 92, 194, 0.38);
  box-shadow: 0 14px 28px rgba(127, 92, 194, 0.2);
}

.aura-btn--icon-edit {
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  color: #2f6fec;
  border-color: rgba(47, 111, 236, 0.18);
}
.aura-btn--icon-edit:hover, .aura-btn--icon-edit:focus {
  background: linear-gradient(180deg, #ffffff 0%, #ddeaff 100%);
  color: #1f5ddb;
  border-color: rgba(47, 111, 236, 0.32);
  box-shadow: 0 14px 28px rgba(47, 111, 236, 0.16);
}

.aura-btn--icon-success {
  background: linear-gradient(180deg, #ffffff 0%, #ebfbf2 100%);
  color: #2fa66a;
  border-color: rgba(47, 166, 106, 0.18);
}
.aura-btn--icon-success:hover, .aura-btn--icon-success:focus {
  background: linear-gradient(180deg, #ffffff 0%, #daf6e7 100%);
  color: #28945e;
  border-color: rgba(47, 166, 106, 0.32);
  box-shadow: 0 14px 28px rgba(47, 166, 106, 0.18);
}

.aura-btn--icon-danger {
  background: linear-gradient(180deg, #ffffff 0%, #fff0f0 100%);
  color: #d9534f;
  border-color: rgba(217, 83, 79, 0.18);
}
.aura-btn--icon-danger:hover, .aura-btn--icon-danger:focus {
  background: linear-gradient(180deg, #ffffff 0%, #ffe2e1 100%);
  color: #c84743;
  border-color: rgba(217, 83, 79, 0.32);
  box-shadow: 0 14px 28px rgba(217, 83, 79, 0.18);
}

.aura-btn--icon-dark {
  background: linear-gradient(135deg, #2d243d 0%, #3a2f4d 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(45, 36, 61, 0.18);
}
.aura-btn--icon-dark:hover, .aura-btn--icon-dark:focus {
  background: linear-gradient(135deg, #241d31 0%, #2f2640 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(45, 36, 61, 0.18);
}

/* Varianten */
.aura-btn--primary {
  background: linear-gradient(135deg, #7f5cc2 0%, #b08bed 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(127, 92, 194, 0.2);
}
.aura-btn--primary:hover, .aura-btn--primary:focus {
  background: linear-gradient(135deg, #734fba 0%, #a985e7 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(127, 92, 194, 0.26);
}

.aura-btn--secondary {
  background: linear-gradient(180deg, #ffffff 0%, #f6f0ff 100%);
  color: #5d468e;
  border-color: #efe3ff;
  box-shadow: 0 10px 24px rgba(95, 70, 146, 0.12);
}
.aura-btn--secondary:hover, .aura-btn--secondary:focus {
  background: linear-gradient(180deg, #ffffff 0%, #efe3ff 100%);
  color: #4f357d;
  border-color: rgba(127, 92, 194, 0.34);
  box-shadow: 0 14px 28px rgba(95, 70, 146, 0.18);
}

.aura-btn--success {
  background: linear-gradient(135deg, #2fa66a 0%, #49c784 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(47, 166, 106, 0.18);
}
.aura-btn--success:hover, .aura-btn--success:focus {
  background: linear-gradient(135deg, #28945e 0%, #3fb174 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(47, 166, 106, 0.24);
}

.aura-btn--danger {
  background: linear-gradient(135deg, #d9534f 0%, #ef6f6b 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(217, 83, 79, 0.18);
}
.aura-btn--danger:hover, .aura-btn--danger:focus {
  background: linear-gradient(135deg, #c84743 0%, #e35f5b 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(217, 83, 79, 0.24);
}

.aura-btn--dark {
  background: #2d243d;
  color: #ffffff;
  border-color: #2d243d;
  box-shadow: 0 10px 24px rgba(45, 36, 61, 0.18);
}
.aura-btn--dark:hover, .aura-btn--dark:focus {
  background: #241d31;
  color: #ffffff;
  border-color: #241d31;
  box-shadow: 0 10px 24px rgba(45, 36, 61, 0.18);
}

.aura-btn--light {
  background: #f9f5ff;
  color: #403557;
  border-color: #ddd6ea;
  box-shadow: none;
}
.aura-btn--light:hover, .aura-btn--light:focus {
  background: #ece8f4;
  color: #332949;
  border-color: #cfc4e2;
  box-shadow: none;
}

.aura-btn--ghost {
  background: transparent;
  color: #5d468e;
  border-color: rgba(127, 92, 194, 0.16);
  box-shadow: none;
}
.aura-btn--ghost:hover, .aura-btn--ghost:focus {
  background: rgba(127, 92, 194, 0.08);
  color: #4f357d;
  border-color: rgba(127, 92, 194, 0.28);
  box-shadow: none;
}

.aura-btn--link {
  background: transparent;
  color: #7f5cc2;
  border-color: transparent;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}
.aura-btn--link:hover, .aura-btn--link:focus {
  background: transparent;
  color: #6741b0;
  transform: none;
  text-decoration: underline;
  box-shadow: none;
}

/* Gruppen */
.aura-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.aura-btn-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .aura-btn-row--stack-mobile {
    flex-direction: column;
    align-items: stretch;
  }
  .aura-btn-row--stack-mobile .aura-btn {
    width: 100%;
  }
}
/* --- Altwelt-Buttons (Legacy-Kompatibilität) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  border-width: 1px;
  border-style: solid;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
  margin: 0;
  box-sizing: border-box;
  background: linear-gradient(135deg, #7f5cc2 0%, #b08bed 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(127, 92, 194, 0.2);
  padding: 6px 12px;
  min-height: auto;
  border-radius: 4px;
}
.btn:hover, .btn:focus {
  background: linear-gradient(135deg, #734fba 0%, #a985e7 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(127, 92, 194, 0.26);
}

.add-btn,
.save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  border-width: 1px;
  border-style: solid;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
  margin: 0;
  box-sizing: border-box;
  background: linear-gradient(135deg, #7f5cc2 0%, #b08bed 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(127, 92, 194, 0.2);
  padding: 6px 12px;
  min-height: auto;
  border-radius: 4px;
  background: #28a745;
  box-shadow: none;
}
.add-btn:hover, .add-btn:focus,
.save-btn:hover,
.save-btn:focus {
  background: linear-gradient(135deg, #734fba 0%, #a985e7 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(127, 92, 194, 0.26);
}
.add-btn:hover, .add-btn:focus,
.save-btn:hover,
.save-btn:focus {
  background: #218838;
  box-shadow: none;
  transform: translateY(-1px);
  text-decoration: none;
  outline: none;
}
.add-btn:disabled, .add-btn.is-disabled,
.save-btn:disabled,
.save-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

.edit-btn,
.btn-test,
.btn-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  border-width: 1px;
  border-style: solid;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
  margin: 0;
  box-sizing: border-box;
  background: linear-gradient(135deg, #7f5cc2 0%, #b08bed 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(127, 92, 194, 0.2);
  padding: 6px 12px;
  min-height: auto;
  border-radius: 4px;
  background: #007bff;
  box-shadow: none;
}
.edit-btn:hover, .edit-btn:focus,
.btn-test:hover,
.btn-test:focus,
.btn-retry:hover,
.btn-retry:focus {
  background: linear-gradient(135deg, #734fba 0%, #a985e7 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(127, 92, 194, 0.26);
}
.edit-btn:hover, .edit-btn:focus,
.btn-test:hover,
.btn-test:focus,
.btn-retry:hover,
.btn-retry:focus {
  background: #0069d9;
  box-shadow: none;
  transform: translateY(-1px);
  text-decoration: none;
  outline: none;
}
.edit-btn:disabled, .edit-btn.is-disabled,
.btn-test:disabled,
.btn-test.is-disabled,
.btn-retry:disabled,
.btn-retry.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

.delete-btn,
.btn-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  border-width: 1px;
  border-style: solid;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
  margin: 0;
  box-sizing: border-box;
  background: linear-gradient(135deg, #7f5cc2 0%, #b08bed 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(127, 92, 194, 0.2);
  padding: 6px 12px;
  min-height: auto;
  border-radius: 4px;
  background: #d9534f;
  box-shadow: none;
}
.delete-btn:hover, .delete-btn:focus,
.btn-delete:hover,
.btn-delete:focus {
  background: linear-gradient(135deg, #734fba 0%, #a985e7 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(127, 92, 194, 0.26);
}
.delete-btn:hover, .delete-btn:focus,
.btn-delete:hover,
.btn-delete:focus {
  background: #c9302c;
  box-shadow: none;
  transform: translateY(-1px);
  text-decoration: none;
  outline: none;
}
.delete-btn:disabled, .delete-btn.is-disabled,
.btn-delete:disabled,
.btn-delete.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  border-width: 1px;
  border-style: solid;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
  margin: 0;
  box-sizing: border-box;
  background: linear-gradient(135deg, #7f5cc2 0%, #b08bed 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(127, 92, 194, 0.2);
  padding: 6px 12px;
  min-height: auto;
  border-radius: 4px;
}
.action-btn:hover, .action-btn:focus {
  background: linear-gradient(135deg, #734fba 0%, #a985e7 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(127, 92, 194, 0.26);
}

/* --- Spezifische Button-Klassen aus anderen Modulen --- */
.aura-data-fetch-btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #cfbced;
  background: #f4edfe;
  color: #5f4692;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  margin: 0;
}

.aura-btn-grey {
  padding: 10px 15px;
  background: #444;
  color: #fff;
  border: 1px solid #666;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.aura-voice-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
}
.aura-voice-btn--generate {
  background: #fd7e14;
}
.aura-voice-btn--cancel {
  background: #666;
}

.aura-ci-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(127, 92, 194, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f6f0ff 100%);
  color: #5d468e;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(95, 70, 146, 0.12);
  transition: all 0.18s ease;
  text-decoration: none;
  appearance: none;
}
.aura-ci-mini-btn:hover {
  border-color: rgba(127, 92, 194, 0.34);
  background: linear-gradient(180deg, #ffffff 0%, #efe3ff 100%);
  color: #4f357d;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(95, 70, 146, 0.18);
}
.aura-ci-mini-btn.is-active {
  background: linear-gradient(135deg, #7f5cc2 0%, #b08bed 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(95, 70, 146, 0.28);
}
.aura-ci-mini-btn--save {
  background: linear-gradient(135deg, #7f5cc2 0%, #b08bed 100%);
  color: #fff;
  border: 0;
}
.aura-ci-mini-btn--cancel {
  background: #f1f1f1;
  color: #666;
  border: 1px solid #ddd;
}

.calendar-create-trigger {
  position: absolute;
  right: -2px;
  bottom: -5px;
  border: none;
  background: #fff;
  color: #8f6bc7;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
}

body {
  font-family: "sofia-pro-variable", sans-serif;
  background: #0f0f12;
  color: #000;
  margin: 0;
}

h1 {
  margin-bottom: 20px;
  text-align: center;
}

.white {
  color: white !important;
}

.login-overlay-shell {
  position: relative;
  min-height: 100vh;
}

.login-overlay-shell.is-locked {
  overflow: hidden;
}

.login-overlay-shell.is-locked .login-overlay-shell__content {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

.index-shell {
  padding: 34px 0 52px;
}

.index-shell__inner {
  width: min(1320px, 100% - 40px);
  margin: 0 auto;
  display: grid;
  gap: 26px;
}

.index-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.index-hero-card,
.index-panel-card,
.index-action-card,
.index-status-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #ffffff 100%);
  border: 1px solid rgba(127, 92, 194, 0.14);
  box-shadow: 0 24px 54px rgba(30, 18, 57, 0.1);
  border-radius: 26px;
}

.index-hero-card,
.index-panel-card {
  border-radius: 32px;
  padding: 30px;
}

.index-hero-card {
  background: radial-gradient(circle at top right, rgba(176, 139, 237, 0.22), transparent 34%), linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #ffffff 100%);
}

.index-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(127, 92, 194, 0.1);
  color: #6e4db4;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.index-title {
  margin: 18px 0 12px;
  color: #231440;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  font-weight: 800;
}

.index-lead {
  margin: 0;
  color: #5f6472;
  line-height: 1.72;
  font-size: 1rem;
  max-width: 760px;
}

.index-meta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.index-meta__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(245, 241, 252, 0.96);
  color: #3e2d67;
  font-size: 0.95rem;
  font-weight: 700;
}

.index-panel-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.index-panel-card h2 {
  margin: 0;
  color: #231440;
  font-size: 1.2rem;
  font-weight: 800;
}

.index-panel-card p {
  margin: 0;
  color: #616778;
  line-height: 1.65;
}

.index-panel-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.index-panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f7f5fb;
  color: #392b61;
}

.index-panel-list i {
  color: #7f5cc2;
  margin-top: 2px;
}

.index-progress {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #faf8fe 0%, #f4effd 100%);
}

.index-progress__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.index-progress__value {
  color: #24153f;
  font-size: 1.1rem;
  font-weight: 800;
}

.index-progress__bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(127, 92, 194, 0.12);
  overflow: hidden;
}

.index-progress__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #7f5cc2 0%, #b08bed 100%);
}

.index-activity-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.index-activity-list li {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f7f5fb;
}

.index-activity-list strong {
  color: #2b1c4b;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.index-activity-list span {
  color: #4a3a70;
  line-height: 1.45;
  font-weight: 700;
}

.index-activity-list small {
  color: #727887;
  font-size: 0.82rem;
}

.index-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.index-section-head h2 {
  margin: 0;
  color: #231440;
  font-size: 1.35rem;
  font-weight: 800;
}

.index-section-head p {
  margin: 0;
  color: #6a7081;
}

.index-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.index-action-card {
  display: grid;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  border-radius: 26px;
  padding: 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.index-action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 64px rgba(31, 18, 59, 0.14);
  border-color: rgba(127, 92, 194, 0.24);
}

.index-action-card__icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #7f5cc2 0%, #b08bed 100%);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 16px 28px rgba(127, 92, 194, 0.2);
}

.index-action-card h3 {
  margin: 0;
  color: #24153f;
  font-size: 1.08rem;
  font-weight: 800;
}

.index-action-card p {
  margin: 0;
  color: #656b7a;
  line-height: 1.6;
}

.index-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.index-insights {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}

.index-insight-card {
  border-radius: 26px;
  padding: 24px;
}

.index-insight-card h3 {
  margin: 0 0 8px;
  color: #24153f;
  font-size: 1.12rem;
  font-weight: 800;
}

.index-insight-card > p {
  margin: 0 0 16px;
  color: #666c7b;
  line-height: 1.6;
}

.index-todo-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.index-todo-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f7f5fb;
  color: #34295a;
  text-decoration: none;
  font-weight: 700;
}

.index-todo-list i {
  color: #7f5cc2;
}

.index-next-post {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #faf8fe 0%, #f4effd 100%);
}

.index-next-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.index-next-post__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(127, 92, 194, 0.12);
  color: #5e43a2;
  font-size: 0.88rem;
  font-weight: 700;
}

.index-next-post__text {
  color: #2d204d;
  line-height: 1.6;
}

.index-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 88px));
  gap: 10px;
  justify-content: start;
}

.index-media-card {
  border-radius: 14px;
  overflow: hidden;
  background: #f7f5fb;
  border: 1px solid rgba(127, 92, 194, 0.1);
}

.index-media-card__preview {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #efe8fb 0%, #faf8ff 100%);
  overflow: hidden;
}

.index-media-card__preview img,
.index-media-card__preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.index-media-card__empty {
  color: #7a7390;
  font-size: 1.6rem;
}

.index-media-card__meta {
  padding: 7px 8px 8px;
  display: grid;
  gap: 2px;
}

.index-media-card__meta strong {
  color: #271846;
  font-size: 0.68rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.index-media-card__meta span {
  color: #6d7382;
  font-size: 0.62rem;
  line-height: 1.2;
}

.index-status-card {
  border-radius: 24px;
  padding: 22px 22px 20px;
  display: grid;
  gap: 10px;
}

a.index-status-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

a.index-status-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 64px rgba(31, 18, 59, 0.14);
  border-color: rgba(127, 92, 194, 0.22);
}

.index-status-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.index-status-card__label {
  color: #5f6676;
  font-size: 0.92rem;
  font-weight: 700;
}

.index-status-card__state {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #d54f7f;
  box-shadow: 0 0 0 6px rgba(213, 79, 127, 0.1);
}

.index-status-card.is-ready .index-status-card__state {
  background: #2eb67d;
  box-shadow: 0 0 0 6px rgba(46, 182, 125, 0.12);
}

.index-status-card__value {
  color: #221440;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
}

.index-status-card__hint {
  color: #676d7d;
  line-height: 1.55;
}

.aura-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 12, 31, 0.62);
  backdrop-filter: blur(10px);
}

.aura-login-overlay__card {
  width: min(560px, 100%);
  padding: 32px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #ffffff 100%);
  border: 1px solid rgba(127, 92, 194, 0.14);
  box-shadow: 0 28px 70px rgba(27, 15, 52, 0.32);
  text-align: center;
}

.aura-login-overlay__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(127, 92, 194, 0.1);
  color: #6e4db4;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.aura-login-overlay__card h1 {
  margin: 18px 0 14px;
  color: #24153f;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.05;
  font-weight: 800;
}

.aura-login-overlay__card p {
  margin: 0 auto;
  max-width: 420px;
  color: #5f6472;
  line-height: 1.65;
  font-size: 1rem;
}

.aura-login-overlay__actions {
  margin-top: 26px;
}

.aura-login-overlay__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 260px;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7f5cc2 0%, #b08bed 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 18px 32px rgba(127, 92, 194, 0.22);
}

.aura-login-overlay__hint {
  margin-top: 16px;
  color: #7a8091;
  font-size: 0.94rem;
}

@media (max-width: 1120px) {
  .index-hero {
    grid-template-columns: 1fr;
  }
  .index-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .index-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .index-insights {
    grid-template-columns: 1fr;
  }
  .index-media-grid {
    grid-template-columns: repeat(4, minmax(0, 76px));
  }
}
@media (max-width: 720px) {
  .index-shell {
    padding: 22px 0 40px;
  }
  .index-shell__inner {
    width: min(100% - 24px, 1320px);
  }
  .index-hero-card,
  .index-panel-card,
  .index-action-card,
  .index-status-card {
    border-radius: 22px;
  }
  .index-hero-card,
  .index-panel-card {
    padding: 22px;
  }
  .index-actions,
  .index-status-grid {
    grid-template-columns: 1fr;
  }
  .index-media-grid {
    grid-template-columns: repeat(3, minmax(0, 72px));
  }
}
#dashboardCreateModal .modal-dialog {
  max-width: 1100px;
  max-height: 85vh;
}

#dashboardCreateModal .modal-content {
  max-height: 85vh;
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f3ff 0%, #eef3fb 100%);
  box-shadow: 0 28px 70px rgba(31, 42, 68, 0.22);
}

#dashboardCreateModal .modal-header {
  display: none;
}

#dashboardCreateModal .modal-body {
  overflow-y: auto;
  padding: 0;
}

.dashboard-create-shell {
  padding: 28px;
}

.dashboard-create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.dashboard-create-main,
.dashboard-create-side {
  display: grid;
  gap: 20px;
}

.dashboard-create-side {
  display: none;
}

.dashboard-create-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 44px rgba(31, 42, 68, 0.08);
}

.dashboard-create-hero {
  background: linear-gradient(135deg, #7f5cc2 0%, #b08bed 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.dashboard-create-hero h2 {
  margin: 0;
  font-size: 1.85rem;
}

.dashboard-create-hero p {
  margin: 10px 0 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
}

.dashboard-create-hero .btn-close {
  position: absolute;
  top: 18px;
  right: 18px;
  filter: invert(1) grayscale(1) brightness(200%);
}

.dashboard-create-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.dashboard-create-series {
  display: none;
  border: 1px solid #e6eaf3;
  padding: 18px;
  border-radius: 20px;
  background: #f9fbff;
}

.dashboard-create-series.is-visible {
  display: block;
}

.dashboard-create-series h2,
.dashboard-create-form h3,
.dashboard-create-side h3 {
  margin: 0 0 12px;
}

.dashboard-create-form {
  display: none;
}

.dashboard-create-form.is-visible {
  display: block;
}

.calendar-cell.drag-over {
  outline: 2px dashed #198754;
  outline-offset: -4px;
}

.calendar-post.is-draggable {
  cursor: grab;
}

.calendar-post.is-draggable:active {
  cursor: grabbing;
}

.calendar-post {
  position: relative;
}

.calendar-post-delete {
  position: absolute;
  right: 8px;
  bottom: 6px;
  border: 0;
  background: transparent;
  color: #8d96ab;
  font-size: 0.85rem;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
}

.calendar-post-delete:hover,
.calendar-post-delete:focus {
  color: #c23d4b;
}

.calendar-post.is-hidden {
  display: none;
}

.calendar-more-toggle {
  margin-top: 8px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #7f5cc2 0%, #b08bed 100%);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(127, 92, 194, 0.18);
}

.calendar-more-toggle:hover,
.calendar-more-toggle:focus {
  background: linear-gradient(135deg, #734fba 0%, #a985e7 100%);
  color: #ffffff;
}

.calendar-cell.drag-pending-target {
  outline: 2px solid #0d6efd;
  outline-offset: -4px;
}

.calendar-floating-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(127, 92, 194, 0.22);
  background: linear-gradient(135deg, #7f5cc2 0%, #b08bed 100%);
  border: 1px solid transparent;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.2rem;
}

.calendar-floating-nav:hover,
.calendar-floating-nav:focus {
  background: linear-gradient(135deg, #734fba 0%, #a985e7 100%);
  color: #ffffff;
}

.calendar-floating-nav.prev {
  left: 12px;
}

.calendar-floating-nav.next {
  right: 12px;
}

.calendar-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.calendar-header h1 {
  margin: 0;
  justify-self: center;
  grid-column: 2;
}

.dashboard-toolbar {
  display: grid;
  gap: 18px;
}

.dashboard-main-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-panel {
  display: grid;
  gap: 24px;
}

.dashboard-panel__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.dashboard-panel__header h3,
.dashboard-panel__header h2 {
  margin: 0;
}

.dashboard-panel__header p {
  margin: 8px 0 0;
}

@media (max-width: 768px) {
  .dashboard-main-actions .btn,
  .calendar-header .btn {
    width: 100%;
  }
  .dashboard-main-actions {
    display: grid;
    width: 100%;
  }
  .dashboard-create-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .dashboard-create-shell {
    padding: 16px;
  }
  .dashboard-create-card {
    padding: 18px;
  }
}
.page-shell {
  min-height: calc(100vh - 88px);
  padding: 32px;
  background: #ffffff;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.page-shell--with-sidebar {
  position: relative;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
  flex: 1;
}

.page-shell__inner {
  --page-main-col: minmax(0, 1.55fr);
  --page-side-col: minmax(280px, 0.75fr);
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.page-hero {
  display: grid;
  grid-template-columns: var(--page-main-col) var(--page-side-col);
  gap: 24px;
  align-items: stretch;
}

.page-hero__spacer {
  min-height: 1px;
}

.page-panel,
.content-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(205, 191, 232, 0.9);
  border-radius: 24px;
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.page-panel {
  padding: 32px;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #efe7fb;
  color: #5e438f;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title {
  margin: 18px 0 12px;
  color: #26183d;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-align: left;
}

.page-lead {
  max-width: none;
  margin: 0;
  color: #645676;
  font-size: 1.02rem;
  line-height: 1.6;
  text-align: left;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.stat-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f6f1fd;
}
.stat-card strong {
  display: block;
  color: #26183d;
  font-size: 1.55rem;
  line-height: 1;
}
.stat-card span {
  display: block;
  margin-top: 8px;
  color: #73628a;
  font-size: 0.9rem;
}

.spotlight-card {
  position: relative;
  padding: 7px;
  display: grid;
  gap: 12px;
  align-content: space-between;
  border-radius: 24px;
  background: linear-gradient(160deg, #7f5cc2 0%, #b08bed 100%);
  color: #ffffff;
  box-shadow: 0 20px 42px rgba(95, 61, 147, 0.18);
}
.spotlight-card h2 {
  margin: 0;
  font-size: 1.35rem;
}
.spotlight-card p {
  margin: 0;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

.spotlight-card__title {
  margin: 9px 0 0 0;
  padding-right: 34px;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1.1;
  text-align: center;
}

.spotlight-card__panel {
  display: grid;
  gap: 1px;
  padding: 7px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 214, 245, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.spotlight-card > .spotlight-card__close {
  position: absolute;
  top: 12px !important;
  right: 12px !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(45, 24, 79, 0.88) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 4;
  box-shadow: 0 10px 22px rgba(24, 12, 43, 0.26);
  appearance: none !important;
  -webkit-appearance: none !important;
  text-indent: 0;
}

.spotlight-card > .spotlight-card__close:hover,
.spotlight-card > .spotlight-card__close:focus {
  background: rgba(30, 16, 54, 0.96);
}

.page-grid.page-grid--sidebar-hidden {
  grid-template-columns: minmax(0, 1fr) !important;
}

.page-grid.page-grid--sidebar-hidden > article.page-stack {
  grid-column: 1/-1;
  width: 100%;
  max-width: none;
}

.page-grid > aside.page-stack.page-stack--hidden {
  display: none !important;
}

.spotlight-card__grid {
  display: grid;
  gap: 12px;
}

.spotlight-card__item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.spotlight-card__content {
  display: grid;
  gap: 12px;
}

.spotlight-card__richtext {
  display: grid;
  padding-left: 4px;
  gap: 1px;
}

.spotlight-card__richtext p,
.spotlight-card__richtext ul,
.spotlight-card__richtext ol {
  margin: 0;
  line-height: 1.5;
  color: #4d4161;
}

.spotlight-card__richtext ul,
.spotlight-card__richtext ol {
  padding-left: 20px;
}

.spotlight-card__richtext strong {
  color: #2d2140;
}

.spotlight-card__media img,
.spotlight-card__media video {
  display: block;
  width: 100%;
  border-radius: 0 0 18px 18px;
  background: #efe7fb;
}

.spotlight-card__actions {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  padding: 0 16px;
}

.spotlight-card__cta {
  text-decoration: none;
}

.spotlight-card__footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 2px;
}

.spotlight-card__dismiss {
  padding: 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(60, 43, 94, 0.35);
  border-radius: 0;
  background: transparent;
  color: #3c2b5e;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
  width: 100%;
  text-align: center;
}

.spotlight-card__dismiss:hover,
.spotlight-card__dismiss:focus {
  background: transparent;
  color: #2b1d45;
  opacity: 0.85;
}

.spotlight-admin-form {
  display: grid;
  gap: 18px;
}

.spotlight-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.spotlight-admin-field {
  display: grid;
  gap: 8px;
}

.spotlight-admin-field > span {
  color: #2f2345;
  font-weight: 700;
}

.spotlight-admin-field input,
.spotlight-admin-field select,
.spotlight-admin-field textarea {
  width: 100%;
  border: 1px solid #d9cceb;
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
  color: #2f2345;
}

.spotlight-admin-field textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

.spotlight-admin-field small {
  color: #7a6b90;
  line-height: 1.5;
}

.spotlight-admin-paragraphs {
  display: grid;
  gap: 12px;
}

.spotlight-admin-paragraph {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e0d4f2;
  border-radius: 18px;
  background: #fbf8ff;
}

.spotlight-admin-paragraph__media {
  display: grid;
  gap: 10px;
}

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

.spotlight-admin-paragraph__remove,
.spotlight-admin-paragraph__add {
  justify-self: flex-start;
}

.spotlight-admin-page-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.spotlight-admin-page-option {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #d9cceb;
  border-radius: 16px;
  background: #faf7ff;
}

.spotlight-admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2f2345;
  font-weight: 700;
}

.spotlight-admin-actions,
.spotlight-admin-table-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.spotlight-admin-table-actions form {
  margin: 0;
}

.spotlight-admin-upload {
  width: fit-content;
}

.spotlight-admin-media-preview {
  display: grid;
  gap: 10px;
}

.spotlight-admin-media-preview img,
.spotlight-admin-media-preview video {
  width: min(240px, 100%);
  border-radius: 18px;
  background: #f2ebfd;
  border: 1px solid #dfd2f3;
}

.spotlight-admin-status-form {
  margin: 0;
}

.spotlight-admin-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2f2345;
  font-weight: 600;
}

@media (max-width: 860px) {
  .spotlight-admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.content-card {
  padding: 22px;
  display: grid;
  gap: 16px;
}
.content-card h3 {
  margin: 0;
  color: #26183d;
  font-size: 1.15rem;
}
.content-card p,
.content-card ul {
  margin: 0;
  color: #6c5e80;
  line-height: 1.55;
}
.content-card ul {
  padding-left: 18px;
}

.content-card--wide {
  grid-column: span 6;
}

.content-card--mid {
  grid-column: span 4;
}

.content-card--narrow {
  grid-column: span 3;
}

.content-card ul li + li {
  margin-top: 8px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-row--editable {
  gap: 12px;
}

.tag-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f2ebfd;
  color: #5f4692;
  font-size: 0.84rem;
  font-weight: 600;
}

.keyword-editable {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.keyword-editable__form {
  display: grid;
  gap: 10px;
  min-width: 220px;
}

.keyword-editable__input {
  min-width: 180px;
}

.keyword-edit-btn {
  width: 14px;
  min-width: 14px;
  max-width: 14px;
  height: 14px;
}

.offer-module-builder {
  display: grid;
  gap: 16px;
}

.offer-module-builder__row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.offer-module-builder__duration-input {
  max-width: 120px;
}

.offer-module-builder .form-control.is-hidden {
  display: none;
}

.offer-modules {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f8f4fe;
  border: 1px solid rgba(208, 192, 235, 0.9);
}

.offer-modules__title {
  color: #3a295a;
  font-size: 0.92rem;
  font-weight: 700;
}

.offer-modules__empty {
  color: #7b6f8f;
}

.offer-modules__list {
  display: grid;
  gap: 10px;
}

.offer-module-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e1d6f3;
}

.offer-module-card__text {
  color: #2e2145;
  font-weight: 600;
}

.offer-module-card__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-stack {
  display: grid;
  gap: 24px;
}

.page-grid {
  display: grid;
  grid-template-columns: var(--page-main-col) var(--page-side-col);
  gap: 24px;
  align-items: start;
}

.form-card {
  padding: 28px;
}

.form-card__header {
  display: grid;
  gap: 10px;
}
.form-card__header h2,
.form-card__header h3 {
  margin: 0;
  color: #26183d;
}
.form-card__header p {
  margin: 0;
  color: #6c5e80;
  line-height: 1.6;
}

.form-section {
  display: grid;
  gap: 18px;
}

.form-section + .form-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(205, 191, 232, 0.75);
}

.form-subsection {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(205, 191, 232, 0.75);
}

.field-grid > .form-subsection:first-child,
.field-grid--triple > .form-subsection:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.form-section__title {
  margin: 0;
  color: #26183d;
  font-size: 1.05rem;
}

.form-section__subtitle {
  color: #3d2b60;
  font-size: 0.98rem;
  font-weight: 700;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 12px;
}

.check-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #d9caef;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f2fd 100%);
  color: #3a295a;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(137, 108, 188, 0.08);
}

.check-card__custom-wrap {
  display: block;
  margin-top: 8px;
}

.page-shell .check-card__custom-input,
.page-shell .check-card__custom-input:focus {
  width: 100%;
  min-height: 42px;
  height: 42px;
  padding: 10px 14px;
  border: 1px solid #d9caef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: none;
  line-height: 1.2;
  outline: none;
}

.check-card input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #8f6bc7;
}

.priority-builder {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #e1d5f3;
  border-radius: 18px;
  background: #fcf9ff;
}

.priority-builder__title {
  color: #3d2b60;
  font-size: 0.92rem;
  font-weight: 700;
}

.priority-builder__hint {
  color: #7b6f8f;
  font-size: 0.82rem;
}

.priority-builder__pool {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.priority-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid #d9caef;
  border-radius: 999px;
  background: #f6f0fe;
  color: #5c438e;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: grab;
}

.priority-builder__slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.priority-slot {
  display: grid;
  gap: 6px;
}

.priority-slot__index {
  color: #7b6f8f;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.priority-slot__drop {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px dashed #ccb9ea;
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
}

.priority-slot__drop.is-dragover {
  border-color: #8f6bc7;
  background: #f5eefe;
}

.priority-slot__placeholder {
  color: #9a8bb3;
  font-size: 0.84rem;
}

.priority-slot__value {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #3d2b60;
  font-size: 0.84rem;
  font-weight: 600;
}

.priority-slot__remove {
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #eadffd;
  color: #6f52a7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.field-grid--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-span-2 {
  grid-column: span 2;
}

.field {
  display: grid;
  gap: 8px;
}
.field label {
  color: #4d3f63;
  font-size: 0.92rem;
  font-weight: 600;
}

.field__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.field__label--section {
  display: flex;
  width: 100%;
}

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

.field__action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.inline-action-btn {
  padding: 8px 12px;
  border: 1px solid #cfbced;
  border-radius: 999px;
  background: #f4edfe;
  color: #5f4692;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(127, 92, 194, 0.12);
  width: auto;
  margin-top: 0;
}

.inline-action-btn:hover,
.inline-action-btn:focus {
  background: #8f6bc7;
  border-color: #8f6bc7;
  color: #ffffff;
  opacity: 1;
}

.page-shell button.inline-action-btn,
.page-shell button.inline-action-btn[type=submit] {
  background: #f4edfe;
  color: #5f4692;
  border: 1px solid #cfbced;
  width: auto;
  margin-top: 0;
}

.page-shell button.inline-action-btn:hover,
.page-shell button.inline-action-btn:focus,
.page-shell button.inline-action-btn[type=submit]:hover,
.page-shell button.inline-action-btn[type=submit]:focus {
  background: #8f6bc7;
  border-color: #8f6bc7;
  color: #ffffff;
  opacity: 1;
}

.page-shell button.inline-action-btn.is-loading,
.page-shell button.inline-action-btn[type=submit].is-loading {
  background: #ede5fb;
  border-color: #d8c8f0;
  color: #6f52a7;
  cursor: wait;
  box-shadow: none;
}

.page-shell button.inline-action-btn.is-checked,
.page-shell button.inline-action-btn[type=submit].is-checked {
  background: linear-gradient(135deg, #7f5cc2 0%, #b08bed 100%);
  border-color: transparent;
  color: #ffffff;
}

.inline-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 168px;
}

.field__label-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ci-upload-input {
  display: none;
}

.status-box {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #d8c8f0;
  background: #f7f2fd;
  color: #493868;
}

.status-box--success {
  border-color: #b8dfc5;
  background: #eef9f1;
  color: #24543a;
}

.status-box--error {
  border-color: #f0c6cf;
  background: #fff1f4;
  color: #7a2438;
}

.ci-panel {
  display: grid;
  gap: 1px;
}

.ci-panel__header {
  display: grid;
  gap: 8px;
}
.ci-panel__header h3 {
  margin: 0;
}
.ci-panel__header p {
  margin: 0;
}

.ci-empty {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 20px;
  background: #f6f1fd;
}
.ci-empty i {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e9defb;
  color: #6f52a7;
}
.ci-empty strong,
.ci-empty span {
  display: block;
}
.ci-empty span {
  margin-top: 6px;
  color: #6e6181;
  line-height: 1.5;
}

.ci-block {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  background: #f8f4fe;
  border: 1px solid rgba(208, 192, 235, 0.9);
}

.ci-block__title {
  color: #3a295a;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ci-editable {
  display: grid;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
}

.ci-editable__head {
  display: inline-flex;
  align-items: center;
  width: auto;
}

.ci-editable__label-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.ci-editable__head .help-icon,
.ci-editable__head .ci-edit-btn {
  flex: 0 0 auto;
}

.ci-editable__label-group .help-icon,
.ci-editable__label-group .ci-edit-btn,
.page-shell .ci-editable__label-group .help-icon,
.page-shell .ci-editable__label-group .ci-edit-btn {
  display: inline-flex;
  width: 14px;
  min-width: 14px;
  max-width: 14px;
  height: 14px;
  margin-top: 0;
  vertical-align: middle;
  padding: 0;
}

.ci-editable__label {
  color: #6f6087;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ci-editable__view {
  color: #2e2145;
  line-height: 1.5;
}

.ci-editable__view.is-empty {
  color: #7b6f8f;
}

.ci-editable__form {
  display: grid;
  gap: 10px;
}

.ci-editable__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.ci-color-editor {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.ci-color-editor__picker {
  width: 54px;
  height: 44px;
  padding: 4px;
  border: 1px solid #d9caef;
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
}

.ci-editable__form input[type=text],
.ci-editable__form .ci-editable__input:not(textarea),
.ci-editable__form .ci-color-editor__text {
  height: 44px;
  min-height: 44px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 44px;
}

.ci-editable__form textarea {
  padding-top: 12px;
  padding-bottom: 12px;
  line-height: 1.45;
}

.ci-edit-btn,
.ci-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #cfbced;
  background: #f4edfe;
  color: #5f4692;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  width: auto;
  margin: 0;
}

.ci-image-card--logo img {
  object-fit: contain;
  background: #ffffff;
  padding: 10px;
}

.ci-edit-btn {
  width: 14px;
  height: 14px;
  padding: 0;
  font-size: 0.48rem;
  box-shadow: 0 4px 10px rgba(127, 92, 194, 0.12);
  line-height: 1;
}

.ci-edit-btn i {
  display: block;
  line-height: 1;
}

.ci-mini-btn--save {
  background: linear-gradient(135deg, #7f5cc2 0%, #b08bed 100%);
  color: #ffffff;
  border-color: transparent;
}

.ci-mini-btn--cancel:hover,
.ci-mini-btn--cancel:focus,
.ci-edit-btn:hover,
.ci-edit-btn:focus {
  background: #8f6bc7;
  border-color: #8f6bc7;
  color: #ffffff;
}

.ci-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ci-swatch {
  display: grid;
  gap: 8px;
}
.ci-swatch small {
  color: #695c7d;
  font-size: 0.78rem;
}

.ci-swatch__color {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(110, 82, 167, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ci-meta {
  display: grid;
  gap: 14px;
  margin: 0;
}
.ci-meta div {
  display: grid;
  gap: 4px;
}
.ci-meta dt {
  color: #6f6087;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ci-meta dd {
  margin: 0;
  color: #2e2145;
  line-height: 1.5;
}

.ci-list {
  display: grid;
  gap: 10px;
}

.ci-list__item {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: #493868;
  line-height: 1.5;
}

.ci-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ci-image-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #efe7fb;
  border: 1px solid rgba(208, 192, 235, 0.9);
}
.ci-image-card a {
  display: block;
}
.ci-image-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.ci-image-delete-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  top: auto;
  right: 10px;
  width: 30px;
  min-width: 30px;
  max-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(72, 36, 57, 0.88);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(40, 14, 29, 0.28);
  margin: 0;
  padding: 0;
  z-index: 2;
}

.ci-image-delete-btn:hover,
.ci-image-delete-btn:focus {
  background: #8a2947;
  border-color: transparent;
}

.page-shell button.ci-image-delete-btn,
.page-shell button.ci-image-delete-btn[type=button] {
  width: 30px;
  min-width: 30px;
  max-width: 30px;
  height: 30px;
  margin-top: 0;
  padding: 0;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.confirm-modal[hidden] {
  display: none;
}

.confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 16, 41, 0.42);
  backdrop-filter: blur(6px);
}

.confirm-modal__dialog {
  position: relative;
  width: min(420px, 100vw - 32px);
  margin: 0;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(205, 191, 232, 0.9);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 28px 60px rgba(41, 25, 72, 0.24);
  z-index: 1;
}
.confirm-modal__dialog h3 {
  margin: 0 0 8px;
  color: #26183d;
}
.confirm-modal__dialog p {
  margin: 0;
  color: #645676;
  line-height: 1.55;
}

.confirm-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.ci-muted {
  color: #7b6f8f;
  font-size: 0.9rem;
}

.ci-static-row {
  display: grid;
  gap: 8px;
}

.ci-static-row__value {
  color: #2e2145;
  line-height: 1.5;
}

.help-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccb9ea;
  border-radius: 999px;
  background: #f3ecfd;
  color: #6f52a7;
  font-size: 0.78rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(127, 92, 194, 0.12);
}

.help-icon:hover,
.help-icon:focus {
  color: #ffffff;
  background: #8f6bc7;
  border-color: #8f6bc7;
}

.page-shell .form-control,
.page-shell input[type=text],
.page-shell input[type=number],
.page-shell input[type=datetime-local],
.page-shell select,
.page-shell textarea {
  width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f7f2fd 100%);
  color: #2e2145;
  border: 1px solid #d9caef;
  border-radius: 16px;
  padding: 12px 14px;
  line-height: 1.35;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 18px rgba(137, 108, 188, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.page-shell textarea {
  min-height: 120px;
  resize: vertical;
}
.page-shell input[type=text],
.page-shell input[type=number],
.page-shell input[type=datetime-local],
.page-shell select,
.page-shell .form-control:not(textarea) {
  min-height: 46px;
}
.page-shell .form-control::placeholder,
.page-shell textarea::placeholder,
.page-shell input::placeholder {
  color: #9585af;
}
.page-shell .form-control:focus,
.page-shell input[type=text]:focus,
.page-shell input[type=number]:focus,
.page-shell input[type=datetime-local]:focus,
.page-shell select:focus,
.page-shell textarea:focus {
  outline: none;
  border-color: #9c7ad3;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(156, 122, 211, 0.16), 0 12px 24px rgba(137, 108, 188, 0.12);
}
.page-shell select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #7e62ad 50%), linear-gradient(135deg, #7e62ad 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 3px), calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list__item {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f6f1fd;
}
.info-list__item strong {
  display: block;
  color: #26183d;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.info-list__item span {
  color: #6e6181;
  line-height: 1.5;
  font-size: 0.92rem;
}

.page-actions {
  display: flex;
  justify-content: flex-end;
}

.field-grid--analysis {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.field--action-end {
  display: flex;
  align-items: flex-end;
}

.analysis-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.detail-panel {
  padding: 18px 20px;
  border-radius: 20px;
  background: #f8f4fe;
  border: 1px solid #e4d8f6;
}

.detail-panel__title {
  font-weight: 700;
  color: #2e2145;
  margin-bottom: 10px;
}

.detail-panel p,
.detail-panel em {
  margin: 0;
  color: #655a77;
  line-height: 1.55;
}

.detail-list {
  margin: 0;
  padding-left: 18px;
  color: #655a77;
}

.detail-list li + li {
  margin-top: 6px;
}

.detail-color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-color-item {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.detail-color-item__swatch {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 2px solid #ffffff;
  box-shadow: 0 10px 18px rgba(46, 33, 69, 0.12);
}

.detail-color-item__label {
  font-size: 0.78rem;
  color: #5c506f;
}

.media-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.media-thumb-card {
  padding: 10px;
  border-radius: 20px;
  background: #f8f4fe;
  border: 1px solid #e4d8f6;
  position: relative;
}

.media-thumb-card--light .media-thumb-card__image-wrap {
  background: #ffffff;
}

.media-thumb-card__image-wrap {
  aspect-ratio: 1/1;
  border-radius: 16px;
  overflow: hidden;
  background: #ede4fb;
  position: relative;
}

.media-thumb-card__image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
}

.media-thumb-card__preview,
.detail-image-grid__preview {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.detail-image-grid__preview img,
.media-thumb-card .detail-image-grid__preview img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.media-thumb-card__meta {
  margin-top: 10px;
  font-size: 0.74rem;
  line-height: 1.35;
  color: #706480;
  word-break: break-all;
}

.table-card {
  overflow-x: auto;
}

.monthly-topics-submit,
.analysis-table .ci-mini-btn {
  width: auto !important;
  margin-top: 0 !important;
  border-radius: 999px !important;
}

.page-shell button.monthly-topics-submit[type=submit] {
  width: auto !important;
  background: linear-gradient(135deg, #7f5cc2 0%, #b08bed 100%) !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 16px 28px rgba(127, 92, 194, 0.22) !important;
}

.analysis-table .ci-mini-btn--cancel {
  background: #f4edfe !important;
  color: #5f4692 !important;
  border: 1px solid #cfbced !important;
}

.analysis-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.analysis-table th {
  padding: 0 14px 8px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7d7190;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.analysis-table td {
  padding: 16px 14px;
  background: #f8f4fe;
  color: #2e2145;
  vertical-align: middle;
}

.analysis-table thead tr,
.analysis-table thead th,
.analysis-table thead td {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.analysis-table tbody tr td:first-child {
  border-radius: 18px 0 0 18px;
}

.analysis-table tbody tr td:last-child {
  border-radius: 0 18px 18px 0;
}

.detail-row td {
  padding: 0 0 10px;
  background: transparent;
}

.detail-row-card {
  padding: 20px;
  border-radius: 22px;
  background: #fcfaff;
  border: 1px solid #e4d8f6;
}

.detail-image-grid__preview {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.empty-state {
  margin: 0;
  color: #7b6f8f;
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.preview-modal[hidden] {
  display: none;
}

.preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 14, 39, 0.68);
  backdrop-filter: blur(8px);
}

.preview-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(88vw, 960px);
  max-height: 88vh;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 60px rgba(27, 13, 55, 0.32);
}

.preview-modal:not(.prompt-media-modal) .preview-modal__dialog img {
  display: block;
  width: 100%;
  max-height: calc(88vh - 36px);
  object-fit: contain;
  border-radius: 18px;
  background: #f5f0fd;
}

.preview-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 999px;
  border: 0;
  background: rgba(45, 24, 79, 0.88);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

@media (max-width: 1100px) {
  .page-hero {
    grid-template-columns: 1fr;
  }
  .page-grid {
    grid-template-columns: 1fr;
  }
  .offer-module-builder__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .analysis-detail-grid {
    grid-template-columns: 1fr;
  }
  .content-card--wide,
  .content-card--mid,
  .content-card--narrow {
    grid-column: span 6;
  }
}
@media (max-width: 760px) {
  .page-shell {
    padding: 18px;
  }
  .stat-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }
  .field-grid,
  .field-grid--triple,
  .checkbox-grid,
  .priority-builder__slots {
    grid-template-columns: 1fr;
  }
  .field-span-2 {
    grid-column: auto;
  }
  .field__action-row {
    grid-template-columns: 1fr;
  }
  .offer-module-builder__row,
  .offer-module-card,
  .field-grid--analysis {
    grid-template-columns: 1fr;
  }
  .offer-module-card__actions {
    justify-content: flex-start;
  }
  .content-card--wide,
  .content-card--mid,
  .content-card--narrow {
    grid-column: auto;
  }
}
.aura-sidebar__top {
  padding-bottom: 1rem;
  border-bottom: 1px solid #ccc;
}
.aura-sidebar__brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #6f4fa8;
  color: #fdfaff;
  font-weight: 700;
  letter-spacing: 0.08em;
}

:root {
  --aura-sidebar-width: 280px;
  --aura-sidebar-collapsed-width: 88px;
  --aura-sidebar-surface: linear-gradient(180deg, #fbf8ff 0%, #efe7fb 100%);
  --aura-sidebar-border: #d8c8f0;
  --aura-sidebar-shadow: 0 22px 48px rgba(96, 72, 132, 0.16);
  --aura-sidebar-text: #35264d;
  --aura-sidebar-muted: #7d6a9e;
  --aura-sidebar-accent: #8f6bc7;
  --aura-sidebar-accent-soft: #ece2fb;
}

body {
  background: #ffffff;
  padding-left: var(--aura-sidebar-width);
  transition: padding-left 180ms ease;
}

body.aura-sidebar-collapsed {
  padding-left: var(--aura-sidebar-collapsed-width);
}

.aura-mobile-header {
  display: none;
}

.aura-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--aura-sidebar-width);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 16px;
  background: var(--aura-sidebar-surface);
  border-right: 1px solid var(--aura-sidebar-border);
  box-shadow: var(--aura-sidebar-shadow);
  z-index: 1000;
  transition: width 180ms ease, transform 180ms ease;
  overflow-x: hidden;
  overflow-y: auto;
}

body.aura-sidebar-collapsed .aura-sidebar {
  width: var(--aura-sidebar-collapsed-width);
}

.aura-sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.aura-sidebar__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--aura-sidebar-text);
  text-decoration: none;
}

.aura-sidebar__brand-text {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.aura-sidebar__toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: #e7dcf8;
  color: #35264d;
  cursor: pointer;
  font-size: 1.25rem;
}

.aura-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aura-sidebar__group {
  border: 1px solid rgba(216, 200, 240, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  overflow: hidden;
}

.aura-sidebar__group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: var(--aura-sidebar-text);
  cursor: pointer;
  transition: background 180ms ease;
}

.aura-sidebar__group.is-open .aura-sidebar__group-toggle .aura-sidebar__chevron {
  border-color: #ffffff;
}

.aura-sidebar__group.is-open .aura-sidebar__group-icon {
  background: #4a3865;
  color: #ffffff;
  transform: scale(1.2);
}

.aura-sidebar__group-heading {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.aura-sidebar__group-icon,
.aura-sidebar__link-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #e8ddf8;
  color: #5c4388;
  flex: 0 0 auto;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.aura-sidebar__group-icon i,
.aura-sidebar__link-icon i {
  font-size: 0.95rem;
}

.aura-sidebar__group-label,
.aura-sidebar__link-label,
.aura-sidebar__brand-text,
.aura-sidebar__chevron {
  transition: opacity 140ms ease, transform 140ms ease;
}

.aura-sidebar__chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--aura-sidebar-muted);
  border-bottom: 2px solid var(--aura-sidebar-muted);
  transform: rotate(45deg);
  flex: 0 0 auto;
  margin-right: 4px;
}

.aura-sidebar__group.is-open .aura-sidebar__chevron {
  transform: rotate(225deg);
  margin-top: 4px;
}

.aura-sidebar__submenu {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.aura-sidebar__group:not(.is-open) .aura-sidebar__submenu {
  display: none;
}

.aura-sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  color: var(--aura-sidebar-text);
  text-decoration: none;
}

.aura-sidebar__link:hover,
.aura-sidebar__link.active {
  background: var(--aura-sidebar-accent-soft);
  color: #2f2148;
}

body.aura-sidebar-collapsed .aura-sidebar__brand-text,
body.aura-sidebar-collapsed .aura-sidebar__group-label,
body.aura-sidebar-collapsed .aura-sidebar__link-label,
body.aura-sidebar-collapsed .aura-sidebar__chevron {
  display: none !important;
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
}

body.aura-sidebar-collapsed .aura-sidebar__top {
  flex-direction: column;
}

body.aura-sidebar-collapsed .aura-sidebar__brand {
  justify-content: center;
}

body.aura-sidebar-collapsed .aura-sidebar__group {
  background: transparent;
  border-color: transparent;
}

body.aura-sidebar-collapsed .aura-sidebar__group-toggle {
  padding: 6px;
  justify-content: center;
}

body.aura-sidebar-collapsed .aura-sidebar__submenu {
  display: none;
  padding: 0 6px 10px;
}

body.aura-sidebar-collapsed .aura-sidebar__group.is-open .aura-sidebar__submenu {
  display: grid;
  border-bottom: 1px solid var(--aura-sidebar-border);
  margin-bottom: 10px;
}

body.aura-sidebar-collapsed .aura-sidebar__link,
body.aura-sidebar-collapsed .aura-sidebar__group-icon {
  justify-content: center;
}

body.aura-sidebar-collapsed .aura-sidebar__link {
  padding: 8px 6px;
}

.blink-gallery .aura-sidebar__link-icon,
.aura-sidebar__link.blink-gallery .aura-sidebar__link-icon {
  animation: blink-green 1s infinite;
}

@keyframes blink-green {
  0% {
    background-color: #e8ddf8;
    color: #5c4388;
  }
  50% {
    background-color: #28a745;
    color: #ffffff;
  }
  100% {
    background-color: #e8ddf8;
    color: #5c4388;
  }
}
@media (max-width: 1000px) {
  body {
    padding-left: 0;
    padding-top: 88px;
  }
  body.aura-sidebar-collapsed {
    padding-left: 0;
  }
  .aura-sidebar {
    position: fixed;
    inset: 0;
    width: 100%;
    padding: 0;
    background: transparent;
    border-right: none;
    box-shadow: none;
    pointer-events: none;
    overflow: visible;
    z-index: 1000;
  }
  .aura-mobile-header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 88px;
    background: var(--aura-sidebar-surface);
    border-bottom: 10px solid var(--aura-sidebar-border);
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  .aura-sidebar__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
    pointer-events: auto;
    z-index: 999;
  }
  .aura-sidebar__top {
    display: flex;
    padding: 22px 16px;
    background: var(--aura-sidebar-surface);
    border-bottom: 1px solid var(--aura-sidebar-border);
    margin-bottom: 18px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .aura-sidebar__nav {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(84vw, 320px);
    background: var(--aura-sidebar-surface);
    transform: translateX(-100%);
    transition: transform 180ms ease;
    pointer-events: auto;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 6rem 0 0;
    overflow-y: auto;
    box-shadow: none;
    border-right: 1px solid var(--aura-sidebar-border);
  }
  .aura-sidebar__nav .aura-sidebar__group {
    margin: 10px 16px;
  }
  /* Hamburger-Button im Header */
  .aura-sidebar__toggle {
    position: static;
    z-index: auto;
  }
  body.aura-sidebar-mobile-open {
    overflow: hidden;
  }
  body.aura-sidebar-mobile-open .aura-sidebar__overlay {
    opacity: 1;
    visibility: visible;
  }
  body.aura-sidebar-mobile-open .aura-sidebar__nav {
    transform: translateX(0);
    box-shadow: var(--aura-sidebar-shadow);
  }
  .aura-sidebar__brand-text,
  .aura-sidebar__group-label,
  .aura-sidebar__link-label,
  .aura-sidebar__chevron {
    display: inline-flex !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }
  .aura-sidebar__submenu {
    display: grid !important;
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding: 0 10px 10px !important;
  }
  .aura-sidebar__group:not(.is-open) .aura-sidebar__submenu {
    display: none !important;
  }
  .aura-sidebar__group {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(216, 200, 240, 0.9);
  }
}
.landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #0f0f12;
  color: #000;
}

.landing-card {
  width: 100%;
  max-width: 520px;
  background: #1a1a24;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.landing-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.landing-link {
  display: inline-block;
  padding: 12px 14px;
  color: #000;
  text-decoration: underline;
}

.landing-user {
  margin-top: 10px;
}

/* Landing footer */
.landing-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f9f5ff;
  color: #333;
  border-top: 1px solid #ddd;
  padding: 10px 16px;
  z-index: 1000;
  text-align: center;
}
.landing-footer-content {
  max-width: 980px;
  margin: 0 auto 10px;
  font-size: 14px;
}
.landing-footer-links {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
}
.landing-footer-links a {
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  opacity: 0.85;
  transition: opacity 0.2s ease, text-decoration-color 0.2s ease;
}
.landing-footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}
.landing-footer-links a:not(:last-child)::after {
  content: "|";
  margin: 0 12px;
  opacity: 0.5;
}

.facebook-select-page-modal .modal-dialog {
  max-width: 520px;
}
.facebook-select-page-modal .modal-content {
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(26, 19, 43, 0.28);
  background: #fff;
}
.facebook-select-page-modal.show {
  background: rgba(16, 10, 28, 0.68);
  backdrop-filter: blur(8px);
}
.facebook-select-page-modal__hero {
  padding: 20px 22px;
  background: linear-gradient(135deg, #7f5cc2 0%, #b08bed 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.facebook-select-page-modal__hero h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
}
.facebook-select-page-modal__hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}
.facebook-select-page-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  flex-shrink: 0;
}
.facebook-select-page-modal__body {
  padding: 0;
  background: #fff;
  min-height: 34vh;
}
.facebook-select-page-modal__frame {
  display: block;
  width: 100%;
  height: 34vh;
  border: 0;
  background: #fff;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

/* Lade-Overlay */
.aura-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(116, 84, 176, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  backdrop-filter: blur(8px);
}
.aura-loading-overlay__dialog {
  background: linear-gradient(180deg, #ffffff 0%, #fbf8ff 100%);
  padding: 30px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(77, 53, 122, 0.16);
  border: 1px solid rgba(127, 92, 194, 0.14);
  max-width: 90%;
  width: 300px;
}
.aura-loading-overlay__spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(127, 92, 194, 0.16);
  border-top: 4px solid #7f5cc2;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: aura-spin 1s linear infinite;
}
.aura-loading-overlay__eyebrow {
  color: #7f5cc2;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  margin-bottom: 8px;
}
.aura-loading-overlay__message {
  color: #33214f;
  font-size: 16px;
}

@keyframes aura-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Modal / Galerie */
.preview-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 10000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px;
  box-sizing: border-box !important;
}
.preview-modal[hidden] {
  display: none !important;
}
.preview-modal__backdrop {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(74, 52, 118, 0.22);
  cursor: pointer;
  z-index: 0;
  backdrop-filter: blur(8px);
}
.preview-modal__dialog {
  position: relative !important;
  z-index: 1 !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbf8ff 100%);
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(127, 92, 194, 0.14);
  box-shadow: 0 26px 60px rgba(78, 55, 122, 0.18);
  margin: auto !important;
}
.preview-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(127, 92, 194, 0.1);
  color: #5d468e;
  border: 1px solid rgba(127, 92, 194, 0.12);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}
.preview-modal__close:hover {
  background: rgba(127, 92, 194, 0.16);
}

body.modal-open {
  overflow: hidden;
}

.preview-modal.prompt-media-modal.image-gallery,
.preview-modal.prompt-media-modal.website-image-gallery,
.preview-modal.prompt-media-modal.global-gallery,
.preview-modal.prompt-media-modal.global-website-gallery {
  margin-top: 0;
  background: transparent;
  max-height: none;
  overflow: visible;
  border-radius: 0;
}

.preview-modal.prompt-media-modal .gallery-grid,
.preview-modal.prompt-media-modal .website-gallery-grid {
  display: grid !important;
  justify-content: stretch;
}

#voiceToVideoModal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}
#voiceToVideoModal[style*="display: none"] {
  display: none !important;
}

.voice-modal-content {
  background-color: #222;
  color: #fff;
  margin: auto !important;
  padding: 20px;
  border: 1px solid #444;
  width: 90%;
  max-width: 400px;
  border-radius: 12px;
  text-align: center;
}

.voice-modal-content h3 {
  margin-top: 0;
}

.voice-modal-content textarea {
  width: 100%;
  background: #333;
  color: #fff;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 10px;
  margin: 15px 0;
  resize: none;
}

.voice-modal-btns {
  display: flex;
  justify-content: space-around;
  gap: 10px;
}

.story-mode {
  display: grid !important;
  grid-template-columns: 1fr !important;
  max-width: 500px;
  margin: 0 auto;
}

.story-mode[style*="display: none"] {
  display: none !important;
}

.story-mode .ad-container {
  width: 100% !important;
  margin-bottom: 30px;
  border: 1px solid #444;
  padding: 15px;
  border-radius: 12px;
  background: #222;
}

.story-mode .ad-image img {
  max-width: 100% !important;
  height: auto !important;
}

.story-preview-container {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.story-text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  pointer-events: none;
  width: 90%;
  word-wrap: break-word;
  white-space: pre-wrap;
  display: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
  padding: 15px;
}

.story-text-overlay.top {
  top: 20%;
  transform: translate(-50%, 0);
}

.story-text-overlay.middle {
  top: 50%;
  transform: translate(-50%, -50%);
}

.story-text-overlay.bottom {
  top: auto;
  bottom: 20%;
  transform: translate(-50%, 0);
}

/* Prompt Results Card */
.prompt-result-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(127, 92, 194, 0.12);
  box-shadow: 0 12px 32px rgba(95, 70, 146, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.prompt-result-card:hover {
  box-shadow: 0 20px 48px rgba(95, 70, 146, 0.14);
}

.prompt-result-card__top {
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(127, 92, 194, 0.03) 0%, rgba(176, 139, 237, 0.06) 100%);
  border-bottom: 1px solid rgba(127, 92, 194, 0.08);
}

.prompt-result-card__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7f5cc2;
  margin-bottom: 4px;
}

.prompt-result-card__top h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #24153f;
}

.prompt-result-card__media {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Preview Viewports & Containers */
.prompt-result-preview {
  position: relative;
  width: 100%;
  background: #f8f6fb;
  border-radius: 16px;
  overflow: hidden;
  border: 1px dashed rgba(127, 92, 194, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prompt-result-preview__viewport {
  position: relative;
  width: 100%;
  height: 0;
  /* Default Aspect Ratio 1:1 */
  padding-bottom: 100%;
}

.prompt-result-preview--facebook .prompt-result-preview__viewport {
  padding-bottom: 100%; /* 1:1 */
}

.prompt-result-preview--instagram .prompt-result-preview__viewport {
  padding-bottom: 125%; /* 4:5 */
}

.prompt-result-preview--story .prompt-result-preview__viewport {
  padding-bottom: 177.77%; /* 9:16 */
}

.prompt-result-preview__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--fb-pos-x, 50%) var(--fb-pos-y, 50%);
  transition: object-position 0.2s ease;
}

.no-select {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

/* Drag & Drop für Bild-Vorschauen */
.prompt-result-preview--adjustable {
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.prompt-result-preview--adjustable .prompt-result-preview__image {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  transform: none;
  transition: none;
}
.prompt-result-preview--adjustable.is-dragging {
  cursor: grabbing;
}

/* Drag & Drop für Story Text Overlays */
.story-text-overlay[data-drag-ready="1"] {
  cursor: move;
  pointer-events: auto !important;
  user-select: none !important;
  touch-action: none;
  transition: none !important;
}
.story-text-overlay[data-drag-ready="1"].is-dragging {
  opacity: 0.8;
  z-index: 100;
}

.prompt-result-preview__link {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.story-text-overlay {
  z-index: 10;
}

.prompt-result-preview__empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  gap: 12px;
  color: #7b6f8f;
  font-size: 0.9rem;
}

/* Inline Actions & Edit Box */
.prompt-result-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.prompt-result-inline-actions--collapsed {
  padding: 12px;
  background: rgba(127, 92, 194, 0.04);
  border-radius: 14px;
}

.prompt-result-edit-box {
  background: #fcfaff;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(127, 92, 194, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prompt-result-edit-box textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(127, 92, 194, 0.15);
  font-size: 0.9rem;
  resize: vertical;
  background: #ffffff;
}

.prompt-result-text-wrap {
  position: relative;
  margin-bottom: 14px;
}

.prompt-result-text {
  width: 100%;
  padding-right: 62px;
  padding-bottom: 62px;
}

.prompt-result-copy-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border: 1px solid rgba(127, 92, 194, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f2ff 100%);
  color: #6b4eb0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(95, 70, 146, 0.08);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.prompt-result-copy-btn:hover,
.prompt-result-copy-btn:focus {
  background: linear-gradient(180deg, #ffffff 0%, #efe6ff 100%);
  box-shadow: 0 14px 28px rgba(95, 70, 146, 0.12);
  transform: translateY(-1px);
}

.prompt-result-actions {
  display: grid;
  gap: 12px;
}

.prompt-result-actions__duo {
  display: grid;
  gap: 12px;
}

.prompt-result-actions > .aura-btn,
.prompt-result-actions__duo > .aura-btn,
.postStoryBtn,
.scheduleStoryBtn {
  width: 100%;
  min-height: 46px;
  padding-inline: 18px;
  justify-content: center;
  font-size: 0.95rem;
}

/* Results Content Area */
.prompt-result-card__content {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prompt-result-text-edit {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prompt-result-text-edit label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #5d468e;
}

.prompt-result-text-edit textarea {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(127, 92, 194, 0.12);
  background: #fcfaff;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #24153f;
  transition: all 0.2s ease;
}

.prompt-result-text-edit textarea:focus {
  background: #ffffff;
  border-color: #7f5cc2;
  box-shadow: 0 0 0 4px rgba(127, 92, 194, 0.1);
  outline: none;
}

/* Result Footer Actions */
.prompt-result-card__footer {
  margin-top: auto;
  padding: 16px 24px;
  background: rgba(127, 92, 194, 0.02);
  border-top: 1px solid rgba(127, 92, 194, 0.06);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* AI Image Modal specific */
.prompt-ai-modal__dialog {
  max-width: 600px;
}

.ai-image-form-content {
  margin: 20px 0;
}

.prompt-results-panel__submit {
  width: 100%;
}

/* Gallery specific */
.gallery-loading, .website-gallery-loading {
  font-size: 0.9rem;
  color: #7b6f8f;
  font-style: italic;
}

/* Prompt Results Grid & Layout */
.prompt-results-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

@media (min-width: 1200px) {
  .prompt-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1600px) {
  .prompt-results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.prompt-results-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(127, 92, 194, 0.04);
  border-radius: 18px;
  border: 1px solid rgba(127, 92, 194, 0.1);
}

.prompt-results-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  padding: 16px;
  background: rgba(127, 92, 194, 0.04);
  border-radius: 18px;
  border: 1px solid rgba(127, 92, 194, 0.1);
  justify-content: flex-start;
}

.prompt-results-footer {
  display: grid;
  gap: 12px;
}

.global-schedule-container.prompt-result-schedule {
  display: grid;
  gap: 12px;
  width: 100%;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid rgba(127, 92, 194, 0.12);
  justify-items: start;
}

.global-schedule-container.prompt-result-schedule .globalScheduleDate {
  width: min(320px, 100%);
}

.prompt-page-shell__inner {
  max-width: none;
  width: 100%;
}

.prompt-page-grid {
  grid-template-columns: minmax(0, 1fr);
}

.prompt-page-grid > article.page-stack {
  width: 100%;
  max-width: none;
}

.ad-image-selection.prompt-result-inline-actions {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  padding: 16px;
  background: rgba(127, 92, 194, 0.04);
  border-radius: 18px;
  border: 1px solid rgba(127, 92, 194, 0.1);
  justify-content: flex-start;
}

/* Specific Container Overrides if needed */
.prompt-choice-row,
#werbeaktion-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.zielgruppe-select {
  width: 50%;
  max-width: 50%;
  flex: 0 0 50%;
  height: 47.59px;
  min-height: 47.59px;
  max-height: 47.59px;
  align-self: flex-start;
}

.prompt-choice-row .ci-mini-btn {
  /* Ensure choice row buttons use the grid-like display from before or keep flex */
}

@media (max-width: 900px) {
  .prompt-choice-row {
    flex-direction: column;
  }
  .prompt-choice-row .ci-mini-btn {
    width: 100%;
  }
}
/* Modals & Panels */
.prompt-results-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 22px 24px 14px;
  border-bottom: 1px solid rgba(127, 92, 194, 0.1);
  background: linear-gradient(180deg, rgba(127, 92, 194, 0.04) 0%, rgba(127, 92, 194, 0) 100%);
}

.prompt-results-panel__header h3 {
  margin: 0;
  color: #24153f;
  font-size: 1.25rem;
}

.prompt-results-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.prompt-gallery-tabs {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(127, 92, 194, 0.1);
  background: linear-gradient(180deg, rgba(127, 92, 194, 0.04) 0%, rgba(127, 92, 194, 0) 100%);
}
.prompt-gallery-tabs h1 {
  margin: 0;
  color: #24153f;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
}

.prompt-gallery-tabs__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.prompt-gallery-tabs .gallery-loading {
  margin-left: auto;
}

.prompt-gallery-empty {
  color: #7f6b9d;
  padding: 12px;
}

.prompt-results-gallery-grid .gallery-item,
.prompt-results-gallery-grid .website-gallery-item {
  width: 100%;
  height: auto;
  max-height: none;
  min-height: 138px;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  cursor: pointer;
  padding: 0;
  text-align: initial;
  border-radius: 8px;
  border: 0.5px solid rgba(127, 92, 194, 0.08);
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(95, 70, 146, 0.05);
}

.prompt-results-gallery-grid .gallery-item--video {
  position: relative;
  overflow: hidden;
}

.prompt-results-gallery-grid .gallery-item--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.prompt-results-gallery-grid .gallery-item__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.86);
  color: #6b4eb0;
  font-size: 16px;
  box-shadow: 0 6px 12px rgba(44, 26, 80, 0.14);
}

.prompt-results-gallery-grid.website-gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.preview-modal.prompt-media-modal .prompt-media-modal__dialog {
  width: calc(100vw - 40px) !important;
  max-width: calc(100vw - 40px) !important;
}

@media (max-width: 720px) {
  .prompt-gallery-tabs {
    align-items: flex-start;
  }
  .prompt-gallery-tabs .gallery-loading {
    width: 100%;
    margin-left: 0;
  }
  .preview-modal.prompt-media-modal .prompt-media-modal__dialog {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
  }
}
.prompt-form-shell {
  display: grid;
  gap: 18px;
}

.prompt-form-shell #form-content,
.prompt-form-shell .formular-gesamt,
.prompt-results-shell {
  display: grid;
  gap: 16px;
}

body > h1.white {
  display: none;
}

@media (max-width: 900px) {
  .prompt-choice-row {
    grid-template-columns: 1fr;
  }
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

table thead {
  background: #f4f4f4;
}

table th, table td {
  border: 1px solid #ccc;
  padding: 8px 10px;
  font-size: 14px;
}

table img {
  max-width: 80px;
  border-radius: 6px;
}

.status-pending {
  color: #d49000;
  font-weight: bold;
}

.status-done {
  color: green;
  font-weight: bold;
}

.status-failed {
  color: red;
  font-weight: bold;
}

nav.top-menu {
  margin-bottom: 20px;
}

.menu-item {
  margin-right: 20px;
  text-decoration: none;
  font-size: 16px;
  color: #333;
}

.menu-item.active {
  font-weight: bold;
  color: #000;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.gallery-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1px;
  text-align: center;
  width: 240px;
  transition: opacity 0.3s, transform 0.3s;
}

.gallery-item img {
  width: 100%;
  height: 240px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

.filename {
  margin-top: 8px;
  font-size: 12px;
  color: #666;
  word-wrap: break-word;
}

.gallery-preview-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  padding: 20px;
}

.gallery-preview-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.settings-legacy .container {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: auto;
}
.settings-legacy .container-grey {
  background: #e9ecef;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.settings-legacy label {
  margin-top: 15px;
  display: block;
  font-weight: bold;
}
.settings-legacy input,
.settings-legacy select,
.settings-legacy textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.settings-legacy .debug-box {
  margin-top: 30px;
  padding: 15px;
  background: #222;
  color: #0f0;
  border-radius: 6px;
  font-family: monospace;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.inactive {
  color: #999;
  font-style: italic;
}

nav.top-menu a {
  margin-right: 20px;
}

/* Formular */
form, table {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  color: black;
}
form label, table label {
  font-weight: bold;
  margin-bottom: 4px;
  display: block;
}
@media (min-width: 768px) {
  form label, table label {
    flex: 0 0 50%;
  }
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}
@media (min-width: 768px) {
  .form-row {
    flex-direction: row;
    align-items: center;
  }
}

.form-input {
  flex: 1;
}

.formular-website-abschnitt {
  display: flex;
  flex-direction: row;
  margin-bottom: 0.5rem;
}

.rabatt-container {
  display: flex;
}

.range-singel {
  width: 49%;
}

#slider-qualitaet, #slider-max {
  width: 48%;
}

.story-mode {
  display: grid !important;
  grid-template-columns: 1fr !important;
  max-width: 500px;
  margin: 0 auto;
}

.story-mode[style*="display: none"] {
  display: none !important;
}

.story-mode .ad-container {
  width: 100% !important;
  margin-bottom: 30px;
  border: 1px solid #444;
  padding: 15px;
  border-radius: 12px;
  background: #222;
}

.story-mode .ad-image img {
  max-width: 100% !important;
  height: auto !important;
}

.story-preview-container {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.story-text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  pointer-events: none;
  width: 90%;
  word-wrap: break-word;
  white-space: pre-wrap;
  display: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
  padding: 15px;
}

.global-actions-row, .global-actions-row-aktion {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: #222;
  border-radius: 8px;
}

.active-click {
  cursor: pointer;
  background-color: #333;
}

.ads-page {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: linear-gradient(180deg, #fbf8ff 0%, #f4edfe 100%);
  min-height: 100vh;
  color: #2e2145;
}

.ads-page.page-shell {
  background: linear-gradient(180deg, #fbf8ff 0%, #f4edfe 100%);
}

.ads-page .page-title,
.ads-page .hero-title {
  font-family: "ivypresto-display", "Fraunces", "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.ads-page__main {
  width: 100%;
}

.ads-page__inner {
  gap: 28px;
  max-width: 1480px;
}

.ads-page__stats {
  margin-top: 24px;
}

.ads-page .wizard-shell {
  background: transparent;
  border-radius: 0;
  padding: 28px 0;
  box-shadow: none;
  backdrop-filter: none;
}

.ads-page .ads-panel {
  border: 0 !important;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: none;
  overflow: hidden;
}

.ads-page .ads-panel > .card-body {
  padding: 28px;
}

.ads-page .nav-tabs {
  border-bottom-color: rgba(205, 191, 232, 0.9);
}

.ads-page .nav-tabs .nav-link {
  border: 0;
  border-radius: 10px 10px 0 0;
  color: #6c5e80;
  font-weight: 700;
}

.ads-page .nav-tabs .nav-link.active {
  background: linear-gradient(135deg, #7f5cc2 0%, #b08bed 100%);
  color: #ffffff;
}

.ads-page .shared-account-field {
  display: grid;
  gap: 10px;
  height: 100%;
  padding: 18px 20px;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ads-page .ads-account-panel {
  background: transparent;
  border: 1px solid rgba(205, 191, 232, 0.9) !important;
  border-radius: 20px;
  box-shadow: none;
  overflow: hidden;
}

.ads-page .ads-account-panel > .card-body {
  padding: 0;
}

.ads-page .ads-account-form {
  margin: 0;
}

.ads-page .ads-account-col {
  padding: 0;
}

.ads-page .shared-account-field .form-label {
  margin-bottom: 0;
}

.ads-page .shared-account-field .form-text {
  margin-top: 0;
  min-height: 0;
}

.ads-page .step-index {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #2e2145;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 600;
}

.ads-page .pill-check {
  border: 1px solid rgba(15, 29, 43, 0.2);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
}

.ads-page .preview-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.ads-page .preview-bar span {
  display: block;
  height: 100%;
  width: 62%;
  background: linear-gradient(90deg, #8f6bc7, #4bd1a0);
}

.ads-page .ads-step {
  display: none;
}

.ads-page .ads-step.is-active {
  display: block;
}

.ads-page .ads-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ads-page .ads-nav [data-next] {
  order: 1;
}

.ads-page .ads-nav [data-prev] {
  order: 0;
}

.ads-page .ads-stepper-item {
  padding: 6px 12px;
  border-radius: 999px;
  background: #efe7fb;
  color: #5e438f;
  font-weight: 600;
  cursor: pointer;
}

.ads-page .ads-stepper-item.is-active {
  background: #8f6bc7;
  color: #ffffff;
}

.ads-page .goal-option {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
  margin-bottom: 8px;
}

.ads-page .goal-help {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(143, 107, 199, 0.3);
  background: #f3ecfd;
  color: #6f52a7;
  font-weight: 700;
  line-height: 1;
  padding: 0;
}

.ads-page .goal-help:hover,
.ads-page .goal-help:focus {
  background: #8f6bc7;
  border-color: #8f6bc7;
  color: #ffffff;
}

.ads-page .btn-primary {
  border: 0;
  background: linear-gradient(135deg, #7f5cc2 0%, #b08bed 100%);
  box-shadow: 0 16px 28px rgba(127, 92, 194, 0.22);
}

.ads-page .btn-primary:hover,
.ads-page .btn-primary:focus {
  background: linear-gradient(135deg, #6d4dae 0%, #a57fe4 100%);
}

.ads-page .btn-outline-dark {
  border: 1px solid #d9caef;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f2fd 100%);
  color: #2f2345;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 18px rgba(137, 108, 188, 0.08);
}

.ads-page .btn-outline-dark:hover,
.ads-page .btn-outline-dark:focus {
  border-color: #8f6bc7;
  background: #ffffff;
  color: #2f2345;
  box-shadow: 0 0 0 4px rgba(156, 122, 211, 0.12), 0 12px 24px rgba(137, 108, 188, 0.12);
}

.ads-page .btn-check + .btn-outline-dark {
  min-height: 88px;
  padding: 16px 18px;
  font-weight: 700;
  line-height: 1;
}

.ads-page .btn-check + .btn-outline-dark small {
  margin-top: 0;
  color: #6c5e80;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1;
}

.ads-page .btn-check:checked + .btn-outline-dark,
.ads-page .btn-check:active + .btn-outline-dark,
.ads-page .btn-check + .btn-outline-dark:active {
  border-color: transparent;
  background: linear-gradient(135deg, #7f5cc2 0%, #b08bed 100%);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(127, 92, 194, 0.22);
}

.ads-page .btn-check:checked + .btn-outline-dark small,
.ads-page .btn-check:active + .btn-outline-dark small,
.ads-page .btn-check + .btn-outline-dark:active small {
  color: rgba(255, 255, 255, 0.88);
}

.ads-page .text-muted,
.ads-page .form-text {
  color: #6c5e80 !important;
}

.ads-page .border.rounded-3 {
  border: 1px solid #e0d4f2 !important;
  border-radius: 20px !important;
  background: #fbf8ff;
}

.ads-page .ad-media-selection-label {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #d9caef;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f2fd 100%);
  color: #4d3f63 !important;
  font-weight: 600;
}

.ads-page .ad-image-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.ads-page .ad-media-action {
  padding: 10px 14px;
  border: 1px solid #cfbced;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f2fd 100%);
  color: #4d3f63;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 18px rgba(137, 108, 188, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.ads-page .ad-media-action:hover,
.ads-page .ad-media-action:focus {
  border-color: #8f6bc7;
  background: #ffffff;
  color: #2f2345;
  box-shadow: 0 0 0 4px rgba(156, 122, 211, 0.12), 0 12px 24px rgba(137, 108, 188, 0.12);
  transform: translateY(-1px);
}

.ads-page .ad-media-input {
  display: none;
}

.ads-page .ad-media-gallery,
.ads-page .ad-ai-box {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #d9caef;
  border-radius: 18px;
  background: #f8f4fe;
  max-height: 380px;
  overflow-y: auto;
}

.ads-page .gallery-loading,
.ads-page .website-gallery-loading {
  color: #7b6f8f;
}

.ads-page .ad-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}

.ads-page .ad-ai-generate-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #7f5cc2 0%, #b08bed 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(127, 92, 194, 0.22);
  cursor: pointer;
}

.ads-page .ads-report-current-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.ads-page .ads-report-preview-row {
  margin-top: 0 !important;
}

.ads-page .ads-report-preview-card {
  padding-top: 0.75rem !important;
}

.ads-page .ads-report-ad-card {
  margin-bottom: 1rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 244, 254, 0.96) 100%);
  box-shadow: 0 18px 34px rgba(95, 61, 147, 0.08);
  overflow: hidden;
}

.ads-page .ads-report-section > .h5 {
  text-align: center;
}

.ads-page .ads-report-ad-card:last-child {
  margin-bottom: 0;
}

.ads-page .ads-report-current-header__title {
  min-width: 0;
  line-height: 1.15;
}

.ads-page .ads-report-current-header__title h3 {
  margin-bottom: 0.2rem !important;
  line-height: 1.15;
}

.ads-page .ads-report-current-header__title .text-muted {
  margin-bottom: 0;
  line-height: 1.2;
}

.ads-page .ads-report-current-header__actions {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ads-page .ads-report-inline-form {
  margin: 0;
}

.ads-page .ads-panel--nested {
  background: #fbf8ff;
}

.ads-page .accordion-item {
  border: 1px solid #e0d4f2;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
}

.ads-page .accordion-item + .accordion-item {
  margin-top: 12px;
}

.ads-page .accordion-button {
  background: linear-gradient(180deg, #ffffff 0%, #f7f2fd 100%);
  color: #2f2345;
  font-weight: 700;
  box-shadow: none;
}

.ads-page .accordion-button:not(.collapsed) {
  background: #f3ecfd;
  color: #2f2345;
  box-shadow: inset 0 -1px 0 rgba(205, 191, 232, 0.75);
}

.ads-page .accordion-button:focus {
  box-shadow: 0 0 0 4px rgba(156, 122, 211, 0.16);
}

.ads-page .accordion-body {
  background: #ffffff;
}

.ads-page .list-group-item {
  border: 1px solid #e0d4f2;
  border-radius: 18px;
  margin-bottom: 12px;
  background: #fbf8ff;
}

.ads-page .table-responsive.border.rounded-3 {
  background: #fbf8ff;
}

.ads-page .btn-outline-secondary {
  border-color: #cfbced;
  color: #5f4692;
}

.ads-page .btn-outline-secondary:hover,
.ads-page .btn-outline-secondary:focus {
  border-color: #8f6bc7;
  background: #8f6bc7;
  color: #ffffff;
}

.ads-page .btn-outline-primary {
  border: 1px solid #cfbced;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f2fd 100%);
  color: #5f4692;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 18px rgba(137, 108, 188, 0.08);
}

.ads-page .btn-outline-primary:hover,
.ads-page .btn-outline-primary:focus {
  border-color: #8f6bc7;
  background: #8f6bc7;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(137, 108, 188, 0.12);
}

.ads-page .btn-outline-danger {
  border: 1px solid #e8bfd0;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff8fb 0%, #fdeff4 100%);
  color: #9a3657;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 8px 18px rgba(181, 90, 121, 0.08);
}

.ads-page .btn-outline-danger:hover,
.ads-page .btn-outline-danger:focus {
  border-color: #c45174;
  background: #c45174;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(181, 90, 121, 0.16);
}

.ads-page .btn.btn-sm {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 14px;
}

.ads-page .btn-link {
  color: #6f52a7;
  font-weight: 700;
}

.ads-page .btn-link:hover,
.ads-page .btn-link:focus {
  color: #4f347f;
}

.ads-page .ads-report-action-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.ads-page .ads-report-metrics .col-md-3 {
  display: flex;
}

.ads-page .ads-report-metric-card {
  width: 100%;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  line-height: 1.15;
}

.ads-page .ads-report-metrics .ads-report-metric-card {
  padding: 0.85rem !important;
}

.ads-page .ads-report-metrics .ads-report-metric-card--compact {
  min-height: 68px;
}

.ads-page .ads-report-metric-card .text-muted {
  margin-bottom: 0;
  line-height: 1.1;
}

.ads-page .ads-report-metric-card .fw-semibold {
  line-height: 1.1;
}

.ads-page .ads-report-metric-card .fw-semibold small.d-block {
  margin-top: 1px;
  line-height: 1.2;
}

.ads-page .ads-report-metric-card--actions {
  justify-content: center;
}

.ads-nav-container {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
}

@media (max-width: 760px) {
  .ads-page .wizard-shell {
    padding: 18px;
  }
  .ads-page .ads-panel > .card-body {
    padding: 20px;
  }
  .ads-page .ads-report-current-header {
    flex-direction: column;
    align-items: stretch;
  }
  .ads-page .ads-report-current-header__actions {
    justify-content: flex-start;
  }
}
/* ===========================
   Facebook Ad Preview Styles
   =========================== */
.fb-ad-preview {
  max-width: 430px;
  width: 100%;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display: flex;
  flex: 1;
  min-height: 0;
}

.fb-ad-card {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-height: 0;
}

.fb-ad-header {
  display: flex;
  gap: 10px;
  padding: 12px 12px 8px 12px;
  align-items: flex-start;
}

.fb-ad-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #d94f97;
  flex: 0 0 40px;
}

.fb-ad-headlines {
  flex: 1;
}

.fb-ad-page {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fb-ad-dot {
  color: #999;
  font-weight: 400;
}

.fb-ad-meta {
  font-weight: 500;
  color: #6b6b6b;
  font-size: 12px;
}

.fb-ad-sub {
  margin-top: 2px;
  font-size: 12px;
  color: #6b6b6b;
  display: flex;
  gap: 6px;
  align-items: center;
}

.fb-ad-menu {
  color: #6b6b6b;
  font-weight: 700;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 8px;
}

.fb-ad-menu:hover {
  background: #f2f2f2;
  cursor: pointer;
}

.fb-ad-text-wrap {
  padding: 0 12px 10px 12px;
  background: #fff;
}

.fb-ad-text {
  font-size: 14px;
  color: #1c1e21;
  line-height: 1.35;
  white-space: pre-wrap;
}

#fbPrimaryText {
  display: block;
  line-height: 1.4;
  overflow: hidden;
  max-height: none;
}

#fbMoreToggle {
  color: #65676b;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  margin-left: 6px;
  white-space: nowrap;
  display: inline-block !important;
}

#fbMoreToggle:hover {
  text-decoration: underline;
}

.fb-ad-media {
  width: 100%;
  background: #f5f6f7;
}

.fb-ad-media img {
  width: 100%;
  display: block;
  aspect-ratio: 1/1; /* z.B. 1.91 / 1 für Link-Ad */
  object-fit: cover;
  background: #f5f6f7;
}

.fb-ad-linkblock {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eee;
  padding: 10px 12px 12px 12px;
  background: #fff;
}

.fb-ad-linkblock-zeile {
  flex: 1;
  min-width: 0;
}

.fb-ad-url {
  font-size: 11px;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.fb-ad-headline {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  color: #1c1e21;
  line-height: 1.25;
}

.fb-ad-desc {
  margin-top: 4px;
  font-size: 13px;
  color: #6b6b6b;
  line-height: 1.25;
}

.fb-ad-cta-row {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.fb-ad-cta {
  background: #e4e6eb;
  border: 1px solid #d8dadf;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  color: #050505;
}

.fb-ad-cta:hover {
  background: #d8dadf;
  cursor: pointer;
}

/* Footer actions: bleibt unten in der Card */
.fb-ad-actions {
  display: flex;
  justify-content: space-evenly;
  margin-top: auto; /* klebt unten in der Card */
  padding: 10px 0;
  border-top: 1px solid #eee;
}

.fb-ad-action {
  font-size: 13px;
  color: #65676b;
}

/* ===========================
   Stepper
   =========================== */
.ads-stepper {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 1rem;
}

/* ===========================
   Step Layout (Links/Rechts)
   Ziel: Navigation "Weiter" unten rechts
   WICHTIG: zeigt NICHT alle Sections an
   =========================== */
.step-card-gesamt {
  display: flex;
  gap: 16px;
}

/* rechts fix 430px */
.step-card-right {
  flex: 1;
  display: flex;
  min-height: 0;
  margin-right: 2rem; /* optional */
}

/* links als flex-container */
.step-card-left {
  flex: 1;
}

/* NUR der sichtbare Step bekommt Flex-Layout:
   Variante A: du setzt per JS die Klasse is-active
*/
.step-card-left .ads-step.is-active {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Navigation unten + rechts (nur im aktiven Step) */
.step-card-left .ads-step.is-active .ads-nav {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}

/* Linke Spalte muss die Höhe “weiterreichen” */
.step-card-left {
  display: flex;
  flex-direction: column; /* <-- wichtig */
  height: 100%; /* <-- wichtig */
}

/* Aktiver Step füllt die linke Spalte komplett */
.step-card-left .ads-step.is-active {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto; /* <-- wichtig */
  min-height: 0;
}

/* linke Spalte darf normal bleiben */
.step-card-left {
  min-width: 0;
}

/* Nav-Leiste bleibt unten sichtbar */
.step-card-left .ads-nav {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  /* damit es nicht "auf" Inhalt liegt */
  background: #fff;
  padding: 12px 0;
  /* Bootstrap mt-4 entschärfen */
  margin-top: 16px !important;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px 0;
  gap: 15px;
}

.calendar-header h1 {
  margin: 0;
  font-size: 28px;
}

.calendar-cell.today .calendar-day {
  color: #fff;
  font-weight: 800;
}

.calendar-cell.today {
  border: 3px solid #ece2fb;
  background: #6f4fa8;
}

.calendar-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  text-decoration: none;
  font-size: 24px;
  border-radius: 8px;
  background: #2c2f36;
  color: #fff;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.weekdays {
  margin-bottom: 10px;
}

.calendar-weekday {
  font-weight: 700;
  text-align: center;
  padding: 10px;
  background: #6f4fa8;
  border-radius: 8px;
  color: #fff;
}

.calendar-cell {
  min-height: 140px;
  background: #d8c8f0;
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.calendar-cell.empty {
  background: transparent;
}

.calendar-day {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 18px;
}

.calendar-posts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calendar-post {
  color: black;
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  line-height: 1.4;
  background: #fff;
  border-left: 4px solid #888;
}

.platform-facebook {
  border-left-color: #1877f2;
}

.platform-instagram {
  border-left-color: #d94f97;
}

.platform-blog {
  border-left-color: #4caf50;
}

.platform-whatsapp {
  border-left-color: #25d366;
}

.post-time {
  font-weight: 700;
  margin-bottom: 3px;
}

.post-title {
  font-weight: 600;
}

.post-meta {
  opacity: 0.8;
  margin-top: 3px;
}

.box {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #ccc;
}

.success {
  background: #f0fff0;
}

.error {
  background: #ffecec;
}

a {
  color: #0066cc;
}

p .example {
  font-family: "sofia-pro-variable", sans-serif;
  font-variation-settings: "wght" 300, "slnt" 0;
}

h1 {
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 600;
  font-style: normal;
}

h2 {
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 600;
  font-style: normal;
}