/* ==========================================================
   PAINEL ADMINISTRATIVO
   Mantém a identidade visual do site público
   ========================================================== */

.admin-body {
  min-height: 100vh;
}

.admin-login-page {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.admin-login-card {
  width: min(100%, 480px);
  padding: 38px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

.admin-login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at top,
      rgba(241, 201, 121, 0.12),
      transparent 38%
    );
  pointer-events: none;
}

.admin-login-header,
.admin-login-form,
.admin-back-link {
  position: relative;
  z-index: 1;
}

.admin-login-header {
  text-align: center;
  margin-bottom: 30px;
}

.admin-login-logo {
  width: 150px;
  max-height: 105px;
  object-fit: contain;
  margin: 0 auto 22px;
  border-radius: 18px;
  border: 1px solid rgba(200, 154, 61, 0.25);
  box-shadow: 0 0 28px rgba(241, 201, 121, 0.1);
}

.admin-login-header .eyebrow {
  margin-bottom: 10px;
}

.admin-login-header h1 {
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  margin-bottom: 14px;
}

.admin-login-header .muted {
  margin: 0;
  line-height: 1.7;
}

.admin-login-form {
  display: grid;
  gap: 12px;
}

.admin-login-form label {
  margin-top: 8px;
  color: var(--gold-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.admin-login-form input {
  width: 100%;
  min-height: 50px;
  padding: 14px 16px;
  border-radius: 15px;
  border: 1px solid rgba(200, 154, 61, 0.2);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.admin-login-form input::placeholder {
  color: rgba(205, 187, 151, 0.6);
}

.admin-login-form input:focus {
  outline: none;
  border-color: rgba(241, 201, 121, 0.7);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 4px rgba(200, 154, 61, 0.1);
}

.admin-login-form .btn {
  width: 100%;
  margin-top: 16px;
}

.admin-login-form .btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.admin-login-message {
  min-height: 24px;
  margin: 8px 0 0;
  text-align: center;
  line-height: 1.5;
  color: var(--muted);
}

.admin-login-message.error {
  color: #ff9b9b;
}

.admin-login-message.success {
  color: #9ce8b1;
}

.admin-back-link {
  display: block;
  width: max-content;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.admin-back-link:hover {
  color: var(--gold-strong);
}

@media (max-width: 540px) {
  .admin-login-page {
    padding: 18px 12px;
  }

  .admin-login-card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .admin-login-logo {
    width: 125px;
  }
}

/* Garante que elementos restritos não reapareçam por regras de display. */
.admin-body [hidden] {
  display: none !important;
}

/* ==========================================================
   TELA DE CARREGAMENTO
   ========================================================== */

.admin-loading-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.admin-loading-screen[hidden] {
  display: none;
}

.admin-loading-screen p {
  color: var(--muted);
}

.admin-loading-error {
  width: min(100%, 520px);
  padding: 32px;
  border: 1px solid rgba(200, 154, 61, 0.22);
  border-radius: 24px;
  background: rgba(18, 14, 12, 0.92);
}

.admin-loading-error strong {
  display: block;
  margin-bottom: 12px;
  color: var(--gold-soft);
  font-size: 1.25rem;
}

.admin-loading-error p {
  margin-bottom: 22px;
}


/* ==========================================================
   ESTRUTURA PRINCIPAL
   ========================================================== */

.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.admin-layout[hidden] {
  display: none;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  border-right: 1px solid rgba(200, 154, 61, 0.16);
  background:
    linear-gradient(
      180deg,
      rgba(24, 18, 15, 0.98),
      rgba(13, 10, 9, 0.98)
    );
  box-shadow: 18px 0 40px rgba(0, 0, 0, 0.18);
  z-index: 20;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 6px 24px;
  border-bottom: 1px solid rgba(200, 154, 61, 0.14);
}

.admin-sidebar-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(200, 154, 61, 0.22);
}

.admin-sidebar-brand div {
  min-width: 0;
}

.admin-sidebar-brand strong {
  display: block;
  color: var(--gold-soft);
  font-family: "Cinzel", serif;
  font-size: 0.98rem;
  line-height: 1.35;
}

.admin-sidebar-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}


/* ==========================================================
   NAVEGAÇÃO LATERAL
   ========================================================== */

.admin-navigation {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.admin-nav-button {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.admin-nav-button:hover:not(:disabled) {
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.035);
  transform: translateX(3px);
}

.admin-nav-button.active {
  color: var(--gold-strong);
  border-color: rgba(200, 154, 61, 0.26);
  background:
    linear-gradient(
      135deg,
      rgba(200, 154, 61, 0.14),
      rgba(200, 154, 61, 0.045)
    );
}

.admin-nav-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.admin-sidebar-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.admin-site-link,
.admin-logout-button {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  border-radius: 13px;
  font: inherit;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.admin-site-link {
  border: 1px solid rgba(200, 154, 61, 0.22);
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.025);
}

.admin-site-link:hover {
  border-color: rgba(241, 201, 121, 0.55);
  background: rgba(200, 154, 61, 0.08);
}

.admin-logout-button {
  border: 1px solid rgba(255, 120, 120, 0.22);
  background: transparent;
  color: #e9a1a1;
  cursor: pointer;
}

.admin-logout-button:hover {
  border-color: rgba(255, 120, 120, 0.48);
  background: rgba(255, 90, 90, 0.06);
}


/* ==========================================================
   ÁREA PRINCIPAL E TOPO
   ========================================================== */

.admin-main {
  min-width: 0;
  padding: 30px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(200, 154, 61, 0.14);
}

.admin-topbar .eyebrow {
  margin-bottom: 6px;
}

.admin-topbar h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.admin-user-info {
  display: grid;
  justify-items: end;
  gap: 3px;
  text-align: right;
}

.admin-user-info span {
  color: var(--gold-soft);
  font-weight: 600;
}

.admin-user-info small {
  color: var(--muted);
}


/* ==========================================================
   SEÇÕES E CARTÕES
   ========================================================== */

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-section[hidden] {
  display: none;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(160px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.admin-stat-card {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(200, 154, 61, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.015)
    );
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.14);
}

.admin-stat-card span {
  color: var(--muted);
  line-height: 1.45;
}

.admin-stat-card strong {
  color: var(--gold-strong);
  font-family: "Cinzel", serif;
  font-size: 2.25rem;
  line-height: 1;
}

.admin-content-card {
  padding: 26px;
  border: 1px solid rgba(200, 154, 61, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.038),
      rgba(255, 255, 255, 0.014)
    );
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.13);
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-card-header h2 {
  margin: 4px 0 0;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
}

.admin-feedback {
  min-height: 24px;
  margin-bottom: 12px;
  color: var(--muted);
}

.admin-feedback.error {
  color: #ff9b9b;
}

.admin-feedback.success {
  color: #9ce8b1;
}


/* ==========================================================
   TABELAS
   ========================================================== */

.admin-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(200, 154, 61, 0.12);
  border-radius: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(200, 154, 61, 0.1);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--gold-soft);
  background: rgba(200, 154, 61, 0.055);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-table td {
  color: var(--text);
}

.admin-table tbody tr {
  transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}


/* ==========================================================
   STATUS
   ========================================================== */

.admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: capitalize;
}

