/* ==========================================================================
   Black Friday HiNetworks — shortcode [hinetworks_blackfriday]
   Visual baseado na home 12 do Hostingard (dark / amarelo-lima / coral).
   Tudo escopado em .hnbf para não conflitar com tema e Elementor.
   ========================================================================== */

.hnbf {
	--hnbf-bg: #000000;
	--hnbf-surface: #110e1b;
	--hnbf-surface-2: #0d0d0d;
	--hnbf-border: rgba(255, 255, 255, .1);
	--hnbf-yellow: #e7fe54;
	--hnbf-red: #fd6e54;
	--hnbf-purple: #a964ff;
	--hnbf-text: #ffffff;
	--hnbf-muted: rgba(255, 255, 255, .6);
	--hnbf-font: "Space Grotesk", sans-serif;

	position: relative;
	z-index: 0;
	width: 100%;
	/* Corta o que passa em cima/embaixo, mas deixa o brilho do fundo se espalhar
	   para as laterais da tela (sem bordas duras quando o container é encaixotado). */
	clip-path: inset(0 -100vw);
	background: var(--hnbf-bg);
	color: var(--hnbf-text);
	line-height: 1.6;
}

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

/* Fundo estendido até as bordas da tela */
.hnbf::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -100vw;
	right: -100vw;
	background: var(--hnbf-bg);
	z-index: -1;
	pointer-events: none;
}

.hnbf a {
	text-decoration: none;
}

/* ---------- Tipografia ---------- */
.hnbf .hnbf-title {
	font-family: var(--hnbf-font);
	color: var(--hnbf-text);
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.15;
}

.hnbf .hnbf-title--xl { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
.hnbf .hnbf-title--lg { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
.hnbf .hnbf-title--md { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.hnbf .hnbf-title--sm { font-size: 1.25rem; }
.hnbf .hnbf-title--card { font-size: 1.2rem; }

.hnbf .hnbf-text-yellow { color: var(--hnbf-yellow); }
.hnbf .hnbf-text-red { color: var(--hnbf-red); }

.hnbf .hnbf-lead {
	color: var(--hnbf-muted);
	font-size: 1.125rem;
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
}

.hnbf .hnbf-lead strong { color: var(--hnbf-text); }

.hnbf .hnbf-muted { color: var(--hnbf-muted); }
.hnbf .hnbf-muted strong { font-weight: 600; }

/* ---------- Seções ---------- */
.hnbf .hnbf-section {
	position: relative;
	padding: 60px 0;
}

.hnbf .hnbf-section.pt-0 { padding-top: 0; }

/* ---------- Hero ---------- */
.hnbf .hnbf-hero {
	position: relative;
	padding: clamp(5rem, 9vw, 8.5rem) 0 clamp(4rem, 6vw, 5.5rem);
	isolation: isolate;
}

.hnbf .hnbf-hero__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(140px);
	z-index: -1;
	pointer-events: none;
}

.hnbf .hnbf-hero__glow--1 {
	width: 640px; height: 640px;
	top: -260px; left: calc(50% - 50vw - 200px);
	background: rgba(253, 110, 84, .22);
}

.hnbf .hnbf-hero__glow--2 {
	width: 680px; height: 680px;
	top: -220px; right: calc(50% - 50vw - 220px);
	background: rgba(169, 100, 255, .22);
}

.hnbf .hnbf-hero__grid {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
	mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
}

/* Pill (dark-style-btn do Hostingard) */
.hnbf .hnbf-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 18px;
	border-radius: 999px;
	border: 1.5px solid rgba(255, 255, 255, .13);
	background: rgba(40, 40, 40, .1);
	box-shadow: 2px 4px 16px 0 rgba(248, 248, 248, .06) inset;
	-webkit-backdrop-filter: blur(50px);
	backdrop-filter: blur(50px);
	color: var(--hnbf-red);
	font-size: .875rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.hnbf .hnbf-pill__dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--hnbf-red);
	box-shadow: 0 0 0 0 rgba(253, 110, 84, .7);
	animation: hnbf-pulse 1.8s infinite;
}

