/* AnomicFlip — Affiliates (/affiliates) */
.af-page, .af-page * { box-sizing: border-box; }
.af-page { max-width: 1640px; margin: 0 auto; padding: 28px 40px 60px; display: grid; gap: 22px; font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #fff; }
.afp-h { margin: 0; font-size: 30px; }
.afp-card { padding: 30px 34px; border-radius: 14px; background: #1e2125; display: grid; gap: 14px; align-content: start; min-width: 0; }
.afp-card h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 21px; }
.afp-card h2 svg, .afp-l svg { color: #3fd68f; flex: none; }
.afp-card p { margin: 0; color: #9a9ea6; font-size: 17px; line-height: 1.6; }
.afp-card p b { color: #fff; }
.afp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.afp-l { display: inline-flex; align-items: center; gap: 10px; color: #a7abb2; font-size: 17px; }
.afp-stats b { display: inline-flex; align-items: center; gap: 10px; font-size: 34px; font-variant-numeric: tabular-nums; }
.afp-stats b .cf-coin-ic { width: 22px; height: 28px; }
.afp-stats small { color: #8b8f97; font-size: 15px; }
.afp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 22px; align-items: start; }
.afp-col { display: grid; gap: 22px; min-width: 0; }

.afp-code { display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 18px; border-radius: 10px; background: #15171a; }
.afp-code input { flex: 1; min-width: 0; height: 50px; border: 0; background: none; outline: none; color: #fff; font: 800 20px 'Archivo', system-ui, sans-serif; letter-spacing: .5px; }
.afp-code input:not([readonly]) { box-shadow: inset 0 -2px 0 #3fd68f; }
.afp-ib { flex: none; height: 50px; min-width: 50px; padding: 0 12px; border: 0; border-radius: 8px; background: #2a2d33; color: #fff; font: 700 17px 'Archivo', system-ui, sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.afp-ib:hover { background: #33373e; }
.afp-ib.on { background: #3fbf7f; color: #0d1f16; }
.afp-btn { height: 58px; border: 0; border-radius: 8px; background: #3fbf7f; color: #0d1f16; font: 800 18px 'Archivo', system-ui, sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; }
.afp-btn:hover:not(:disabled) { background: #46cc8a; }
.afp-btn:disabled { background: #24563f; color: #79a892; cursor: not-allowed; }
.afp-big { display: inline-flex; align-items: center; gap: 10px; font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.afp-big .cf-coin-ic { width: 22px; height: 28px; }
.afp-redeem { display: flex; gap: 10px; }
.afp-redeem[hidden] { display: none; }
.afp-redeem input { flex: 1; min-width: 0; height: 58px; padding: 0 18px; border-radius: 8px; border: 2px solid #2a2d33; background: #2a2d33; color: #fff; font: 700 18px 'Archivo', system-ui, sans-serif; outline: none; text-transform: uppercase; }
.afp-redeem input::placeholder { text-transform: none; color: #8b8f97; }
.afp-redeem input:focus { border-color: #3fd68f; }
.afp-msg { font-size: 15px; font-weight: 600; }
.afp-msg:empty { display: none; }
.afp-msg.ok { color: #3fd68f; } .afp-msg.bad { color: #ff8b97; }

/* leaderboard */
.afp-table { display: grid; margin-top: 6px; }
.afp-tr { display: grid; grid-template-columns: 90px minmax(0, 1fr) 100px; align-items: center; min-height: 66px; padding: 0 12px; border-bottom: 1px solid #2a2d33; font-size: 17px; font-variant-numeric: tabular-nums; }
.afp-tr > span:last-child { text-align: right; }
.afp-tr.head { min-height: 50px; color: #a7abb2; font-size: 16px; font-weight: 600; }
.afp-pl { display: flex; align-items: center; gap: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.afp-av { flex: none; width: 40px; height: 40px; border-radius: 8px; background: #33373e center / cover no-repeat; display: grid; place-items: center; font-style: normal; font-weight: 800; color: #3fd68f; }
.afp-crown { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: rgba(63,214,143,.12); color: #3fd68f; }
.afp-empty { padding: 40px 10px; text-align: center; color: #6b7078; }

/* FAQ */
.afp-faq details { border-top: 1px solid #2a2d33; }
.afp-faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.afp-faq summary::-webkit-details-marker { display: none; }
.afp-faq summary::after { content: ''; width: 10px; height: 10px; margin: 4px 6px 0 0; border-right: 2px solid #c9ccd1; border-bottom: 2px solid #c9ccd1; transform: rotate(45deg); transition: transform .15s; }
.afp-faq details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.afp-faq details p { padding-bottom: 20px; }
.af-page button:focus-visible { outline: 2px solid #3fd68f; outline-offset: 2px; }

@media (max-width: 1100px) { .afp-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .af-page { padding: 18px 16px 40px; }
  .afp-stats { grid-template-columns: minmax(0, 1fr); }
  .afp-card { padding: 22px 18px; }
  .afp-tr { grid-template-columns: 56px minmax(0, 1fr) 70px; }
}
