/* ==========================================================================
   Affiliate marketing page (affiliates.blade.php)
   Builds on circulars.css (.crc); everything here is prefixed aff-.
   ========================================================================== */

.crc-tile.t-amber { --tile-color: #d97706; --tile-soft: #fffbeb; }

/* hero */
.aff-hero {
    position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 12px 24px;
    margin-bottom: 18px; padding: 34px 36px; border-radius: 20px; color: #fff;
    background: radial-gradient(circle at 85% 10%, #7c3aed 0, transparent 45%), linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #4338ca 100%);
    box-shadow: 0 10px 30px rgba(37, 99, 235, .25);
}
.aff-hero::after { content: ''; position: absolute; inset-inline-end: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .06); pointer-events: none; }
.aff-hero-text { position: relative; z-index: 1; min-width: 0; }
.aff-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 13px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); font-size: 12.5px; font-weight: 600; }
.aff-hero-title { margin: 14px 0 10px; font-size: 32px; line-height: 1.3; font-weight: 800; color: #fff; }
.aff-hero-lead { margin: 0 0 22px; max-width: 560px; color: rgba(255, 255, 255, .88); font-size: 15px; line-height: 1.8; }

.aff-art { position: relative; z-index: 1; }
.aff-art svg { display: block; width: 100%; max-width: 460px; height: auto; margin-inline: auto; }

/* the link box */
.aff-link { padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.aff-link-label { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; font-size: 13px; font-weight: 700; }
.aff-link-box { display: flex; gap: 8px; }
.aff-link-box input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 0; border-radius: 11px; background: #fff; color: #0f172a; font-size: 13.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; outline: none; }
.aff-link-box input:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }
.aff-copy { height: 44px; background: #fff; color: #1d4ed8; border-radius: 11px; }
.aff-copy:hover, .aff-copy:focus { background: #eff4ff; color: #1d4ed8; }
.aff-copy.is-done { background: #dcfce7; color: #15803d; }

.aff-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.aff-share-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: 16px; transition: transform .15s, background .15s; }
.aff-share-btn:hover, .aff-share-btn:focus { transform: translateY(-2px); color: #fff; }
.aff-share-btn.is-wa:hover { background: #25d366; }
.aff-share-btn.is-tg:hover { background: #229ed9; }
.aff-share-btn.is-x:hover { background: #0f172a; }
.aff-share-btn.is-in:hover { background: #0a66c2; }
.aff-share-btn.is-fb:hover { background: #1877f2; }
.aff-share-btn.is-mail:hover { background: #f59e0b; }
.aff-link.is-guest p { margin: 0 0 12px; color: rgba(255, 255, 255, .88); font-size: 13.5px; }

.aff-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 18px; }

/* content cards */
.aff-card { padding: 22px 24px; }
.aff-h { display: flex; align-items: center; gap: 11px; margin: 0 0 16px; color: var(--crc-ink); font-size: 17px; font-weight: 700; line-height: 1.4; }
.aff-h-icon { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--crc-accent-soft); color: var(--crc-accent); font-size: 15px; }
.aff-h-icon.is-green { background: var(--crc-success-soft); color: var(--crc-success); }
.aff-h-icon.is-violet { background: var(--crc-violet-soft); color: var(--crc-violet); }
.aff-h-icon.is-amber { background: #fffbeb; color: #d97706; }
.aff-h-icon.is-red { background: var(--crc-danger-soft); color: var(--crc-danger); }
.aff-text { margin: 0; color: var(--crc-text); font-size: 14.5px; line-height: 1.9; }

.aff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: stretch; }

.aff-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.aff-list li { position: relative; padding-inline-start: 28px; color: var(--crc-text); font-size: 14px; line-height: 1.8; }
.aff-list.is-check li::before { content: '\f00c'; font-family: 'Font Awesome 5 Free', 'FontAwesome'; font-weight: 900; position: absolute; inset-inline-start: 0; top: 4px; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: var(--crc-success-soft); color: var(--crc-success); font-size: 9.5px; line-height: 1; }
.aff-list.is-terms { counter-reset: aff-term; }
.aff-list.is-terms li { counter-increment: aff-term; padding-inline-start: 36px; padding-bottom: 11px; border-bottom: 1px dashed var(--crc-border); }
.aff-list.is-terms li:last-child { padding-bottom: 0; border-bottom: 0; }
.aff-list.is-terms li::before { content: counter(aff-term); position: absolute; inset-inline-start: 0; top: 3px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: var(--crc-surface-2); border: 1px solid var(--crc-border); color: var(--crc-muted); font-size: 12px; font-weight: 700; }
.aff-list.is-terms b { display: block; color: var(--crc-ink); }
.aff-list a { color: var(--crc-accent); font-weight: 600; }

/* steps */
.aff-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.aff-steps li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; background: var(--crc-surface-2); border: 1px solid var(--crc-border); }
.aff-steps li b { color: var(--crc-ink); font-size: 14.5px; }
.aff-steps li > span:last-child { color: var(--crc-muted); font-size: 13px; line-height: 1.7; }
.aff-step-n { width: 32px; height: 32px; margin-bottom: 8px; display: grid; place-items: center; border-radius: 10px; background: var(--crc-accent); color: #fff; font-size: 15px; font-weight: 800; }
.aff-steps li:nth-child(4) .aff-step-n { background: var(--crc-success); }
.aff-steps li:not(:last-child)::after { content: '\f104'; font-family: 'Font Awesome 5 Free', 'FontAwesome'; font-weight: 900; position: absolute; top: 24px; inset-inline-end: -13px; z-index: 1; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--crc-surface); border: 1px solid var(--crc-border); color: var(--crc-faint); font-size: 11px; }
html[dir="ltr"] .aff-steps li:not(:last-child)::after, [dir="ltr"] .aff-steps li:not(:last-child)::after { content: '\f105'; }

/* profit */
.aff-profit { display: flex; align-items: center; gap: 24px; }
.aff-profit-num { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 14px; background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; color: #92400e; font-size: 22px; font-weight: 700; }
.aff-profit-num b { color: #15803d; font-size: 28px; font-weight: 800; }

/* closing call to action */
.aff-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 22px 26px; border-radius: 16px; background: linear-gradient(135deg, #0f172a, #1e293b); color: #cbd5e1; }
.aff-cta h2 { margin: 0 0 4px; color: #fff; font-size: 18px; font-weight: 700; }
.aff-cta p { margin: 0; max-width: 640px; font-size: 13.5px; }
.aff-cta-btn { background: #fff; color: #0f172a; }
.aff-cta-btn:hover, .aff-cta-btn:focus { background: #e2e8f0; color: #0f172a; }

@media (max-width: 991px) {
    .aff-hero { grid-template-columns: 1fr; padding: 26px 22px; }
    .aff-art { order: -1; }
    .aff-art svg { max-width: 320px; }
    .aff-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aff-steps li:not(:last-child)::after { display: none; }
    .aff-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .aff-hero-title { font-size: 24px; }
    .aff-link-box { flex-direction: column; }
    .aff-copy { width: 100%; }
    .aff-steps { grid-template-columns: 1fr; }
    .aff-profit { flex-direction: column; align-items: flex-start; }
    .aff-card { padding: 18px 16px; }
}
