/* ═══════════════════════ TEMA: BLACK FRIDAY ═══════════════════════
   Ativado quando o root do painel tem a classe .theme-blackfriday (Templates no admin).
   Preto + amarelo: o amarelo é o mesmo #FFDF00 do tema Copa. A logo Eemovel fica como é.
   Mockup aprovado pelo Hugo em 31/10/2026 (painel + animação de venda). */

.mural.sport.theme-blackfriday {
  --orange: #FFDF00;       /* accent → amarelo */
  --orange-deep: #E6B800;
  --abyss: #050505;        /* fundo → preto */
  background: #050505;
}
.mural.sport.theme-blackfriday::before {
  background-image:
    linear-gradient(90deg, transparent 0%, transparent calc(100% - 1px), rgba(255,255,255,0.025) 100%),
    linear-gradient(180deg, transparent 0%, transparent calc(100% - 1px), rgba(255,255,255,0.025) 100%);
}

/* ── Faixa no topo (30px): empurra header e corpo pra baixo ──
   Header 88→74px e corpo começa em 104px (antes 88px): o ranking perde 16px de altura, que as
   linhas da tabela absorvem (encolhem de 44px até 32px) — continuam cabendo 14 vendedores. */
.bf-ticker {
  position: absolute; top: 0; left: 0; right: 0; height: 30px; z-index: 6;
  background: #FFDF00; color: #050505; overflow: hidden;
}
.bf-ticker-track {
  display: flex; width: max-content; white-space: nowrap;
  font-family: 'Geist Mono', monospace; font-size: 13px; font-weight: 700; letter-spacing: 0.2em; line-height: 30px;
  animation: bf-marquee 70s linear infinite; will-change: transform;
}
.bf-ticker-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; }
.bf-ticker-track i { font-style: normal; opacity: 0.55; }
@keyframes bf-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.mural.theme-blackfriday .mural-header { top: 30px; height: 74px; border-bottom-color: #262626; background: #050505; }
.mural.theme-blackfriday .mural-body { inset: 104px 0 0 0; }

.bf-wordmark {
  display: flex; align-items: center; gap: 14px;
  font-family: 'Anybody', sans-serif; font-style: italic; font-weight: 900; font-size: 38px;
  letter-spacing: -0.02em; line-height: 1; color: var(--cream);
}
.bf-wordmark > span:first-child { color: #FFDF00; }
.bf-barcode { display: inline-flex; align-items: stretch; gap: 3px; height: 30px; }
.bf-barcode i { display: block; background: var(--cream); }

.bf-countdown {
  display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px; box-sizing: border-box;
  border: 1px solid #FFDF00; border-radius: 7px; color: #FFDF00;
  font-family: 'Geist Mono', monospace; font-size: 12px; letter-spacing: 0.14em; white-space: nowrap;
}
.bf-countdown-dot { width: 8px; height: 8px; border-radius: 50%; background: #FFDF00; animation: live-pulse 1.6s infinite; }

.theme-blackfriday .brand-tag { border-color: #333333; color: #D5D9E7; }
.theme-blackfriday .area-chevron { color: #D5D9E7; }

/* ── Cartões e painéis: preto sólido, borda cinza; o principal ganha borda amarela ── */
.theme-blackfriday.mural-vendas-mrr .kpi-card,
.theme-blackfriday.mural-vendas-mrr .panel { background: #111111; border-color: #262626; }
.theme-blackfriday.mural-vendas-mrr .kpi-card.hero { position: relative; background: #111111; border: 2px solid #FFDF00; }
.theme-blackfriday.mural-vendas-mrr .kpi-card.hero .kpi-val { color: var(--cream); }
.theme-blackfriday.mural-vendas-mrr .kpi-bar-fill,
.theme-blackfriday.mural-vendas-mrr .podium-meta-fill,
.theme-blackfriday.mural-vendas-mrr .rank-meta-fill { background: #FFDF00; }
.theme-blackfriday.mural-vendas-mrr .kpi-label .tag { background: rgba(255,223,0,0.16); }
.theme-blackfriday.mural-vendas-mrr .fs-projetado { background: repeating-linear-gradient(45deg, rgba(255,223,0,0.55) 0 6px, rgba(255,223,0,0.12) 6px 12px); }
.theme-blackfriday.mural-vendas-mrr .forecast-vs.hit,
.theme-blackfriday.mural-vendas-mrr .forecast-vs.hit b,
.theme-blackfriday.mural-vendas-mrr .ritmo-atual-sub.ok { color: #FFDF00; }

/* Etiqueta de preço "XX% DA META" no canto do cartão principal */
.bf-price-tag {
  position: absolute; top: 12px; right: 16px; z-index: 2;
  background: #FFDF00; color: #050505; padding: 7px 14px 7px 26px;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  font-family: 'Anybody', sans-serif; font-style: italic; font-weight: 900; font-size: 17px; line-height: 1;
  transform: rotate(-4deg);
}
.bf-price-tag i { position: absolute; left: 12px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #050505; }

/* ── Ranking: 1º lugar vira etiqueta amarela ── */
.theme-blackfriday.mural-vendas-mrr .podium-first.podium-card { background: #FFDF00; border-color: #FFDF00; color: #050505; }
.theme-blackfriday.mural-vendas-mrr .podium-first .podium-name,
.theme-blackfriday.mural-vendas-mrr .podium-first .podium-mrr,
.theme-blackfriday.mural-vendas-mrr .podium-first .podium-mrr-tag,
.theme-blackfriday.mural-vendas-mrr .podium-first .podium-meta-pct,
.theme-blackfriday.mural-vendas-mrr .podium-first .podium-meta-pct b,
.theme-blackfriday.mural-vendas-mrr .podium-first .podium-extra,
.theme-blackfriday.mural-vendas-mrr .podium-first .podium-extra b { color: #050505; }
/* Selo do 1º dentro da etiqueta: metade pra fora (padrão) some no fundo preto e parece cortado. */
.theme-blackfriday.mural-vendas-mrr .podium-first .podium-rank-badge { background: #050505; color: #FFDF00; position: static; transform: none; }
.theme-blackfriday.mural-vendas-mrr .podium-first.podium-card { padding-top: 10px; }
.theme-blackfriday.mural-vendas-mrr .podium-first .podium-avatar { margin-top: 0; }
.theme-blackfriday.mural-vendas-mrr .podium-first .podium-avatar { border-color: #050505; box-shadow: none; }
.theme-blackfriday.mural-vendas-mrr .podium-first .podium-meta-bar { background: rgba(5,5,5,0.18); }
.theme-blackfriday.mural-vendas-mrr .podium-first .podium-meta-fill { background: #050505; }
.theme-blackfriday.mural-vendas-mrr .podium-first.podium-card::before {
  content: ""; position: absolute; left: 14px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: #050505;
}
.theme-blackfriday.mural-vendas-mrr .podium-card { background: #050505; border-color: #333333; }
.theme-blackfriday.mural-vendas-mrr .podium-rank-badge { background: #D5D9E7; }
.theme-blackfriday.mural-vendas-mrr .rank-table .rank-row { background: rgba(255,255,255,0.03); border-color: #1F1F1F; }

/* ═══════════════════════ ANIMAÇÃO DE VENDA · BLACK FRIDAY ═══════════════════════
   Etiqueta cai e balança com a foto do vendedor, carimbo "VENDIDO!" e cupom impresso.
   Tudo em HTML + transform/opacity (composto na GPU) — roda também no modo leve da TV. */
.sa-overlay.bf-sale {
  background: #050505;
  display: block;
}
.bf-rays {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 30% 52%, rgba(255,223,0,0.09) 0deg 7deg, rgba(5,5,5,0) 7deg 18deg);
}
.bf-tape {
  position: absolute; left: -200px; width: 2400px; display: flex; gap: 36px; white-space: nowrap; z-index: 3;
  animation: sa-slide-down 0.5s 0.05s both ease-out;
}
.bf-tape span { display: inline-block; }
.bf-tape-top {
  top: 64px; height: 62px; align-items: center; padding-left: 40px;
  background: #FFDF00; color: #050505; transform: rotate(-6deg);
  font-family: 'Anybody', sans-serif; font-style: italic; font-weight: 900; font-size: 34px;
}
.bf-tape-bottom {
  bottom: 34px; height: 50px; align-items: center; padding-left: 120px;
  background: #FFF5EB; color: #050505; transform: rotate(4deg);
  font-family: 'Geist Mono', monospace; font-weight: 700; font-size: 21px; letter-spacing: 0.24em;
}

/* Etiqueta pendurada por um barbante: cai do topo e balança até parar */
.bf-tag-string { position: absolute; left: 489px; top: 0; width: 3px; height: 300px; background: #8A8A8A; z-index: 4; transform-origin: top; animation: bf-string 0.7s 0.15s both ease-out; }
@keyframes bf-string { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.bf-tag-wrap {
  position: absolute; left: 150px; top: 270px; width: 660px; height: 470px; z-index: 6;
  transform-origin: 52% 4%;
  animation: bf-tag-drop 0.75s 0.15s both cubic-bezier(0.34, 1.4, 0.64, 1), bf-tag-swing 2.6s 0.9s ease-in-out both;
  will-change: transform;
}
@keyframes bf-tag-drop { from { transform: translateY(-760px) rotate(-7deg); } to { transform: translateY(0) rotate(-7deg); } }
@keyframes bf-tag-swing {
  0% { transform: rotate(-7deg); } 20% { transform: rotate(4deg); } 40% { transform: rotate(-9deg); }
  60% { transform: rotate(-4deg); } 80% { transform: rotate(-8deg); } 100% { transform: rotate(-7deg); }
}
.bf-tag-shape { position: absolute; inset: 0; background: #FFDF00; clip-path: polygon(50% 0, 100% 16%, 100% 100%, 0 100%, 0 16%); border-radius: 6px; }
.bf-tag-hole { position: absolute; left: 50%; top: 34px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: #050505; }
.bf-tag-body { position: absolute; left: 0; right: 0; top: 96px; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; color: #050505; }
.bf-tag-avatar {
  width: 172px; height: 172px; border-radius: 50%; overflow: hidden; background: #050505; color: #FFDF00;
  display: grid; place-items: center; border: 6px solid #050505; box-sizing: border-box;
  font-family: 'Anybody', sans-serif; font-style: italic; font-weight: 900; font-size: 62px;
}
.bf-tag-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-tag-name {
  max-width: 600px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: 'Anybody', sans-serif; font-style: italic; font-weight: 900; font-size: 58px; line-height: 1.05; letter-spacing: -0.01em;
}
.bf-tag-sub { font-family: 'Geist Mono', monospace; font-weight: 700; font-size: 18px; letter-spacing: 0.24em; }

/* "VENDIDO!" entra como carimbo (grande → tamanho final) e treme */
.bf-sold { position: absolute; left: 930px; top: 240px; width: 940px; display: flex; flex-direction: column; gap: 18px; z-index: 7; }
.bf-sold-word {
  font-family: 'Anybody', sans-serif; font-style: italic; font-weight: 900; font-size: 172px; line-height: 0.9;
  letter-spacing: -0.03em; color: #FFF5EB; text-shadow: 10px 10px 0 #FFDF00;
  transform-origin: 30% 60%;
  animation: bf-stamp 0.45s 0.85s both cubic-bezier(0.2, 0.9, 0.3, 1.2), sa-shake 0.35s 1.35s 2;
}
@keyframes bf-stamp {
  0% { opacity: 0; transform: scale(2.6) rotate(-10deg); }
  70% { opacity: 1; transform: scale(0.94) rotate(1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
.bf-sold-val { display: flex; align-items: baseline; gap: 14px; margin-top: 18px; animation: sa-slide-up 0.5s 1.2s both ease-out; }
.bf-sold-val b { font-family: 'Anybody', sans-serif; font-style: italic; font-weight: 900; font-size: 120px; line-height: 1; color: #FFDF00; }
.bf-sold-val span { font-family: 'Geist Mono', monospace; font-size: 34px; color: #FFF5EB; }
.bf-sold-sub { font-family: 'Geist Mono', monospace; font-size: 24px; color: #D5D9E7; letter-spacing: 0.06em; animation: sa-slide-up 0.5s 1.35s both ease-out; }
.bf-sold-cliente { font-size: 28px; color: #FFF5EB; animation: sa-slide-up 0.5s 1.45s both ease-out; }

/* Cupom sai "impresso" de baixo pra cima */
.bf-receipt {
  position: absolute; left: 1380px; top: 760px; width: 420px; z-index: 8;
  background: #FFF5EB; color: #050505; padding: 22px 26px 30px; box-sizing: border-box;
  transform: rotate(3deg); box-shadow: 0 18px 40px rgba(0,0,0,0.6);
  font-family: 'Geist Mono', monospace; font-size: 17px; display: flex; flex-direction: column; gap: 8px;
  animation: bf-print 0.9s 1.6s both steps(9);
}
@keyframes bf-print { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.bf-receipt-title { font-weight: 700; letter-spacing: 0.2em; text-align: center; }
.bf-receipt hr { border: 0; border-top: 2px dashed #050505; margin: 0; width: 100%; }
.bf-receipt-row { display: flex; justify-content: space-between; gap: 12px; }
.bf-receipt-row span:last-child { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-receipt .bf-barcode { justify-content: center; height: 46px; margin-top: 8px; }
.bf-receipt .bf-barcode i { background: #050505; }

.bf-sale .sa-music { left: 150px; right: auto; bottom: 170px; }
.bf-sale .sa-music-icon, .bf-sale .sa-eq i { color: #FFDF00; }
.bf-sale .sa-eq i { background: #FFDF00; }

/* Meta batida no tema Black Friday: a faixa quadriculada vira fita amarela e preta */
/* no topo da tela: no meio (posição da quadriculada) a fita amarela some atrás do "PARABÉNS" amarelo */
.sa-checker-banner.bf-tape-banner { top: 18px; background: repeating-linear-gradient(-45deg, #FFDF00 0 28px, #050505 28px 56px); }

/* ═══════════════════════ PRÉ-VENDAS · BLACK FRIDAY ═══════════════════════
   Mesmo visual do comercial no painel de SDRs (mockup aprovado pelo Hugo em 02/11/2026). Tudo
   escopado em .pv-mural / .pv-bf-appt / .pv-goal-bf — nada aqui muda o painel de vendas. Faixa
   (30px) e cabeçalho (74px) já vêm das regras .mural.theme-blackfriday lá de cima; aqui só o
   corpo, que começa em 104px (antes 88px). */
.pv-mural.theme-blackfriday { --cyan: #FFDF00; } /* cor da área vira amarelo (mesma ideia do Copa) */
.pv-mural.theme-blackfriday .pv-body { inset: 104px 48px 0; }
.pv-mural.theme-blackfriday .kpi-card { background: #111111; border-color: #262626; }
.pv-mural.theme-blackfriday .kpi-card.hero { position: relative; border: 2px solid #FFDF00; }
.pv-mural.theme-blackfriday .rank-panel { background: rgba(255,255,255,0.02); border-color: #262626; }
.pv-mural.theme-blackfriday .rank-head,
.pv-mural.theme-blackfriday .rank-cols { border-bottom-color: #262626; }
.pv-mural.theme-blackfriday .rank-foot2 { border-top-color: #262626; }
.pv-mural.theme-blackfriday .rank-row2 { background: rgba(255,255,255,0.03); border-bottom-color: #1F1F1F; }
.pv-mural.theme-blackfriday .r-agenda-bar-fill { background: #FFDF00; }
.pv-mural.theme-blackfriday .rank-row2.ia { background: transparent; border-top-color: #3A3A3A; }

/* 1º lugar vira etiqueta amarela (como o pódio do comercial). padding-right menor compensa a
   margem, pra as colunas de número continuarem alinhadas com as outras linhas. */
.pv-mural.theme-blackfriday .rank-row2.leader {
  position: relative; background: #FFDF00; border-bottom: 0;
  margin: 2px 12px 6px; padding-left: 40px; padding-right: 14px;
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 50%);
}
.pv-mural.theme-blackfriday .rank-row2.leader::before { content: ""; position: absolute; left: 16px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #050505; }
.pv-mural.theme-blackfriday .rank-row2.leader .r-num { width: 40px; height: 40px; border-radius: 50%; background: #050505; color: #FFDF00; display: grid; place-items: center; font-size: 16px; font-weight: 700; }
.pv-mural.theme-blackfriday .rank-row2.leader .r-name2,
.pv-mural.theme-blackfriday .rank-row2.leader .r-agenda-top .cur,
.pv-mural.theme-blackfriday .rank-row2.leader .r-agenda-pct,
.pv-mural.theme-blackfriday .rank-row2.leader .r-stack2 .n,
.pv-mural.theme-blackfriday .rank-row2.leader .r-booking2 .val { color: #050505; }
.pv-mural.theme-blackfriday .rank-row2.leader .r-agenda-top .meta,
.pv-mural.theme-blackfriday .rank-row2.leader .r-stack2 .p,
.pv-mural.theme-blackfriday .rank-row2.leader .r-booking2 .cap { color: rgba(5,5,5,0.62); }
.pv-mural.theme-blackfriday .rank-row2.leader .r-agenda-bar { background: rgba(5,5,5,0.16); }
.pv-mural.theme-blackfriday .rank-row2.leader .r-agenda-bar-fill { background: #050505; }
.pv-mural.theme-blackfriday .rank-row2.leader .r-avatar2 { box-shadow: 0 0 0 3px #050505; }

/* Novo agendamento: mesma cena do "VENDIDO!", com "AGENDADO!" (palavra mais longa → fonte
   menor) e o ingresso da demo no lugar do cupom (picote à esquerda, sai "impresso"). */
.pv-bf-appt .bf-sold { left: 920px; top: 230px; width: 960px; }
.pv-bf-appt .bf-sold-word { font-size: 156px; }
.pv-bf-appt .bf-sold-val span { text-transform: lowercase; }
.pv-bf-appt .bf-sold-sub b { color: #FFF5EB; }
.pv-bf-appt .bf-ticket {
  position: absolute; left: 1360px; top: 640px; width: 460px; z-index: 8; box-sizing: border-box;
  background: #FFF5EB; color: #050505; padding: 22px 28px 26px 40px;
  transform: rotate(3deg); box-shadow: 0 18px 40px rgba(0,0,0,0.6);
  font-family: 'Geist Mono', monospace; font-size: 17px; display: flex; flex-direction: column; gap: 8px;
  -webkit-mask: radial-gradient(circle 12px at 0 50%, transparent 96%, #000 100%);
  mask: radial-gradient(circle 12px at 0 50%, transparent 96%, #000 100%);
  animation: bf-print 0.9s 1.6s both steps(9);
}
.pv-bf-appt .bf-ticket::before { content: ""; position: absolute; left: 22px; top: 14px; bottom: 14px; border-left: 2px dashed rgba(5,5,5,0.45); }
.pv-bf-appt .bf-ticket-title { font-weight: 700; letter-spacing: 0.2em; text-align: center; }
.pv-bf-appt .bf-ticket hr { border: 0; border-top: 2px dashed #050505; margin: 0; width: 100%; }
.pv-bf-appt .bf-ticket-row { display: flex; justify-content: space-between; gap: 12px; }
.pv-bf-appt .bf-ticket-row > :last-child { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-bf-appt .bf-ticket .bf-barcode { justify-content: center; height: 46px; margin-top: 8px; }
.pv-bf-appt .bf-ticket .bf-barcode i { background: #050505; }

/* Metas batidas (SDR dia/mês e equipe): títulos menores, cada linha cabe inteira; etiqueta
   "% DA META" em cima do número; brilho amarelo no lugar do laranja. */
.pv-goal-bf .sa-headline { top: 108px; }
.pv-goal-bf .sa-h-line { font-size: 124px; white-space: nowrap; }
.pv-goal-bf .sa-avatar { box-shadow: 0 0 40px rgba(255,223,0,0.45); }
.pv-goal-bf .sa-amount-val { font-size: 150px; text-shadow: 0 0 60px rgba(255,223,0,0.35); }
.pv-goal-bf .sa-lower { bottom: 120px; }
.pv-goal-bf .sa-amount .bf-price-tag { position: static; display: inline-block; margin-bottom: 18px; font-size: 26px; padding: 10px 18px 10px 34px; clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 50%); }
.pv-goal-bf .sa-amount .bf-price-tag i { left: 14px; width: 9px; height: 9px; margin-top: -4.5px; }
.pv-goal-bf .pv-team-lower { bottom: 90px; }
.pv-goal-bf .pv-team-lower .sa-amount { text-align: center; }
.pv-goal-bf .pv-team-strip { display: flex; gap: 26px; justify-content: center; margin-top: 26px; }
.pv-goal-bf .pv-team-chip { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border: 1px solid #333333; border-radius: 999px; background: rgba(255,255,255,0.04); }
.pv-goal-bf .pv-team-chip .r-avatar2 { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-family: 'Anybody', sans-serif; font-style: italic; font-weight: 900; font-size: 15px; color: #FFF5EB; }
.pv-goal-bf .pv-team-chip .r-avatar2.ia { border: 2px dashed #FFDF00; }
.pv-goal-bf .pv-team-chip .r-avatar2 img { width: 100%; height: 100%; object-fit: cover; }
.pv-goal-bf .pv-team-name { font-family: 'Geist Mono', monospace; font-size: 18px; color: #D5D9E7; }
.pv-goal-bf .pv-team-chip b { font-family: 'Geist Mono', monospace; font-size: 22px; color: #FFDF00; }
