/* ==========================================================
   Design Harmonioso • Bday 15 Anos Maria Sophia
   Paleta Oficial Extraída da Foto: Dourado Sunset, Magenta Floral, Violeta e Verde Menta
   ========================================================== */

:root {
  /* Fundo e Superfícies Neutras */
  --bg-page: #faf8fb;
  --bg-card: #ffffff;
  --bg-card-subtle: #fcf9fc;
  --border-light: #f1e6f5;
  --border-hover: #e0bfe9;

  /* Paleta Oficial da Foto da Debutante */
  /* 1. Rosa / Fúcsia Floral (Vestido da Debutante) */
  --color-pink: #d92672;
  --color-pink-hot: #e11d48;
  --color-pink-light: #fdf2f8;
  --color-pink-glow: rgba(217, 38, 114, 0.25);

  /* 2. Roxo / Violeta Imperial (Pétalas e Crepúsculo) */
  --color-purple: #7c3aed;
  --color-purple-dark: #581c87;
  --color-purple-light: #f5f3ff;
  --color-purple-glow: rgba(124, 58, 237, 0.22);

  /* 3. Dourado Pôr do Sol / Âmbar (Reflexo no Lago e Horizonte) */
  --color-gold: #d97706;
  --color-gold-light: #fef3c7;
  --color-gold-warm: #f59e0b;
  --color-gold-glow: rgba(245, 158, 11, 0.25);

  /* 4. Verde Menta / Tropical Aqua (Folhagens e Fundo Floral) */
  --color-teal: #0d9488;
  --color-teal-light: #f0fdfa;

  /* 5. Escuros Nobres (Azul-noite e Violeta Profundo) */
  --color-black: #1e1b4b;
  --color-black-soft: #2e264f;
  --color-gray: #4b5563;
  --color-gray-light: #9ca3af;

  /* Fontes */
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-script: 'Great Vibes', cursive;

  /* Bordas e Sombras */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px rgba(124, 58, 237, 0.08), 0 4px 10px rgba(217, 38, 114, 0.05);
  --shadow-lg: 0 16px 40px rgba(124, 58, 237, 0.12), 0 6px 14px rgba(217, 38, 114, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--color-black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Container Centralizado e Focado */
.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
  transition: max-width 0.25s ease;
}

/* Modo Administrativo: Container compacto e harmonioso (860px) para juntar as colunas e eliminar espaços vazios */
body.admin-mode-active .container,
.admin-mode-active .container,
.container:has(#view-admin[style*="display: block"]) {
  max-width: 860px;
  width: 100%;
}

/* Card Principal (Hero) com a Foto da Debutante em Destaque */
.hero-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 22px 26px;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-top: 10px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold-warm) 0%, var(--color-pink) 40%, var(--color-purple) 75%, var(--color-teal) 100%);
}

/* ==========================================
   FOTO DA DEBUTANTE COM EFEITO DE BLUR ATRÁS
   (Foto Inteira, Nítida e Bem Visível)
   ========================================== */
.debutante-showcase-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto 26px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 1. Blur atmosférico espelhado atrás da foto com cores vivas do pôr do sol */
.debutante-blur-backdrop {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%) scale(1.08);
  width: 94%;
  height: 96%;
  background: url('../images/debutante.jpg') center/cover no-repeat;
  filter: blur(28px) saturate(1.85) brightness(1.04);
  opacity: 0.65;
  border-radius: 32px;
  z-index: 1;
  pointer-events: none;
  animation: sunsetAmbientPulse 5s ease-in-out infinite alternate;
}

/* 2. Aura radial de transição suave - Ouro do pôr do sol e Magenta floral */
.debutante-ambient-halo {
  position: absolute;
  inset: -28px;
  background: radial-gradient(circle at 45% 25%, rgba(245, 158, 11, 0.42) 0%, rgba(219, 39, 119, 0.35) 45%, rgba(124, 58, 237, 0.22) 72%, transparent 85%);
  filter: blur(32px);
  z-index: 0;
  pointer-events: none;
}

