/* =========================================================
   PALETA
   ========================================================= */
:root {
  --bg: #08060d;
  --bg-soft: #100b17;
  --surface: #15101d;
  --surface-2: #1d1426;
  --orange: #ff6a00;
  --orange-2: #ff9a22;
  --purple: #8d35ff;
  --purple-deep: #4e168a;
  --acid: #b7ff3c;
  --blood: #d6293f;
  --text: #fff8e8;
  --muted: #a89ead;
  --line: rgba(255,255,255,.09);
  --shadow: 0 30px 90px rgba(0,0,0,.45);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", sans-serif;
}

body::selection {
  color: #160b1d;
  background: var(--orange);
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.noise {
  position: fixed;
  inset: 0;
  opacity: .035;
  z-index: 9999;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, white 0 1px, transparent 1px),
    radial-gradient(circle at 80% 50%, white 0 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px;
  mix-blend-mode: screen;
}

/* Corrigido: largura contida para não estourar viewport */
.fog {
  position: fixed;
  z-index: 30;
  width: 100%;
  height: 170px;
  left: 0;
  pointer-events: none;
  opacity: .16;
  filter: blur(40px);
  background: linear-gradient(90deg, transparent, #ac8ccd, transparent);
}

.fog-1 {
  bottom: -70px;
  animation: fogMove 15s linear infinite alternate;
}

.fog-2 {
  top: 50%;
  opacity: .06;
  animation: fogMove 22s linear infinite alternate-reverse;
}

@keyframes fogMove {
  to { transform: translateX(40px) scale(1.04); }
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 70% 32%, rgba(141,53,255,.18), transparent 22%),
    radial-gradient(circle at 30% 28%, rgba(255,106,0,.12), transparent 20%),
    linear-gradient(180deg, #08060d 0%, #0c0712 65%, #100915 100%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 240px;
  opacity: .75;
  background:
    linear-gradient(165deg, transparent 50%, #050407 50%) 0 40px / 220px 200px repeat-x;
  filter: drop-shadow(0 -20px 40px #000);
}

.nav {
  position: relative;
  z-index: 10;
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  font-size: .82rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,106,0,.5);
  color: var(--orange);
  transform: rotate(4deg);
}

.nav-links {
  display: flex;
  gap: 30px;
  color: var(--muted);
  font-size: .83rem;
}

.nav-links a {
  transition: .25s ease;
}

.nav-links a:hover {
  color: var(--orange);
}

.moon {
  position: absolute;
  z-index: -2;
  right: 7vw;
  top: 16vh;
  width: clamp(250px, 34vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: .78;
  background:
    radial-gradient(circle at 32% 33%, rgba(0,0,0,.16) 0 5%, transparent 6%),
    radial-gradient(circle at 66% 54%, rgba(0,0,0,.16) 0 8%, transparent 9%),
    radial-gradient(circle at 45% 75%, rgba(0,0,0,.12) 0 4%, transparent 5%),
    radial-gradient(circle at 50% 50%, #ffba55, #ff7a00 68%, #c43b00);
  box-shadow:
    0 0 80px rgba(255,106,0,.19),
    0 0 180px rgba(141,53,255,.12);
  filter: saturate(.9);
}

.moon::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.12);
}

.bat {
  position: absolute;
  z-index: 3;
  opacity: .55;
  filter: grayscale(1) brightness(.2);
  animation: batFly 5s ease-in-out infinite alternate;
}

.bat-1 { right: 43%; top: 24%; font-size: 38px; }
.bat-2 { right: 9%; top: 63%; font-size: 26px; animation-delay: -1.3s; }
.bat-3 { right: 32%; top: 47%; font-size: 18px; animation-delay: -2.6s; }

@keyframes batFly {
  to { transform: translate(30px, -15px) rotate(8deg); }
}

.hero-content {
  position: relative;
  z-index: 5;
  padding-top: 11vh;
  padding-bottom: 180px;
}

.eyebrow,
.kicker {
  color: var(--orange);
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: .74rem;
}

.hero h1 {
  max-width: 790px;
  margin: 16px 0 22px;
  line-height: .88;
  letter-spacing: -.05em;
  word-break: break-word;
}

.hero h1 span {
  display: block;
  color: #f4ebdd;
  font-size: clamp(2.4rem, 7.5vw, 7.5rem);
  font-weight: 900;
}

.hero h1 strong {
  display: block;
  color: var(--orange);
  font-family: "Creepster", cursive;
  font-weight: 400;
  font-size: clamp(3.8rem, 11vw, 11rem);
  letter-spacing: .02em;
  text-shadow: 0 0 30px rgba(255,106,0,.18);
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: 600px;
  margin: 0;
  color: #bdb2c2;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 35px;
}

.btn {
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: white;
  background: transparent;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  max-width: 100%;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), #ff3b00);
  box-shadow: 0 15px 40px rgba(255,76,0,.2);
}

.btn-primary:hover {
  box-shadow: 0 22px 55px rgba(255,76,0,.3);
}

.btn-ghost {
  color: #ddd2e1;
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.025);
}

.btn-danger {
  color: #ff788a;
  border-color: rgba(214,41,63,.38);
}

.btn-small {
  min-height: 42px;
  padding: 0 16px;
  font-size: .67rem;
}

.hero-meta {
  width: min(720px, 100%);
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.hero-meta > div {
  padding: 23px 24px 0 0;
}

.hero-meta span {
  display: block;
  color: #766d79;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .17em;
  margin-bottom: 7px;
}

.hero-meta strong {
  font-size: .92rem;
  font-weight: 600;
}

.scroll-indicator {
  position: absolute;
  z-index: 5;
  right: 28px;
  bottom: 95px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: rotate(90deg);
  color: #655d68;
  font-size: .58rem;
  letter-spacing: .24em;
}

.scroll-indicator i {
  width: 70px;
  height: 1px;
  display: block;
  background: #544c57;
}

.section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.event-section {
  background:
    radial-gradient(circle at 0% 40%, rgba(141,53,255,.12), transparent 28%),
    #0b0810;
}

.section-heading {
  max-width: 750px;
}

.section-heading h2,
.confirm-copy h2,
.table-heading h2 {
  margin: 15px 0 18px;
  font-size: clamp(2rem, 5vw, 5.6rem);
  line-height: .97;
  letter-spacing: -.055em;
  word-break: break-word;
}

.section-heading h2 em {
  color: var(--purple);
  font-family: "Creepster", cursive;
  font-style: normal;
  font-weight: 400;
  letter-spacing: .01em;
}

.section-heading p,
.confirm-copy p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 670px;
}

.event-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.event-card {
  position: relative;
  min-height: 320px;
  padding: 35px;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,.014);
  transition: .3s ease;
}

