:root {
  --bg: #08080c; --panel: #111118; --panel2: #181822; --line: #25252f; --line2: #32323f;
  --txt: #f2f2f5; --mut: #9a9aa8; --gold: #f5c518; --gold2: #ff9d00;
  --ok: #2ecc71; --bad: #ff5468; --warn: #ffb020; --r: 14px;
  --grad: linear-gradient(135deg, var(--gold), var(--gold2));
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--txt); font: 14px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--gold); text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
small { color: var(--mut); }
.ic { width: 18px; height: 18px; flex: none; }
[hidden] { display: none !important; }

/* Shell */
.side { position: fixed; inset: 0 auto 0 0; width: 236px; background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 40; }
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px; color: var(--txt); font-weight: 800; font-size: 16px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #111; display: grid; place-items: center; font-weight: 900; font-size: 18px; box-shadow: 0 6px 20px -6px var(--gold); }
.side nav { flex: 1; padding: 6px 10px; overflow: auto; }
.nav-a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--mut); font-weight: 600; margin-bottom: 2px; }
.nav-a:hover { background: var(--panel2); color: var(--txt); }
.nav-a.on { background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold); }
.nav-h { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #666674; padding: 18px 12px 6px; }
.side-foot { display: flex; align-items: center; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
.who { flex: 1; min-width: 0; line-height: 1.3; }
.who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main { margin-left: 236px; padding: 0 26px 40px; min-height: 100vh; }
.top { display: flex; align-items: center; gap: 12px; padding: 22px 0 18px; }
.top h1 { font-size: 22px; }
.only-m { display: none; }
.scrim { display: none; }

/* Elementos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2); color: var(--txt); font: 600 14px Inter, sans-serif; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn:hover { border-color: #4a4a5a; background: #1f1f2b; }
.btn.gold { background: var(--grad); color: #15120a; border: 0; font-weight: 800; box-shadow: 0 8px 24px -10px var(--gold); }
.btn.gold:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.bad { color: var(--bad); }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: wait; }
.icon-btn { background: none; border: 0; color: var(--mut); padding: 8px; border-radius: 8px; cursor: pointer; display: grid; }
.icon-btn:hover { color: var(--txt); background: var(--panel2); }
.link { background: none; border: 0; color: var(--gold); font: 500 12px Inter; cursor: pointer; padding: 0; text-transform: none; letter-spacing: 0; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=search], input[type=url], select, textarea {
  width: 100%; background: #0c0c12; border: 1px solid var(--line2); color: var(--txt); padding: 10px 12px; border-radius: 10px; font: 14px Inter, sans-serif; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 15%, transparent); }
textarea { resize: vertical; min-height: 80px; }
textarea.code { font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace; }
.fld { display: block; margin-bottom: 12px; }
.fld > span { display: block; font-size: 12px; font-weight: 600; color: var(--mut); margin-bottom: 5px; }
.fld > em { display: block; font-style: normal; font-size: 12px; color: #6f6f7d; margin-top: 4px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.sp { flex: 1; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 18px; }
.card > h2 { font-size: 16px; margin-bottom: 14px; }
.card > h2 small { font-weight: 500; margin-left: 6px; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; font-weight: 500; }
.alert.ok { background: rgba(46, 204, 113, .1); border-color: rgba(46, 204, 113, .35); color: #7be3a6; }
.alert.err { background: rgba(255, 84, 104, .1); border-color: rgba(255, 84, 104, .35); color: #ff9aa6; }
.alert.warn { background: rgba(255, 176, 32, .1); border-color: rgba(255, 176, 32, .35); color: #ffd083; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.tag.ok { background: rgba(46, 204, 113, .14); color: #5fdc95; }
.tag.bad { background: rgba(255, 84, 104, .14); color: #ff8494; }
.tag.warn { background: rgba(255, 176, 32, .14); color: #ffc45c; }
.tag.gold { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.tag.mut { background: #22222d; color: var(--mut); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.stat b { display: block; font-size: 28px; font-weight: 800; line-height: 1.1; }
.stat span { color: var(--mut); font-size: 13px; }
.stat.hl b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td form { display: inline; }
td .btn { margin: 1px 0; }
.empty { color: var(--mut); text-align: center; padding: 30px 10px; }

.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 18px; }
.quick a { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; color: var(--txt); transition: .15s; position: relative; overflow: hidden; }
.quick a:hover { border-color: var(--gold); transform: translateY(-2px); }
.quick a .ic { width: 28px; height: 28px; color: var(--gold); margin-bottom: 10px; }
.quick a b { display: block; font-size: 17px; }
.quick a span { color: var(--mut); }

/* Login */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(900px 500px at 50% -10%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 60%), var(--bg); }
.auth-box { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 34px 30px; box-shadow: 0 30px 80px -30px #000; }
.auth-box .brand { padding: 0 0 6px; justify-content: center; font-size: 20px; }
.auth-box p.sub { text-align: center; color: var(--mut); margin: 0 0 24px; }
.auth-box .btn { width: 100%; padding: 13px; margin-top: 6px; }
.auth-box .row input[readonly] { font-weight: 700; letter-spacing: .03em; }
.trial-perks { list-style: none; margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--gold) 6%, transparent); display: grid; gap: 8px; }
.trial-perks li { color: var(--txt); font-size: 14px; }
.api-base { display: inline-block; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 13px; color: var(--mut); }
pre.api-code { background: #0b0b12; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; margin: 0 0 6px; }
pre.api-code code { color: #e6e6ef; font: 500 13px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre; }
.auth-box .foot { text-align: center; margin-top: 18px; color: var(--mut); font-size: 13px; }

/* Editor */
.editor { display: grid; grid-template-columns: 340px minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.editor .panel { position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow: auto; scrollbar-width: thin; scrollbar-color: #33333f transparent; }
.stage { position: sticky; top: 14px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.canvas-wrap { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px -30px #000, 0 0 0 1px var(--line); background: #000; line-height: 0; }
.canvas-wrap canvas { display: block; max-width: 100%; height: auto; max-height: calc(100vh - 190px); width: auto; }
.spin { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border: 3px solid rgba(255, 255, 255, .25); border-top-color: var(--gold); border-radius: 50%; animation: sp 0.7s linear infinite; opacity: 0; transition: opacity .2s; }
.busy .spin { opacity: 1; }
@keyframes sp { to { transform: rotate(360deg); } }
.actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pager { display: flex; align-items: center; gap: 12px; color: var(--mut); font-weight: 600; }
.grp { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.grp:last-child { border: 0; margin: 0; padding: 0; }
.grp h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--mut); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg button { background: #0c0c12; border: 1px solid var(--line2); color: var(--txt); border-radius: 10px; padding: 8px 4px; cursor: pointer; font: inherit; line-height: 1.25; }
.seg button b { display: block; font-size: 13px; }
.seg button small { font-size: 10.5px; }
.seg button.on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.seg button.on b { color: var(--gold); }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumb { background: #0c0c12; border: 2px solid transparent; border-radius: 10px; padding: 0; cursor: pointer; overflow: hidden; color: var(--mut); font: 600 11px Inter; outline: 1px solid var(--line2); }
.thumb canvas { display: block; width: 100%; height: auto; background: #050508; }
.thumb span { display: block; padding: 5px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb.on { border-color: var(--gold); color: var(--gold); outline-color: transparent; }
.colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.c-color { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; color: var(--mut); cursor: pointer; }
.c-color input { appearance: none; -webkit-appearance: none; width: 100%; height: 38px; border: 1px solid var(--line2); border-radius: 10px; background: none; padding: 3px; cursor: pointer; }
.c-color input::-webkit-color-swatch-wrapper { padding: 0; }
.c-color input::-webkit-color-swatch { border: 0; border-radius: 7px; }
.c-color input::-moz-color-swatch { border: 0; border-radius: 7px; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.swatches button { width: 34px; height: 22px; border-radius: 6px; border: 1px solid var(--line2); cursor: pointer; padding: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.c-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; user-select: none; }
.c-check input { position: absolute; opacity: 0; }
.c-check i { width: 34px; height: 20px; border-radius: 99px; background: #2a2a36; position: relative; transition: .15s; flex: none; }
.c-check i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #8a8a98; transition: .15s; }
.c-check input:checked + i { background: var(--gold); }
.c-check input:checked + i::after { left: 17px; background: #111; }
.c-check input:focus-visible + i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); }
input[type=range] { width: 100%; accent-color: var(--gold); padding: 0; }
.controls select, .controls input[type=text] { padding: 8px 10px; font-size: 13px; }

/* Seleção de conteúdo */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.grid button { padding: 0; border: 2px solid transparent; background: #0c0c12; border-radius: 9px; overflow: hidden; cursor: pointer; position: relative; aspect-ratio: 2/3; }
.grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grid button.on { border-color: var(--gold); }
.grid button em { position: absolute; left: 4px; top: 4px; background: rgba(0, 0, 0, .75); color: var(--gold); font: 700 10px Inter; padding: 2px 5px; border-radius: 5px; font-style: normal; }
.arts { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.arts button { flex: none; padding: 0; border: 2px solid transparent; border-radius: 7px; overflow: hidden; cursor: pointer; background: #000; height: 62px; }
.arts button.on { border-color: var(--gold); }
.arts img { height: 100%; display: block; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.chip { padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line2); background: none; color: var(--mut); font: 600 12px Inter; cursor: pointer; }
.chip.on { background: color-mix(in srgb, var(--gold) 12%, transparent); border-color: var(--gold); color: var(--gold); }
.games { display: flex; flex-direction: column; gap: 6px; }
.game { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #0c0c12; border: 1px solid var(--line); cursor: pointer; }
.game.on { border-color: color-mix(in srgb, var(--gold) 55%, transparent); }
.game input { accent-color: var(--gold); width: 16px; height: 16px; }
.game b { display: block; font-size: 13px; }
.game small { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game time { color: var(--gold); font-weight: 700; margin-right: 6px; }
.note { font-size: 11.5px; color: #6f6f7d; margin-top: 12px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: #1d1d28; border: 1px solid var(--line2); padding: 11px 18px; border-radius: 12px; font-weight: 600; z-index: 99; box-shadow: 0 20px 50px -20px #000; }
.logo-prev { width: 100%; min-height: 110px; border: 1px dashed var(--line2); border-radius: 12px; display: grid; place-items: center; padding: 14px; margin-bottom: 8px; background: repeating-conic-gradient(#15151d 0 25%, #101017 0 50%) 0 0/20px 20px; }
.logo-prev img { max-width: 100%; max-height: 120px; }
.plan-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 14%, transparent), color-mix(in srgb, var(--gold2) 4%, transparent)), var(--panel); border-color: color-mix(in srgb, var(--gold) 30%, transparent); }
.plan-hero b.big { font-size: 34px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 1280px) {
  .editor { grid-template-columns: 300px minmax(0, 1fr) 300px; }
}
@media (max-width: 1080px) {
  .side { transform: translateX(-100%); transition: transform .2s; }
  .nav-open .side { transform: none; }
  .nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 30; }
  .main { margin-left: 0; padding: 0 14px 30px; }
  .only-m { display: grid; }
  .editor { grid-template-columns: 1fr; }
  .editor .panel, .stage { position: static; max-height: none; }
  .stage { order: -1; }
  .canvas-wrap canvas { max-height: 62vh; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .three { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .two { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}
.yt { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid var(--line2); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.pats button { text-align: left; background: #0c0c12; border: 1px solid var(--line2); color: var(--txt); border-radius: 10px; padding: 9px 10px; cursor: pointer; font: inherit; line-height: 1.3; }
.pats button b { display: block; font-size: 13px; }
.pats button small { font-size: 11px; }
.pats button.on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.pats button.on b { color: var(--gold); }
.grid button .num { position: absolute; right: 4px; top: 4px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--gold); color: #111; font: 800 12px/22px Inter; font-style: normal; text-align: center; padding: 0 5px; }
.stage > .c-check { font-size: 12.5px; color: var(--mut); }
.seg.four { grid-template-columns: repeat(2, 1fr); }
/* Guia da zona segura do TikTok: aparece só na prévia, não entra no vídeo */
.safe { display: none; position: absolute; inset: 0; pointer-events: none; }
.tt .safe { display: block; }
.safe i { position: absolute; background: repeating-linear-gradient(45deg, rgba(255, 60, 90, .22) 0 8px, rgba(255, 60, 90, .08) 8px 16px); }
.safe i:nth-child(1) { top: 0; left: 0; right: 0; height: 7.8%; }
.safe i:nth-child(2) { bottom: 0; left: 0; right: 0; height: 20.8%; }
.safe i:nth-child(3) { top: 7.8%; bottom: 20.8%; right: 0; width: 12%; }
.plan-row { display: grid; grid-template-columns: 1fr 1fr 34px; gap: 6px; margin-bottom: 10px; }
.plan-row input { padding: 8px 10px; font-size: 13px; }
.plan-row input:last-child { grid-column: 2 / -1; }
.plan-row .star { border: 1px solid var(--line2); background: #0c0c12; color: #55556a; border-radius: 10px; cursor: pointer; font-size: 16px; }
.plan-row .star.on { color: #111; background: var(--gold); border-color: var(--gold); }
.logos { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-top: 10px; }
.logos img { width: 100%; aspect-ratio: 1; border-radius: 6px; display: block; border: 1px solid var(--line); }
.hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; }
.hl-grid a { display: block; color: var(--txt); transition: transform .15s; }
.hl-grid a:hover { transform: translateY(-4px); }
.hl-grid img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 10px; display: block; background: #15151d; border: 1px solid var(--line); }
.hl-grid a:hover img { border-color: var(--gold); }
.hl-grid b { display: block; font-size: 13px; margin-top: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.hl-games a { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: 10px; background: #0c0c12; border: 1px solid var(--line); color: var(--txt); }
.hl-games a:hover { border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.hl-games time { color: var(--gold); font-weight: 800; grid-row: span 2; align-self: center; }
.hl-games b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-games small { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb { position: relative; }
.thumb .mnum { position: absolute; left: 5px; top: 5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: rgba(0, 0, 0, .72); color: var(--gold); font: 800 11px/20px Inter; font-style: normal; text-align: center; }
.thumb.on .mnum { background: var(--gold); color: #111; }
/* Capas numa faixa de uma linha: sobra espaço para os modelos logo abaixo */
.grid.strip { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: #33333f transparent; }
.grid.strip button { flex: none; width: 92px; }
.grid.strip .empty { flex: 1; }
.bgs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.bgs button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--mut); font: 600 10.500px Inter; }
.bgs i { display: block; aspect-ratio: 1; border-radius: 9px; border: 2px solid var(--line2); margin-bottom: 4px; background-size: cover; background-position: center; }
.bgs button.on i { border-color: var(--gold); }
.bgs button.on { color: var(--gold); }
.b-auto { background: linear-gradient(160deg, #2a2a36, #0b0b12); }
.b-pitch { background: repeating-linear-gradient(0deg, #0e5a2b 0 9px, #12702f 9px 18px); }
.b-stadium { background: radial-gradient(circle at 20% 15%, #fff 0 6%, transparent 22%), radial-gradient(circle at 80% 15%, #fff 0 6%, transparent 22%), linear-gradient(#0b1430 55%, #0c4a22 55%); }
.b-net { background: repeating-linear-gradient(60deg, transparent 0 7px, rgba(255, 255, 255, .28) 7px 8px), repeating-linear-gradient(-60deg, transparent 0 7px, rgba(255, 255, 255, .28) 7px 8px), linear-gradient(135deg, var(--gold), #0b0b12); }
.b-up { background-color: #15151d; background-image: none; }
.brand-logo { max-height: 40px; max-width: 190px; display: block; }
/* Painel inicial */
.dash-hero { display: grid; grid-template-columns: auto 1fr minmax(280px, 380px); gap: 28px; align-items: center; padding: 26px; border-radius: 18px; margin-bottom: 16px; border: 1px solid var(--line); background: radial-gradient(700px 300px at 0% 0%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 65%), var(--panel); }
.dh-brand small { display: block; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: var(--mut); margin-bottom: 8px; padding-top: 10px; border-top: 3px solid var(--gold); width: fit-content; }
.dh-brand h2 { font-size: 40px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dh-brand img { max-height: 84px; max-width: 320px; display: block; }
.dh-tag { font-size: 19px; line-height: 1.4; color: #d6d6de; margin: 0; }
.dh-plan { border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 14px; padding: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 12%, transparent), color-mix(in srgb, var(--gold2) 3%, transparent)); box-shadow: 0 0 40px -18px var(--gold); }
.dh-plan-h { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.dh-plan-h .ic { width: 30px; height: 30px; color: var(--gold); }
.dh-plan-h b { display: block; font-size: 17px; }
.dh-plan-h span { color: var(--gold); font-size: 12.500px; font-weight: 600; }
.dh-plan ul { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 7px; }
.dh-plan li { padding-left: 26px; position: relative; font-size: 13.500px; }
.dh-plan li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 50%; background: var(--gold); color: #111; font-size: 11px; font-weight: 900; display: grid; place-items: center; }
.dh-plan .btn { margin-top: 12px; }
.dash-new { display: grid; grid-template-columns: minmax(240px, 330px) 1fr; gap: 18px; align-items: center; padding: 16px; border-radius: 18px; margin-bottom: 16px; border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); background: linear-gradient(110deg, color-mix(in srgb, var(--gold) 20%, transparent), color-mix(in srgb, var(--gold) 3%, transparent) 45%), var(--panel); }
.dn-head { display: flex; gap: 14px; align-items: center; padding-left: 8px; }
.dn-head .ic { width: 44px; height: 44px; color: var(--gold); }
.dn-head b { display: block; font-size: 22px; font-weight: 800; text-transform: uppercase; line-height: 1.15; }
.dn-head b span { color: var(--gold); }
.dn-head small { font-size: 13px; }
.dn-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.dn-card { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line2); background-size: cover; background-position: center; display: flex; align-items: flex-end; color: #fff; transition: .15s; }
.dn-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.dn-card span { width: 100%; padding: 26px 12px 10px; font-weight: 700; font-size: 13.500px; background: linear-gradient(transparent, rgba(0, 0, 0, .88)); }
.dn-0 { background-image: linear-gradient(135deg, #5a1414, #150606); } .dn-1 { background-image: linear-gradient(135deg, #0f5a2b, #06140c); }
.dn-2 { background-image: linear-gradient(135deg, #3b1f6e, #0d0716); } .dn-3 { background-image: linear-gradient(135deg, #14406e, #070b1a); }
.stat-ic { display: flex; gap: 14px; align-items: center; }
.stat-ic > span { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold); flex: none; }
.stat-ic > span .ic { width: 24px; height: 24px; }
.stat-ic b { font-size: 26px; }
.modal { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .8); display: grid; place-items: center; padding: 18px; }
.modal-box { max-width: 520px; width: 100%; background: var(--panel); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 18px; padding: 28px; box-shadow: 0 30px 90px -30px #000; }
.modal-box h2 { font-size: 22px; margin-bottom: 10px; }
.modal-box p { color: #d6d6de; line-height: 1.6; margin: 0 0 20px; }
/* Divulgação em cartões altos: arte no topo, ícone, título em duas cores, descrição e "Acessar" */
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(218px, 1fr)); gap: 16px; }
.hub a { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; color: var(--txt); background: #0b0b10; border: 1px solid color-mix(in srgb, var(--gold) 34%, transparent); transition: .18s; }
.hub a:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 22px 50px -26px var(--gold); }
.hub-art { aspect-ratio: 5/4; background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 30%, #0b0b10), #0b0b10) center top / cover no-repeat; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.hub-body { display: flex; flex-direction: column; flex: 1; padding: 0 18px 18px; margin-top: -40px; position: relative; }
.hub-ic { width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 12px; color: var(--gold); background: rgba(8, 8, 12, .86); border: 1.500px solid var(--gold); box-shadow: 0 0 22px -8px var(--gold); }
.hub-ic .ic { width: 26px; height: 26px; }
.hub h3 { font-size: 19px; font-weight: 800; text-transform: uppercase; line-height: 1.08; letter-spacing: 0; margin-bottom: 8px; }
.hub h3 span { display: block; color: var(--gold); font-size: 23px; }
.hub p { color: #c4c4cf; font-size: 13.500px; line-height: 1.4; margin: 0 0 16px; flex: 1; }
.hub .go { display: flex; align-items: center; justify-content: space-between; gap: 22px; width: fit-content; min-width: 150px; padding: 9px 16px; border-radius: 99px; font-weight: 600; font-size: 13.500px; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: rgba(8, 8, 12, .6); }
.hub .go i { font-style: normal; color: var(--gold); font-size: 16px; transition: transform .18s; }
.hub a:hover .go i { transform: translateX(4px); }
.hub em { position: absolute; top: 12px; right: 12px; font-style: normal; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: rgba(8, 8, 12, .78); color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
@media (min-width: 1500px) { .hub { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 520px) { .hub { grid-template-columns: repeat(2, 1fr); gap: 10px; } .hub h3 { font-size: 15px; } .hub h3 span { font-size: 18px; } .hub p { font-size: 12px; } .hub-body { padding: 0 12px 14px; } .hub .go { min-width: 0; width: 100%; } }
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.lib-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lib-card img, .lib-ph { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.lib-ph { display: grid; place-items: center; background: linear-gradient(135deg, #1b1b26, #0c0c12); color: var(--gold); }
.lib-ph .ic { width: 40px; height: 40px; }
.lib-body { padding: 16px; }
.lib-body b { font-size: 15.500px; }
.lib-body p { color: var(--mut); font-size: 13px; margin: 6px 0 0; }
.lib-code { display: flex; gap: 8px; align-items: center; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #0c0c12; border: 1px dashed color-mix(in srgb, var(--gold) 50%, transparent); }
.lib-code code { flex: 1; font: 800 22px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--gold); letter-spacing: .08em; word-break: break-all; }
a.chip { text-decoration: none; }
/* VOD no PC: prévia fixa à esquerda e, à direita, a mesma ordem do celular (busca, modelos, ajustes) */
@media (min-width: 1081px) {
  .editor.flow { grid-template-columns: minmax(0, 1fr) 560px; }
  .editor.flow > .stage { grid-column: 1; grid-row: 1 / span 2; }
  .editor.flow > .panel { grid-column: 2; position: static; max-height: none; overflow: visible; }
  .editor.flow > .panel:first-child { grid-row: 1; }
  .editor.flow > .controls { grid-row: 2; }
  .editor.flow .thumbs { grid-template-columns: repeat(4, 1fr); }
  .editor.flow .grid.strip button { width: 108px; }
}
@media (max-width: 1080px) {
  .dash-hero { grid-template-columns: 1fr; gap: 16px; }
  .dash-new { grid-template-columns: 1fr; }
}
.hubadm { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.hubadm > div { display: grid; gap: 8px; }
.hubadm-prev { aspect-ratio: 5/4; border-radius: 12px; border: 1px solid var(--line2); background: #0c0c12 center top / cover no-repeat; }
.hubadm input[type=file] { font-size: 12px; width: 100%; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; }
.plan-mgr { border-color: color-mix(in srgb, var(--gold) 55%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 12%, transparent), transparent 55%), var(--panel); }
.plan .tag { position: absolute; top: 16px; right: 16px; }
.plan h3 { font-size: 20px; }
.plan p { color: var(--mut); margin: 0 0 8px; font-size: 13.500px; min-height: 38px; }
.plan s { color: var(--mut); font-size: 14px; }
.plan-price { font-size: 36px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan ul { margin: 12px 0 0; padding-left: 18px; color: #c9c9d4; font-size: 13.500px; display: grid; gap: 4px; }
.plan .btn { margin-top: 18px; }

/* ---- Filmes/Séries: passo 1 (catálogo) e passo 2 (personalizar) ---- */
.browse-panel { max-width: 1180px; margin: 0 auto; }
.grid.browse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
.grid.browse-grid button { width: auto; aspect-ratio: 2/3; }
.chosen { margin-bottom: 14px; padding: 12px 14px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; line-height: 1.35; }
.chosen b { display: block; font-size: 15px; }
.chosen small { color: var(--mut); }
details.adv { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
details.adv > summary { cursor: pointer; color: var(--gold); font: 600 13px Inter, sans-serif; padding: 6px 0; list-style: none; }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary::before { content: '▸ '; }
details.adv[open] > summary::before { content: '▾ '; }
@media (max-width: 520px) { .grid.browse-grid { grid-template-columns: repeat(3, 1fr); } }

/* ================= Tela de acesso (login / recuperar senha) ================= */
body.lg { --lg-bg: #050505; --lg-gr: #171717; --lg-txt: #f2f2f2; --lg-mut: #a6a6a6; background: var(--lg-bg); color: var(--lg-txt); min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
.lg-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(60vw 70vh at 78% 46%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 62%),
    radial-gradient(40vw 50vh at 8% 100%, color-mix(in srgb, var(--gold2) 9%, transparent), transparent 70%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .016) 0 2px, transparent 2px 9px),
    linear-gradient(120deg, #0a0a0a, var(--lg-bg) 55%); }
/* Brasas: sobem devagar, com leve deriva lateral (só transform e opacity) */
.lg-bg i { position: absolute; left: var(--x); bottom: -12px; width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, #fff 0 18%, var(--gold2) 34%, var(--gold) 62%, transparent 72%);
  box-shadow: 0 0 8px 1px color-mix(in srgb, var(--gold) 70%, transparent); opacity: 0; will-change: transform, opacity;
  animation: lgEmber var(--d) linear var(--w) infinite; }
@keyframes lgEmber { 0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0; } 12% { opacity: var(--o); } 70% { opacity: calc(var(--o) * .6); } 100% { transform: translate3d(var(--dx), -108vh, 0) scale(.35); opacity: 0; } }
.lg-wrap { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(360px, 46%) 1fr;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.lg-side { order: 1; display: grid; place-items: center; padding: 40px clamp(20px, 5vw, 72px);
  background: linear-gradient(90deg, rgba(23, 23, 23, .78), rgba(23, 23, 23, .38)); border-right: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 1px 0 0 0 color-mix(in srgb, var(--gold) 16%, transparent); }
.lg-hero { order: 2; display: grid; place-items: center; padding: 40px clamp(20px, 5vw, 80px); min-width: 0; }
.lg-form { width: 100%; max-width: 420px; }
.lg-form h1 { font: 800 clamp(26px, 3vw, 36px)/1.08 Montserrat, Inter, sans-serif; letter-spacing: .01em; color: var(--lg-txt); text-wrap: balance; }
.lg-sub { color: var(--lg-mut); margin: 10px 0 28px; font-size: 15px; }
.lg-form .alert { font-size: 13.5px; }
.lg-fld { display: block; margin-bottom: 16px; }
.lg-fld > span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lg-mut); margin-bottom: 7px; }
.lg-in { position: relative; display: flex; align-items: center; background: #0b0b0b; border: 1px solid #262626; border-radius: 12px; transition: border-color .18s, box-shadow .18s; }
.lg-in > .ic { margin-left: 14px; color: #6d6d6d; transition: color .18s; }
.lg-in input { flex: 1; min-width: 0; background: none !important; border: 0 !important; box-shadow: none !important; color: var(--lg-txt); padding: 15px 14px 15px 12px; font: 500 15px Inter, sans-serif; outline: none; }
.lg-in input::placeholder { color: #5b5b5b; }
.lg-in:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 20%, transparent), 0 0 26px -10px var(--gold); }
.lg-in:focus-within > .ic { color: var(--gold); }
.lg-in input:-webkit-autofill { -webkit-text-fill-color: var(--lg-txt); -webkit-box-shadow: 0 0 0 40px #0b0b0b inset !important; caret-color: var(--lg-txt); border-radius: 12px; }
.lg-eye { background: none; border: 0; color: #7a7a7a; padding: 12px 14px; cursor: pointer; display: grid; border-radius: 10px; }
.lg-eye:hover, .lg-eye.on { color: var(--lg-txt); }
.lg-eye:focus-visible, .lg-btn:focus-visible, .lg-tg:focus-visible, .lg-row a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.lg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 22px; font-size: 13.5px; }
.lg-row a, .lg-foot a { color: var(--lg-txt); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 70%, transparent); text-underline-offset: 3px; }
.lg-row a:hover, .lg-foot a:hover { color: var(--gold2); }
.lg-check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; color: var(--lg-mut); user-select: none; }
.lg-check input { position: absolute; opacity: 0; }
.lg-check i { width: 18px; height: 18px; border-radius: 5px; border: 1px solid #3a3a3a; background: #0b0b0b; display: grid; place-items: center; transition: .15s; }
.lg-check i::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.lg-check input:checked + i { background: var(--grad); border-color: transparent; }
.lg-check input:checked + i::after { opacity: 1; }
.lg-check input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }
.lg-btn { width: 100%; min-height: 54px; border: 0; border-radius: 12px; cursor: pointer; color: #fff; font: 800 15px Montserrat, Inter, sans-serif; letter-spacing: .14em;
  background: linear-gradient(100deg, var(--gold), var(--gold2)); box-shadow: 0 14px 34px -14px var(--gold), inset 0 1px 0 rgba(255, 255, 255, .28); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); transition: filter .15s, transform .15s; }
.lg-btn:hover { filter: brightness(1.1); }
.lg-btn:active { transform: translateY(1px); }
.lg-foot { color: var(--lg-mut); font-size: 13.5px; margin: 18px 0 0; text-align: center; }
/* Logo: flutua 10px em ciclo de 5s; o brilho corre só por dentro do desenho (máscara com a própria imagem) */
.lg-logo { position: relative; width: min(100%, 560px); display: grid; place-items: center; animation: lgFloat 5s ease-in-out infinite alternate; will-change: transform; }
.lg-logo img { position: relative; width: 100%; height: auto; max-height: 62vh; object-fit: contain; display: block; filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .75)); }
.lg-glow { position: absolute; inset: 6% 2%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 55%, transparent), transparent 72%); filter: blur(34px); opacity: .5; animation: lgGlow 5s ease-in-out infinite alternate; }
.lg-shine { position: absolute; inset: 0; overflow: hidden; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.lg-shine::before { content: ""; position: absolute; inset: -10% -70%; transform: translateX(-62%);
  background: linear-gradient(105deg, transparent 43%, rgba(255, 70, 50, .2) 47%, rgba(255, 255, 255, .5) 50%, rgba(255, 90, 40, .22) 53%, transparent 57%);
  animation: lgSweep 6.5s cubic-bezier(.45, 0, .25, 1) infinite; will-change: transform; }
@keyframes lgFloat { from { transform: translate3d(0, 5px, 0); } to { transform: translate3d(0, -5px, 0); } }
@keyframes lgGlow { from { opacity: .36; } to { opacity: .62; } }
@keyframes lgSweep { 0%, 18% { transform: translateX(-62%); } 62%, 100% { transform: translateX(62%); } }
.lg-mark { position: relative; font: 800 clamp(40px, 7vw, 92px)/1 Montserrat, Inter, sans-serif; letter-spacing: .02em; text-align: center; text-wrap: balance;
  background: linear-gradient(180deg, #fff, #b9b9b9 45%, #6f6f6f 55%, #e9e9e9); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 26px color-mix(in srgb, var(--gold) 55%, transparent)); }
.lg-tg { position: absolute; right: max(28px, env(safe-area-inset-right)); bottom: max(26px, env(safe-area-inset-bottom)); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  color: var(--lg-txt); background: rgba(23, 23, 23, .8); border: 1px solid rgba(255, 255, 255, .14); transition: .18s; }
.lg-tg svg { width: 24px; height: 24px; margin-left: -2px; }
.lg-tg:hover { color: #fff; border-color: var(--gold); box-shadow: 0 0 22px -6px var(--gold); transform: translateY(-2px); }
@media (max-width: 900px) {
  .lg-wrap { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .lg-hero { order: 1; padding: 28px 24px 4px; }
  .lg-side { order: 2; align-items: start; padding: 18px 20px 24px; background: none; border: 0; box-shadow: none; }
  .lg-logo { width: min(64vw, 300px); animation-name: lgFloatM; }
  .lg-logo img { max-height: 26vh; }
  .lg-glow { filter: blur(24px); opacity: .4; animation: none; }
  .lg-shine::before { animation-duration: 9s; }
  .lg-bg i:nth-child(n+8) { display: none; } /* metade das brasas */
  .lg-form { margin: 0 auto; }
  .lg-form h1 { text-align: center; } .lg-sub { text-align: center; margin-bottom: 22px; }
  .lg-in input { font-size: 16px; } /* evita o zoom automático do iOS ao focar */
  .lg-tg { position: static; order: 3; margin: 0 auto 22px; }
}
@keyframes lgFloatM { from { transform: translate3d(0, 3px, 0); } to { transform: translate3d(0, -3px, 0); } }
@media (prefers-reduced-motion: reduce) {
  .lg-logo, .lg-glow, .lg-shine::before, .lg-bg i { animation: none !important; }
  .lg-bg i { opacity: calc(var(--o) * .5); bottom: calc(var(--x) * .9); }
  .lg-shine::before { transform: translateX(0); opacity: .5; }
  .lg-btn, .lg-tg, .lg-in { transition: none; }
}

/* ================= Fluxo das categorias: Modelo → Cor → Conteúdo → Prévia ================= */
.flow-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: -6px 0 16px; }
.fh-txt { min-width: 0; max-width: 640px; }
.fh-txt p { margin: 4px 0 0; color: var(--mut); font-size: 14px; }
.fh-back { font-size: 12.5px; font-weight: 600; color: var(--mut); }
.fh-back:hover { color: var(--gold); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.steps button { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; border: 1px solid var(--line2); background: var(--panel); color: var(--mut); font: 600 12.5px Inter, sans-serif; cursor: pointer; }
.steps b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #24242f; color: var(--txt); font-size: 11.5px; }
.steps li.on button { border-color: var(--gold); color: var(--txt); background: color-mix(in srgb, var(--gold) 10%, var(--panel)); }
.steps li.on b { background: var(--grad); color: #111; }
.steps li.done b { background: color-mix(in srgb, var(--gold) 30%, #24242f); }
.mg-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.mg-top .chips { margin: 0; }
.mg-top input[type=search] { max-width: 280px; }
.mg-top .chosen { margin: 0; flex: 1; min-width: 200px; }
.vh { font-size: 15px; margin: 14px 0 12px; }
.vh small { font-weight: 500; margin-left: 6px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; margin-top: 12px; }
.mcard { display: flex; flex-direction: column; background: #0c0c12; border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
.mcard:hover { border-color: color-mix(in srgb, var(--gold) 60%, transparent); transform: translateY(-2px); }
.mcard.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 14px 34px -20px var(--gold); }
.mc-prev { aspect-ratio: 9/16; background: #050508; cursor: pointer; display: grid; place-items: center; overflow: hidden; }
.mc-prev canvas, .mc-prev img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mc-ph { display: grid; justify-items: center; gap: 10px; color: var(--gold); padding: 14px; text-align: center; width: 100%; height: 100%; align-content: center; background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 14%, #0c0c12), #08080c); }
.mc-ph .ic { width: 40px; height: 40px; }
.mc-ph span { color: var(--mut); font-size: 11.5px; }
.vgrid .mc-prev { aspect-ratio: 4/3; }
.mc-body { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.mc-body b { font-size: 13.5px; line-height: 1.25; overflow-wrap: anywhere; }
.mc-body small { font-size: 11.5px; flex: 1; }
.mc-body .btn { margin-top: 8px; }
.dots { display: flex; gap: 5px; margin: 4px 0 2px; flex: 1; }
.dots i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); }
.cur-model { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 560px; padding: 8px 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.cur-model > div { flex: 1; min-width: 130px; line-height: 1.3; }
.cur-model b { display: block; font-size: 13.5px; }
.swatches.named button { width: 38px; height: 26px; border-radius: 7px; }
.swatches button.on { outline: 2px solid var(--gold); outline-offset: 2px; }
.games-h { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); padding: 8px 2px 2px; font-weight: 700; }
.grid button .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 5px 5px; font: 600 10.5px/1.25 Inter, sans-serif; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .9)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grid.strip button .cap { display: none; }
.mtable td { vertical-align: middle; }
a.stat { display: block; transition: border-color .15s; }
a.stat:hover { border-color: var(--gold); }
@media (max-width: 1080px) {
  .view.editor .stage { order: -1; }
}
@media (max-width: 520px) {
  .mgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mg-top input[type=search] { max-width: none; }
  .steps span { display: none; }
  .steps li.on span { display: inline; }
  .steps button { padding-right: 8px; }
  .flow-head { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .mcard, .hub a, .dn-card { transition: none; } .mcard:hover { transform: none; } }

/* Telegram em Minha Conta: privado, grupos/canais e rotas por tópico */
.tgc .tg-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-top: 12px; background: color-mix(in srgb, var(--panel2, #16161f) 60%, transparent); }
.tgc .tg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.tgc .tg-head b { font-size: 15px; }
.tgc .tg-steps { color: #d6d6de; margin: 0 0 10px; padding-left: 20px; line-height: 1.75; }
.tgc .tg-steps small { color: var(--mut); }
.tgc code { color: var(--gold); background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 6px; }
.tgc .tg-routes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 12px; }
.tgc .tg-routes .fld { margin-bottom: 10px; }
.tgc .tg-add { border-style: dashed; }

/* Fila de postagem do Telegram */
.tgq { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--gold) 5%, transparent); }
.tgq > summary { cursor: pointer; padding: 10px 14px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; }
.tgq > summary::-webkit-details-marker { display: none; }
.tgq[open] > summary { border-bottom: 1px solid var(--line); }
.tgq-body { padding: 12px 14px; }
.tgq-body .fld { margin-bottom: 10px; }
.tgq-body .note { margin: 8px 0 0; font-size: 12.5px; }
.tgq-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; background: var(--panel); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); color: var(--txt); padding: 10px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; box-shadow: 0 10px 30px -10px #000; text-decoration: none; }
.tgq-float:hover { border-color: var(--gold); }
.tgq-list { display: grid; gap: 8px; margin: 10px 0; }
.tgq-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; }
.tgq-item b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tgq-item small { color: var(--mut); }
.tgq-item.sent { opacity: .65; }
.tgq-item.error { border-color: rgba(255, 84, 104, .45); }
@media (max-width: 520px) { .tgq-float { left: 16px; text-align: center; } }

/* Piloto automático */
.tgq.ap { border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.tgq.ap .chips { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.ap-status { padding: 10px 12px; border-radius: 10px; background: rgba(46, 204, 113, .1); color: #8fe3b4; font-size: 13px; margin-bottom: 10px; }
.ap-status.off { background: rgba(255, 176, 32, .1); color: #ffc45c; }

/* Vídeo animado dos jogos (gmotion.js) */
.gmo { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.gmo[hidden] { display: none; }
.gmo-card { background: var(--panel); border: 1px solid var(--line2); border-radius: var(--r); width: min(920px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 18px; }
.gmo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.gmo-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.gmo-stage { position: relative; background: #000; border-radius: 12px; overflow: hidden; max-height: 72vh; aspect-ratio: 9 / 16; margin: 0 auto; width: 100%; max-width: calc(72vh * .5625); }
.gmo-stage canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.gmo-side { display: flex; flex-direction: column; gap: 10px; }
.gmo-side .note { margin: 0; }
.gmo-styles { display: grid; gap: 8px; }
.gmo-styles button { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2); color: var(--txt); cursor: pointer; display: flex; flex-direction: column; gap: 2px; font: 600 14px Inter, sans-serif; }
.gmo-styles button small { color: var(--mut); font-weight: 500; font-size: 12px; }
.gmo-styles button.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
@media (max-width: 760px) { .gmo-body { grid-template-columns: 1fr; } .gmo-stage { max-height: 56vh; max-width: calc(56vh * .5625); } }

/* v16 — esportes, fotos dos jogadores (modelos de confronto) e dicas da tela de jogos */
.sports { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; }
.sport { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2); color: var(--txt); font: 700 13px Inter, sans-serif; cursor: pointer; }
.sport small { color: var(--mut); font-weight: 600; }
.sport.on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); }
.sport.on small { color: var(--gold); }
.games-tip { font-size: 12.5px; line-height: 1.5; padding: 9px 12px; border-radius: 10px; margin: 0 0 10px; background: color-mix(in srgb, var(--gold) 9%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); color: #f1e6c0; }
.games-tip[hidden] { display: none; }
.vsph { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel); }
.vsph[hidden] { display: none; }
.vsph-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.vsph-h small { color: var(--mut); }
.vsph-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vsph-slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border: 1px dashed var(--line2); border-radius: 10px; cursor: pointer; text-align: center; min-width: 0; }
.vsph-slot:hover { border-color: var(--gold); }
.vsph-img { width: 84px; height: 84px; border-radius: 10px; background: #0c0c12 center / contain no-repeat; display: grid; place-items: center; font-size: 30px; color: var(--mut); }
.vsph-t { font-size: 12px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vsph-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #2a2a35; color: #fff; cursor: pointer; font-size: 12px; }
.vsph-x[hidden] { display: none; }
.vsph-col { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.vsph-n { font-size: 11px; color: var(--gold); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vsph-n:empty { display: none; }
.vsph-img { width: 96px; height: 96px; }
.vsph-cands { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11.5px; color: var(--mut); line-height: 1.4; }
.vsph-c { width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--line2); background: #0c0c12 center 12% / cover no-repeat; cursor: pointer; padding: 0; font-size: 18px; }
.vsph-c:hover { border-color: var(--gold2); }
.vsph-c.on { border-color: var(--gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 35%, transparent); }
.vsph-c.none { display: grid; place-items: center; background: var(--panel2); }
@media (max-width: 520px) { .vsph-row { grid-template-columns: 1fr; } }
