/* Demonstração AVM — Allan Vieira Mídias */
.avm-bar, .avm-card, .avm-float {
	--avm-bg: #111315;
	--avm-surface: #1a1d20;
	--avm-text: #f2f4f5;
	--avm-muted: #aab1b7;
	--avm-cyan: #22c7e6;
	--avm-lime: #a3e635;
	--avm-wa: #25d366;
	--avm-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-family: var(--avm-font);
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}
.avm-bar *, .avm-card *, .avm-float * { box-sizing: border-box; }

/* Faixa no topo */
.avm-bar {
	position: relative; z-index: 99990;
	display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px;
	min-height: 38px; padding: 7px 16px; margin: 0;
	background: var(--avm-bg); color: var(--avm-text);
	border-bottom: 1px solid rgba(255,255,255,.08);
	font-size: 13px; line-height: 1.35; text-align: center;
}
.avm-bar__logo { width: 20px; height: 20px; flex-shrink: 0; }
.avm-bar__text { color: var(--avm-text); }
.avm-bar__link {
	color: var(--avm-cyan) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
	padding: 4px 0;
}
.avm-bar__link:hover { color: var(--avm-lime) !important; }

/* Card de chamada */
.avm-card {
	position: fixed; z-index: 99998; bottom: calc(var(--avm-off-d, 24px) + 92px); width: 340px; max-width: calc(100vw - 32px);
	padding: 20px 20px 16px; border-radius: 18px;
	background: linear-gradient(160deg, #15191c 0%, var(--avm-bg) 70%); color: var(--avm-text);
	border: 1px solid rgba(255,255,255,.1);
	box-shadow: 0 24px 60px -18px rgba(0,0,0,.65), 0 0 0 1px rgba(34,199,230,.12);
	opacity: 0; transform: translateY(16px); transition: opacity .35s ease, transform .35s ease;
}
.avm-card.avm--right { right: 16px; }
.avm-card.avm--left { left: 16px; }
.avm-card.is-open { opacity: 1; transform: none; }
.avm-card[hidden] { display: none; }
.avm-card::before {
	content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: 18px 18px 0 0;
	background: linear-gradient(90deg, var(--avm-lime), var(--avm-cyan));
}
.avm-card__close {
	position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: transparent; color: var(--avm-muted); font: 400 26px/1 var(--avm-font); cursor: pointer;
}
.avm-card__close:hover { color: var(--avm-text); background: rgba(255,255,255,.06); }
.avm-card__head { display: flex; align-items: center; gap: 10px; margin: 0 40px 12px 0; }
.avm-card__head img { width: 40px; height: 40px; flex-shrink: 0; }
.avm-card__seal {
	display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
	letter-spacing: .08em; text-transform: uppercase; color: var(--avm-cyan);
	background: rgba(34,199,230,.1); border: 1px solid rgba(34,199,230,.3);
}
.avm-card__title { margin: 0 0 8px; font-size: 21px; line-height: 1.22; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.avm-card__text { margin: 0 0 16px; font-size: 14.5px; line-height: 1.5; color: var(--avm-muted); }
.avm-card__btn {
	display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 12px 16px;
	border-radius: 14px; background: var(--avm-wa); color: #fff !important; text-decoration: none !important;
	font-size: 16px; font-weight: 700; box-shadow: 0 10px 26px -10px rgba(37,211,102,.75);
	transition: transform .15s ease, box-shadow .15s ease;
}
.avm-card__btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(37,211,102,.9); }
.avm-card__btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.avm-card__by { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--avm-muted); }
.avm-card__by strong { color: var(--avm-text); font-weight: 600; }

/* Botão flutuante "atendimento ao vivo" */
.avm-float {
	position: fixed; z-index: 99999; bottom: var(--avm-off-d, 24px); width: 92px; height: 92px;
	display: grid; place-items: center; text-decoration: none !important; -webkit-tap-highlight-color: transparent;
}
.avm-float.avm--right { right: 12px; }
.avm-float.avm--left { left: 12px; }
.avm-float__ring {
	position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
	animation: avm-spin 14s linear infinite;
}
.avm-float__ring text {
	fill: var(--avm-text); font: 700 10.5px var(--avm-font); letter-spacing: 1.2px;
	paint-order: stroke; stroke: rgba(17,19,21,.85); stroke-width: 3px; stroke-linejoin: round;
}
.avm-float__btn {
	position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
	background: var(--avm-wa); color: #fff; box-shadow: 0 10px 28px -8px rgba(37,211,102,.75);
	transition: transform .2s ease;
}
.avm-float:hover .avm-float__btn { transform: scale(1.06); }
.avm-float__btn svg { width: 30px; height: 30px; }
.avm-float__dot {
	position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%;
	background: #ff3b30; border: 2px solid #fff; animation: avm-pulse 1.8s ease-out infinite;
}
.avm-float:focus-visible, .avm-card__btn:focus-visible, .avm-card__close:focus-visible, .avm-bar__link:focus-visible {
	outline: 3px solid var(--avm-cyan); outline-offset: 3px;
}
@keyframes avm-spin { to { transform: rotate(360deg); } }
@keyframes avm-pulse {
	0% { box-shadow: 0 0 0 0 rgba(255,59,48,.6); }
	70% { box-shadow: 0 0 0 9px rgba(255,59,48,0); }
	100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); }
}

@media (max-width: 600px) {
	.avm-float { bottom: var(--avm-off-m, 96px); width: 84px; height: 84px; }
	.avm-float__btn { width: 52px; height: 52px; }
	.avm-card { left: 12px !important; right: 12px !important; width: auto; max-width: none; bottom: calc(var(--avm-off-m, 96px) + 88px); padding: 18px 16px 14px; }
	.avm-card__title { font-size: 19px; }
	.avm-bar { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.avm-float__ring, .avm-float__dot { animation: none; }
	.avm-card { transition: none; }
}
