:root {

  --admin-bg: #0f172a;

  --admin-surface: rgba(15, 23, 42, 0.92);

  --admin-border: rgba(148, 163, 184, 0.25);

  --admin-text: #f8fafc;

  --admin-muted: #cbd5f5;

  --admin-accent: #38bdf8;

  --admin-danger: #f87171;

  --admin-success: #34d399;

}



.admin-body {

  min-height: 100vh;

  margin: 0;

  font-family: var(--font-family, "Segoe UI", Arial, sans-serif);

  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.08), transparent 55%),

              linear-gradient(180deg, #0f172a 0%, #111827 100%);

  color: var(--admin-text);

}



.admin-body--login {

  display: grid;
  align-items: center;

  justify-content: center;

  padding: 3rem 1.5rem;

}



.admin-shell {

  max-width: 960px;

  width: 100%;

  margin: 2rem auto 4rem;

  padding: 2.5rem 2.5rem 3rem;

  background: var(--admin-surface);

  border-radius: 24px;

  border: 1px solid var(--admin-border);

  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.35);

  backdrop-filter: blur(16px);

}

.admin-shell--wide {

  max-width: 1200px;

}



.admin-shell--narrow {

  max-width: 420px;

}



.admin-title {

  margin: 0 0 1.5rem;

  font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem);

  letter-spacing: -0.01em;

  text-align: center;

}



.admin-form {

  display: grid;

  gap: 1.25rem;

}



.admin-form--grid {

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

}



.admin-form label {

  display: flex;

  flex-direction: column;

  gap: 0.55rem;

  font-size: 0.85rem;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  color: var(--admin-muted);

}



.admin-form input,

.admin-form textarea,

.admin-form select {

  width: 100%;

  padding: 0.75rem 1rem;

  border-radius: 16px;

  border: 1px solid rgba(148, 163, 184, 0.35);

  background: rgba(15, 23, 42, 0.75);

  color: var(--admin-text);

  font-size: 1rem;

}

.admin-vat {

  display: flex;

  flex-direction: column;

  gap: 0.65rem;

}



.admin-vat__label {

  font-size: 0.85rem;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  color: var(--admin-muted);

}



.admin-vat__options {

  display: flex;

  flex-wrap: wrap;

  gap: 0.5rem;

}



.admin-vat__option {

  position: relative;

  display: inline-flex;

}



.admin-vat__option input {

  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  opacity: 0;

  cursor: pointer;

}



.admin-vat__option span {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 0.4rem 0.95rem;

  border-radius: 999px;

  border: 1px solid rgba(148, 163, 184, 0.45);

  font-weight: 600;

  font-size: 0.9rem;

  color: var(--admin-text);

  background: rgba(15, 23, 42, 0.7);

  transition: transform 0.12s ease, border 0.12s ease, background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;

  min-width: 64px;

}



.admin-vat__option:hover span {

  border-color: rgba(148, 163, 184, 0.75);

}



.admin-vat__option input:checked + span {

  background: var(--admin-accent);

  color: #0f172a;

  border-color: var(--admin-accent);

  box-shadow: 0 8px 18px rgba(56, 189, 248, 0.35);

}



.admin-vat__option input:focus-visible + span {

  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.45);

}



.admin-form textarea {

  min-height: 160px;

  resize: vertical;

}



.admin-form__full {

  grid-column: 1 / -1;

}



.admin-form__actions {

  grid-column: 1 / -1;

  display: flex;

  justify-content: flex-end;

}



.admin-btn {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 0.35rem;

  padding: 0.7rem 1.4rem;

  border-radius: 999px;

  border: 1px solid transparent;

  font-weight: 600;

  cursor: pointer;

  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;

}



.admin-btn--primary {

  background: var(--admin-accent);

  color: #0f172a;

  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.3);

}



.admin-btn--primary:hover {

  transform: translateY(-1px);

  box-shadow: 0 16px 30px rgba(56, 189, 248, 0.4);

}



