/* ==========================================================================
   IMERSÃO RESPIRE - DESIGN SYSTEM & CSS (Terracotta & Blush Premium Theme)
   Mobile-First, Feminine, High Conversions & Responsive Layout
   ========================================================================== */

:root {
  /* Color Palette extracted directly from event flyers */
  --primary-terracotta: #C85A28;
  --primary-terracotta-hover: #B44E1F;
  --primary-terracotta-light: #F4DFD4;
  --accent-rust: #D45D2D;
  --accent-gold: #D4AF37;
  
  --bg-cream: #FAF5F2;
  --bg-blush: #F8EBE6;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.94);
  
  --text-dark: #381F14;
  --text-medium: #5C382A;
  --text-muted: #8C6A5C;
  --text-light: #FAF0EB;
  
  --border-subtle: rgba(200, 90, 40, 0.18);
  --border-gold: rgba(212, 175, 55, 0.35);
  
  --shadow-soft: 0 10px 30px rgba(56, 31, 20, 0.06);
  --shadow-medium: 0 15px 35px rgba(200, 90, 40, 0.12);
  --shadow-elevated: 0 20px 40px rgba(56, 31, 20, 0.18);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --font-serif: 'Playfair Display', 'Cinzel', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Alex Brush', cursive;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles - STRICT OVERFLOW FIX */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(200, 90, 40, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(248, 235, 230, 0.6) 0%, transparent 50%);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

/* Layout Components */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .section {
    padding: 2.25rem 0;
  }
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.75rem;
  }
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
}

/* URGENCY BADGE */
.leaf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.urgency-badge {
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
  color: #D84315;
  border: 1.5px solid #FFB74D;
  box-shadow: 0 4px 12px rgba(216, 67, 21, 0.15);
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(216, 67, 21, 0.4); }
  70% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(216, 67, 21, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(216, 67, 21, 0); }
}

/* HEADER & MOBILE MENU */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 242, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 576px) {
  .logo-img {
    height: 34px;
  }
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-terracotta);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
}

.nav-links-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-medium);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--primary-terracotta);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 880px) {
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links-container {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100vw;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--primary-terracotta);
    box-shadow: var(--shadow-elevated);
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease-in-out;
  }

  .nav-links-container.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    text-align: center;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: block;
    width: 100%;
    border-bottom: 1px dashed var(--border-subtle);
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

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

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  text-align: center;
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-terracotta) 0%, var(--accent-rust) 100%);
  color: #FFFFFF;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  background: linear-gradient(135deg, var(--accent-rust) 0%, var(--primary-terracotta-hover) 100%);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary-terracotta);
  color: var(--primary-terracotta);
}