@keyframes sunsetAmbientPulse {
  0% { transform: translateX(-50%) scale(1.06); opacity: 0.58; filter: blur(26px) saturate(1.75); }
  100% { transform: translateX(-50%) scale(1.10); opacity: 0.72; filter: blur(32px) saturate(2.0); }
}

/* 3. Moldura nítida e refinada em primeiro plano destacando a foto inteira */
.debutante-main-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 26px;
  overflow: hidden;
  padding: 3px;
  background: linear-gradient(135deg, var(--color-gold-warm) 0%, var(--color-pink) 38%, var(--color-purple) 72%, var(--color-teal) 100%);
  box-shadow: 0 20px 48px -8px rgba(219, 39, 119, 0.32), 0 10px 24px -4px rgba(245, 158, 11, 0.24);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.debutante-main-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 56px -6px rgba(219, 39, 119, 0.38), 0 12px 28px -4px rgba(245, 158, 11, 0.30);
}

.debutante-main-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 23px;
  object-fit: contain; /* Foto 100% inteira sem nenhum corte */
}

/* ==========================================
   NOME ACIMA DA FOTO — Canvas Confete + Fonte Elegante
   ========================================== */
.debutante-header-meta {
  margin-bottom: 20px;
  position: relative;
}

/* Wrapper relativo para posicionar o canvas de confete em cima do nome */
.name-confetti-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 6px;
}

/* Canvas de confete — cobre apenas a área do nome */
.name-confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.debutante-hero-name {
  font-family: 'Parisienne', cursive;
  font-size: clamp(3.4rem, 10vw, 5.2rem);
  font-weight: 400; /* Parisienne não tem bold, 400 é o certo */
  color: var(--color-pink);
  margin-bottom: 0;
  letter-spacing: 1px;
  line-height: 1.15;
  position: relative;
  z-index: 2;
  text-shadow:
    0 2px 16px rgba(217, 38, 114, 0.28),
    0 1px 4px rgba(124, 58, 237, 0.15);
}

.debutante-age-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-purple-dark);
  background: linear-gradient(135deg, #fdf2f8 0%, #fef3c7 50%, #f5f3ff 100%);
  border: 2px solid rgba(217, 38, 114, 0.35);
  padding: 8px 26px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(217, 38, 114, 0.12);
  letter-spacing: 0.3px;
}

.debutante-age-tag span {
  color: var(--color-pink);
}

.debutante-date-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-black);
  margin-top: 4px;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

/* ==========================================
   CONTAGEM REGRESSIVA LOGO ABAIXO DO NOME
   ========================================== */
.hero-countdown-block {
  margin: 0 auto 26px;
  max-width: 580px;
  background: linear-gradient(180deg, #ffffff 0%, #fcf8fc 100%);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 20px 20px;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.08);
}

.countdown-heading {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--color-purple-dark);
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}

.countdown-card {
  background: #ffffff;
  border: 1.5px solid rgba(217, 38, 114, 0.18);
  border-radius: 18px;
  padding: 16px 8px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.countdown-card:hover {
  border-color: var(--color-pink);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 38, 114, 0.15);
}

.countdown-digit {
  font-family: var(--font-serif);
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--color-black);
  line-height: 1.05;
  background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.countdown-text {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-gold);
  letter-spacing: 1.2px;
  margin-top: 4px;
}

