/* =================================================================
   CHAMA — Design System (base + pagina publica)
   Identidade: fogo. Preto profundo + gradiente chama (amarelo→vermelho).
   ================================================================= */

:root {
  /* superficie */
  --bg: #07060a;
  --bg-2: #0d0a12;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* texto */
  --text: #f6f3f8;
  --muted: #a7a0b0;
  --muted-2: #756e80;

  /* chama */
  --fire-1: #ffd60a;
  --fire-2: #ff8a00;
  --fire-3: #ff3d00;
  --fire-4: #d81e00;
  --flame: linear-gradient(135deg, #ffd60a 0%, #ff8a00 46%, #ff2e00 100%);
  /* gradiente para superficies COM TEXTO: nao chega no vermelho (contraste AA) */
  --flame-cta: linear-gradient(135deg, #ffd60a 0%, #ff7a00 100%);
  --flame-text: linear-gradient(105deg, #ffe45e 0%, #ff9d2f 45%, #ff3d00 100%);
  --flame-soft: linear-gradient(135deg, rgba(255, 214, 10, 0.16), rgba(255, 46, 0, 0.16));

  /* efeitos */
  --glow: 0 0 0 1px rgba(255, 122, 0, 0.35), 0 18px 50px -12px rgba(255, 70, 0, 0.45);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;

  --font-display: 'Bebas Neue', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1080px;
}

/* ----------------------------- reset ---------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 620px at 50% -12%, rgba(255, 96, 0, 0.22), transparent 60%),
    radial-gradient(900px 520px at 88% 4%, rgba(255, 0, 90, 0.1), transparent 55%),
    radial-gradient(700px 500px at 10% 18%, rgba(120, 0, 255, 0.07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--fire-3);
  color: #fff;
}

/* scrollbar */
::-webkit-scrollbar {
  width: 11px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--fire-2), var(--fire-4));
  border-radius: 99px;
  border: 3px solid var(--bg);
}

/* ----------------------------- layout --------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* embers canvas: camada de fundo + camada da frente */
#embers,
#embers-front {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#embers {
  z-index: 0;
}
#embers-front {
  z-index: 3;
  mix-blend-mode: screen;
}
/* chama realista (WebGL) numa faixa que sobe do rodape */
#flame {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
}
/* brilho do "chao" — sempre presente (tambem e o fallback sem WebGL) */
.floor-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(150% 80% at 50% 118%, rgba(255, 90, 0, 0.22), rgba(255, 40, 0, 0.06) 36%, transparent 60%);
}

.page {
  position: relative;
  z-index: 1;
}

/* ----------------------------- header --------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(7, 6, 10, 0.66);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* logo */
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
}

.logo .flame {
  width: 30px;
  height: 36px;
  filter: drop-shadow(0 4px 14px rgba(255, 90, 0, 0.6));
  animation: flicker 2.6s ease-in-out infinite;
}

