/* Ironbets Bonuses — карточки бонусов / промокодов (стиль «герой + тёмная полоса + промокод») */

.ibk-bonus-cards-shell {
	margin: 1.5rem 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.ibk-bonus-cards__title {
	font-size: 1.35rem;
	margin: 0 0 1rem;
}

.ibk-bonus-cards__toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	align-items: flex-end;
	margin-bottom: 1.25rem;
	padding: 0.75rem 1rem;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
}

.ibk-bonus-cards__filter {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 10rem;
}

.ibk-bonus-cards__filter-label {
	font-size: 0.8rem;
	font-weight: 600;
	color: #334155;
}

.ibk-bonus-cards__select {
	font-size: 0.95rem;
	padding: 0.45rem 0.6rem;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	background: #fff;
	max-width: 100%;
}

.ibk-bonus-cards,
.ibo-bonus-grid {
	display: grid;
	gap: 1.25rem;
	width: 100%;
	align-items: stretch;
}

.ibk-bonus-cards--cols-1 {
	grid-template-columns: 1fr;
}

.ibk-bonus-cards--cols-2 {
	grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}

.ibk-bonus-cards--cols-3 {
	grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
}

/* «Показать ещё» */
.ibk-bonus-cards__more {
	display: flex;
	justify-content: center;
	margin-top: 1.5rem;
}

.ibk-bonus-cards__more[hidden] {
	display: none;
}

.ibk-bonus-cards__more-btn {
	appearance: none;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 700;
	padding: 0.7rem 1.6rem;
	border-radius: 10px;
	border: 1px solid #cbd5e1;
	background: #fff;
	color: #0f172a;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.ibk-bonus-cards__more-btn:hover {
	background: #0f172a;
	border-color: #0f172a;
	color: #fff;
}

.ibk-bonus-cards__more-btn:active {
	transform: translateY(1px);
}

/* Карточка: внешняя оболочка (на всю высоту ячейки сетки — кнопки в один ряд) */
.ibk-bonus-card.ibo-card {
	box-sizing: border-box;
	padding: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow:
		0 4px 22px rgba(15, 23, 42, 0.07),
		0 1px 3px rgba(15, 23, 42, 0.06);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ibk-bonus-card.ibo-card:hover {
	box-shadow:
		0 12px 40px rgba(15, 23, 42, 0.12),
		0 4px 10px rgba(15, 23, 42, 0.06);
	transform: translateY(-2px);
}

.ibk-bonus-card[data-ibk-hidden="1"] {
	display: none;
}

/* Герой */
.ibo-card__hero {
	position: relative;
	background: linear-gradient(145deg, #1e3a5f 0%, #0f172a 55%, #020617 100%);
}

.ibo-card__hero-link {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	max-height: 11rem;
	overflow: hidden;
	text-decoration: none;
	outline: none;
}

.ibo-card__hero-link:focus-visible {
	box-shadow: inset 0 0 0 3px rgba(59, 130, 246, 0.8);
}

.ibo-card__hero-img-el,
.ibo-card__hero-fallback {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.ibo-card__hero-img-el {
	object-fit: cover;
	display: block;
	max-width: none;
}

.ibo-card__hero-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
}

.ibo-card__hero-fallback-inner {
	font-size: 2.75rem;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.2);
	line-height: 1;
	user-select: none;
}

/* Полоса суммы / БК */
.ibo-card__amount-bar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: #0f172a;
	color: #fff;
	padding: 0.55rem 0.9rem;
	min-height: 3.35rem;
	box-sizing: border-box;
}

