/* ==========================================================================
   PALPITE VENCEDOR — ELEIÇÕES 2026
   Design System Mobile-First • Fundo Branco com Acentos Brasil
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700;800&display=swap');

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --border-color: #e2e8f0;
  --border-focus: #059669;

  --brazil-blue: #0f3460;
  --brazil-blue-dark: #0a2544;
  --brazil-green: #059669;
  --brazil-green-hover: #047857;
  --brazil-yellow: #f59e0b;
  --brazil-yellow-hover: #d97706;

  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --card-shadow-lg: 0 16px 32px -4px rgba(15, 52, 96, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  --voucher-shadow: 0 20px 40px -10px rgba(15, 52, 96, 0.18);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

/* Layout Utilities Independent of Tailwind */
.hidden { display: none !important; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.w-full { width: 100%; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-12 { padding-bottom: 3rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-main { color: var(--text-main); }
.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.underline { text-decoration: underline; }
.break-all { word-break: break-all; }

/* Responsive Container */
.app-container {
  width: 100%;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .app-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ==========================================================================
   SITE HEADER & NAVIGATION (100% Mobile Optimized)
   ========================================================================== */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  gap: 0.75rem;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
}

.brand-flag-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f1f5f9;
  padding: 3px 6px;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
}

.flag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.flag-green { background-color: var(--brazil-green); }
.flag-yellow { background-color: var(--brazil-yellow); }
.flag-blue { background-color: var(--brazil-blue); }

.brand-title {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--brazil-blue);
  white-space: nowrap;
}

.brand-year {
  color: var(--brazil-green);
  font-weight: 900;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-pill-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  background-color: var(--bg-secondary);
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-pill-link:hover {
  color: var(--brazil-blue);
  border-color: #cbd5e1;
}

.nav-pill-admin {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brazil-blue);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-pill-admin:hover {
  background-color: #dbeafe;
}

@media (min-width: 640px) {
  .header-inner {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }
  .brand-title {
    font-size: 1.25rem;
  }
  .header-actions {
    gap: 0.75rem;
  }
  .nav-pill-link {
    font-size: 0.825rem;
    padding: 0.4rem 0.8rem;
  }
  .nav-pill-admin {
    font-size: 0.825rem;
    padding: 0.4rem 0.8rem;
  }
}

/* ==========================================================================
   HERO SECTION (Balanced, Readable, Beautiful on Mobile)
   ========================================================================== */
.hero-wrapper {
  padding-top: 1.75rem;
  padding-bottom: 1.25rem;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  font-weight: 700;
  color: var(--brazil-blue);
  max-width: 700px;
  margin: 0 auto 0.85rem auto;
  line-height: 1.35;
  padding: 0 0.5rem;
}

.hero-description {
  font-size: 0.925rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 1.25rem auto;
  padding: 0 0.5rem;
}

.disclaimer-box {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.8rem;
  font-weight: 500;
  max-width: 620px;
  margin: 0 auto 1.5rem auto;
  text-align: left;
  line-height: 1.4;
}

.disclaimer-box svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ==========================================================================
   CANDIDATE SELECTOR (Lula vs Flávio)
   ========================================================================== */
.candidate-select-wrap {
  max-width: 580px;
  margin: 0 auto 1.5rem auto;
  width: 100%;
}

.candidate-select-card {
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 1.25rem;
  box-shadow: var(--card-shadow);
  padding: 1.25rem;
  text-align: center;
}

@media (min-width: 640px) {
  .candidate-select-card {
    padding: 1.75rem;
  }
}

.candidate-select-title {
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  font-weight: 900;
  color: var(--brazil-blue);
  margin-bottom: 0.35rem;
}

.candidate-select-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.candidate-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .candidate-options-grid {
    gap: 1rem;
  }
}

.candidate-card-btn {
  background: #f8fafc;
  border: 2.5px solid #cbd5e1;
  border-radius: 1rem;
  padding: 1rem 0.6rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  width: 100%;
  font-family: inherit;
}

.candidate-card-btn:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: #94a3b8;
}

.candidate-card-btn.active[data-candidate="lula"] {
  border-color: #059669;
  background: #ecfdf5;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.25);
}