@keyframes hnbf-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(253, 110, 84, .7); }
	70%  { box-shadow: 0 0 0 10px rgba(253, 110, 84, 0); }
	100% { box-shadow: 0 0 0 0 rgba(253, 110, 84, 0); }
}

/* ---------- Countdown ---------- */
.hnbf .hnbf-countdown {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 10px;
}

.hnbf .hnbf-countdown__item {
	min-width: 88px;
	padding: 14px 10px 10px;
	border-radius: 12px;
	background: var(--hnbf-surface);
	border: 1px solid var(--hnbf-border);
	text-align: center;
}

.hnbf .hnbf-countdown__num {
	display: block;
	font-family: var(--hnbf-font);
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 700;
	line-height: 1;
	color: var(--hnbf-yellow);
	font-variant-numeric: tabular-nums;
}

.hnbf .hnbf-countdown__label {
	display: block;
	margin-top: 6px;
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--hnbf-muted);
}

.hnbf .hnbf-countdown__sep {
	font-family: var(--hnbf-font);
	font-size: 2rem;
	font-weight: 700;
	line-height: 64px;
	color: rgba(255, 255, 255, .25);
}

.hnbf .hnbf-countdown__ended {
	display: none;
	width: 100%;
	margin: 0;
	color: var(--hnbf-red);
	font-weight: 600;
}

.hnbf .hnbf-countdown.is-ended .hnbf-countdown__item,
.hnbf .hnbf-countdown.is-ended .hnbf-countdown__sep { display: none; }
.hnbf .hnbf-countdown.is-ended .hnbf-countdown__ended { display: block; }

/* ---------- Botões ---------- */
.hnbf .hnbf-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	border: 1.5px solid transparent;
	transition: background-color .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
	cursor: pointer;
}

.hnbf .hnbf-btn svg { transition: transform .25s; }
.hnbf .hnbf-btn:hover svg { transform: translateX(4px); }

.hnbf .hnbf-btn--yellow {
	background: var(--hnbf-yellow);
	color: #080f2c !important;
}

.hnbf .hnbf-btn--yellow:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px -10px rgba(231, 254, 84, .6);
	color: #080f2c !important;
}

.hnbf .hnbf-btn--glass {
	border-color: rgba(255, 255, 255, .13);
	background: rgba(40, 40, 40, .1);
	box-shadow: 2px 4px 16px 0 rgba(248, 248, 248, .06) inset;
	color: var(--hnbf-text) !important;
}

.hnbf .hnbf-btn--glass:hover,
.hnbf .hnbf-card:hover .hnbf-btn--glass,
.hnbf .hnbf-card--featured .hnbf-btn--glass {
	background: var(--hnbf-yellow);
	border-color: var(--hnbf-yellow);
	color: #080f2c !important;
}

.hnbf .hnbf-coupon {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 22px;
	border-radius: 999px;
	border: 1.5px dashed var(--hnbf-red);
	color: var(--hnbf-text);
	font-size: .95rem;
}

.hnbf .hnbf-coupon svg { color: var(--hnbf-red); }
.hnbf .hnbf-coupon strong { color: var(--hnbf-red); letter-spacing: .06em; }

/* ---------- Diferenciais (card_12_item) ---------- */
.hnbf .hnbf-feature {
	padding: 28px;
	border-radius: 16px;
	border: 1px solid var(--hnbf-border);
	background: rgba(17, 14, 27, .5);
	transition: background-color .3s, border-color .3s;
}

.hnbf .hnbf-feature__icon {
	width: 64px; height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: rgba(231, 254, 84, .1);
	color: var(--hnbf-yellow);
	transition: background-color .3s, color .3s;
}

.hnbf .hnbf-feature:hover {
	background: var(--hnbf-surface);
	border-color: rgba(231, 254, 84, .25);
}

