/* ══════════════════════════════════════════
   PAX BOM JESUS – VELÓRIO ONLINE
   style.css — Design Premium & Responsivo
══════════════════════════════════════════ */

/* ── VARIÁVEIS ── */
:root {
  --blue:        #1B5EA7;
  --blue-dark:   #0E3D7A;
  --blue-light:  #3378C8;
  --blue-pale:   #EEF4FC;
  --red:         #C8232B;
  --red-dark:    #9A1820;
  --gold:        #E8A020;
  --gold-light:  #F5C94C;
  --gold-pale:   #FFF8E8;
  --dark:        #1A1A1A;
  --text:        #2C2C2C;
  --text-mid:    #555555;
  --text-light:  #888888;
  --bg:          #EDF3FB;
  --white:       #FFFFFF;
  --border:      #D8E5F5;
  --border-light:#EAF0FA;
  --success:     #2D7D46;
  --success-bg:  #E8F8EE;

  --sh-xs:  0 1px 4px rgba(27,94,167,0.08);
  --sh-sm:  0 2px 10px rgba(27,94,167,0.10);
  --sh-md:  0 4px 24px rgba(27,94,167,0.12);
  --sh-lg:  0 8px 48px rgba(27,94,167,0.16);
  --sh-xl:  0 16px 64px rgba(27,94,167,0.18);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --ease: cubic-bezier(0.4,0,0.2,1);
  --t:    0.28s;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
a { text-decoration: none; }
input, select, textarea { font-family: inherit; }

/* ── SISTEMA DE PÁGINAS ── */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ══════════════════════════════════════════
   LOADER
══════════════════════════════════════════ */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(145deg, #F0F5FC 0%, #E8F0FA 50%, #F5F0FC 100%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease);
}
.loader.fade-out { opacity: 0; pointer-events: none; }

.loader-inner {
  text-align: center;
  animation: loader-entrance 0.6s var(--ease) both;
}

.loader-logo {
  width: 200px; height: auto;
  margin: 0 auto 24px;
  filter: drop-shadow(0 4px 16px rgba(27,94,167,0.2));
}
.loader-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.loader-bar {
  width: 200px; height: 3px;
  background: rgba(27,94,167,0.12);
  border-radius: 99px;
  overflow: hidden;
  margin: 0 auto 16px;
}
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  border-radius: 99px;
  animation: loader-fill 1.6s var(--ease) forwards;
}
.loader-tag {
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@keyframes loader-entrance {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes loader-fill {
  from { width: 0; }
  60%  { width: 80%; }
  to   { width: 100%; }
}

/* ══════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════ */
.login-bg {
  min-height: 100vh;
  background: linear-gradient(-50deg, #EEF4FC, #E8F5F0, #F5EEFF, #EEF4FC);
  background-size: 400% 400%;
  animation: bg-drift 20s ease infinite;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 16px;
  position: relative;
  overflow: hidden;
}
.login-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(27,94,167,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(200,35,43,0.03) 0%, transparent 50%);
  pointer-events: none;
}
@keyframes bg-drift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

.login-container {
  width: 100%; max-width: 460px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}

.login-card {
  width: 100%;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  overflow: hidden;
  position: relative;
  animation: card-in 0.7s var(--ease) 1.8s both;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.card-stripe {
  height: 5px;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue), var(--gold), var(--red));
}

.login-logo-wrap {
  padding: 32px 32px 0;
  display: flex; justify-content: center;
}
.login-logo {
  width: 180px; height: auto;
  filter: drop-shadow(0 2px 8px rgba(27,94,167,0.15));
}
.login-logo-text-fallback {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.lf-pax {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem; font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.06em;
}
.lf-bj {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 600;
  color: var(--blue);
  font-style: italic;
}

.login-h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 600;
  color: var(--blue-dark);
  text-align: center;
  padding: 20px 32px 2px;
}
.login-p {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
  padding: 0 32px 20px;
  letter-spacing: 0.02em;
}

.login-divider {
  display: flex; align-items: center; gap: 12px;
  padding: 0 32px 20px;
}
.login-divider span {
  flex: 1; height: 1px;
  background: var(--border);
}
.login-divider em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.login-form { padding: 0 32px 24px; display: flex; flex-direction: column; gap: 16px; }

/* ── CAMPOS DE FORMULÁRIO (compartilhado) ── */
.field-group { display: flex; flex-direction: column; gap: 6px; }

.field-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 700;
  color: var(--text-mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.field-label svg { color: var(--blue); flex-shrink: 0; }

.field-input {
  width: 100%; height: 48px;
  padding: 0 16px;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  outline: none;
}
.field-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,94,167,0.1);
}
.field-input::placeholder { color: #bbb; }

.field-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  resize: vertical;
  min-height: 80px;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  outline: none;
  line-height: 1.5;
}
.field-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,94,167,0.1);
}
.field-textarea::placeholder { color: #bbb; }

.field-select {
  width: 100%; height: 48px;
  padding: 0 40px 0 16px;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23888' d='M8 11L2 5h12z'/%3E%3C/svg%3E")
    no-repeat right 14px center / 14px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  outline: none;
  cursor: pointer;
}
.field-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,94,167,0.1);
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-light);
  padding-top: 2px;
}