.admin-btn--ghost {

  background: transparent;

  border-color: rgba(148, 163, 184, 0.4);

  color: var(--admin-text);

}



.admin-btn--ghost:hover {

  background: rgba(148, 163, 184, 0.15);

}



.admin-header {

  padding: 1.5rem 2.5rem 0;

}



.admin-header__inner {

  display: grid;

  grid-template-columns: 1fr auto;

  align-items: center;

  gap: 1.5rem;

}



.admin-flashes {

  display: grid;

  gap: 0.75rem;

  margin-bottom: 1.5rem;

}



.admin-flash {

  padding: 0.9rem 1.1rem;

  border-radius: 14px;

  font-weight: 600;

  border: 1px solid transparent;

}



.admin-flash--success {

  background: rgba(52, 211, 153, 0.15);

  border-color: rgba(52, 211, 153, 0.35);

  color: #bbf7d0;

}



.admin-flash--error {

  background: rgba(248, 113, 113, 0.15);

  border-color: rgba(248, 113, 113, 0.35);

  color: #fecaca;

}



.admin-format-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.58);
}

.admin-format-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-format-group__title {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--admin-muted);
}

.admin-format-group__choices {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}



.admin-format-group__option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.85);
}

.admin-format-group__option input[type="radio"] {
  width: auto;
  height: auto;
  accent-color: var(--admin-accent);
}



.admin-format-group__hint {
  margin: 0;
  color: rgba(203, 213, 225, 0.8);
}

.admin-attachments {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.58);
}

.admin-attachments__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-attachments__header h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-attachments__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-attachments__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.45);
}

.admin-attachments__file {
  color: var(--admin-text);
  text-decoration: none;
  word-break: break-word;
  transition: color 0.12s ease;
}

.admin-attachments__file:hover {
  color: var(--admin-accent);
}

.admin-attachments__remove {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(203, 213, 225, 0.85);
}

.admin-attachments__remove input[type="checkbox"] {
  width: auto;
  height: auto;
  accent-color: var(--admin-danger);
  cursor: pointer;
}

.admin-attachments__remove input[type="checkbox"]:checked + span {
  color: var(--admin-danger);
  font-weight: 600;
}

.admin-attachments__empty {
  margin: 0;
  color: rgba(203, 213, 225, 0.7);
}

.admin-attachments__upload {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  color: var(--admin-muted);
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease;
}

.admin-attachments__upload:hover {
  border-color: var(--admin-accent);
  color: var(--admin-accent);
}

