/* Gold List — painel do produtor e portaria (v2: limpo, preciso, iOS/macOS) */
body.adm { font-size: 15px; }
.cap { font-size: 12px; font-weight: 600; letter-spacing: 0.01em; color: var(--fg3); }
.reveal { animation: rv .9s var(--expo) backwards; animation-delay: var(--d, 0s); }
@keyframes rv { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } }

/* ---------- topo ---------- */
.adm-top {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px;
  padding: 0 22px; height: 60px;
  background: rgba(0,0,0,.6); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.adm-top .tag { color: var(--fg3); font-size: 13px; font-weight: 500; padding-left: 16px; border-left: 1px solid var(--line2); }
.adm-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; padding: 3px; border-radius: 99px; background: var(--s2); }
.adm-nav a, .adm-nav button { text-decoration: none; border: 0; background: none; height: 32px; padding: 0 14px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--fg2); transition: background .3s, color .3s; }
.adm-nav a.on { background: var(--s4); color: var(--fg); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.adm-nav a:hover, .adm-nav button:hover { color: var(--fg); }

.adm-main { max-width: 1200px; margin: 0 auto; padding: 36px 22px 110px; }
.ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.ph h1 { font-size: clamp(36px, 5vw, 54px); font-weight: 650; letter-spacing: -0.05em; line-height: 1; margin: 8px 0 0; }
.ph .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.back { color: var(--fg2); text-decoration: none; font-size: 14px; font-weight: 600; }
.back:hover { color: var(--gold); }
.ph-meta { margin-top: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--fg2); font-size: 14.5px; }

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 99px; border: 0; background: var(--s2); color: var(--fg); font-size: 14px; font-weight: 600;
  text-decoration: none; white-space: nowrap; transition: background .25s, transform .4s var(--spring), color .25s;
}
.btn:hover { background: var(--s3); }
.btn:active { transform: scale(.96); }
.btn.gold { background: var(--champagne); color: #000; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 8px 24px -10px rgba(226,191,126,.6); }
.btn.gold:hover { filter: brightness(1.06); }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: rgba(255,69,58,.14); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* chips de status */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; background: var(--s2); font-size: 12.5px; font-weight: 600; color: var(--fg2); white-space: nowrap; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--fg3); }
.chip.open { background: var(--gold-soft); color: var(--gold); }
.chip.open::before { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.chip.full { background: rgba(255,69,58,.12); color: #ff8a80; }
.chip.full::before { background: var(--red); }
.chip.draft { background: transparent; box-shadow: inset 0 0 0 1px var(--line2); }

/* ---------- lista de eventos ---------- */
.ev-list { display: grid; gap: 10px; }
.ev-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 12px 18px 12px 12px; border-radius: 20px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none; transition: background .3s, transform .6s var(--spring);
}
.ev-row:hover { background: var(--s2); transform: translateY(-2px); }
.ev-thumb { width: 64px; aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; background: var(--s2); }
.ev-thumb svg, .ev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-name { font-size: 20px; font-weight: 650; letter-spacing: -0.035em; line-height: 1.15; }
.ev-sub { color: var(--fg2); font-size: 14px; margin: 3px 0 9px; }
.ev-stats { display: flex; align-items: center; gap: 16px; }
.ev-nums { display: grid; gap: 4px; font-size: 13px; color: var(--fg2); min-width: 120px; }
.ev-nums b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 15px; }
.ev-nums .k { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--champagne); }
.ev-nums .k.w { background: var(--fg); }
.sec-title { font-size: 13px; font-weight: 600; color: var(--fg3); margin: 34px 0 12px; }
.sec-title:first-of-type { margin-top: 0; }

/* anéis estilo Watch: lotação (dourado) e entradas (branco) */
.rings { width: 64px; height: 64px; flex: none; }
.rings circle { fill: none; stroke-linecap: round; }
.rings .tr { stroke: var(--s3); }
.rings .on { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: ringDraw 1.6s var(--expo) forwards; animation-delay: var(--d, .2s); }
@keyframes ringDraw { to { stroke-dashoffset: var(--off); } }

@media (max-width: 720px) {
  .ev-row { grid-template-columns: 56px minmax(0, 1fr); padding-right: 12px; }
  .ev-thumb { width: 56px; }
  .ev-stats { grid-column: 1 / -1; justify-content: space-between; padding: 8px 4px 2px; border-top: 1px solid var(--line); }
  .adm-top .tag { display: none; }
  .adm-top { padding: 0 14px; gap: 10px; }
  .adm-main { padding: 24px 16px 110px; }
}

