:root {
	--primary: #02316f;
	--success: #198754;
	--dark: #1d2c4d;
	--light: #f8f9fa;
	--border: #dee2e6;
}
.affiliates-page {
	min-height: 70vh;
}

/* ── Dashboard Hero Banner ── */
.aff-dash-hero {
	background: linear-gradient(145deg, #02316f 0%, #02316f 60%, #02316f 100%);
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: 28px;
	position: relative;
	box-shadow: 0 8px 40px rgba(2,49,111,0.18);
}
.aff-dash-hero::before {
	content: '';
	position: absolute;
	top: -100px;
	right: -100px;
	width: 340px;
	height: 340px;
	border-radius: 50%;
	background: rgba(255,255,255,0.05);
	pointer-events: none;
}
.aff-dash-hero::after {
	content: '';
	position: absolute;
	bottom: -60px;
	left: 30%;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: rgba(255,255,255,0.03);
	pointer-events: none;
}
.aff-dash-hero-inner {
	padding: 36px 40px 24px;
	position: relative;
	z-index: 1;
}
.aff-dash-user {
	display: flex;
	align-items: center;
	gap: 18px;
}
.aff-dash-avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(255,255,255,0.15);
	border: 2px solid rgba(255,255,255,0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.8rem;
	color: #fff;
	flex-shrink: 0;
}
.aff-dash-welcome {
	font-size: 0.8rem;
	color: rgba(255,255,255,0.65);
	text-transform: uppercase;
	letter-spacing: 0.8px;
	margin-bottom: 2px;
}
.aff-dash-name {
	font-size: 1.4rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
}
.aff-dash-email {
	font-size: 0.85rem;
	color: rgba(255,255,255,0.65);
	margin-top: 2px;
}
.aff-dash-refcode-block {
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.18);
	border-radius: 14px;
	padding: 16px 20px;
	backdrop-filter: blur(4px);
}
.aff-dash-refcode-label {
	font-size: 0.75rem;
	color: rgba(255,255,255,0.6);
	text-transform: uppercase;
	letter-spacing: 0.6px;
	margin-bottom: 8px;
}
.aff-dash-refcode-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}
.aff-dash-refcode {
	font-size: 1.2rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: 2px;
}
.aff-dash-copy-btn {
	background: rgba(255,255,255,0.15);
	border: 1px solid rgba(255,255,255,0.25);
	border-radius: 6px;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 500;
	padding: 5px 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 5px;
	transition: all 0.3s ease;
}
.aff-dash-copy-btn:hover {
	background: rgba(255,255,255,0.25);
}
.aff-dash-refurl {
	font-size: 0.78rem;
	color: rgba(255,255,255,0.5);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Stat Chips (bottom strip of hero) */
.aff-dash-chips {
	display: flex;
	border-top: 1px solid rgba(255,255,255,0.12);
	position: relative;
	z-index: 1;
}
.aff-dash-chip {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 20px;
	border-right: 1px solid rgba(255,255,255,0.1);
}
.aff-dash-chip:last-child {
	border-right: none;
}
.aff-dash-chip > i {
	font-size: 1.2rem;
	color: rgba(255,255,255,0.55);
	flex-shrink: 0;
}
.aff-dash-chip div {
	display: flex;
	flex-direction: column;
}
.aff-dash-chip strong {
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
}
.aff-dash-chip span {
	font-size: 0.73rem;
	color: rgba(255,255,255,0.55);
}

/* ── General Card ── */
.aff-card {
	background: #fff;
	border: 1px solid #e8edf3;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(2,49,111,0.06);
}
.aff-card-header {
	padding: 16px 22px;
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--dark);
	border-bottom: 1px solid #f0f3f7;
	background: #f8fafc;
	display: flex;
	align-items: center;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}
.aff-card-header i {
	color: var(--primary);
}
.aff-card-body {
	padding: 22px;
}

/* Status pill in card header */
.aff-status-pill {
	font-size: 0.72rem;
	font-weight: 700;
	border-radius: 20px;
	padding: 3px 10px;
	background: rgba(25,135,84,0.1);
	color: #198754;
	text-transform: none;
	letter-spacing: 0;
}