.admin-attachments__upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-attachments__upload span {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-attachments__remove-btn {
  appearance: none;
  border: 1px solid rgba(203, 213, 225, 0.45);
  background: transparent;
  color: rgba(248, 250, 252, 0.9);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .1s ease, background .12s ease, border-color .12s ease, color .12s ease;
}

.admin-attachments__remove-btn:hover { transform: translateY(-1px); }
.admin-attachments__item.is-armed .admin-attachments__remove-btn {
  border-color: var(--admin-warning, #f59e0b);
  color: #fde68a;
}
.admin-attachments__item.is-removed .admin-attachments__remove-btn {
  border-color: var(--admin-danger);
  color: var(--admin-danger);
}
.admin-attachments__item.is-removed .admin-attachments__file { opacity: .6; text-decoration: line-through; }

.admin-attachments__dropzone {
  margin: .25rem 0 .5rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  color: var(--admin-muted);
  text-align: center;
}
.admin-attachments__dropzone.is-dragover { border-color: var(--admin-accent); color: var(--admin-accent); }

.is-hidden { display: none !important; }

@media (max-width: 768px) {

  .admin-shell {

    padding: 2rem 1.5rem;

  }



  .admin-header {

    padding: 1rem 1.5rem 0;

  }



  .admin-header__inner {

    grid-template-columns: 1fr;

    justify-items: center;

    row-gap: 1rem;

  }

  .admin-header__nav {

    justify-self: center;

    flex-wrap: wrap;

  }

  .admin-header__logout {

    justify-self: center;

  }

}



.admin-header__nav {
  display: inline-flex;

  align-items: center;

  gap: 0.85rem;

  justify-self: center;

}

.admin-header__logout {
  justify-self: end;
}



.admin-list__actions {

  display: flex;

  justify-content: flex-end;

  margin: 0 0 1.25rem;

}



.admin-form__conditional {

  display: flex;

  flex-direction: column;

  gap: 0.55rem;

  grid-column: span 1;

}



.admin-form__conditional.is-hidden {

  display: none;

}



.admin-form__hint {

  margin: 0;

  font-size: 0.8rem;

  color: rgba(226, 232, 240, 0.6);

}



.admin-upload {

  display: flex;

  flex-direction: column;

  gap: 1rem;

  padding: 1.25rem;

  border: 1px dashed rgba(148, 163, 184, 0.35);

  border-radius: 16px;

  background: rgba(15, 23, 42, 0.55);

}



.admin-upload__header {

  display: flex;

  flex-direction: column;

  gap: 0.45rem;

}



.admin-upload__header h2 {

  margin: 0;

  font-size: 1.1rem;

}



.admin-upload__controls input[type="file"] {

  border: none;

  padding: 0;

  background: transparent;

  color: var(--admin-muted);

}



.admin-upload__list {

  display: grid;

  gap: 1rem;

  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

}



.admin-upload__item {

  position: relative;

  display: flex;

  flex-direction: column;

  gap: 0.5rem;

  padding: 0.85rem;

  border-radius: 14px;

  border: 1px solid rgba(148, 163, 184, 0.25);

  background: rgba(15, 23, 42, 0.6);

}



.admin-upload__item figure {

  margin: 0;

  border-radius: 10px;

  overflow: hidden;

  background: rgba(30, 41, 59, 0.8);

}



.admin-upload__item img {

  width: 100%;

  height: 140px;

  object-fit: cover;

  display: block;

}



.admin-upload__item label {

  font-size: 0.75rem;

  letter-spacing: 0;

  text-transform: none;

  color: rgba(226, 232, 240, 0.8);

}



.admin-table {

  margin-top: 1.5rem;

}



.admin-table__wrapper {

  position: relative;

  overflow-x: auto;

  overflow-y: hidden;

  border-radius: 18px;

  border: 1px solid rgba(148, 163, 184, 0.25);

  background: rgba(15, 23, 42, 0.55);

  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.28);

}



.admin-table__wrapper::-webkit-scrollbar {

  height: 8px;

}



.admin-table__wrapper::-webkit-scrollbar-thumb {

  background: rgba(148, 163, 184, 0.4);

  border-radius: 999px;

}



.admin-table table {

  width: 100%;

  min-width: 760px;

  border-collapse: collapse;

}



.admin-table thead {

  background: rgba(15, 23, 42, 0.75);

}



.admin-table th,

.admin-table td {

  padding: 0.9rem 1rem;

  border-bottom: 1px solid rgba(148, 163, 184, 0.2);

  text-align: left;

  font-size: 0.9rem;

}



.admin-table tbody tr:last-child td {

  border-bottom: none;

}



.admin-table__title {

  display: flex;

  align-items: center;

  gap: 0.75rem;

}



.admin-table__title img {

  width: 54px;

  height: 54px;

  object-fit: cover;

  border-radius: 10px;

  border: 1px solid rgba(148, 163, 184, 0.25);

}



.admin-table__actions {

  display: inline-flex;

  align-items: center;

  justify-content: flex-end;

  gap: 0.5rem;

  flex-wrap: wrap;

}



.admin-table__actions form {

  position: relative;

  margin: 0;

}



.admin-table__actions .admin-btn {

  min-width: 120px;

}



.admin-confirm-popover {

  position: absolute;

  top: calc(100% + 0.5rem);

  right: 0;

  display: flex;

  flex-direction: column;

  gap: 0.6rem;

  min-width: 220px;

  padding: 1rem 1.1rem;

  border-radius: 14px;

  border: 1px solid rgba(148, 163, 184, 0.35);

  background: rgba(15, 23, 42, 0.96);

  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.4);

  z-index: 40;

}