.password-wrap { position: relative; }
.password-wrap .field-input { padding-right: 48px; }
.toggle-pass {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-light);
  display: flex; align-items: center; justify-content: center;
  transition: color var(--t);
  padding: 4px;
}
.toggle-pass:hover { color: var(--blue); }

/* ── ERRO DE LOGIN ── */
.login-error {
  display: flex; align-items: center; gap: 8px;
  background: #FFF0F0;
  border: 1.5px solid #FFB0B0;
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--red-dark);
  font-weight: 500;
  animation: shake-x 0.4s var(--ease);
}
.login-error svg { flex-shrink: 0; color: var(--red); }

@keyframes shake-x {
  0%,100% { transform: none; }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ── BOTÃO LOGIN ── */
.btn-login {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 52px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--white);
  border-radius: var(--r-sm);
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), opacity var(--t);
  box-shadow: 0 4px 20px rgba(27,94,167,0.35);
  margin-top: 4px;
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(27,94,167,0.42);
}
.btn-login:active { transform: translateY(0); }
.btn-login:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.btn-login .btn-chevron { margin-left: auto; opacity: 0.8; }

.login-secure {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 16px 32px 28px;
  font-size: 0.78rem;
  color: var(--text-light);
}
.login-secure svg { color: var(--success); }

.login-copyright {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  opacity: 0.8;
}

/* ── SHAKE CARD ── */
.login-card.shake { animation: shake-x 0.4s var(--ease); }

/* ── SPIN ── */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; }

/* ══════════════════════════════════════════
   CABEÇALHO DO SITE
══════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--blue-dark);
  background-image: linear-gradient(135deg, var(--blue-dark) 0%, #0D2F5E 100%);
  box-shadow: 0 2px 20px rgba(10,30,70,0.4);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.header-brand { display: flex; align-items: center; }
.header-logo {
  height: 44px; width: auto;
  filter: brightness(1) drop-shadow(0 1px 4px rgba(0,0,0,0.3));
}
.header-logo-fb {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
}
.header-mid { flex: 1; display: flex; justify-content: center; }
.header-page-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 600;
  color: rgba(255,255,255,0.9);
  font-style: italic;
}
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-clock {
  font-size: 0.85rem; font-weight: 700;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

/* ── BADGE AO VIVO ── */
.live-badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(200,35,43,0.18);
  border: 1px solid rgba(200,35,43,0.4);
  border-radius: 99px;
  padding: 4px 14px;
  font-size: 0.75rem; font-weight: 800;
  color: #FF8080;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(200,35,43,0.3);
  animation: pulse-dot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 3px rgba(200,35,43,0.3); }
  50%      { box-shadow: 0 0 0 7px rgba(200,35,43,0.1); }
}

/* ── BOTÃO SAIR ── */
.btn-sair {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-sm);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem; font-weight: 600;
  transition: background var(--t), color var(--t);
}
.btn-sair:hover {
  background: rgba(255,255,255,0.18);
  color: var(--white);
}