.candidate-card-btn.active[data-candidate="flavio"] {
  border-color: #0f3460;
  background: #eff6ff;
  box-shadow: 0 6px 18px rgba(15, 52, 96, 0.25);
}

.candidate-btn-avatar-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: visible;
}

@media (min-width: 640px) {
  .candidate-btn-avatar-wrap {
    width: 82px;
    height: 82px;
  }
}

.candidate-btn-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.candidate-check-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  border: 2px solid #ffffff;
  transition: all 0.2s ease;
}

.candidate-card-btn.active[data-candidate="lula"] .candidate-check-badge {
  background: #059669;
}

.candidate-card-btn.active[data-candidate="flavio"] .candidate-check-badge {
  background: #0f3460;
}

.candidate-btn-details {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.candidate-btn-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
}

.candidate-btn-tag {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-subtle);
  margin-top: 0.15rem;
}

.candidate-card-btn.active .candidate-btn-name {
  color: #0f172a;
}

.candidate-card-btn.active[data-candidate="lula"] .candidate-btn-tag {
  color: #047857;
  font-weight: 700;
}

.candidate-card-btn.active[data-candidate="flavio"] .candidate-btn-tag {
  color: #0f3460;
  font-weight: 700;
}

/* Candidate Official Logo display in voting card */
.candidate-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.candidate-official-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
   VOTING CARD (Primary Form Experience)
   ========================================================================== */
.vote-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  box-shadow: var(--card-shadow-lg);
  padding: 1.25rem;
  max-width: 580px;
  margin: 0 auto 2.5rem auto;
  position: relative;
  overflow: hidden;
  width: 100%;
}

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

@media (min-width: 640px) {
  .vote-card {
    padding: 2.25rem;
  }
}

.candidate-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.candidate-avatar-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #059669;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.2);
  flex-shrink: 0;
  background-color: #f1f5f9;
}

@media (min-width: 640px) {
  .candidate-avatar-wrap {
    width: 76px;
    height: 76px;
  }
}

.candidate-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.candidate-info {
  flex: 1;
  min-width: 0;
}

.candidate-info h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.candidate-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

@media (min-width: 640px) {
  .candidate-info h3 { font-size: 1.3rem; }
  .candidate-info p { font-size: 0.875rem; }
}

/* Percentage Display Box */
.percentage-display-wrap {
  text-align: center;
  margin-bottom: 1.5rem;
}

.percentage-display-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.percentage-val-box {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  background-color: #f8fafc;
  border: 2px solid #cbd5e1;
  padding: 0.5rem 1.25rem;
  border-radius: 1rem;
  transition: all 0.2s ease;
  max-width: 100%;
}

.percentage-val-box:focus-within {
  border-color: var(--brazil-green);
  background-color: #ecfdf5;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}

.percentage-input-edit {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2.5rem, 9vw, 3.75rem);
  font-weight: 900;
  color: var(--brazil-green);
  background: transparent;
  border: none;
  outline: none;
  text-align: right;
  width: 130px;
  line-height: 1;
  padding: 0;
}

.percentage-symbol {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 800;
  color: var(--brazil-green);
  margin-left: 4px;
}

/* Touch-Optimized Range Slider */
.slider-control-wrap {
  margin-bottom: 1.75rem;
  padding: 0 0.25rem;
}

.custom-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  border-radius: 6px;
  background: #cbd5e1;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
  touch-action: pan-x;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brazil-green);
  border: 3.5px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  cursor: grab;
  transition: transform 0.1s ease, background-color 0.2s;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  background: var(--brazil-green-hover);
}

.custom-range::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brazil-green);
  border: 3.5px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  cursor: grab;
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  padding: 0 2px;
}

/* Form Controls */
.input-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.input-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.35rem;
}

.input-label .subtle {
  font-weight: 400;
  color: #94a3b8;
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  border: 1.5px solid var(--border-color);
  border-radius: 0.65rem;
  outline: none;
  background-color: #ffffff;
  color: var(--text-main);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--brazil-blue);
  box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.12);
}