.debutante-welcome-text {
  font-size: 0.95rem;
  color: var(--color-gray);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Animação Especial do Dia da Festa ("É Hoje!") */
.party-day-banner {
  background: linear-gradient(135deg, var(--color-purple-dark), var(--color-pink), var(--color-purple));
  color: #ffffff;
  padding: 22px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(224, 33, 138, 0.35);
  animation: pulseGlow 2.5s infinite alternate ease-in-out;
  display: none; /* Ativado via JS */
}

@keyframes pulseGlow {
  0% { transform: scale(1); box-shadow: 0 8px 25px rgba(224, 33, 138, 0.3); }
  100% { transform: scale(1.02); box-shadow: 0 16px 40px rgba(107, 33, 168, 0.5); }
}

.party-day-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.party-day-desc {
  font-size: 0.95rem;
  opacity: 0.95;
}

/* ==========================================
   ABAS DE NAVEGAÇÃO
   ========================================== */
.tabs-nav {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.tab-btn {
  flex: 1;
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: var(--color-gray);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(107, 33, 168, 0.25);
}

/* ==========================================
   LISTA DE PRESENTES ESTILO LISTA DE COMPRAS
   (Um embaixo do outro)
   ========================================== */
.list-header-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.list-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-black);
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-counter {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-purple);
  background: var(--color-purple-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* Barra de Busca e Categorias */
.filter-box {
  margin-bottom: 18px;
}

.search-input-field {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--color-black);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 10px;
}

.search-input-field:focus {
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(107, 33, 168, 0.1);
}

.category-pill-group {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.category-pill-group::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  white-space: nowrap;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--color-gray);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.cat-pill.active, .cat-pill:hover {
  background: var(--color-black);
  color: #ffffff;
  border-color: var(--color-black);
}

/* LISTA VERTICAL (UM EMBAIXO DO OUTRO) */
.shopping-list-vertical {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  gap: 14px;
}

.list-row:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.list-row.is-taken {
  background: linear-gradient(135deg, #f5f0ff 0%, #fdf0f7 100%);
  border-color: #d8b4e2;
  cursor: default;
}

/* Linha disponível: cursor pointer para indicar que é clicável */
.list-row:not(.is-taken) {
  cursor: pointer;
}

.list-row:not(.is-taken):hover {
  background: var(--color-purple-light);
  border-color: var(--color-purple);
  transform: translateX(3px);
}

.row-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.row-check-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--color-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  color: #ffffff;
  background: #ffffff;
  flex-shrink: 0;
}

.row-check-box svg {
  width: 12px;
  height: 12px;
  stroke: #ffffff;
}

.list-row.is-taken .row-check-box {
  background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
  border-color: var(--color-purple);
  color: #ffffff;
  font-size: 0.85rem;
}

/* Ícone Oficial do Presente */
.gift-icon-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(107, 33, 168, 0.08), rgba(224, 33, 138, 0.08));
  border: 1.5px solid rgba(224, 33, 138, 0.22);
  color: var(--color-purple);
  box-shadow: 0 2px 6px rgba(107, 33, 168, 0.04);
  transition: all 0.22s ease-in-out;
  flex-shrink: 0;
}

.gift-icon-badge svg {
  width: 25px;
  height: 25px;
  stroke: var(--color-purple);
  transition: all 0.22s ease-in-out;
}

.list-row:not(.is-taken):hover .gift-icon-badge {
  background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
  border-color: transparent;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(224, 33, 138, 0.25);
}

.list-row:not(.is-taken):hover .gift-icon-badge svg {
  stroke: #ffffff;
}

.list-row.is-taken .gift-icon-badge {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #9ca3af;
  box-shadow: none;
}

.list-row.is-taken .gift-icon-badge svg {
  stroke: #9ca3af;
}

.row-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.row-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-black);
  word-break: break-word;
  line-height: 1.25;
}

.list-row.is-taken .row-title {
  text-decoration: line-through;
  color: var(--color-gray-light);
}

.row-details {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-purple);
  margin-top: 2px;
  word-break: break-word;
}

.list-row.is-taken .row-details {
  color: #a3a3a3;
}

.row-right {
  flex-shrink: 0;
}