.hnbf .hnbf-feature:hover .hnbf-feature__icon {
	background: var(--hnbf-yellow);
	color: #080f2c;
}

/* ---------- Grupos de ofertas ---------- */
.hnbf .hnbf-group + .hnbf-group {
	margin-top: 48px;
	padding-top: 48px;
	border-top: 1px solid var(--hnbf-border);
}

.hnbf .hnbf-group__info {
	position: sticky;
	top: 100px;
}

.hnbf .hnbf-group__icon {
	width: 60px; height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	color: var(--hnbf-text);
	background: linear-gradient(135deg, var(--hnbf-red), var(--hnbf-purple));
}

.hnbf .hnbf-group__icon img {
	width: 34px;
	height: 34px;
	object-fit: contain;
	/* SVG vem preto: deixa branco para contrastar com o degradê */
	filter: brightness(0) invert(1);
}

.hnbf .hnbf-off-tag {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 8px;
	background: rgba(253, 110, 84, .12);
	color: var(--hnbf-red);
	font-family: var(--hnbf-font);
	font-weight: 700;
	letter-spacing: .04em;
}

/* ---------- Cards de plano (blog_11_item) ---------- */
.hnbf .hnbf-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 28px 24px 24px;
	border-radius: 16px;
	background: var(--hnbf-surface);
	border: 1px solid var(--hnbf-border);
	transition: transform .3s, border-color .3s, box-shadow .3s;
}

.hnbf .hnbf-card:hover {
	transform: translateY(-4px);
	border-color: rgba(231, 254, 84, .35);
	box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8);
}

.hnbf .hnbf-card--featured {
	border-color: transparent;
	background:
		linear-gradient(var(--hnbf-surface), var(--hnbf-surface)) padding-box,
		linear-gradient(135deg, var(--hnbf-red), var(--hnbf-purple)) border-box;
	border: 1.5px solid transparent;
}

.hnbf .hnbf-card__ribbon {
	position: absolute;
	top: -12px;
	left: 24px;
	padding: 4px 12px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--hnbf-red), var(--hnbf-purple));
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.hnbf .hnbf-card__badge {
	flex-shrink: 0;
	padding: 4px 10px;
	border-radius: 8px;
	background: var(--hnbf-red);
	color: #fff;
	font-family: var(--hnbf-font);
	font-weight: 700;
	font-size: .9rem;
}

.hnbf .hnbf-card__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0;
}

.hnbf .hnbf-card__list li {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--hnbf-muted);
	font-size: .92rem;
}

.hnbf .hnbf-card__list svg { flex-shrink: 0; }

.hnbf .hnbf-card__price {
	padding-top: 18px;
	border-top: 1px dashed var(--hnbf-border);
}

.hnbf .hnbf-card__old {
	display: block;
	color: rgba(255, 255, 255, .45);
	text-decoration: line-through;
	font-size: .95rem;
}

.hnbf .hnbf-card__new {
	font-family: var(--hnbf-font);
	font-size: 2.4rem;
	font-weight: 700;
	line-height: 1.1;
	color: var(--hnbf-text);
	margin: 2px 0 6px;
}

.hnbf .hnbf-card__new small {
	font-size: 1.1rem;
	font-weight: 600;
	margin-right: 4px;
	vertical-align: super;
}

.hnbf .hnbf-card__period {
	font-family: inherit;
	font-size: .95rem;
	font-weight: 400;
	color: var(--hnbf-muted);
	margin-left: 2px;
}

.hnbf .hnbf-card__period--block {
	display: block;
	margin: 2px 0 0;
	font-size: .85rem;
}

.hnbf .hnbf-card__save {
	display: inline-block;
	color: var(--hnbf-yellow);
	font-size: .85rem;
	font-weight: 600;
}

/* ---------- Card largo (grupo com 1 plano, ex.: Cross Platform) ---------- */
.hnbf .hnbf-card--wide { padding: 20px; }

