.aff-float {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: min(320px, calc(100vw - 28px));
  z-index: 1400;
  border: 1px solid rgba(184, 135, 31, 0.28);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(22, 15, 10, 0.96), rgba(38, 25, 15, 0.94));
  color: #f4ead6;
  box-shadow: 0 16px 38px rgba(10, 8, 6, 0.28);
  overflow: hidden;
}

.aff-float__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(184, 135, 31, 0.2);
  background: rgba(255, 216, 146, 0.08);
}

.aff-float__title {
  font: 700 11px/1.2 "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0c76f;
}

.aff-float__toggle {
  border: 0;
  background: transparent;
  color: #e9c988;
  cursor: pointer;
  font-weight: 700;
}

.aff-float__body {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  padding: 10px 12px 12px;
}

.aff-float__img {
  width: 70px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.aff-float__name {
  margin: 0;
  font: 700 14px/1.2 "DM Sans", sans-serif;
}

.aff-float__hook {
  margin: 4px 0 6px;
  font: 600 12px/1.45 "DM Sans", sans-serif;
  color: rgba(246, 232, 204, 0.9);
}

.aff-float__chip {
  display: inline-flex;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(223, 181, 77, 0.28);
  background: rgba(223, 181, 77, 0.12);
  font: 700 10px/20px "JetBrains Mono", monospace;
  color: #f5d48e;
}

.aff-float__actions {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.aff-float__cta {
  display: inline-flex;
  justify-content: center;
  min-height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #b3871f, #d7aa3e);
  color: #1a120b;
  text-decoration: none;
  font: 700 13px/32px "DM Sans", sans-serif;
}

.aff-float__disclosure {
  margin: 0;
  font: 500 10px/1.4 "DM Sans", sans-serif;
  color: rgba(255, 228, 186, 0.78);
}

.aff-float.is-collapsed .aff-float__body { display: none; }

.aff-mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1450;
  display: none;
  gap: 8px;
  align-items: center;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(16, 12, 9, 0.94);
  border-top: 1px solid rgba(184, 135, 31, 0.28);
}

.aff-mobile-bar__meta {
  flex: 1;
  min-width: 0;
  color: #f5dfb8;
  font: 700 11px/1.3 "DM Sans", sans-serif;
}

.aff-mobile-bar__cta {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(135deg, #b3871f, #d7aa3e);
  color: #1a120b;
  font: 700 13px/34px "DM Sans", sans-serif;
}

.aff-exit {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(10, 8, 6, 0.58);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.aff-exit.is-open { display: flex; }

.aff-exit__card {
  width: min(420px, 100%);
  border-radius: 14px;
  border: 1px solid rgba(184, 135, 31, 0.24);
  background: #fff9ee;
  padding: 16px;
}

.aff-exit__title {
  margin: 0 0 6px;
  font: 700 20px/1.2 "Playfair Display", serif;
  color: #2a1c11;
}

.aff-exit__copy {
  margin: 0 0 12px;
  font: 600 13px/1.5 "DM Sans", sans-serif;
  color: #5a3f24;
}

.aff-exit__row {
  display: flex;
  gap: 8px;
}

.aff-exit__btn, .aff-exit__close {
  border: 0;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  font: 700 13px/34px "DM Sans", sans-serif;
  cursor: pointer;
  text-decoration: none;
}

.aff-exit__btn {
  background: linear-gradient(135deg, #b3871f, #d7aa3e);
  color: #1a120b;
}

.aff-exit__close {
  background: rgba(44, 30, 18, 0.1);
  color: #48311e;
}

@media (max-width: 980px) {
  .aff-float { display: none; }
  .aff-mobile-bar { display: flex; }
}