.admin-confirm-popover__message {

  margin: 0;

  font-size: 0.88rem;

  color: rgba(226, 232, 240, 0.9);

  line-height: 1.4;

}



.admin-confirm-popover__actions {

  display: flex;

  align-items: center;

  justify-content: flex-end;

  gap: 0.5rem;

}



@media (max-width: 1024px) {

  .admin-table table {

    min-width: 640px;

  }

}



@media (max-width: 768px) {

  .admin-table__wrapper {

    overflow: visible;

    border: none;

    border-radius: 0;

    background: transparent;

    box-shadow: none;

  }



  .admin-table table {

    min-width: 0;

    border-collapse: separate;

    border-spacing: 0 1rem;

  }



  .admin-table thead {

    display: none;

  }



  .admin-table tbody tr {

    display: flex;

    flex-direction: column;

    gap: 0.75rem;

    margin: 0 0 1rem;

    padding: 1rem;

    border-radius: 16px;

    border: 1px solid rgba(148, 163, 184, 0.25);

    background: rgba(15, 23, 42, 0.6);

  }



  .admin-table tbody tr:last-child {

    margin-bottom: 0;

  }



  .admin-table tbody tr td {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 0.75rem;

    padding: 0;

    border: 0;

    font-size: 0.85rem;

  }



  .admin-table tbody tr td::before {

    content: attr(data-label);

    font-size: 0.72rem;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    color: var(--admin-muted);

  }



  .admin-table__title {

    align-items: flex-start;

  }



  .admin-table__title img {

    width: 48px;

    height: 48px;

  }



  .admin-table__actions {

    justify-content: flex-start;

  }



  .admin-table__actions .admin-btn {

    width: 100%;

    justify-content: center;

  }



  .admin-confirm-popover {

    position: static;

    width: 100%;

    margin-top: 0.75rem;

    box-shadow: none;

  }



  .admin-confirm-popover__actions {

    justify-content: flex-start;

  }

}



.admin-pagination {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 1rem;

  margin-top: 2rem;

}



.admin-pagination__link {

  color: var(--admin-muted);

}



.admin-pagination__link--disabled {

  opacity: 0.5;

  pointer-events: none;

}



.admin-images__grid {

  display: grid;

  gap: 1rem;

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

}



.admin-image-card {

  padding: 0.9rem;

  border-radius: 16px;

  background: rgba(15, 23, 42, 0.55);

  border: 1px solid rgba(148, 163, 184, 0.25);

  display: flex;

  flex-direction: column;

  gap: 0.75rem;

}



.admin-image-card__preview {

  margin: 0;

  border-radius: 12px;

  overflow: hidden;

  background: rgba(30, 41, 59, 0.9);

}



.admin-image-card__preview img {

  width: 100%;

  height: 160px;

  object-fit: cover;

}



.admin-image-card__controls {

  display: grid;

  gap: 0.5rem;

}



.admin-image-card__controls label {

  display: flex;

  align-items: center;

  gap: 0.5rem;

  font-size: 0.8rem;

  letter-spacing: 0;

  text-transform: none;

  color: rgba(226, 232, 240, 0.85);

}



.admin-upload__item.is-selected,

.admin-image-card.is-selected {

  border-color: var(--admin-accent);

  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.45);

}



.admin-header__brand {

  font-weight: 700;

  letter-spacing: 0.16em;

  text-transform: uppercase;

  color: var(--admin-muted);

}



.admin-btn--active {

  border-color: rgba(148, 163, 184, 0.7);

  background: rgba(148, 163, 184, 0.1);

}



.admin-btn--success {

  background: rgba(52, 211, 153, 0.22);

  color: #bbf7d0;

  border-color: rgba(52, 211, 153, 0.45);

}



.admin-btn--success:hover {

  background: rgba(52, 211, 153, 0.32);

}



