:root {
  --brand-navy: #102852;
  --brand-sky: #d9e4ff;
  --brand-gold: #f3b34c;
  --brand-gold-dark: #c98a26;
  --success-green: #10b981;
  --success-green-light: #d1fae5;
  --success-green-dark: #059669;
  --success-green-bg: #ecfdf5;
  --surface: #ffffff;
  --surface-2: #f7f7fc;
  --text-dark: #1c2333;
  --text-muted: rgba(28, 35, 51, 0.72);
  --border: rgba(16, 40, 82, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
}

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

body {
  font-family: "Inter", system-ui, sans-serif;
  background: linear-gradient(180deg, #eff3ff 0%, #fdf5e6 45%, #fefbf4 100%);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-navy);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
}

.container {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

header.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 4.5rem) 0;
}

.hero__layer {
  position: absolute;
  inset: -18% -40% -10% -40%;
  background: radial-gradient(120% 120% at 50% -20%, rgba(16, 40, 82, 0.14) 0%, rgba(16, 40, 82, 0.02) 80%, transparent 100%);
  z-index: 0;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero__content {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
  text-align: center;
  justify-items: center;
}



.hero__title {
  font-size: clamp(2.8rem, 6vw, 3.9rem);
  letter-spacing: -0.03em;
}

.hero__excerpt {
  max-width: 48ch;
  color: var(--text-muted);
}

.hero__quick-info {
  display: grid;
  gap: 1rem;
  width: min(520px, 100%);
}

.quick-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.3rem;
  display: grid;
  gap: 0.35rem;
}

.quick-card__label {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(16, 40, 82, 0.55);
  font-weight: 600;
}

.quick-card__value {
  font-size: 1.1rem;
  color: var(--brand-navy);
  font-weight: 600;
}

.quick-card__detail {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero__poster {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 239, 209, 0.88));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16, 40, 82, 0.14);
  padding: clamp(0.9rem, 2vw, 1.4rem);
  width: min(380px, 92vw);
  margin: 0 auto;
  display: grid;
}

.hero__poster img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 8px);
  display: block;
}

.section {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(16, 40, 82, 0.55);
  font-weight: 600;
}

.section__title {
  margin: 0.6rem 0 1.2rem;
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  color: var(--brand-navy);
}

.section--about {
  background: rgba(255, 255, 255, 0.92);
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.split__text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.bullet-list {
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-dark);
}

.bullet-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: var(--brand-gold);
  font-size: 0.85rem;
}

.info-cards {
  display: grid;
  gap: 1.5rem;
}

.info-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 40, 82, 0.15);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: grid;
  gap: 1rem;
  box-shadow:
    0 20px 40px -5px rgba(16, 40, 82, 0.15),
    0 10px 20px -5px rgba(16, 40, 82, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 40, 82, 0.06);
}

.info-card h3 {
  font-size: 1.35rem;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card__note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  padding: 1.5rem 2rem;
  background: var(--surface-2);
  border-radius: 16px;
  align-items: center;
}

.price-row>div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0 2rem;
}

.price-row>div:first-child {
  padding-left: 0;
  border-right: 1px solid rgba(16, 40, 82, 0.15);
}

.price-row>div:last-child {
  padding-right: 0;
}

.price-row__label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: rgba(16, 40, 82, 0.65);
  font-weight: 700;
}

.price-row__value {
  font-size: 2.2rem;
  color: var(--brand-navy);
  line-height: 1;
  font-weight: 700;
}

.section--highlights {
  background: var(--surface-2);
}

.highlights-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.highlight-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 40, 82, 0.15);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  display: grid;
  gap: 0.6rem;
  color: var(--text-muted);
  box-shadow:
    0 20px 40px -5px rgba(16, 40, 82, 0.15),
    0 10px 20px -5px rgba(16, 40, 82, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 40, 82, 0.06);
}

.highlight-card h3 {
  margin: 0;
  color: var(--brand-navy);
}

.section--form {
  background: rgba(217, 228, 255, 0.35);
}

.form-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: 2rem;
}

.form-header p {
  color: var(--text-muted);
  max-width: 60ch;
}

.form {
  display: grid;
  gap: 1.8rem;
}

.form-group {
  border: none;
  display: grid;
  gap: 1.2rem;
}

.form-group legend {
  font-weight: 600;
  color: var(--brand-navy);
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(16, 40, 82, 0.16);
  background: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
  color: var(--text-dark);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 4px rgba(16, 40, 82, 0.15);
  outline: none;
}

