/* Página da ação — layout 2.0, aparência cinza-escuro/vermelho. Seletores restritos a body.trevo-reference.
   As cores abaixo são o padrão; Configuração > Cores e opções da página da ação sobrescreve as variáveis. */
body.trevo-reference{
  --tv-bg:#161c24;--tv-card:#212b36;--tv-card-2:#000;--tv-bg-deep:#000;
  --tv-border-base:#919eab;
  --tv-border:rgba(145,158,171,.32);--tv-border-soft:rgba(145,158,171,.16);
  --tv-text:#fff;--tv-muted:#c4cdd5;--tv-green:#ff3030;--tv-yellow:#f9d71c;
  --tv-btn-bg:#ff3030;--tv-btn-text:#fff;--tv-pill-bg:#000;--tv-pill-text:#fff;
  --tv-number-bg:#919eab;--tv-status-bg:#161c24;--tv-won-bg:#ff3030;--tv-won-text:#fff;
  --incrivel-bg:var(--tv-bg);--incrivel-bgColor:#fff;--incrivel-cardBg:var(--tv-card);--incrivel-cardColor:#fff;
  --incrivel-modalBg:#fff;--incrivel-modalColor:#222;--incrivel-primaria:#000;--incrivel-primariaColor:#fff;
  background:var(--tv-bg)!important;
  color:var(--tv-text)!important;font-family:Montserrat,"Public Sans",Arial,sans-serif;
  /* clip (e não hidden): no Safari do iPhone, hidden no body quebra o cabeçalho fixo e desloca o menu */
  overflow-x:clip;
  touch-action:manipulation /* sem zoom no toque duplo; pinça continua funcionando */
}
@supports (color:color-mix(in srgb,red,blue)){
  body.trevo-reference{--tv-border:color-mix(in srgb,var(--tv-border-base) 32%,transparent);--tv-border-soft:color-mix(in srgb,var(--tv-border-base) 16%,transparent)}
}

/* Cabeçalho preto fixo no topo: logo à esquerda e menu à direita.
   Ao rolar, fica transparente com desfoque e a logo diminui. */