.btn-outline:hover {
  background: var(--primary-terracotta-light);
  color: var(--primary-terracotta-hover);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

@media (max-width: 576px) {
  .btn-lg {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    width: 100%;
  }
}

.btn-whatsapp { background: #25D366; color: #FFFFFF; }
.btn-whatsapp:hover { background: #20BA5A; }
.btn-waze { background: #33CCFF; color: #003B52; }
.btn-waze:hover { background: #28B9EB; }
.btn-maps { background: #4285F4; color: #FFFFFF; }
.btn-maps:hover { background: #3367D6; }

/* HERO SECTION */
.hero {
  padding: 2.5rem 0 3.5rem 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1.08;
  color: var(--primary-terracotta);
  margin-bottom: 1rem;
  font-weight: 700;
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.35rem;
  }
}

.hero-headline {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

@media (max-width: 576px) {
  .hero-headline {
    font-size: 1.15rem;
  }
}

.hero-script {
  font-family: var(--font-script);
  font-size: 2.75rem;
  color: var(--accent-rust);
  line-height: 1;
  display: block;
  margin: 0.2rem 0 0.75rem 0;
}

@media (max-width: 576px) {
  .hero-script {
    font-size: 2.2rem;
  }
}

.hero-subheadline {
  font-size: 1.05rem;
  color: var(--text-medium);
  margin-bottom: 1.75rem;
  max-width: 540px;
}

@media (max-width: 880px) {
  .hero-subheadline {
    margin-left: auto;
    margin-right: auto;
  }
}

.countdown-box {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 880px) {
  .countdown-box {
    justify-content: center;
  }
}

.countdown-item {
  background: var(--bg-card);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  min-width: 68px;
}

.countdown-val {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-terracotta);
  line-height: 1;
}

.countdown-lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  border: 4px solid #FFFFFF;
  background: linear-gradient(135deg, var(--bg-blush), var(--primary-terracotta-light));
  max-width: 100%;
}

.hero-image-wrapper img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* INFO STRIP CARDS */
.info-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.info-card {
  background: var(--bg-card);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-soft);
}

.info-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-terracotta-light);
  color: var(--primary-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.info-meta h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.info-meta p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

/* QUOTE SECTION */
.quote-section {
  background: linear-gradient(135deg, var(--bg-blush) 0%, #FAF0EB 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.quote-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-glass);
  padding: 2.5rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-medium);
  position: relative;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: var(--primary-terracotta);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  line-height: 1;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 576px) {
  .quote-text {
    font-size: 1.2rem;
  }
}

.quote-highlight {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--primary-terracotta);
  display: block;
}

/* SPEAKER SECTION - COMPACT & PERFECTLY ALIGNED */
#palestrante {
  padding: 2.25rem 0;
}

.speaker-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 880px) {
  .speaker-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* Container for the image - RESIZED WITHOUT CROPPING */
.speaker-img-standalone {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.speaker-img-standalone img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 440px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(56, 31, 20, 0.15));
  transition: transform 0.4s ease;
}

.speaker-img-standalone:hover img {
  transform: scale(1.02);
}

.speaker-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.speaker-details .leaf-badge {
  margin-bottom: 0.65rem;
}

.speaker-details h3 {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: var(--primary-terracotta);
  margin-bottom: 0.25rem;
}

.speaker-role {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-rust);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
  display: block;
}

.speaker-bio {
  color: var(--text-medium);
  font-size: 0.98rem;
  line-height: 1.55;
  margin-bottom: 1.15rem;
}

.speaker-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 576px) {
  .speaker-features {
    grid-template-columns: 1fr;
  }
}

.speaker-feat-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.speaker-feat-item i {
  color: var(--primary-terracotta);
  font-size: 1.1rem;
}

/* LOCATION CARD */
.location-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-medium);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 880px) {
  .location-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
}

.location-info h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.location-address {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.location-address i {
  font-size: 1.35rem;
  color: var(--primary-terracotta);
  margin-top: 0.2rem;
}

.location-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.map-placeholder {
  width: 100%;
  height: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #EAE3DE;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* TESTIMONIALS SECTION */
.testimonials-section {
  background: var(--bg-blush);
  padding: 3.5rem 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.video-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
}

.video-thumb-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #1A1A1A;
}

.video-thumb-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-info {
  padding: 1rem 1.25rem;
}

.video-info h4 {
  font-size: 1rem;
  color: var(--text-dark);
}

.video-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* MARQUEE CONTINUOUS SCROLL */
.marquee-container {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  padding: 0.5rem 0;
}

.marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.text-testimonial-card {
  width: 320px;
  background: var(--bg-card);
  padding: 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

.testimonial-stars {
  color: var(--accent-gold);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.testimonial-quote {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.45;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-terracotta-light);
  color: var(--primary-terracotta);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.author-info h5 {
  font-size: 0.85rem;
  color: var(--text-dark);
}

.author-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* REGISTRATION FORM SECTION */
.registration-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-elevated);
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 576px) {
  .registration-card {
    padding: 1.5rem 1.1rem;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 576px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

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

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid #E2D7D0;
  background: #FAFAFA;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-terracotta);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(200, 90, 40, 0.12);
}

#dynamicFormFieldsContainer {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#dynamicFormFieldsContainer .form-group {
  grid-column: 1 / -1;
  width: 100%;
}

.summary-box {
  background: var(--bg-blush);
  padding: 1.1rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--primary-terracotta);
  margin: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.summary-box .price {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-terracotta);
}