.admin-btn--warning {

  background: rgba(251, 191, 36, 0.18);

  color: #fde68a;

  border-color: rgba(251, 191, 36, 0.4);

}



.admin-btn--warning:hover {

  background: rgba(251, 191, 36, 0.28);

}



.admin-btn--danger {

  background: rgba(248, 113, 113, 0.2);

  color: #fecaca;

  border-color: rgba(248, 113, 113, 0.4);

}



.admin-btn--danger:hover {

  background: rgba(248, 113, 113, 0.3);

}



.admin-gallery {

  display: flex;

  flex-direction: column;

  gap: 1.25rem;

  padding: 1.5rem;

  border-radius: 18px;

  border: 1px solid rgba(148, 163, 184, 0.25);

  background: rgba(15, 23, 42, 0.45);

}



.admin-gallery__header {

  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 1rem;

  flex-wrap: wrap;

}



.admin-gallery__header h2 {

  margin: 0 0 0.25rem;

}



.admin-gallery__upload {

  position: relative;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 0.65rem 1.25rem;

  border-radius: 12px;

  border: 1px dashed rgba(148, 163, 184, 0.45);

  color: var(--admin-muted);

  cursor: pointer;

  transition: border-color 0.12s ease, color 0.12s ease;

}



.admin-gallery__upload:hover {

  border-color: var(--admin-accent);

  color: var(--admin-accent);

}



.admin-gallery__upload input[type="file"] {

  position: absolute;

  inset: 0;

  opacity: 0;

  cursor: pointer;

}



.admin-gallery__dropzone {

  margin: 0.5rem 0 1.25rem;

  padding: 1rem 1.25rem;

  border-radius: 12px;

  border: 1px dashed rgba(148, 163, 184, 0.45);

  background: rgba(15, 23, 42, 0.35);

  color: var(--admin-muted);

  text-align: center;

  cursor: copy;

  outline: none;

  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;

}



.admin-gallery__dropzone:focus {

  border-color: var(--admin-accent);

  color: var(--admin-accent);

  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.25);

}



.admin-gallery__dropzone.is-dragover {

  border-color: var(--admin-accent);

  color: var(--admin-accent);

  background: rgba(45, 212, 191, 0.12);

}



.admin-gallery__dropzone p {

  margin: 0;

}



.admin-gallery__dropzone p + p {

  margin-top: 0.35rem;

}



.admin-gallery__list {

  display: grid;

  gap: 1rem;

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

}



.admin-gallery__empty {

  margin: 0;

  color: rgba(226, 232, 240, 0.7);

  font-size: 0.9rem;

}



.admin-gallery__item {

  position: relative;

  display: flex;

  flex-direction: column;

  gap: 0.75rem;

  padding: 1rem;

  border-radius: 16px;

  border: 1px solid rgba(148, 163, 184, 0.25);

  background: rgba(15, 23, 42, 0.6);

  cursor: grab;

  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;

}



.admin-gallery__item:active {

  cursor: grabbing;

}



.admin-gallery__item.is-featured {

  border-color: var(--admin-accent);

  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);

}



.admin-gallery__item.is-removed {

  opacity: 0.85;

}



.admin-gallery__item.is-dragging {

  opacity: 0.65;

  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.45);

}



.admin-gallery__item.is-drop-target::after {

  content: '';

  position: absolute;

  left: 12px;

  right: 12px;

  height: 3px;

  border-radius: 999px;

  background: rgba(56, 189, 248, 0.55);

  pointer-events: none;

}



.admin-gallery__item.is-drop-target[data-drop-position='before']::after {

  top: -6px;

}



.admin-gallery__item.is-drop-target[data-drop-position='after']::after {

  bottom: -6px;

}



.admin-gallery__preview {

  position: relative;

  border-radius: 12px;

  overflow: hidden;

  background: rgba(30, 41, 59, 0.8);

}



.admin-gallery__item.is-removed .admin-gallery__preview::after {

  content: '';

  position: absolute;

  inset: 0;

  border-radius: 12px;

  background: rgba(15, 23, 42, 0.55);

  pointer-events: none;

}



