/* TVFreaks Viber κανάλι — banner εγγραφής */
.tvfv {
	--tvfv-accent: #7360f2;
	--tvfv-accent-dark: #5e4bd9;
	--tvfv-bg: #f5f3ff;
	--tvfv-ink: #16141f;
	--tvfv-muted: #5b5670;
	--tvfv-line: #e4dffc;
	--tvfv-qr-bg: #fff;

	position: relative;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px 18px;
	margin: 28px 0;
	padding: 20px 22px;
	border: 1px solid var(--tvfv-line);
	border-radius: 16px;
	background: var(--tvfv-bg);
	color: var(--tvfv-ink);
	line-height: 1.4;
	text-align: left;
}

.tvfv *,
.tvfv *::before,
.tvfv *::after { box-sizing: border-box; }

.tvfv p { margin: 0 !important; padding: 0; }

.tvfv .tvfv-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: var(--tvfv-accent);
	color: #fff;
	box-shadow: 0 8px 20px -10px var(--tvfv-accent);
}

.tvfv .tvfv-body { min-width: 0; }

.tvfv .tvfv-title {
	font-size: 1.12rem;
	font-weight: 800 !important;
	letter-spacing: -0.01em;
	line-height: 1.25;
	color: var(--tvfv-ink);
}

.tvfv .tvfv-text {
	margin-top: 4px;
	font-size: .92rem;
	color: var(--tvfv-muted);
}

.tvfv a.tvfv-btn,
.tvfv a.tvfv-btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 12px;
	min-height: 42px;
	padding: 0 20px;
	border-radius: 999px;
	background: var(--tvfv-accent);
	color: #fff !important;
	font-size: .93rem;
	font-weight: 700 !important;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color .2s ease, transform .2s ease;
}

.tvfv a.tvfv-btn:hover,
.tvfv a.tvfv-btn:focus-visible {
	background: var(--tvfv-accent-dark);
	color: #fff !important;
}

.tvfv a.tvfv-btn:focus-visible {
	outline: 2px solid var(--tvfv-accent);
	outline-offset: 3px;
}

/* QR: μόνο σε υπολογιστή (το JS το γεμίζει και προσθέτει την κλάση has-qr) */
.tvfv .tvfv-qr { display: none; }

.tvfv.has-qr .tvfv-qr {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.tvfv .tvfv-qr-code {
	width: 120px;
	height: 120px;
	padding: 6px;
	border-radius: 10px;
	background: var(--tvfv-qr-bg);
	box-shadow: 0 0 0 1px var(--tvfv-line);
}

.tvfv .tvfv-qr-code svg,
.tvfv .tvfv-qr-code img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0 !important;
}

.tvfv .tvfv-qr span {
	font-size: .72rem;
	color: var(--tvfv-muted);
	white-space: nowrap;
}

.tvfv .tvfv-x {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 30px;
	height: 30px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--tvfv-muted);
	font: inherit;
	font-size: 20px;
	line-height: 30px;
	cursor: pointer;
}

.tvfv .tvfv-x:hover { background: rgba(115, 96, 242, .12); color: var(--tvfv-ink); }

.tvfv.is-hidden { display: none !important; }

/* ---------------------------------------------------------------- sidebar (compact) */

.tvfv.tvfv--compact {
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	margin: 0;
	padding: 18px;
	gap: 12px 14px;
}

.tvfv.tvfv--compact .tvfv-icon { width: 44px; height: 44px; border-radius: 13px; }
.tvfv.tvfv--compact .tvfv-icon svg { width: 22px; height: 22px; }
.tvfv.tvfv--compact .tvfv-title { font-size: 1.02rem; }
.tvfv.tvfv--compact .tvfv-text { font-size: .86rem; }
.tvfv.tvfv--compact a.tvfv-btn { width: 100%; }

.tvfv.tvfv--compact.has-qr .tvfv-qr {
	grid-column: 1 / -1;
	flex-direction: row;
	justify-content: center;
	gap: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--tvfv-line);
}

.tvfv.tvfv--compact .tvfv-qr-code { width: 104px; height: 104px; }

/* ---------------------------------------------------------------- κινητό */

@media (max-width: 560px) {
	.tvfv.tvfv--wide {
		grid-template-columns: auto minmax(0, 1fr);
		padding: 18px 16px;
	}
	.tvfv.tvfv--wide a.tvfv-btn { width: 100%; }
	.tvfv.tvfv--wide .tvfv-body { grid-column: 1 / -1; }
	.tvfv.tvfv--wide .tvfv-icon { width: 44px; height: 44px; }
	.tvfv.tvfv--wide { grid-template-areas: none; }
}

@media (prefers-reduced-motion: reduce) {
	.tvfv a.tvfv-btn { transition: none; }
}

.tvfv.tvfv--inline { padding-right: 40px; }
@media (max-width: 560px) { .tvfv.tvfv--inline { padding-right: 16px; } .tvfv.tvfv--inline .tvfv-title { padding-right: 24px; } }