.field textarea {
  min-height: 110px;
}

.helper-text {
  font-size: 0.78rem;
  color: rgba(16, 40, 82, 0.56);
}

.error-message {
  font-size: 0.78rem;
  color: #b54708;
  display: none;
}

.error-message.is-visible {
  display: block;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid--two {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.form-footer {
  display: grid;
  gap: 0.9rem;
  text-align: center;
}

.submit-btn {
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.8rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-gold-dark));
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.section--faq {
  background: rgba(255, 255, 255, 0.9);
}

.faq-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.faq-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.faq-list li {
  background: #f6f7fb;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  display: grid;
  gap: 0.35rem;
  color: var(--text-muted);
}

.faq-list strong {
  color: var(--brand-navy);
}

.footer {
  background: #0e1c35;
  color: rgba(255, 255, 255, 0.8);
  padding: 2.5rem 0;
  text-align: center;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.footer__inner {
  text-align: center;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  justify-items: center;
  width: 100%;
}

.footer__inner p {
  margin: 0;
  text-align: center;
  width: 100%;
}

.footer-author {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.author-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease, transform 0.2s ease;
  font-weight: 500;
}

.author-link:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.author-link svg {
  width: 16px;
  height: 16px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.author-link:hover svg {
  opacity: 1;
}

.toast {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-navy);
  color: #fff;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-weight: 500;
  z-index: 20;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -0.4rem);
}

@media (max-width: 600px) {
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__quick-info {
    width: 100%;
  }

  .section {
    padding: 3rem 0;
  }

  .split {
    text-align: center;
    gap: 2.5rem;
  }

  .split__text {
    text-align: center;
  }

  .bullet-list {
    text-align: left;
    max-width: 320px;
    margin: 1rem auto 0;
  }

  .info-cards {
    text-align: left;
    gap: 1.5rem;
  }

  .form-wrapper {
    padding: 1.5rem;
  }

  .faq-grid {
    text-align: center;
  }

  .price-row {
    gap: 0;
    padding: 1.2rem;
  }

  .price-row>div {
    padding: 0 1rem;
    border-right: 1px solid rgba(16, 40, 82, 0.15);
  }

  .price-row>div:last-child {
    border-right: none;
    padding-right: 0;
  }

  .price-row>div:first-child {
    padding-left: 0;
  }

  .footer {
    padding: 2rem 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  .footer .container,
  .footer__inner.container,
  footer .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box;
  }

  .footer__inner {
    text-align: center;
    justify-items: center;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
  }

  .footer__inner p {
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    word-wrap: break-word;
    box-sizing: border-box;
  }

  .footer .container,
  .footer__inner.container,
  footer .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  .footer__inner {
    text-align: center;
    justify-items: center;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
  }

  .footer__inner p {
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    word-wrap: break-word;
    box-sizing: border-box;
  }
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .hero__content {
    text-align: left;
    justify-items: flex-start;
  }

  .hero__quick-info {
    width: 100%;
  }

  .hero__poster {
    width: min(820px, 100%);
  }

  .split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .info-cards {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .highlights-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .faq-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    text-align: left;
  }
}

/* New Styles for Registration Flow */

.section--cta {
  background: var(--surface-2);
  text-align: center;
}

.cta-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--border);
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(16, 40, 82, 0.05);
}

.cta-box--closed {
  opacity: 0.8;
  background: var(--surface-2);
}

.cta-box__icon {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.inscricoes-encerradas {
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.inscricoes-encerradas__icon {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.inscricoes-encerradas__message {
  font-size: 1.125rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.inscricoes-encerradas__detail {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero--small {
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.hero--small .hero__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.family-config {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--brand-navy);
  color: var(--brand-navy);
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  justify-self: start;
}

.btn-secondary:hover {
  background: var(--brand-navy);
  color: #fff;
}

.dynamic-fields-container {
  display: grid;
  gap: 1.5rem;
}

.person-card {
  /* Inherits .info-card styles but ensures specific spacing */
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .btn-secondary {
    width: 100%;
  }
}

/* Success Page Styles */
.section--success {
  background: linear-gradient(180deg, var(--success-green-bg) 0%, rgba(236, 253, 245, 0.6) 100%);
  min-height: 60vh;
  display: grid;
  place-items: center;
}

.success-card {
  background: linear-gradient(135deg, #ffffff 0%, var(--success-green-light) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border: 2px solid var(--success-green);
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.2), 0 10px 25px rgba(16, 185, 129, 0.1);
  display: grid;
  gap: 2rem;
}

.success-header {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--success-green-light);
}

.success-icon {
  font-size: 5rem;
  margin: 0 auto;
  color: var(--success-green);
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--success-green-light);
  border-radius: 50%;
  font-weight: 700;
  border: 3px solid var(--success-green);
  line-height: 1;
  text-align: center;
}

.success-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--success-green-dark);
  margin: 0;
  letter-spacing: -0.02em;
}

.success-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  margin: 0;
}