.admin-status-publicada {
  border-color: rgba(74, 190, 111, 0.28);
  background: rgba(74, 190, 111, 0.09);
  color: #9ce8b1;
}

.admin-status-rascunho {
  border-color: rgba(241, 201, 121, 0.28);
  background: rgba(241, 201, 121, 0.08);
  color: var(--gold-soft);
}

.admin-status-oculta {
  border-color: rgba(135, 153, 180, 0.28);
  background: rgba(135, 153, 180, 0.08);
  color: #b7c3d5;
}

.admin-status-arquivada {
  border-color: rgba(255, 120, 120, 0.25);
  background: rgba(255, 120, 120, 0.07);
  color: #e9a1a1;
}


/* ==========================================================
   BOTÕES DE AÇÃO
   ========================================================== */

.admin-action-button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(200, 154, 61, 0.25);
  border-radius: 10px;
  background: rgba(200, 154, 61, 0.055);
  color: var(--gold-soft);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.admin-action-button:hover {
  border-color: rgba(241, 201, 121, 0.58);
  background: rgba(200, 154, 61, 0.12);
}

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


/* ==========================================================
   GALERIA ADMINISTRATIVA
   ========================================================== */

.admin-gallery-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.admin-gallery-card {
  overflow: hidden;
  border: 1px solid rgba(200, 154, 61, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 15px 28px rgba(0, 0, 0, 0.13);
}

.admin-gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.025);
}

