/* TOP-1 promo modal — Crypto Inspect (layout inspired by the product mock) */

.ci-trp {
	position: fixed;
	inset: 0;
	z-index: 10060;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

.ci-trp[hidden] {
	display: flex !important;
	visibility: hidden;
	pointer-events: none;
}

.ci-trp.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.28s ease, visibility 0s linear 0s;
}

.ci-trp__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 12, 18, 0.62);
	backdrop-filter: blur(4px);
}

.ci-trp__dialog {
	position: relative;
	z-index: 1;
	width: min(560px, 100%);
	max-height: min(94vh, 860px);
	overflow: auto;
	padding: 32px 32px 24px;
	border: 1px solid #e6ebf2;
	border-radius: 22px;
	background: #fff;
	color: #1c2430;
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
	transform: translateY(18px) scale(0.97);
	transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
	-webkit-overflow-scrolling: touch;
}

.ci-trp.is-visible .ci-trp__dialog {
	transform: translateY(0) scale(1);
}

.ci-trp__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(28, 36, 48, 0.06);
	color: #6b7788;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.ci-trp__close:hover {
	background: rgba(28, 36, 48, 0.12);
	color: #1c2430;
}

.ci-trp__close svg {
	width: 18px;
	height: 18px;
}

.ci-trp__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 2px 0 18px;
	font-family: Manrope, sans-serif;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #1c2430;
}

.ci-trp__mark {
	width: 34px;
	height: 34px;
	border-radius: 9px;
	object-fit: cover;
}

.ci-trp__title {
	margin: 0;
	text-align: center;
	font-family: Manrope, sans-serif;
	font-size: clamp(28px, 5.2vw, 38px);
	font-weight: 850;
	line-height: 1.1;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	color: #2a3340;
}

.ci-trp__lead {
	margin: 14px auto 0;
	max-width: 40ch;
	text-align: center;
	font-size: 17px;
	line-height: 1.5;
	color: #7a8798;
}

.ci-trp__visual {
	position: relative;
	display: grid;
	place-items: center;
	margin: 12px 0 0;
	min-height: 260px;
	overflow: hidden;
}

.ci-trp__star {
	position: absolute;
	width: 18px;
	height: 18px;
	background: #1db878;
	clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
	opacity: 0.95;
	z-index: 2;
}

.ci-trp__star--1 { top: 28px; left: 14%; width: 22px; height: 22px; }
.ci-trp__star--2 { top: 54px; right: 16%; width: 15px; height: 15px; opacity: 0.8; }
.ci-trp__star--3 { bottom: 58px; left: 18%; width: 14px; height: 14px; opacity: 0.75; }
.ci-trp__star--4 { top: 42%; right: 10%; width: 12px; height: 12px; opacity: 0.7; }

.ci-trp__coin {
	position: absolute;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #ffe9a8, #e0a523 55%, #b8860b 100%);
	color: #7a5408;
	font-size: 13px;
	font-weight: 800;
	box-shadow: 0 4px 10px rgba(184, 134, 11, 0.35);
}

.ci-trp__coin--1 { top: 34px; right: 28%; }
.ci-trp__coin--2 { bottom: 64px; right: 14%; width: 22px; height: 22px; font-size: 11px; }
.ci-trp__coin--3 { top: 56%; left: 12%; width: 24px; height: 24px; font-size: 12px; }

.ci-trp__cube {
	position: absolute;
	z-index: 1;
	width: 18px;
	height: 18px;
	border-radius: 4px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0 48%, transparent 49%),
		linear-gradient(225deg, rgba(29, 184, 120, 0.95) 0 48%, transparent 49%),
		linear-gradient(45deg, rgba(18, 150, 96, 0.9), rgba(29, 184, 120, 0.55));
	box-shadow: 0 6px 12px rgba(29, 184, 120, 0.25);
	transform: rotate(18deg);
}

.ci-trp__cube--1 { top: 72px; left: 22%; }
.ci-trp__cube--2 { bottom: 78px; right: 22%; width: 14px; height: 14px; transform: rotate(-12deg); }
.ci-trp__cube--3 { top: 48%; left: 8%; width: 12px; height: 12px; transform: rotate(28deg); opacity: 0.85; }

.ci-trp__hero {
	position: relative;
	z-index: 3;
	width: 248px;
	height: 260px;
}

.ci-trp__hand {
	position: absolute;
	left: 18px;
	bottom: -8px;
	width: 186px;
	height: 158px;
	pointer-events: none;
}

