:root {
  --accent: #e60012;
  --accent-soft: rgba(230, 0, 18, .12);
  --bg: #f2f2f7;
  --card: #ffffff;
  --card-2: #f7f7fa;
  --text: #1c1c1e;
  --text-2: #6c6c70;
  --text-3: #a1a1a6;
  --sep: rgba(60, 60, 67, .16);
  --input: #ececf0;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.06);
  --plat-switch: #e60012;
  --plat-switch2: #0a9fd8;
  --plat-3ds: #8e44ad;
  --ok: #34c759;
  --warn: #ff9f0a;
  --radius: 14px;
  --tabbar-h: 58px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #ff3b4a;
    --accent-soft: rgba(255, 59, 74, .18);
    --bg: #000000;
    --card: #1c1c1e;
    --card-2: #2c2c2e;
    --text: #f5f5f7;
    --text-2: #aeaeb2;
    --text-3: #6e6e73;
    --sep: rgba(84, 84, 88, .55);
    --input: #2c2c2e;
    --shadow: none;
    --plat-switch: #ff3b4a;
    --plat-switch2: #2ab6ee;
    --plat-3ds: #b36ad6;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--text); }
img { display: block; }
[hidden] { display: none !important; }

#view {
  padding: calc(var(--safe-top) + 8px) 16px calc(var(--tabbar-h) + var(--safe-bottom) + 90px);
  max-width: 900px;
  margin: 0 auto;
  min-height: 100vh;
}