.admin-gallery-card-content {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.admin-gallery-card-content strong {
  color: var(--gold-soft);
}

.admin-gallery-card-content small {
  color: var(--muted);
}


/* ==========================================================
   ESTADO VAZIO
   ========================================================== */

.admin-empty-state {
  grid-column: 1 / -1;
  padding: 42px 24px;
  text-align: center;
  border: 1px dashed rgba(200, 154, 61, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
}

.admin-empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-soft);
  font-size: 1.08rem;
}

.admin-empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}


/* ==========================================================
   RESPONSIVIDADE
   ========================================================== */

@media (max-width: 1100px) {
  .admin-stat-grid {
    grid-template-columns:
      repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 820px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(200, 154, 61, 0.16);
  }

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

  .admin-nav-button {
    text-align: center;
  }

  .admin-sidebar-footer {
    grid-template-columns: 1fr 1fr;
    margin-top: 18px;
    padding-top: 16px;
  }

  .admin-main {
    padding: 22px 16px;
  }

  .admin-topbar {
    align-items: flex-start;
  }
}

@media (max-width: 580px) {
  .admin-sidebar-brand {
    align-items: flex-start;
  }

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

  .admin-sidebar-footer {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    flex-direction: column;
  }

  .admin-user-info {
    justify-items: start;
    text-align: left;
  }

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

  .admin-stat-card {
    min-height: 115px;
  }

  .admin-content-card {
    padding: 20px 16px;
  }

  .admin-card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-card-header .btn {
    width: 100%;
  }
}
/* ==========================================================
   MODAL ADMINISTRATIVO
   ========================================================== */

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

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

.admin-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(7px);
}

.admin-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid rgba(200, 154, 61, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(
      145deg,
      rgba(27, 20, 17, 0.99),
      rgba(15, 11, 10, 0.99)
    );
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(200, 154, 61, 0.08);
}

.admin-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(200, 154, 61, 0.15);
}

.admin-modal-header .eyebrow {
  margin-bottom: 6px;
}

.admin-modal-header h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.admin-modal-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(200, 154, 61, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--gold-soft);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.admin-modal-close:hover {
  border-color: rgba(241, 201, 121, 0.58);
  background: rgba(200, 154, 61, 0.1);
  transform: scale(1.04);
}


/* ==========================================================
   FORMULÁRIOS ADMINISTRATIVOS
   ========================================================== */

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

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

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

.admin-form-field label {
  color: var(--gold-soft);
  font-weight: 600;
  font-size: 0.94rem;
}

.admin-form-field input,
.admin-form-field select,
.admin-form-field textarea {
  width: 100%;
  border: 1px solid rgba(200, 154, 61, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.admin-form-field input,
.admin-form-field select {
  min-height: 48px;
  padding: 12px 14px;
}

.admin-form-field textarea {
  min-height: 140px;
  padding: 14px;
  resize: vertical;
  line-height: 1.6;
}

.admin-form-field input:focus,
.admin-form-field select:focus,
.admin-form-field textarea:focus {
  outline: none;
  border-color: rgba(241, 201, 121, 0.7);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 4px rgba(200, 154, 61, 0.1);
}

.admin-form-field input:disabled,
.admin-form-field select:disabled,
.admin-form-field textarea:disabled {
  cursor: wait;
  opacity: 0.62;
}

.admin-form-field select option {
  background: #17110f;
  color: var(--text);
}

.admin-form-field small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}


/* ==========================================================
   CHECKBOX
   ========================================================== */

.admin-form-checkbox-field {
  align-content: end;
}

.admin-checkbox-label {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid rgba(200, 154, 61, 0.17);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
  cursor: pointer;
}

.admin-checkbox-label input {
  width: 18px;
  height: 18px;
  min-height: auto;
  margin: 0;
  accent-color: #c89a3d;
}

.admin-checkbox-label span {
  color: var(--text);
  font-weight: 500;
}


/* ==========================================================
   AÇÕES DO FORMULÁRIO
   ========================================================== */

.admin-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(200, 154, 61, 0.13);
}