.ci-trp__hand-palm {
	position: absolute;
	left: 30px;
	bottom: 0;
	width: 128px;
	height: 96px;
	border-radius: 44px 44px 36px 42px;
	background: linear-gradient(180deg, #f3c7a8 0%, #e4a57f 55%, #d6936c 100%);
	box-shadow: inset 0 8px 16px rgba(255, 255, 255, 0.28), 0 10px 18px rgba(120, 70, 40, 0.18);
}

.ci-trp__hand-thumb {
	position: absolute;
	left: 8px;
	bottom: 56px;
	width: 44px;
	height: 72px;
	border-radius: 28px;
	background: linear-gradient(160deg, #f0c0a0, #d8936c);
	transform: rotate(-28deg);
	box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.2);
}

.ci-trp__hand-finger {
	position: absolute;
	bottom: 90px;
	width: 30px;
	height: 60px;
	border-radius: 18px;
	background: linear-gradient(180deg, #f4c9ab, #e0a07a);
	box-shadow: inset 0 3px 8px rgba(255, 255, 255, 0.22);
}

.ci-trp__hand-finger--1 { left: 50px; height: 66px; }
.ci-trp__hand-finger--2 { left: 84px; height: 70px; }
.ci-trp__hand-finger--3 { left: 118px; height: 62px; }

.ci-trp__phone {
	position: absolute;
	left: 58px;
	top: 4px;
	z-index: 4;
	width: 162px;
	padding: 9px 9px 11px;
	border-radius: 26px;
	background: linear-gradient(160deg, #222a36, #101821);
	box-shadow:
		0 18px 36px rgba(10, 16, 24, 0.28),
		inset 0 0 0 1.5px rgba(255, 255, 255, 0.1);
	transform: rotate(-6deg);
}

.ci-trp__phone-notch {
	width: 48px;
	height: 5px;
	margin: 0 auto 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
}

.ci-trp__phone-screen {
	display: grid;
	gap: 8px;
	padding: 10px 9px 12px;
	border-radius: 18px;
	background: linear-gradient(180deg, #152338 0%, #0c1624 100%);
	color: #eef3f8;
}

.ci-trp__phone-head {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.ci-trp__phone-head img,
.ci-trp__phone-fallback {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}

.ci-trp__phone-fallback {
	display: grid;
	place-items: center;
	background: rgba(29, 184, 120, 0.22);
	color: #1db878;
	font-size: 13px;
	font-weight: 800;
}

.ci-trp__phone-head strong,
.ci-trp__phone-head small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ci-trp__phone-head strong {
	font-size: 12px;
	line-height: 1.2;
}

.ci-trp__phone-head small {
	margin-top: 2px;
	font-size: 9px;
	color: rgba(238, 243, 248, 0.55);
}

.ci-trp__phone-signal {
	display: grid;
	gap: 2px;
	padding: 10px 8px 8px;
	border-radius: 12px;
	background: rgba(29, 184, 120, 0.12);
	border: 1px solid rgba(29, 184, 120, 0.28);
	text-align: center;
}

.ci-trp__phone-signal span {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: rgba(238, 243, 248, 0.7);
}

.ci-trp__phone-signal strong {
	font-family: Manrope, sans-serif;
	font-size: 26px;
	font-weight: 850;
	line-height: 1;
	letter-spacing: -0.03em;
	color: #1db878;
}

.ci-trp__phone-bars {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 3px;
	height: 34px;
	padding: 0 2px;
}

.ci-trp__phone-bars span {
	flex: 1 1 auto;
	border-radius: 4px 4px 2px 2px;
	background: linear-gradient(180deg, #3dd68c, #1db878 70%, rgba(29, 184, 120, 0.25));
}

.ci-trp__phone-bars span:nth-child(1) { height: 38%; }
.ci-trp__phone-bars span:nth-child(2) { height: 55%; }
.ci-trp__phone-bars span:nth-child(3) { height: 46%; }
.ci-trp__phone-bars span:nth-child(4) { height: 72%; }
.ci-trp__phone-bars span:nth-child(5) { height: 64%; }
.ci-trp__phone-bars span:nth-child(6) { height: 88%; }
.ci-trp__phone-bars span:nth-child(7) { height: 100%; }

.ci-trp__phone-score {
	text-align: center;
	font-size: 11px;
	font-weight: 700;
	color: rgba(238, 243, 248, 0.72);
}

.ci-trp__actions {
	position: sticky;
	bottom: 0;
	z-index: 5;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 16px;
	padding-top: 10px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 28%);
}

.ci-trp__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 54px;
	padding: 14px 14px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	text-align: center;
	transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.ci-trp__btn:hover {
	transform: translateY(-1px);
}

.ci-trp__btn--tg {
	background: linear-gradient(180deg, #4db7f5 0%, #2a9de0 100%);
	color: #fff;
	box-shadow: 0 8px 18px rgba(42, 157, 224, 0.35);
}

.ci-trp__btn--tg:hover {
	filter: brightness(1.05);
	color: #fff;
}

.ci-trp__btn--review {
	background: linear-gradient(180deg, #22e4a8 0%, #1db878 100%);
	color: #06110c;
	box-shadow: 0 8px 18px rgba(29, 184, 120, 0.35);
}

.ci-trp__btn--review:hover {
	filter: brightness(1.05);
	color: #06110c;
}

.ci-trp__btn--ghost {
	background: #fff;
	color: #1c2430;
	border: 1.5px solid #1c2430;
}

.ci-trp__btn--ghost:hover {
	background: #f5f7fa;
	color: #1c2430;
}

.ci-trp__ico {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.ci-trp__btn-mark {
	width: 20px;
	height: 20px;
	border-radius: 5px;
	flex: 0 0 auto;
	object-fit: cover;
}

.ci-promo-teaser {
	padding: 20px;
	border-radius: 16px;
	border: 1px solid var(--line);
	background: color-mix(in srgb, var(--green) 8%, var(--card));
	cursor: pointer;
}

.ci-promo-teaser__title {
	display: block;
	font-size: 1.15rem;
	margin: 6px 0;
}

.ci-promo-teaser__score {
	margin: 0;
	color: var(--green);
	font-size: 14px;
	font-weight: 700;
}

.ci-promo-teaser__text {
	margin: 10px 0 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.45;
}

.ci-promo-teaser .btn {
	margin-top: 14px;
	pointer-events: none;
}

@media (max-width: 600px) {
	.ci-trp {
		padding: 10px;
		align-items: flex-end;
	}

	.ci-trp__dialog {
		width: 100%;
		max-height: min(94vh, 820px);
		padding: 24px 18px 16px;
		border-radius: 20px 20px 14px 14px;
	}

	.ci-trp__brand {
		margin-bottom: 12px;
		font-size: 16px;
	}

	.ci-trp__mark {
		width: 30px;
		height: 30px;
	}

	.ci-trp__title {
		font-size: 26px;
	}

	.ci-trp__lead {
		margin-top: 10px;
		font-size: 15px;
	}

	.ci-trp__visual {
		min-height: 210px;
		margin: 8px 0 0;
	}

	.ci-trp__hero {
		width: 210px;
		height: 210px;
	}

	.ci-trp__hand {
		left: 12px;
		width: 160px;
		height: 132px;
	}

	.ci-trp__hand-palm {
		left: 26px;
		width: 110px;
		height: 82px;
	}

	.ci-trp__hand-thumb {
		left: 6px;
		bottom: 48px;
		width: 38px;
		height: 60px;
	}

	.ci-trp__hand-finger {
		bottom: 76px;
		width: 26px;
		height: 50px;
	}

	.ci-trp__hand-finger--1 { left: 44px; height: 56px; }
	.ci-trp__hand-finger--2 { left: 74px; height: 60px; }
	.ci-trp__hand-finger--3 { left: 104px; height: 52px; }

	.ci-trp__phone {
		width: 138px;
		left: 50px;
		padding: 8px 8px 10px;
		border-radius: 22px;
	}

	.ci-trp__phone-screen {
		gap: 7px;
		padding: 9px 8px 10px;
	}

	.ci-trp__phone-signal strong {
		font-size: 22px;
	}

	.ci-trp__phone-bars {
		height: 28px;
	}

	.ci-trp__actions {
		gap: 10px;
		margin-top: 12px;
	}

	.ci-trp__btn {
		min-height: 50px;
		padding: 12px 10px;
		font-size: 13.5px;
	}
}

@media (max-height: 700px) {
	.ci-trp__brand {
		margin: 0 0 10px;
	}

	.ci-trp__title {
		font-size: 24px;
	}

	.ci-trp__lead {
		margin-top: 8px;
		font-size: 14px;
	}

	.ci-trp__visual {
		min-height: 180px;
	}

	.ci-trp__hero {
		width: 180px;
		height: 180px;
	}

	.ci-trp__phone {
		width: 120px;
		left: 42px;
	}

	.ci-trp__hand {
		width: 140px;
		height: 116px;
	}

	.ci-trp__btn {
		min-height: 48px;
		font-size: 13px;
	}
}