/* Botão Escolher */
.btn-select-gift {
  background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(224, 33, 138, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-select-gift:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 16px rgba(107, 33, 168, 0.3);
}

/* Badge Já Escolhido (Protege 100% a privacidade dos convidados) */
.badge-already-chosen {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================
   CONFIRMAÇÃO DE PRESENÇA (RSVP)
   ========================================== */
.card-form-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.form-group-item {
  margin-bottom: 16px;
}

.form-field-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 6px;
}

.form-field-label span {
  color: var(--color-pink);
}

.form-input-ctrl {
  width: 100%;
  padding: 12px 14px;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-black);
  outline: none;
  transition: border-color 0.2s;
}

.form-input-ctrl:focus {
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(107, 33, 168, 0.1);
}

.btn-action-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(107, 33, 168, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 10px;
}

.btn-action-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 33, 168, 0.35);
}

/* ==========================================
   MODAL DE ESCOLHA DE PRESENTE
   ========================================== */
.modal-overlay-bg {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay-bg.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal-window {
  background: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  position: relative;
}

.modal-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.modal-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-black);
}

.modal-btn-close {
  background: none;
  border: none;
  color: var(--color-gray);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-item-highlight {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-purple-light);
  border: 1.5px solid rgba(107, 33, 168, 0.18);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.modal-gift-icon-badge {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1.5px solid rgba(224, 33, 138, 0.25);
  color: var(--color-purple);
  box-shadow: 0 3px 10px rgba(107, 33, 168, 0.08);
  flex-shrink: 0;
}

.modal-gift-icon-badge svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-purple);
}

.modal-highlight-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.modal-highlight-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-purple-dark);
  line-height: 1.25;
}

.modal-highlight-specs {
  font-size: 0.85rem;
  color: var(--color-pink);
  font-weight: 600;
  margin-top: 2px;
}

/* ==========================================
   TELA DE CONFIRMAÇÃO COM ANIMAÇÃO NA TELA DO PRESENTE
   (100% Visível em Celulares e Computadores)
   ========================================== */
.modal-success-screen {
  text-align: center;
  padding: 8px 4px 6px;
  animation: fadeInModalScreen 0.35s ease;
}

@keyframes fadeInModalScreen {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.success-celebration-badge-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-celebration-pulse {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.4) 0%, rgba(217, 38, 114, 0.3) 50%, transparent 75%);
  animation: ringPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes ringPulse {
  0% { transform: scale(0.85); opacity: 0.85; }
  50% { transform: scale(1.35); opacity: 0.35; }
  100% { transform: scale(1.6); opacity: 0; }
}

.success-celebration-badge {
  position: relative;
  z-index: 2;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-gold-warm) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(217, 38, 114, 0.35), 0 4px 10px rgba(245, 158, 11, 0.3);
  animation: popSuccess 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes popSuccess {
  0% { transform: scale(0); }
  70% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.success-check-svg {
  stroke: #ffffff;
}

.success-celebration-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-black);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.success-gift-recap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fdf2f8 0%, #fef3c7 100%);
  border: 1.5px solid rgba(217, 38, 114, 0.22);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.success-celebration-desc {
  font-size: 0.92rem;
  color: var(--color-gray);
  line-height: 1.5;
  margin-bottom: 14px;
}

.success-celebration-desc strong {
  color: var(--color-pink-hot);
  font-weight: 700;
}

.success-party-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 100%);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: var(--color-purple-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

/* ==========================================
   PAINEL DE ADMINISTRAÇÃO (ADMIN)
   ========================================== */
.admin-view-container {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}

.admin-login-card {
  max-width: 380px;
  margin: 0 auto;
  text-align: center;
}

.admin-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.admin-kpi-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  padding: 14px;
  border-radius: var(--radius-md);
  text-align: center;
}

.admin-kpi-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-purple);
}

.admin-kpi-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gray);
  text-transform: uppercase;
}

.admin-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.mobile-scroll-hint {
  display: none;
}

