:root {
	--ib-account-primary: #c5394e;
	--ib-account-primary-dark: #8f2334;
	--ib-account-gold: #c9973a;
	--ib-account-ink: #1c0b10;
	--ib-account-muted: #6f6367;
	--ib-account-line: #eadde0;
	--ib-account-soft: #fbf6f7;
	--ib-account-white: #fff;
	--ib-account-success: #178653;
	--ib-account-warning: #d29a18;
}

.ib-account-shell,
.ib-account-shell * {
	box-sizing: border-box;
}

.ib-account-shell {
	width: min(1320px, calc(100% - 32px));
	margin: 54px auto 76px;
	color: var(--ib-account-ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ib-account-hero,
.ib-member-head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	overflow: hidden;
	margin-bottom: 18px;
	padding: 52px 58px;
	border: 1px solid #efd5db;
	border-radius: 28px;
	background:
		radial-gradient(circle at 88% 50%, rgba(197,57,78,.16) 0 16%, transparent 16.4% 26%, rgba(197,57,78,.07) 26.4% 36%, transparent 36.4%),
		linear-gradient(135deg, #fff 0%, #fbf5f6 100%);
	box-shadow: 0 20px 60px rgba(53, 18, 27, .07);
}

.ib-account-hero h1,
.ib-member-head h1 {
	max-width: 720px;
	margin: 8px 0 10px;
	color: var(--ib-account-ink);
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.08;
	letter-spacing: -.04em;
}

.ib-account-hero p,
.ib-member-head p,
.ib-card-header p {
	margin: 0;
	color: var(--ib-account-muted);
	font-size: 16px;
	line-height: 1.65;
}

.ib-account-eyebrow,
.ib-card-header > span,
.ib-section-head span {
	display: block;
	color: var(--ib-account-primary);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .15em;
}

.ib-account-hero-mark {
	display: grid;
	flex: 0 0 116px;
	width: 116px;
	height: 116px;
	place-items: center;
	border-radius: 32px;
	background: linear-gradient(145deg, var(--ib-account-primary), var(--ib-account-primary-dark));
	color: #fff;
	font-size: 38px;
	font-weight: 900;
	box-shadow: 0 18px 40px rgba(197,57,78,.28);
	transform: rotate(-5deg);
}

.ib-account-benefits {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 30px;
}

.ib-account-benefits article {
	display: flex;
	min-height: 86px;
	align-items: center;
	gap: 14px;
	padding: 17px 19px;
	border: 1px solid var(--ib-account-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 9px 28px rgba(53,18,27,.045);
}

.ib-account-benefits article > span {
	display: grid;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 12px;
	background: #faedf0;
	color: var(--ib-account-primary);
	font-size: 11px;
	font-weight: 900;
}

.ib-account-benefits strong,
.ib-account-benefits small {
	display: block;
}

.ib-account-benefits strong {
	margin-bottom: 3px;
	font-size: 14px;
}

.ib-account-benefits small {
	color: var(--ib-account-muted);
	font-size: 12px;
}

.ib-auth-grid {
	display: grid;
	grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.1fr);
	gap: 30px;
	align-items: start;
}

.ib-account-card {
	padding: 38px;
	border: 1px solid var(--ib-account-line);
	border-radius: 22px;
	background: var(--ib-account-white);
	box-shadow: 0 14px 45px rgba(53, 18, 27, .06);
}

.ib-card-header {
	margin-bottom: 24px;
}

.ib-card-header h2,
.ib-section-head h2 {
	margin: 6px 0 5px;
	color: var(--ib-account-ink);
	font-size: 26px;
	letter-spacing: -.025em;
}

.ib-account-form {
	display: grid;
	gap: 16px;
}

.ib-account-form label {
	display: grid;
	gap: 7px;
	margin: 0;
}

.ib-account-form label > span {
	color: #4e4246;
	font-size: 13px;
	font-weight: 700;
}

.ib-account-form input:not([type="checkbox"]):not([type="radio"]),
.ib-account-form textarea,
.ib-account-form select {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid #d9cbcf;
	border-radius: 10px;
	background: #fff;
	color: var(--ib-account-ink);
	font: inherit;
	box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
}

.ib-account-form textarea {
	resize: vertical;
}

.ib-account-form input:focus,
.ib-account-form textarea:focus,
.ib-account-form select:focus {
	border-color: var(--ib-account-primary);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(197,57,78,.12);
}

.ib-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.ib-brand-name-field {
	grid-column: 1 / -1;
}

.ib-account-button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border: 0;
	border-radius: 11px;
	background: linear-gradient(135deg, var(--ib-account-primary), var(--ib-account-primary-dark));
	color: #fff;
	font: inherit;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(197,57,78,.22);
}

.ib-account-button:hover {
	color: #fff;
	transform: translateY(-1px);
}

.ib-text-link {
	color: var(--ib-account-primary);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.ib-check {
	display: flex !important;
	grid-template-columns: none !important;
	align-items: flex-start;
	gap: 9px !important;
}

.ib-check input {
	flex: 0 0 auto;
	margin: 3px 0 0;
}

.ib-check span {
	font-weight: 500 !important;
	line-height: 1.45;
}

.ib-role-choice {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.ib-role-choice label {
	position: relative;
}

.ib-role-choice input {
	position: absolute;
	opacity: 0;
}

.ib-role-choice label > span {
	display: grid;
	gap: 4px;
	min-height: 86px;
	align-content: center;
	padding: 14px;
	border: 1px solid var(--ib-account-line);
	border-radius: 12px;
	background: var(--ib-account-soft);
	cursor: pointer;
}

.ib-role-choice small {
	color: var(--ib-account-muted);
	font-size: 11px;
	line-height: 1.35;
}

.ib-role-choice input:checked + span {
	border-color: var(--ib-account-primary);
	background: #fff1f4;
	box-shadow: inset 0 0 0 1px var(--ib-account-primary);
}

.ib-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.ib-account-notice {
	margin-bottom: 18px;
	padding: 14px 18px;
	border-radius: 10px;
	font-weight: 700;
}

.ib-account-notice.is-success {
	border: 1px solid #b8e0cc;
	background: #ecf8f2;
	color: #126d43;
}

.ib-account-notice.is-error {
	border: 1px solid #efc1c9;
	background: #fff0f2;
	color: #9f2337;
}

.ib-member-head {
	justify-content: flex-start;
	padding: 32px 38px;
}

.ib-member-head h1 {
	margin: 3px 0;
	font-size: clamp(28px, 3vw, 40px);
}

.ib-member-avatar {
	display: grid;
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	place-items: center;
	border-radius: 20px;
	background: var(--ib-account-primary);
	color: #fff;
	font-size: 29px;
	font-weight: 900;
}

.ib-account-logout {
	margin-left: auto;
	padding: 10px 15px;
	border: 1px solid #dfcdd2;
	border-radius: 9px;
	color: var(--ib-account-primary-dark);
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

.ib-panel-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
	margin-bottom: 28px;
}

.ib-panel-stat {
	display: grid;
	gap: 4px;
	min-height: 116px;
	padding: 25px;
	border: 1px solid var(--ib-account-line);
	border-top: 4px solid var(--ib-account-primary);
	border-radius: 17px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(53,18,27,.05);
}

.ib-panel-stat strong {
	font-size: 32px;
	line-height: 1;
}

.ib-panel-stat span {
	color: var(--ib-account-muted);
	font-size: 13px;
	font-weight: 700;
}

.ib-panel-stat.is-success { border-top-color: var(--ib-account-success); }
.ib-panel-stat.is-warning { border-top-color: var(--ib-account-warning); }
.ib-panel-stat.is-info { border-top-color: #367caa; }

.ib-panel-section {
	margin-bottom: 24px;
}

.ib-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--ib-account-line);
}

.ib-section-head h2 {
	margin-bottom: 0;
}

.ib-section-head a {
	color: var(--ib-account-primary);
	font-size: 13px;
	font-weight: 800;
}

.ib-panel-empty {
	padding: 38px 20px;
	border: 1px dashed #d9c7cc;
	border-radius: 13px;
	background: var(--ib-account-soft);
	text-align: center;
}

.ib-panel-empty h3 {
	margin: 0 0 6px;
	font-size: 19px;
}

.ib-panel-empty p {
	margin: 0;
	color: var(--ib-account-muted);
}

.ib-brand-panel-list {
	display: grid;
	gap: 16px;
}

.ib-brand-panel-card {
	overflow: hidden;
	border: 1px solid var(--ib-account-line);
	border-radius: 15px;
}

.ib-brand-panel-summary {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr) auto;
	align-items: center;
	gap: 15px;
	padding: 17px;
	background: #fff;
}

.ib-brand-panel-logo {
	display: grid;
	width: 58px;
	height: 58px;
	place-items: center;
	overflow: hidden;
	border-radius: 13px;
	background: #f5e7ea;
	color: var(--ib-account-primary);
	font-size: 23px;
	font-weight: 900;
}

.ib-brand-panel-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ib-brand-panel-summary h3 {
	margin: 0 0 3px;
	font-size: 18px;
}

.ib-brand-panel-summary p {
	margin: 0;
	color: var(--ib-account-muted);
	font-size: 13px;
}

.ib-panel-badge,
.ib-application-status {
	display: inline-flex;
	padding: 6px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	white-space: nowrap;
}

.ib-panel-badge.is-verified,
.ib-application-status.is-won {
	background: #e5f5ed;
	color: #126d43;
}

.ib-panel-badge.is-waiting,
.ib-application-status.is-new,
.ib-application-status.is-reviewing {
	background: #fff3d5;
	color: #815c09;
}

.ib-panel-badge.is-rejected,
.ib-panel-badge.is-suspended,
.ib-application-status.is-rejected {
	background: #fae5e9;
	color: #9f2337;
}

.ib-application-status.is-contacted,
.ib-application-status.is-qualified {
	background: #e8f2f8;
	color: #245f86;
}

.ib-brand-edit {
	border-top: 1px solid var(--ib-account-line);
	background: var(--ib-account-soft);
}

.ib-brand-edit summary,
.ib-profile-card > summary {
	padding: 14px 18px;
	color: var(--ib-account-primary);
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
}

.ib-brand-edit form {
	padding: 4px 18px 20px;
}

.ib-profile-card {
	margin-top: 24px;
	padding: 0;
}

.ib-profile-card form {
	padding: 4px 24px 24px;
}

.ib-table-wrap {
	overflow-x: auto;
}

.ib-panel-table {
	width: 100%;
	border-collapse: collapse;
}

.ib-panel-table th,
.ib-panel-table td {
	padding: 13px 12px;
	border-bottom: 1px solid #eee4e7;
	text-align: left;
	vertical-align: middle;
}

.ib-panel-table th {
	color: var(--ib-account-muted);
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.ib-panel-table td {
	font-size: 13px;
}

.ib-panel-table td small {
	display: block;
	margin-top: 2px;
	color: var(--ib-account-muted);
}

.ib-opportunity-list {
	display: grid;
	gap: 10px;
}

.ib-opportunity-list article {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 14px;
	padding: 15px 17px;
	border: 1px solid var(--ib-account-line);
	border-radius: 12px;
	background: var(--ib-account-soft);
}

.ib-opportunity-list h3 {
	margin: 0 0 3px;
	font-size: 16px;
}

.ib-opportunity-list p {
	margin: 0;
	color: var(--ib-account-muted);
	font-size: 12px;
}

.ib-opportunity-list a {
	color: var(--ib-account-primary);
	font-size: 12px;
	font-weight: 800;
}

@media (max-width: 900px) {
	.ib-auth-grid {
		grid-template-columns: 1fr;
	}

	.ib-panel-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.ib-account-benefits {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 620px) {
	.ib-account-shell {
		width: min(100% - 20px, 1320px);
		margin: 24px auto;
	}

	.ib-account-hero,
	.ib-member-head {
		padding: 28px 22px;
		border-radius: 17px;
	}

	.ib-account-hero-mark {
		display: none;
	}

	.ib-account-card {
		padding: 22px 17px;
		border-radius: 15px;
	}

	.ib-form-grid,
	.ib-role-choice {
		grid-template-columns: 1fr;
	}

	.ib-panel-stats {
		grid-template-columns: 1fr 1fr;
		gap: 9px;
	}

	.ib-panel-stat {
		padding: 16px;
	}

	.ib-member-head {
		flex-wrap: wrap;
	}

	.ib-account-logout {
		width: 100%;
		margin-left: 0;
		text-align: center;
	}

	.ib-brand-panel-summary {
		grid-template-columns: 50px minmax(0, 1fr);
	}

	.ib-panel-badge {
		grid-column: 1 / -1;
		justify-self: start;
	}

	.ib-section-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.ib-opportunity-list article {
		grid-template-columns: 1fr;
	}
}
