/**
 * CLAADSS Affiliate program UI — modern 2027
 */
.aff-landing, .aff-wrap { max-width: 1080px; margin: 0 auto; padding: 12px 16px 48px; }
.aff-v2 { --aff-ink: #0b1020; --aff-muted: #64748b; --aff-line: rgba(148,163,184,.28); --aff-card: #fff; --aff-radius: 20px; }

/* Hero */
.aff-hero--v2 {
	position: relative; overflow: hidden;
	padding: 40px 28px 32px; border-radius: 28px;
	background: linear-gradient(145deg, #0f0c29 0%, #302b63 48%, #24243e 100%);
	color: #fff; margin-bottom: 22px;
	box-shadow: 0 24px 60px rgba(48,43,99,.35);
}
.aff-hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.aff-orb {
	position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55;
}
.aff-orb--1 { width: 220px; height: 220px; top: -60px; left: -40px; background: #6366f1; }
.aff-orb--2 { width: 180px; height: 180px; bottom: -50px; right: 10%; background: #ec4899; }
.aff-orb--3 { width: 140px; height: 140px; top: 30%; right: -30px; background: #22d3ee; opacity: .35; }
.aff-hero-inner { position: relative; z-index: 1; }
.aff-pill {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 7px 14px; border-radius: 999px; font-size: .75rem; font-weight: 800;
	background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); margin-bottom: 14px;
	backdrop-filter: blur(8px); letter-spacing: .02em;
}
.aff-pill--dark { background: rgba(255,255,255,.1); color: #fff; }
.aff-hero-title {
	margin: 0 0 12px; font-size: clamp(1.65rem, 4vw, 2.55rem); font-weight: 900;
	letter-spacing: -.03em; color: #fff !important; line-height: 1.12;
	max-width: 16ch;
}
.aff-hero-sub {
	margin: 0 0 20px; max-width: 54ch; line-height: 1.6;
	color: rgba(255,255,255,.9) !important; font-weight: 550; font-size: 1.02rem;
}
.aff-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.aff-hero-stats {
	display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px;
}
@media (max-width: 720px) {
	.aff-hero-stats { grid-template-columns: 1fr 1fr; }
	.aff-hero--v2 { padding: 28px 18px 22px; border-radius: 22px; }
}
.aff-hstat {
	padding: 12px 12px; border-radius: 14px;
	background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
	backdrop-filter: blur(10px);
}
.aff-hstat strong {
	display: block; font-size: 1.15rem; font-weight: 900; color: #fff;
	margin-bottom: 2px; letter-spacing: -.02em;
}
.aff-hstat span {
	font-size: .72rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: .04em; color: rgba(255,255,255,.7);
}

/* Buttons */
.aff-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 18px; border-radius: 14px; font-weight: 800; text-decoration: none !important;
	border: 2px solid transparent; cursor: pointer; font-size: .95rem;
	transition: transform .15s ease, box-shadow .15s ease;
}
.aff-btn:hover { transform: translateY(-1px); }
.aff-btn--lg { padding: 14px 22px; font-size: 1rem; border-radius: 16px; }
.aff-btn--block { width: 100%; }
.aff-btn--primary {
	background: linear-gradient(105deg, #fbbf24, #f59e0b 60%, #f97316);
	color: #1c1917 !important; border-color: transparent;
	box-shadow: 0 10px 28px rgba(245,158,11,.4);
}
.aff-btn--ghost {
	background: rgba(255,255,255,.06); color: #fff !important;
	border-color: rgba(255,255,255,.35);
}
button.aff-btn--primary {
	background: linear-gradient(105deg, #fbbf24, #f59e0b 60%, #f97316);
	color: #1c1917 !important; border: 0;
	box-shadow: 0 10px 28px rgba(245,158,11,.4);
}
.aff-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Requirement banner */
.aff-req-banner {
	display: flex; gap: 16px; align-items: flex-start;
	padding: 18px 20px; border-radius: var(--aff-radius); margin-bottom: 28px;
	background: linear-gradient(120deg, #eef2ff, #fdf4ff 55%, #ecfeff);
	border: 1px solid #c7d2fe;
	box-shadow: 0 10px 30px rgba(99,102,241,.08);
}
.aff-req-ico {
	width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-size: 1.2rem;
}
.aff-req-body h2 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 900; color: var(--aff-ink); }
.aff-req-body p { margin: 0; color: #475569; font-weight: 600; line-height: 1.55; font-size: .95rem; }

/* Sections */
.aff-section { margin-bottom: 36px; }
.aff-section-head { margin-bottom: 16px; }
.aff-kicker {
	display: inline-block; font-size: .72rem; font-weight: 900; text-transform: uppercase;
	letter-spacing: .08em; color: #6366f1; margin-bottom: 6px;
}
.aff-section-head h2 {
	margin: 0 0 8px; font-size: clamp(1.25rem, 2.5vw, 1.65rem);
	font-weight: 900; color: var(--aff-ink); letter-spacing: -.02em;
}
.aff-section-sub { margin: 0; max-width: 60ch; color: var(--aff-muted); font-weight: 600; line-height: 1.5; }

.aff-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.aff-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 800px) {
	.aff-grid-3, .aff-grid-2 { grid-template-columns: 1fr; }
}

.aff-card {
	position: relative; padding: 22px 18px; border-radius: 18px;
	border: 1px solid var(--aff-line); background: var(--aff-card);
	box-shadow: 0 10px 28px rgba(15,23,42,.05);
}
.aff-card--glow:hover {
	border-color: #a5b4fc;
	box-shadow: 0 16px 40px rgba(99,102,241,.12);
}
.aff-step-n {
	position: absolute; top: 16px; right: 16px;
	font-size: .75rem; font-weight: 900; color: #c7d2fe; letter-spacing: .06em;
}
.aff-card-ico {
	width: 48px; height: 48px; border-radius: 14px; display: inline-flex;
	align-items: center; justify-content: center; color: #fff; margin-bottom: 14px; font-size: 1.1rem;
}
.aff-card-ico--1 { background: linear-gradient(135deg,#6366f1,#4f46e5); }
.aff-card-ico--2 { background: linear-gradient(135deg,#ec4899,#db2777); }
.aff-card-ico--3 { background: linear-gradient(135deg,#10b981,#059669); }
.aff-card h3 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 900; color: var(--aff-ink); }
.aff-card p { margin: 0; color: var(--aff-muted); font-size: .92rem; line-height: 1.5; font-weight: 600; }

/* Package cards */
.aff-pack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .aff-pack-grid { grid-template-columns: 1fr; } }
.aff-pack-card {
	display: flex; gap: 14px; padding: 16px; border-radius: 16px;
	border: 1px solid var(--aff-line); background: #fff;
	box-shadow: 0 8px 22px rgba(15,23,42,.04);
}
.aff-pack-ico {
	width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(145deg, #eef2ff, #e0e7ff); color: #4f46e5; font-size: 1.1rem;
}
.aff-pack-body h3 { margin: 0 0 4px; font-size: .98rem; font-weight: 900; color: var(--aff-ink); }
.aff-pack-body p { margin: 0 0 8px; font-size: .85rem; color: var(--aff-muted); font-weight: 600; line-height: 1.4; }
.aff-pack-url {
	display: block; padding: 8px 10px; border-radius: 10px; background: #f8fafc;
	border: 1px dashed #cbd5e1; font-size: .72rem; color: #334155; word-break: break-all;
	font-weight: 650;
}

/* Benefits */
.aff-benefit {
	display: flex; gap: 14px; padding: 16px; border-radius: 16px;
	background: #fff; border: 1px solid var(--aff-line);
}
.aff-benefit-ico {
	width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	background: #0f172a; color: #fbbf24; font-size: 1rem;
}
.aff-benefit h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 900; color: var(--aff-ink); }
.aff-benefit p { margin: 0; color: var(--aff-muted); font-size: .9rem; font-weight: 600; line-height: 1.45; }

/* CTA band */
.aff-cta-band {
	border-radius: 24px; padding: 4px;
	background: linear-gradient(120deg, #6366f1, #a855f7, #ec4899);
	margin-bottom: 24px;
}
.aff-cta-band-inner {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	padding: 22px 24px; border-radius: 21px; background: #0b1020; color: #fff;
}
.aff-cta-band-inner h2 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 900; color: #fff !important; }
.aff-cta-band-inner p { margin: 0; color: rgba(255,255,255,.8); font-weight: 600; max-width: 42ch; }

/* Generic boxes / forms */
.aff-box {
	padding: 20px 18px 18px; border-radius: 18px; border: 1px solid var(--aff-line); background: #fff;
	box-shadow: 0 10px 28px rgba(15,23,42,.05); margin-bottom: 16px;
}
.aff-box h2 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 900; color: var(--aff-ink); }
.aff-h1 { margin: 0 0 8px; font-size: 1.55rem; font-weight: 900; color: var(--aff-ink); letter-spacing: -.02em; }
.aff-h1--light { color: #fff !important; }
.aff-lead { color: #475569; font-weight: 600; line-height: 1.55; }
.aff-lead--light { color: rgba(255,255,255,.88) !important; }
.aff-checklist { margin: 0; padding: 0 0 0 1.1rem; color: #334155; font-weight: 650; }
.aff-checklist li { margin: 0 0 6px; }
.aff-note { margin: 12px 0 0; font-size: .85rem; color: var(--aff-muted); font-weight: 600; }
.aff-note--center { text-align: center; }
.aff-note a { color: #4f46e5; font-weight: 800; text-decoration: none; }
.aff-terms-box p { margin: 0; color: var(--aff-muted); font-size: .88rem; line-height: 1.55; font-weight: 600; }

/* Register layout */
.aff-reg-layout {
	display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: stretch;
}
@media (max-width: 860px) {
	.aff-reg-layout { grid-template-columns: 1fr; }
}
.aff-reg-aside {
	position: relative; overflow: hidden;
	padding: 28px 24px; border-radius: 24px;
	background: linear-gradient(160deg, #1e1b4b, #4f46e5 55%, #7c3aed);
	color: #fff; box-shadow: 0 20px 50px rgba(79,70,229,.28);
}
.aff-aside-list {
	list-style: none; margin: 18px 0 20px; padding: 0;
}
.aff-aside-list li {
	display: flex; gap: 10px; align-items: flex-start;
	margin: 0 0 10px; font-weight: 700; font-size: .92rem;
	color: rgba(255,255,255,.95); line-height: 1.4;
}
.aff-aside-list i { color: #86efac; margin-top: 3px; }
.aff-aside-badge {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	padding: 12px 14px; border-radius: 14px;
	background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
	font-weight: 800; font-size: .85rem;
}
.aff-aside-badge-ico {
	width: 36px; height: 36px; border-radius: 10px;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,.15); font-size: 1rem;
}
.aff-reg-form-card { margin: 0; padding: 24px 22px; }
.aff-req-chip {
	display: flex; gap: 10px; align-items: flex-start;
	padding: 12px 14px; border-radius: 12px; margin-bottom: 16px;
	background: #fff7ed; border: 1px solid #fdba74; color: #9a3412;
	font-weight: 700; font-size: .88rem; line-height: 1.4;
}
.aff-req-chip i { margin-top: 2px; color: #ea580c; }
.aff-label { display: block; font-weight: 800; font-size: .88rem; color: #334155; margin: 12px 0 8px; }
.aff-req { color: #ef4444; }
.aff-hint { margin: 6px 0 0; font-size: .8rem; color: var(--aff-muted); font-weight: 600; }

.aff-method-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
@media (max-width: 480px) { .aff-method-cards { grid-template-columns: 1fr; } }
.aff-method-card { cursor: pointer; margin: 0; }
.aff-method-card input { position: absolute; opacity: 0; pointer-events: none; }
.aff-method-face {
	display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
	padding: 14px 14px; border-radius: 14px; border: 2px solid #e2e8f0;
	background: #f8fafc; transition: border-color .15s, background .15s, box-shadow .15s;
}
.aff-method-face i { font-size: 1.35rem; color: #4f46e5; margin-bottom: 4px; }
.aff-method-face strong { font-size: .95rem; color: var(--aff-ink); font-weight: 900; }
.aff-method-face em { font-style: normal; font-size: .78rem; color: var(--aff-muted); font-weight: 650; }
.aff-method-card input:checked + .aff-method-face {
	border-color: #6366f1; background: #eef2ff;
	box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.aff-method-card input:focus-visible + .aff-method-face { outline: 2px solid #6366f1; outline-offset: 2px; }

.aff-form label { display: block; font-weight: 800; font-size: .85rem; color: #334155; margin: 10px 0 5px; }
.aff-input {
	width: 100%; max-width: 100%; box-sizing: border-box;
	padding: 12px 14px; border: 2px solid #e2e8f0; border-radius: 12px; font-size: 16px; font-weight: 600;
	background: #fff; color: #0f172a;
}
.aff-input:focus { border-color: #818cf8; outline: none; box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.aff-check {
	display: flex !important; gap: 10px; align-items: flex-start;
	font-weight: 650 !important; font-size: .88rem !important; color: #475569 !important;
	margin: 16px 0 !important;
}
.aff-check input { margin-top: 3px; }
.aff-alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 700; font-size: .9rem; }
.aff-alert--ok { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }
.aff-alert--err { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* Dashboard */
.aff-dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.aff-status { padding: 5px 12px; border-radius: 999px; font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.aff-status--active { background: #d1fae5; color: #065f46; }
.aff-status--pending { background: #fef3c7; color: #92400e; }
.aff-status--suspended, .aff-status--rejected { background: #fee2e2; color: #991b1b; }
.aff-stats {
	display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-bottom: 16px;
}
@media (max-width: 700px) { .aff-stats { grid-template-columns: 1fr 1fr; } }
.aff-stat {
	padding: 14px; border-radius: 14px; border: 1px solid var(--aff-line);
	background: linear-gradient(165deg, #fff, #f8fafc);
}
.aff-stat-l { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--aff-muted); margin-bottom: 4px; }
.aff-stat-v { font-size: 1.25rem; font-weight: 900; color: var(--aff-ink); }
.aff-link-row { display: flex; gap: 8px; flex-wrap: wrap; }
.aff-link-row .aff-input { flex: 1 1 220px; }
.aff-code { font-weight: 700; color: #334155; }
.aff-examples { margin: 0; padding: 0; list-style: none; }
.aff-examples li {
	display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
	padding: 10px 0; border-bottom: 1px solid #f1f5f9;
}
.aff-examples li:last-child { border-bottom: 0; }
.aff-ex-label {
	flex: 0 0 auto; min-width: 110px; font-size: .8rem; font-weight: 800; color: #475569;
}
.aff-ex-url {
	flex: 1 1 200px; font-size: .75rem; word-break: break-all; color: #334155;
	background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px;
}
.aff-copy-mini {
	flex: 0 0 auto; padding: 7px 12px; border-radius: 10px; border: 0;
	background: #eef2ff; color: #4338ca; font-weight: 800; font-size: .78rem; cursor: pointer;
}
.aff-copy-mini:hover { background: #e0e7ff; }
.aff-muted { color: var(--aff-muted); font-size: .9rem; font-weight: 600; }
.aff-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.aff-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.aff-table th, .aff-table td { padding: 10px 8px; border-bottom: 1px solid #e2e8f0; text-align: left; }
.aff-table th { font-weight: 800; color: #475569; background: #f8fafc; }
.aff-terms { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e2e8f0; }
.aff-terms h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 900; color: var(--aff-ink); }
.aff-terms p { margin: 0; color: var(--aff-muted); font-size: .88rem; line-height: 1.5; font-weight: 600; }

.aff-withdraw-hint {
	display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; margin-bottom: 12px;
	background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; font-weight: 700; font-size: .88rem;
}
.aff-withdraw-hint i { margin-top: 2px; }