/* abas = controle segmentado */
.tabs { position: relative; display: inline-flex; gap: 0; padding: 3px; border-radius: 13px; background: var(--s2); margin-bottom: 26px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs a { position: relative; z-index: 1; padding: 8px 16px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--fg2); white-space: nowrap; transition: color .3s; }
.tabs a.on { color: var(--fg); }
.tabs .ink { position: absolute; z-index: 0; top: 3px; bottom: 3px; border-radius: 10px; background: var(--s4); box-shadow: 0 2px 8px rgba(0,0,0,.4); transition: left .55s var(--spring), width .55s var(--spring); }

/* números */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.kpi { padding: 18px 20px 20px; border-radius: 20px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.kpi .n { font-size: 46px; font-weight: 600; letter-spacing: -0.055em; line-height: 1; margin-top: 12px; font-variant-numeric: tabular-nums; }
.kpi .n.gold { background: var(--champagne); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi .n.txt { font-size: 26px; letter-spacing: -0.035em; margin-top: 20px; }
.kpi .s { font-size: 13px; color: var(--fg2); margin-top: 8px; }
@media (max-width: 760px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi .n { font-size: 36px; } }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }
.panel { padding: 20px; border-radius: 20px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.panel h3 { margin: 0 0 16px; display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 650; color: var(--fg); letter-spacing: -0.02em; }
.panel h3 small { font-size: 12px; color: var(--fg3); font-weight: 500; }

.hbar { display: grid; grid-template-columns: minmax(90px, 170px) 1fr 64px; gap: 14px; align-items: center; padding: 8px 0; font-size: 14px; }
.hbar .track { height: 8px; border-radius: 8px; background: var(--s3); position: relative; overflow: hidden; }
.hbar .track i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; background: rgba(226,191,126,.35); animation: grow 1.2s var(--expo) backwards; transform-origin: left; }
.hbar .track i.c { background: var(--champagne); }
.hbar .v { font-size: 14px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.hbar .v small { color: var(--fg3); font-weight: 500; }
@keyframes grow { from { transform: scaleX(0); } }
.legend { display: flex; gap: 16px; margin-top: 12px; }
.legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: rgba(226,191,126,.35); }
.legend span.c::before { background: var(--gold); }

.cols { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 14px; }
.cols .c { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; height: 100%; min-width: 0; }
.cols .c i { width: 100%; max-width: 34px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, rgba(226,191,126,.7), rgba(226,191,126,.15)); transform-origin: bottom; animation: rise2 1s var(--expo) backwards; position: relative; transition: background .3s; }
.cols .c:hover i { background: var(--champagne); }
.cols .c i b { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: 11.5px; font-weight: 600; color: var(--fg); opacity: 0; transition: .2s; }
.cols .c:hover i b { opacity: 1; }
.cols .c span { font-size: 11px; color: var(--fg3); font-variant-numeric: tabular-nums; }
@keyframes rise2 { from { transform: scaleY(0); } }