.admin-secondary-button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(200, 154, 61, 0.22);
  border-radius: 13px;
  background: transparent;
  color: var(--gold-soft);
  font: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.admin-secondary-button:hover {
  border-color: rgba(241, 201, 121, 0.55);
  background: rgba(200, 154, 61, 0.07);
}

.admin-secondary-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

body.admin-modal-open {
  overflow: hidden;
}


/* ==========================================================
   RESPONSIVIDADE DO MODAL
   ========================================================== */

@media (max-width: 720px) {
  .admin-modal {
    align-items: end;
    padding: 10px;
  }

  .admin-modal-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 22px 16px;
    border-radius: 22px 22px 14px 14px;
  }

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

  .admin-form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .admin-form-actions .btn,
  .admin-secondary-button {
    width: 100%;
  }
}
/* ==========================================================
   MODAL GRANDE — GALERIA DAS MODELOS
   ========================================================== */

.admin-modal-card-large {
  width: min(100%, 1120px);
}

.admin-modal-header .muted {
  margin: 8px 0 0;
  line-height: 1.5;
}


/* ==========================================================
   GRUPO DE BOTÕES DA TABELA
   ========================================================== */

.admin-action-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}


/* ==========================================================
   SEÇÃO DE UPLOAD
   ========================================================== */

.admin-upload-section {
  margin-bottom: 30px;
  padding: 22px;
  border: 1px solid rgba(200, 154, 61, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.022);
}

.admin-upload-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.admin-upload-header h3 {
  margin: 0 0 6px;
  color: var(--gold-soft);
  font-size: 1.2rem;
}

.admin-upload-header p {
  margin: 0;
}

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

.admin-upload-form input[type="file"] {
  min-height: auto;
  padding: 13px;
  cursor: pointer;
}

.admin-upload-form input[type="file"]::file-selector-button {
  min-height: 38px;
  margin-right: 12px;
  padding: 8px 14px;
  border: 1px solid rgba(200, 154, 61, 0.28);
  border-radius: 10px;
  background: rgba(200, 154, 61, 0.09);
  color: var(--gold-soft);
  font: inherit;
  cursor: pointer;
}

.admin-upload-form input[type="file"]::file-selector-button:hover {
  border-color: rgba(241, 201, 121, 0.55);
  background: rgba(200, 154, 61, 0.15);
}


/* ==========================================================
   GALERIA DA MODELO NO PAINEL
   ========================================================== */

.admin-modelo-fotos-section {
  padding-top: 26px;
  border-top: 1px solid rgba(200, 154, 61, 0.14);
}

.admin-modelo-fotos-section .admin-card-header {
  margin-bottom: 18px;
}

.admin-modelo-fotos-section h3 {
  margin: 4px 0 0;
  color: var(--gold-soft);
  font-size: 1.25rem;
}

.admin-modelo-foto-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(200, 154, 61, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-modelo-foto-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: block;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.025);
}

.admin-modelo-foto-card.capa {
  border-color: rgba(241, 201, 121, 0.65);
  box-shadow: 0 0 30px rgba(200, 154, 61, 0.14);
}