@media (max-width: 768px) {
  .mobile-scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    color: var(--color-purple);
    font-weight: 600;
    margin-bottom: 8px;
    background: #faf5ff;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid #f3e8ff;
  }
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.admin-data-table th {
  background: var(--color-purple-light);
  color: var(--color-purple-dark);
  padding: 10px 10px;
  border-bottom: 1.5px solid var(--border-light);
  font-weight: 700;
  font-size: 0.80rem;
}

.admin-data-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #f3f4f6;
  color: var(--color-black-soft);
  vertical-align: middle;
}

.admin-data-table tr:hover {
  background: #faf7fb;
}

/* NO DESKTOP (Telas >= 769px): Tabela compacta e proporcional */
@media (min-width: 769px) {
  .admin-table-scroll {
    overflow: visible;
  }

  .admin-data-table {
    table-layout: fixed;
    width: 100%;
    min-width: 0;
  }

  #admin-gifts-table th:nth-child(1),
  #admin-gifts-table td:nth-child(1) {
    width: 33%;
  }

  #admin-gifts-table th:nth-child(2),
  #admin-gifts-table td:nth-child(2) {
    width: 14%;
    white-space: nowrap;
  }

  #admin-gifts-table th:nth-child(3),
  #admin-gifts-table td:nth-child(3) {
    width: 17%;
    word-break: break-word;
  }

  #admin-gifts-table th:nth-child(4),
  #admin-gifts-table td:nth-child(4) {
    width: 14%;
    white-space: nowrap;
  }

  #admin-gifts-table th:nth-child(5),
  #admin-gifts-table td:nth-child(5) {
    width: 9%;
    white-space: nowrap;
  }

  #admin-gifts-table th:nth-child(6),
  #admin-gifts-table td:nth-child(6) {
    width: 13%;
    text-align: right;
  }

  #admin-rsvps-table th:nth-child(1),
  #admin-rsvps-table td:nth-child(1) {
    width: 24%;
    word-break: break-word;
  }

  #admin-rsvps-table th:nth-child(2),
  #admin-rsvps-table td:nth-child(2) {
    width: 16%;
    white-space: nowrap;
  }

  #admin-rsvps-table th:nth-child(3),
  #admin-rsvps-table td:nth-child(3) {
    width: 11%;
    white-space: nowrap;
  }

  #admin-rsvps-table th:nth-child(4),
  #admin-rsvps-table td:nth-child(4) {
    width: 22%;
    word-break: break-word;
  }

  #admin-rsvps-table th:nth-child(5),
  #admin-rsvps-table td:nth-child(5) {
    width: 15%;
    word-break: break-word;
  }

  #admin-rsvps-table th:nth-child(6),
  #admin-rsvps-table td:nth-child(6) {
    width: 12%;
    text-align: right;
  }
}

/* NO CELULAR / MOBILE (<= 768px):
   Linhas compactas e colunas juntas, eliminando espaçamentos vazios entre Item e Status! */