/* Primary Action Button (Touch-Friendly min-height 52px) */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1.25rem;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border: none;
  border-radius: 0.75rem;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  text-align: center;
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.45);
}

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

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

/* ==========================================================================
   VOUCHER / COMPROVANTE RESULT CARD (Zero Bleed / Perfect Margins)
   ========================================================================== */
.voucher-result-wrap {
  max-width: 580px;
  margin: 0 auto 3rem auto;
  width: 100%;
}

.voucher-card {
  background: #ffffff;
  border: 2px solid var(--brazil-blue);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: var(--voucher-shadow);
  position: relative;
  overflow: hidden;
  width: 100%;
}

@media (min-width: 640px) {
  .voucher-card {
    padding: 2rem;
    border-radius: 1.5rem;
  }
}

.voucher-ribbon {
  background: var(--brazil-blue);
  color: #ffffff;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  margin: -1.25rem -1.25rem 1.25rem -1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

@media (min-width: 640px) {
  .voucher-ribbon {
    margin: -2rem -2rem 1.5rem -2rem;
    padding: 0.65rem 1.5rem;
    font-size: 0.875rem;
  }
}

.voucher-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #cbd5e1;
}

.voucher-percentage-callout {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 2px solid #a7f3d0;
  border-radius: 1rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.voucher-big-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2.75rem, 8vw, 4rem);
  font-weight: 900;
  color: #047857;
  line-height: 1.05;
  margin: 0.25rem 0;
}

/* Meta Information Grid (1 col on mobile, 2 cols on tablet+) */
.voucher-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  background: #f8fafc;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  margin-bottom: 1.25rem;
  text-align: left;
}

@media (min-width: 480px) {
  .voucher-meta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.25rem;
  }
}

.voucher-meta-item {
  display: flex;
  flex-direction: column;
}

.voucher-meta-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.voucher-meta-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  word-break: break-all;
}

.voucher-meta-code {
  font-family: 'JetBrains Mono', monospace;
  color: var(--brazil-blue);
  font-weight: 800;
}

.voucher-warning-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  color: #475569;
  margin-bottom: 1.25rem;
  text-align: left;
  line-height: 1.35;
}

/* Share Buttons Layout */
.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.85rem 1.25rem;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  min-height: 48px;
  transition: all 0.15s ease;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

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

.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.85rem 1.25rem;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  min-height: 48px;
  transition: all 0.15s ease;
  box-shadow: 0 4px 10px rgba(220, 39, 67, 0.25);
}

.btn-instagram:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  min-height: 48px;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Button Grids */
.actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 480px) {
  .actions-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Proof Upload Section */
.proof-upload-section {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 1.25rem;
  padding: 1.25rem;
  margin-top: 2rem;
  box-shadow: var(--card-shadow);
  text-align: left;
}

@media (min-width: 640px) {
  .proof-upload-section {
    padding: 2rem;
  }
}

.proof-instructions-list {
  margin: 0.85rem 0 1.25rem 1.15rem;
  color: #475569;
  font-size: 0.85rem;
  line-height: 1.45;
}

.proof-instructions-list li {
  margin-bottom: 0.35rem;
}

/* Alerts */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.35;
}
.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--brazil-blue);
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Modal Responsive */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: #ffffff;
  border-radius: 1.25rem;
  max-width: 500px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

/* =====================================================================
   PROMPT DE ALTERAÇÃO DE PALPITE (Permitido Apenas 1 Vez)
   ===================================================================== */
.change-prompt-card {
  max-width: 580px;
  margin: 0 auto 1.5rem auto;
  background: linear-gradient(135deg, #fefce8 0%, #fffbeb 100%);
  border: 2px solid #f59e0b;
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.2), 0 4px 6px -2px rgba(245, 158, 11, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  animation: promptPulse 0.5s ease-out;
}

@keyframes promptPulse {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.change-prompt-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: #fef3c7;
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.2);
}

.change-prompt-content {
  flex: 1;
  min-width: 0;
}

.change-prompt-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #78350f;
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.change-prompt-text {
  font-size: 0.92rem;
  color: #92400e;
  line-height: 1.45;
  margin: 0 0 1rem 0;
}