.logo .wordmark {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 3px;
  line-height: 1;
  background: var(--flame-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
  transition: border-color 0.25s, transform 0.2s;
}
.header-code:hover {
  border-color: var(--fire-2);
  transform: translateY(-1px);
}
.header-code b {
  font-weight: 800;
  letter-spacing: 1px;
  background: var(--flame-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-admin {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}
.header-admin:hover {
  color: var(--text);
}

/* ----------------------------- hero ----------------------------- */
.hero {
  position: relative;
  text-align: center;
  padding: 86px 0 54px;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fire-1);
  padding: 7px 16px;
  border: 1px solid rgba(255, 138, 0, 0.35);
  border-radius: 99px;
  background: var(--flame-soft);
  margin-bottom: 26px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.92;
  letter-spacing: 1px;
  margin: 0 auto 18px;
  max-width: 14ch;
}
.hero h1 .fire {
  background: var(--flame-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 5s linear infinite;
}

.hero p.sub {
  color: var(--muted);
  font-size: clamp(15px, 2.2vw, 19px);
  max-width: 56ch;
  margin: 0 auto 36px;
}

/* card do codigo de desconto */
.code-card {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 14px 14px 26px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #15101b, #0c0910) padding-box, var(--flame) border-box;
  border: 1.6px solid transparent;
  box-shadow: var(--glow);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.code-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.5), 0 22px 60px -14px rgba(255, 70, 0, 0.6);
}
/* ---- botao COPIAR do codigo (hero) ---- */
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 132px;
  height: 52px;
  padding: 0 20px 0 16px;
  border-radius: 14px;
  flex: none;
  color: #1a0a00;
  background: var(--flame-cta);
  background-size: 160% auto;
  background-position: left center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 24px -8px rgba(255, 90, 0, 0.65);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease,
    background-position 0.5s ease, color 0.2s ease;
}
.copy-btn .copy-ico {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
}
.copy-btn .copy-ico svg {
  position: absolute;
  inset: 0;
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.copy-btn .i-check {
  opacity: 0;
  transform: scale(0.4);
}
.copy-btn .copy-text {
  display: grid;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.6px;
}
.copy-btn .copy-text > span {
  grid-area: 1 / 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.copy-btn .t-done {
  opacity: 0;
  transform: translateY(4px);
}

@media (hover: hover) {
  .code-card:hover .copy-btn {
    transform: translateY(-2px);
    background-position: right center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 16px 34px -10px rgba(255, 70, 0, 0.8);
  }
}
.code-card:active .copy-btn {
  transform: translateY(0) scale(0.97);
  box-shadow: inset 0 2px 6px rgba(120, 30, 0, 0.5), 0 6px 14px -8px rgba(255, 70, 0, 0.6);
  transition-duration: 0.1s;
}
.code-card:focus-visible {
  outline: none;
}
.code-card:focus-visible .copy-btn {
  box-shadow: 0 0 0 3px #07060a, 0 0 0 5px #ff8a00, 0 12px 28px -10px rgba(255, 90, 0, 0.7);
}

/* estado "copiado" */
.code-card.is-copied .copy-btn {
  background: linear-gradient(135deg, #44e08a 0%, #14b86b 100%);
  color: #04140c;
  animation: copyPop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.code-card.is-copied .i-copy {
  opacity: 0;
  transform: scale(0.4);
}
.code-card.is-copied .i-check {
  opacity: 1;
  transform: scale(1);
}
.code-card.is-copied .t-copy {
  opacity: 0;
  transform: translateY(-4px);
}
.code-card.is-copied .t-done {
  opacity: 1;
  transform: translateY(0);
}
.code-card.is-copied .copy-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.5), transparent 70%);
  transform: translateX(-120%);
  animation: copySheen 0.6s ease-out;
}
@keyframes copyPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes copySheen {
  to { transform: translateX(120%); }
}

/* pill de codigo no header */
.header-code .hc-ico {
  position: relative;
  display: inline-grid;
  width: 16px;
  height: 16px;
}
.header-code .hc-ico svg {
  grid-area: 1 / 1;
  transition: opacity 0.18s ease;
}
.header-code .i-check {
  opacity: 0;
}
.header-code.is-copied {
  border-color: #14b86b;
  color: #8af0b6;
}
.header-code.is-copied .i-copy {
  opacity: 0;
}
.header-code.is-copied .i-check {
  opacity: 1;
}
.code-card::after {
  /* brilho passando */
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-20deg);
  animation: sweep 4.5s ease-in-out infinite;
}
.code-card .label {
  text-align: left;
  line-height: 1.2;
}
.code-card .label small {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.code-card .label .value {
  font-family: var(--font-display);
  font-size: clamp(24px, 6vw, 32px);
  letter-spacing: 2px;
  line-height: 1;
  background: var(--flame-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* no celular o card empilha: texto em cima, botao 100% embaixo */
@media (max-width: 620px) {
  .code-card {
    flex-wrap: wrap;
    row-gap: 14px;
    justify-content: center;
  }
  .code-card .label {
    flex: 1 1 100%;
    text-align: center;
  }
  .code-card .copy-btn {
    width: 100%;
  }
}

/* ----------------------------- buttons -------------------------- */
.btn {
  --pad-y: 13px;
  --pad-x: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.6px;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s, border-color 0.25s,
    color 0.25s;
  white-space: nowrap;
  user-select: none;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-fire {
  color: #1a0a00;
  background: var(--flame-cta);
  background-size: 160% auto;
  box-shadow: 0 10px 26px -8px rgba(255, 80, 0, 0.6);
}
.btn-fire:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px rgba(255, 90, 0, 0.7);
}
.btn-fire .arrow {
  transition: transform 0.22s ease;
}
.btn-fire:hover .arrow {
  transform: translateX(4px);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--fire-2);
  color: #fff;
  transform: translateY(-2px);
}

.btn-icon {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #1a0a00;
  flex: none;
}
.btn-icon:hover {
  background: rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

/* ----------------------------- secao eventos -------------------- */
.events {
  padding: 30px 0 90px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: 1px;
  line-height: 1;
  position: relative;
}
.section-head h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  margin-top: 12px;
  border-radius: 4px;
  background: var(--flame);
}
.section-head .count {
  color: var(--muted);
  font-size: 14px;
}

/* controles: busca + filtros */
.controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.search {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.search input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}
.search input::placeholder {
  color: var(--muted-2);
}
.search input:focus {
  outline: none;
  border-color: var(--fire-2);
  background: var(--surface-2);
}
.search svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  padding: 11px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.chip.active {
  color: #1a0a00;
  background: var(--flame-cta);
  border-color: transparent;
}

/* lista de eventos */
.event-list {
  display: grid;
  gap: 16px;
}

/* ------- CARD DO EVENTO (o coracao do layout) ------- */
.event-card {
  display: grid;
  grid-template-columns: 138px 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(18px);
}
.event-card.in {
  opacity: 1;
  transform: none;
}
.event-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
/* card "pegando fogo" ao ser selecionado */
.event-card.is-igniting {
  border-color: var(--fire-1);
  box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.6), 0 26px 70px -16px rgba(255, 70, 0, 0.75);
  transform: translateY(-6px) scale(1.012);
}
.event-card.is-igniting .event-date {
  filter: brightness(1.35) saturate(1.08);
}

/* bloco da data (esquerda) — preenchido com fogo */
.event-date {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  padding: 22px 10px 18px;
  background: var(--flame);
  background-size: 180% 180%;
  color: #1a0a00;
  text-align: center;
  overflow: hidden;
}
.event-date::before {
  /* leve textura de calor */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 80px at 50% 120%, rgba(255, 255, 255, 0.35), transparent 70%);
  mix-blend-mode: soft-light;
}
.event-card:hover .event-date {
  animation: heat 3s ease infinite;
}
.event-day {
  font-family: var(--font-display);
  font-size: 62px;
  line-height: 0.8;
  font-weight: 400;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}
.event-month {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 4px;
  margin-top: 4px;
}
.event-weekday {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  margin-top: 7px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.22);
}

