/* VijoScan — black & gold */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: Cinzel; font-weight: 600; font-display: swap; src: url(/fonts/cinzel-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Cinzel; font-weight: 700; font-display: swap; src: url(/fonts/cinzel-latin-700-normal.woff2) format('woff2'); }

:root {
  --bg: #0B0B0B; --panel: #141414; --panel2: #1B1B1B; --line: #2A2A2A; --line2: #3A3424;
  --gold: #D4AF37; --gold2: #F1D27A; --gold3: #9C7A1C; --goldbg: rgba(212,175,55,.10);
  --text: #F3EFE4; --muted: #9B9484; --danger: #E5534B; --ok: #6BCB77;
  --r: 14px; --r2: 20px; --shadow: 0 10px 40px rgba(0,0,0,.55);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --navh: 64px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); min-height: 100%; }
body { font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--navh) + var(--safe-b)); }
body.no-scroll { overflow: hidden; }
body.phone-mode { padding-bottom: var(--safe-b); }
a { color: var(--gold2); text-decoration: none; }
h1, h2, h3 { font-family: Cinzel, Georgia, serif; font-weight: 700; letter-spacing: .02em; margin: 0; }
h1 { font-size: 1.55rem; } h2 { font-size: 1.15rem; margin: 1.4rem 0 .7rem; } h3 { font-size: .95rem; color: var(--gold); margin: 1.4rem 0 .5rem; text-transform: uppercase; letter-spacing: .08em; }
p { margin: .4rem 0; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; } .err { color: var(--danger); } .warn { color: #E3B341; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; gap: .5rem; align-items: center; } .row.wrap { flex-wrap: wrap; } .row.center { justify-content: center; } .row.between { justify-content: space-between; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--gold); color: #000; padding: .5rem; }
:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; flex: none; }

