/* Personalizzy Mídia — app do dono. IMAGINE • EXPLORE • INOVE */
@font-face { font-family: "Montserrat"; font-weight: 100 900; font-display: swap; src: url("fontes/Montserrat.ttf") format("truetype"); }

:root {
  --cor: #0b8fc4;             /* ciano da marca, escurecido para texto branco ler bem */
  --cor-forte: #086f99;
  --cor-clara: #e3f4fc;
  --ciano: #16B6F2; --amarelo: #F5B409; --laranja: #F67630; --rosa: #F72B60;
  --marca: linear-gradient(120deg, #16B6F2 0%, #F5B409 38%, #F67630 62%, #F72B60 100%);
  --botao: linear-gradient(135deg, #18b8f3 0%, #0b8fc4 100%);
  --verde: #16a34a;
  --whats: #1fa855;
  --cinza: #64748b;
  --linha: #e6e9ef;
  --fundo: #f3f5f9;
  --card: #ffffff;
  --texto: #0f172a;
  --tinta: #0b1220;
  --raio: 18px;
  --sombra: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 20px rgba(15, 23, 42, .06);
  --abas: 68px;
  --titulo: "Montserrat", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(var(--abas) + 18px + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
}
body.sem-abas { padding-bottom: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
img, video { max-width: 100%; }
h1 { font-family: var(--titulo); font-weight: 800; font-size: 1.55rem; letter-spacing: -.02em; margin: 0; }
h2 { font-family: var(--titulo); font-weight: 700; font-size: 1.1rem; margin: 0; }
a { color: inherit; }
.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.grad { background: var(--marca); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ───── Topo ───── */
.topo {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  background: rgba(11, 18, 32, .96); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.topo::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--marca); }
.topo-marca { display: flex; flex: none; }
.topo-marca img { width: 30px; height: 34px; }
.topo-nome { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.topo-nome small { color: #94a3b8; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
#nome-est { font-family: var(--titulo); font-weight: 800; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topo-conta {
  width: 40px; height: 40px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: #e2e8f0; text-decoration: none; transition: background .2s;
}
.topo-conta.ativa, .topo-conta:active { background: rgba(255,255,255,.2); }

#conteudo { padding: 18px 16px; max-width: 720px; margin: 0 auto; }
#conteudo.entrando { animation: entrar .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes entrar { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ───── Abas (barra flutuante) ───── */
.abas {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 6;
  display: flex; max-width: 560px; margin: 0 auto;
  background: rgba(255,255,255,.96); border: 1px solid var(--linha); border-radius: 22px;
  box-shadow: 0 10px 30px rgba(15,23,42,.14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.abas a {
  flex: 1; min-width: 0; height: var(--abas); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--cinza); text-decoration: none; font-size: .7rem; font-weight: 700;
}
.aba-ic { width: min(44px, 100%); height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; transition: background .25s, color .25s, transform .25s; }
.abas a.ativa { color: var(--tinta); }
.abas a.ativa .aba-ic { background: var(--tinta); color: #fff; transform: translateY(-1px); }
.abas a.ativa .aba-ic .ic { stroke-width: 2.3; }

.cabeca { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.cabeca-acoes { display: flex; gap: 8px; }
.ajuda { color: var(--cinza); font-size: .9rem; margin: 4px 0 14px; }
.ajuda:empty { display: none; }
.centro { text-align: center; }
.alerta { background: #fff4e5; color: #8a4b00; border-radius: 12px; padding: 10px 12px; font-size: .9rem; margin: 0; }
.topo ~ .alerta { margin: 14px 16px 0; }
.link { color: var(--cor); font-weight: 700; text-decoration: none; font-size: .9rem; }
.secao-topo { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 10px; }
.slogan {
  text-align: center; font-family: var(--titulo); font-weight: 800; font-size: .72rem; letter-spacing: .32em; margin: 28px 0 8px;
  background: var(--marca); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ───── Botões ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 46px; padding: 0 16px; border-radius: 14px; text-decoration: none;
  border: 1px solid var(--linha); background: var(--card); font-weight: 700; cursor: pointer;
  transition: transform .12s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn.primario { background: var(--botao); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(11,143,196,.3); }
.btn.perigo { color: #c81e1e; }
.btn.perigo:not(.texto) { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn.texto { background: none; border: 0; color: var(--cor); box-shadow: none; }
.btn.texto.perigo { color: #c81e1e; }
.btn.grande { width: 100%; min-height: 54px; font-size: 1.05rem; border-radius: 16px; }
.btn.whats { background: var(--whats); border-color: var(--whats); color: #fff; box-shadow: 0 6px 16px rgba(31,168,85,.3); }
.btn:disabled { opacity: .55; }
.btn.ocupado { position: relative; color: transparent !important; }
.btn.ocupado::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.5); border-top-color: #fff; animation: giro .8s linear infinite;
}
.btn:not(.primario):not(.whats).ocupado::after { border-color: #ccc; border-top-color: var(--cor); }
.btn-icone {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; border-radius: 12px; color: var(--cinza); cursor: pointer;
}
.btn-icone:disabled { opacity: .25; }
.linha-botoes { display: flex; gap: 10px; flex-wrap: wrap; }
.linha-botoes .btn { flex: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 15px; border-radius: 20px; border: 1px solid var(--linha);
  background: var(--card); font-weight: 700; font-size: .9rem; cursor: pointer; white-space: nowrap;
}
.chip.ativo { background: var(--tinta); border-color: var(--tinta); color: #fff; }

.alternar { display: flex; gap: 6px; padding: 5px; background: #e8ebf1; border-radius: 16px; margin-bottom: 18px; }
.alternar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; border-radius: 12px;
  text-decoration: none; font-weight: 700; font-size: .88rem; color: var(--cinza);
}
.alternar a.ativo { background: var(--card); color: var(--tinta); box-shadow: 0 2px 8px rgba(15,23,42,.1); }

/* ───── Formulários ───── */
.form { display: flex; flex-direction: column; gap: 14px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.rotulo { font-weight: 700; font-size: .9rem; }
.dica { color: var(--cinza); font-size: .82rem; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=tel],
input[type=time], input[type=date], select, textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 14px;
  border: 1.5px solid #dbe1ea; background: #fff; font-size: 16px; /* 16px: iPhone não dá zoom */
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus { outline: none; border-color: var(--cor); box-shadow: 0 0 0 4px rgba(22,182,242,.18); }
input[type=range] { width: 100%; accent-color: var(--cor); }
.campo output { color: var(--cor); font-weight: 800; }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.busca { margin: 6px 0 10px; }
.mais-opcoes summary { color: var(--cor); font-weight: 700; cursor: pointer; padding: 6px 0; }
.mais-opcoes[open] summary { margin-bottom: 8px; }
.campo-codigo { text-align: center; font-size: 2rem !important; letter-spacing: .4em; font-weight: 800; font-family: var(--titulo); }

.opcao {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; background: var(--card); border: 1px solid var(--linha); border-radius: 16px;
}
.opcao > span { display: flex; flex-direction: column; }
.opcao small { color: var(--cinza); font-size: .82rem; }
.marcar { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 12px; background: var(--card); border: 1px solid var(--linha); border-radius: 14px; }
.marcar input { width: 22px; height: 22px; accent-color: var(--cor); flex: none; }
.seletor-telas, .categorias { display: flex; flex-direction: column; gap: 8px; }

/* Interruptor */
.interruptor { position: relative; width: 52px; height: 32px; flex: none; cursor: pointer; }
.interruptor input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.interruptor .trilho { position: absolute; inset: 0; border-radius: 16px; background: #cfd6e0; transition: background .2s; pointer-events: none; }
.interruptor .trilho::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s cubic-bezier(.3,1.4,.5,1);
}
.interruptor input:checked + .trilho { background: var(--verde); }
.interruptor input:checked + .trilho::after { transform: translateX(20px); }
.interruptor input:focus-visible + .trilho { outline: 2px solid var(--cor); outline-offset: 2px; }

/* Preço grande (troca rápida) */
.preco-grande { display: flex; align-items: center; gap: 8px; font-size: 1.4rem; font-weight: 800; color: var(--cinza); }
.preco-grande .campo-preco { font-family: var(--titulo); font-size: 2.5rem; font-weight: 800; text-align: center; color: var(--texto); min-height: 76px; flex: 1; min-width: 0; }
.preco-grande .un { font-size: 1.1rem; }

/* ───── Início ───── */
.hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 22px 20px 20px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #1b2a4a 0%, #0b1220 60%);
  box-shadow: 0 14px 34px rgba(11,18,32,.28);
}
.hero h1 { font-size: 1.7rem; position: relative; margin: 2px 0 10px; line-height: 1.1; }
.hero-ola { position: relative; margin: 0; color: #cbd5e1; font-weight: 600; }
.hero-status { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border-radius: 20px; background: rgba(255,255,255,.1); font-weight: 600; font-size: .9rem; }
.hero-luzes i { position: absolute; border-radius: 50%; filter: blur(34px); opacity: .55; animation: flutuar 9s ease-in-out infinite alternate; }
.hero-luzes i:nth-child(1) { width: 160px; height: 160px; background: #16B6F2; right: -40px; top: -60px; }
.hero-luzes i:nth-child(2) { width: 130px; height: 130px; background: #F72B60; right: 60px; bottom: -70px; animation-delay: -3s; }
.hero-luzes i:nth-child(3) { width: 110px; height: 110px; background: #F5B409; left: 45%; top: -50px; opacity: .35; animation-delay: -6s; }
@keyframes flutuar { to { transform: translate(-30px, 20px) scale(1.15); } }
.pulso { width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; position: relative; flex: none; }
.pulso.on { background: #22c55e; }
.pulso.on::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #22c55e; animation: pulsar 1.8s ease-out infinite; }
@keyframes pulsar { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.atalhos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.atalho {
  display: flex; flex-direction: column; gap: 3px; padding: 16px 14px; border-radius: 20px; text-decoration: none;
  background: var(--card); box-shadow: var(--sombra); transition: transform .15s;
}
.atalho:active { transform: scale(.96); }
.atalho b { font-family: var(--titulo); font-weight: 800; font-size: 1rem; margin-top: 8px; }
.atalho small { color: var(--cinza); font-size: .8rem; line-height: 1.25; }
.atalho-ic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.c1 .atalho-ic, .atalho-ic.c1 { background: linear-gradient(135deg, #16B6F2, #0b8fc4); }
.c2 .atalho-ic, .atalho-ic.c2 { background: linear-gradient(135deg, #F5B409, #F67630); }
.c3 .atalho-ic, .atalho-ic.c3 { background: linear-gradient(135deg, #F67630, #F72B60); }
.c4 .atalho-ic, .atalho-ic.c4 { background: linear-gradient(135deg, #F72B60, #a21caf); }
.c5 .atalho-ic, .atalho-ic.c5 { background: linear-gradient(135deg, #a21caf, #16B6F2); }
.atalho:last-child:nth-child(odd) { grid-column: span 2; }

.tv-mini { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: #eef1f6; color: var(--cinza); flex: none; position: relative; }
.tv-mini.on { background: #dcfce7; color: #15803d; }
.tv-mini.on::after { content: ""; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px #dcfce7; }
.destaque-cartao { border: 2px dashed #cbd5e1 !important; box-shadow: none !important; }
.dica-importar { margin-top: 12px; }
.dica-importar .cartao-texto b, .opcao-grande .cartao-texto b { white-space: normal; }

.cta-whats {
  position: relative; margin-top: 22px; padding: 22px 18px 18px; border-radius: 24px; text-align: center; overflow: hidden;
  background: var(--card); box-shadow: var(--sombra);
}
.cta-whats::before { content: ""; position: absolute; inset: 0; padding: 2px; border-radius: 24px; background: var(--marca);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.cta-arte { font-size: 2.4rem; animation: balancar 3s ease-in-out infinite; display: inline-block; }
@keyframes balancar { 50% { transform: rotate(-8deg) scale(1.08); } }
.cta-whats h2 { font-size: 1.2rem; margin: 6px 0; }
.cta-whats p { color: var(--cinza); font-size: .92rem; margin: 0 0 16px; }
.faixa-whats {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 16px; border-radius: 18px; text-decoration: none;
  background: linear-gradient(135deg, #e9fbef, #f2fdf6); border: 1px solid #c4f0d3;
}
.faixa-whats > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.faixa-whats small { color: #3f6b50; font-size: .82rem; }
.faixa-whats-ic { width: 42px; height: 42px; border-radius: 13px; background: var(--whats); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }

/* Tipos de negócio */
.segmentos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.segmento {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px 10px; border-radius: 16px;
  border: 1.5px solid var(--linha); background: var(--card); cursor: pointer; font-weight: 700; font-size: .78rem; line-height: 1.15; text-align: center;
  transition: transform .15s, border-color .2s;
}
.segmento .emoji { font-size: 1.6rem; }
.segmento.ativo { border-color: var(--cor); background: var(--cor-clara); transform: scale(1.03); }

/* ───── Produtos ───── */
.grupo { margin-bottom: 18px; }
.grupo-titulo { display: flex; align-items: center; gap: 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cinza); margin: 0 0 8px 4px; }
.grupo-titulo .conta { background: #e2e7ef; border-radius: 10px; padding: 0 8px; font-size: .74rem; }
.produto {
  display: flex; align-items: center; gap: 8px; background: var(--card);
  border-radius: var(--raio); padding: 6px 10px 6px 6px; margin-bottom: 8px; box-shadow: var(--sombra);
}
.produto.desligado .produto-info, .produto.desligado .preco-btn { opacity: .42; }
.produto-info {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0;
  padding: 4px; text-align: left; cursor: pointer; text-decoration: none;
}
.produto-nome { font-weight: 700; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.miniatura { width: 46px; height: 46px; border-radius: 12px; object-fit: contain; flex: none; background: #f1f4f8; }
.miniatura.sem { display: inline-flex; align-items: center; justify-content: center; color: var(--cinza); }
.selo { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--rosa); color: #fff; font-size: .66rem; font-weight: 800; vertical-align: middle; }
.preco-btn {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center; line-height: 1.1;
  min-width: 96px; min-height: 54px; padding: 4px 12px; border-radius: 14px;
  background: var(--cor-clara); border: 0; color: var(--cor-forte); cursor: pointer;
}
.preco-btn strong { font-family: var(--titulo); font-weight: 800; font-size: 1.08rem; }
.preco-btn small, .preco-btn s { font-size: .72rem; color: var(--cinza); }

/* ───── Cartões ───── */
.cartoes { display: flex; flex-direction: column; gap: 10px; }
.cartao {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; text-decoration: none;
  background: var(--card); border: 1px solid transparent; border-radius: var(--raio); padding: 12px; cursor: pointer; box-shadow: var(--sombra);
  transition: transform .12s;
}
.cartao:active { transform: scale(.985); }
.cartao > .ic:last-child { color: #94a3b8; }
.cartao-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cartao-texto b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cartao-texto small { color: var(--cinza); font-size: .84rem; }
.amostra { width: 56px; height: 46px; border-radius: 12px; border-bottom: 4px solid; display: flex; align-items: center; justify-content: center; gap: 2px; font-weight: 800; font-size: .8rem; flex: none; }
.status { width: 12px; height: 12px; border-radius: 50%; flex: none; background: #9ca3af; }
.status.on { background: var(--verde); box-shadow: 0 0 0 4px rgba(22,163,74,.18); }
.status-linha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; }
.secao { margin: 12px 0 -4px; font-size: 1rem; font-family: var(--titulo); font-weight: 800; }
.opcao-grande {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border-radius: var(--raio); text-align: left;
  border: 1.5px solid var(--linha); background: var(--card); cursor: pointer;
}
.opcao-grande:active { transform: scale(.985); }

/* ───── Cardápio: modelos, cores e prévia ───── */
.cores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cor { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .8rem; color: var(--cinza); }
.cor input { width: 52px; height: 42px; border: 1px solid var(--linha); border-radius: 12px; padding: 2px; background: #fff; }
/* Prévia NÃO fica grudada no topo: grudada, ela cobria os botões de formato/tema e no celular o toque pegava nela. */
.previa { position: relative; background: var(--fundo); padding: 0 0 4px; }
.previa-caixa { position: relative; width: 100%; overflow: hidden; border-radius: 14px; background: #000; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.previa-quadro { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
.previa-botoes { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.previa-botoes .chip { min-height: 34px; font-size: .85rem; }

.foto-box { display: flex; align-items: center; gap: 12px; }
.foto-box img { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; }
.foto-box img.logo-img { object-fit: contain; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.foto-vazia { width: 72px; height: 72px; border-radius: 14px; background: var(--card); border: 1.5px dashed #cbd5e1; display: flex; align-items: center; justify-content: center; color: var(--cinza); }
.foto-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.foto-produto { position: relative; flex: none; }
.foto-produto img { width: 96px; height: 96px; object-fit: contain; border-radius: 14px; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.foto-produto.processando img { opacity: .5; }
.foto-giro { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.marcar.mini { min-height: 40px; padding: 0 10px; }

/* ───── Mídias ───── */
.grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .grade { grid-template-columns: repeat(3, 1fr); } }
.midia { position: relative; aspect-ratio: 1; border-radius: var(--raio); overflow: hidden; border: 0; padding: 0; background: #111; cursor: pointer; box-shadow: var(--sombra); }
.midia img, .midia video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.midia-nome { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 7px; color: #fff; font-size: .82rem; font-weight: 700; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.78)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.midia-tipo { position: absolute; top: 7px; left: 7px; display: flex; align-items: center; gap: 3px; background: rgba(0,0,0,.6); color: #fff; border-radius: 8px; padding: 2px 6px; font-size: .74rem; }
.midia-fora { position: absolute; top: 7px; right: 7px; background: #fff; color: var(--cinza); border-radius: 8px; padding: 2px 6px; font-size: .7rem; font-weight: 800; }
.midia-grande { border-radius: 14px; overflow: hidden; background: #000; display: flex; justify-content: center; }
.midia-grande img, .midia-grande video { max-height: 42vh; display: block; }
.barra { height: 10px; border-radius: 5px; background: var(--linha); overflow: hidden; display: none; }
.barra.ativa { display: block; }
.barra span { display: block; height: 100%; width: 0; background: var(--marca); transition: width .2s; }

/* ───── Programação ───── */
.programacao { display: flex; flex-direction: column; gap: 8px; }
.item-prog { display: flex; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--linha); border-radius: var(--raio); padding: 4px 10px 4px 2px; }
.item-prog.desligado .produto-info { opacity: .45; }
.setas { display: flex; flex-direction: column; }
.setas .btn-icone { height: 30px; }
.passos { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* ───── Janela de baixo ───── */
.janela-fundo { position: fixed; inset: 0; z-index: 20; background: rgba(2,6,23,0); transition: background .22s; display: flex; align-items: flex-end; justify-content: center; }
.janela-fundo.aberta { background: rgba(2,6,23,.5); }
.janela {
  width: 100%; max-width: 640px; max-height: 92vh; display: flex; flex-direction: column;
  background: var(--fundo); border-radius: 26px 26px 0 0;
  transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .9, .25, 1);
}
.janela::before { content: ""; width: 40px; height: 5px; border-radius: 3px; background: #cbd5e1; margin: 8px auto 0; flex: none; }
.janela-fundo.aberta .janela { transform: none; }
.janela-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 8px 18px; }
.janela-topo h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.15rem; }
.janela-corpo { overflow-y: auto; padding: 4px 16px calc(20px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.confirmar-texto { font-size: 1.05rem; margin: 4px 0 18px; }
@media (min-width: 700px) {
  .janela-fundo { align-items: center; }
  .janela { border-radius: 26px; }
}

/* ───── Login ───── */
.login { position: relative; min-height: 100vh; padding: calc(36px + env(safe-area-inset-top)) 18px 24px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #1b2a4a 0%, #0b1220 70%); }
.login-fundo i { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .5; animation: flutuar 10s ease-in-out infinite alternate; }
.login-fundo i:nth-child(1) { width: 260px; height: 260px; background: #16B6F2; top: -80px; left: -80px; }
.login-fundo i:nth-child(2) { width: 220px; height: 220px; background: #F72B60; top: 120px; right: -90px; animation-delay: -4s; }
.login-fundo i:nth-child(3) { width: 200px; height: 200px; background: #F5B409; bottom: -60px; left: 20%; opacity: .3; animation-delay: -7s; }
.login-cartao { position: relative; max-width: 440px; margin: 0 auto; background: rgba(255,255,255,.97); border-radius: 28px; padding: 24px 20px 18px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.login .slogan { position: relative; }
.login-titulo { font-size: 1.75rem; line-height: 1.1; margin: 18px 0 8px; }
.marca { display: flex; align-items: center; gap: 12px; }
.marca img { width: 44px; height: 50px; }
.marca b { display: block; font-family: var(--titulo); font-weight: 800; font-size: 1.35rem; line-height: 1; }
.marca span { color: var(--cor); font-weight: 800; letter-spacing: .22em; text-transform: uppercase; font-size: .78rem; }
.login-frase { color: var(--cinza); margin: 0 0 20px; }
.login-cartao .vazio { margin-top: 18px; }

/* ───── Estados ───── */
.vazio { text-align: center; color: var(--cinza); padding: 24px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vazio p { margin: 0; }
.carregando { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--cinza); }
.giro { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--linha); border-top-color: var(--cor); animation: giro .8s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }

.aviso {
  position: fixed; left: 50%; bottom: calc(var(--abas) + 26px + env(safe-area-inset-bottom)); z-index: 30;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px;
  background: #0f172a; color: #fff; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.3);
  transition: opacity .22s, transform .22s;
}
.aviso.mostrar { opacity: 1; transform: translate(-50%, 0); }
.aviso.erro { background: #b91c1c; }
body.sem-abas .aviso { bottom: calc(24px + env(safe-area-inset-bottom)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