.event-card:last-child {
  border-right: 0;
}

.event-card:hover,
.event-card.featured {
  background: linear-gradient(180deg, rgba(141,53,255,.09), rgba(255,106,0,.03));
}

.event-card .icon {
  font-size: 38px;
  margin-bottom: 76px;
}

.event-card > span {
  position: absolute;
  right: 25px;
  top: 25px;
  color: #453b4a;
  font-size: 3.5rem;
  font-weight: 900;
}

.event-card h3 {
  margin: 0 0 13px;
  font-size: 1.45rem;
}

.event-card p {
  color: #94899a;
  line-height: 1.7;
  margin: 0;
}

.quote-section {
  padding: 88px 0;
  overflow: hidden;
  background: linear-gradient(135deg, #ff5f00, #af2507);
}

.quote-wrap {
  position: relative;
  overflow: hidden;
}

.quote-wrap p {
  position: relative;
  z-index: 2;
  max-width: 950px;
  margin: 0;
  color: #12070c;
  font-size: clamp(1.8rem, 4vw, 4.7rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -.05em;
  word-break: break-word;
}

.quote-skull {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0,0,0,.09);
  font-size: clamp(140px, 20vw, 290px);
  pointer-events: none;
}

.confirm-section {
  background:
    radial-gradient(circle at 85% 10%, rgba(255,106,0,.09), transparent 25%),
    linear-gradient(180deg, #0b0810, #0d0812);
}

.confirm-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 80px;
  align-items: start;
}

.confirm-copy {
  position: sticky;
  top: 40px;
}

.counter-box {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.counter-box div {
  padding: 24px 18px 24px 0;
}

.counter-box strong {
  display: block;
  color: var(--orange);
  font-size: 2.3rem;
}

.counter-box span {
  color: #756c79;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.rsvp-card {
  padding: 34px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  box-shadow: var(--shadow);
  max-width: 100%;
}

.form-head {
  padding-bottom: 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}

.form-head span {
  color: var(--orange);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.form-head small {
  color: #6b626e;
  font-size: .68rem;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  margin-bottom: 9px;
  color: #b9afbd;
  font-size: .75rem;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  height: 54px;
  padding: 0 15px;
  outline: 0;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 2px;
  color: #f6eef8;
  background: #0b0810;
  transition: .2s ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,106,0,.08);
}

.field input::placeholder {
  color: #514b54;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr .7fr;
  gap: 15px;
}

.status-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.status-option {
  margin: 0 !important;
}

.status-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.status-option span {
  min-height: 46px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #918794;
  font-size: .7rem;
  transition: .2s ease;
  text-align: center;
}

.status-option input:checked + span {
  color: #fff4e8;
  border-color: var(--orange);
  background: rgba(255,106,0,.11);
}

.submit-btn {
  width: 100%;
  margin-top: 5px;
}

.form-message {
  min-height: 22px;
  margin-top: 15px;
  color: var(--acid);
  font-size: .75rem;
  text-align: center;
}

.guest-section {
  background: #08060d;
}

.table-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 35px;
}

.table-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.3rem);
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.search-box {
  height: 42px;
  width: 240px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.10);
  background: #08060d;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
}

