/* AdSense container fix */
.ad-container {
  min-width: 320px;
  width: 100%;
  min-height: 100px;
  display: block;
}
/* =============================================
   GERADOR LINK WHATSAPP — Custom Styles
   ============================================= */

/* ===== CSS VARIABLES ===== */
:root {
  --wgreen: #25D366;
  --wdark:  #128C7E;
  --wgray:  #075E54;
  --wlight: #DCF8C6;
  --shadow-green: 0 4px 20px rgba(37, 211, 102, 0.25);
  --shadow-card:  0 2px 16px rgba(0, 0, 0, 0.06);
}

/* ===== BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== HERO GRADIENT ===== */
.hero-gradient {
  background: linear-gradient(135deg, #075E54 0%, #128C7E 50%, #25D366 100%);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-gradient::after {
  content: '';
  position: absolute;
  bottom: -60%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37,211,102,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== AD SLOTS — CLS OPTIMIZED ===== */
/* 
  Fixed dimensions prevent Cumulative Layout Shift (CLS).
  Ads load inside pre-reserved containers.
*/

.ad-slot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Top / Bottom Banner — 728×90 desktop, 320×50 mobile */
.ad-slot-banner {
  min-height: 90px;
  background-color: #f0f0f0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  contain: layout size;
}

/* Sidebar — 300×600 */
.ad-slot-sidebar {
  min-height: 600px;
  background-color: #f0f0f0;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  contain: layout size;
}

/* Rectangle — 336×280 */
.ad-slot-rect {
  min-height: 280px;
  background-color: #f0f0f0;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  contain: layout size;
}

.ad-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  gap: 4px;
  color: #aaa;
  font-size: 12px;
  font-family: monospace;
  user-select: none;
  border: 2px dashed #d0d0d0;
  border-radius: 8px;
  padding: 12px;
}

.ad-placeholder-tall {
  min-height: 600px;
}

/* ===== PHONE SELECT ARROW FIX ===== */
#countryCode {
  min-width: 110px;
}

/* ===== GENERATE BUTTON ANIMATION ===== */
#generateBtn {
  position: relative;
  overflow: hidden;
}

#generateBtn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

#generateBtn:active::after {
  width: 300px;
  height: 300px;
}

/* ===== QR CODE WRAPPER ===== */
.qr-wrapper {
  display: inline-block;
  position: relative;
}

.qr-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--wgreen), var(--wdark));
  border-radius: 18px;
  z-index: -1;
  opacity: 0.3;
}

#qrcode {
  display: flex;
  align-items: center;
  justify-content: center;
}

#qrcode canvas,
#qrcode img {
  border-radius: 8px;
  display: block;
}

/* ===== HOW TO USE STEPS ===== */
.how-step {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.how-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.15);
}

/* ===== RECENT LINKS LIST ===== */
.recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 12px;
  transition: all 0.2s ease;
  animation: slideIn 0.3s ease;
}

.recent-item:hover {
  background: #f0fdf4;
  border-color: var(--wgreen);
}

.recent-item-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--wgreen), var(--wdark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.recent-item-number {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-item-url {
  font-size: 11px;
  color: #9CA3AF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: monospace;
  margin-top: 1px;
}

.recent-item-time {
  font-size: 10px;
  color: #D1D5DB;
  flex-shrink: 0;
}

.recent-copy-btn {
  width: 30px;
  height: 30px;
  background: var(--wgreen);
  border: none;
  border-radius: 7px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.recent-copy-btn:hover {
  background: #1db954;
  transform: scale(1.05);
}

/* ===== TOAST ===== */
#toast {
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#toast.show {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* ===== BACK TO TOP ===== */
#backToTop.visible {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ===== RESULT CARD ANIMATION ===== */
#resultCard {
  animation: fadeSlideUp 0.4s ease;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== COPY ICON ANIMATION ===== */
.copy-success {
  animation: bounceCheck 0.4s ease;
}

@keyframes bounceCheck {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ===== MOBILE MENU ===== */
#mobileMenu {
  animation: slideDown 0.2s ease;
}

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

/* ===== INPUT FOCUS STATES ===== */
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

/* ===== ERROR STATE ===== */
input.input-error {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* ===== SUCCESS STATE ===== */
input.input-success {
  border-color: var(--wgreen) !important;
  background-color: #f0fdf4 !important;
}

/* =============================================
   SEO CONTENT SECTION
   ============================================= */

.seo-section {
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
}

.seo-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

.seo-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #111827;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.3;
}

.seo-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--wgreen), var(--wdark));
  border-radius: 2px;
  margin: 12px auto 0;
}