.ibo-card__bar-logo {
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.ibo-card__bar-logo--empty {
	background: rgba(255, 255, 255, 0.12);
	box-shadow: none;
}

.ibo-card__bar-logo-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.ibo-card__bar-logo-fallback {
	font-weight: 800;
	font-size: 1rem;
	color: #0f172a;
	line-height: 1;
}

.ibo-card__bar-logo--empty .ibo-card__bar-logo-fallback {
	color: rgba(255, 255, 255, 0.85);
}

.ibo-card__bar-sum {
	flex: 1;
	min-width: 0;
	font-size: 1.28rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

/* Тело карточки */
.ibo-card__body {
	padding: 1rem 1.1rem 1.2rem;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	flex: 1;
	min-height: 0;
}

.ibo-card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.ibo-card__chip {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.22rem 0.5rem;
	border-radius: 999px;
	background: #e0e7ff;
	color: #3730a3;
}

.ibo-card__chip--accent {
	background: #d1fae5;
	color: #047857;
}

.ibo-card__title {
	font-size: 1.02rem;
	margin: 0;
	line-height: 1.35;
}

.ibo-card__title a {
	color: #0f172a;
	text-decoration: none;
	font-weight: 800;
}

.ibo-card__title a:hover {
	color: #2563eb;
}

.ibo-card__bookmaker-line {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 600;
	color: #64748b;
}

.ibo-card__excerpt {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #475569;
}

/* Выравнивание блоков по нижнему краю при разной длине текста и наличии/отсутствии промокода */
.ibo-card__flex-spacer {
	flex: 1 1 0;
	min-height: 0.35rem;
	width: 100%;
}

/* Резервируем место под строку промокода + кнопку копирования, даже если кода нет */
.ibo-card__promo-slot {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: 100%;
	min-height: 3.45rem;
}

.ibo-card__promo-slot--empty {
	min-height: 0;
}

/* Промокод + копирование */
.ibo-card__promo-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: #1e293b;
	border-radius: 10px;
	padding: 0.4rem 0.4rem 0.4rem 0.85rem;
	margin-top: 0;
	width: 100%;
	box-sizing: border-box;
}

.ibo-card__foot {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.4rem;
	width: 100%;
	margin-top: 0.35rem;
}

.ibo-card__promo-code {
	flex: 1;
	min-width: 0;
	font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
	font-size: 0.92rem;
	font-weight: 700;
	color: #f8fafc;
	letter-spacing: 0.06em;
	word-break: break-all;
}

.ibo-card__copy-btn {
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, transform 0.1s ease;
}

.ibo-card__copy-btn:hover {
	background: rgba(255, 255, 255, 0.24);
}

.ibo-card__copy-btn:active {
	transform: scale(0.96);
}

.ibo-card__copy-btn.is-copied {
	background: #059669;
	color: #fff;
}

.ibo-card__copy-svg {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
	opacity: 0.95;
}

/* CTA */
.ibo-card__cta {
	display: block;
	text-align: center;
	margin-top: 0;
	padding: 0.78rem 1rem;
	border-radius: 10px;
	background: linear-gradient(180deg, #3b82f6 0%, #2563eb 48%, #1d4ed8 100%);
	color: #fff !important;
	font-weight: 800;
	font-size: 0.93rem;
	text-decoration: none !important;
	box-shadow: 0 3px 12px rgba(37, 99, 235, 0.35);
	line-height: 1.25;
	transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.ibo-card__cta:hover {
	filter: brightness(1.06);
	box-shadow: 0 5px 20px rgba(37, 99, 235, 0.45);
	color: #fff !important;
}

.ibo-card__secondary-link {
	text-align: center;
	font-size: 0.84rem;
	font-weight: 700;
	color: #64748b;
	text-decoration: none;
	margin-top: 0;
}

.ibo-card__secondary-link:hover {
	color: #2563eb;
}

.ibo-card__expire {
	margin: 0;
	font-size: 0.76rem;
	color: #94a3b8;
	text-align: center;
}

.ibk-bonus-cards-empty {
	margin: 1rem 0;
	opacity: 0.85;
}

/* Совместимость: старые кнопки в других блоках */
.ibk-btn {
	display: inline-block;
	margin: 0.15rem 0.35rem 0.15rem 0;
	padding: 0.35rem 0.65rem;
	border-radius: 6px;
	font-size: 0.85rem;
	text-decoration: none;
	line-height: 1.2;
}

.ibk-btn--secondary {
	background: #f1f5f9;
	color: #0f172a;
}

.ibk-btn--primary {
	background: #2563eb;
	color: #fff;
}

/* Страница одного бонуса (single bonus) */
.ibo-single-bonus {
	overflow: hidden;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
	background: #fff;
}

.ibo-single-bonus__hero {
	background: #0f172a;
}

.ibo-single-bonus__hero-inner {
	position: relative;
	aspect-ratio: 21 / 9;
	max-height: 16rem;
	overflow: hidden;
}

.ibo-single-bonus__hero-inner .ibo-card__hero-img-el,
.ibo-single-bonus__hero-inner .ibo-card__hero-fallback {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
}

.ibo-single-bonus .ibo-single-bonus__body {
	padding: 1.25rem 1.35rem 1.5rem;
}

.ibo-single-bonus .child3-single-bookmaker__header {
	padding-top: 0;
}

.ibo-single-bonus .ibo-card__promo-row {
	max-width: 28rem;
	margin-top: 1rem;
}

.ibo-single-bonus .child3-cta {
	border-radius: 10px;
	font-weight: 800;
}

/* Quick view modal (hub cards) */
.ibk-bonus-modal[hidden] {
	display: none !important;
}

.ibk-bonus-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
}

.ibk-bonus-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 23, 0.68);
}

.ibk-bonus-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(42rem, calc(100% - 2rem));
	max-height: calc(100vh - 2rem);
	overflow: auto;
	margin: 1rem auto;
	padding: 1.25rem 1.1rem 1.1rem;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 20px 48px rgba(15, 23, 42, 0.4);
}

.ibk-bonus-modal__close {
	position: absolute;
	top: 0.45rem;
	right: 0.55rem;
	background: transparent;
	border: 0;
	font-size: 1.8rem;
	line-height: 1;
	color: #475569;
	cursor: pointer;
}

.ibk-bonus-modal__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.82rem;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ibk-bonus-modal__title {
	margin: 0 0 0.7rem;
	font-size: 1.45rem;
	line-height: 1.25;
}

.ibk-bonus-modal__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0 0 0.8rem;
}

.ibk-bonus-modal__stats {
	margin: 0 0 1rem;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.55rem;
}

.ibk-bonus-modal__stats > div {
	padding: 0.55rem 0.6rem;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
}

.ibk-bonus-modal__stats dt {
	margin: 0 0 0.2rem;
	font-size: 0.72rem;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ibk-bonus-modal__stats dd {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: #0f172a;
}

.ibk-bonus-modal__actions {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.ibk-bonus-modal__actions .ibo-card__cta.is-disabled {
	pointer-events: none;
	opacity: 0.55;
}

.ibk-bonus-modal__bookmaker-link {
	font-size: 0.8rem;
}

body.ibk-bonus-modal-open {
	overflow: hidden;
}

@media (max-width: 700px) {
	.ibk-bonus-modal__stats {
		grid-template-columns: 1fr;
	}
}