.table-shell {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  max-width: 100%;
}

table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: #706777;
  background: #0c0910;
  font-size: .63rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

td {
  color: #bcb2c0;
  font-size: .82rem;
}

tbody tr {
  background: rgba(255,255,255,.012);
  transition: .2s ease;
}

tbody tr:hover {
  background: rgba(141,53,255,.05);
}

.guest-name {
  color: #f6eef8;
  font-weight: 800;
}

.status-badge {
  display: inline-flex;
  min-width: 92px;
  padding: 7px 10px;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  font-size: .65rem;
  font-weight: 800;
}

.status-confirmed {
  color: #ffd6bc;
  background: rgba(255,106,0,.13);
  border: 1px solid rgba(255,106,0,.28);
}

.status-maybe {
  color: #dcbcff;
  background: rgba(141,53,255,.13);
  border: 1px solid rgba(141,53,255,.28);
}

.status-declined {
  color: #ffb1ba;
  background: rgba(214,41,63,.12);
  border: 1px solid rgba(214,41,63,.28);
}

.delete-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(214,41,63,.2);
  color: #f5687a;
  background: transparent;
}

.delete-btn:hover {
  background: rgba(214,41,63,.1);
}

.empty-state {
  min-height: 260px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #746a77;
  text-align: center;
}

.empty-state div {
  font-size: 45px;
  margin-bottom: 10px;
}

.empty-state strong {
  color: #a69aa9;
  margin-bottom: 6px;
}

.empty-state span {
  font-size: .8rem;
}

.final-cta {
  padding: 115px 0;
  text-align: center;
  background:
    radial-gradient(circle at 50% 100%, rgba(141,53,255,.22), transparent 35%),
    #0c0810;
  overflow: hidden;
}

.final-cta span {
  color: var(--orange);
  font-weight: 800;
  letter-spacing: .25em;
  font-size: .72rem;
}

.final-cta h2 {
  max-width: 850px;
  margin: 17px auto 30px;
  font-family: "Creepster", cursive;
  color: #eee4f0;
  font-size: clamp(2.8rem, 7vw, 7.8rem);
  font-weight: 400;
  line-height: .92;
  word-break: break-word;
}

footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: #060408;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  color: #655c67;
  font-size: .72rem;
}

.footer-wrap div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-wrap strong {
  color: #a89fac;
  letter-spacing: .1em;
}

.toast {
  position: fixed;
  z-index: 10000;
  right: 20px;
  bottom: 20px;
  max-width: min(320px, calc(100vw - 40px));
  padding: 14px 18px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  color: #fff7ee;
  border: 1px solid rgba(255,106,0,.3);
  background: #17101d;
  box-shadow: var(--shadow);
  font-size: .78rem;
  transition: .3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .moon {
    right: -60px;
    top: 18vh;
    opacity: .35;
    width: clamp(200px, 45vw, 360px);
  }

  .hero-content {
    padding-top: 10vh;
  }

  .hero-meta,
  .event-grid,
  .confirm-layout {
    grid-template-columns: 1fr;
  }

  .event-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .event-card:last-child {
    border-bottom: 0;
  }

  .confirm-copy {
    position: static;
  }

  .table-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .table-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .nav {
    min-height: 72px;
  }

  .brand {
    font-size: .68rem;
  }

  .hero-content {
    padding-bottom: 90px;
  }

  .hero-meta > div {
    border-bottom: 1px solid var(--line);
    padding-bottom: 15px;
    padding-right: 0;
  }

  .scroll-indicator {
    display: none;
  }

  .section {
    padding: 70px 0;
  }

  .event-card {
    min-height: auto;
    padding: 24px;
  }

  .event-card .icon {
    margin-bottom: 30px;
  }

  .confirm-layout {
    gap: 35px;
  }

  .rsvp-card {
    padding: 18px;
  }

  .form-row,
  .status-options,
  .counter-box {
    grid-template-columns: 1fr;
  }

  .form-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .counter-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .counter-box div {
    padding: 15px 0;
  }

  .counter-box strong {
    font-size: 1.5rem;
  }

  .search-box {
    width: 100%;
  }

  .table-actions .btn {
    flex: 1;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-wrap {
    align-items: flex-start;
    flex-direction: column;
  }
}