/* MODALS & OVERLAYS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(56, 31, 20, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--border-subtle);
}

@media (max-width: 576px) {
  .modal-card {
    padding: 1.5rem 1rem;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-cream);
  border: none;
  font-size: 1.1rem;
  color: var(--text-medium);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--primary-terracotta);
  color: #FFFFFF;
}

/* PARTICIPANT PORTAL */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pending { background: #FFF3CD; color: #856404; }
.status-approved { background: #D4EDDA; color: #155724; }
.status-rejected { background: #F8D7DA; color: #721C24; }

.pix-box {
  background: #F9FAFB;
  border: 2px dashed #D1D5DB;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  margin: 1.25rem 0;
}

.qr-code-img {
  width: 160px;
  height: 160px;
  margin: 0 auto 0.85rem auto;
  display: block;
  background: #FFF;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid #EEE;
}

.upload-zone {
  border: 2px dashed var(--primary-terracotta);
  background: var(--bg-blush);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  margin-top: 1rem;
}

.receipt-preview {
  max-height: 220px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-top: 0.75rem;
}

/* ADMIN DASHBOARD */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
}

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

.stat-card {
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.stat-card h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.stat-card .val {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-terracotta);
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #E5DCD6;
  margin-bottom: 1.25rem;
  overflow-x: auto;
}

.tab-btn {
  padding: 0.65rem 1.25rem;
  background: transparent;
  border: none;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--primary-terracotta);
  border-bottom-color: var(--primary-terracotta);
}

/* DATA TABLE */
.data-table-container {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
}

.table-toolbar {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #FAF7F5;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th, .data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #F0E8E3;
}

.data-table th {
  background: #FAF5F2;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

/* BADGE CRACHÁ LAYOUT */
.badge-printable-area {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 16px;
}

.badge-card {
  width: 300px;
  height: 440px;
  background: #FFFFFF;
  border: 2px solid var(--primary-terracotta);
  border-radius: 16px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  box-sizing: border-box;
  background-image: radial-gradient(circle at 50% 0%, #FAF0EB 0%, #FFFFFF 70%);
  page-break-inside: avoid;
}

.badge-header-logo {
  max-height: 44px;
  width: auto;
  margin-bottom: 8px;
}

.badge-event-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--primary-terracotta);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-participant-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--text-dark);
  font-weight: 700;
  margin: 12px 0 4px 0;
  line-height: 1.2;
}

.badge-participant-phone {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.badge-qr-code {
  width: 120px;
  height: 120px;
  border: 1px solid #DDD;
  padding: 4px;
  border-radius: 8px;
  background: #FFF;
}

.badge-footer-meta {
  font-size: 0.75rem;
  color: var(--text-medium);
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  width: 100%;
}

#printableBadgeContainer {
  display: none;
}

@media print {
  body > *:not(#printableBadgeContainer) {
    display: none !important;
  }
  
  #printableBadgeContainer {
    display: block !important;
    visibility: visible !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    background: #FFFFFF !important;
    padding: 20px !important;
    z-index: 999999 !important;
  }

  #printableBadgeContainer * {
    visibility: visible !important;
  }

  .badge-printable-area {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    justify-content: center !important;
  }

  .badge-card {
    border: 2px solid #C85A28 !important;
    box-shadow: none !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    background: #FFFFFF !important;
    margin: 10px !important;
  }
}

/* FOOTER */
.footer {
  background: var(--text-dark);
  color: var(--text-light);
  padding: 3rem 0 2rem 0;
  border-top: 3px solid var(--primary-terracotta);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.footer-brand p {
  color: #D4C3BB;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #A38C82;
}

/* STICKY MOBILE CTA BAR */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: rgba(250, 245, 242, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-subtle);
  padding: 0.65rem 1rem;
  z-index: 90;
}

@media (max-width: 768px) {
  .sticky-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
  body {
    padding-bottom: 65px;
  }
}
