/* BusinessLogin — Sales Collaboration tab */
#tab-sales-collab {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.sc-bl-panel {
	background: var(--bl-card, #fff);
	border: 1px solid var(--bl-border, #e2e8f0);
	border-radius: 18px;
	box-shadow: var(--bl-shadow, 0 4px 24px rgba(15, 23, 42, 0.06));
	padding: 20px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	overflow-x: hidden;
}

.sc-bl-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 48px 16px;
	color: var(--bl-muted, #64748b);
	font-size: 14px;
}

.sc-bl-loading__spinner {
	width: 36px;
	height: 36px;
	border: 3px solid #e2e8f0;
	border-top-color: #534AB7;
	border-radius: 50%;
	animation: sc-bl-spin 0.8s linear infinite;
}

@keyframes sc-bl-spin {
	to { transform: rotate(360deg); }
}

.sc-bl-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 12px;
	font-size: 13px;
	line-height: 1.7;
	margin-bottom: 16px;
}

.sc-bl-notice i {
	margin-top: 2px;
	flex-shrink: 0;
}

.sc-bl-notice--warning {
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
}

.sc-bl-notice--info {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e40af;
}

.sc-bl-notice--error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
}

.sc-bl-referral {
	background: linear-gradient(135deg, #534AB7 0%, #4338ca 45%, #15803d 100%);
	border-radius: 16px;
	padding: 20px;
	color: #fff;
	margin-bottom: 16px;
	position: relative;
	overflow: hidden;
}

.sc-bl-referral::after {
	content: '';
	position: absolute;
	top: -40%;
	left: -20%;
	width: 60%;
	height: 160%;
	background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
	pointer-events: none;
}

.sc-bl-referral__label {
	font-size: 12px;
	opacity: 0.9;
	margin-bottom: 8px;
}

.sc-bl-referral__code-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	position: relative;
	z-index: 1;
}

.sc-bl-referral__code {
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: 1px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	word-break: break-all;
}

.sc-bl-referral__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
	position: relative;
	z-index: 1;
}

.sc-bl-referral__link-wrap {
	margin-top: 14px;
	position: relative;
	z-index: 1;
}

.sc-bl-referral__link-label {
	font-size: 11px;
	opacity: 0.85;
	margin-bottom: 6px;
}

.sc-bl-referral__link-input {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: stretch;
}

.sc-bl-referral__link-input input {
	flex: 1 1 180px;
	min-width: 0;
	width: 100%;
	border: none;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 12px;
	color: #334155;
	background: rgba(255,255,255,0.95);
}

.sc-bl-btn-light {
	background: rgba(255,255,255,0.95);
	color: #4338ca;
	border: none;
	border-radius: 10px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
	white-space: nowrap;
}

.sc-bl-btn-light:hover {
	background: #fff;
}

.sc-bl-btn-light i {
	margin-left: 4px;
}

.sc-bl-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 18px;
	width: 100%;
}

@media (min-width: 768px) {
	.sc-bl-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.sc-bl-subtabs__btn {
		flex: 1 1 auto;
		font-size: 13px;
		padding: 10px 14px;
		white-space: nowrap;
	}
}

