/* ==========================================================================
   SIM, ACEITO! — PAINEL DO ADMINISTRADOR MASTER & EDIÇÃO DE SITES
   ========================================================================== */

.master-admin-section {
  background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%);
  border: 1.5px solid #d4af37;
  border-radius: 20px;
  padding: 1.8rem;
  margin-bottom: 2.2rem;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.12);
  position: relative;
  overflow: hidden;
}

.master-admin-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d4af37, #f6e27a, #cb9b51, #d4af37);
}

.master-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.master-admin-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.master-admin-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  color: #2b2825;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.master-admin-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #fefce8;
  color: #854d0e;
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 2px 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  line-height: 1.2;
}

.master-admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

@media (max-width: 480px) {
  .master-admin-stats {
    gap: 0.45rem;
  }
}

.master-stat-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  min-width: 0;
  overflow: hidden;
}

.master-stat-card__val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #18181b;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.master-stat-card__label {
  font-size: 0.68rem;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
  margin-top: 0.15rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Lista de Sites Criados */
.master-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.master-site-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  padding: 1.05rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.master-site-card:hover {
  transform: translateY(-2px);
  border-color: #d4af37;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.12);
}

.master-site-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.master-site-card__names {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  color: #18181b;
  font-weight: 700;
  margin: 0 0 0.15rem;
  line-height: 1.3;
}

.master-site-card__slug {
  font-size: 0.74rem;
  color: #a1783f;
  font-weight: 600;
  word-break: break-all;
}

.master-site-card__tag {
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.master-site-card__tag--default {
  background: #f4f4f5;
  color: #52525b;
}

.master-site-card__tag--custom {
  background: #ecfdf5;
  color: #047857;
}

.master-site-card__details {
  font-size: 0.76rem;
  color: #52525b;
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.55rem;
  border-top: 1px dashed #e4e4e7;
}

.master-site-card__detail-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.35;
}

.master-site-card__detail-item svg {
  flex-shrink: 0;
  color: #a1783f;
  width: 13px;
  height: 13px;
}

.master-site-card__actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding-top: 0.65rem;
  border-top: 1px solid #f4f4f5;
}

.master-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.2;
}

.master-btn--view {
  background: #faf8f5;
  color: #2b2825;
  border-color: #ede6dc;
}

.master-btn--view:hover {
  background: #ede6dc;
  color: #000;
}

.master-btn--edit {
  background: #fdf5e6;
  color: #996515;
  border-color: #d4af37;
}

.master-btn--edit:hover {
  background: #d4af37;
  color: #ffffff;
}

.master-btn--delete {
  background: #fff5f5;
  color: #c53030;
  border-color: #feb2b2;
}

.master-btn--delete:hover {
  background: #c53030;
  color: #ffffff;
  border-color: #c53030;
}

/* Modal de Edição de Site & Modal Master Geral */
.master-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.master-edit-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.master-edit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 25, 24, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.master-edit-dialog {
  position: relative;
  z-index: 2;
  background: #ffffff;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.master-edit-modal.is-open .master-edit-dialog {
  transform: translateY(0) scale(1);
}

.master-edit-header {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid #ede6dc;
  background: #faf8f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.master-edit-header__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  color: #2b2825;
  margin: 0;
}

.master-edit-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #ede6dc;
  color: #6e6963;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.master-edit-close:hover {
  background: #dfd7cc;
  color: #2b2825;
}

.master-edit-body {
  padding: 1.2rem 1.4rem;
  overflow-y: auto;
  flex: 1;
}

.master-edit-footer {
  padding: 0.9rem 1.4rem;
  border-top: 1px solid #ede6dc;
  background: #faf8f5;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.master-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

@media (max-width: 600px) {
  .master-form-grid {
    grid-template-columns: 1fr;
  }
}

.master-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.8rem;
}

.master-form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #2b2825;
}

.master-form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  font-size: 0.82rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #ffffff;
  color: #2b2825;
  box-sizing: border-box;
}

.master-form-input:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.master-form-help {
  font-size: 0.7rem;
  color: #71717a;
}

/* ==========================================
   BARRA EXCLUSIVA DO DONO MASTER (GABRIEL)
   ========================================== */
.master-owner-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: #18181b;
  color: #f4f4f5;
  border-bottom: 2px solid #d4af37;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  font-size: 0.82rem;
  font-family: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", sans-serif;
}