/* logo */
.logo-sm, .logo-lg { display: inline-block; background: url(/img/logo.svg) center/contain no-repeat; }
.logo-sm { width: 28px; height: 28px; } .logo-lg { width: 64px; height: 64px; }
.boot { display: grid; place-items: center; min-height: 70vh; font-family: Cinzel, serif; color: var(--gold); gap: .5rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .55rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: 600 .92rem Inter, sans-serif; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn:hover { border-color: var(--gold3); } .btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.gold { background: linear-gradient(135deg, #F1D27A, #D4AF37 55%, #B8921F); color: #111; border-color: transparent; }
.btn.gold:hover { filter: brightness(1.06); }
.btn.danger { color: #ff8d86; border-color: #4a2523; }
.btn.sm { min-height: 36px; padding: .35rem .75rem; font-size: .85rem; }
.btn.xl { min-height: 58px; font-size: 1.05rem; border-radius: 16px; }
.btn.block { width: 100%; }
.iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--text); cursor: pointer; }
.iconbtn:hover { background: var(--panel2); } .iconbtn.on { color: var(--gold); }
.iconbtn.sm { width: 34px; height: 34px; } .iconbtn.danger { color: #ff8d86; } .iconbtn:disabled { opacity: .3; }
.link { color: var(--gold); font-weight: 600; }
.pill { padding: .2rem .6rem; border-radius: 99px; font-size: .8rem; border: 1px solid var(--line); }
.pill.ok { color: var(--ok); border-color: #2b4a30; }

/* inputs */
.inp { width: 100%; min-height: 44px; padding: .55rem .8rem; border-radius: 12px; border: 1px solid var(--line); background: #0f0f0f; color: var(--text); font: 500 .95rem Inter, sans-serif; }
.inp:focus { border-color: var(--gold); outline: none; }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.lbl { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: .9rem 0 .35rem; }
.form .lbl:first-child { margin-top: 0; }
.chk { display: flex; align-items: center; gap: .55rem; padding: .5rem 0; cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--gold); width: 18px; height: 18px; }
.radios { display: grid; gap: .4rem; }
.radio { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--gold); background: var(--goldbg); }
.radio span { display: grid; } .radio small { color: var(--muted); }
input.switch { appearance: none; width: 46px; height: 28px; border-radius: 99px; background: #333; position: relative; cursor: pointer; transition: .2s; flex: none; }
input.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #ddd; transition: .2s; }
input.switch:checked { background: var(--gold); } input.switch:checked::after { left: 21px; background: #111; }

/* nav: bottom bar on phones, top bar on large screens */
.nav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(var(--navh) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; justify-content: space-around; align-items: stretch; background: rgba(12,12,12,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: .72rem; font-weight: 600; }
.nav a .ni svg { width: 24px; height: 24px; }
.nav a.on { color: var(--gold); }
.nav .nav-scan .ni { display: grid; place-items: center; width: 54px; height: 54px; margin-top: -26px; border-radius: 18px; color: #111;
  background: linear-gradient(135deg, #F1D27A, #D4AF37 55%, #B8921F); box-shadow: 0 6px 22px rgba(212,175,55,.35); border: 3px solid var(--bg); }
.nav .nav-scan .ni svg { width: 26px; height: 26px; }
.nav-brand, .desk-only { display: none !important; }
@media (min-width: 900px) {
  body { padding-bottom: 0; padding-top: 64px; }
  .nav { top: 0; bottom: auto; height: 64px; padding: 0 2rem; justify-content: flex-start; gap: .4rem; border-top: 0; border-bottom: 1px solid var(--line); }
  .nav a { flex: none; flex-direction: row; gap: .45rem; padding: 0 .9rem; font-size: .9rem; }
  .nav a.on { box-shadow: inset 0 -2px 0 var(--gold); }
  .nav .nav-scan .ni { width: auto; height: auto; margin: 0; background: none; color: inherit; box-shadow: none; border: 0; }
  .nav .nav-scan .ni svg, .nav a .ni svg { width: 20px; height: 20px; }
  .nav-brand { display: flex !important; margin-right: auto; color: var(--gold) !important; font-family: Cinzel, serif; font-size: 1.15rem !important; }
  .desk-only { display: flex !important; }
}

/* pages */
.page { max-width: 1100px; margin: 0 auto; padding: calc(1rem + var(--safe-t)) 1rem 2rem; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r2); padding: 1rem; }
.card.center { display: grid; justify-items: center; gap: .7rem; text-align: center; }
.empty { display: grid; justify-items: center; gap: .6rem; padding: 2.5rem 1rem; text-align: center; color: var(--muted); }
.empty.small { padding: 1.2rem; }
.big-ic svg { width: 46px; height: 46px; color: var(--gold); } .big-ic.ok svg { color: var(--ok); }

/* home */
.hero { display: grid; gap: 1rem; margin-bottom: 1rem; }
.brand { display: flex; align-items: center; gap: .9rem; }
.brand h1 { font-size: 2rem; background: linear-gradient(135deg, #F6DF8F, #D4AF37 60%, #A8841F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tag { margin: 0; color: var(--muted); letter-spacing: .05em; }
.scan-cta { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.3rem; border-radius: 22px; color: #111;
  background: linear-gradient(135deg, #F6DF8F, #D4AF37 50%, #B48E1E); box-shadow: 0 12px 40px rgba(212,175,55,.25); }
.scan-cta svg { width: 44px; height: 44px; } .scan-cta b { display: block; font-size: 1.3rem; font-family: Cinzel, serif; } .scan-cta small { opacity: .8; font-weight: 500; }
.scan-cta:active { transform: scale(.99); }
.resume { margin-bottom: 1rem; border-color: var(--line2); }
.home .search { margin-bottom: 1rem; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.tile { display: flex; align-items: center; gap: .75rem; padding: 1rem; border-radius: var(--r2); background: var(--panel); border: 1px solid var(--line); color: var(--text); text-align: left; font: inherit; cursor: pointer; min-height: 76px; }
.tile:hover { border-color: var(--gold3); }
.tile b { display: block; font-size: .95rem; } .tile small { color: var(--muted); font-size: .78rem; }
.tile-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--goldbg); color: var(--gold); flex: none; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); } .hero { grid-template-columns: 1fr 1.1fr; align-items: center; } }

/* doc list */
.doclist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.doc { display: grid; gap: .45rem; padding: .55rem; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-align: left; font: inherit; cursor: pointer; position: relative; }
.doc:hover { border-color: var(--gold3); }
.doc.sel { border-color: var(--gold); background: var(--goldbg); }
.doc .cover { aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; background: #fff1; display: grid; place-items: center; color: var(--muted); }
.doc .cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc .cover svg { width: 36px; height: 36px; }
.doc .meta { display: grid; min-width: 0; } .doc b { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .doc small { color: var(--muted); font-size: .72rem; }
.doc .tick { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #000a; border: 1px solid var(--line); color: transparent; }
.doc.sel .tick { background: var(--gold); color: #111; }
.chips { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: .8rem; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .chips.scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .45rem .85rem; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 600 .82rem Inter, sans-serif; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--gold); color: #111; border-color: var(--gold); }
.chip.ghost { background: transparent; color: var(--gold2); border-style: dashed; }
.chip .ic { width: 16px; height: 16px; }
.tools-row { margin-bottom: .9rem; } .tools-row .sort { width: auto; min-width: 120px; }
.bulkbar { position: sticky; top: calc(var(--safe-t) + 4px); z-index: 5; display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; padding: .6rem; margin-bottom: .8rem; border-radius: 14px; background: #1a1709; border: 1px solid var(--line2); }
@media (min-width: 900px) { .bulkbar { top: 72px; } }
.orderlist { padding: 0; margin: 0; list-style: none; display: grid; gap: .4rem; max-height: 50vh; overflow: auto; }
.orderlist li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 10px; }

/* document view */
.docactions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.viewer { border-radius: var(--r2); overflow: hidden; border: 1px solid var(--line); background: #222; }
.pdf-frame { width: 100%; height: 75vh; border: 0; display: block; background: #fff; }
.pdf-ios { display: grid; gap: .8rem; justify-items: center; padding: 1rem; } .pdf-ios img { max-width: 100%; max-height: 60vh; border-radius: 8px; background: #fff; }

/* modal */
.modal-back { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); animation: fade .15s; }
.modal { width: min(460px, 100%); max-height: calc(100vh - 2rem); overflow: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 22px; padding: 1.2rem; box-shadow: var(--shadow); }
.modal.wide { width: min(900px, 100%); }
.modal h3 { margin: 0 0 .7rem; font-size: 1.05rem; color: var(--text); text-transform: none; letter-spacing: .02em; }
.modal-actions { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1.1rem; }
.modal-actions .btn { flex: 1 1 auto; }
@keyframes fade { from { opacity: 0; } }
.pbar { height: 8px; border-radius: 99px; background: #262626; overflow: hidden; margin-top: .8rem; }
.pbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold3), var(--gold2)); transition: width .25s; }
.pbar.indet i { width: 35%; animation: indet 1.1s infinite ease-in-out; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.toasts { position: fixed; z-index: 200; left: 50%; transform: translateX(-50%); bottom: calc(var(--navh) + var(--safe-b) + 12px); display: grid; gap: .4rem; width: min(440px, calc(100% - 2rem)); pointer-events: none; }
@media (min-width: 900px) { .toasts { bottom: 24px; } }
.toast { padding: .7rem 1rem; border-radius: 12px; background: #1d1d1d; border: 1px solid var(--line2); box-shadow: var(--shadow); font-weight: 500; transition: .3s; animation: fade .2s; }
.toast.err { border-color: #5a2a27; color: #ffb3ad; } .toast.ok { border-color: #2b4a30; }
.toast.out { opacity: 0; transform: translateY(8px); }

/* scanner */
.scanner { position: fixed; inset: 0; z-index: 50; background: #000; display: flex; flex-direction: column; user-select: none; touch-action: none; }
.scan-top { display: flex; align-items: center; justify-content: space-between; padding: calc(var(--safe-t) + .3rem) .5rem .3rem; background: linear-gradient(#000c, #0000); position: relative; z-index: 3; }
.scan-title { font-family: Cinzel, serif; color: var(--gold); font-weight: 700; }
.scan-stage { position: relative; flex: 1; overflow: hidden; }
.scan-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.scan-hint { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); padding: .45rem .9rem; border-radius: 99px; background: #000b; border: 1px solid var(--line2); color: var(--gold2); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.scan-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.scan-flash.go { animation: flash .35s ease-out; }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.scan-error { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem; padding: 2rem; text-align: center; max-width: 520px; margin: auto; }
.scan-bottom { padding: .6rem 1rem calc(var(--safe-b) + .9rem); background: linear-gradient(#0000, #000e 30%); display: grid; gap: .7rem; position: relative; z-index: 3; }
.scan-row { display: flex; justify-content: center; } .scan-row.main { justify-content: space-between; align-items: center; }
.seg { display: inline-flex; padding: 3px; border-radius: 99px; background: #1b1b1bcc; border: 1px solid var(--line); }
.seg button { border: 0; background: none; color: var(--muted); font: 600 .85rem Inter, sans-serif; padding: .4rem 1.1rem; border-radius: 99px; cursor: pointer; }
.seg button.on { background: var(--gold); color: #111; }
.shutter { width: 76px; height: 76px; border-radius: 50%; border: 4px solid var(--gold); background: transparent; padding: 5px; cursor: pointer; }
.shutter i { display: block; width: 100%; height: 100%; border-radius: 50%; background: #f3efe4; transition: .1s; }
.shutter:active i { transform: scale(.9); background: var(--gold2); }
.scanner:not(.manual) .shutter i { background: #f3efe4aa; }
.scan-thumb { position: relative; width: 58px; height: 58px; border-radius: 12px; border: 2px solid var(--gold); background: #111; padding: 0; overflow: visible; cursor: pointer; }
.scan-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.scan-thumb.empty { opacity: .35; border-color: var(--line); } .scan-thumb.empty img { display: none; }
.scan-thumb .count { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; background: var(--gold); color: #111; font-weight: 700; font-size: .78rem; display: grid; place-items: center; }

/* review */
.review { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; background: var(--bg); padding-bottom: var(--safe-b); }
.rv-head { display: flex; align-items: center; gap: .5rem; padding: calc(var(--safe-t) + .5rem) .6rem .5rem; border-bottom: 1px solid var(--line); }
.title-inp { flex: 1; min-width: 0; background: transparent; border: 1px solid transparent; color: var(--text); font: 600 1rem Inter, sans-serif; padding: .5rem; border-radius: 10px; }
.title-inp:focus { border-color: var(--gold); outline: none; }
.rv-main { flex: 1; min-height: 0; position: relative; }
.rv-canvas { position: absolute; inset: .8rem; display: flex; align-items: center; justify-content: center; }
.rv-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 8px 40px #000; background: #fff; }
.rv-pagelbl { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); font-size: .78rem; color: var(--muted); background: #000a; padding: .2rem .6rem; border-radius: 99px; }
.rv-spin { position: absolute; inset: 0; display: grid; place-items: center; }
.rv-spin i, .rv-tile-wait i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff2; border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rv-panel:not(:empty) { padding: .5rem .8rem; border-top: 1px solid var(--line); }
.rv-panel .chips { margin: 0; justify-content: center; }
.adjust { display: grid; gap: .3rem; max-width: 640px; margin: auto; }
.sl { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: .6rem; font-size: .85rem; color: var(--muted); }
input[type=range] { accent-color: var(--gold); width: 100%; }
.rv-tools { display: flex; justify-content: space-around; padding: .3rem; border-top: 1px solid var(--line); overflow-x: auto; }
.tool { display: grid; justify-items: center; gap: 2px; min-width: 54px; padding: .35rem .2rem; border: 0; background: none; color: var(--text); cursor: pointer; border-radius: 10px; font: 500 .7rem Inter, sans-serif; }
.tool small { color: var(--muted); white-space: nowrap; } .tool.on, .tool.on small { color: var(--gold); } .tool:hover { background: var(--panel2); }
.rv-strip { display: flex; gap: .55rem; padding: .6rem .8rem .8rem; overflow-x: auto; border-top: 1px solid var(--line); background: #0e0e0e; }
.rv-tile { position: relative; flex: none; width: 64px; height: 84px; border-radius: 9px; border: 2px solid var(--line); background: #1a1a1a; padding: 0; overflow: hidden; cursor: pointer; color: var(--muted); }
.rv-tile img { width: 100%; height: 100%; object-fit: cover; }
.rv-tile span { position: absolute; bottom: 2px; right: 4px; font-size: .7rem; font-weight: 700; color: #fff; text-shadow: 0 0 4px #000; }
.rv-tile.on { border-color: var(--gold); } .rv-tile.over { border-color: var(--gold2); border-style: dashed; } .rv-tile.drag { opacity: .4; }
.rv-tile.add { display: grid; place-content: center; justify-items: center; border-style: dashed; color: var(--gold); }
.rv-tile.add span { position: static; color: var(--gold); text-shadow: none; } .rv-tile.add small { font-size: .7rem; }
.rv-tile-wait { width: 100%; height: 100%; display: grid; place-items: center; } .rv-tile-wait i { width: 22px; height: 22px; }


/* crop editor */
.crop { display: grid; gap: .6rem; }
.crop-box { height: min(62vh, 640px); display: grid; place-items: center; }
.crop-wrap { position: relative; touch-action: none; }
.crop-img { width: 100%; height: 100%; display: block; border-radius: 4px; }
.crop-svg { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; overflow: visible; }
.loupe { position: absolute; top: 8px; width: 110px; height: 110px; border-radius: 50%; border: 3px solid var(--gold); box-shadow: var(--shadow); pointer-events: none; }

/* pairing */
.pair-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .pair-grid { grid-template-columns: 380px 1fr; align-items: start; } }
.qr-box { width: 260px; max-width: 70vw; padding: 10px; border-radius: 16px; background: #fff; transition: .3s; }
.qr-box svg { display: block; width: 100%; height: auto; }
.qr-box.expired { opacity: .15; filter: blur(3px); } .qr-box.paired { opacity: .25; }
.pair-status { display: flex; gap: .6rem; align-items: center; padding: .8rem 1rem; margin: 1rem 0; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); font-weight: 600; }
.pair-status svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.pair-status.approved { border-color: #2b4a30; } .pair-status.approved svg { color: var(--ok); }
.pair-status.rejected, .pair-status.error { border-color: #5a2a27; }
.steps { color: var(--muted); padding-left: 1.2rem; display: grid; gap: .4rem; font-size: .9rem; }
.recv { display: grid; gap: .8rem; }
.recv-item { display: grid; gap: .6rem; }
.recv-frame { width: 100%; height: 420px; border: 0; border-radius: 10px; background: #fff; }
.confirm-code { font: 700 2.6rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .3em; color: var(--gold2); padding: .6rem 1rem .6rem 1.3rem; border: 1px dashed var(--gold3); border-radius: 14px; margin: .6rem auto; display: inline-block; }
.phone-pair { max-width: 520px; }
.brandline { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; font-family: Cinzel, serif; color: var(--gold); }
.brandline small { color: var(--muted); font-family: Inter, sans-serif; margin-left: auto; }

/* settings */
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid #1f1f1f; }
.setrow:last-child { border-bottom: 0; }
.setrow > span:first-child { display: grid; } .setrow small { color: var(--muted); font-size: .8rem; }
.setrow select.inp { width: auto; min-width: 150px; }
.settings .card { padding: .2rem 1rem; } .pad { padding: .6rem 0; }

/* lock */
.lockscreen { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: var(--bg); padding: 1rem; }
.lockbox { width: min(340px, 100%); display: grid; gap: .8rem; justify-items: center; text-align: center; }
.lockbox .inp.pin { text-align: center; font-size: 1.5rem; letter-spacing: .4em; }

.offline-pill { display: none; position: fixed; z-index: 15; top: calc(var(--safe-t) + 8px); left: 50%; transform: translateX(-50%); padding: .3rem .8rem; border-radius: 99px; background: #2a2410; color: var(--gold2); font-size: .78rem; border: 1px solid var(--line2); }
body.offline .offline-pill { display: block; }
@media (min-width: 900px) { .offline-pill { top: 72px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.linkalt { width: 100%; text-align: left; font-size: .85rem; } .linkalt summary { cursor: pointer; color: var(--gold2); }
.pairlink { display: block; word-break: break-all; font-size: .72rem; padding: .5rem; border-radius: 8px; background: #0f0f0f; border: 1px solid var(--line); user-select: all; }