@media (max-width: 768px) {
  .admin-table-scroll {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .admin-data-table {
    min-width: 520px !important;
    width: max-content !important;
    table-layout: auto !important;
  }

  .admin-data-table th,
  .admin-data-table td {
    padding: 6px 8px !important;
    white-space: nowrap !important;
    line-height: 1.25 !important;
  }

  /* Coluna 1 (Item): justa ao texto sem folga até o Status */
  #admin-gifts-table th:nth-child(1),
  #admin-gifts-table td:nth-child(1) {
    min-width: 140px !important;
    max-width: 180px !important;
    width: auto !important;
    white-space: normal !important;
    padding-right: 6px !important;
  }

  /* Coluna 2 (Status): logo ao lado do Item */
  #admin-gifts-table th:nth-child(2),
  #admin-gifts-table td:nth-child(2) {
    min-width: 75px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  #admin-gifts-table th:nth-child(3),
  #admin-gifts-table td:nth-child(3) {
    min-width: 95px !important;
  }

  #admin-gifts-table th:nth-child(4),
  #admin-gifts-table td:nth-child(4) {
    min-width: 95px !important;
  }

  #admin-gifts-table th:nth-child(5),
  #admin-gifts-table td:nth-child(5) {
    min-width: 60px !important;
  }

  #admin-gifts-table th:nth-child(6),
  #admin-gifts-table td:nth-child(6) {
    min-width: 105px !important;
  }

  .admin-gift-cell {
    gap: 6px !important;
  }

  .admin-gift-cell .gift-icon-badge {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 6px !important;
  }

  .admin-gift-cell .gift-icon-badge svg {
    width: 16px !important;
    height: 16px !important;
  }

  .admin-gift-title {
    font-size: 0.80rem !important;
    line-height: 1.15 !important;
  }

  .admin-gift-details {
    font-size: 0.70rem !important;
    line-height: 1.15 !important;
  }

  .admin-gift-category {
    font-size: 0.64rem !important;
    line-height: 1.15 !important;
  }

  .admin-actions-cell {
    gap: 3px !important;
  }

  .btn-admin-action {
    padding: 3px 5px !important;
    font-size: 0.68rem !important;
    gap: 2px !important;
  }

  /* Tabela de RSVPs compacta */
  #admin-rsvps-table th,
  #admin-rsvps-table td {
    padding: 6px 8px !important;
    white-space: nowrap !important;
  }

  #admin-rsvps-table th:nth-child(1),
  #admin-rsvps-table td:nth-child(1) {
    min-width: 110px !important;
    white-space: normal !important;
  }

  #admin-rsvps-table th:nth-child(2),
  #admin-rsvps-table td:nth-child(2) {
    min-width: 90px !important;
  }

  #admin-rsvps-table th:nth-child(3),
  #admin-rsvps-table td:nth-child(3) {
    min-width: 60px !important;
  }

  #admin-rsvps-table th:nth-child(4),
  #admin-rsvps-table td:nth-child(4) {
    min-width: 120px !important;
    white-space: normal !important;
  }

  #admin-rsvps-table th:nth-child(5),
  #admin-rsvps-table td:nth-child(5) {
    min-width: 100px !important;
    white-space: normal !important;
  }
}

