/* ==========================================================================
   RIFA SOLIDÁRIA - AJUDE MATHEUS
   Estilos Principais (UI/UX Responsivo, Moderno e Acolhedor)
   ========================================================================== */

:root {
  --primary: #059669;
  --primary-hover: #047857;
  --primary-light: #d1fae5;
  --primary-glow: rgba(16, 185, 129, 0.25);
  
  --gold: #f59e0b;
  --gold-hover: #d97706;
  --gold-light: #fef3c7;
  --gold-glow: rgba(245, 158, 11, 0.3);
  
  --accent-blue: #2563eb;
  --accent-blue-light: #dbeafe;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-alt: #f1f5f9;
  --bg-dark: #0f172a;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --border-color: #e2e8f0;
  --border-focus: #10b981;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.12), 0 10px 10px -5px rgba(0,0,0,0.04);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.text-green { color: var(--primary); }
.text-gold { color: var(--gold); }
.bold { font-weight: 700; }

/* Top Announcement Bar */
.top-bar {
  background: linear-gradient(90deg, #065f46 0%, #059669 50%, #047857 100%);
  color: var(--text-white);
  padding: 9px 15px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
  z-index: 100;
}

.top-bar .badge-pulse {
  display: inline-block;
  width: 9px;
  height: 9px;
  background-color: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* Header & Nav */
.main-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 90;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
}

.brand-text span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-nav-outline:hover {
  background: var(--bg-card-alt);
  border-color: var(--text-muted);
}

.btn-nav-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--primary-glow);
  transition: var(--transition);
}

.btn-nav-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Hero Section */
.hero-section {
  padding: 40px 0 20px;
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-light);
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.15;
  color: #0f172a;
  margin-bottom: 14px;
}

.hero-title span {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 30px;
}

/* Campaign Goal & Prize Card */
.campaign-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 28px;
  margin-bottom: 35px;
  position: relative;
  overflow: hidden;
}

.campaign-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #10b981 100%);
}

.campaign-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.stat-box {
  background: var(--bg-card-alt);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.stat-box.prize-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
}

.stat-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-box.prize-box .stat-label {
  color: #b45309;
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: #0f172a;
}

.stat-box.prize-box .stat-value {
  color: #d97706;
}

.stat-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Progress Bar */
.progress-container {
  margin-top: 15px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.progress-track {
  height: 18px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%, transparent);
  background-size: 20px 20px;
  animation: progress-stripes 2s linear infinite;
}

@keyframes progress-stripes {
  0% { background-position: 0 0; }
  100% { background-position: 40px 0; }
}

.progress-subinfo {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* CTA Buttons inside Hero */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.btn-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 25px var(--primary-glow);
  transition: var(--transition);
}

.btn-cta-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.4);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-cta-secondary:hover {
  background: var(--bg-card-alt);
  border-color: var(--text-muted);
}

/* Section Styling */
.section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 40px;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Story Section */
.story-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.story-content {
  padding: 40px;
}

.story-lead {
  font-size: 1.2rem;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 20px;
  line-height: 1.5;
}

.story-text p {
  margin-bottom: 16px;
  color: #334155;
  font-size: 0.98rem;
}

.urgent-needs-box {
  background: #f8fafc;
  border-left: 4px solid var(--primary);
  padding: 18px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
}

.urgent-needs-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.urgent-list {
  list-style: none;
}

.urgent-list li {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.urgent-list li i {
  color: var(--primary);
  font-size: 0.85rem;
}

/* Story Media Column */
.story-media {
  background: #0f172a;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.video-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-xl);
  background: #000;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.video-container video {
  width: 100%;
  max-height: 380px;
  display: block;
  object-fit: cover;
}

.video-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.2);
}