.seo-intro {
  text-align: center;
  font-size: 15px;
  color: #4B5563;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== BENEFITS GRID ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 48px;
}

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

.benefit-card {
  display: flex;
  gap: 16px;
  background: white;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.12);
  border-color: var(--wgreen);
}

.benefit-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--wgreen), var(--wdark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.benefit-content {
  flex: 1;
}

.benefit-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.benefit-text {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-section {
  margin-bottom: 48px;
}

.faq-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--wgreen);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.1);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.2s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  background-color: #f9fafb;
}

.faq-item[open] .faq-question {
  background-color: #f0fdf4;
  color: var(--wdark);
  border-bottom: 1px solid #dcfce7;
}

.faq-arrow {
  transition: transform 0.3s ease;
  font-size: 11px;
  color: #9CA3AF;
}

.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
  color: var(--wdark);
}

.faq-answer {
  padding: 16px 20px;
  font-size: 13.5px;
  color: #4B5563;
  line-height: 1.75;
  border-top: 1px solid #f0f0f0;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-steps {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-steps li {
  font-size: 13px;
  color: #374151;
  padding-left: 8px;
}

.faq-bullets {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-bullets li {
  font-size: 13px;
  color: #374151;
  padding-left: 8px;
  position: relative;
}

.faq-bullets li::before {
  content: '✅';
  margin-right: 8px;
  font-size: 12px;
}

.faq-code {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  color: var(--wdark);
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, #075E54 0%, #128C7E 50%, #1db954 100%);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.3);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

@media (min-width: 640px) {
  .cta-banner {
    flex-direction: row;
    text-align: left;
  }
}

.cta-icon {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 28px;
  color: white;
  backdrop-filter: blur(10px);
}

.cta-content {
  flex: 1;
}

.cta-title {
  font-size: 17px;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
  line-height: 1.4;
}

.cta-text {
  font-size: 13.5px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  background: white;
  color: var(--wdark);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  white-space: nowrap;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  background: #f0fdf4;
}

/* ===== SECONDARY PAGES ===== */
.page-hero {
  background: linear-gradient(135deg, #075E54, #128C7E);
  padding: 48px 16px;
  text-align: center;
  color: white;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 16px 60px;
}

.page-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111827;
  margin: 28px 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
}

.page-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin: 20px 0 8px;
}

.page-content p {
  font-size: 14.5px;
  color: #4B5563;
  line-height: 1.8;
  margin-bottom: 12px;
}

.page-content ul, .page-content ol {
  padding-left: 20px;
  margin: 10px 0 16px;
}

.page-content li {
  font-size: 14.5px;
  color: #4B5563;
  line-height: 1.8;
  margin-bottom: 4px;
}

.page-content a {
  color: var(--wdark);
  text-decoration: underline;
}

/* ===== CONTACT FORM ===== */
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--wgreen);
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.12);
}

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.contact-form .form-group {
  margin-bottom: 18px;
}

.contact-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--wgreen);
  color: white;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.contact-submit-btn:hover {
  background: #1db954;
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
}

.contact-submit-btn:active {
  transform: scale(0.98);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .ad-slot-banner {
    min-height: 60px;
  }

  .cta-banner {
    padding: 24px 20px;
  }

  .faq-question {
    font-size: 13px;
    padding: 13px 16px;
  }

  .faq-answer {
    padding: 13px 16px;
    font-size: 13px;
  }
}

/* ===== PRINT ===== */
@media print {
  /* Removido display: none !important para evitar ocultar containers de anúncio */
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--wgreen);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--wdark);
}

/* ===== SELECTION ===== */
::selection {
  background: var(--wlight);
  color: var(--wgray);
}