/* Célula do Item do Presente com ícone e texto compactados juntos */
.admin-gift-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-gift-cell .gift-icon-badge {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.admin-gift-cell .gift-icon-badge svg {
  width: 18px;
  height: 18px;
}

.admin-gift-info {
  min-width: 0;
  flex: 1;
}

.admin-gift-title {
  font-weight: 700;
  color: var(--color-black);
  display: block;
  line-height: 1.2;
  font-size: 0.84rem;
}

.admin-gift-details {
  font-size: 0.74rem;
  color: var(--color-purple);
  display: block;
  line-height: 1.2;
}

.admin-gift-category {
  font-size: 0.67rem;
  color: var(--color-gray);
  display: block;
  line-height: 1.2;
}

/* Botões da Tabela Administrativa compactos e bem alinhados */
.admin-actions-cell {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.btn-admin-action {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  line-height: 1.2;
  text-decoration: none;
  flex-shrink: 0;
}

.btn-admin-action svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.btn-admin-edit {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.btn-admin-edit:hover {
  background: #6d28d9;
  color: #ffffff;
  border-color: #6d28d9;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.22);
}

.btn-admin-delete {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.btn-admin-delete:hover {
  background: #e11d48;
  color: #ffffff;
  border-color: #e11d48;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.22);
}

.btn-admin-release {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.btn-admin-release:hover {
  background: #b45309;
  color: #ffffff;
  border-color: #b45309;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.22);
}

/* ==========================================
   RODAPÉ E BOTÃO ADMIN NO FINAL DA PÁGINA
   ========================================== */
.site-footer {
  text-align: center;
  padding: 40px 16px 36px;
  border-top: 1px solid var(--border-light);
  margin-top: 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-decor-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 4px;
}

.footer-date-info {
  font-size: 0.88rem;
  color: var(--color-gray);
  margin-bottom: 12px;
}

/* Assinatura do Desenvolvedor */
.developer-signature {
  font-size: 0.84rem;
  color: #6b7280;
  margin: 8px 0 16px;
  line-height: 1.5;
  text-align: center;
}

.developer-signature a {
  color: var(--color-purple);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.developer-signature a:hover {
  color: var(--color-pink);
  text-decoration: underline;
}

/* Botão "Administração" no final da página */
.btn-admin-footer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1px solid #e5e0eb;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-admin-footer svg {
  width: 14px;
  height: 14px;
  color: #9ca3af;
  transition: color 0.2s ease;
}

.btn-admin-footer:hover {
  color: var(--color-purple-dark);
  border-color: var(--color-purple);
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(107, 33, 168, 0.14);
}

.btn-admin-footer:hover svg {
  color: var(--color-purple);
}

/* ==========================================
   RESPONSIVIDADE — TELA MAIOR (DESKTOP)
   Mantém tudo centralizado, apenas aumenta
   o max-width do container levemente
   ========================================== */
@media (min-width: 768px) {
  .container {
    max-width: 800px;
    padding: 0 24px;
  }

  body.admin-mode-active .container,
  .admin-mode-active .container,
  .container:has(#view-admin[style*="display: block"]) {
    max-width: 860px;
  }
}

/* Toast de Alerta */
.toast-bubble {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-black);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 2000;
  animation: slideToast 0.25s ease;
}

@keyframes slideToast {
  from { opacity: 0; transform: translate(-50%, 15px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Responsividade Mobile */
@media (max-width: 600px) {
  .hero-card {
    padding: 20px 14px;
  }
  .debutante-showcase-wrapper {
    max-width: 330px;
    margin-bottom: 20px;
  }
  .debutante-main-frame {
    border-radius: 20px;
    padding: 2.5px;
  }
  .debutante-main-img {
    border-radius: 17.5px;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .debutante-blur-backdrop {
    filter: blur(20px) saturate(1.7);
    opacity: 0.60;
  }
  .debutante-hero-name {
    font-size: 3.2rem;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
  }
  .debutante-age-tag {
    font-size: 1.12rem;
    padding: 7px 20px;
  }
  .debutante-date-sub {
    font-size: 1.15rem;
  }
  .countdown-heading {
    font-size: 0.94rem;
    letter-spacing: 1.2px;
  }
  .countdown-grid {
    gap: 8px;
  }
  .countdown-card {
    padding: 12px 4px;
    border-radius: 14px;
  }
  .countdown-digit {
    font-size: 2.15rem;
  }
  .countdown-text {
    font-size: 0.76rem;
  }
  .shopping-list-vertical {
    gap: 6px;
  }
  .list-row {
    padding: 8px 10px;
    gap: 8px;
  }
  .row-left {
    gap: 8px;
  }
  .gift-icon-badge {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
  .gift-icon-badge svg {
    width: 18px;
    height: 18px;
  }
  .row-title {
    font-size: 0.86rem;
    line-height: 1.2;
  }
  .row-details {
    font-size: 0.72rem;
  }
  .btn-select-gift {
    padding: 5px 11px;
    font-size: 0.76rem;
    white-space: nowrap;
  }
  .badge-already-chosen {
    padding: 4px 8px;
    font-size: 0.72rem;
    white-space: nowrap;
  }
  .admin-view-container {
    padding: 14px 8px;
  }
  .modal-window {
    padding: 20px 16px;
    border-radius: 20px;
  }
  .modal-success-screen {
    padding: 4px 0 2px;
  }
  .success-celebration-title {
    font-size: 1.2rem;
  }
  .success-gift-recap {
    padding: 10px 12px;
    gap: 10px;
  }
}