.images-mini-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gallery-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 140px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-card:hover {
  transform: scale(1.03);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
  color: #ffffff;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Steps / Como Funciona */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.step-number {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.step-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Raffle Grid Section */
.raffle-section {
  background: #f1f5f9;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.raffle-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.quick-buy-row {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.quick-buy-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quick-buy-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-quick-cota {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-quick-cota:hover {
  border-color: var(--primary);
  background: #ecfdf5;
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-quick-cota.popular {
  border-color: #10b981;
  background: #ecfdf5;
  color: #065f46;
  position: relative;
}

.badge-popular {
  background: var(--gold);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Filter & Search Bar */
.filter-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-tab {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.search-box {
  position: relative;
  min-width: 220px;
}

.search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.85rem;
}

.search-input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Status Legend */
.raffle-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 16px 0 24px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.legend-dot.disponivel { background-color: #ffffff; border: 2px solid #cbd5e1; }
.legend-dot.selecionado { background-color: #2563eb; }
.legend-dot.reservado { background-color: #f59e0b; }
.legend-dot.pago { background-color: #10b981; }

/* Grid of Numbers */
.numbers-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 8px;
  max-height: 540px;
  overflow-y: auto;
  padding: 4px;
}

.number-btn {
  height: 48px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  user-select: none;
}

.number-btn:hover:not(.disabled) {
  border-color: var(--primary);
  background: #ecfdf5;
  color: var(--primary);
  transform: scale(1.05);
}

.number-btn.selected {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
  transform: scale(1.06);
}

.number-btn.reservado {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border-color: #fde68a !important;
  cursor: not-allowed;
  opacity: 0.85;
}

.number-btn.pago {
  background: #dcfce7 !important;
  color: #15803d !important;
  border-color: #86efac !important;
  cursor: not-allowed;
  text-decoration: line-through;
  opacity: 0.85;
}

/* Floating Bottom Bar (Cart) */
.floating-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 16px 20px;
  box-shadow: 0 -10px 25px rgba(0,0,0,0.25);
  z-index: 1000;
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-cart-bar.active {
  transform: translateY(0);
}

.cart-bar-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cart-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-count-badge {
  background: #2563eb;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 800;
}

.cart-details {
  line-height: 1.2;
}

.cart-cotas-list {
  font-size: 0.82rem;
  color: #94a3b8;
  max-width: 450px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-total {
  font-size: 1.25rem;
  font-weight: 900;
  color: #34d399;
}

.cart-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-clear-selection {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #334155;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-clear-selection:hover {
  color: #ffffff;
  border-color: #64748b;
}

.btn-checkout-now {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  transition: var(--transition);
}

.btn-checkout-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

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

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform 0.25s ease;
  position: relative;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-close-modal:hover {
  background: var(--bg-card-alt);
  color: #0f172a;
}

.modal-body {
  padding: 24px;
}

/* Form Styles inside Modal */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Pix Details Box inside Checkout */
.pix-box {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin: 18px 0;
}

.pix-qr-wrapper {
  margin: 15px auto;
  width: 180px;
  height: 180px;
  background: #ffffff;
  padding: 10px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pix-qr-wrapper canvas, .pix-qr-wrapper img {
  max-width: 100%;
  height: auto;
}

.pix-copy-paste-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  word-break: break-all;
  color: #475569;
  font-family: monospace;
  max-height: 70px;
  overflow-y: auto;
  margin-bottom: 12px;
  text-align: left;
}

.btn-copy-pix {
  width: 100%;
  padding: 12px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-copy-pix:hover {
  background: #1e293b;
}

.receipt-upload-box {
  border: 2px dashed #94a3b8;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: var(--transition);
}

.receipt-upload-box:hover {
  border-color: var(--primary);
  background: #ecfdf5;
}

.receipt-preview {
  margin-top: 10px;
  max-height: 140px;
  border-radius: var(--radius-sm);
  display: none;
}

.btn-whatsapp-receipt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: #25d366;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  margin-top: 12px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-receipt:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
}

/* Mural de Apoio */
.mural-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.mural-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.mural-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mural-author {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mural-time {
  font-size: 0.78rem;
  color: var(--text-light);
}

.mural-message {
  font-size: 0.9rem;
  color: #475569;
  font-style: italic;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 0 25px;
  font-size: 0.88rem;
  border-top: 1px solid #1e293b;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 25px;
  border-bottom: 1px solid #1e293b;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 25px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-link {
  color: #64748b;
  text-decoration: none;
  font-size: 0.78rem;
  transition: var(--transition);
}

.admin-link:hover {
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
  .campaign-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .header-inner {
    height: 64px;
  }
  .btn-nav-outline {
    display: none;
  }
  .cart-bar-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cart-info {
    justify-content: center;
  }
  .cart-actions {
    justify-content: center;
  }
}
