/* PainelCine — tema claro: branco, cinzento e vermelho */
@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --sala: #f5f5f6;      /* fundo */
  --plateia: #ffffff;   /* superfícies */
  --fila: #f0f0f2;      /* elevado / hover */
  --linha: #e4e4e8;     /* contornos */
  --texto: #18181c;
  --muted: #6c6d75;
  --cortina: #d7263d;   /* ação principal */
  --cortina-2: #b81d31;
  --ouro: #c81e33;      /* créditos e códigos */
  --ok: #18995d;
  --warn: #c47a0a;
  --bad: #b42330;
  --display: "Bricolage", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* aliases usados no JS */
  --bg: var(--sala); --panel: var(--plateia); --panel-2: var(--fila); --line: var(--linha); --text: var(--texto); --accent: var(--cortina); --accent-ink: #fff;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--sala); color: var(--texto); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
body { background: radial-gradient(1100px 500px at 90% -15%, #fbe9eb 0%, transparent 60%), var(--sala); min-height: 100vh; }
a { color: var(--ouro); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; }
.boot { padding: 40px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt { margin-top: 18px; } .mt0 { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------------- Login: cartaz ---------------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.poster { position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, #e63950 0%, #c41f35 50%, #2a2b31 100%); color: #fff; border-right: 0; }
.poster::before { /* cortina */ content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 18px, rgba(255,255,255,0) 18px 36px);
  -webkit-mask: linear-gradient(180deg, #000 0%, transparent 55%); mask: linear-gradient(180deg, #000 0%, transparent 55%); }
.poster > * { position: relative; }
.poster h1 { font-size: clamp(38px, 4.4vw, 60px); line-height: 1.02; margin: 0 0 16px; font-weight: 750; max-width: 12ch; }
.poster p { color: rgba(255,255,255,.82); font-size: 17px; max-width: 34ch; margin: 0; }
.marquee { display: flex; gap: 9px; margin-bottom: 28px; }
.marquee i { width: 8px; height: 8px; border-radius: 50%; background: #ffd66b; box-shadow: 0 0 10px #ffd66b; opacity: .9; }
.marquee i:nth-child(even) { opacity: .45; box-shadow: none; }
.login-side { display: grid; place-items: center; padding: 32px 20px; }
.login { width: 100%; max-width: 360px; }
.login h2 { font-size: 26px; margin: 0 0 4px; }
.login p.sub { color: var(--muted); margin: 0 0 26px; }

/* ---------------- Marca ---------------- */
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 750; font-size: 19px; letter-spacing: -.02em; }
.brand .logo { width: 32px; height: 32px; border-radius: 9px; background: var(--cortina); display: grid; place-items: center; color: #fff; font-size: 13px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }

/* ---------------- Estrutura ---------------- */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: #ffffff; border-right: 1px solid var(--linha); padding: 22px 14px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; }
.side .brand { padding: 0 8px 26px; }
.side a.nav { display: block; padding: 10px 14px; border-radius: 10px; color: var(--muted); font-weight: 500; }
.side a.nav:hover { background: var(--plateia); color: var(--texto); text-decoration: none; }
.side a.nav.on { background: var(--fila); color: var(--texto); }
.side a.nav.on::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cortina); margin: 0 10px 2px -2px; vertical-align: middle; }
.side .spacer { flex: 1; }
.side-help { padding: 14px; border-radius: 12px; background: var(--fila); display: flex; flex-direction: column; gap: 2px; }
.content { min-width: 0; display: flex; flex-direction: column; }
main { padding: 30px 36px 70px; max-width: 1180px; width: 100%; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.head h1 { font-size: 30px; margin: 0; font-weight: 700; line-height: 1.1; }
.head .crumb { color: var(--muted); font-size: 13px; margin-bottom: 6px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 36px; border-bottom: 1px solid var(--linha); background: rgba(255,255,255,.88); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--linha); border-radius: 99px; padding: 5px 14px 5px 6px; font-size: 13px; color: var(--muted); }
.pill b { color: var(--ouro); font-family: var(--display); font-size: 16px; }
.pill::before { content: ""; width: 22px; height: 14px; border-radius: 3px; background: var(--ouro);
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 3px, #000 3.5px) left/51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 3px, #000 3.5px) right/51% 100% no-repeat;
          mask: radial-gradient(circle at 0 50%, transparent 3px, #000 3.5px) left/51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 3px, #000 3.5px) right/51% 100% no-repeat; }

/* ---------------- Menu da conta ---------------- */
.acct { position: relative; }
.acct-btn { display: flex; align-items: center; gap: 9px; background: transparent; border: 1px solid transparent; border-radius: 99px; padding: 4px 12px 4px 4px; cursor: pointer; }
.acct-btn:hover { background: var(--plateia); border-color: var(--linha); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #d7263d, #ef6a7b); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; font-family: var(--display); }
.avatar.lg { width: 44px; height: 44px; font-size: 16px; }
.caret { color: var(--muted); font-size: 11px; }
.acct-pop { position: absolute; right: 0; top: calc(100% + 8px); background: var(--plateia); border: 1px solid var(--linha); border-radius: 14px; min-width: 260px; box-shadow: 0 18px 40px rgba(20,20,25,.14); padding: 6px; z-index: 45; }
.acct-pop[hidden] { display: none; }
.acct-head { display: flex; gap: 12px; align-items: center; padding: 12px 10px 14px; border-bottom: 1px solid var(--linha); margin-bottom: 6px; }
.acct-pop a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--texto); font-size: 14px; }
.acct-pop a:hover { background: var(--fila); text-decoration: none; }
.acct-pop a.dang { color: var(--bad); }

/* ---------------- Números ---------------- */
.grid { box-shadow: 0 1px 2px rgba(20,20,25,.05); display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 26px; border: 1px solid var(--linha); border-radius: 16px; background: var(--plateia); overflow: hidden; }
.grid > .card { border: 0; border-radius: 0; background: transparent; border-right: 1px solid var(--linha); }
.grid > .card:last-child { border-right: 0; }
.card { background: var(--plateia); border: 1px solid var(--linha); border-radius: 16px; padding: 18px 20px; }
.card .k { color: var(--muted); font-size: 13px; }
.card .v { font-family: var(--display); font-size: 32px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.card .s { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---------------- Bilhete (elemento de assinatura) ---------------- */
.ticket { --notch: 14px; position: relative; display: grid; grid-template-columns: 1fr auto; margin-bottom: 18px; filter: drop-shadow(0 14px 30px rgba(150,20,35,.18)); }
.ticket > div { padding: 28px 30px; }
.ticket .t-main { background: linear-gradient(120deg, #ee4a5f 0%, #d7263d 55%, #b81d31 100%); color: #fff; border-radius: 18px 0 0 18px;
  -webkit-mask: radial-gradient(circle at 100% 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top/100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom/100% 51% no-repeat;
          mask: radial-gradient(circle at 100% 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top/100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom/100% 51% no-repeat; }
.ticket .t-stub { background: #26272d; color: #fff; border-radius: 0 18px 18px 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; min-width: 230px; position: relative;
  -webkit-mask: radial-gradient(circle at 0 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top/100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom/100% 51% no-repeat;
          mask: radial-gradient(circle at 0 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top/100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom/100% 51% no-repeat; }
.ticket .t-stub::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; border-left: 2px dashed rgba(255,255,255,.45); }
.ticket .t-label { font-size: 14px; font-weight: 600; opacity: .75; }
.ticket .t-num { font-family: var(--display); font-weight: 800; font-size: 76px; line-height: .95; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ticket .t-sub { font-size: 14px; opacity: .7; margin-top: 6px; }
.ticket .t-stub .btn { background: #fff; color: #c41f35; border-color: #fff; box-shadow: none; }
.ticket .t-stub .btn:hover { filter: none; background: #fdecee; }
.ticket .t-stub .small { opacity: .8; }
.ticket.empty .t-main { background: linear-gradient(120deg, #e6e6e9, #d5d5da); color: var(--texto); }
.ticket.empty .t-stub { background: #8b8c94; }

/* bilhete do código gerado */
.code-ticket { margin: 4px 0 6px; display: grid; grid-template-columns: 1fr 86px; filter: drop-shadow(0 10px 24px rgba(20,20,25,.16)); --notch: 12px; }
.code-ticket .c-main { background: #f1f1f3; color: #18181c; border-radius: 14px 0 0 14px; padding: 22px 20px; text-align: center;
  -webkit-mask: radial-gradient(circle at 100% 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top/100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom/100% 51% no-repeat;
          mask: radial-gradient(circle at 100% 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top/100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom/100% 51% no-repeat; }
.code-ticket .c-main .code { font-family: var(--display); font-size: 54px; font-weight: 800; letter-spacing: .14em; display: block; line-height: 1.05; }
.code-ticket .c-stub { background: #d7263d; color: #fff; border-radius: 0 14px 14px 0; display: grid; place-items: center; font-family: var(--display); font-weight: 700; text-align: center; line-height: 1.1; position: relative;
  -webkit-mask: radial-gradient(circle at 0 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top/100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom/100% 51% no-repeat;
          mask: radial-gradient(circle at 0 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top/100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom/100% 51% no-repeat; }
.code-ticket .c-stub::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; border-left: 2px dashed rgba(255,255,255,.5); }
.code-ticket .c-stub b { font-size: 26px; display: block; }
@keyframes tear { from { transform: translateY(10px) rotate(-1.5deg); opacity: 0; } to { transform: none; opacity: 1; } }
.code-ticket { animation: tear .45s cubic-bezier(.2,.8,.2,1.2) both; }
.result-code { text-align: center; }

/* ---------------- Secções e tabelas ---------------- */
.section { box-shadow: 0 1px 2px rgba(20,20,25,.05); background: var(--plateia); border: 1px solid var(--linha); border-radius: 16px; margin-bottom: 22px; overflow: hidden; }
.section > h2 { font-size: 16px; margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--linha); font-weight: 650; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.section > h2 .small { font-family: var(--body); font-weight: 400; }
.section .body { padding: 18px 20px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 12px 20px; border-bottom: 1px solid var(--linha); font-size: 14px; vertical-align: middle; }
.tbl th { color: var(--muted); font-weight: 500; font-size: 13px; background: #f8f8f9; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--fila); }
.num { font-variant-numeric: tabular-nums; text-align: right !important; }
.pos { color: var(--ok); font-weight: 600; } .neg { color: var(--bad); font-weight: 600; }
.code { font-family: var(--display); font-weight: 700; letter-spacing: .12em; color: var(--ouro); font-size: 16px; font-variant-numeric: tabular-nums; }
.empty { padding: 34px 20px; color: var(--muted); text-align: center; }

/* ---------------- Etiquetas de estado ---------------- */
.b { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b.ok { background: rgba(68,198,139,.13); color: var(--ok); }
.b.warn { background: rgba(240,166,64,.14); color: var(--warn); }
.b.bad { background: rgba(255,107,107,.13); color: var(--bad); }
.b.mut { background: var(--fila); color: var(--muted); }

/* ---------------- Formulários e botões ---------------- */
label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px; font-weight: 500; }
.f { margin-bottom: 15px; }
input, select, textarea { width: 100%; background: #fff; border: 1px solid var(--linha); border-radius: 10px; padding: 11px 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--ouro); box-shadow: 0 0 0 3px rgba(215,38,61,.13); }
input:disabled { opacity: .6; cursor: not-allowed; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--cortina); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--fila); border: 1px solid var(--linha); padding: 10px 18px; border-radius: 10px; cursor: pointer; font-weight: 600; white-space: nowrap; color: var(--texto); }
.btn:hover { border-color: #c4c5cc; text-decoration: none; }
.btn.pri { background: var(--cortina); color: #fff; border-color: var(--cortina); box-shadow: 0 6px 16px rgba(215,38,61,.25); }
.btn.pri:hover { background: var(--cortina-2); border-color: var(--cortina-2); }
.btn.dang { color: var(--bad); }
.btn.big { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.block { width: 100%; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.err { background: #fdecec; color: var(--bad); padding: 11px 13px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; border: 1px solid rgba(255,107,107,.25); }
.toolbar { display: flex; gap: 10px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--linha); flex-wrap: wrap; }
.toolbar input, .toolbar select { width: auto; min-width: 220px; }

/* escolhas: planos e pacotes como mini-bilhetes */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-bottom: 18px; }
.choice { background: #fff; border: 1.5px solid var(--linha); border-radius: 12px; padding: 14px 14px 12px; cursor: pointer; text-align: left; position: relative; transition: border-color .15s, transform .15s; }
.choice b { display: block; font-family: var(--display); font-size: 22px; font-weight: 750; line-height: 1.1; }
.choice span { color: var(--muted); font-size: 13px; }
.choice:hover:not(:disabled) { border-color: #c4c5cc; }
.choice.on { border-color: var(--cortina); background: #fdeef0; }
.choice.on b { color: var(--ouro); }
.choice:disabled { opacity: .35; cursor: not-allowed; }

/* ---------------- Modal e avisos ---------------- */
.overlay { position: fixed; inset: 0; background: rgba(20,20,25,.45); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; z-index: 50; }
.modal { background: var(--plateia); border: 1px solid var(--linha); border-radius: 18px; width: 100%; max-width: 540px; max-height: 92vh; overflow: auto; box-shadow: 0 30px 70px rgba(20,20,25,.2); }
.modal h3 { margin: 0; padding: 20px 24px 6px; font-size: 20px; }
.modal .mb { padding: 14px 24px 20px; }
.modal .mf { padding: 14px 24px 20px; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
#toast-root { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--fila); border: 1px solid var(--linha); border-left: 4px solid var(--muted); padding: 12px 16px; border-radius: 12px; max-width: 360px; box-shadow: 0 12px 30px rgba(20,20,25,.16); }
.toast.bad { border-left-color: var(--bad); }
.toast.ok { border-left-color: var(--ok); }

/* ---------------- Conta ---------------- */
.acc { align-items: start; }
.kv { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--linha); font-size: 14px; }
.kv:last-of-type { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.sec-row { display: flex; align-items: center; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--linha); }
.sec-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--fila); display: grid; place-items: center; font-size: 17px; flex: none; }
.sec-tx { flex: 1; min-width: 0; }
.sec-tip { padding: 14px 20px; }
.sec-score { font-family: var(--body); font-size: 12px; padding: 3px 11px; border-radius: 99px; font-weight: 600; }
.sec-score.ok { background: rgba(68,198,139,.13); color: var(--ok); }
.sec-score.warn { background: rgba(240,166,64,.14); color: var(--warn); }
.sec-score.bad { background: rgba(255,107,107,.13); color: var(--bad); }
.sup-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.sup-row span { color: var(--muted); width: 84px; font-size: 13px; }
.sup-row a { flex: 1; font-weight: 600; }
.note { background: var(--fila); border-left: 3px solid var(--ouro); padding: 11px 13px; border-radius: 8px; margin-bottom: 18px; color: var(--muted); }
.pw { position: relative; }
.pw input { padding-right: 46px; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; opacity: .45; font-size: 16px; padding: 4px 7px; }
.eye.on, .eye:hover { opacity: 1; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr) 72px; gap: 6px; align-items: center; margin: -6px 0 15px; }
.meter i { height: 5px; border-radius: 3px; background: var(--linha); transition: background .2s; }
.meter i.s1 { background: var(--bad); } .meter i.s2 { background: var(--warn); }
.meter i.s3 { background: #9fd36a; } .meter i.s4 { background: var(--ok); }
.meter span { font-size: 12px; color: var(--muted); text-align: right; }
.rules { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.rules li.ok { color: var(--ok); }

/* ---------------- Telemóvel ---------------- */
.mtop { display: none; }
@media (max-width: 860px) {
  .login-wrap { grid-template-columns: 1fr; }
  .poster { padding: 32px 24px 28px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--linha); }
  .poster h1 { font-size: 34px; }
  .poster .small { display: none; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; z-index: 40; width: 260px; transform: translateX(-100%); transition: transform .2s; background: #fff; }
  .side.open { transform: none; box-shadow: 20px 0 50px rgba(20,20,25,.2); }
  .mtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--linha); background: rgba(255,255,255,.94); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 30; }
  .mtop .brand { font-size: 17px; }
  .mtop .acct-name { display: none; }
  .mtop .acct-pop { right: -6px; }
  .topbar { display: none; }
  main { padding: 20px 14px 60px; }
  .head h1 { font-size: 24px; }
  .cols, .row2 { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .grid > .card { border-right: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
  .grid > .card:nth-child(2n) { border-right: 0; }
  .tbl th, .tbl td { padding: 10px 12px; }
  .hide-m { display: none; }
  .scroll { overflow-x: auto; }
  .ticket { grid-template-columns: 1fr; }
  .ticket .t-main { border-radius: 18px 18px 0 0;
    -webkit-mask: radial-gradient(circle at 0 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) left/51% 100% no-repeat, radial-gradient(circle at 100% 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) right/51% 100% no-repeat;
            mask: radial-gradient(circle at 0 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) left/51% 100% no-repeat, radial-gradient(circle at 100% 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) right/51% 100% no-repeat; }
  .ticket .t-stub { border-radius: 0 0 18px 18px; min-width: 0; padding: 22px;
    -webkit-mask: radial-gradient(circle at 0 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) left/51% 100% no-repeat, radial-gradient(circle at 100% 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) right/51% 100% no-repeat;
            mask: radial-gradient(circle at 0 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) left/51% 100% no-repeat, radial-gradient(circle at 100% 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) right/51% 100% no-repeat; }
  .ticket .t-stub::before { left: 20px; right: 20px; top: 0; bottom: auto; border-left: 0; border-top: 2px dashed rgba(255,255,255,.45); }
  .ticket .t-num { font-size: 64px; }
  .ticket > div { padding: 22px; }
  .rules { grid-template-columns: 1fr; }
  .code-ticket .c-main .code { font-size: 44px; }
}

/* correções */
.code-ticket .c-main .code { color: #18181c; }
.grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 861px) { .grid > .card:last-child:nth-child(odd) { grid-column: auto; } }
.modal .mf .btn.pri { order: -1; }
@media (max-width: 860px) { .modal .mf { flex-direction: column-reverse; } .modal .mf .btn { width: 100%; } .modal .mf .btn.pri { order: 0; } }
.cols { align-items: start; }
.tbl td.small { white-space: nowrap; }

/* tema claro: ajustes */
.poster .brand .logo { background: #fff; color: #c41f35; }
.poster .small.muted { color: rgba(255,255,255,.7); }
.toast { background: #fff; }
.b.ok { background: #e6f6ee; } .b.warn { background: #fdf3e2; } .b.bad { background: #fdecec; } .b.mut { background: var(--fila); }
.sec-score.ok { background: #e6f6ee; } .sec-score.warn { background: #fdf3e2; } .sec-score.bad { background: #fdecec; }
.ticket .t-stub .small { color: rgba(255,255,255,.85); }
.ticket.empty .t-stub .small { color: #fff; }
.code { color: #c81e33; }

/* ---- Login tradicional centrado ---- */
.login-wrap { display: grid; grid-template-columns: 1fr; place-items: center; min-height: 100vh; padding: 24px 16px; background: #fff; }
body:has(.login-wrap) { background: #fff; }
.login-card { width: 100%; max-width: 410px; background: #fff; border: 1px solid var(--linha); border-radius: 18px; overflow: hidden;
  box-shadow: 0 0 0 8px #f5f5f6, 0 24px 48px rgba(20,20,25,.08); }
.lc-head { background: #f5f5f6; border-bottom: 1px solid var(--linha); padding: 22px 28px 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lc-head .brand { font-size: 21px; }
.lc-body { padding: 26px 28px 28px; }
.lc-body h2 { font-size: 24px; margin: 0 0 4px; }
.lc-body .sub { color: var(--muted); margin: 0 0 22px; }
.lc-body input { background: #fafafb; }
.lc-body input:focus { background: #fff; }
.lc-foot { background: #f5f5f6; border-top: 1px solid var(--linha); padding: 13px 28px; text-align: center; }
@media (max-width: 860px) { .login-wrap { grid-template-columns: 1fr; } }

/* ---- Marca só em texto ---- */
.brand { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.lc-head .brand { font-size: 26px; }

/* ---- Fundo do login: marca de água de cinema ---- */
.login-wrap {
  background:
    radial-gradient(ellipse 420px 380px at 50% 50%, #fff 40%, rgba(255,255,255,.7) 70%, rgba(255,255,255,0) 100%),
    url("/bg-cinema.svg") 0 0 / 720px 720px repeat,
    #fff;
}