/* ══════════════════════════════════════════
   PÁGINA DE TRANSMISSÃO
══════════════════════════════════════════ */
.trans-main {
  max-width: 1100px; margin: 0 auto;
  padding: 32px 24px 48px;
}
.ceremony-heading {
  text-align: center;
  margin-bottom: 28px;
}
.ceremony-heading h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--blue-dark);
}
.ceremony-heading p {
  font-size: 1rem;
  color: var(--text-mid);
  margin-top: 8px;
  font-style: italic;
}

/* ── ÁREA DO NOME DO FALECIDO ── */
.memorial-name-area {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
  padding: 28px 32px;
  background: linear-gradient(160deg, rgba(255,255,255,0.85) 0%, rgba(240,245,252,0.7) 100%);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 32px rgba(27,94,167,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
}
/* Brilho sutil nos cantos */
.memorial-name-area::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}

.memorial-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}
.memorial-ornament-bottom { margin-top: 10px; margin-bottom: 0; }

.memorial-ornament span {
  flex: 1;
  max-width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.55), transparent);
}

.memorial-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
}

.memorial-name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 400;
  color: var(--blue-dark);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-shadow:
    0 2px 12px rgba(27,94,167,0.12),
    0 1px 0 rgba(255,255,255,0.8);
  animation: name-appear 1s var(--ease) both;
  word-break: break-word;
}