.master-owner-bar__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.master-owner-bar__info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.master-owner-bar__crown {
  color: #facc15;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.3px;
}

.master-owner-bar__divider {
  color: rgba(255, 255, 255, 0.2);
}

.master-owner-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mob-btn {
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mob-btn--delete {
  background: #dc2626;
  color: #ffffff;
}

.mob-btn--delete:hover {
  background: #b91c1c;
}

.mob-btn--panel {
  background: #d4af37;
  color: #18181b;
}

.mob-btn--panel:hover {
  background: #c5a028;
}

.mob-btn--exit {
  background: rgba(255, 255, 255, 0.12);
  color: #e4e4e7;
}

.mob-btn--exit:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ==========================================
   BANNER DE MODO RASCUNHO (PRIVADO)
   ========================================== */
.site-draft-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-bottom: 2px solid #f59e0b;
  color: #78350f;
  padding: 0.7rem 1.2rem;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.15);
  position: relative;
  z-index: 990;
}

.site-draft-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.site-draft-banner__text {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
  min-width: 260px;
}

.btn--publish-live {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn--publish-live:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.4);
}

/* ==========================================
   TELA DE ESPERA PARA CONVIDADOS (RASCUNHO)
   ========================================== */
.draft-placeholder-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(135deg, #fdfbf7 0%, #f7f3ee 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.draft-placeholder-card {
  max-width: 500px;
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #ede6dc;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.draft-placeholder-icon {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.draft-placeholder-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  color: #2b2825;
  margin-bottom: 0.6rem;
}

.draft-placeholder-desc {
  font-size: 0.95rem;
  color: #6e6963;
  line-height: 1.5;
  margin-bottom: 1.4rem;
}

.draft-placeholder-timer {
  display: inline-block;
  background: #faf8f5;
  border: 1px solid #ede6dc;
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #b38600;
}

/* ==========================================================================
   PÁGINA DEDICADA: ADMIN MASTER (/admin.html)
   ========================================================================== */
body.admin-standalone-body {
  background: #f8f7f5;
  color: #2b2825;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-standalone-nav {
  background: #18181b;
  border-bottom: 2px solid #d4af37;
  padding: 0.65rem 1.25rem;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.admin-standalone-nav__brand-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-standalone-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #ffffff;
}

.admin-standalone-nav__brand-title {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: 1.05rem !important;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.admin-standalone-nav__badge {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #fde047;
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: 0.68rem !important;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.admin-standalone-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-standalone-nav__btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.admin-standalone-nav__btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #d4af37;
  color: #fde047;
}

.admin-standalone-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.2rem 3rem;
  box-sizing: border-box;
}

/* Header Compacto e Elegante */
.admin-standalone-header {
  margin-bottom: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.9rem;
  border-bottom: 1px solid #e4e4e7;
  padding-bottom: 1.1rem;
}

.admin-standalone-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.admin-standalone-title {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #18181b;
  margin: 0;
  line-height: 1.25;
}

@media (max-width: 600px) {
  .admin-standalone-title {
    font-size: 1.18rem;
  }
}

.admin-standalone-subtitle {
  margin: 0.25rem 0 0;
  color: #71717a;
  font-size: 0.82rem;
  line-height: 1.4;
}

.admin-standalone-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.master-btn--outline {
  background: #ffffff;
  border: 1px solid #d4d4d8;
  color: #3f3f46;
}

.master-btn--outline:hover {
  background: #f4f4f5;
  color: #18181b;
}

/* Abas de Navegação Compactas */
.admin-standalone-main .auth-tabs {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e4e4e7;
  background: #f4f4f5;
  padding: 3px;
  gap: 3px;
  margin-bottom: 1.1rem;
}

.admin-standalone-main .auth-tab {
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #71717a;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.admin-standalone-main .auth-tab.is-active {
  background: #ffffff;
  color: #18181b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  font-weight: 700;
}

.admin-standalone-login-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.admin-standalone-login-card {
  background: #ffffff;
  border: 1.5px solid #d4af37;
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 40px rgba(212, 175, 55, 0.12);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.admin-standalone-login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d4af37, #f6e27a, #cb9b51, #d4af37);
}

.admin-search-bar {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 0.52rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.admin-search-bar input {
  border: none;
  outline: none;
  font-size: 0.82rem;
  width: 100%;
  color: #18181b;
  background: transparent;
}

.admin-search-bar input::placeholder {
  color: #a1a1aa;
}