/* ---------- convidados ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar .grow { flex: 1; min-width: 220px; }
.inp, .sel, textarea.inp {
  width: 100%; height: 42px; background: var(--s2); border: 0; border-radius: 12px; color: var(--fg);
  font-size: 15px; font-weight: 500; padding: 0 14px; outline: none; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .25s, background .25s;
}
.inp:focus, .sel:focus { box-shadow: inset 0 0 0 1.5px var(--gold); background: var(--s3); }
.sel { width: auto; appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a6' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.sel option { background: var(--s2); }
textarea.inp { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; font-weight: 400; line-height: 1.5; }
.inp::placeholder { color: var(--fg3); font-weight: 400; }
input[type="datetime-local"].inp, input[type="time"].inp { color-scheme: dark; }

.tbl-wrap { border-radius: 20px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; min-width: 780px; }
.tbl th { text-align: left; padding: 14px 14px 10px; font-size: 12px; font-weight: 600; color: var(--fg3); border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14.5px; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .2s; }
.tbl tbody tr:hover { background: rgba(255,255,255,.025); }
.tbl tr.cancelled td { opacity: .4; }
.tbl tr.cancelled .nm { text-decoration: line-through; }
.tbl .nm { font-weight: 600; letter-spacing: -0.015em; }
.tbl .sub { color: var(--fg3); font-size: 12.5px; }
.tbl a { color: var(--fg2); text-decoration: none; }
.tbl a:hover { color: var(--gold); }
.tbl .mono { font-size: 12.5px; color: var(--fg2); }
.tbl-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; }

/* check de entrada: círculo iOS com check em trim path */
.chk { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--s4); background: none; display: grid; place-items: center; padding: 0; transition: background .3s, border-color .3s, transform .4s var(--spring); }
.chk::after { content: ''; width: 10px; height: 5px; border: 2px solid #000; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .35s var(--spring); }
.chk:hover { border-color: var(--gold); }
.chk.on { background: var(--champagne); border-color: transparent; }
.chk.on::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.chk:active { transform: scale(.85); }
.kebab { width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; color: var(--fg2); font-size: 18px; line-height: 1; }
.kebab:hover { background: var(--s2); color: var(--fg); }

/* ---------- formulário do evento ---------- */
.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.fg { grid-column: span 6; display: flex; flex-direction: column; gap: 7px; }
.fg.s3 { grid-column: span 3; } .fg.s4 { grid-column: span 4; } .fg.s8 { grid-column: span 8; } .fg.s12 { grid-column: span 12; }
.fg > label { font-size: 13px; font-weight: 600; color: var(--fg2); }
.fg .hint { font-size: 12.5px; color: var(--fg3); }
@media (max-width: 760px) { .fg, .fg.s3, .fg.s4, .fg.s8 { grid-column: span 12; } }
.sect { grid-column: span 12; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.sect:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.sect b { font-size: 24px; font-weight: 650; letter-spacing: -0.04em; color: var(--fg); }
.prefix { display: flex; align-items: center; background: var(--s2); border-radius: 12px; overflow: hidden; }
.prefix span { padding: 0 0 0 14px; color: var(--fg3); font-size: 14px; white-space: nowrap; }
.prefix .inp { background: transparent; padding-left: 4px; }
.prefix .inp:focus { background: transparent; box-shadow: none; }
.prefix:focus-within { box-shadow: inset 0 0 0 1.5px var(--gold); }

.lists-ed { display: flex; flex-direction: column; gap: 8px; }
.list-row { display: grid; grid-template-columns: 28px 1.1fr 1.6fr 110px 36px; gap: 8px; align-items: center; }
.list-row .num { width: 24px; height: 24px; border-radius: 50%; background: var(--s3); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--fg2); }
.list-row [data-rm] { width: 36px; padding: 0; }
@media (max-width: 760px) { .list-row { grid-template-columns: 1fr 1fr; } .list-row .num { display: none; } .list-row .perk-in { grid-column: span 2; order: 3; } }

/* switch iOS */
.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 8px 0; font-size: 15px; font-weight: 500; }
.toggle input { display: none; }
.toggle .sw { width: 51px; height: 31px; border-radius: 99px; background: var(--s4); position: relative; transition: background .35s; flex: none; }
.toggle .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.3); transition: left .45s var(--spring); }
.toggle input:checked + .sw { background: var(--gold); }
.toggle input:checked + .sw::after { left: 22px; }

.flyer-drop { position: relative; display: grid; place-items: end center; aspect-ratio: 4/5; max-width: 220px; border-radius: 18px; overflow: hidden; cursor: pointer; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--spring); }
.flyer-drop:hover { transform: scale(1.02); }
.flyer-drop img, .flyer-drop svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flyer-drop input { display: none; }
.flyer-drop .lbl { position: relative; z-index: 2; margin: 0 0 12px; height: 32px; padding: 0 14px; border-radius: 99px; display: inline-flex; align-items: center; background: rgba(28,28,30,.75); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 13px; font-weight: 600; color: var(--fg); }