@keyframes name-appear {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* ── PLAYER ── */
.player-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-xl);
  background: #0A0F1E;
  margin-bottom: 32px;
}
.player-box {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}
.camera-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.player-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #0A0F1E 0%, #101828 100%);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.overlay-content {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 24px;
  animation: fade-up 0.6s var(--ease) both;
}
.overlay-live {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 800;
  color: #FF8080;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.overlay-cam-icon svg {
  width: 80px; height: auto;
  opacity: 0.6;
  animation: cam-pulse 3s ease-in-out infinite;
}
@keyframes cam-pulse {
  0%,100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 0.75; transform: scale(1.04); }
}
.overlay-msg {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 360px;
  font-style: italic;
}
.overlay-id {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.btn-open-stream {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px;
  background: rgba(27,94,167,0.25);
  border: 1px solid rgba(27,94,167,0.5);
  border-radius: 99px;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem; font-weight: 600;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.btn-open-stream:hover {
  background: rgba(27,94,167,0.45);
  border-color: rgba(27,94,167,0.8);
  transform: translateY(-1px);
  color: var(--white);
}

/* ── BOTÕES DE AÇÃO ── */
.action-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.action-btn {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  border-radius: var(--r);
  border: 2px solid transparent;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
  text-align: left;
  cursor: pointer;
}
.action-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
}
.action-btn:active { transform: translateY(-1px); }

.action-btn-msg {
  background: linear-gradient(135deg, #EEF4FC, #E0ECFC);
  border-color: #C8DEFF;
}
.action-btn-msg:hover { border-color: var(--blue); }

.action-btn-flow {
  background: linear-gradient(135deg, #F0FBF4, #E0F5E8);
  border-color: #B8E8C8;
}
.action-btn-flow:hover { border-color: #2D8A48; }

.action-icon {
  flex-shrink: 0;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.action-icon-msg { background: linear-gradient(135deg, var(--blue), var(--blue-light)); color: white; }
.action-icon-flow { background: linear-gradient(135deg, #2D7A48, #3DA860); color: white; }

.action-label { display: flex; flex-direction: column; gap: 4px; }
.action-label strong {
  font-size: 0.95rem; font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.action-label span { font-size: 0.8rem; color: var(--text-mid); }

/* ══════════════════════════════════════════
   PÁGINA DE HOMENAGENS
══════════════════════════════════════════ */
.home-main {
  max-width: 1200px; margin: 0 auto;
  padding: 32px 24px 64px;
}
.home-top {
  display: flex; flex-direction: column; gap: 20px;
  margin-bottom: 36px;
}
.btn-voltar {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  color: var(--blue);
  font-size: 0.88rem; font-weight: 600;
  box-shadow: var(--sh-xs);
  transition: background var(--t), box-shadow var(--t), transform var(--t);
  align-self: flex-start;
}
.btn-voltar:hover {
  background: var(--blue-pale);
  box-shadow: var(--sh-sm);
  transform: translateX(-3px);
}
.home-heading { text-align: center; }
.home-heading h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--blue-dark);
}
.home-heading p {
  font-size: 0.95rem; color: var(--text-mid);
  margin-top: 8px; font-style: italic;
}

/* ── GRID DE PRODUTOS ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* ── CARD DE PRODUTO ── */
.product-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  border: 1px solid var(--border-light);
  animation: fade-up 0.5s var(--ease) both;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
}

.product-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.product-img svg { width: 100%; height: 100%; display: block; }

.product-body { padding: 20px 20px 0; flex: 1; }
.product-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 10px;
}
.badge-msg { background: #EEF4FC; color: var(--blue); }
.badge-flores { background: #E8F5EC; color: #2D7A48; }
.badge-luxo { background: var(--gold-pale); color: #A86820; }

.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.product-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.55;
  margin-bottom: 16px;
}
.product-price {
  font-size: 1.5rem; font-weight: 800;
  color: var(--blue-dark);
  display: flex; align-items: baseline; gap: 4px;
}
.price-currency {
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-mid);
}

.product-footer { padding: 16px 20px 20px; }
.btn-comprar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 46px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--white);
  border-radius: var(--r-sm);
  font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform var(--t), box-shadow var(--t), opacity var(--t);
  box-shadow: 0 4px 16px rgba(27,94,167,0.3);
}
.btn-comprar:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(27,94,167,0.4);
}
.btn-comprar:active { transform: none; }

/* ══════════════════════════════════════════
   MODAL DE COMPRA
══════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: modal-in 0.3s var(--ease) both;
}
.modal-bg {
  position: absolute; inset: 0;
  background: rgba(10,20,50,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-box {
  position: relative; z-index: 1;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  width: 100%; max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modal-slide 0.35s var(--ease) both;
}
@keyframes modal-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modal-slide {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
  padding: 28px 28px 0;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
}
.modal-head-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--blue-dark);
}
.modal-head-text p {
  font-size: 0.85rem; color: var(--text-mid);
  margin-top: 4px;
}
.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-mid);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--t), color var(--t);
}
.modal-close:hover { background: #FFE8E8; color: var(--red); }

.modal-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 24px; }

/* ── RESUMO DO PEDIDO ── */
.order-summary {
  background: var(--blue-pale);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
}
.order-product-img {
  width: 72px; height: 56px;
  border-radius: var(--r-sm);
  overflow: hidden; flex-shrink: 0;
}
.order-product-img svg { width: 100%; height: 100%; display: block; }
.order-details { flex: 1; }
.order-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 600;
  color: var(--blue-dark);
}
.order-desc { font-size: 0.8rem; color: var(--text-mid); margin-top: 2px; }
.order-price {
  font-size: 1.3rem; font-weight: 800;
  color: var(--blue-dark);
  white-space: nowrap;
}

/* ── FORM COMPRA ── */
.compra-form { display: flex; flex-direction: column; gap: 16px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── BOTÃO FINALIZAR ── */
.btn-finalizar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 54px;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: var(--white);
  border-radius: var(--r-sm);
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 20px rgba(200,35,43,0.35);
  transition: transform var(--t), box-shadow var(--t), opacity var(--t);
  margin-top: 8px;
}
.btn-finalizar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200,35,43,0.42);
}
.btn-finalizar:active { transform: none; }
.btn-finalizar:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.btn-finalizar .btn-chevron { margin-left: auto; opacity: 0.8; }

/* ══════════════════════════════════════════
   TOAST
══════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9998;
  min-width: 280px; max-width: 480px;
  padding: 14px 20px;
  border-radius: var(--r);
  font-size: 0.9rem; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--sh-lg);
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.toast-success { background: var(--success-bg); border-left: 4px solid var(--success); color: #1A5C30; }
.toast.toast-error   { background: #FFF0F0; border-left: 4px solid var(--red); color: var(--red-dark); }
.toast.toast-info    { background: var(--blue-pale); border-left: 4px solid var(--blue); color: var(--blue-dark); }

/* ══════════════════════════════════════════
   ANIMAÇÕES GERAIS
══════════════════════════════════════════ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* Delay escalonado para cards de produtos */
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.12s; }
.product-card:nth-child(3) { animation-delay: 0.19s; }
.product-card:nth-child(4) { animation-delay: 0.26s; }
.product-card:nth-child(5) { animation-delay: 0.33s; }