.payment-section {
  display: grid;
  gap: 1.5rem;
}

.payment-section h2 {
  font-size: 1.5rem;
  color: var(--brand-navy);
  margin: 0;
  font-weight: 600;
}

.payment-section > p {
  color: var(--text-muted);
  margin: 0;
}

.total-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--success-green-dark);
  margin: 1.5rem 0;
}

.pix-container {
  background: linear-gradient(135deg, #ffffff 0%, var(--success-green-light) 100%);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  border: 1px solid var(--success-green);
}

.pix-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--success-green-dark);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pix-box {
  display: flex;
  gap: 0.5rem;
}

.pix-box input {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 1rem;
  color: var(--text-body);
}

.btn-copy {
  background: var(--success-green);
  color: #fff;
  border: none;
  padding: 0 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-copy:hover {
  background: var(--success-green-dark);
  transform: translateY(-1px);
}

.success-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: white;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  margin-top: 0.5rem;
}

.btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  color: white;
}

.btn-whatsapp:active {
  transform: translateY(0);
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.qr-section {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 2px solid var(--success-green-light);
  text-align: center;
}

.qr-section h2 {
  font-size: 1.5rem;
  color: var(--brand-navy);
  margin: 0;
  font-weight: 600;
}

.qr-section > p {
  color: var(--text-muted);
  margin: 0;
}

.qr-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 2px solid var(--success-green-light);
  margin: 1rem 0;
}

.qr-container canvas {
  max-width: 100%;
  height: auto;
}

.qr-uuid {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: monospace;
  margin: 0.5rem 0 0;
  word-break: break-all;
}

.btn-download {
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-gold-dark));
  color: #fff;
  border: none;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 1.5rem;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(16, 40, 82, 0.2);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 40, 82, 0.3);
}

.btn-download:active {
  transform: translateY(0);
}

.btn-download:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 600px) {
  .qr-container {
    padding: 1rem;
  }
  
  .qr-container canvas {
    width: 250px;
    height: 250px;
  }
}

/* Admin Dropdown */
.admin-dropdown {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
}

.admin-dropdown__trigger {
  background: rgba(16, 40, 82, 0.1);
  border: 1px solid rgba(16, 40, 82, 0.2);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: rgba(16, 40, 82, 0.6);
  padding: 0;
}

.admin-dropdown__trigger:hover {
  background: rgba(16, 40, 82, 0.15);
  border-color: rgba(16, 40, 82, 0.3);
  color: rgba(16, 40, 82, 0.8);
}

.admin-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: white;
  border: 1px solid rgba(16, 40, 82, 0.15);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  overflow: hidden;
}

.admin-dropdown:hover .admin-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.admin-dropdown__item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.admin-dropdown__item:hover {
  background: rgba(16, 40, 82, 0.05);
  text-decoration: none;
}

/* Admin Pages */
.admin-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(180deg, #eff3ff 0%, #fdf5e6 45%, #fefbf4 100%);
}

.admin-login-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.admin-title {
  font-size: 2rem;
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
  text-align: center;
}

.admin-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.admin-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: grid;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.form-group input {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand-navy);
}