body.trevo-reference .header-app-header{position:sticky!important;top:0!important;left:auto!important;transform:none!important;width:100%!important;max-width:none;height:auto!important;margin:0!important;background:var(--tv-bg-deep)!important;box-shadow:none!important;z-index:50!important;transition:background-color .2s ease,backdrop-filter .2s ease}
body.trevo-reference .header-app-header.reference-scrolled{background:rgba(0,0,0,.35)!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
body.trevo-reference .header-app-header-container,body.trevo-reference .header-app-header .container{height:auto;max-width:600px;margin:0 auto;padding:0!important;background:transparent!important}
body.trevo-reference .header-app-header .container>div{display:flex!important;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:3px 12px!important;text-align-last:auto!important;transition:min-height .2s ease,padding .2s ease}
body.trevo-reference .header-app-header.reference-scrolled .container>div{min-height:40px;padding:2px 12px!important}
body.trevo-reference .header-app-header .container>div>a.text-right{display:none!important}
body.trevo-reference .header-app-header .container>div>button{display:none!important}
body.trevo-reference .header-app-header .container>div>button.reference-header-menu{display:flex!important;align-items:center;justify-content:center;width:36px;height:36px;margin:0!important;padding:0!important;border:0;background:transparent;color:#fff!important}
body.trevo-reference .header-app-header .container>div>a.flex-grow-1{flex:0 1 auto!important;display:flex!important;align-items:center;min-width:0;padding:0!important;text-align:left!important}
body.trevo-reference .header-app-header .header-app-brand{display:block!important;width:auto!important;max-width:130px!important;height:40px!important;object-fit:contain;object-position:left center;margin:0!important;transition:height .2s ease,max-width .2s ease}
body.trevo-reference .header-app-header.reference-scrolled .header-app-brand{height:30px!important;max-width:100px!important}
body.trevo-reference .black-bar{display:none!important}

/* Coluna principal: painel com cantos superiores arredondados */
body.trevo-reference .app-main.tv-page{width:100%;max-width:600px!important;margin:0 auto!important;padding:0 10px 10px!important;background:var(--tv-card)!important;border-radius:0;min-height:0!important;color:var(--tv-text)}
body.trevo-reference .tv-page *{box-sizing:border-box}
body.trevo-reference .tv-page :is(h1,h2,h3,p){color:inherit}
body.trevo-reference .tv-page button{font-family:inherit;cursor:pointer}
body.trevo-reference [hidden]{display:none!important}
/* Coluna colada no cabeçalho, sem vão acima da foto */
body.trevo-reference .app-main.tv-page{margin-top:0!important;padding-top:0!important}

/* Fotos em largura total, contador e título sobre a foto */
body.trevo-reference .tv-hero{position:relative;margin:0 -10px 10px;background:#000;overflow:hidden;border:0;border-radius:0}
body.trevo-reference .tv-hero-media{position:relative}
body.trevo-reference .tv-hero .carousel,body.trevo-reference .tv-hero .carousel-inner{position:relative}
body.trevo-reference .tv-hero .carousel-item{display:none;float:left;width:100%;margin-right:-100%;aspect-ratio:375/292;background:#000}
body.trevo-reference .tv-hero .carousel-item.active,body.trevo-reference .tv-hero .carousel-item-next,body.trevo-reference .tv-hero .carousel-item-prev{display:block}
body.trevo-reference .tv-hero-img{display:block;width:100%;height:100%;object-fit:cover}
body.trevo-reference .tv-hero .carousel-control-prev,body.trevo-reference .tv-hero .carousel-control-next,body.trevo-reference .tv-hero .carousel-indicators{display:none!important}
body.trevo-reference .tv-hero-media::after{content:"";position:absolute;inset:auto 0 0 0;height:45%;pointer-events:none;z-index:2;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.55) 55%,rgba(0,0,0,.8) 100%)}
body.trevo-reference .tv-hero-count{position:absolute;top:0;right:16px;z-index:5;min-width:52px;padding:5px 12px;border-radius:0 0 8px 8px;background:rgba(22,28,36,.48);color:#fff;font-size:14px;font-weight:600;text-align:center;pointer-events:none}
body.trevo-reference .tv-hero-info{position:absolute;left:0;right:0;bottom:0;z-index:4;padding:0 8px 8px}
body.trevo-reference .tv-hero-badges{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:4px}
body.trevo-reference .tv-badge{display:inline-block;border-radius:6px;padding:4px 8px;font-size:11px;font-weight:700;line-height:1.1;color:#fff}
body.trevo-reference .tv-badge-green{background:var(--tv-green)}
body.trevo-reference .tv-badge-dark{background:rgba(0,0,0,.72)}
/* Título e subtítulo ficam sobre a foto: mantidos em branco para continuarem legíveis. */
body.trevo-reference .tv-hero-title{margin:0!important;font-size:16px!important;line-height:1.2!important;font-weight:500!important;text-transform:uppercase;color:#fff!important;text-shadow:0 1px 6px rgba(0,0,0,.5);overflow-wrap:anywhere}
body.trevo-reference .tv-hero-subtitle{margin:2px 0 0!important;font-size:12px!important;line-height:1.5;font-weight:400;text-transform:uppercase;color:rgba(255,255,255,.75)!important}

body.trevo-reference .tv-tickets{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:36px;margin:0;padding:4px 8px;border:0;background:linear-gradient(90deg,#000,#2c2c2c);color:#fff;font-size:14px;font-weight:700}
body.trevo-reference .tv-tickets:hover{filter:brightness(1.2)}

body.trevo-reference .tv-progress{position:relative;height:18px;margin:0 0 10px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden;font-size:11px;font-weight:700}
body.trevo-reference .tv-progress-bar{height:100%;background:var(--tv-green)}
body.trevo-reference .tv-progress span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--tv-text)}

/* Contagem do sorteio e preço */
body.trevo-reference .tv-draw-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 12px;margin:0 0 10px;padding:0;border:0;background:transparent}
body.trevo-reference .tv-draw-pill{display:inline-flex;align-items:center;gap:6px;min-width:0;padding:4px 10px;border:1px solid var(--tv-border);border-radius:8px;background:var(--tv-pill-bg);color:var(--tv-pill-text);font-size:12px;font-weight:700;letter-spacing:.01em;white-space:nowrap}
body.trevo-reference .tv-draw-pill svg{flex-shrink:0;width:16px;height:16px}
body.trevo-reference .tv-draw-pill .tv-countdown-text{overflow:hidden;text-overflow:ellipsis}
/* Com contagem: duas colunas iguais às dos pacotes (contagem em cima do 1º, "Por apenas" em cima do 2º). */
body.trevo-reference .tv-draw-row.has-draw{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;align-items:stretch}
body.trevo-reference .tv-draw-row.has-draw>*{display:flex;align-items:center;justify-content:center;min-width:0}
/* Contagem em uma linha, sem caixa (só texto e ícone), na mesma altura do "Por apenas". */
body.trevo-reference .tv-draw-row.has-draw .tv-draw-pill{gap:4px;padding:0;border:0;background:transparent;color:var(--tv-text);font-size:clamp(10px,3vw,12px);letter-spacing:-.01em}
body.trevo-reference .tv-draw-row.has-draw .tv-draw-pill svg{width:14px;height:14px}
body.trevo-reference .tv-unit{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
body.trevo-reference .tv-unit span{font-size:12px;font-weight:600;color:var(--tv-text)}
body.trevo-reference .tv-unit strong{padding:2px 8px;border:1px solid var(--tv-border);border-radius:6px;background:var(--tv-pill-bg);color:var(--tv-pill-text);font-size:16px;font-weight:700}
/* Barrinha "Chance da cota premiada sair" (pop-up de oferta ligado): pequena, centralizada abaixo do "Por apenas". */
body.trevo-reference .tv-chance{display:flex;flex-direction:column;align-items:center;gap:3px;width:min(240px,70%);margin:-4px auto 10px}
body.trevo-reference .tv-chance-text{font-size:11px;font-weight:600;line-height:1.2;color:var(--tv-muted);white-space:nowrap}
body.trevo-reference .tv-chance-text b{color:var(--tv-yellow);font-weight:800}
body.trevo-reference .tv-chance-track{position:relative;display:block;width:100%;height:4px;border-radius:99px;background:var(--tv-border);overflow:hidden}
body.trevo-reference .tv-chance-fill{position:absolute;inset:0 auto 0 0;min-width:4px;border-radius:inherit;background:var(--tv-yellow)}

/* Banner promocional (editável na campanha) */
body.trevo-reference .tv-promo-banner{display:flex;flex-direction:column;align-items:center;gap:6px;margin:0 0 10px;padding:16px;border-radius:8px;background:linear-gradient(90deg,#ff3030,#7a0930);color:#fff;text-align:center}
body.trevo-reference .tv-promo-title{margin:0!important;font-size:18px!important;font-weight:700!important;line-height:1.25;text-transform:uppercase;color:#fff!important;overflow-wrap:anywhere}
body.trevo-reference .tv-promo-bar{position:relative;width:100%;height:32px;border-radius:4px;background:linear-gradient(90deg,#ffc1ac,#fff3ec);overflow:hidden}
body.trevo-reference .tv-promo-fill{position:absolute;inset:0 auto 0 0;background:#ff3030;transition:width 1s linear}
body.trevo-reference .tv-promo-time{position:relative;display:flex;align-items:center;justify-content:center;height:100%;font-size:16px;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.35)}
body.trevo-reference .tv-promo-time b{margin-left:5px;font-variant-numeric:tabular-nums}
body.trevo-reference .tv-promo-text{margin:0!important;font-size:15px;line-height:1.45;color:#fff!important;overflow-wrap:anywhere}
body.trevo-reference .tv-promo-valid{font-size:11px;opacity:.9}

body.trevo-reference .tv-alert{margin:0 0 10px;padding:10px 12px;border-radius:8px;background:#3b2a05;color:#ffe08a;font-size:13px}
body.trevo-reference .tv-card{border:0;border-radius:16px;background:var(--tv-bg)}
body.trevo-reference .tv-double{display:flex;flex-direction:column;align-items:center;gap:4px;margin:0 0 10px;padding:16px;text-align:center;font-size:14px;color:#fff;border-radius:8px;background:linear-gradient(90deg,#ff3030,#7a0930)}
body.trevo-reference .tv-double strong{font-size:18px;text-transform:uppercase}
body.trevo-reference .tv-double small{opacity:.85}
body.trevo-reference .tv-section-label{margin:0 0 6px!important;font-size:13px;color:var(--tv-muted);text-align:center}
/* Promoções: caixa escura e compacta que agrupa as teclas, no tamanho do próprio texto. */
body.trevo-reference .tv-promo{margin:0 0 10px;padding:8px;border-radius:10px;background:var(--tv-bg)}
body.trevo-reference .tv-promo-head{display:flex;align-items:center;flex-wrap:wrap;gap:0 8px;margin:0 0 6px;padding:0 2px;line-height:1.2}
body.trevo-reference .tv-promo-head h3{display:flex;align-items:center;gap:4px;margin:0!important;font-size:18px!important;font-weight:800!important;line-height:1.2;color:var(--tv-text)!important}
body.trevo-reference .tv-promo-head svg{flex:0 0 auto;width:18px;height:18px;color:var(--tv-green)}
body.trevo-reference .tv-promo-head span{display:block;margin:0;font-size:15px;font-weight:500;line-height:1.2;color:var(--tv-text)}
body.trevo-reference .tv-promo-list{display:flex;flex-wrap:wrap;gap:5px}
body.trevo-reference .tv-promo-btn{padding:4px 8px;border:1px solid transparent;border-radius:6px;background:var(--tv-promo-key-bg,var(--tv-card-2));color:var(--tv-promo-key-text,var(--tv-text));font-size:12px;line-height:1.3;white-space:nowrap;transition:border-color .15s ease}
body.trevo-reference .tv-promo-btn b{font-size:13px;font-weight:800}
body.trevo-reference.tv-theme-grey .tv-promo-btn{background:var(--tv-promo-key-bg,var(--tv-green));color:#fff}
body.trevo-reference.tv-theme-green .tv-promo-btn{background:var(--tv-promo-key-bg,#000);color:#fff}
body.trevo-reference .tv-promo-btn:hover,body.trevo-reference .tv-promo-btn:focus-visible{border-color:var(--tv-green);outline:0}

/* Pacotes de cotas: cards pretos em duas colunas */
body.trevo-reference .tv-buy-title{margin:0 0 6px!important;padding:8px;border-radius:16px;background:var(--tv-bg);text-align:center;font-size:14px;font-weight:400;color:var(--tv-text)}
body.trevo-reference .tv-packages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:0 0 8px}
body.trevo-reference .tv-package{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-height:72px;padding:8px 4px;border:0;border-radius:8px;background:var(--tv-card-2);color:var(--tv-text);text-align:center;transition:filter .15s,transform .1s}
body.trevo-reference .tv-package:hover{filter:brightness(1.35)}
body.trevo-reference .tv-package:active{transform:scale(.985)}
body.trevo-reference .tv-package.is-selected{box-shadow:inset 0 0 0 2px var(--tv-green)}
body.trevo-reference .tv-package.is-popular{box-shadow:inset 0 0 0 2px var(--tv-yellow);padding-top:12px}
body.trevo-reference .tv-popular{position:absolute;top:0;left:50%;transform:translateX(-50%);display:inline-flex;align-items:center;gap:3px;padding:1px 8px;border-radius:0 0 6px 6px;background:var(--tv-yellow);color:#1a1a1a;font-size:10.5px;font-weight:700;line-height:1.35;white-space:nowrap}
body.trevo-reference .tv-package-qty{font-size:26.67px;font-weight:600;line-height:1.3}
body.trevo-reference .tv-package-price{font-size:13.33px;font-weight:400;line-height:1.4}
body.trevo-reference .tv-package-label{font-size:13.33px;font-weight:400;line-height:1.5;text-transform:uppercase}
/* Formato 2 dos pacotes (medidas da referência no celular): 3 por linha, cartões de 77px.
   Cores do nosso tema: o "Mais popular" usa a cor de destaque (vermelho padrão; muda junto com Configuração > Cores). */
body.trevo-reference .tv-packages.is-style-2{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.33px}
body.trevo-reference .tv-packages.is-style-2 .tv-package{min-height:77px;padding:8px 0}
body.trevo-reference .tv-packages.is-style-2 .tv-package.is-popular{padding-top:8px;background:var(--tv-card-2);box-shadow:inset 0 0 0 2px var(--tv-yellow)}
body.trevo-reference .tv-packages.is-style-2 .tv-popular{left:11.5px;right:11.5px;transform:none;justify-content:center;height:15px;padding:2px;border-radius:0 0 10px 10px;font-size:9.33px;font-weight:600;line-height:11px}
/* Tema branco com verde: pacotes pretos e o "Mais popular" inteiro verde, como o botão "Quero participar". */
body.trevo-reference.tv-theme-green .tv-package,body.trevo-reference.tv-theme-green .tv-packages.is-style-2 .tv-package{background:#000;color:#fff}
body.trevo-reference.tv-theme-green .tv-package.is-popular,body.trevo-reference.tv-theme-green .tv-packages.is-style-2 .tv-package.is-popular{background:var(--tv-btn-bg);color:var(--tv-btn-text);box-shadow:none}
body.trevo-reference.tv-theme-green .tv-package.is-popular.is-selected{box-shadow:inset 0 0 0 2px #fff}
body.trevo-reference.tv-theme-green .tv-popular{background:#0f5c39;color:#fff}
body.trevo-reference .tv-package.is-bump{animation:tv-bump .25s ease-out}
@keyframes tv-bump{40%{transform:scale(.96);box-shadow:inset 0 0 0 2px var(--tv-green)}}

/* Quantidade e botão de participação lado a lado */
body.trevo-reference .tv-action{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;margin:0 0 10px}
body.trevo-reference .tv-action>span#add_to_cart{display:none} /* marcador vazio do fluxo de compra (visitante) */
body.trevo-reference .tv-qty{display:grid;grid-template-columns:30px minmax(0,1fr) 30px;align-items:center;gap:4px;margin:0;padding:4px 6px;border:1px solid var(--tv-border);border-radius:8px;background:var(--tv-card);box-shadow:0 0 2px rgba(0,0,0,.2),0 12px 24px -4px rgba(0,0,0,.12)}
body.trevo-reference .tv-qty-btn{display:flex;align-items:center;justify-content:center;width:26px;height:26px;margin:0 auto;padding:0;border:2px solid currentColor;border-radius:50%;background:transparent;color:var(--tv-muted)}
body.trevo-reference .tv-qty-btn svg{width:14px;height:14px}
body.trevo-reference .tv-qty-btn:hover{color:var(--tv-text)}
body.trevo-reference .tv-page .tv-qty-input{height:40px!important;min-width:0;margin:0;padding:0 4px!important;border:1px solid var(--tv-border)!important;border-radius:8px!important;background:transparent!important;color:var(--tv-text)!important;font-size:16px!important;font-weight:400;text-align:center;box-shadow:none!important}
body.trevo-reference .tv-buy{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:52px;margin:0;padding:6px 12px;border:0;border-radius:5px;background:var(--tv-btn-bg);color:var(--tv-btn-text);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px rgba(0,0,0,.14),0 1px 5px rgba(0,0,0,.12);text-align:center;line-height:1.2}
body.trevo-reference .tv-buy:hover{filter:brightness(.94)}
body.trevo-reference .tv-buy-icon{flex-shrink:0}
body.trevo-reference .tv-buy-text{display:flex;flex-direction:column;align-items:flex-start;min-width:0;text-align:left}
body.trevo-reference .tv-buy-line1{font-size:14px;font-weight:400;white-space:nowrap}
body.trevo-reference .tv-buy-line2{font-size:16px!important;font-weight:700;opacity:1!important;color:inherit!important;white-space:nowrap}
body.trevo-reference .tv-buy-line2 strike{display:block;font-size:.72em;font-weight:500;opacity:.8}

/* Top compradores */
body.trevo-reference .tv-top{margin:0 0 10px;padding:10px;border-radius:16px;background:var(--tv-bg)}
body.trevo-reference .tv-top-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:nowrap}
body.trevo-reference .tv-top-head h2,body.trevo-reference .tv-prizes-head h2{display:flex;align-items:center;gap:6px;min-width:0;margin:0!important;font-size:16px!important;font-weight:600!important;line-height:1.3;color:var(--tv-text)!important;white-space:nowrap}
body.trevo-reference .tv-top-head h2 span{overflow:hidden;text-overflow:ellipsis}
body.trevo-reference .tv-trophy{flex-shrink:0;width:20px;height:20px}
body.trevo-reference .tv-top-timer{flex-shrink:0;display:inline-flex;align-items:baseline;gap:4px;padding:2px 8px;border:1px solid var(--tv-top-accent,var(--tv-green));border-radius:6px;white-space:nowrap}
body.trevo-reference .tv-top-timer-label{font-size:11px;font-weight:500}
body.trevo-reference .tv-top-timer strong{font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--tv-top-accent,var(--tv-green))}
body.trevo-reference .tv-top-intro{margin:6px 0 0!important;font-size:12.5px;color:var(--tv-text)}
body.trevo-reference .tv-top-prizes{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;margin:2px 0 8px!important;font-size:12.5px;font-weight:500}
body.trevo-reference .tv-top-prize b{color:var(--tv-top-accent,var(--tv-yellow));font-weight:800}
body.trevo-reference .tv-top-prize.is-first{color:var(--tv-top-accent,var(--tv-yellow));font-weight:700}
body.trevo-reference .tv-dot{color:var(--tv-text);font-weight:700}
body.trevo-reference .tv-top-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
body.trevo-reference .tv-top-card{display:flex;flex-direction:column;align-items:center;min-width:0;padding:5px 6px 6px;border:0;border-radius:8px;background:var(--tv-card);text-align:center}
body.trevo-reference .tv-medal{display:block;margin:0 auto 2px;font-size:20px;line-height:1.1}
/* 4º ao 6º lugar: número no lugar da medalha, mesma altura. */
body.trevo-reference .tv-medal.tv-medal-num{display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.12);color:var(--tv-muted);font-size:11px!important;font-weight:800;line-height:1}
body.trevo-reference .tv-top-name{display:block;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;font-weight:700;text-transform:uppercase;line-height:1.3}
body.trevo-reference .tv-top-qty{font-size:11px;font-weight:500;color:var(--tv-muted);margin:0}
body.trevo-reference .tv-name-short{display:none}
/* Botão "Atualizar top compradores" (opcional, aba Ranking da campanha). */
body.trevo-reference .tv-top-refresh{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:34px;margin:6px 0 0;padding:6px 10px;border:1px solid var(--tv-border);border-radius:8px;background:transparent;color:var(--tv-text);font-size:12.5px;font-weight:600}
body.trevo-reference .tv-top-refresh:disabled{opacity:.6}
body.trevo-reference .tv-top-refresh.is-loading svg{animation:tv-spin .8s linear infinite}
@keyframes tv-spin{to{transform:rotate(360deg)}}
body.trevo-reference .tv-top-card.is-empty .tv-top-name,body.trevo-reference .tv-top-card.is-empty .tv-top-qty{color:var(--tv-muted);font-weight:500}

/* Descrição / Regulamento */
body.trevo-reference .tv-desc{margin:0 0 10px;border:0;border-radius:16px;background:var(--tv-card);overflow:hidden}
body.trevo-reference .tv-desc-toggle{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:35px;padding:8px;border:0;background:transparent;color:var(--tv-text);font-size:14px;font-weight:600}
body.trevo-reference .tv-desc-toggle svg:first-child{width:18px;height:18px}
body.trevo-reference .tv-desc-toggle .tv-chevron{width:16px;height:16px;transition:transform .2s}
body.trevo-reference .tv-desc-toggle[aria-expanded=true] .tv-chevron{transform:rotate(180deg)}
body.trevo-reference .tv-desc-body{padding:4px 12px 12px!important;color:var(--tv-muted)!important;font-size:13px;line-height:1.65;overflow-wrap:anywhere}
body.trevo-reference .tv-desc-body *{color:inherit!important;background:transparent!important}

/* Títulos premiados: uma linha por título */
body.trevo-reference .tv-prizes{margin:0 0 12px}
body.trevo-reference .tv-prizes-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 6px;padding:0 2px}
body.trevo-reference .tv-prizes-count{padding:1px 8px;border:1px solid var(--tv-green);border-radius:6px;color:var(--tv-green);font-size:13px;font-weight:700;white-space:nowrap}
body.trevo-reference .tv-prizes-list{display:flex;flex-direction:column;gap:6px;border:0;background:transparent;max-height:none!important}
body.trevo-reference .tv-prize{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px;min-height:36px;padding:4px 8px 4px 4px;border:0;border-radius:8px;background:var(--tv-bg);box-shadow:0 0 2px rgba(0,0,0,.2),0 12px 24px -4px rgba(0,0,0,.12)}
body.trevo-reference .tv-prize-number{min-width:69px;padding:2px 8px;border-radius:6px;background:var(--tv-number-bg);color:#fff;font-size:12px;font-weight:700;text-align:center;font-variant-numeric:tabular-nums}
body.trevo-reference .tv-prize-reward{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font-size:12px;text-transform:uppercase}
body.trevo-reference .tv-prize-status{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 6px;border-radius:6px;background:var(--tv-status-bg);color:var(--tv-text);font-size:12px;font-weight:400;text-align:right}
body.trevo-reference .tv-prize.is-won{min-height:30px;background:var(--tv-won-bg);color:var(--tv-won-text)}
body.trevo-reference .tv-prize.is-won .tv-prize-number{background:var(--tv-won-text);color:#000}
body.trevo-reference .tv-prize.is-won .tv-prize-reward{font-weight:600}
body.trevo-reference .tv-prize.is-won .tv-prize-status{background:transparent;color:inherit;font-weight:600}
/* Tema branco com verde: faixas dos títulos premiados pretas; a que já saiu fica verde (--tv-won-bg). */
body.trevo-reference.tv-theme-green .tv-prize:not(.is-won){background:#000;color:#fff}
body.trevo-reference.tv-theme-green .tv-prize:not(.is-won) .tv-prize-number{background:#4b535c}
body.trevo-reference.tv-theme-green .tv-prize:not(.is-won) .tv-prize-status{background:#262626;color:#fff}
body.trevo-reference .tv-prizes-empty{margin:0;padding:12px;font-size:13px;color:var(--tv-muted);text-align:center}
body.trevo-reference .tv-prizes-more{display:flex;align-items:center;justify-content:center;gap:4px;width:100%;margin:6px auto 0;padding:6px 8px;border:0;background:transparent;color:var(--tv-green);font-size:14px;font-weight:700}
body.trevo-reference .tv-prizes-more svg{width:14px;height:14px}
body.trevo-reference .tv-winner{display:flex;align-items:center;gap:12px;margin:0 0 10px;padding:10px 12px;border:1px solid var(--tv-green);border-radius:8px}
body.trevo-reference .tv-winner img{width:48px;height:48px;border-radius:50%;object-fit:cover}
body.trevo-reference .tv-winner strong{display:block;text-transform:uppercase}
body.trevo-reference .tv-winner small{color:var(--tv-muted)}

/* Blocos legados abaixo (maior/menor cota, afiliados) no mesmo tema */
body.trevo-reference .tv-page .app-title h1{color:var(--tv-text)}
body.trevo-reference .tv-page .bottom-container{background:var(--tv-bg)!important;border-color:var(--tv-border-soft)!important}

/* Top compradores no celular: mais largo, premiações numa linha e nomes em até 2 linhas */
@media(max-width:480px){
  body.trevo-reference .tv-top{margin:0 -6px 10px;padding:8px 6px 6px}
  body.trevo-reference .tv-top-head h2{font-size:15px!important}
  body.trevo-reference .tv-top-intro{font-size:11.5px}
  body.trevo-reference .tv-top-prizes{gap:0 5px;font-size:11px;margin-bottom:6px!important}
  body.trevo-reference .tv-top-grid{gap:4px}
  body.trevo-reference .tv-top-card{padding:4px 4px 5px}
  body.trevo-reference .tv-medal{font-size:18px}
  /* Nome em uma linha: até 13 letras + ".." (versão curta montada no PHP). */
  body.trevo-reference .tv-top-name{white-space:nowrap;font-size:10.5px;line-height:1.25;min-height:2.5em}
  body.trevo-reference .tv-name-full{display:none}
  body.trevo-reference .tv-name-short{display:inline}
  body.trevo-reference .tv-top-qty{font-size:10px}
}
@media(max-width:360px){
  body.trevo-reference .header-app-header .container>div{padding:3px 10px!important}
  body.trevo-reference .header-app-header .header-app-brand{max-width:110px!important;height:36px!important}
  body.trevo-reference .tv-draw-pill{font-size:11px;padding:4px 8px}
  body.trevo-reference .tv-prize-number{min-width:62px;padding:2px 5px;font-size:11px}
  body.trevo-reference .tv-prize-reward,body.trevo-reference .tv-prize-status{font-size:11px}
}

/* Link com bônus: aviso de bônus ativo, botão para reabrir e popup */
body.trevo-reference .tv-bonus-active{margin:0 0 10px;padding:8px 10px;border:1px solid #1ee36f;border-radius:8px;background:rgba(30,227,111,.1);color:#d9ffe8;font-size:13px;text-align:center}
body.trevo-reference .tv-bonus-active b{color:#1ee36f}
body.trevo-reference .tv-bonus-reopen{display:block;width:100%;margin:0 0 10px;padding:8px 10px;border:1px dashed #ff3030;border-radius:8px;background:rgba(255,48,48,.1);color:#fff;font-size:13px;font-weight:700}
body.tv-bonus-open{overflow:hidden}
body.trevo-reference .tv-bonus{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.72);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
body.trevo-reference .tv-bonus[hidden]{display:none!important}
body.trevo-reference .tv-bonus-card{position:relative;width:100%;max-width:360px;max-height:calc(100vh - 32px);overflow-y:auto;padding:14px 14px 12px;border:2px solid rgba(255,48,48,.55);border-radius:22px;background:radial-gradient(120% 70% at 50% 0%,#24262c 0%,#121418 60%);box-shadow:0 0 28px rgba(255,48,48,.35),inset 0 0 18px rgba(255,48,48,.12);color:#fff;text-align:center;font-family:Montserrat,Arial,sans-serif;animation:tv-bonus-in .25s ease-out}
@keyframes tv-bonus-in{from{transform:scale(.94);opacity:0}to{transform:none;opacity:1}}
body.trevo-reference .tv-bonus-close{position:absolute;top:8px;right:8px;display:flex;padding:4px;border:0;background:transparent;color:#ddd}
body.trevo-reference .tv-bonus-tag{display:inline-block;margin:2px 0 0;padding:4px 14px;border:2px solid #ff5a5a;border-radius:999px;background:#d81f1f;box-shadow:0 0 14px rgba(255,48,48,.6);font-size:12px;font-weight:800;letter-spacing:.03em;text-transform:uppercase}
body.trevo-reference .tv-bonus-title{display:flex;flex-direction:column;margin:8px 0 2px!important;font-size:clamp(30px,10vw,42px)!important;font-weight:900!important;line-height:.98!important;text-transform:uppercase;color:#fff!important;letter-spacing:-.01em}
body.trevo-reference .tv-bonus-title em{font-style:normal;color:#ff2b2b;text-shadow:0 0 18px rgba(255,43,43,.45)}
body.trevo-reference .tv-bonus-sub{margin:8px 0 8px!important;font-size:13px;font-weight:700;color:#fff}
body.trevo-reference .tv-bonus-steps{display:flex;align-items:center;justify-content:center;gap:0;margin:0 0 4px}
body.trevo-reference .tv-bonus-steps i{display:block;width:12px;height:2px;background:#555a63}
body.trevo-reference .tv-bonus-step{position:relative;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:2px solid #4b5059;border-radius:50%;background:#2a2d33;color:#c8ccd2;font-size:15px;font-weight:800;transition:all .3s}
body.trevo-reference .tv-bonus-step.is-gone{color:#6c717a;opacity:.75}
body.trevo-reference .tv-bonus-step.is-gone::after{content:"";position:absolute;left:4px;right:4px;top:50%;height:2px;background:#9aa0a8;transform:rotate(-45deg);animation:tv-bonus-cross .25s ease-out}
@keyframes tv-bonus-cross{from{right:100%}}
body.trevo-reference .tv-bonus-step.is-last{border-color:#ff6b6b;background:#e01d1d;color:#fff;box-shadow:0 0 16px rgba(255,48,48,.8);transform:scale(1.08)}
body.trevo-reference .tv-bonus-left{margin:0 0 4px!important;font-size:14px;font-weight:800;color:#ff3b3b}
body.trevo-reference .tv-bonus-gain{display:flex;flex-direction:column;margin:0 0 8px!important;font-size:clamp(24px,7.5vw,32px);font-weight:900;line-height:1;text-transform:uppercase}
body.trevo-reference .tv-bonus-gain em{font-style:normal;color:#1ee36f;text-shadow:0 0 16px rgba(30,227,111,.35)}
body.trevo-reference .tv-bonus-box{display:flex;flex-direction:column;align-items:center;margin:0 0 8px;padding:6px 10px;border:1px solid #3a3e46;border-radius:12px;background:#1a1d22}
body.trevo-reference .tv-bonus-box>span{font-size:13px}
body.trevo-reference .tv-bonus-box strong{font-size:clamp(24px,7.5vw,30px);font-weight:900;line-height:1.1}
body.trevo-reference .tv-bonus-box small{font-size:12.5px;color:#e6e6e6}
body.trevo-reference .tv-bonus-box small span{color:#9aa0a8}
body.trevo-reference .tv-bonus-until{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 10px;padding:5px 10px;border:1px solid rgba(255,48,48,.55);border-radius:12px;background:rgba(255,48,48,.08);font-size:13px;color:#eee}
body.trevo-reference .tv-bonus-until svg{color:#ff3b3b}
body.trevo-reference .tv-bonus-until b{color:#ff3b3b;font-style:italic}
body.trevo-reference .tv-bonus-claim{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:46px;margin:0 0 6px;border:2px solid #4dff9a;border-radius:10px;background:linear-gradient(180deg,#1ee36f,#11b553);box-shadow:0 0 18px rgba(30,227,111,.45);color:#fff;font-size:18px;font-weight:900;text-transform:uppercase}
body.trevo-reference .tv-bonus-claim:disabled{opacity:.7}
/* Pop-up de oferta: mesmo cartão do link com bônus, com título grande (branco / vermelho / branco). */
body.trevo-reference .tv-offer-title{display:flex;flex-direction:column;align-items:center;margin:14px 8px 12px!important;font-size:clamp(24px,7.8vw,32px)!important;font-weight:900!important;line-height:1.02!important;text-transform:uppercase;color:#fff!important;letter-spacing:-.01em;overflow-wrap:anywhere}
body.trevo-reference .tv-offer-title em{margin:2px 0;font-style:normal;font-size:1.55em;line-height:1;color:#ff2121;text-shadow:0 0 18px rgba(255,33,33,.5)}
body.trevo-reference .tv-offer .tv-bonus-box>span{font-size:14px}
body.trevo-reference .tv-bonus-skip{width:100%;min-height:40px;border:2px solid #ff6b6b;border-radius:10px;background:linear-gradient(180deg,#ef2a2a,#c51616);color:#fff;font-size:15px;font-weight:800;text-transform:uppercase}

/* Modais (cadastro e outros) continuam claros */
body.trevo-reference .modal-content{color:#222}
body.trevo-reference #cadastroModal button[type="submit"]{background:#198754!important;border-color:#198754!important;color:#fff!important}

/* Checkout (logado) e janela de telefone (visitante): escuro, com resumo e ofertas */
body.trevo-reference .upc-modal .modal-dialog{width:calc(100% - 24px)!important;max-width:500px!important;height:auto!important;min-height:calc(100% - 48px)!important;margin:24px auto!important}
body.trevo-reference .upc-modal .modal-content{height:auto!important;border:1px solid rgba(145,158,171,.24)!important;border-radius:12px!important;background:#212b36!important;color:#fff!important;overflow:hidden;font-family:Montserrat,Arial,sans-serif}
body.trevo-reference .upc-modal .modal-header{padding:14px 16px!important;border-bottom:1px solid rgba(255,255,255,.08)!important;background:transparent!important}
body.trevo-reference .upc-modal .modal-title{margin:0;font-size:20px!important;font-weight:600!important;color:#fff!important}
body.trevo-reference .upc-modal .btn-close{filter:invert(1) grayscale(1);opacity:.8}
body.trevo-reference .upc-modal .modal-body{padding:16px!important;background:transparent!important;overflow-y:visible!important}
body.trevo-reference .upc-summary{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 14px}
body.trevo-reference .upc-kicker{display:block;font-size:11px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:#919eab}
body.trevo-reference .upc-campaign{display:block;font-size:15px;font-weight:700;line-height:1.25;text-transform:uppercase;color:#fff;overflow-wrap:anywhere}
body.trevo-reference .upc-amount{flex-shrink:0;text-align:right}
body.trevo-reference .upc-amount span{display:block;font-size:12px;color:#919eab}
body.trevo-reference .upc-amount span b{font-weight:500}
body.trevo-reference .upc-amount strong{font-size:15px;font-weight:700;color:#fff}
body.trevo-reference .upc-box{margin:0 0 14px;padding:12px;border-left:4px solid #7c4dff;border-radius:10px;background:#f5f2fc;color:#212b36}
body.trevo-reference .upc-box-head{display:flex;align-items:center;gap:10px;margin:0 0 10px}
body.trevo-reference .upc-bolt{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;border-radius:50%;background:#6b46c1;color:#fff}
body.trevo-reference .upc-box-head strong{display:block;font-size:17px;font-weight:600;line-height:1.2;color:#212b36}
body.trevo-reference .upc-box-head small{display:block;font-size:12px;color:#6f6c80}
body.trevo-reference .upc-offers{display:flex;flex-direction:column;gap:8px}
body.trevo-reference .upc-offer{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:8px 12px;border:2px solid transparent;border-radius:12px;background:#ebe6f6;color:#212b36;text-align:left;font-family:inherit;cursor:pointer}
body.trevo-reference .upc-offer.is-recommended{border:2px dashed #a68bf0}
body.trevo-reference .upc-offer[aria-checked="true"]{border-style:solid;border-color:#7c4dff;background:#e3dbfa}
body.trevo-reference .upc-check{flex-shrink:0;width:20px;height:20px;border:1.5px solid #b9b2c9;border-radius:4px;background:#fff}
body.trevo-reference .upc-offer[aria-checked="true"] .upc-check{border-color:#7c4dff;background:#7c4dff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat}
body.trevo-reference .upc-offer-txt{display:flex;flex-direction:column;flex:1;min-width:0}
body.trevo-reference .upc-offer-txt span{font-size:14px;font-weight:500;white-space:nowrap}
body.trevo-reference .upc-offer-txt b{font-size:14px;font-weight:700;color:#6b46c1}
body.trevo-reference .upc-rec{flex-shrink:0;padding:3px 10px;border-radius:999px;background:#ddd3f7;color:#6b46c1;font-size:12px;font-weight:700;white-space:nowrap}
body.trevo-reference .upc-buyer{margin:0 0 10px!important;font-size:13px;color:#c4cdd5}
body.trevo-reference .upc-buyer b{color:#fff}
body.trevo-reference .upc-modal .upc-continue,body.trevo-reference .upc-login button[type="submit"]{display:flex!important;align-items:center;justify-content:center;gap:6px;width:100%!important;min-height:56px;margin:4px 0 0!important;padding:10px!important;border:0!important;border-radius:8px!important;background:#000!important;color:#fff!important;font:700 17px Montserrat,Arial,sans-serif!important}
body.trevo-reference .upc-note{margin:8px 0 0!important;font-size:11px;text-align:center;color:#919eab}
body.trevo-reference .upc-note a{color:#c4cdd5;text-decoration:underline}
body.trevo-reference .upc-safe,body.trevo-reference .upc-login .account-access-footer{display:flex;align-items:center;justify-content:center;gap:6px;padding:12px;border-top:1px solid rgba(255,255,255,.08);background:transparent!important;color:#fff!important;font-size:14px;text-transform:uppercase}
body.trevo-reference .upc-safe svg,body.trevo-reference .upc-login .account-access-footer svg{width:14px;height:16px;fill:#1ccf58}
/* Campos da janela de telefone no tema escuro */
body.trevo-reference .upc-login .form-label{margin:0 0 8px;font-size:14px;font-weight:700;color:#fff!important}
body.trevo-reference .upc-login .form-control{height:48px;border:1px solid #000!important;border-radius:8px!important;background:#161c24!important;color:#fff!important;font-size:16px}
body.trevo-reference .upc-login .form-floating>label{color:#919eab}
body.trevo-reference .upc-login .account-access-hint{margin:10px 0 14px!important;font-size:13px;color:#c4cdd5!important}
body.trevo-reference .upc-login .btn-link,body.trevo-reference .upc-login .btn-link a{color:#c4cdd5!important}
body.trevo-reference .upc-login #aviso-login:empty{display:none}

/* "Complete seu cadastro" no mesmo padrão escuro do checkout */
html body.trevo-reference #cadastroModal.account-profile .modal-content{background:#212b36!important;color:#fff!important;border:1px solid rgba(145,158,171,.24)!important;border-radius:12px!important;font-family:Montserrat,Arial,sans-serif}
html body.trevo-reference #cadastroModal.account-profile .modal-header{padding:14px 16px!important;border-bottom:1px solid rgba(255,255,255,.08)!important;background:transparent!important}
html body.trevo-reference #cadastroModal.account-profile .modal-title{font-size:20px!important;font-weight:600!important;color:#fff!important}
html body.trevo-reference #cadastroModal.account-profile .btn-close{filter:invert(1) grayscale(1);opacity:.8}
html body.trevo-reference #cadastroModal.account-profile .modal-body{padding:16px 16px 0!important;background:transparent!important}
html body.trevo-reference #cadastroModal.account-profile .form-label{margin-bottom:6px;font-size:14px;font-weight:700;color:#fff!important}
html body.trevo-reference #cadastroModal.account-profile .mb-2{margin-bottom:12px!important}
html body.trevo-reference #cadastroModal.account-profile .form-control{height:48px;min-height:48px;border:1px solid #000!important;border-radius:8px!important;background:#161c24!important;color:#fff!important;font-size:16px;box-shadow:none}
html body.trevo-reference #cadastroModal.account-profile .form-control::placeholder{color:#637381}
html body.trevo-reference #cadastroModal.account-profile .form-control:focus{outline:2px solid #7c4dff;outline-offset:1px}
html body.trevo-reference #cadastroModal.account-profile .form-floating>label{color:#919eab}
html body.trevo-reference #cadastroModal.account-profile .alert-primary{margin:4px 0 0!important;padding:10px 12px;border:1px solid rgba(124,77,255,.45);border-radius:10px;background:rgba(124,77,255,.12);color:#d9ccff;font-size:13px}
html body.trevo-reference #cadastroModal.account-profile .alert-primary a{color:#fff!important;font-weight:700;text-decoration:underline}
html body.trevo-reference #cadastroModal.account-profile .account-summary{margin:14px 0 0;padding:10px 0;border-top:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08)}
html body.trevo-reference #cadastroModal.account-profile .account-summary h2{font-size:15px;font-weight:700;color:#fff}
html body.trevo-reference #cadastroModal.account-profile .account-summary dt{color:#919eab}
html body.trevo-reference #cadastroModal.account-profile .account-summary dd{color:#fff}
html body.trevo-reference #cadastroModal.account-profile button[type=submit],html body.trevo-reference #cadastroModal.account-profile button[type=submit]:hover{min-height:56px;margin:14px 0 0!important;border:0!important;border-radius:8px!important;background:#000!important;color:#fff!important;font:700 17px Montserrat,Arial,sans-serif!important}
html body.trevo-reference #cadastroModal.account-profile .account-note{color:#919eab;font-size:12px}
html body.trevo-reference #cadastroModal.account-profile .account-footer{padding:12px;border-top:1px solid rgba(255,255,255,.08);color:#fff;font-size:14px}
html body.trevo-reference #cadastroModal.account-profile .account-footer svg{fill:#1ccf58}
body.trevo-reference .age-verification-card{border-radius:17px!important}
body.trevo-reference :is(button,a,[role=button]):focus-visible{outline:3px solid #7fb2ff;outline-offset:2px}
@media(prefers-reduced-motion:reduce){body.trevo-reference *{transition:none!important;animation:none!important}}