.hnbf .hnbf-card__media {
	position: relative;
	height: 100%;
	min-height: 260px;
	border-radius: 12px;
	overflow: hidden;
	background: #000;
}

.hnbf .hnbf-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform .5s;
}

.hnbf .hnbf-card:hover .hnbf-card__media img { transform: scale(1.04); }

.hnbf .hnbf-card__seal {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(9, 9, 17, .75);
	border: 1px solid rgba(255, 255, 255, .15);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: var(--hnbf-yellow);
	font-size: .78rem;
	font-weight: 600;
}

.hnbf .hnbf-card__play {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #ff0000;
	color: #fff !important;
	box-shadow: 0 8px 24px -6px rgba(255, 0, 0, .6);
	transition: transform .25s;
}

.hnbf .hnbf-card__play:hover { transform: scale(1.08); }

.hnbf .hnbf-card__callout {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-radius: 12px;
	background: rgba(231, 254, 84, .07);
	border: 1px solid rgba(231, 254, 84, .18);
}

.hnbf .hnbf-card__callout strong { display: block; color: var(--hnbf-yellow); font-family: var(--hnbf-font); }
.hnbf .hnbf-card__callout span { color: var(--hnbf-muted); font-size: .9rem; }

.hnbf .hnbf-card__info {
	position: relative;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, .35);
	color: var(--hnbf-text) !important;
	font-size: .8rem;
	font-weight: 700;
	font-style: italic;
	cursor: help;
}

.hnbf .hnbf-card__tip {
	position: absolute;
	right: 0;
	bottom: calc(100% + 10px);
	width: 240px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #1d1930;
	border: 1px solid var(--hnbf-border);
	color: var(--hnbf-text) !important;
	font-size: .82rem !important;
	font-style: normal;
	font-weight: 400;
	line-height: 1.45;
	box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .8);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity .2s, transform .2s, visibility .2s;
	z-index: 5;
}

.hnbf .hnbf-card__info:hover .hnbf-card__tip,
.hnbf .hnbf-card__info:focus .hnbf-card__tip {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.hnbf .hnbf-card__list--2col {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 16px;
}

.hnbf .hnbf-card__prefix {
	display: block;
	margin-top: 4px;
	color: var(--hnbf-muted);
	font-size: .85rem;
}

@media (max-width: 575.98px) {
	.hnbf .hnbf-card__list--2col { grid-template-columns: 1fr; }
}

.hnbf .hnbf-note {
	color: rgba(255, 255, 255, .45);
	font-size: .85rem;
}

/* ---------- CTA ---------- */
.hnbf .hnbf-cta {
	position: relative;
	overflow: hidden;
	padding: clamp(32px, 5vw, 56px);
	border-radius: 20px;
	background: var(--hnbf-surface-2);
	border: 1px solid var(--hnbf-border);
	isolation: isolate;
}

.hnbf .hnbf-cta__big {
	position: absolute;
	right: -10px;
	bottom: -60px;
	z-index: -1;
	font-family: var(--hnbf-font);
	font-size: clamp(8rem, 18vw, 15rem);
	font-weight: 700;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(231, 254, 84, .12);
	pointer-events: none;
	user-select: none;
}

/* ---------- Responsivo ---------- */
@media (max-width: 991.98px) {
	.hnbf .hnbf-group__info { position: static; text-align: center; }
	.hnbf .hnbf-group__icon { margin-left: auto; margin-right: auto; }
	.hnbf .hnbf-cta { text-align: center; }
}

@media (max-width: 575.98px) {
	.hnbf .hnbf-countdown__item { min-width: 66px; padding: 10px 6px 8px; }
	.hnbf .hnbf-countdown__sep { display: none; }
	.hnbf .hnbf-btn { width: 100%; justify-content: center; }
	.hnbf .hnbf-coupon { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.hnbf *,
	.hnbf *::before,
	.hnbf *::after { animation: none !important; transition: none !important; }
}

/* Evita barra de rolagem horizontal causada pelo 100vw (largura da scrollbar no Windows) */
html:has(.hnbf:not(.hnbf--popup)),
body:has(.hnbf:not(.hnbf--popup)) {
	overflow-x: clip;
}

/* Remove espaçamentos do widget/container do Elementor em volta da shortcode */
.elementor-widget-shortcode:has(> .elementor-widget-container .hnbf),
.elementor-widget-shortcode:has(> .elementor-widget-container .hnbf) > .elementor-widget-container,
.elementor-widget-shortcode:has(> .elementor-shortcode > .hnbf) {
	margin: 0 !important;
	padding: 0 !important;
}

/* ==========================================================================
   Popup
   ========================================================================== */
.hnbf-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.hnbf-popup[hidden] { display: none; }

.hnbf-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .75);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity .3s;
}

