:root {
  --crimson: #8c031c;
  --rose: #f2486a;
  --olive: #718c49;
  --orange: #f27405;
  --coral: #f26668;
  --ink: #311f24;
  --muted: #725f64;
  --paper: #fff9f5;
  --surface: #ffffff;
  --line: rgba(140, 3, 28, 0.13);
  --shadow: 0 24px 70px rgba(80, 33, 30, 0.13);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 7% 12%, rgba(242, 102, 104, 0.18), transparent 26rem),
    radial-gradient(circle at 91% 7%, rgba(113, 140, 73, 0.18), transparent 24rem),
    linear-gradient(180deg, #fff7f2 0%, #fffdf9 46%, #fff6ef 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(140, 3, 28, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(140, 3, 28, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.paint-orbit {
  position: fixed;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  border-radius: 38% 62% 47% 53%;
  filter: blur(4px);
  opacity: 0.2;
  animation: floatPaint 10s ease-in-out infinite alternate;
}

.paint-orbit-one {
  left: -7rem;
  top: 11rem;
  background: var(--rose);
}

.paint-orbit-two {
  right: -8rem;
  bottom: 5rem;
  background: var(--olive);
  animation-delay: -3s;
}

.hero,
.section,
.final-message,
.dashboard {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 92vh;
  padding: 24px 0 56px;
}

.topbar,
.admin-header,
.admin-actions,
.hero-actions,
.included,
.filters {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 20px;
}

.brand,
.admin-link {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-block;
  width: 34px;
  height: 34px;
  border-radius: 48% 52% 42% 58%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.65), transparent 45%),
    linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 8px 18px rgba(242, 116, 5, 0.26);
}

.admin-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--crimson);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.66);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding-top: clamp(64px, 9vw, 112px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--crimson);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  max-width: 820px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  font-size: 1.5rem;
}

.tagline {
  margin: 18px 0;
  color: var(--orange);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.55rem, 3.8vw, 3.1rem);
  font-weight: 700;
}

.intro {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.8;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--crimson);
  color: white;
  box-shadow: 0 16px 34px rgba(140, 3, 28, 0.24);
}

.button.ghost,
.button.small {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--crimson);
}

.button.small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.86rem;
}

.button.wide,
.card-button,
.whatsapp-button {
  width: 100%;
}

.button.danger {
  color: #a02121;
}

.card-button {
  background: var(--orange);
  color: white;
  box-shadow: 0 14px 26px rgba(242, 116, 5, 0.24);
}

.whatsapp-button {
  background: var(--olive);
  color: white;
  box-shadow: 0 14px 26px rgba(113, 140, 73, 0.2);
}

.art-panel {
  min-height: 420px;
  display: grid;
  place-items: center;
}

.workshop-photo-card {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 0.86;
  margin: 0;
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--surface);
}

.workshop-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.photo-caption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  padding: 18px 20px;
  background: rgba(255, 249, 245, 0.82);
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.photo-caption span,
.photo-caption strong {
  display: block;
}

.photo-caption span {
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 700;
}

.photo-caption strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.55rem;
}

.canvas-card {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 0.86;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 242, 0.7));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.canvas-card::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(140, 3, 28, 0.13);
  border-radius: 22px;
}

.stroke {
  position: absolute;
  width: 82%;
  height: 72px;
  left: 9%;
  border-radius: 51% 49% 56% 44%;
  transform: rotate(-5deg);
  opacity: 0.9;
}

.stroke-coral {
  top: 18%;
  background: var(--coral);
}

.stroke-orange {
  top: 36%;
  background: var(--orange);
  transform: rotate(4deg);
}

.stroke-olive {
  top: 54%;
  background: var(--olive);
}

.stroke-rose {
  top: 72%;
  background: var(--rose);
  transform: rotate(2deg);
}

.canvas-inner {
  position: absolute;
  inset: auto 32px 32px;
  border-radius: 20px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(10px);
}

.canvas-inner p,
.canvas-inner strong {
  display: block;
}

.canvas-inner p {
  margin: 0 0 8px;
  color: var(--muted);
}

.canvas-inner strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.65rem;
}