.change-prompt-text strong {
  color: #78350f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.change-prompt-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.btn-change-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
  transition: all 0.2s ease;
}

.btn-change-yes:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
}

.btn-change-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #475569;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-change-no:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  color: #1e293b;
}

.change-exhausted-banner {
  max-width: 580px;
  margin: 0 auto 1.5rem auto;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: #334155;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.change-exhausted-banner svg {
  color: #059669;
}

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

.btn-cancel-change {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.5rem;
  transition: color 0.15s ease;
  text-align: center;
}

.btn-cancel-change:hover {
  color: #dc2626;
}

@media (max-width: 480px) {
  .change-prompt-card {
    flex-direction: column;
    padding: 1.15rem;
  }
  .change-prompt-icon {
    width: 42px;
    height: 42px;
  }
  .change-prompt-buttons {
    width: 100%;
  }
  .btn-change-yes,
  .btn-change-no {
    flex: 1;
    text-align: center;
    padding: 0.7rem 0.75rem;
  }
}

/* =====================================================================
   CRONÔMETRO REGRESSIVO (Contador até 25/10/2026 às 17h00)
   Design Responsivo Anti-Desalinhamento (Grid 4x1 Flutuante)
   ===================================================================== */
.countdown-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 580px;
  margin: 0 auto 1.75rem auto;
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  border: 2px solid #f59e0b;
  border-radius: 1.25rem;
  padding: 1.25rem 1rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.4), 0 0 15px rgba(245, 158, 11, 0.15);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.countdown-card * {
  box-sizing: border-box;
}

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

.countdown-top-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.countdown-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulseDot 1.5s infinite;
  flex-shrink: 0;
}

.countdown-badge-text {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.countdown-heading {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
  line-height: 1.25;
}

.countdown-deadline-notice {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin: 0 0 1rem 0;
  line-height: 1.35;
}

/* Grid perfeitamente alinhado em 4 colunas simétricas */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  width: 100%;
  margin: 0;
  padding: 0;
}

.timer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 0.75rem;
  padding: 0.65rem 0.2rem;
  min-height: 68px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
}

.timer-box.highlight-sec {
  border-color: rgba(245, 158, 11, 0.7);
  background: rgba(245, 158, 11, 0.12);
}

.timer-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1;
  letter-spacing: -0.02em;
}

.timer-caption {
  font-size: 0.62rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  margin-top: 0.35rem;
  letter-spacing: 0.05em;
}

@media (min-width: 480px) {
  .countdown-card {
    padding: 1.5rem 1.35rem;
  }
  .countdown-heading {
    font-size: 1.35rem;
  }
  .countdown-grid {
    gap: 0.6rem;
  }
  .timer-box {
    padding: 0.75rem 0.35rem;
    min-height: 76px;
  }
  .timer-value {
    font-size: 1.75rem;
  }
  .timer-caption {
    font-size: 0.7rem;
  }
}

@media (min-width: 640px) {
  .countdown-card {
    padding: 1.65rem 2rem;
  }
  .countdown-heading {
    font-size: 1.5rem;
  }
  .countdown-grid {
    gap: 0.75rem;
  }
  .timer-box {
    padding: 0.85rem 0.5rem;
    min-height: 84px;
    border-radius: 0.85rem;
  }
  .timer-value {
    font-size: 2.15rem;
  }
  .timer-caption {
    font-size: 0.75rem;
  }
}

/* =====================================================================
   SEÇÃO DE PALPITES ENCERRADOS (Aguarde as Apurações)
   ===================================================================== */
.campaign-closed-wrap {
  max-width: 580px;
  margin: 0 auto 2rem auto;
  width: 100%;
}

.closed-card {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.closed-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.closed-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
}

.closed-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 1.5rem 0;
}

.closed-desc strong {
  color: #0f172a;
}

.closed-wait-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1.5px solid #93c5fd;
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
}

.closed-wait-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: #bfdbfe;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.closed-wait-info {
  flex: 1;
  min-width: 0;
}

.closed-wait-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e3a8a;
  margin: 0 0 0.35rem 0;
}

.closed-wait-sub {
  font-size: 0.88rem;
  color: #1e40af;
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 480px) {
  .closed-wait-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