/* ---------- Cabeçalho ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px 2px 10px; }
.page-head h1 { font-size: 32px; line-height: 1.1; margin: 0; font-weight: 800; letter-spacing: -.02em; }
.page-head .sub { color: var(--text-2); font-size: 14px; margin-top: 3px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); box-shadow: var(--shadow); color: var(--accent); flex: none;
}
.icon-btn svg { width: 20px; height: 20px; }
.head-actions { display: flex; gap: 8px; }

.search {
  position: sticky; top: 0; z-index: 5;
  margin: 0 -16px; padding: calc(var(--safe-top) + 6px) 16px 8px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}
.search-box { position: relative; }
.search-box svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-3); }
.search-box input {
  width: 100%; border: 0; outline: 0; border-radius: 11px; padding: 9px 12px 9px 36px; background: var(--input);
  -webkit-appearance: none; appearance: none;
}

.chips { display: flex; gap: 7px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--card); color: var(--text-2); box-shadow: var(--shadow); white-space: nowrap;
}
.chip.active { background: var(--accent); color: #fff; }
.chip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 2px 6px; color: var(--text-2); font-size: 14px; }
.toolbar select {
  border: 0; background: transparent; color: var(--accent); font-weight: 600; font-size: 14px; padding: 4px 0;
  -webkit-appearance: none; appearance: none; text-align: right;
}
.seg-mini { display: inline-flex; background: var(--input); border-radius: 9px; padding: 2px; }
.seg-mini button { padding: 4px 9px; border-radius: 7px; color: var(--text-2); display: inline-flex; }
.seg-mini button.active { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg-mini svg { width: 18px; height: 18px; }

/* ---------- Grelha ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(5, 1fr); } }

.card { text-align: left; display: flex; flex-direction: column; min-width: 0; }
.cover {
  position: relative; width: 100%; aspect-ratio: 0.64; border-radius: 10px; overflow: hidden;
  background: var(--card-2); box-shadow: var(--shadow);
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cover-bg, .row .thumb .cover-bg { position: absolute; inset: -12%; background-size: cover; background-position: center; filter: blur(14px) brightness(.75) saturate(1.2); }
.cover .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 10px; font-weight: 700; font-size: 13px; line-height: 1.2; color: #fff;
}
.cover .plat-bar { position: absolute; left: 0; right: 0; top: 0; height: 5px; }
.card .badges { position: absolute; left: 5px; bottom: 5px; display: flex; gap: 4px; }
.badge {
  display: inline-flex; align-items: center; gap: 3px; height: 21px; padding: 0 6px; border-radius: 6px;
  font-size: 11px; font-weight: 700; color: #fff; background: rgba(0,0,0,.62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.badge svg { width: 13px; height: 13px; }
.card .status-dot { position: absolute; right: 6px; top: 10px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; }
.card .fav { position: absolute; right: 5px; bottom: 5px; color: #ffcc00; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.card .fav svg { width: 18px; height: 18px; }
.card .t { margin-top: 6px; font-size: 13px; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .p { font-size: 12px; color: var(--text-2); margin-top: 1px; }

/* ---------- Lista ---------- */
.list { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; width: 100%; text-align: left; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 70px; right: 0; height: 1px; background: var(--sep); transform: scaleY(.5); }
.row .thumb { width: 46px; height: 66px; border-radius: 6px; overflow: hidden; background: var(--card-2); flex: none; position: relative; }
.row .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.row .thumb .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px; }
.row .info { flex: 1; min-width: 0; }
.row .info .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .info .m { font-size: 13px; color: var(--text-2); margin-top: 2px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 6px; font-size: 12px; font-weight: 700; color: #fff; }
.pill svg { width: 12px; height: 12px; }
.pill.soft { background: var(--input); color: var(--text-2); }
.chev { color: var(--text-3); flex: none; }

.empty { text-align: center; color: var(--text-2); padding: 60px 20px; }
.empty .big { font-size: 48px; margin-bottom: 8px; }
.empty h3 { color: var(--text); margin: 0 0 6px; }
.empty .btn { margin-top: 16px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 12px; font-weight: 600; background: var(--accent); color: #fff;
}
.btn.secondary { background: var(--accent-soft); color: var(--accent); }
.btn.ghost { background: var(--input); color: var(--text); }
.btn.danger { background: rgba(255, 59, 48, .12); color: #ff3b30; }
.btn.block { width: 100%; }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.btn:disabled { opacity: .5; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }

.fab {
  position: fixed; right: 18px; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px); z-index: 20;
  width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(230, 0, 18, .4);
  transition: transform .15s;
}
.fab:active { transform: scale(.92); }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: space-around;
  height: calc(var(--tabbar-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
  background: color-mix(in srgb, var(--card) 85%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: .5px solid var(--sep);
}
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3); font-size: 10.5px; font-weight: 600; }
.tabbar svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button[data-tab="more"] svg { fill: currentColor; stroke: none; }
.tabbar button.active { color: var(--accent); }
.tabbar button.active svg { fill: currentColor; fill-opacity: .15; }
.tabbar button[data-tab="more"].active svg { fill-opacity: 1; }

/* ---------- Sheet (modal) ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.4);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  max-width: 700px; margin: 0 auto;
  height: calc(100% - var(--safe-top) - 14px);
  background: var(--bg); border-radius: 16px 16px 0 0;
  transform: translateY(105%); transition: transform .32s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column; overflow: hidden;
}
.sheet:not(.open) { visibility: hidden; transition: transform .32s cubic-bezier(.2,.8,.2,1), visibility 0s .32s; }
.sheet.open { transform: translateY(0); }
.sheet-head {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px; position: relative; border-bottom: .5px solid var(--sep); background: var(--bg);
}
.sheet-head::before { content: ""; position: absolute; top: 5px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--text-3); opacity: .5; }
.sheet-head h2 { font-size: 17px; margin: 0; font-weight: 700; text-align: center; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-head .link { color: var(--accent); font-size: 17px; padding: 8px 4px; min-width: 70px; }
.sheet-head .link.left { text-align: left; }
.sheet-head .link.right { text-align: right; font-weight: 700; }
.sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 16px calc(var(--safe-bottom) + 30px); overscroll-behavior: contain; }

/* ---------- Formulário ---------- */
.group-title { font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-2); margin: 20px 14px 7px; }
.group-title:first-child { margin-top: 0; }
.group { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.field { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 46px; position: relative; }
.field + .field::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; height: 1px; background: var(--sep); transform: scaleY(.5); }
.field label { flex: none; width: 118px; color: var(--text); }
.field input, .field select, .field textarea {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 0; text-align: right;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field.stack { flex-direction: column; align-items: stretch; gap: 0; padding-top: 10px; }
.field.stack label { width: auto; font-size: 13px; color: var(--text-2); }
.field.stack input, .field.stack textarea { text-align: left; padding: 6px 0 12px; }
.field textarea { resize: vertical; min-height: 80px; line-height: 1.4; }
.field .unit { color: var(--text-3); font-size: 14px; }
.hint { font-size: 13px; color: var(--text-2); margin: 7px 14px 0; }

.title-input { display: flex; gap: 8px; }
.title-input input {
  flex: 1; min-width: 0; border: 0; outline: 0; border-radius: 12px; padding: 12px 14px; background: var(--card); font-weight: 600;
}
.title-input .btn { flex: none; }

.segmented { display: flex; background: var(--input); border-radius: 11px; padding: 3px; gap: 2px; }
.segmented button { flex: 1; padding: 8px 4px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.segmented button.active { background: var(--card); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.segmented.plat button.active[data-v="switch"] { background: var(--plat-switch); color: #fff; }
.segmented.plat button.active[data-v="switch2"] { background: var(--plat-switch2); color: #fff; }
.segmented.plat button.active[data-v="3ds"] { background: var(--plat-3ds); color: #fff; }

.toggles { display: flex; gap: 10px; }
.toggle {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 8px; border-radius: 12px;
  background: var(--card); color: var(--text-2); font-weight: 600; border: 2px solid transparent;
}
.toggle svg { width: 20px; height: 20px; }
.toggle.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.status-grid button { padding: 9px 4px; border-radius: 10px; background: var(--card); font-size: 13.5px; font-weight: 600; color: var(--text-2); border: 2px solid transparent; }
.status-grid button.on { border-color: currentColor; }

.stars { display: flex; gap: 4px; }
.stars button { color: var(--text-3); padding: 2px; }
.stars button.on { color: #ffcc00; }
.stars svg { width: 28px; height: 28px; }

.cover-edit { display: flex; gap: 14px; align-items: flex-start; }
.cover-edit .cover { width: 110px; flex: none; }
.cover-edit .actions { flex: 1; display: flex; flex-direction: column; gap: 8px; }

.results { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.result { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 12px; padding: 8px; text-align: left; }
.result img, .result .noimg { width: 48px; height: 66px; border-radius: 6px; object-fit: cover; background: var(--card-2); flex: none; }
.result .t { font-weight: 600; }
.result .d { font-size: 13px; color: var(--text-2); }
.loading { display: flex; align-items: center; gap: 10px; color: var(--text-2); padding: 12px 4px; font-size: 14px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--sep); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Detalhe ---------- */
.detail-hero { display: flex; gap: 16px; align-items: flex-start; }
.detail-hero .cover { width: 132px; flex: none; }
.detail-hero .meta { flex: 1; min-width: 0; }
.detail-hero h1 { font-size: 22px; line-height: 1.2; margin: 2px 0 8px; font-weight: 800; }
.detail-hero .line { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.detail-hero .pills { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
.desc { font-size: 15px; line-height: 1.5; color: var(--text); background: var(--card); border-radius: var(--radius); padding: 14px; }
.desc.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.more-link { color: var(--accent); font-size: 14px; font-weight: 600; margin: 6px 14px 0; display: inline-block; }

.hltb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hltb .box { background: var(--card); border-radius: 12px; padding: 10px 8px; text-align: center; }
.hltb .v { font-size: 20px; font-weight: 800; }
.hltb .l { font-size: 11.5px; color: var(--text-2); margin-top: 2px; }
.hltb .box:nth-child(1) .v { color: #3a8ee6; }
.hltb .box:nth-child(2) .v { color: #b04ad8; }
.hltb .box:nth-child(3) .v { color: #e5475b; }

.kv { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.kv .r { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; position: relative; font-size: 15px; }
.kv .r + .r::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; height: 1px; background: var(--sep); transform: scaleY(.5); }
.kv .r span:first-child { color: var(--text-2); flex: none; }
.kv .r span:last-child { text-align: right; }
.kv a { color: var(--accent); text-decoration: none; }

.link-row { text-decoration: none; display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; width: 100%; text-align: left; color: var(--accent); font-weight: 500; position: relative; }
.link-row + .link-row::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; height: 1px; background: var(--sep); transform: scaleY(.5); }
.link-row.danger { color: #ff3b30; }
.link-row .d { color: var(--text-2); font-weight: 400; font-size: 14px; }
.link-row svg { width: 16px; height: 16px; color: var(--text-3); }

/* ---------- Estatísticas ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.tile .v { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.tile .l { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.bars { background: var(--card); border-radius: var(--radius); padding: 6px 14px; box-shadow: var(--shadow); }
.bar { padding: 9px 0; }
.bar .top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 5px; }
.bar .top span:last-child { color: var(--text-2); font-variant-numeric: tabular-nums; }
.bar .track { height: 9px; border-radius: 5px; background: var(--input); overflow: hidden; display: flex; }
.bar .fill { height: 100%; border-radius: 5px; }
.bar .track .fill + .fill { border-radius: 0 5px 5px 0; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); padding: 8px 2px 0; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }

/* ---------- Mais ---------- */
.card-list { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about { font-size: 14px; color: var(--text-2); line-height: 1.5; background: var(--card); border-radius: var(--radius); padding: 14px; }
.about b { color: var(--text); }
textarea.bulk {
  width: 100%; min-height: 220px; border: 0; outline: 0; border-radius: var(--radius); padding: 12px 14px;
  background: var(--card); line-height: 1.45; resize: vertical;
}
.progress { height: 6px; background: var(--input); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.progress div { height: 100%; background: var(--accent); width: 0; transition: width .2s; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 86px); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: rgba(30,30,32,.92); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 500;
  max-width: calc(100% - 40px); text-align: center; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Preços ---------- */
.sale { display: inline-block; background: var(--ok); color: #fff; font-weight: 800; font-size: 11.5px; padding: 1px 5px; border-radius: 5px; }
.sale-badge { position: absolute; left: 5px; top: 10px; background: var(--ok); color: #fff; font-weight: 800; font-size: 12px; padding: 2px 6px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.price-box { background: var(--card); border-radius: var(--radius); padding: 14px; }
.price-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-main .now { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.price-main .now.on-sale { color: var(--ok); }
.price-main .was { color: var(--text-2); text-decoration: line-through; }
.price-main .sale { font-size: 14px; padding: 2px 7px; }
.price-line { font-size: 14px; color: var(--text-2); margin-top: 5px; }
.price-line.small { font-size: 12.5px; color: var(--text-3); }

/* ---------- Login ---------- */
.login { max-width: 420px; margin: 0 auto; padding-top: 36px; text-align: center; }
.login .login-logo { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 14px; box-shadow: 0 6px 20px rgba(230,0,18,.3); }
.login h1 { font-size: 32px; margin: 0; font-weight: 800; }
.login .sub { color: var(--text-2); margin: 6px 12px 0; }
.login .group { text-align: left; }
.login .field label { width: 108px; }
.login .hint { text-align: center; margin: 10px 0; }

.toast.top { top: calc(var(--safe-top) + 10px); bottom: auto; transform: translate(-50%, -20px); font-size: 13px; padding: 7px 14px; }
.toast.top.show { transform: translate(-50%, 0); }


/* ---------- Leitor de código de barras ---------- */
.scanner { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; left: 8%; right: 8%; top: 30%; bottom: 30%; border: 3px solid rgba(255,255,255,.9); border-radius: 12px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.scan-line { position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: scanline 1.6s ease-in-out infinite alternate; }
@keyframes scanline { from { top: 12%; } to { top: 88%; } }

/* ---------- Escolher capa ---------- */
.cover-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.cover-opt { text-align: left; min-width: 0; }
.cover-opt .l { font-size: 11.5px; color: var(--text-2); margin-top: 4px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cover-opt:active .cover { transform: scale(.96); }

/* ---------- Encomendas ---------- */
.late { color: #ff3b30; font-weight: 700; }
.arrived-btn { background: var(--ok); }
.tabbar button { min-width: 0; }
.tabbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