.section {
  padding: 72px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.info-item,
.form-shell,
.waitlist-shell,
.payment-box,
.login-card,
.stat-card,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 42px rgba(80, 33, 30, 0.08);
}

.info-item {
  min-height: 178px;
  padding: 22px;
}

.icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: rgba(242, 116, 5, 0.12);
  color: var(--orange);
  font-size: 1.25rem;
}

.info-item p {
  margin: 0 0 8px;
  color: var(--muted);
}

.info-item strong {
  display: block;
  line-height: 1.35;
}

.info-item small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.included {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.included span {
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(113, 140, 73, 0.12);
  color: #4d6d28;
  font-weight: 800;
}

.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 18px;
  align-items: start;
}

.form-shell,
.waitlist-shell,
.payment-box,
.login-card,
.admin-panel {
  padding: clamp(22px, 4vw, 34px);
}

form,
.payment-box,
.payment-method {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input:focus,
select:focus {
  border-color: rgba(242, 116, 5, 0.7);
  box-shadow: 0 0 0 4px rgba(242, 116, 5, 0.12);
}

.payment-box h2 {
  font-size: 1.7rem;
}

.payment-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.payment-method {
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(242, 72, 106, 0.09), rgba(242, 116, 5, 0.1));
}

.method-label {
  color: var(--crimson);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.payment-warning {
  border-left: 4px solid var(--orange);
  padding-left: 14px;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.form-message.success {
  color: #4d6d28;
}

.form-message.error {
  color: #a02121;
}

.closed-notice {
  margin-bottom: 22px;
}

.closed-notice p {
  color: var(--muted);
  line-height: 1.65;
}

.hidden {
  display: none !important;
}

.final-message {
  margin-bottom: 70px;
  border-radius: 24px;
  padding: clamp(28px, 5vw, 48px);
  background:
    linear-gradient(135deg, rgba(242, 116, 5, 0.16), rgba(242, 72, 106, 0.12)),
    rgba(255, 255, 255, 0.78);
  text-align: center;
}

.final-message p {
  margin: 0;
  color: var(--crimson);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.55rem, 4vw, 3rem);
  font-weight: 700;
}

.admin-main {
  min-height: 100vh;
}

.login-view {
  min-height: 100vh;
  display: grid;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 28px 16px;
  place-items: center;
}

.login-card {
  width: 100%;
}

.login-card h1 {
  margin-top: 18px;
  font-size: clamp(2rem, 8vw, 3.3rem);
}

.login-card p {
  color: var(--muted);
  line-height: 1.6;
}

.dashboard {
  padding: 34px 0 64px;
}

.admin-header {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-header h1 {
  font-size: clamp(2.2rem, 5vw, 4.25rem);
}

.admin-actions {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  min-height: 132px;
  padding: 20px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-top: 18px;
  color: var(--crimson);
  font-family: Fraunces, Georgia, serif;
  font-size: 2.6rem;
}

.filters {
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.filters label:first-child {
  flex: 1;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 10px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--crimson);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.status-confirmado {
  background: rgba(113, 140, 73, 0.15);
  color: #4d6d28;
}

.status-aguardando-pagamento {
  background: rgba(242, 116, 5, 0.16);
  color: #9b4a00;
}

.status-cancelado {
  background: rgba(140, 3, 28, 0.11);
  color: var(--crimson);
}

.status-lista-de-espera {
  background: rgba(242, 72, 106, 0.13);
  color: #b52845;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-actions .button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.78rem;
}

@keyframes floatPaint {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(18px, -24px, 0) rotate(12deg);
  }
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .signup-layout {
    grid-template-columns: 1fr;
  }

  .art-panel {
    min-height: auto;
  }

  .info-grid,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-header,
  .filters {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .hero,
  .section,
  .final-message,
  .dashboard {
    width: min(100% - 20px, 1120px);
  }

  .topbar {
    align-items: flex-start;
  }

  .brand {
    max-width: 220px;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.6rem);
  }

  .info-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .included,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .admin-actions .button {
    width: 100%;
  }

  .canvas-card {
    aspect-ratio: 0.92;
  }

  .workshop-photo-card {
    aspect-ratio: 0.92;
  }
}