.admin-modelo-foto-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(241, 201, 121, 0.5);
  border-radius: 999px;
  background: rgba(18, 13, 10, 0.88);
  color: var(--gold-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.admin-modelo-foto-content {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.admin-modelo-foto-content strong {
  overflow: hidden;
  color: var(--gold-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-modelo-foto-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-modelo-foto-meta small {
  color: var(--muted);
}

.admin-modelo-foto-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.admin-modelo-foto-actions .admin-action-button {
  width: 100%;
}

.admin-action-button-danger {
  border-color: rgba(255, 110, 110, 0.26);
  background: rgba(255, 90, 90, 0.06);
  color: #e9a1a1;
}

.admin-action-button-danger:hover {
  border-color: rgba(255, 110, 110, 0.55);
  background: rgba(255, 90, 90, 0.12);
}


/* ==========================================================
   PROGRESSO DO UPLOAD
   ========================================================== */

.admin-upload-progress {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.admin-upload-progress-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(200, 154, 61, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-upload-progress-item span {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-upload-progress-item small {
  color: var(--muted);
}

.admin-upload-progress-item.success small {
  color: #9ce8b1;
}

.admin-upload-progress-item.error small {
  color: #ff9b9b;
}


/* ==========================================================
   RESPONSIVIDADE
   ========================================================== */

@media (max-width: 720px) {
  .admin-upload-section {
    padding: 18px 14px;
  }

  .admin-upload-header {
    flex-direction: column;
  }

  .admin-modelo-foto-actions {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   AÇÕES EM LOTE DAS FOTOS DA MODELO
   ========================================================== */

.admin-card-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (max-width: 720px) {
  .admin-card-header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .admin-card-header-actions .admin-action-button {
    flex: 1 1 150px;
  }
}


/* ==========================================================
   MODERAÇÃO DE AVALIAÇÕES E MENSAGENS
   ========================================================== */

.admin-moderation-header {
  align-items: flex-start;
}

.admin-moderation-header p {
  margin-bottom: 0;
}

.admin-moderation-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.admin-moderation-summary article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(200, 154, 61, 0.15);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.022);
}

.admin-moderation-summary span {
  color: var(--muted);
}

.admin-moderation-summary strong {
  color: var(--gold-strong);
  font-family: "Cinzel", serif;
  font-size: 1.55rem;
}

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

.admin-moderation-card {
  margin-top: 22px;
}

.admin-moderation-message {
  max-width: 480px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.admin-stars {
  color: var(--gold-soft);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

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

.admin-status-pendente {
  border-color: rgba(241, 201, 121, 0.28);
  background: rgba(241, 201, 121, 0.08);
  color: var(--gold-soft);
}

.admin-status-aprovada {
  border-color: rgba(74, 190, 111, 0.28);
  background: rgba(74, 190, 111, 0.09);
  color: #9ce8b1;
}

.admin-status-rejeitada {
  border-color: rgba(255, 120, 120, 0.25);
  background: rgba(255, 120, 120, 0.07);
  color: #e9a1a1;
}

@media (max-width: 760px) {
  .admin-moderation-summary,
  .admin-moderation-filters {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   USUÁRIOS E PERMISSÕES
   ========================================================== */

.admin-permissions-fieldset {
  margin: 6px 0 0;
  padding: 18px;
  border: 1px solid rgba(200, 154, 61, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
}

.admin-permissions-fieldset legend {
  padding: 0 8px;
  color: var(--gold-soft);
  font-family: "Cinzel", serif;
  font-weight: 600;
}

.admin-permissions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 12px;
}

.admin-permission-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.admin-permission-option:hover {
  border-color: rgba(200, 154, 61, 0.26);
}

.admin-permission-option input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.admin-permission-option span {
  display: grid;
  gap: 4px;
}

.admin-permission-option strong {
  color: var(--text);
}

.admin-permission-option small,
.admin-table-secondary {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.admin-form input:disabled,
.admin-form select:disabled,
.admin-form textarea:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

@media (max-width: 760px) {
  .admin-permissions-grid {
    grid-template-columns: 1fr;
  }

  .admin-permissions-fieldset {
    padding: 14px;
  }
}


/* ==========================================================
   TEMPOS E PREÇOS DAS MODELOS
   ========================================================== */

.admin-servicos-editor,
.admin-servicos-list-section {
  padding: 20px;
  border: 1px solid rgba(200, 154, 61, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
}

.admin-servicos-list-section {
  margin-top: 22px;
}

.admin-form-field-wide {
  grid-column: 1 / -1;
}

.admin-servicos-table {
  min-width: 900px;
}

.admin-servico-preco {
  color: var(--gold-strong);
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .admin-servicos-editor,
  .admin-servicos-list-section {
    padding: 15px;
  }
}