.hnbf-popup.is-open .hnbf-popup__overlay { opacity: 1; }

/* O diálogo reaproveita o visual .hnbf, mas sem as regras de "largura total" da página */
.hnbf.hnbf--popup {
	position: relative;
	width: 100%;
	max-width: 680px;
	max-height: calc(100vh - 32px);
	overflow-x: hidden; /* brilhos do fundo não geram rolagem lateral */
	overflow-y: auto;  /* só rola em telas muito baixas */
	scrollbar-width: none;
	-ms-overflow-style: none;
	clip-path: none;
	isolation: isolate;
	padding: clamp(40px, 6vw, 56px) clamp(20px, 5vw, 48px) clamp(28px, 4vw, 40px);
	border-radius: 24px;
	border: 1px solid rgba(255, 255, 255, .12);
	background: #090911;
	box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9);
	opacity: 0;
	transform: translateY(24px) scale(.97);
	transition: opacity .35s, transform .35s;
	overscroll-behavior: contain;
}

.hnbf.hnbf--popup::before { display: none; }
.hnbf.hnbf--popup::-webkit-scrollbar { display: none; }

.hnbf-popup.is-open .hnbf--popup {
	opacity: 1;
	transform: none;
}

.hnbf.hnbf--popup .hnbf-hero__glow { filter: blur(90px); }
.hnbf.hnbf--popup .hnbf-hero__glow--1 { width: 360px; height: 360px; top: -160px; left: -120px; right: auto; background: rgba(253, 110, 84, .35); }
.hnbf.hnbf--popup .hnbf-hero__glow--2 { width: 380px; height: 380px; top: -140px; right: -140px; left: auto; background: rgba(169, 100, 255, .35); }

.hnbf .hnbf-popup__body { position: relative; z-index: 1; }

.hnbf .hnbf-popup__title { font-size: clamp(1.8rem, 5vw, 2.75rem); }

.hnbf .hnbf-popup__lead { font-size: 1rem; max-width: 520px; }

.hnbf--popup .hnbf-countdown__item { min-width: 76px; padding: 12px 8px 8px; }
.hnbf--popup .hnbf-countdown__num { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.hnbf--popup .hnbf-countdown__sep { line-height: 54px; font-size: 1.6rem; }

.hnbf .hnbf-popup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .15);
	background: rgba(255, 255, 255, .06);
	color: #fff;
	cursor: pointer;
	transition: background-color .2s, transform .2s;
}

.hnbf .hnbf-popup__close:hover { background: rgba(255, 255, 255, .14); transform: rotate(90deg); }

.hnbf .hnbf-popup__later {
	padding: 6px 12px;
	border: 0;
	background: none;
	color: var(--hnbf-muted);
	font-size: .9rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.hnbf .hnbf-popup__later:hover { color: #fff; }

body.hnbf-popup-open { overflow: hidden; }

@media (max-width: 575.98px) {
	.hnbf--popup .hnbf-countdown__item { min-width: 60px; }
	.hnbf .hnbf-popup__close { top: 10px; right: 10px; }
}