/* ══════════════════════════════════════════
   SCROLLBAR ELEGANTE
══════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #BBC8DA; }

/* ══════════════════════════════════════════
   PAINEL ADMINISTRATIVO
══════════════════════════════════════════ */
.admin-header-bar { background: linear-gradient(135deg, #2A1A5E 0%, #1A0F40 100%); }

.admin-badge-header {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 0.78rem; font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
}

.admin-main {
  max-width: 860px; margin: 0 auto;
  padding: 32px 24px 64px;
  display: flex; flex-direction: column; gap: 24px;
}

.admin-greeting {
  text-align: center;
  padding-bottom: 8px;
}
.admin-greeting h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--blue-dark);
}
.admin-greeting p {
  font-size: 0.9rem; color: var(--text-mid);
  margin-top: 6px; font-style: italic;
}

/* ── Admin Card ── */
.admin-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  animation: fade-up 0.4s var(--ease) both;
}
.admin-card:nth-child(2) { animation-delay: 0.08s; }
.admin-card:nth-child(3) { animation-delay: 0.16s; }
.admin-card:nth-child(4) { animation-delay: 0.24s; }

.admin-card-head {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, var(--bg) 0%, var(--white) 100%);
}
.admin-card-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--blue-dark); margin-bottom: 2px;
}
.admin-card-head p {
  font-size: 0.8rem; color: var(--text-mid);
}

.admin-card-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.aci-blue   { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); }
.aci-purple { background: linear-gradient(135deg, #6A1B9A, #9C27B0); }
.aci-green  { background: linear-gradient(135deg, #1B6B3A, #2E9E56); }

.admin-card-body {
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}

/* ── Botão salvar (admin) ── */
.btn-admin-save {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px;
  background: linear-gradient(135deg, #1B6B3A, #2E9E56);
  color: white;
  border-radius: var(--r-sm);
  font-size: 0.88rem; font-weight: 700;
  letter-spacing: 0.04em;
  align-self: flex-start;
  transition: transform var(--t), box-shadow var(--t);
  box-shadow: 0 3px 14px rgba(27,107,58,0.3);
}
.btn-admin-save:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27,107,58,0.38); }
.btn-admin-save:active { transform: none; }
.btn-save-catalog { align-self: flex-end; margin-top: 4px; }

/* ── Info de credenciais atuais ── */
.admin-creds-info {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--blue-pale);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.82rem; color: var(--blue-dark);
}
.admin-creds-info .cred-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 2px 10px;
  font-family: monospace;
  font-size: 0.85rem; font-weight: 600;
  color: var(--blue-dark);
}

/* ── Lista de produtos (admin) ── */
.admin-products-list {
  display: flex; flex-direction: column;
  border: 1.5px solid var(--border-light);
  border-radius: var(--r);
  overflow: hidden;
}

.admin-product-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--t);
}
.admin-product-item:last-child { border-bottom: none; }
.admin-product-item:hover { background: var(--bg); }

.admin-product-thumb {
  width: 88px; height: 70px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1.5px solid var(--border-light);
  background: var(--bg);
}
.admin-product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.admin-product-thumb svg { width: 100%; height: 100%; display: block; }

.admin-product-info { flex: 1; min-width: 0; }
.admin-product-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem; font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.admin-product-controls {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: end;
}

.admin-price-input {
  font-size: 1rem; font-weight: 700;
  color: var(--blue-dark);
  height: 44px;
}

/* ── Upload de foto ── */
.photo-upload-wrap { display: flex; flex-direction: column; gap: 6px; }

.photo-upload-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--r-sm);
  color: var(--blue);
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer;
  transition: background var(--t), border-color var(--t);
  white-space: nowrap;
}
.photo-upload-btn:hover {
  background: var(--blue-pale);
  border-color: var(--blue-light);
}

