/* ========================================================
   COOPERAÇÃO 29GG — ULTRA PREMIUM & FOCO EM CONVERSÃO
   EQUIPE SANSUY & GUIZ
   ======================================================== */

:root {
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --bg-dark: #0a0814;
  --bg-card: rgba(19, 15, 33, 0.82);
  --bg-card-hover: rgba(25, 20, 44, 0.92);
  --bg-input: #0e0a1c;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(168, 85, 247, 0.22);
  --border-gold: rgba(251, 191, 36, 0.35);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --gold: #fbbf24;
  --gold-glow: #f59e0b;
  --purple: #a855f7;
  --green: #10b981;
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
}

/* ========================================================
   ILUMINAÇÃO AMBIENTE
   ======================================================== */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(110px);
}

.glow-purple {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, transparent 70%);
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
}

.glow-gold {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.16) 0%, transparent 70%);
  bottom: 40px;
  right: -80px;
}

/* ========================================================
   TOPBAR
   ======================================================== */
.topbar {
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-back svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.nav-back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  transform: translateX(-2px);
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text-main);
}

.brand-text em {
  font-style: normal;
  color: #f97316;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.share-btn svg {
  width: 16px;
  height: 16px;
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  transform: scale(1.05);
}

/* ========================================================
   CONTAINER PRINCIPAL
   ======================================================== */
.page-container {
  width: min(100% - 32px, 460px);
  margin: 12px auto 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ========================================================
   CARD DE CONVERSÃO PRINCIPAL
   ======================================================== */
.conversion-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(168, 85, 247, 0.1);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.conversion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fbbf24, #a855f7, transparent);
}

/* Mascote 29GG */
.mascot-wrapper {
  position: relative;
  width: 190px;
  max-width: 65%;
  margin: 0 auto 16px;
}

.mascot-glow {
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, rgba(168, 85, 247, 0.18) 55%, transparent 75%);
  border-radius: 28px;
  filter: blur(14px);
  z-index: 1;
}

.mascot-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  border-radius: 22px;
  display: block;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  border: 2.5px solid rgba(251, 191, 36, 0.4);
  transition: transform var(--transition);
}

.conversion-card:hover .mascot-img {
  transform: translateY(-2px) scale(1.015);
}

/* Título */
.card-title {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 16px;
}

.highlight-brand {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

/* ========================================================
   DESTAQUES COMERCIAIS (50% E SAQUE DIRETO)
   ======================================================== */
.perks-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
  text-align: left;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  transition: transform var(--transition), border-color var(--transition);
}

.perk-item:hover {
  transform: translateY(-2px);
}

.perk-gold {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(217, 119, 6, 0.04) 100%);
  border-color: rgba(251, 191, 36, 0.35);
}

.perk-green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.04) 100%);
  border-color: rgba(16, 185, 129, 0.35);
}

.perk-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.perk-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.perk-text strong {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.perk-gold .perk-text strong {
  color: #fde047;
}

.perk-green .perk-text strong {
  color: #6ee7b7;
}

.perk-text span {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ========================================================
   CAMPO DE LINK & CTA
   ======================================================== */
.link-field-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1.5px solid rgba(251, 191, 36, 0.45);
  border-radius: var(--radius-md);
  padding: 6px 6px 6px 12px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 16px rgba(251, 191, 36, 0.1);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input-wrapper:focus-within {
  border-color: #fbbf24;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 20px rgba(251, 191, 36, 0.3);
}

.input-icon {
  font-size: 15px;
  flex-shrink: 0;
  opacity: 0.8;
}

.affiliate-link-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fef08a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 600;
  width: 100%;
  text-overflow: ellipsis;
  cursor: text;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0914;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

.btn-copy svg {
  width: 14px;
  height: 14px;
}

.btn-copy:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.45);
}

.btn-copy.copied {
  background: #10b981;
  color: #fff;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.45);
}

/* Botão de Ação Principal */
.btn-cta-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #9333ea 0%, #ec4899 50%, #f59e0b 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(147, 51, 234, 0.35), 0 0 25px rgba(236, 72, 153, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(147, 51, 234, 0.5), 0 0 35px rgba(236, 72, 153, 0.35);
}

.cta-arrow {
  font-size: 17px;
  transition: transform var(--transition);
}

.btn-cta-primary:hover .cta-arrow {
  transform: translate(2px, -2px);
}

/* ========================================================
   TUTORIAL SIMPLIFICADO & DIRETO
   ======================================================== */
.tutorial-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: left;
}

.tutorial-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fbbf24;
  margin-bottom: 12px;
}

.tutorial-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 6px #fbbf24;
}

.tutorial-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tutorial-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 1.5px solid #fbbf24;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
  margin-top: 1px;
}

.step-num-green {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #34d399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.step-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.step-info strong {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

.step-detail {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
}

/* ========================================================
   BOTTOM NAV & FOOTER
   ======================================================== */
.bottom-nav {
  text-align: center;
  margin-top: 4px;
}

.btn-back-link {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.btn-back-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 20px 28px;
  margin-top: auto;
}

.footer-inner {
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-dim);
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-muted);
}

.footer-brand em {
  font-style: normal;
  color: #f97316;
}

.footer-sub {
  letter-spacing: 1.2px;
  font-weight: 700;
}

/* ========================================================
   TOAST
   ======================================================== */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #19142b;
  color: #ffffff;
  border: 1px solid rgba(251, 191, 36, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 18px rgba(251, 191, 36, 0.2);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s;
  z-index: 9999;
  text-align: center;
  max-width: 90vw;
}

#toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ========================================================
   RESPONSIVIDADE (MOBILE POLISH)
   ======================================================== */
@media (max-width: 420px) {
  .page-container {
    width: calc(100% - 24px);
    margin-top: 8px;
  }

  .conversion-card {
    padding: 20px 15px;
  }

  .mascot-wrapper {
    width: 165px;
  }

  .card-title {
    font-size: 21px;
  }

  .perks-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .perk-item {
    padding: 10px 12px;
  }

  .input-wrapper {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
  }

  .affiliate-link-input {
    width: 100%;
    font-size: 11.5px;
  }

  .btn-copy {
    width: 100%;
    justify-content: center;
    padding: 9px;
  }

  .btn-cta-primary {
    font-size: 14px;
    padding: 14px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