/* corpo (direita) */
.event-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 0; /* espacamento controlado por margens = hierarquia */
  min-width: 0;
}
.event-top { margin-bottom: 12px; }
.event-name { margin-bottom: 10px; }
.event-meta { margin-bottom: 10px; }
.event-desc { margin-bottom: 14px; }
.event-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 99px;
}
.badge-hot {
  color: #fff;
  background: linear-gradient(135deg, var(--fire-3), var(--fire-4));
  box-shadow: 0 0 0 1px rgba(255, 90, 0, 0.4), 0 0 20px rgba(255, 60, 0, 0.45);
  animation: pulse 1.8s ease-in-out infinite;
}
.badge-type {
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.event-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: 0.5px;
  line-height: 1;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--muted);
  font-size: 14px;
}
.event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.event-meta svg {
  color: var(--fire-2);
  flex: none;
}

.event-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-actions {
  margin-top: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* estado vazio / carregando */
.state {
  text-align: center;
  padding: 70px 20px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.state .big {
  font-size: 40px;
  margin-bottom: 12px;
}
.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--border);
  border-top-color: var(--fire-2);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 0.8s linear infinite;
}

/* ---- skeleton de carregamento (mesma silhueta do card) ---- */
.skel-card {
  display: grid;
  grid-template-columns: 138px 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.skel-card .sk-date {
  background: rgba(255, 255, 255, 0.05);
}
.skel-card .sk-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.sk-line,
.sk-btn,
.skel-card .sk-date {
  position: relative;
  overflow: hidden;
}
.sk-line {
  height: 12px;
  width: 100%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}
.sk-line.sm { width: 38%; }
.sk-line.lg { height: 26px; width: 62%; }
.sk-line.md { width: 72%; }
.sk-btn {
  margin-top: 8px;
  width: 130px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}
.sk-line::after,
.sk-btn::after,
.skel-card .sk-date::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  transform: translateX(-100%);
  animation: skel 1.4s ease-in-out infinite;
}
@keyframes skel {
  to { transform: translateX(100%); }
}
@media (max-width: 620px) {
  .skel-card { grid-template-columns: 96px 1fr; }
}

/* ----------------------------- footer --------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--muted-2);
  font-size: 13px;
  text-align: center;
}
.site-footer .logo {
  justify-content: center;
  margin-bottom: 14px;
}
.site-footer a {
  color: var(--muted);
}
.site-footer a:hover {
  color: var(--fire-2);
}

/* ----------------------------- toast ---------------------------- */
.toast-wrap {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 12px;
  background: rgba(20, 16, 24, 0.95);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  animation: toastIn 0.3s ease, toastOut 0.3s ease forwards 2.6s;
}
.toast .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--flame);
}