@media (min-width: 1100px) {
	.sc-bl-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.sc-bl-stat {
	background: #f8fafc;
	border: 1px solid var(--bl-border, #e2e8f0);
	border-radius: 14px;
	padding: 14px;
	position: relative;
}

.sc-bl-stat--has-tip {
	padding-top: 12px;
}

.sc-bl-stat__info {
	position: absolute;
	top: 8px;
	left: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: transparent;
	color: #94a3b8;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
	z-index: 2;
}

.sc-bl-stat__info:hover,
.sc-bl-stat__info:focus {
	color: #534AB7;
	background: rgba(83, 74, 183, 0.08);
	outline: none;
}

.tooltip.sc-bl-stat-tooltip .tooltip-inner {
	max-width: 260px;
	padding: 10px 12px;
	text-align: right;
	font-size: 12px;
	line-height: 1.65;
	font-weight: 500;
}

.sc-bl-stat__icon {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	margin-bottom: 10px;
}

.sc-bl-stat__icon--purple { background: #ede9fe; color: #534AB7; }
.sc-bl-stat__icon--green { background: #dcfce7; color: #15803d; }
.sc-bl-stat__icon--blue { background: #dbeafe; color: #2563eb; }
.sc-bl-stat__icon--amber { background: #fef3c7; color: #d97706; }
.sc-bl-stat__icon--teal { background: #ccfbf1; color: #0f766e; }

.sc-bl-stat__value {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--bl-text, #0f172a);
	line-height: 1.3;
}

.sc-bl-stat__label {
	font-size: 11px;
	color: var(--bl-muted, #64748b);
	margin-top: 4px;
	line-height: 1.5;
}

.sc-bl-subtabs-wrap {
	margin-top: 4px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.sc-bl-subtabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 4px 2px 12px;
	margin: 0 0 14px;
	width: 100%;
}

.sc-bl-subtabs__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 1 1 calc(50% - 4px);
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--bl-border, #e2e8f0);
	border-radius: 12px;
	background: #f8fafc;
	color: #475569;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
	text-align: center;
}

.sc-bl-subtabs__btn i {
	font-size: 14px;
	color: #94a3b8;
}

.sc-bl-subtabs__btn:hover {
	border-color: #c7d2fe;
	background: #eef2ff;
	color: #4338ca;
}

.sc-bl-subtabs__btn.is-active {
	border-color: #534AB7;
	background: #534AB7;
	color: #fff;
	box-shadow: 0 4px 12px rgba(83, 74, 183, 0.25);
}

.sc-bl-subtabs__btn.is-active i {
	color: rgba(255, 255, 255, 0.9);
}

.sc-bl-subtabs__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.25);
	color: inherit;
	font-size: 11px;
	font-weight: 700;
}

.sc-bl-subtabs__btn:not(.is-active) .sc-bl-subtabs__badge {
	background: #534AB7;
	color: #fff;
}

.sc-bl-subpanels {
	position: relative;
	min-height: 120px;
}

.sc-bl-subpanel {
	display: none;
	animation: sc-bl-fade-in 0.2s ease;
}

.sc-bl-subpanel.is-active {
	display: block;
}

@keyframes sc-bl-fade-in {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

.sc-bl-panel-intro {
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--bl-muted, #64748b);
	line-height: 1.6;
}

.sc-bl-hint--panel {
	margin-top: 12px;
	margin-bottom: 0;
}

.sc-bl-section {
	margin-bottom: 18px;
}

.sc-bl-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.sc-bl-section__title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--bl-text, #0f172a);
}

.sc-bl-section__title i {
	color: #534AB7;
	margin-left: 6px;
}

.sc-bl-section__sub {
	margin: 0;
	font-size: 12px;
	color: var(--bl-muted, #64748b);
}

.sc-bl-wallet-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-bottom: 0;
}

@media (min-width: 640px) {
	.sc-bl-wallet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.sc-bl-wallet-card {
	border-radius: 14px;
	padding: 14px 16px;
	border: 1px solid transparent;
}

.sc-bl-wallet-card--available {
	background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
	border-color: #86efac;
}

.sc-bl-wallet-card--hold {
	background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
	border-color: #fde68a;
}

.sc-bl-wallet-card--pending {
	background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
	border-color: #93c5fd;
}

.sc-bl-wallet-card__label {
	font-size: 12px;
	color: #475569;
	margin-bottom: 4px;
}

.sc-bl-wallet-card__value {
	font-size: 1.1rem;
	font-weight: 800;
	color: #0f172a;
}

.sc-bl-card {
	background: #fff;
	border: 1px solid var(--bl-border, #e2e8f0);
	border-radius: 14px;
	padding: 16px;
}

.sc-bl-form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

@media (min-width: 640px) {
	.sc-bl-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.sc-bl-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	margin-bottom: 6px;
}

.sc-bl-field .form-control {
	border-radius: 10px;
	border-color: #e2e8f0;
	height: 42px;
	font-size: 14px;
}

.sc-bl-field .form-control:focus {
	border-color: #534AB7;
	box-shadow: 0 0 0 3px rgba(83, 74, 183, 0.12);
}

.sc-bl-required {
	color: #dc2626;
	font-weight: 700;
}

.sc-bl-field--sheba {
	max-width: none;
}

.sc-bl-field--full {
	grid-column: 1 / -1;
}

.sc-bl-card--bank {
	padding: 0;
	overflow: hidden;
	background: transparent;
	border: none;
}

.sc-bl-bank-form__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
	align-items: center;
	padding: 0 16px 16px;
}

.sc-bl-bank-form__save {
	flex: 1;
	min-width: 160px;
}

.sc-bl-bank-form__cancel {
	min-width: 100px;
}

.sc-bl-bank-form__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 16px 4px;
}

.sc-bl-bank-form__back {
	width: 40px;
	height: 40px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #f8fafc;
	color: #475569;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sc-bl-bank-form__back:hover {
	background: #eef2ff;
	border-color: #c7d2fe;
	color: #4338ca;
}

.sc-bl-bank-form__head-title {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
}

.sc-bl-bank-form__head-sub {
	font-size: 12px;
	color: #64748b;
	margin-top: 2px;
}

.sc-bl-bank-form .sc-bl-form-grid {
	padding: 12px 16px 0;
}

.sc-bl-bank-summary {
	animation: sc-bl-bank-enter 0.35s ease;
}

.sc-bl-bank-summary.is-refreshing {
	animation: sc-bl-bank-enter 0.35s ease;
}

@keyframes sc-bl-bank-enter {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.sc-bl-bank-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.sc-bl-bank-card__hero {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 18px 16px;
	background: linear-gradient(135deg, #534AB7 0%, #4338ca 55%, #312e81 100%);
	color: #fff;
	position: relative;
	overflow: hidden;
}

.sc-bl-bank-card__hero::after {
	content: '';
	position: absolute;
	top: -50%;
	right: -15%;
	width: 55%;
	height: 200%;
	background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 68%);
	pointer-events: none;
}

.sc-bl-bank-card__hero-main {
	display: flex;
	align-items: center;
	gap: 14px;
	position: relative;
	z-index: 1;
	min-width: 0;
}

.sc-bl-bank-card__icon {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.22);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0;
	backdrop-filter: blur(4px);
}

.sc-bl-bank-card__hero-text {
	min-width: 0;
}

.sc-bl-bank-card__status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 600;
	opacity: 0.92;
	margin-bottom: 4px;
}

.sc-bl-bank-card__bank-name {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.35;
	word-break: break-word;
	color: #fff;
}

.sc-bl-bank-card__badge {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.28);
	font-size: 11px;
	font-weight: 700;
	backdrop-filter: blur(4px);
}

.sc-bl-bank-card__body {
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sc-bl-bank-card__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px 14px;
	background: #f8fafc;
	border: 1px solid #f1f5f9;
	border-radius: 12px;
}

.sc-bl-bank-card__item-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	text-transform: none;
}

.sc-bl-bank-card__item-label i {
	color: #94a3b8;
	font-size: 12px;
}

.sc-bl-bank-card__item-value {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.5;
	word-break: break-word;
}

.sc-bl-bank-card__sheba {
	padding: 14px;
	background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
	border: 1px solid #e2e8f0;
	border-radius: 14px;
}

.sc-bl-bank-card__sheba-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.sc-bl-bank-card__copy {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #fff;
	color: #4338ca;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
	flex-shrink: 0;
}

.sc-bl-bank-card__copy:hover {
	background: #eef2ff;
	border-color: #c7d2fe;
}

.sc-bl-bank-card__copy:active {
	transform: scale(0.97);
}

.sc-bl-bank-card__sheba-value {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	letter-spacing: 0.05em;
	line-height: 1.6;
	padding: 10px 12px;
	background: #fff;
	border: 1px dashed #cbd5e1;
	border-radius: 10px;
	word-break: break-all;
}

.sc-bl-bank-card__edit {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 14px 18px;
	border: none;
	border-top: 1px solid #e2e8f0;
	background: #fafbfc;
	color: #0f172a;
	cursor: pointer;
	text-align: right;
	transition: background 0.15s ease;
}

.sc-bl-bank-card__edit:hover {
	background: #f1f5f9;
}

.sc-bl-bank-card__edit:active {
	background: #e2e8f0;
}

.sc-bl-bank-card__edit-icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
	color: #534AB7;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	flex-shrink: 0;
}

.sc-bl-bank-card__edit-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sc-bl-bank-card__edit-text strong {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
}

.sc-bl-bank-card__edit-text small {
	font-size: 12px;
	font-weight: 500;
	color: #64748b;
}

.sc-bl-bank-card__edit-arrow {
	color: #94a3b8;
	font-size: 12px;
	flex-shrink: 0;
}

.sc-bl-bank-form {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	overflow: hidden;
}

.sc-bl-bank-summary.hidden,
.sc-bl-bank-form.hidden {
	display: none !important;
}

.sc-bl-sheba-input {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

@media (max-width: 575px) {
	.sc-bl-bank-card__hero {
		flex-direction: column;
		align-items: stretch;
	}
	.sc-bl-bank-card__badge {
		align-self: flex-start;
	}
	.sc-bl-bank-form__actions {
		flex-direction: column;
	}
	.sc-bl-bank-form__save,
	.sc-bl-bank-form__cancel {
		width: 100%;
	}
}

.sc-bl-withdraw-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: flex-end;
	margin-top: 4px;
}

.sc-bl-withdraw-row .sc-bl-field {
	flex: 1;
	min-width: 160px;
	margin: 0;
}

.sc-bl-hint {
	font-size: 11px;
	color: var(--bl-muted, #64748b);
	margin-top: 8px;
}

.sc-bl-section-muted {
	opacity: 0.5;
	pointer-events: none;
	user-select: none;
	filter: grayscale(0.2);
}

.sc-bl-invitee-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sc-bl-invitee {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--bl-border, #e2e8f0);
	border-radius: 12px;
	background: #fafbfc;
}

.sc-bl-invitee__main {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.sc-bl-invitee__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #ede9fe;
	color: #534AB7;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	flex-shrink: 0;
}

.sc-bl-invitee__name {
	font-weight: 600;
	font-size: 14px;
	color: var(--bl-text, #0f172a);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sc-bl-invitee__meta {
	font-size: 11px;
	color: var(--bl-muted, #64748b);
	margin-top: 2px;
}

.sc-bl-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}

.sc-bl-badge--online {
	background: #dcfce7;
	color: #166534;
}

.sc-bl-badge--manual {
	background: #f1f5f9;
	color: #475569;
}

.sc-bl-badge--payer {
	background: #ccfbf1;
	color: #0f766e;
}

.sc-bl-invitee__badges {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	justify-content: flex-end;
}

.sc-bl-empty {
	text-align: center;
	padding: 32px 16px;
	color: var(--bl-muted, #64748b);
	font-size: 13px;
}

.sc-bl-empty i {
	display: block;
	font-size: 28px;
	color: #cbd5e1;
	margin-bottom: 10px;
}

.sc-bl-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(80px);
	background: #0f172a;
	color: #fff;
	padding: 12px 20px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	z-index: 9999;
	opacity: 0;
	transition: transform 0.25s ease, opacity 0.25s ease;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
	pointer-events: none;
}

.sc-bl-toast.is-visible {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

.sc-bl-toast--success { background: #15803d; }
.sc-bl-toast--error { background: #dc2626; }

@media (max-width: 575px) {
	.sc-bl-panel { padding: 12px; }
	.sc-bl-referral { padding: 14px; }
	.sc-bl-referral__code { font-size: 1.15rem; word-break: break-all; }
	.sc-bl-referral__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}
	.sc-bl-referral__actions .sc-bl-btn-light { width: 100%; text-align: center; }
	.sc-bl-referral__actions #scShareLink { grid-column: 1 / -1; }
	.sc-bl-withdraw-row {
		flex-direction: column;
		align-items: stretch;
	}
	.sc-bl-withdraw-row .bl-btn { width: 100%; }
	.sc-bl-invitee {
		flex-direction: column;
		align-items: flex-start;
	}
}