.photo-remove-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.75rem; color: var(--red);
  padding: 4px 8px;
  border-radius: 99px;
  background: #FFF0F0;
  border: 1px solid #FFB0B0;
  font-weight: 600;
  transition: background var(--t);
  cursor: pointer;
}
.photo-remove-btn:hover { background: #FFE0E0; }

/* ══════════════════════════════════════════
   MODAL BOTTOM-SHEET (mobile animation)
══════════════════════════════════════════ */
@keyframes modal-slide-up {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════
   RESPONSIVO — TABLET (≤ 768px)
══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Admin ── */
  .admin-main { padding: 20px 14px 48px; gap: 16px; }
  .admin-card-head { padding: 16px 18px; gap: 12px; }
  .admin-card-body { padding: 18px; }
  .admin-card-icon { width: 40px; height: 40px; }
  .admin-card-head h2 { font-size: 1rem; }
  .admin-product-item { padding: 14px 16px; flex-wrap: wrap; }
  .admin-product-thumb { width: 70px; height: 56px; }
  .admin-product-controls { grid-template-columns: 120px 1fr; gap: 10px; }
  .btn-save-catalog { align-self: stretch; justify-content: center; }

  /* ── Header ── */
  .header-inner    { padding: 0 14px; height: 58px; gap: 10px; }
  .header-logo     { height: 34px; }
  .header-clock    { display: none; }
  .header-page-name{ font-size: 0.82rem; }
  .btn-sair        { padding: 7px 12px; font-size: 0.8rem; gap: 5px; }

  /* ── Login ── */
  .login-bg        { justify-content: flex-start; padding: 20px 16px 24px; }
  .login-logo-wrap { padding: 22px 20px 0; }
  .login-logo      { width: 155px; }
  .login-h1        { padding: 14px 20px 2px; font-size: 1.35rem; }
  .login-p         { padding: 0 20px 14px; }
  .login-divider   { padding: 0 20px 14px; }
  .login-form      { padding: 0 20px 20px; gap: 14px; }
  .login-secure    { padding: 10px 20px 20px; }

  /* ── Transmissão ── */
  .trans-main          { padding: 18px 14px 32px; }
  .ceremony-heading    { margin-bottom: 16px; }
  .ceremony-heading h1 { font-size: 1.4rem; }
  .player-wrap         { margin-bottom: 20px; border-radius: var(--r); }

  /* Player: altura fixa no mobile para caber todo o conteúdo do overlay */
  .player-box  { padding-top: 0; height: 300px; }

  /* Overlay mais compacto */
  .overlay-content      { gap: 9px; padding: 14px 12px; }
  .overlay-cam-icon svg { width: 52px; }
  .overlay-live         { font-size: 0.68rem; letter-spacing: 0.15em; }
  .overlay-msg          { font-size: 0.88rem; }
  .overlay-id           { font-size: 0.66rem; }
  .btn-open-stream      { padding: 9px 18px; font-size: 0.8rem; gap: 6px; }

  /* Botões de ação em coluna */
  .action-btns          { grid-template-columns: 1fr; gap: 12px; }
  .action-btn           { padding: 14px 16px; gap: 14px; }
  .action-icon          { width: 46px; height: 46px; }
  .action-label strong  { font-size: 0.88rem; }
  .action-label span    { font-size: 0.76rem; }

  /* ── Homenagens ── */
  .home-main      { padding: 18px 14px 48px; }
  .home-heading h1{ font-size: 1.35rem; }
  .home-heading p { font-size: 0.88rem; }
  .btn-voltar     { font-size: 0.82rem; padding: 8px 16px; }

  .products-grid  { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-body   { padding: 12px 12px 0; }
  .product-badge  { font-size: 0.66rem; padding: 2px 8px; margin-bottom: 7px; }
  .product-name   { font-size: 0.92rem; margin-bottom: 6px; }
  .product-desc   { font-size: 0.78rem; margin-bottom: 10px; line-height: 1.45; }
  .product-price  { font-size: 1.2rem; }
  .price-currency { font-size: 0.78rem; }
  .product-footer { padding: 10px 12px 12px; }
  .btn-comprar    { height: 40px; font-size: 0.82rem; }

  /* ── Modal: bottom-sheet no mobile ── */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box {
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    max-height: 93vh;
    width: 100%;
    animation: modal-slide-up 0.38s var(--ease) both;
    /* Drag indicator */
    padding-top: 0;
  }
  .modal-box::before {
    content: '';
    display: block;
    width: 40px; height: 4px;
    background: var(--border);
    border-radius: 99px;
    margin: 12px auto 0;
  }
  .modal-head   { padding: 14px 18px 14px; }
  .modal-body   { padding: 14px 18px max(24px, env(safe-area-inset-bottom)); gap: 14px; }
  .form-row     { grid-template-columns: 1fr; gap: 12px; }
  .order-summary{ flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .order-product-img { width: 56px; height: 44px; }
  .order-price  { font-size: 1.1rem; }
  .modal-head-text h2 { font-size: 1.2rem; }
  .btn-finalizar { height: 50px; }
}

/* ══════════════════════════════════════════
   RESPONSIVO — MOBILE (≤ 480px)
══════════════════════════════════════════ */
@media (max-width: 480px) {

  /* Badge AO VIVO: reduzir mas manter texto */
  .live-badge       { padding: 4px 9px; font-size: 0.65rem; gap: 5px; }
  .live-badge .live-dot { width: 6px; height: 6px; }

  /* Player ainda mais compacto */
  .player-box       { height: 260px; }
  .overlay-cam-icon svg { width: 44px; }
  .overlay-content  { gap: 7px; padding: 10px; }
  .overlay-msg      { font-size: 0.82rem; }
  .overlay-id       { display: none; } /* Oculta ID em telas pequenas */
  .btn-open-stream  { padding: 8px 14px; font-size: 0.78rem; }

  /* Toast full-width */
  .toast {
    left: 12px; right: 12px;
    transform: translateY(20px);
    min-width: unset; width: auto;
    font-size: 0.84rem;
  }
  .toast.show { transform: translateY(0); }

  /* Login ajustes finos */
  .login-card { border-radius: var(--r); }
  .login-logo  { width: 140px; }
  .login-h1    { font-size: 1.2rem; }
  .field-input, .field-textarea, .field-select { font-size: 16px; } /* Evita zoom no iOS */
  .btn-login   { font-size: 0.92rem; }

  /* Ceremony title */
  .ceremony-heading h1 { font-size: 1.2rem; }
  .ceremony-heading p  { font-size: 0.85rem; }
}

/* ══════════════════════════════════════════
   RESPONSIVO — MUITO PEQUENO (≤ 360px)
══════════════════════════════════════════ */
@media (max-width: 360px) {
  .products-grid { grid-template-columns: 1fr; }
  .player-box    { height: 220px; }
  .header-page-name { display: none; } /* Esconde título no header em telas tiny */
}

/* ══════════════════════════════════════════
   SUPORTE A SAFE AREA (iPhone com notch)
══════════════════════════════════════════ */
@supports (padding-top: env(safe-area-inset-top)) {
  .site-header {
    padding-top: env(safe-area-inset-top);
  }
  .login-bg {
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
}

/* ══════════════════════════════════════════
   PEDIDOS RECEBIDOS (admin)
══════════════════════════════════════════ */
.admin-card:nth-child(5) { animation-delay: 0.32s; }
.admin-card:nth-child(6) { animation-delay: 0.40s; }

.admin-pedidos { display: flex; flex-direction: column; gap: 12px; }
.admin-pedidos-vazio {
  padding: 18px; text-align: center;
  color: var(--text-light); font-size: 0.88rem; font-style: italic;
  border: 1.5px dashed var(--border); border-radius: var(--r-sm);
}
.pedido-item {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--border-light); border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 0.86rem; color: var(--text);
}
.pedido-topo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.pedido-produto { font-weight: 700; color: var(--blue-dark); }
.pedido-valor { font-weight: 700; color: var(--success); }
.pedido-data { font-size: 0.75rem; color: var(--text-light); }
.pedido-linha { grid-column: 1 / -1; color: var(--text-mid); overflow-wrap: anywhere; }
.pedido-linha strong { color: var(--text); font-weight: 600; }
.pedido-excluir {
  align-self: start;
  font-size: 0.78rem; font-weight: 700; color: var(--red);
  padding: 4px 10px; border-radius: 99px; border: 1px solid rgba(200,35,43,0.25);
  background: white;
}
.pedido-excluir:hover { background: #FDECEC; }