.admin-gallery__preview img {

  display: block;

  width: 100%;

  height: 180px;

  object-fit: cover;

  position: relative;

  z-index: 0;

}



.admin-gallery__badge {

  display: inline-flex;

  align-items: center;

  gap: 0.35rem;

  padding: 0.3rem 0.6rem;

  border-radius: 999px;

  background: rgba(56, 189, 248, 0.25);

  color: rgba(219, 234, 254, 0.95);

  font-size: 0.75rem;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  font-weight: 600;

  position: relative;

  z-index: 2;

}



.admin-gallery__remove {

  position: absolute;

  top: 12px;

  right: 12px;

  width: 36px;

  height: 36px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  border: 1px solid rgba(148, 163, 184, 0.35);

  background: rgba(15, 23, 42, 0.75);

  color: var(--admin-text);

  opacity: 0;

  pointer-events: none;

  transform: scale(0.9);

  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;

  z-index: 2;

}



.admin-gallery__item:hover .admin-gallery__remove {

  opacity: 1;

  pointer-events: auto;

  transform: scale(1);

}



.admin-gallery__remove:hover {

  border-color: var(--admin-accent);

  background: rgba(56, 189, 248, 0.18);

  color: var(--admin-accent);

}



.admin-gallery__restore {

  align-self: flex-start;

  margin-top: 0.75rem;

  padding: 0.45rem 0.9rem;

  border-radius: 999px;

  border: 1px solid rgba(148, 163, 184, 0.35);

  background: transparent;

  color: var(--admin-muted);

  font-size: 0.8rem;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  cursor: pointer;

  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;

  z-index: 1;

}



.admin-gallery__restore:hover {

  border-color: var(--admin-accent);

  color: var(--admin-accent);

  background: rgba(56, 189, 248, 0.18);

}



.admin-gallery__removed-hint {

  margin: 0.5rem 0 0;

  font-size: 0.8rem;

  color: rgba(226, 232, 240, 0.75);


}


.admin-gallery__item.is-uploading {
  cursor: default;
}


.admin-gallery__upload-progress {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: rgba(15, 23, 42, 0.55);
  padding: 1rem;
  text-align: center;
  z-index: 2;
}


.admin-gallery__upload-progress-bar {
  width: min(260px, 85%);
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
  overflow: hidden;
  --progress: 0%;
}


.admin-gallery__upload-progress-bar span {
  display: block;
  height: 100%;
  width: var(--progress);
  background: rgba(56, 189, 248, 0.85);
}


.admin-gallery__upload-progress-label {
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.92);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}


.admin-gallery__upload-error {
  margin: 0.25rem 0 0;
  color: rgba(251, 113, 133, 0.95);
}

.admin-upload-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 30, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  text-align: center;
  color: #fff;
  padding: 2rem;
  pointer-events: auto;
}

.admin-upload-overlay.is-active,
.admin-upload-overlay:not([hidden]) {
  display: flex;
}

.admin-upload-overlay.is-passive {
  pointer-events: none;
  display: block;
  inset: auto;
  left: auto;
  top: auto;
  right: 1rem;
  bottom: 1rem;
  padding: 0;
  background: transparent;
}

.admin-upload-overlay.is-passive .admin-upload-overlay__content {
  background: rgba(0, 0, 0, 0.78);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  max-width: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.35);
}

.admin-upload-overlay.is-passive .admin-upload-overlay__spinner {
  width: 20px;
  height: 20px;
  margin: 0;
  border-width: 3px;
}

.admin-upload-overlay.is-passive p {
  margin: 0;
}

.admin-upload-overlay__content {
  background: rgba(0, 0, 0, 0.75);
  padding: 2rem 3rem;
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3);
  max-width: 420px;
}

.admin-upload-overlay__spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: admin-spin 0.9s linear infinite;
}

@keyframes admin-spin {
  to {
    transform: rotate(360deg);
  }
}