.admin-submit-btn {
  background: var(--brand-navy);
  color: white;
  border: none;
  padding: 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.admin-submit-btn:hover {
  background: #0a1f3f;
  transform: translateY(-1px);
}

.admin-error {
  background: #fee2e2;
  color: #991b1b;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
}

.admin-back-link {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.admin-back-link:hover {
  color: var(--brand-navy);
  text-decoration: underline;
}

/* Dashboard */
.dashboard-main {
  min-height: 100vh;
  padding: 2rem 1rem;
  background: linear-gradient(180deg, #eff3ff 0%, #fdf5e6 45%, #fefbf4 100%);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-title {
  font-size: 2rem;
  color: var(--brand-navy);
  margin-bottom: 0.25rem;
}

.dashboard-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.dashboard-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-refresh,
.btn-logout {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-refresh {
  background: var(--brand-navy);
  color: white;
}

.btn-refresh:hover {
  background: #0a1f3f;
  transform: translateY(-1px);
}

.btn-logout {
  background: #dc2626;
  color: white;
}

.btn-logout:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.dashboard-table-container {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-input,
.filter-select {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  flex: 1;
  min-width: 200px;
}

.search-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--brand-navy);
}

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

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.dashboard-table thead {
  background: var(--brand-navy);
  color: white;
}

.dashboard-table th {
  padding: 1rem 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.dashboard-table tbody tr:hover {
  background: rgba(16, 40, 82, 0.03);
}

.dashboard-table tbody tr.adulto {
  background: rgba(16, 40, 82, 0.02);
}

.dashboard-table td {
  padding: 0.75rem;
  color: var(--text-dark);
}

.uuid-cell {
  font-family: monospace;
  font-size: 0.8rem;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-success {
  background: var(--success-green-light);
  color: var(--success-green-dark);
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.loading,
.empty,
.error {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.error {
  color: #dc2626;
}

@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
  }
  
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  
  .dashboard-table {
    font-size: 0.8rem;
  }
  
  .dashboard-table th,
  .dashboard-table td {
    padding: 0.5rem 0.25rem;
  }
}

/* Admin Menu Dropdown */
.admin-menu-dropdown {
  position: relative;
}

.admin-menu-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-dark);
  transition: all 0.2s;
}

.admin-menu-btn:hover {
  background: rgba(16, 40, 82, 0.05);
}

.admin-menu-content {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  overflow: hidden;
  z-index: 100;
}

.admin-menu-dropdown:hover .admin-menu-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.admin-menu-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.admin-menu-item:hover {
  background: rgba(16, 40, 82, 0.05);
  text-decoration: none;
}

/* Scanner Page */
.scanner-main {
  min-height: 100vh;
  padding: 2rem 1rem;
  background: linear-gradient(180deg, #eff3ff 0%, #fdf5e6 45%, #fefbf4 100%);
}

.scanner-header {
  margin-bottom: 2rem;
}

.scanner-back {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.scanner-back:hover {
  color: var(--brand-navy);
  text-decoration: underline;
}

.scanner-title {
  font-size: 2rem;
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
}

.scanner-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.scanner-container {
  margin-bottom: 1.5rem;
}

.qr-reader {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 1rem;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.scanner-status {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.scanner-status .scanning {
  color: var(--brand-navy);
  font-weight: 600;
}

.scanner-status .success {
  color: var(--success-green);
  font-weight: 600;
}

.scanner-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-start,
.btn-stop {
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-start {
  background: var(--brand-navy);
  color: white;
}

.btn-start:hover {
  background: #0a1f3f;
  transform: translateY(-1px);
}

.btn-stop {
  background: #dc2626;
  color: white;
}

.btn-stop:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.scan-result {
  border: 2px solid var(--success-green-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  background: var(--success-green-bg);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.result-header h3 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 1.25rem;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
}

.result-content {
  display: grid;
  gap: 1rem;
}

.result-uuid {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text-dark);
  padding: 0.75rem;
  background: white;
  border-radius: 6px;
  word-break: break-all;
}

.result-inscricoes {
  padding: 1rem;
  background: white;
  border-radius: 6px;
}

.inscricoes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.inscricoes-list li {
  padding: 0.5rem;
  background: rgba(16, 40, 82, 0.03);
  border-radius: 4px;
}

.badge-confirmed {
  display: inline-block;
  background: var(--success-green-light);
  color: var(--success-green-dark);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.already-confirmed {
  background: var(--success-green-light);
  color: var(--success-green-dark);
  padding: 0.75rem;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 1rem;
}

.btn-confirm {
  background: var(--success-green);
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-confirm:hover {
  background: var(--success-green-dark);
  transform: translateY(-1px);
}

.scanner-message {
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
}

.scanner-message.success {
  background: var(--success-green-light);
  color: var(--success-green-dark);
}

.scanner-message.error {
  background: #fee2e2;
  color: #991b1b;
}

.loading,
.info {
  text-align: center;
  color: var(--text-muted);
  margin: 0.5rem 0;
}

@media (max-width: 600px) {
  .scanner-card {
    padding: 1.5rem;
  }
  
  .qr-reader {
    max-width: 100%;
  }
}