:root {
  --affb-accent: #6d5dfc;
  --affb-bg: #0f172a;
  --affb-card: #111827;
  --affb-text: #ffffff;
}
.affb-wrap {
  background-color: var(--affb-bg);
  background-image: radial-gradient(circle at top right, rgba(255,255,255,.08), transparent 35%);
  color: var(--affb-text);
  border-radius: 22px;
  padding: 40px 30px;
  margin: 24px 0;
  box-shadow: 0 24px 60px rgba(2, 6, 23, .35);
  position: relative;
  overflow: hidden;
}
.affb-logo-bar {
  text-align: center;
  margin-bottom: 18px;
}
.affb-logo-bar img {
  max-height: 56px;
  max-width: 220px;
  height: auto;
}
.affb-shell {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 32px;
  align-items: start;
}
.layout-centered .affb-shell {
  grid-template-columns: 1fr;
  max-width: 720px;
  text-align: center;
}
.layout-centered .affb-bullets { text-align: left; max-width: 480px; margin-left: auto; margin-right: auto; }
.layout-image-left .affb-shell {
  grid-template-columns: 1fr 1fr;
}
.affb-badge {
  display: inline-block;
  padding: 7px 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.affb-main-title {
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.05;
  margin: 18px 0;
  color: var(--affb-text);
}
.affb-headline {
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.15;
  margin: 18px 0 10px;
}
.affb-subheadline {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.3;
  margin: 12px 0;
  opacity: .9;
}
.affb-copy, .affb-testimonial, .affb-guarantee, .affb-countdown-note, .affb-disclaimer {
  color: var(--affb-text);
  opacity: .92;
}
.affb-bullets {
  list-style: none;
  margin: 18px 0;
  padding: 0;
}
.affb-bullets li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 16px;
}
.affb-bullets li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--affb-accent);
  font-weight: 700;
  font-size: 18px;
}
.affb-testimonial {
  background: rgba(255,255,255,.06);
  padding: 18px 20px;
  border-left: 4px solid var(--affb-accent);
  border-radius: 12px;
  margin-top: 18px;
  font-style: italic;
}
.affb-guarantee {
  background: rgba(34,197,94,.12);
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(34,197,94,.3);
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.affb-guarantee-icon {
  background: rgba(34,197,94,.3);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.affb-countdown-note {
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.3);
  padding: 14px;
  border-radius: 12px;
  margin-top: 18px;
  font-weight: 600;
}
.affb-divider {
  border: 0;
  border-top: 1px solid rgba(255,255,255,.15);
  margin: 24px 0;
}
.affb-image-block, .affb-hero-block, .affb-hero-image {
  margin: 20px 0;
  text-align: center;
}
.affb-image-block img, .affb-hero-block img, .affb-hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.affb-hero-caption {
  margin-top: 10px;
  font-size: 14px;
  opacity: .85;
}
.affb-video-block {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 20px 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.affb-video-block iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.affb-cta-line { text-align: center; margin: 22px 0; }
.affb-cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--affb-accent), #8b5cf6);
  color: #fff;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(109,93,252,.4);
}
.affb-form-card {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)), var(--affb-card);
  border-radius: 22px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.1);
  position: sticky;
  top: 24px;
}
.affb-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.affb-form input[type="text"],
.affb-form input[type="email"] {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 16px 18px;
  font-size: 16px;
  box-sizing: border-box;
}
.affb-form input::placeholder { color: rgba(255,255,255,.65); }
.affb-form button {
  border: 0;
  border-radius: 14px;
  padding: 17px 22px;
  background: linear-gradient(135deg, var(--affb-accent), #8b5cf6);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 35px rgba(109,93,252,.4);
  transition: transform .15s ease;
}
.affb-form button:hover { transform: translateY(-2px); }
.affb-form button:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.affb-message { font-size: 14px; min-height: 20px; text-align: center; }
.affb-message.success { color: #86efac; }
.affb-message.error { color: #fca5a5; }
.affb-disclaimer {
  font-size: 12px;
  opacity: .7;
  text-align: center;
  margin: 0;
}
.affb-trust-badges {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  opacity: .8;
  margin-top: 4px;
  flex-wrap: wrap;
}
.affb-footer-note {
  text-align: center;
  font-size: 12px;
  opacity: .6;
  margin-top: 30px;
}
.template-bold .affb-main-title, .template-bold .affb-headline { text-transform: uppercase; letter-spacing: -0.5px; }
.template-warm { background: linear-gradient(135deg, #581c87, #111827 55%, #7c2d12); }
.template-launch { background: linear-gradient(135deg, #1e293b, #0c4a6e 55%, #082f49); }
.template-dark { background: linear-gradient(135deg, #000, #1f2937); }

@media (max-width: 960px) {
  .affb-wrap { padding: 24px 18px; }
  .affb-shell, .layout-image-left .affb-shell { grid-template-columns: 1fr; }
  .affb-form-card { position: relative; top: 0; }
}
