/* ==========================================================================
   AFFILIATE PROGRAM — /affiliate  (Update 12)
   Desktop: hero with a phone mock, two-column caption + reward ladder.
   Mobile (<= 760px): stacked; platform picker becomes a 3-up grid.
   ========================================================================== */
.af { padding: 20px 0 90px; }
.af-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; padding: 40px; border-radius: 28px; color: #eef9ff;
  background: radial-gradient(90% 120% at 100% 0, rgba(236,72,153,.32), transparent 55%), radial-gradient(80% 100% at 0 100%, rgba(0,212,255,.28), transparent 60%),
              linear-gradient(135deg, #12082a, #1b0f3d 45%, #0a3550); }
.af-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 22px 22px; opacity: .45;
  -webkit-mask-image: linear-gradient(120deg, transparent 35%, #000); mask-image: linear-gradient(120deg, transparent 35%, #000); }
.af-hero > * { position: relative; z-index: 1; }
.af-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); }
.af-pill i { width: 7px; height: 7px; border-radius: 50%; background: #f472b6; box-shadow: 0 0 0 4px rgba(244,114,182,.25); }
.af-hero h1 { margin: 14px 0 10px; color: #fff; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -.025em; }
.af-hero h1 em { font-style: normal; background: linear-gradient(90deg, #f9a8d4, #67e8f9, #a7f3d0, #f9a8d4); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: afShine 6s linear infinite; }
@keyframes afShine { to { background-position: -300% 0; } }
.af-hero p { margin: 0; max-width: 560px; line-height: 1.65; color: rgba(238,249,255,.84); }
.af-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.af-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 14px; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; transition: transform .15s, box-shadow .15s, opacity .15s; }
.af-btn:hover { transform: translateY(-1px); }
.af-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.af-btn--light { background: #fff; color: #1b0f3d; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.af-btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.af-btn--brand { width: 100%; margin-top: 18px; color: #fff; background: linear-gradient(135deg, #ec4899, var(--brand, #00b8e6)); box-shadow: 0 10px 26px rgba(236,72,153,.28); }
.af-btn--ghost2 { background: var(--bg-inset, #f1f5f9); color: var(--ink, #0f172a); }

.af-hero__card { position: relative; display: grid; place-items: center; min-height: 300px; }
.af-phone { width: 230px; border-radius: 30px; padding: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); box-shadow: 0 30px 70px rgba(0,0,0,.35); transform: rotate(-4deg); animation: afBob 6s ease-in-out infinite; }
@keyframes afBob { 50% { transform: rotate(-2deg) translateY(-8px); } }
.af-phone__top { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.af-phone__top span { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #f472b6, #22d3ee); }
.af-phone__top small { margin-left: auto; opacity: .6; }
.af-phone__media { margin: 12px 0 10px; height: 200px; border-radius: 18px; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; background: linear-gradient(160deg, #22d3ee, #6366f1 55%, #ec4899); }
.af-phone__media span { font-size: 42px; margin-bottom: auto; }
.af-phone__media b { color: #fff; font-size: 15px; line-height: 1.25; }
.af-phone__cap { font-size: 12px; color: #a5f3fc; font-weight: 600; }
.af-phone__eng { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; opacity: .85; }
.af-float { position: absolute; padding: 9px 14px; border-radius: 14px; font-weight: 800; font-size: 13px; color: #1b0f3d; background: #fff; box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.af-float--a { top: 18px; right: 6%; animation: afBob 5s ease-in-out infinite; }
.af-float--b { bottom: 22px; left: 2%; background: #a7f3d0; animation: afBob 7s ease-in-out infinite reverse; }
.af-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 6px; }
.af-stats div { padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.af-stats b { display: block; font-size: 22px; color: #fff; }
.af-stats span { font-size: 12.5px; color: rgba(238,249,255,.7); }

.af-steps { margin: 34px 0 10px; }
.af-steps h2, .af-mine h2 { font-size: 22px; margin: 0 0 14px; }
.af-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.af-steps li { position: relative; padding: 18px; border-radius: 18px; background: var(--bg-raised, #fff); border: 1px solid var(--line, #e2e8f0); }
.af-steps li span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ec4899, var(--brand, #00b8e6)); }
.af-steps li b { display: block; margin: 12px 0 6px; font-size: 15.5px; }
.af-steps li p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-3, #64748b); }

.af-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.af-card { padding: 22px; border-radius: 20px; background: var(--bg-raised, #fff); border: 1px solid var(--line, #e2e8f0); }
.af-card h3 { margin: 0; font-size: 17px; }
.af-card__hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.af-chip { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; color: var(--brand, #00b8e6); background: color-mix(in srgb, var(--brand, #00b8e6) 12%, transparent); white-space: nowrap; }
.af-muted { color: var(--ink-3, #64748b); }
.af-small { font-size: 12.5px; line-height: 1.5; margin: 12px 0 0; }
.af-copy { border: 0; cursor: pointer; padding: 8px 14px; border-radius: 10px; font-weight: 700; color: #fff; background: var(--brand, #00b8e6); font-family: inherit; }
.af-cap pre { white-space: pre-wrap; word-break: break-word; margin: 10px 0 12px; padding: 14px 16px; border-radius: 14px; font: 600 14px/1.6 inherit; font-family: inherit; background: var(--bg-inset, #f1f5f9); border: 1px dashed var(--line, #cbd5e1); }
.af-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.af-tags button { border: 1px solid var(--line, #e2e8f0); background: var(--bg, #fff); color: var(--ink, #0f172a); padding: 7px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-tags button::after { content: ' ⧉'; opacity: .5; }
.af-plats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.af-plats span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; font-size: 18px; background: var(--bg-inset, #f1f5f9); }
.af-ladder ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.af-ladder li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg-inset, #f8fafc); }
.af-ladder li i { width: 28px; height: 28px; display: grid; place-items: center; flex: none; border-radius: 50%; font-style: normal; font-weight: 800; font-size: 13px; color: #fff; background: linear-gradient(135deg, #ec4899, var(--brand, #00b8e6)); }
.af-ladder li span { display: flex; flex-direction: column; min-width: 0; }
.af-ladder li small { font-size: 12px; color: var(--ink-3, #64748b); }
.af-ladder li em { margin-left: auto; font-style: normal; font-weight: 800; color: var(--up, #059669); white-space: nowrap; }

.af-submit { margin-top: 18px; }
.af-lbl { display: block; margin: 16px 0 8px; font-size: 13.5px; font-weight: 700; }
.af-pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.af-pick label { cursor: pointer; }
.af-pick input { position: absolute; opacity: 0; pointer-events: none; }
.af-pick span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; font-size: 12.5px; font-weight: 600; text-align: center; border: 1.5px solid var(--line, #e2e8f0); transition: border-color .15s, background .15s; }
.af-pick span i { font-style: normal; font-size: 20px; }
.af-pick input:checked + span { border-color: #ec4899; background: rgba(236,72,153,.08); }
.af-pick input:focus-visible + span { outline: 2px solid var(--brand, #00b8e6); }
.af-in { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line, #e2e8f0); background: var(--bg, #fff); color: var(--ink, #0f172a); font: inherit; font-size: 15px; }
.af-in:focus { outline: none; border-color: #ec4899; }
.af-drop { position: relative; display: grid; place-items: center; min-height: 140px; border-radius: 16px; border: 2px dashed var(--line, #cbd5e1); cursor: pointer; overflow: hidden; background: var(--bg-inset, #f8fafc); }
.af-drop:hover { border-color: #ec4899; }
.af-drop__in { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 16px; }
.af-drop__in small { color: var(--ink-3, #64748b); }
.af-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0b1020; }
.af-drop.has-img { min-height: 260px; }

.af-mine { margin-top: 30px; }
.af-mine__hd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.af-mine__hd h2 { margin: 0; }
.af-filt { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.af-filt button { border: 1px solid var(--line, #e2e8f0); background: var(--bg-raised, #fff); color: var(--ink-3, #64748b); padding: 7px 13px; border-radius: 999px; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; font-family: inherit; }
.af-filt button.is-on { color: #fff; background: var(--ink, #0f172a); border-color: var(--ink, #0f172a); }
.af-post { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px; margin-bottom: 12px; border-radius: 18px; background: var(--bg-raised, #fff); border: 1px solid var(--line, #e2e8f0); }
.af-post__img { display: block; height: 160px; border-radius: 12px; overflow: hidden; background: #0b1020; }
.af-post__img img { width: 100%; height: 100%; object-fit: cover; }
.af-post__body { min-width: 0; }
.af-post__hd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.af-post__url { display: block; margin: 6px 0; font-size: 13px; color: var(--brand, #00b8e6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-post__meta { font-size: 12.5px; color: var(--ink-3, #64748b); }
.af-st { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #fef3c7; color: #92400e; }
.af-st--ok { background: #d1fae5; color: #065f46; }
.af-st--no { background: #fee2e2; color: #991b1b; }
.af-st--ready { background: #fce7f3; color: #9d174d; }
.af-ms { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.af-m { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; background: var(--bg-inset, #f8fafc); border: 1px solid transparent; }
.af-m b { font-size: 14px; }
.af-m em { font-style: normal; font-size: 12px; color: var(--ink-3, #64748b); }
.af-m--ready { border-color: #ec4899; background: rgba(236,72,153,.06); }
.af-m--claimed em { color: var(--up, #059669); font-weight: 700; }
.af-m--locked { opacity: .7; }
.af-m button { margin-top: 6px; border: 0; padding: 7px; border-radius: 9px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ec4899, var(--brand, #00b8e6)); cursor: pointer; font-family: inherit; }
.af-link { margin-top: 10px; border: 0; background: none; color: var(--brand, #00b8e6); font-weight: 700; cursor: pointer; padding: 0; font-family: inherit; }
.af-note { margin: 14px 0; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; background: #fef3c7; color: #92400e; }
.af-note--no { background: #fee2e2; color: #991b1b; margin: 8px 0 0; }
.af-empty { padding: 34px 16px; text-align: center; border-radius: 18px; border: 1px dashed var(--line, #cbd5e1); }
.af-empty span { font-size: 34px; }
.af-empty b { display: block; margin: 8px 0 4px; }
.af-empty p { margin: 0; color: var(--ink-3, #64748b); }
.af-skel { height: 120px; border-radius: 18px; margin-bottom: 12px; background: linear-gradient(90deg, var(--bg-inset, #f1f5f9), var(--bg-raised, #fff), var(--bg-inset, #f1f5f9)); background-size: 200% 100%; animation: afSk 1.2s infinite; }
@keyframes afSk { to { background-position: -200% 0; } }
.af-rules { margin-top: 22px; }
.af-rules ul { margin: 10px 0 0; padding-left: 18px; line-height: 1.8; color: var(--ink-2, #334155); font-size: 14px; }
.af-modal { position: fixed; inset: 0; z-index: 10070; display: grid; place-items: center; padding: 16px; background: rgba(15,23,42,.5); }
.af-modal__box { width: min(440px, 100%); padding: 22px; border-radius: 20px; background: var(--bg-raised, #fff); color: var(--ink, #0f172a); }
.af-modal__box h3 { margin: 0 0 6px; }
.af-modal__acts { display: flex; gap: 10px; margin-top: 16px; }
.af-modal__acts .af-btn { flex: 1; margin: 0; width: auto; }

@media (max-width: 960px) {
  .af-hero { grid-template-columns: 1fr; padding: 28px 22px; }
  .af-hero__card { min-height: 260px; }
  .af-steps ol { grid-template-columns: 1fr 1fr; }
  .af-grid { grid-template-columns: 1fr; }
  .af-pick { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 760px) {
  .af { padding-top: 12px; }
  .af-hero { border-radius: 22px; }
  .af-hero__card { display: none; }
  .af-hero__cta .af-btn { flex: 1; }
  .af-stats { grid-template-columns: 1fr 1fr; }
  .af-steps ol { grid-template-columns: 1fr; }
  .af-pick { grid-template-columns: repeat(3, 1fr); }
  .af-post { grid-template-columns: 1fr; }
  .af-post__img { height: 180px; }
  .af-card { padding: 18px; }
}

/* ══ U40: livelier affiliate page — reveal on scroll, hover lift, glow ══ */
.af-rv { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.af-rv.is-in { opacity: 1; transform: none; }
.af-card, .af-st, .af-post { transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.af-card:hover, .af-st:hover, .af-post:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.10); }
.af-st { position: relative; overflow: hidden; }
.af-st::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(#00D4FF, #a7f3d0); opacity: .9; }
.af-btn { position: relative; overflow: hidden; }
.af-btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: afSweep 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes afSweep { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.af-chip, .af-pill { transition: transform .15s; }
.af-chip:hover, .af-pill:hover { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .af-rv { opacity: 1; transform: none; transition: none; } .af-btn::after { display: none; } }