.savebar { position: sticky; bottom: 16px; margin-top: 30px; padding: 10px; border-radius: 99px; display: flex; justify-content: flex-end; gap: 8px; z-index: 5; background: rgba(28,28,30,.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 20px 40px rgba(0,0,0,.5), inset 0 0 0 1px var(--line); }

/* ---------- links & portaria ---------- */
.share-row { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) 60px auto; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14.5px; }
.share-list { border-radius: 20px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.share-list .share-row:first-child { border-top: 0; }
.share-row .url { font-family: var(--mono); font-size: 12px; color: var(--fg3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-row .n { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .share-row { grid-template-columns: 1fr auto auto; } .share-row .url { grid-column: 1 / -1; order: 3; } }
.door-card { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 22px; margin-bottom: 10px; border-radius: 20px; background: radial-gradient(120% 140% at 100% 0%, rgba(226,191,126,.16), transparent 50%), var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.door-card h3 { margin: 0 0 6px; font-size: 22px; font-weight: 650; letter-spacing: -0.035em; }
.door-card .pin { display: flex; gap: 6px; }
.door-card .pin span { width: 44px; height: 54px; border-radius: 12px; background: var(--s2); display: grid; place-items: center; font-family: var(--mono); font-size: 24px; font-weight: 500; color: var(--gold); }

/* ---------- modal (sheet) ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s; }
.modal.on { opacity: 1; }
.modal__box { width: min(460px, 100%); max-height: 90vh; overflow: auto; padding: 24px; border-radius: 26px; background: rgba(24,24,26,.92); box-shadow: 0 40px 100px rgba(0,0,0,.6), inset 0 0 0 1px var(--line2); transform: translateY(24px) scale(.96); filter: blur(6px); transition: transform .6s var(--spring), filter .4s; }
.modal.on .modal__box { transform: none; filter: none; }
.modal__box h3 { font-size: 26px; font-weight: 650; letter-spacing: -0.04em; margin: 0 0 16px; }
.modal__box .fg { margin-bottom: 12px; }
.modal__acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.err-line { color: var(--red); font-size: 13.5px; min-height: 18px; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login__box { width: min(360px, 100%); text-align: center; }
.login__box .wordmark { margin-bottom: 28px; font-size: 18px; }
.login__box h1 { font-size: 40px; font-weight: 650; letter-spacing: -0.05em; line-height: 1; margin: 0 0 28px; }
.login__box .fg { margin-bottom: 10px; text-align: left; }
.login__box .inp { height: 50px; font-size: 16px; }
.empty { padding: 56px 20px; text-align: center; color: var(--fg2); border-radius: 20px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.empty b { display: block; font-size: 22px; font-weight: 650; letter-spacing: -0.035em; color: var(--fg); margin-bottom: 6px; }
.skel { height: 76px; border-radius: 20px; margin-bottom: 10px; background: linear-gradient(90deg, var(--s1), var(--s2), var(--s1)); background-size: 200% 100%; animation: skel 1.3s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }

/* impressão: lista alfabética para a portaria em papel */
@media print {
  body, body.adm { background: #fff; color: #000; }
  .ambient, .adm-top, .tabs, .toolbar, .ph .acts, .demo-dock, .no-print { display: none !important; }
  .print-only { display: block !important; }
  .tbl-wrap { box-shadow: none; background: none; }
  .tbl { min-width: 0; font-size: 11px; }
  .tbl th, .tbl td { color: #000; border-bottom: 1px solid #ccc; padding: 5px 6px; }
  .chk { border: 1px solid #000; width: 14px; height: 14px; }
}
.print-only { display: none; }

/* ============================ PORTARIA ============================ */
body.door { min-height: 100vh; overscroll-behavior: none; }
.door-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; height: 60px; border-bottom: 1px solid var(--line); }
.door-ev { font-size: 16px; font-weight: 650; letter-spacing: -0.025em; text-align: right; }
.door-count { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 18px 0; }
.door-count > div { padding: 16px; border-radius: 20px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.door-count .n { font-size: 46px; font-weight: 600; letter-spacing: -0.055em; line-height: 1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.door-count > div:first-child .n { background: var(--champagne); -webkit-background-clip: text; background-clip: text; color: transparent; }
.door-count .n small { font-size: 18px; color: var(--fg3); letter-spacing: -0.02em; -webkit-text-fill-color: var(--fg3); }
.door-bar { height: 4px; margin: 12px 18px 0; border-radius: 4px; background: var(--s3); overflow: hidden; }
.door-bar i { display: block; height: 100%; border-radius: 4px; background: var(--champagne); transition: width .9s var(--expo); }
.door-search { padding: 14px 18px; display: flex; gap: 8px; position: sticky; top: 0; z-index: 5; background: rgba(0,0,0,.7); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.door-search input { flex: 1; min-width: 0; height: 54px; padding: 0 16px 0 46px; border-radius: 16px; border: 0; background: var(--s2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px center; color: var(--fg); font-size: 19px; font-weight: 500; outline: none; }
.door-search input:focus { box-shadow: inset 0 0 0 1.5px var(--gold); }
.door-search button { width: 54px; border-radius: 16px; border: 0; background: var(--champagne); color: #000; display: grid; place-items: center; flex: none; }
.door-results { padding: 0 18px 120px; }
.dr { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); animation: rv .5s var(--expo) backwards; }
.dr .nm { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.dr .sub { color: var(--fg3); font-size: 13px; margin-top: 3px; }
.dr .go { height: 46px; padding: 0 20px; border-radius: 99px; border: 0; background: var(--champagne); color: #000; font-size: 15px; font-weight: 650; transition: transform .4s var(--spring); }
.dr .go:active { transform: scale(.94); }
.dr .go.done { background: var(--s2); color: var(--fg2); font-weight: 600; }
.dr .go.x { background: rgba(255,69,58,.14); color: var(--red); }
.door-hint { color: var(--fg3); text-align: center; padding: 44px 10px; font-size: 15px; line-height: 1.6; }

.flash { position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; pointer-events: none; opacity: 0; transition: opacity .3s; background: #000; }
.flash.on { opacity: 1; pointer-events: auto; }
.flash.ok { background: radial-gradient(60% 45% at 50% 40%, rgba(226,191,126,.28), transparent 75%), #000; }
.flash.warn { background: radial-gradient(60% 45% at 50% 40%, rgba(255,69,58,.28), transparent 75%), #000; }
.flash .ring { width: 132px; height: 132px; display: grid; place-items: center; margin-bottom: 24px; position: relative; }
.flash .ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--gold); clip-path: circle(0 at 50% 50%); }
.flash.warn .ring::before { border-color: var(--red); }
.flash.on .ring::before { animation: ringIn .7s var(--expo) forwards; }
@keyframes ringIn { to { clip-path: circle(75% at 50% 50%); } }
.flash .ring svg { width: 60px; height: 60px; }
.flash .ring path { stroke-dasharray: 100; stroke-dashoffset: 100; }
.flash.on .ring path { animation: drawck .5s .25s var(--inout) forwards; }
@keyframes drawck { to { stroke-dashoffset: 0; } }
.flash h2 { font-size: 40px; font-weight: 650; letter-spacing: -0.05em; margin: 0; color: var(--fg); }
.flash.ok h2 { background: var(--champagne); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flash.warn h2 { color: #ff8a80; }
.flash .who { font-size: 28px; font-weight: 600; letter-spacing: -0.035em; margin: 10px 0 4px; line-height: 1.15; }
.flash .det { color: var(--fg2); font-size: 16px; }
.flash.on h2, .flash.on .who, .flash.on .det { animation: rv .7s var(--expo) backwards; }
.flash.on .who { animation-delay: .08s; } .flash.on .det { animation-delay: .14s; }
.flash .tap { margin-top: 30px; color: var(--fg3); font-size: 13px; }
.flash .undo { pointer-events: auto; margin-top: 16px; }

/* PIN estilo tela de bloqueio */
.pinpad { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 20px; gap: 26px; text-align: center; }
.pinpad .door-ev { text-align: center; font-size: 24px; letter-spacing: -0.035em; margin-top: 4px; }
.pin-dots { display: flex; gap: 18px; height: 14px; }
.pin-dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--fg); transition: background .2s, transform .35s var(--spring); }
.pin-dots i.on { background: var(--fg); transform: scale(1.1); }
.pin-dots.shake { animation: nudge .45s var(--expo); }
.pin-dots.shake i { border-color: var(--red); background: transparent; }
.keys { display: grid; grid-template-columns: repeat(3, 78px); gap: 16px 22px; }
.keys button { width: 78px; height: 78px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); font-size: 32px; font-weight: 400; color: var(--fg); transition: background .5s; }
.keys button:active { background: rgba(255,255,255,.35); transition: background 0s; }
.keys button.fn { background: none; font-size: 15px; font-weight: 500; color: var(--fg2); }

.scanner { position: fixed; inset: 0; z-index: 140; background: #000; display: none; }
.scanner.on { display: block; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner .frame { position: absolute; left: 50%; top: 50%; width: 64vmin; height: 64vmin; transform: translate(-50%, -50%); border-radius: 32px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.55), inset 0 0 0 2px rgba(226,191,126,.9); }
.scanner .frame::after { content: ''; position: absolute; left: 8%; right: 8%; height: 2px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 16px var(--gold); animation: scanl 1.8s var(--inout) infinite alternate; }
@keyframes scanl { from { top: 8%; } to { top: 92%; } }
.scanner .close { position: absolute; top: 18px; right: 18px; }
.scanner .msg { position: absolute; left: 0; right: 0; bottom: 60px; text-align: center; color: var(--fg); font-size: 15px; font-weight: 600; }
