/* Smart Affiliate Manager - front-end styles */
.sam, .sam * { box-sizing: border-box; }
.sam { font-family: 'Poppins', sans-serif; }
.sam svg { flex: none; }
.sam-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

/* Notices */
.sam-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; }
.sam-notice.sam-ok { background: #e7f7ec; color: #14532d; }
.sam-notice.sam-err { background: #fdecea; color: #7f1d1d; }

/* ---------- Gradient forms (register + student form) ---------- */
.sam-grad {
	background: linear-gradient(135deg, #8b55e6 0%, #4a7de8 100%);
	border-radius: 14px;
	padding: 48px 60px;
	color: #fff;
	box-shadow: 0 8px 30px rgba(74, 125, 232, .18);
}
.sam-grad a { color: #fff; }
.sam-title { color: #fff; font-size: 24px; font-weight: 500; margin: 0 0 28px; display: flex; align-items: center; gap: 12px; }
.sam-dot { width: 16px; height: 16px; border: 2px solid #fff; border-radius: 50%; display: inline-block; }
.sam-center { color: #fff; text-align: center; font-size: 28px; font-weight: 600; margin: 0 0 30px; }

.sam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 38px; align-items: end; }
.sam-full { grid-column: 1 / -1; }
.sam-col label { display: block; font-size: 16px; margin-bottom: 6px; color: inherit; font-weight: 400; }

.sam-grad input[type=text], .sam-grad input[type=email], .sam-grad input[type=password], .sam-grad select {
	width: 100%; height: 58px; padding: 0 24px;
	background: transparent; color: #fff;
	border: 1px solid rgba(255, 255, 255, .55); border-radius: 6px;
	font: 400 16px 'Poppins', sans-serif; outline: none; box-shadow: none;
}
.sam-grad input::placeholder { color: rgba(255, 255, 255, .8); }
.sam-grad input:focus, .sam-grad select:focus { border-color: #fff; }
.sam-grad select { appearance: none; -webkit-appearance: none; cursor: pointer;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='white' stroke-width='2'/></svg>") no-repeat right 18px center; }
.sam-grad select option { color: #222; background: #fff; }
.sam-grad input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s; }

.sam-pw { position: relative; }
.sam-pw input { padding-right: 52px !important; }
.sam-eye { position: absolute; right: 8px; top: 0; height: 100%; width: 44px; background: transparent !important; border: 0 !important; color: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }

.sam-check { display: flex !important; align-items: center; gap: 10px; cursor: pointer; font-size: 16px; }
.sam-check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border: 2px solid #fff; border-radius: 50%; background: transparent; margin: 0; cursor: pointer; }
.sam-check input:checked { background: #fff; box-shadow: inset 0 0 0 4px #6a62e4; }
.sam-terms { align-self: center; }
.sam-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sam-link { text-decoration: underline; font-size: 16px; }

.sam-pill {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 14px 38px; border-radius: 40px; cursor: pointer;
	border: 2px solid #fff; color: #fff;
	background: linear-gradient(135deg, #4a7de8, #8b55e6);
	font: 500 17px 'Poppins', sans-serif; transition: transform .15s;
}
.sam-pill:hover { transform: translateY(-1px); }
.sam-pill svg { width: 18px; height: 18px; }

/* ---------- Login ---------- */
.sam-login-wrap { background: #eef0f6; padding: 70px 20px; border-radius: 12px; font-family: 'Inter', sans-serif; }
.sam-login { max-width: 444px; margin: 0 auto; background: #fff; border-radius: 12px; padding: 56px 60px; box-shadow: 0 4px 20px rgba(0, 0, 0, .05); font-family: 'Inter', sans-serif; }
.sam-login h3 { text-align: center; font-size: 24px; font-weight: 600; margin: 0; color: #23262f; }
.sam-sub { text-align: center; color: #aab0bd; margin: 8px 0 30px; }
.sam-login label { display: block; font-weight: 600; font-size: 14px; color: #23262f; margin: 0 0 8px; }
.sam-login input { width: 100%; height: 48px; padding: 0 18px; border: 1px solid #e8eaf0; border-radius: 10px; font: 400 15px 'Inter', sans-serif; margin-bottom: 22px; outline: none; background: #fff; }
.sam-login input:focus { border-color: #8a5cdd; }
.sam-pw-box { display: flex; }
.sam-pw-box input { border-radius: 10px 0 0 10px; margin-bottom: 22px; padding-right: 18px !important; }
.sam-pw-box .sam-eye { position: static; height: 48px; width: 50px; background: #f1f4f8 !important; border-radius: 0 10px 10px 0; color: #23262f; }
.sam-btn { display: block; width: 100%; height: 48px; margin-top: 12px; background: #885de0; color: #fff; border: 0; border-radius: 8px; font: 600 15px 'Inter', sans-serif; cursor: pointer; }
.sam-btn:hover { background: #7a4fd3; }

/* ---------- Dashboard ---------- */
.sam-app { display: flex; min-height: 640px; background: #eef0f6; border-radius: 12px; overflow: hidden; font-family: 'Inter', sans-serif; color: #23262f; }
.sam-side { width: 260px; flex: none; background: #111a45; color: #fff; }
.sam-brand { height: 80px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid rgba(255, 255, 255, .08); font-weight: 700; font-size: 18px; }
.sam-brand img { max-height: 54px; }
.sam-side nav { padding: 14px; }
.sam-side nav a { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 10px; color: #cfd5ee; text-decoration: none; font-weight: 500; margin-bottom: 4px; }
.sam-side nav a:hover, .sam-side nav a.on { background: rgba(255, 255, 255, .07); color: #fff; }
.sam-side nav a.on { font-weight: 600; }
.sam-main { flex: 1; padding: 30px; min-width: 0; }
.sam-main h2 { font-size: 22px; font-weight: 600; margin: 0 0 24px; }
.sam-card { background: #fff; border-radius: 10px; padding: 24px; margin-bottom: 28px; box-shadow: 0 2px 8px rgba(17, 26, 69, .04); }
.sam-stat { display: flex; gap: 18px; max-width: 780px; }
.sam-ico { width: 50px; height: 50px; border-radius: 50%; background: #8a5cdd; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.sam-stat-body { flex: 1; min-width: 0; }
.sam-muted { color: #8a90a2; font-size: 15px; }
.sam-small { font-size: 13px; margin-top: 10px; }
.sam-num { font-size: 32px; font-weight: 600; margin: 2px 0 14px; }
.sam-copy { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.sam-copy input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border: 1px solid #e8eaf0; border-radius: 8px; font: 400 15px 'Inter', sans-serif; color: #23262f; background: #fff; }
.sam-copy button { background: none; border: 0; cursor: pointer; color: #23262f; padding: 4px; }
.sam-h4 { font-size: 18px; font-weight: 600; margin: 0 0 18px; padding-left: 12px; border-left: 3px solid #a9b8f5; }
.sam-scroll { overflow-x: auto; }
.sam-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sam-table th { text-align: left; padding: 16px 14px; font-weight: 600; border-bottom: 1px solid #eceef4; white-space: nowrap; }
.sam-table td { padding: 14px; border-bottom: 1px solid #f3f4f8; }
.sam-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; color: #8a90a2; font-size: 15px; }
.sam-entries { height: 40px; padding: 0 10px; border: 1px solid #e8eaf0; border-radius: 8px; margin: 0 6px; color: #23262f; background: #fff; }
.sam-pager button { width: 36px; height: 36px; border: 1px solid #e8eaf0; background: #fff; border-radius: 8px; cursor: pointer; margin-left: 6px; font-size: 18px; color: #23262f; }
.sam-pager button:disabled { opacity: .4; cursor: default; }

/* credentials form (light) */
.sam-light { gap: 16px 28px; align-items: end; }
.sam-light label { font-weight: 600; font-size: 14px; color: #23262f; }
.sam-light input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid #e8eaf0; border-radius: 8px; font: 400 15px 'Inter', sans-serif; background: #fff; }
.sam-light input[readonly] { background: #f6f7fb; color: #8a90a2; }
.sam-light .sam-btn { width: auto; padding: 0 28px; margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
	.sam-grad { padding: 30px 22px; }
	.sam-grid { grid-template-columns: 1fr; }
	.sam-actions { flex-wrap: wrap; }
	.sam-app { flex-direction: column; }
	.sam-side { display: none !important; }
	.sam-main { padding: 18px; }
	.sam-login { padding: 36px 24px; }
	.sam-foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- v2.2: white register form ---------- */
.sam-white { background: #fff; border-radius: 16px; padding: 48px 56px; color: #23262f; box-shadow: 0 10px 40px rgba(60, 72, 140, .10); border: 1px solid #eceef6; }
.sam-white a { color: #6a5be0; }
.sam-white .sam-title { color: #1f2340; font-size: 26px; font-weight: 600; margin: 0 0 8px; display: flex; align-items: center; gap: 12px; }
.sam-bar { width: 5px; height: 28px; border-radius: 4px; background: linear-gradient(180deg, #8b55e6, #4a7de8); display: inline-block; }
.sam-lead { color: #6b7280; margin: 0 0 30px; font-size: 15px; line-height: 1.6; }
.sam-lead strong { color: #6a5be0; }
.sam-white .sam-col label { color: #2d3250; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.sam-white input[type=text], .sam-white input[type=email], .sam-white input[type=password], .sam-white textarea {
	width: 100%; padding: 0 20px; height: 54px; background: #fafbff; color: #23262f;
	border: 1.5px solid #e3e6f2; border-radius: 12px; font: 400 15px 'Poppins', sans-serif; outline: none; box-shadow: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.sam-white textarea { height: auto; padding: 16px 20px; resize: vertical; line-height: 1.5; }
.sam-white input::placeholder, .sam-white textarea::placeholder { color: #9aa1b5; }
.sam-white input:focus, .sam-white textarea:focus { background: #fff; border-color: #8a5cdd; box-shadow: 0 0 0 4px rgba(138, 92, 221, .12); }
.sam-white .sam-eye { color: #8a90a2; }
.sam-white .sam-check input { border-color: #8a5cdd; }
.sam-white .sam-check input:checked { background: #8a5cdd; box-shadow: inset 0 0 0 4px #fff; }
.sam-white .sam-pill { border: 0; background: linear-gradient(135deg, #8b55e6, #4a7de8); color: #fff; box-shadow: 0 8px 20px rgba(106, 91, 224, .28); }
.sam-white .sam-link { color: #6a5be0; }

.sam-file { display: flex; align-items: center; gap: 14px; height: 54px; padding: 0 12px; border: 1.5px dashed #c9cff0; border-radius: 12px; background: #fafbff; cursor: pointer; margin: 0 !important; }
.sam-file:hover { border-color: #8a5cdd; }
.sam-file input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sam-file-btn { background: #eceafc; color: #5b45c9; border-radius: 8px; padding: 8px 16px; font-size: 14px; font-weight: 500; flex: none; }
.sam-file-name { color: #8a90a2; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- login extras ---------- */
.sam-forgot { text-align: right; margin: -10px 0 4px; font-size: 14px; }
.sam-forgot a, .sam-back a { color: #7a4fd3; text-decoration: none; font-weight: 500; }
.sam-back { text-align: center; margin: 22px 0 0; font-size: 14px; color: #8a90a2; }

/* ---------- dashboard extras ---------- */
.sam-banner { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: 10px; margin-bottom: 24px; font-size: 15px; line-height: 1.5; }
.sam-banner.sam-pending { background: #fff8e6; border: 1px solid #f3dc9a; color: #7a5b00; }
.sam-banner.sam-rejected { background: #fdecea; border: 1px solid #f3b9b3; color: #7f1d1d; }
.sam-commission { display: flex; align-items: center; gap: 22px; max-width: 780px; background: linear-gradient(135deg, #8b55e6, #4a7de8); color: #fff; }
.sam-commission p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; opacity: .95; }
.sam-rate { font-size: 40px; font-weight: 700; background: rgba(255, 255, 255, .16); border-radius: 14px; padding: 14px 20px; flex: none; }
.sam-copy input:disabled { background: #f6f7fb; color: #8a90a2; }
.sam-light textarea { width: 100%; padding: 12px 14px; border: 1px solid #e8eaf0; border-radius: 8px; font: 400 15px 'Inter', sans-serif; background: #f6f7fb; color: #8a90a2; }
@media (max-width: 800px) {
	.sam-white { padding: 30px 20px; }
	.sam-commission { flex-direction: column; align-items: flex-start; }
}

/* ---------- v2.2.1: proof-of-address uploader fix ---------- */
.sam-col label.sam-file,
.sam-white .sam-col label.sam-file {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 58px;
	padding: 14px 16px;
	margin: 0 !important;
	position: relative;
	line-height: 1.3;
}
.sam-file-btn { display: inline-block; padding: 9px 18px; line-height: 1.2; }
.sam-file-name { padding: 4px 0; flex: 1; min-width: 0; }

/* ================= v2.3: landing signup + OTP + responsive ================= */
.sam-landing { font-family: 'Poppins', sans-serif; color: #23262f; overflow: hidden; }
.sam-landing img { max-width: 100%; height: auto; }
.sam-hero { background: linear-gradient(135deg, #7b4de0 0%, #4a7de8 100%); color: #fff; padding: 64px 20px 120px; border-radius: 0 0 50% 50% / 0 0 70px 70px; }
.sam-hero-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.sam-hero h1 { color: #fff; font-size: clamp(28px, 4.4vw, 50px); line-height: 1.15; font-weight: 700; margin: 0 0 20px; }
.sam-hero h1 span { color: #ffe27a; }
.sam-hero-text p { font-size: clamp(15px, 1.6vw, 18px); line-height: 1.7; opacity: .95; margin: 0 0 22px; color: #fff; }
.sam-ticks { list-style: none; margin: 0; padding: 0; }
.sam-ticks li { position: relative; padding-left: 34px; margin: 0 0 12px; font-size: 16px; }
.sam-ticks li:before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .22); text-align: center; line-height: 22px; font-size: 13px; }
.sam-login.sam-in-hero { max-width: none; margin: 0; padding: 34px 34px 30px; color: #23262f; box-shadow: 0 20px 50px rgba(20, 20, 70, .25); }
.sam-in-hero h3, .sam-in-hero .sam-sub { text-align: left; }
.sam-in-hero .sam-sub { margin: 6px 0 22px; line-height: 1.5; }
.sam-in-hero .sam-sub a, .sam-fine a { color: #7a4fd3; }
.sam-fine { font-size: 12px; color: #8a90a2; line-height: 1.55; margin: -6px 0 16px; }
.sam-btn-link { display: flex; align-items: center; justify-content: center; text-decoration: none; color: #fff !important; }
.sam-in-hero .sam-btn { background: linear-gradient(135deg, #8b55e6, #4a7de8); }

/* OTP */
.sam-backbtn { display: inline-flex; align-items: center; gap: 8px; background: #f1f2f6; border: 0; border-radius: 8px; padding: 8px 16px 8px 12px; cursor: pointer; font: 500 15px 'Inter', sans-serif; color: #23262f; margin: 0 0 22px; }
.sam-login .sam-otp-boxes { display: flex; gap: 10px; margin: 6px 0 22px; }
.sam-login .sam-otp-boxes input { flex: 1; min-width: 0; max-width: 56px; width: auto; height: 58px; margin: 0; padding: 0; text-align: center; font: 600 24px 'Inter', sans-serif; background: #f1f2f6; border: 1.5px solid transparent; border-radius: 10px; }
.sam-login .sam-otp-boxes input:focus { background: #fff; border-color: #8a5cdd; box-shadow: 0 0 0 4px rgba(138, 92, 221, .12); }
.sam-resend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0 0; font-size: 15px; color: #23262f; }
.sam-linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: #7a4fd3; font: 500 15px 'Inter', sans-serif; }
.sam-linkbtn:disabled { color: #a9b8f5; cursor: default; }
.sam-verified { display: inline-block; background: #e7f7ec; color: #14532d; border-radius: 30px; padding: 8px 16px; font-size: 14px; margin: 0 0 24px; word-break: break-all; }
.sam-center-card { text-align: center; }
.sam-center-card .sam-title { justify-content: center; }

/* Landing sections */
.sam-sec { max-width: 1180px; margin: 0 auto; padding: 70px 20px; }
.sam-sec h2 { text-align: center; font-size: clamp(24px, 3.2vw, 36px); font-weight: 600; margin: 0 0 40px; color: #1f2340; }
.sam-alt { max-width: none; background: #f5f6fb; }
.sam-alt h2, .sam-alt .sam-cards { max-width: 1180px; margin-left: auto; margin-right: auto; }
.sam-steps, .sam-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.sam-step, .sam-fcard { background: #fff; border-radius: 16px; padding: 30px 26px; box-shadow: 0 6px 24px rgba(60, 72, 140, .08); border: 1px solid #eceef6; }
.sam-step span { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #8b55e6, #4a7de8); color: #fff; font-weight: 600; margin-bottom: 16px; }
.sam-step h4, .sam-fcard h4 { margin: 0 0 8px; font-size: 18px; font-weight: 600; color: #1f2340; }
.sam-step p, .sam-fcard p { margin: 0; color: #6b7280; font-size: 15px; line-height: 1.6; }
.sam-fcard b { display: block; font-size: 30px; font-weight: 700; margin-bottom: 8px; background: linear-gradient(135deg, #8b55e6, #4a7de8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sam-faq { max-width: 820px; margin: 0 auto; }
.sam-faq details { border-bottom: 1px solid #e8eaf2; padding: 18px 4px; }
.sam-faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: #1f2340; }
.sam-faq summary::-webkit-details-marker { display: none; }
.sam-faq summary:after { content: "+"; color: #8a90a2; font-size: 22px; line-height: 1; }
.sam-faq details[open] summary:after { content: "\2212"; }
.sam-faq p { margin: 12px 0 0; color: #6b7280; line-height: 1.7; font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.sam-hero-in { grid-template-columns: 1fr; gap: 32px; }
	.sam-hero { padding: 48px 20px 90px; }
	.sam-hero-card { max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 600px) {
	.sam-hero { padding: 36px 14px 70px; border-radius: 0 0 50% 50% / 0 0 36px 36px; }
	.sam-login.sam-in-hero { padding: 26px 20px; }
	.sam-login .sam-otp-boxes { gap: 6px; }
	.sam-login .sam-otp-boxes input { height: 50px; font-size: 20px; }
	.sam-sec { padding: 48px 16px; }
	.sam-sec h2 { margin-bottom: 28px; }
	.sam-grad, .sam-white { padding: 26px 16px; border-radius: 12px; }
	.sam-title { font-size: 20px; }
	.sam-grid { gap: 12px; }
	.sam-grad input[type=text], .sam-grad input[type=email], .sam-grad input[type=password], .sam-grad select,
	.sam-white input[type=text], .sam-white input[type=email], .sam-white input[type=password] { height: 52px; padding: 0 16px; font-size: 15px; }
	.sam-actions { flex-direction: column; align-items: stretch; text-align: center; gap: 14px; }
	.sam-actions .sam-pill { width: 100%; justify-content: center; }
	.sam-check { font-size: 14px; }
	.sam-file-name { font-size: 13px; }
	.sam-login-wrap { padding: 36px 12px; }
	.sam-login { padding: 28px 20px; }
	.sam-main { padding: 14px; }
	.sam-card { padding: 18px 14px; }
	.sam-stat { flex-direction: column; }
	.sam-num { font-size: 28px; }
	.sam-commission { padding: 18px; }
	.sam-rate { font-size: 32px; padding: 10px 16px; }
	.sam-table th, .sam-table td { padding: 10px 8px; font-size: 14px; }
	.sam-foot { font-size: 14px; }
}

/* ---------- v2.4: referral status badges, info banner, editable credentials ---------- */
.sam-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.sam-b-blue { background: #e8efff; color: #2b4fc4; }
.sam-b-green { background: #e3f6e9; color: #15803d; }
.sam-b-red { background: #fde8e6; color: #b91c1c; }
.sam-b-amber { background: #fff3d6; color: #92600a; }
.sam-banner.sam-info { background: #eef3ff; border: 1px solid #cfdcff; color: #2b3a67; }
.sam-banner.sam-info a { color: #5b45c9; font-weight: 600; }
.sam-light textarea:not([readonly]) { background: #fff; color: #23262f; }
.sam-light textarea:not([readonly]):focus, .sam-light input:not([readonly]):focus { border-color: #8a5cdd; outline: none; box-shadow: 0 0 0 3px rgba(138, 92, 221, .12); }
.sam-light .sam-file { background: #fff; }
.sam-viewdoc { display: inline-block; margin-top: 8px; font-size: 14px; color: #5b45c9; }

/* ---------- v2.4.1: force button colours (theme buttons override text/border colour) ---------- */
.sam .sam-btn,
.sam button.sam-btn,
.sam a.sam-btn,
.sam .sam-btn:visited,
.sam .sam-btn:hover,
.sam .sam-btn:focus,
.sam .sam-btn:active,
.sam-login .sam-btn,
.sam-login a.sam-btn-link {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	border: 0 !important;
	text-decoration: none !important;
	text-shadow: none;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	box-shadow: none;
}
.sam .sam-btn { background: #885de0; }
.sam .sam-btn:hover, .sam .sam-btn:focus { background: #7a4fd3; outline: none; }
.sam-in-hero .sam-btn,
.sam-in-hero .sam-btn:hover,
.sam-in-hero .sam-btn:focus,
.sam-in-hero .sam-btn:active { background: linear-gradient(135deg, #8b55e6, #4a7de8) !important; }
.sam-in-hero .sam-btn:hover { filter: brightness(1.06); }

/* pill buttons (register / lead form) */
.sam .sam-pill,
.sam button.sam-pill,
.sam a.sam-pill,
.sam .sam-pill:hover,
.sam .sam-pill:focus,
.sam .sam-pill:active {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	text-decoration: none !important;
	font-family: 'Poppins', sans-serif;
}
.sam .sam-pill svg { stroke: #fff; }
.sam-white .sam-pill, .sam-white .sam-pill:hover, .sam-white .sam-pill:focus { border: 0 !important; background: linear-gradient(135deg, #8b55e6, #4a7de8) !important; }
.sam-grad .sam-pill, .sam-grad .sam-pill:hover, .sam-grad .sam-pill:focus { border: 2px solid #fff !important; background: linear-gradient(135deg, #4a7de8, #8b55e6) !important; }

/* small buttons: keep theme from recolouring */
.sam .sam-backbtn, .sam .sam-backbtn:hover, .sam .sam-backbtn:focus { background: #f1f2f6 !important; color: #23262f !important; border: 0 !important; }
.sam .sam-linkbtn, .sam .sam-linkbtn:hover, .sam .sam-linkbtn:focus { background: none !important; color: #7a4fd3 !important; border: 0 !important; }
.sam .sam-linkbtn:disabled { color: #a9b8f5 !important; }
.sam .sam-eye, .sam .sam-eye:hover, .sam .sam-eye:focus { background: transparent !important; border: 0 !important; }
.sam .sam-pw-box .sam-eye, .sam .sam-pw-box .sam-eye:hover { background: #f1f4f8 !important; color: #23262f !important; }
.sam .sam-copy button, .sam .sam-copy button:hover, .sam .sam-pager button, .sam .sam-pager button:hover { background: #fff !important; color: #23262f !important; border-color: #e8eaf0; }
.sam .sam-copy button { border: 0 !important; background: none !important; }

/* ================= v2.6: Dashboard redesign ================= */

/* --- Mobile top header --- */
.sam-mob-header { display: none; }
@media (max-width: 800px) {
	.sam-mob-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fff; border-bottom: 1px solid #eef0f6; position: sticky; top: 0; z-index: 20; }
	.sam-mob-brand img { height: 32px; width: auto; }
	.sam-mob-brand span { font-weight: 700; font-size: 16px; color: #1f2340; }
	.sam-mob-actions { display: flex; align-items: center; gap: 12px; }
	.sam-notif-bell { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: #f3f4f6; border-radius: 50%; color: #6b7280; cursor: pointer; }
	.sam-notif-bell svg { width: 18px; height: 18px; }
	.sam-mob-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #e5e7eb; }
}

/* --- Desktop top bar --- */
.sam-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.sam-welcome-title { margin: 0; font-size: 22px; font-weight: 700; color: #1f2340; }
.sam-welcome-sub { margin: 4px 0 0; font-size: 14px; color: #8a90a2; }
.sam-topbar-right { display: flex; align-items: center; gap: 14px; }
.sam-topbar .sam-notif-bell { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: #f3f4f6; border-radius: 50%; color: #6b7280; cursor: pointer; }
.sam-topbar .sam-notif-bell svg { width: 18px; height: 18px; }
.sam-topbar-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #e5e7eb; }
@media (max-width: 800px) { .sam-topbar { display: none; } }

/* --- Sidebar footer branding --- */
.sam-side-footer { margin-top: auto; padding: 20px 16px; }
.sam-side-cta { background: linear-gradient(135deg, #6a5be0 0%, #4a7de8 100%); border-radius: 12px; padding: 20px 16px; text-align: center; color: #fff; }
.sam-side-cta strong { display: block; font-size: 16px; margin-bottom: 4px; }
.sam-side-cta span { font-size: 13px; opacity: .85; }

/* --- Sidebar layout fix for footer --- */
.sam-side { display: flex; flex-direction: column; }
.sam-side nav { flex: 1; }

/* --- Status banner with progress --- */
.sam-status-banner { border-radius: 12px; padding: 24px; margin-bottom: 24px; line-height: 1.6; }
.sam-status-banner p { margin: 8px 0 0; font-size: 15px; }
.sam-status-pending { background: #fffbeb; border: 1px solid #fcd34d; color: #78350f; }
.sam-status-rejected { background: #fef2f2; border: 1px solid #fca5a5; color: #7f1d1d; }
.sam-status-approved { background: #ecfdf5; border: 1px solid #6ee7b7; color: #064e3b; }
.sam-status-header { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.sam-status-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.sam-status-dot.pending { background: #f59e0b; }
.sam-status-dot.rejected { background: #ef4444; }
.sam-status-dot.approved { background: #10b981; }
.sam-status-help { font-size: 14px; color: inherit; opacity: .8; }
.sam-status-help a { color: inherit; font-weight: 600; }

/* --- Progress steps (timeline) --- */
.sam-progress-steps { display: flex; align-items: flex-start; gap: 0; margin: 20px 0 10px; }
.sam-step-item { flex: 1; text-align: center; position: relative; font-size: 13px; color: #9ca3af; }
.sam-step-item span:last-child { display: block; margin-top: 8px; }
.sam-step-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #e5e7eb; color: #6b7280; font-weight: 600; font-size: 14px; position: relative; z-index: 1; }
.sam-step-item.done .sam-step-icon { background: #10b981; color: #fff; }
.sam-step-item.done span:last-child { color: #064e3b; font-weight: 500; }
.sam-step-item.active .sam-step-icon { background: #f59e0b; color: #fff; animation: sam-pulse 2s infinite; }
.sam-step-item.active span:last-child { color: #78350f; font-weight: 600; }
.sam-step-item + .sam-step-item::before { content: ''; position: absolute; top: 18px; left: -50%; right: 50%; height: 2px; background: #e5e7eb; z-index: 0; }
.sam-step-item.done + .sam-step-item::before { background: #10b981; }
.sam-step-item.done .sam-step-icon svg, .sam-step-item.active .sam-step-icon svg { width: 16px; height: 16px; }
@keyframes sam-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(245,158,11,.4); } 50% { box-shadow: 0 0 0 8px rgba(245,158,11,0); } }

/* --- Stat cards (colored backgrounds) --- */
.sam-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.sam-stat-card { border-radius: 14px; padding: 20px 18px; color: #fff; position: relative; overflow: hidden; min-height: 110px; }
.sam-stat-ic { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.sam-stat-ic svg { width: 22px; height: 22px; stroke: #fff; }
.sam-stat-num { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.sam-stat-label { font-size: 12px; color: rgba(255,255,255,.85); font-weight: 500; text-transform: uppercase; letter-spacing: .4px; }
.sam-stat-arrow { position: absolute; bottom: 14px; right: 16px; font-size: 18px; opacity: .5; }
.sam-sc-blue { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.sam-sc-green { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.sam-sc-purple { background: linear-gradient(135deg, #8b55e6 0%, #6a5be0 100%); }
.sam-sc-orange { background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%); }

/* --- Two-column dashboard grid --- */
.sam-dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

/* --- Card header with view-all --- */
.sam-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sam-card-head h4 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: #1f2340; }
.sam-card-head h4 svg { width: 18px; height: 18px; }
.sam-view-all { font-size: 13px; color: #6a5be0; font-weight: 500; text-decoration: none; white-space: nowrap; }
.sam-view-all:hover { text-decoration: underline; }

/* --- Message preview rows (dashboard) --- */
.sam-msg-preview { min-height: 0; }
.sam-msg-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f3f4f8; }
.sam-msg-row:last-child { border-bottom: 0; }
.sam-msg-dot { flex: none; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.sam-msg-dot svg { width: 16px; height: 16px; }
.sam-msg-dot.blue { background: #dbeafe; color: #2563eb; }
.sam-msg-dot.green { background: #d1fae5; color: #059669; }
.sam-msg-dot.purple { background: #ede9fe; color: #7c3aed; }
.sam-msg-info { flex: 1; min-width: 0; }
.sam-msg-info strong { display: block; font-size: 14px; color: #1f2340; margin-bottom: 2px; }
.sam-msg-info p { margin: 0; font-size: 13px; color: #8a90a2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Earnings chart card --- */
.sam-earnings-card { min-height: 0; }
.sam-earnings-period { font-size: 12px; color: #6a5be0; background: #f3f0ff; padding: 4px 10px; border-radius: 6px; font-weight: 500; }
.sam-earnings-chart { padding: 10px 0; }
.sam-chart-placeholder { display: flex; align-items: flex-end; gap: 12px; height: 160px; padding: 0 8px; }
.sam-chart-bar { flex: 1; background: linear-gradient(180deg, #6a5be0 0%, #a78bfa 100%); border-radius: 6px 6px 0 0; min-height: 20px; position: relative; transition: height .3s; }
.sam-chart-bar span { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-size: 11px; color: #8a90a2; font-weight: 500; }

/* --- Account summary card --- */
.sam-account-summary { min-height: 0; }
.sam-active-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #059669; background: #ecfdf5; padding: 4px 10px; border-radius: 6px; }
.sam-active-badge .sam-status-dot { width: 8px; height: 8px; }
.sam-summary-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.sam-summary-stats > div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #f8f9fc; border-radius: 10px; }
.sam-summary-stats strong { font-size: 18px; color: #1f2340; display: block; }
.sam-summary-stats span { font-size: 11px; color: #8a90a2; display: block; }
.sam-summary-active { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #ecfdf5; border-radius: 10px; color: #059669; font-size: 13px; font-weight: 500; }
.sam-summary-active svg { width: 16px; height: 16px; flex: none; }

/* --- Payment schedule card --- */
.sam-payment-card { min-height: 0; }

/* --- Referral link section --- */
.sam-link-section .sam-h4 { display: flex; align-items: center; gap: 8px; }
.sam-link-section .sam-h4 svg { width: 18px; height: 18px; }
.sam-copy-btn { display: inline-flex; align-items: center; gap: 6px; background: #f3f0ff !important; color: #6a5be0 !important; border: 1px solid #ddd6fe !important; border-radius: 8px; padding: 10px 18px; cursor: pointer; font: 500 14px 'Inter', sans-serif; white-space: nowrap; transition: background .15s; }
.sam-copy-btn:hover { background: #ede9fe !important; }
.sam-copy-btn.small { padding: 7px 14px; font-size: 13px; }
.sam-copy-btn svg { width: 15px; height: 15px; }
.sam-link-disabled { opacity: .7; }

/* --- Share buttons --- */
.sam-share-btns { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.sam-share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 8px; font: 500 14px 'Inter', sans-serif; text-decoration: none; cursor: pointer; transition: filter .15s; }
.sam-share-btn:hover { filter: brightness(1.08); }
.sam-share-btn.whatsapp { background: #25D366; color: #fff !important; }
.sam-share-btn.whatsapp svg { fill: #fff; }
.sam-share-btn.email { background: #4a7de8; color: #fff !important; }
.sam-share-btn.email svg { stroke: #fff; width: 15px; height: 15px; }

/* --- Marketing messages (full page) --- */
.sam-msg-block { margin-bottom: 24px; }
.sam-msg-block h5 { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: #2d3250; }
.sam-msg-box { background: #f8f9fc; border: 1px solid #e8eaf2; border-radius: 10px; padding: 16px 18px; font-size: 14px; line-height: 1.65; color: #374151; margin-bottom: 10px; white-space: pre-wrap; word-wrap: break-word; }

/* --- Tips --- */
.sam-tips { display: flex; flex-direction: column; gap: 10px; }
.sam-tip { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.sam-tip.do { background: #ecfdf5; color: #064e3b; }
.sam-tip.dont { background: #fef2f2; color: #7f1d1d; }
.sam-tip-icon { flex: none; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.sam-tip-icon svg { width: 16px; height: 16px; }
.sam-tip.do .sam-tip-icon { color: #10b981; }
.sam-tip-icon.red { color: #ef4444; font-size: 18px; font-weight: 700; }

/* --- How it works steps --- */
.sam-how-steps { display: flex; flex-direction: column; gap: 0; }
.sam-how-step { display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid #f3f4f8; }
.sam-how-step:last-child { border-bottom: 0; }
.sam-how-step span { flex: none; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #8b55e6, #4a7de8); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.sam-how-step p { margin: 4px 0 0; font-size: 15px; color: #374151; line-height: 1.5; }

/* --- Commission rate highlight --- */
.sam-commission-hl { display: flex; align-items: center; gap: 24px; }
.sam-rate-big { font-size: 48px; font-weight: 700; background: linear-gradient(135deg, #8b55e6, #4a7de8); -webkit-background-clip: text; background-clip: text; color: transparent; flex: none; min-width: 90px; text-align: center; }
.sam-commission-hl strong { font-size: 16px; color: #1f2340; display: block; margin-bottom: 6px; }
.sam-commission-hl p { margin: 0; }

/* --- Payout schedule --- */
.sam-payout-schedule { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.sam-payout-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #f8f9fc; border-radius: 10px; border: 1px solid #eceef6; }
.sam-payout-icon { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #d1fae5; color: #059669; display: inline-flex; align-items: center; justify-content: center; }
.sam-payout-icon svg { width: 14px; height: 14px; }
.sam-payout-item strong { flex: none; min-width: 100px; font-size: 14px; color: #1f2340; }
.sam-payout-item > span:last-child { font-size: 14px; color: #6b7280; }

/* --- Dashboard FAQ --- */
.sam-dash-faq { max-width: none; }
.sam-dash-faq details { border-bottom: 1px solid #eceef6; padding: 16px 0; }
.sam-dash-faq summary { font-size: 15px; }
.sam-dash-faq p { font-size: 14px; }

/* --- Contact info --- */
.sam-contact-info { padding: 8px 0; }
.sam-contact-info p { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 15px; }
.sam-contact-info svg { width: 18px; height: 18px; color: #6a5be0; }
.sam-contact-info a { color: #6a5be0; text-decoration: none; font-weight: 500; }

/* --- Section dividers in forms --- */
.sam-section-title { font-size: 16px; font-weight: 600; color: #1f2340; padding: 10px 0 2px; margin-top: 8px; border-top: 1px solid #eceef6; }
.sam-section-title:first-of-type { border-top: 0; margin-top: 0; }

/* --- Credentials warning --- */
.sam-credentials-warn { background: #fff8e6; border: 1px solid #fcd34d; border-radius: 8px; padding: 14px 18px; font-size: 14px; color: #78350f; line-height: 1.5; }

/* --- Mobile bottom navigation (dark, 2-row 6 items) --- */
.sam-bottom-nav { display: none; }
@media (max-width: 800px) {
	.sam-bottom-nav { display: flex; flex-wrap: wrap; position: fixed; bottom: 0; left: 0; right: 0; background: #1e2240; z-index: 50; padding: 12px 10px max(10px, env(safe-area-inset-bottom)); justify-content: space-around; box-shadow: 0 -4px 20px rgba(0,0,0,.18); border-radius: 18px 18px 0 0; }
	.sam-bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: rgba(255,255,255,.55); text-decoration: none; font-size: 10px; font-weight: 500; padding: 7px 6px; border-radius: 10px; transition: all .15s; flex: 0 0 calc(33.33% - 8px); text-align: center; }
	.sam-bottom-nav a svg { width: 20px; height: 20px; stroke: rgba(255,255,255,.55); }
	.sam-bottom-nav a.on { color: #fff; background: rgba(106,91,224,.4); }
	.sam-bottom-nav a.on svg { stroke: #fff; }
	.sam-main { padding-bottom: 120px !important; }
}

/* --- Responsive: dashboard grid --- */
@media (max-width: 900px) {
	.sam-dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
	.sam-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.sam-stat-card { min-height: 90px; padding: 16px 14px; }
	.sam-stat-num { font-size: 22px; }
	.sam-progress-steps { flex-wrap: wrap; gap: 8px; }
	.sam-step-item + .sam-step-item::before { display: none; }
	.sam-step-item { flex: 0 0 calc(50% - 4px); }
	.sam-commission-hl { flex-direction: column; align-items: flex-start; gap: 12px; }
	.sam-rate-big { font-size: 36px; }
	.sam-share-btns { flex-direction: column; }
	.sam-share-btn { justify-content: center; }
	.sam-summary-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (max-width: 480px) {
	.sam-stat-card { padding: 14px 10px; }
	.sam-payout-item { flex-wrap: wrap; gap: 8px; padding: 12px; }
	.sam-chart-placeholder { height: 120px; gap: 8px; }
}