/* ----------------------------- animacoes ------------------------ */
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 4px 14px rgba(255, 90, 0, 0.6)); }
  45% { transform: scale(1.06) rotate(-1.5deg); filter: drop-shadow(0 6px 18px rgba(255, 130, 0, 0.85)); }
  70% { transform: scale(0.98) rotate(1deg); }
}
@keyframes shine {
  to { background-position: 200% center; }
}
@keyframes sweep {
  0%, 100% { left: -60%; }
  55%, 100% { left: 130%; }
}
@keyframes heat {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 90, 0, 0.4), 0 0 18px rgba(255, 60, 0, 0.4); }
  50% { box-shadow: 0 0 0 1px rgba(255, 120, 0, 0.6), 0 0 28px rgba(255, 80, 0, 0.7); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(14px); }
}

/* ----------------------------- responsivo ----------------------- */
@media (max-width: 620px) {
  .header-code {
    display: none;
  }
  .event-card {
    grid-template-columns: 96px 1fr;
  }
  .event-day {
    font-size: 44px;
  }
  .event-month {
    font-size: 17px;
    letter-spacing: 2px;
  }
  .event-weekday {
    font-size: 10px;
    padding: 2px 7px;
  }
  .event-body {
    padding: 16px 16px;
  }
  .event-actions .btn {
    flex: 1;
  }
  .hero {
    padding: 60px 0 40px;
  }
}

/* ----------------------------- foco (a11y) ---------------------- */
/* anel de foco padrao da CHAMA em tudo que e interativo */
:where(
  .btn, .chip, .icon-btn, .header-code, .header-admin, .view-site,
  .type-opt, .switch, .search input, .field input, .field textarea,
  .field select, a.logo
):focus-visible {
  outline: 2px solid var(--fire-2);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .event-card {
    opacity: 1;
    transform: none;
  }
}

/* ===== redes sociais no rodape (so aparecem se ativadas no painel) ===== */
.social { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.social-link {
  width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted, #b9b3c7);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform .16s ease, color .16s ease, border-color .16s ease, background .16s ease;
}
.social-link:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: rgba(255, 138, 0, 0.6);
  background: rgba(255, 138, 0, 0.12);
}
.social-link.whatsapp:hover { color: #25d366; border-color: rgba(37, 211, 102, 0.55); background: rgba(37, 211, 102, 0.12); }
.social-link.instagram:hover { color: #ff5a8a; border-color: rgba(255, 90, 138, 0.55); background: rgba(255, 90, 138, 0.12); }
/* redes sociais no hero (abaixo do titulo, centralizadas) */
.social-hero { margin: 4px 0 24px; }
.social-hero .social-link { width: 46px; height: 46px; }
/* ===== modal de inscricao na lista (formulario) ===== */
.rsvp-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(4,3,8,0.72); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.rsvp-backdrop[hidden] { display: none; }
.rsvp-modal { width: 100%; max-width: 420px; background: #15111d; border: 1px solid rgba(255,255,255,0.1); border-radius: 22px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,0.6); animation: rsvpIn .22s ease; }
@keyframes rsvpIn { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.rsvp-modal .modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.rsvp-modal .modal-head h3 { margin: 0; font-family: "Bebas Neue", sans-serif; font-size: 26px; letter-spacing: .5px; color: #fff; }
.rsvp-modal .modal-body { padding: 20px; }
.rsvp-modal .modal-foot { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.rsvp-modal .rsvp-sub { color: var(--muted, #b9b3c7); font-size: 14px; margin: 0 0 16px; }
.rsvp-modal .field { margin-bottom: 14px; }
.rsvp-modal .field[hidden] { display: none; }
.rsvp-modal .field label { display: block; font-size: 13px; color: var(--muted, #b9b3c7); margin-bottom: 6px; }
.rsvp-modal .field input { width: 100%; box-sizing: border-box; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 12px 14px; color: #fff; font-size: 15px; font-family: inherit; }
.rsvp-modal .field input:focus { outline: none; border-color: #ff8a00; box-shadow: 0 0 0 3px rgba(255,138,0,0.18); }
.rsvp-modal .form-error { color: #ff6b6b; font-size: 13px; margin-right: auto; }
.rsvp-modal .icon-btn { background: none; border: none; color: var(--muted, #b9b3c7); cursor: pointer; padding: 6px; border-radius: 8px; display: inline-flex; }
.rsvp-modal .icon-btn:hover { color: #fff; background: rgba(255,255,255,0.06); }
.rsvp-modal .btn-ghost { background: rgba(255,255,255,0.06); color: #fff; border: 1px solid rgba(255,255,255,0.14); }
.rsvp-modal .btn-ghost:hover { background: rgba(255,255,255,0.1); }
.rsvp-success { padding: 38px 22px; text-align: center; }
.rsvp-success .big { font-size: 44px; }
.rsvp-success p { margin-top: 8px; font-size: 16px; color: #fff; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* garante que o atributo [hidden] sempre esconda (alguns .field tem display proprio) */
[hidden] { display: none !important; }