/* ── Profile Meta ── */
.aff-divider {
	border-color: #f0f3f7;
	margin: 18px 0;
}
.aff-profile-meta {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.aff-meta-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.875rem;
}
.aff-meta-label {
	color: #6c757d;
	display: flex;
	align-items: center;
}
.aff-meta-value {
	font-weight: 700;
	color: var(--dark);
}
.aff-highlight {
	color: var(--primary);
}

/* Earnings breakdown list */
.aff-earn-breakdown {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.aff-earn-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.875rem;
}
.aff-earn-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}
.aff-earn-lbl {
	flex: 1;
	color: #6c757d;
}
.aff-earn-val {
	font-weight: 700;
	color: var(--dark);
}

/* Balance progress bar */
.aff-balance-bar-wrap {
	height: 8px;
	border-radius: 6px;
	overflow: hidden;
	background: #e9ecef;
	display: flex;
}
.aff-balance-bar-paid {
	background: #198754;
	height: 100%;
}
.aff-balance-bar-pending {
	background: #b58b00;
	height: 100%;
}
.aff-balance-bar-legend {
	display: flex;
	justify-content: space-between;
	font-size: 0.75rem;
	color: #6c757d;
	margin-top: 6px;
}

/* ── Referral Link ── */
.aff-reflink-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.aff-link-box {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	background: #f0f4f9;
	border: 1.5px solid #dce4ef;
	border-radius: 10px;
	padding: 10px 14px;
	gap: 10px;
}
.aff-link-box > i {
	color: var(--primary);
	font-size: 1rem;
	flex-shrink: 0;
}
.aff-link-text {
	flex: 1;
	font-size: 0.83rem;
	color: var(--primary);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 500;
}
.aff-copy-btn {
	background: none;
	border: 1.5px solid #dce4ef;
	border-radius: 6px;
	padding: 5px 10px;
	cursor: pointer;
	color: var(--primary);
	font-size: 0.85rem;
	transition: all 0.3s ease;
	flex-shrink: 0;
}
.aff-copy-btn:hover {
	background: rgba(2,49,111,0.06);
	border-color: var(--primary);
}
.aff-share-buttons {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}
.aff-share-btn {
	border: none;
	border-radius: 6px;
	padding: 8px 16px;
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: all 0.3s ease;
}
.aff-share-btn:hover { opacity: 0.88; }
.aff-share-whatsapp { background: #25d366; color: #fff; }
.aff-share-email    { background: var(--primary); color: #fff; }

/* ── Request Payout Button ── */
.aff-request-btn {
	background: var(--primary);
	border: none;
	border-radius: 6px;
	padding: 8px 16px;
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 5px;
	transition: all 0.3s ease;
	box-shadow: 0 3px 10px rgba(2,49,111,0.22);
}
.aff-request-btn:hover {
	background: #012a60;
	box-shadow: 0 4px 12px rgba(2,49,111,0.3);
}

/* ── Tables ── */
.aff-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.87rem;
}
.aff-table thead tr {
	background: #f8fafc;
	border-bottom: 1px solid #f0f3f7;
}
.aff-table th {
	padding: 12px 20px;
	font-weight: 700;
	color: #6c757d;
	text-align: left;
	white-space: nowrap;
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.5px;
}
.aff-table td {
	padding: 13px 20px;
	border-bottom: 1px solid #f5f7fa;
	color: var(--dark);
	vertical-align: middle;
}
.aff-table tbody tr:last-child td {
	border-bottom: none;
}
.aff-table tbody tr:hover {
	background: #f8fafc;
}
.aff-td-truncate {
	max-width: 150px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ── Badges ── */
.aff-badge {
	display: inline-block;
	font-size: 0.73rem;
	font-weight: 700;
	border-radius: 20px;
	padding: 3px 10px;
	letter-spacing: 0.2px;
}
.aff-badge-yes     { background: rgba(25,135,84,0.1);   color: #198754; }
.aff-badge-no      { background: rgba(108,117,125,0.1); color: #6c757d; }
.aff-badge-paid    { background: rgba(25,135,84,0.1);   color: #198754; }
.aff-badge-pending { background: rgba(255,193,7,0.15);  color: #b58b00; }
.aff-badge-converted { background: rgba(25,135,84,0.1);   color: #198754; }

/* Auth Layout */
.aff-auth-wrap {
	margin: 20px 0 60px;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 8px 40px rgba(2,49,111,0.13);
}

/* Left Hero Panel */
.aff-auth-hero {
	background: linear-gradient(145deg, #02316f 0%, #0a4fa8 60%, #1569d3 100%);
	height: 100%;
	min-height: 560px;
	display: flex;
	align-items: center;
	padding: 60px 50px;
	position: relative;
	overflow: hidden;
}
.aff-auth-hero::before {
	content: '';
	position: absolute;
	top: -80px;
	right: -80px;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: rgba(255,255,255,0.05);
}
.aff-auth-hero::after {
	content: '';
	position: absolute;
	bottom: -60px;
	left: -60px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: rgba(255,255,255,0.04);
}
.aff-auth-hero-inner {
	position: relative;
	z-index: 1;
}
.aff-auth-logo {
	width: 56px;
	height: 56px;
	background: rgba(255,255,255,0.15);
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
	color: #fff;
	margin-bottom: 28px;
}
.aff-auth-hero-title {
	font-size: 1.7rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.3;
	margin-bottom: 12px;
}
.aff-auth-hero-sub {
	color: rgba(255,255,255,0.75);
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 36px;
}
.aff-benefit-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.aff-benefit-list li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}
.aff-benefit-icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(255,255,255,0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	color: #fff;
	flex-shrink: 0;
	margin-top: 2px;
}
.aff-benefit-list li div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.aff-benefit-list li strong {
	color: #fff;
	font-size: 0.92rem;
	font-weight: 600;
}
.aff-benefit-list li span {
	color: rgba(255,255,255,0.65);
	font-size: 0.82rem;
}

/* Right Auth Card */
.aff-auth-card {
	background: #fff;
	height: 100%;
	padding: 50px 48px;
	display: flex;
	flex-direction: column;
}

/* Tabs */
.aff-auth-tabs {
	display: flex;
	border-bottom: 2px solid #e9ecef;
	margin-bottom: 28px;
	gap: 4px;
}
.aff-auth-tab {
	background: none;
	border: none;
	padding: 10px 20px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #6c757d;
	cursor: pointer;
	position: relative;
	transition: color 0.2s;
	margin-bottom: -2px;
}
.aff-auth-tab::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--primary);
	border-radius: 2px 2px 0 0;
	transform: scaleX(0);
	transition: transform 0.2s;
}
.aff-auth-tab.active {
	color: var(--primary);
}
.aff-auth-tab.active::after {
	transform: scaleX(1);
}

/* Panels */
.aff-auth-panel {
	display: none;
	flex-direction: column;
	flex: 1;
}
.aff-auth-panel.active {
	display: flex;
}
.aff-auth-intro {
	color: #6c757d;
	font-size: 0.88rem;
	margin-bottom: 24px;
	line-height: 1.6;
}

/* Fields */
.aff-field {
	margin-bottom: 18px;
}
.aff-form-label {
	display: block;
	font-size: 0.83rem;
	font-weight: 600;
	color: var(--dark);
	margin-bottom: 7px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}
.aff-input-wrap {
	position: relative;
}
.aff-input-wrap > i {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #adb5bd;
	font-size: 0.95rem;
	pointer-events: none;
}
.aff-form-input {
	width: 100%;
	padding: 11px 14px 11px 40px;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	font-size: 0.9rem;
	color: var(--dark);
	background: #f8fafc;
	outline: none;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.aff-form-input:focus {
	border-color: var(--primary);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(2,49,111,0.08);
}
.aff-form-input::placeholder {
	color: #c0c8d4;
}
.aff-forgot {
	text-align: right;
	margin-top: -8px;
	margin-bottom: 8px;
}
.aff-forgot a {
	font-size: 0.82rem;
	color: var(--primary);
	text-decoration: none;
}
.aff-forgot a:hover {
	text-decoration: underline;
}
.aff-submit-btn {
	background: var(--primary);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 8px 16px;
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	letter-spacing: 0.3px;
	transition: all 0.3s ease;
}
.aff-submit-btn:hover {
	background: #0b5ed7;
	box-shadow: 0 4px 12px rgba(13,110,253,0.3);
}
.aff-submit-register {
	background: #198754;
	color: #fff;
}
.aff-submit-register:hover {
	background: #146c43;
	box-shadow: 0 4px 12px rgba(25,135,84,0.3);
}
.aff-auth-switch {
	text-align: center;
	font-size: 0.85rem;
	color: #6c757d;
	margin-top: 20px;
	margin-bottom: 0;
}
.aff-auth-switch a {
	color: var(--primary);
	font-weight: 600;
	text-decoration: none;
}
.aff-auth-switch a:hover {
	text-decoration: underline;
}

@media (max-width: 991px) {
	.aff-auth-hero {
		min-height: auto;
		padding: 50px 36px;
	}
	.aff-auth-card {
		padding: 40px 36px;
	}
}
@media (max-width: 575px) {
	.aff-auth-hero {
		padding: 40px 24px;
	}
	.aff-auth-hero-title {
		font-size: 1.4rem;
	}
	.aff-auth-card {
		padding: 32px 24px;
	}
}

/* ── Responsive ── */
@media (max-width: 991px) {
	.aff-dash-chips {
		flex-wrap: wrap;
	}
	.aff-dash-chip {
		flex: 1 1 33%;
		border-bottom: 1px solid rgba(255,255,255,0.1);
	}
	.aff-reflink-row {
		flex-direction: column;
		align-items: stretch;
	}
}
@media (max-width: 767px) {
	.aff-dash-hero-inner {
		padding: 28px 24px 20px;
	}
	.aff-dash-chip {
		flex: 1 1 50%;
		padding: 13px 16px;
	}
}
@media (max-width: 575px) {
	.aff-dash-hero {
		border-radius: 14px;
	}
	.aff-dash-hero-inner {
		padding: 22px 18px 16px;
	}
	.aff-dash-name {
		font-size: 1.15rem;
	}
	.aff-dash-chip {
		flex: 1 1 50%;
		padding: 12px 14px;
	}
	.aff-dash-chip strong {
		font-size: 0.9rem;
	}
	.aff-card {
		border-radius: 12px;
	}
	.aff-table th,
	.aff-table td { padding: 10px 14px; }
	.aff-auth-wrap { border-radius: 14px; }
	.aff-share-buttons {
		width: 100%;
	}
	.aff-share-btn {
		flex: 1;
		justify-content: center;
	}
}

/* Dashboard Tab Navigation */
.aff-dash-nav {
	display: flex;
	gap: 4px;
	margin-bottom: 24px;
	background: #fff;
	border: 1px solid #e8edf3;
	border-radius: 14px;
	padding: 6px;
	box-shadow: 0 2px 8px rgba(2,49,111,0.05);
}
.aff-dash-tab {
	flex: 1;
	background: none;
	border: none;
	border-radius: 10px;
	padding: 10px 16px;
	font-size: 0.88rem;
	font-weight: 600;
	color: #6c757d;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	transition: background 0.2s, color 0.2s;
	white-space: nowrap;
}
.aff-dash-tab i { font-size: 1rem; }
.aff-dash-tab:hover { background: #f0f5fb; color: var(--dark); }
.aff-dash-tab.active {
	background: var(--primary);
	box-shadow: 0 3px 10px rgba(2,49,111,0.22);
	color: #fff;
}
.aff-dash-panel { display: none; }
.aff-dash-panel.active { display: block; }

@media (max-width: 575px) {
	.aff-dash-nav { gap: 2px; padding: 4px; }
	.aff-dash-tab { padding: 9px 8px; font-size: 0.78rem; gap: 4px; }
	.aff-dash-tab span { display: none; }
	.aff-dash-tab i { font-size: 1.1rem; }
}

/* Payment Method Section */
.aff-method-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 24px;
}
.aff-method-card {
	position: relative;
	background: #f8fafc;
	border: 2px solid #e8edf3;
	border-radius: 14px;
	padding: 18px 20px;
	cursor: pointer;
	text-align: left;
	display: flex;
	align-items: center;
	gap: 16px;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.aff-method-card:hover {
	border-color: #b8cce8;
	background: #f0f5fb;
}
.aff-method-card.active {
	border-color: var(--primary);
	background: rgba(2,49,111,0.04);
	box-shadow: 0 0 0 3px rgba(2,49,111,0.08);
}
.aff-method-check {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid #d0d9e5;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.72rem;
	color: #fff;
	background: #fff;
	transition: background 0.2s, border-color 0.2s;
}
.aff-method-card.active .aff-method-check {
	background: var(--primary);
	border-color: var(--primary);
}
.aff-method-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: rgba(2,49,111,0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
	color: var(--primary);
	flex-shrink: 0;
	transition: background 0.2s;
}
.aff-method-card.active .aff-method-icon {
	background: rgba(2,49,111,0.14);
}
.aff-method-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.aff-method-info strong {
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--dark);
}
.aff-method-info span {
	font-size: 0.78rem;
	color: #6c757d;
	line-height: 1.4;
}
.aff-pm-panel { display: none; }
.aff-pm-panel.active {
	display: block;
	padding-top: 20px;
	border-top: 1px solid #f0f3f7;
	margin-top: 4px;
}

/* Saved payout method row (PayPal / Bank) */
.aff-saved-info-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: #f0f5fb;
	border: 1.5px solid #dce6f0;
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 16px;
}
.aff-saved-info-left {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}
.aff-saved-info-icon {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: rgba(2,49,111,0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	color: var(--primary);
	flex-shrink: 0;
}
.aff-saved-info-left > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.aff-saved-info-left strong {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--dark);
}
.aff-saved-info-left span {
	font-size: 0.82rem;
	color: #6c757d;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Saved card — looks like a real card */
.aff-saved-card-display {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(135deg, #02316f 0%, #1569d3 100%);
	border-radius: 14px;
	padding: 22px 26px;
	gap: 16px;
	margin-bottom: 2px;
}
.aff-saved-card-inner {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.aff-saved-card-brand {
	display: flex;
	align-items: center;
	gap: 8px;
	color: rgba(255,255,255,0.7);
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}
.aff-saved-card-brand i { font-size: 1.1rem; color: #fff; }
.aff-saved-card-number {
	font-size: 1.05rem;
	font-weight: 600;
	color: #fff;
	letter-spacing: 3px;
}
.aff-pm-update-btn {
	background: rgba(255,255,255,0.15);
	border: 1px solid rgba(255,255,255,0.3);
	color: #fff;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
	flex-shrink: 0;
	transition: all 0.3s ease;
}
.aff-pm-update-btn:hover { background: rgba(255,255,255,0.28); }

/* Saved bank */
.aff-saved-bank-display {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f0f5fb;
	border: 1.5px solid #dce6f0;
	border-radius: 12px;
	padding: 18px 22px;
	gap: 16px;
	margin-bottom: 2px;
}
.aff-saved-bank-inner {
	display: flex;
	align-items: center;
	gap: 14px;
}
.aff-saved-bank-inner > i {
	font-size: 1.6rem;
	color: var(--primary);
	flex-shrink: 0;
}
.aff-saved-bank-inner > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.aff-saved-bank-inner strong {
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--dark);
}
.aff-saved-bank-inner span {
	font-size: 0.82rem;
	color: #6c757d;
	letter-spacing: 1px;
}
.aff-saved-bank-name {
	font-style: normal;
	font-size: 0.78rem;
	color: #6c757d;
	letter-spacing: 0;
}
.aff-pm-update-bank {
	background: none;
	border: 1px solid var(--border);
	color: #495057;
	transition: all 0.3s ease;
}
.aff-pm-update-bank:hover {
	background: var(--light);
	border-color: var(--primary);
	color: var(--primary);
}

/* Hint text above Stripe element */
.aff-pm-hint {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 0.83rem;
	color: #6c757d;
	margin-bottom: 14px;
	line-height: 1.5;
}
.aff-pm-hint i { color: #198754; font-size: 0.95rem; flex-shrink: 0; }

/* Stripe element */
.aff-stripe-element {
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	padding: 13px 14px;
	background: #f8fafc;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.aff-stripe-element:focus-within {
	border-color: var(--primary);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(2,49,111,0.08);
}
.aff-stripe-errors {
	color: #dc3545;
	font-size: 0.83rem;
	margin-top: 6px;
	min-height: 1.2em;
}

/* Save button inside payment panels */
.aff-pm-save-btn {
	background: var(--primary);
	color: #fff;
}
.aff-pm-save-btn:hover {
	background: #012a60;
	box-shadow: 0 4px 12px rgba(2,49,111,0.3);
}

/* Plain input (no icon prefix) */
.aff-form-input-plain { padding-left: 14px; }

/* ── Activity List (Clicks) ── */
.aff-activity-list { display: flex; flex-direction: column; }
.aff-activity-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 22px;
	border-bottom: 1px solid #f5f7fa;
	border-left: 3px solid transparent;
	transition: background 0.15s;
}
.aff-activity-row:last-child { border-bottom: none; }
.aff-activity-row:hover { background: #f8fafc; }
.aff-activity-row.converted { border-left-color: #198754; }
.aff-activity-row.pending   { border-left-color: #e0a800; }
.aff-activity-left {
	display: flex;
	align-items: center;
	gap: 12px;
}
.aff-activity-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	flex-shrink: 0;
}
.aff-activity-dot.converted { background: #198754; }
.aff-activity-dot.pending   { background: #e0a800; }
.aff-activity-label {
	font-size: 0.87rem;
	font-weight: 600;
	color: var(--dark);
	line-height: 1.2;
}
.aff-activity-date {
	font-size: 0.77rem;
	color: #6c757d;
	margin-top: 2px;
}

/* ── Transaction List (Payouts) ── */
.aff-tx-list { display: flex; flex-direction: column; }
.aff-tx-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 22px;
	border-bottom: 1px solid #f5f7fa;
	transition: background 0.15s;
}
.aff-tx-row:last-child { border-bottom: none; }
.aff-tx-row:hover { background: #f8fafc; }
.aff-tx-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	flex-shrink: 0;
}
.aff-tx-icon.paid       { background: rgba(25,135,84,0.12);  color: #198754; }
.aff-tx-icon.processing { background: rgba(13,110,253,0.1);  color: #0d6efd; }
.aff-tx-icon.pending    { background: rgba(255,193,7,0.15);  color: #b58b00; }
.aff-tx-icon.failed     { background: rgba(220,53,69,0.1);   color: #dc3545; }
.aff-tx-body { flex: 1; min-width: 0; }
.aff-tx-amount {
	font-size: 1rem;
	font-weight: 700;
	color: var(--dark);
	line-height: 1.2;
}
.aff-tx-date {
	font-size: 0.77rem;
	color: #6c757d;
	margin-top: 2px;
}
.aff-badge-failed { background: rgba(220,53,69,0.1); color: #dc3545; }

/* Empty state */
.aff-empty-state {
	padding: 32px 22px;
	text-align: center;
	color: #6c757d;
	font-size: 0.875rem;
}

/* Load More */
.aff-load-more-wrap {
	padding: 16px;
	text-align: center;
	border-top: 1px solid var(--border);
}
.aff-load-more-btn {
	background: none;
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 8px 24px;
	font-size: 0.85rem;
	color: var(--primary);
	cursor: pointer;
	transition: all 0.3s ease;
}
.aff-load-more-btn:hover {
	background: var(--light);
	border-color: var(--primary);
}

@media (max-width: 575px) {
	.aff-method-grid { grid-template-columns: 1fr; }
	.aff-saved-card-display { flex-direction: column; align-items: flex-start; }
	.aff-saved-bank-display { flex-direction: column; align-items: flex-start; }
	.aff-saved-info-row { flex-direction: column; align-items: flex-start; }
}
