.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 380px; padding: 28px 22px; text-align: center; }
.login-card form { text-align: left; margin-top: 18px; }
.logo-big { width: 76px; height: 76px; border-radius: 18px; margin: 0 auto 12px; box-shadow: 0 10px 30px rgba(255,138,43,.25); }
.pnpr { font-family: Rockwell, "Roboto Slab", Georgia, serif; letter-spacing: .06em; color: var(--tint); }
body.theme-dark { background: radial-gradient(1200px 500px at 10% -10%, rgba(255,138,43,.10), transparent 60%), var(--bg); background-attachment: fixed; }
body.theme-dark .card, body.theme-dark .group { border: 1px solid rgba(255,255,255,.06); }
body.theme-dark .stat b { color: var(--tint); }
body.theme-dark .tabs-top button.on { background: var(--bg2); color: var(--tint); }
body.theme-dark .filters button.on { background: var(--tint); color: #111; }
body.theme-dark .input { background: #232326; }
body.theme-dark .note-box { background: rgba(10,132,255,.12); }
body.theme-dark .warn-box { background: rgba(255,138,43,.15); }
.clear-card { padding: 16px; margin: 6px 0 4px; border: 1px solid rgba(48,209,88,.35) !important; background: linear-gradient(180deg, rgba(48,209,88,.10), transparent 70%), var(--bg2); scroll-margin-top: 10px; }
.clear-head { font-weight: 700; font-size: 17px; }
.clear-amt { font-size: 32px; font-weight: 800; color: var(--green); margin: 4px 0 10px; }
.clear-qr { margin-bottom: 12px; }
.clear-qr summary { cursor: pointer; font-weight: 600; color: var(--blue); padding: 6px 0; }
.clear-qr select { margin: 8px 0; }
.list .row .btn.sm { flex: none; }
.hero-prev { width: 100%; max-width: 420px; aspect-ratio: 16/6; border-radius: 12px; background: var(--bg3) center/cover; display: grid; place-items: center; color: var(--label2); font-size: 14px; margin-bottom: 8px; }
.err { color: var(--red); min-height: 1.2em; text-align: center; }

.tabs-top { display: flex; gap: 6px; padding-top: 14px; padding-bottom: 4px; overflow-x: auto; }
.tabs-top button { border: 0; background: transparent; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--label2); white-space: nowrap; }
.tabs-top button.on { background: var(--bg2); color: var(--label); box-shadow: var(--shadow); }
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabs-top { display: none; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--bar); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: .5px solid var(--sep); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar button { flex: 1; border: 0; background: transparent; padding: 7px 0 5px; font-size: 10px; font-weight: 500; color: var(--label2); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; }
  .tabbar button i { font-style: normal; font-size: 21px; line-height: 1.2; filter: grayscale(1); opacity: .7; }
  .tabbar button.on { color: var(--blue); }
  .tabbar button.on i { filter: none; opacity: 1; }
  #view { padding-bottom: 90px; }
}
.view-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 12px; }
.view-head h1 { flex: 1; margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { padding: 14px 16px; }
.stat b { display: block; font-size: 24px; }
.stat span { font-size: 13px; color: var(--label2); }
.filters { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; }
.filters button { flex: none; border: 0; background: var(--bg2); border-radius: 16px; padding: 6px 12px; font-size: 14px; cursor: pointer; box-shadow: var(--shadow); white-space: nowrap; }
.filters button.on { background: var(--label); color: var(--bg); }

.list .row { cursor: pointer; }
.list .row .info { flex: 1; min-width: 0; }
.list .row .info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb { width: 52px; height: 52px; border-radius: 10px; background: var(--bg3); display: grid; place-items: center; font-size: 24px; overflow: hidden; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.chev { color: var(--label3); font-size: 20px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }
.lang-tag { font-size: 11px; font-weight: 700; color: var(--label2); background: var(--bg3); border-radius: 5px; padding: 1px 5px; margin-left: 4px; }
.img-pick { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.img-pick .thumb { width: 84px; height: 84px; font-size: 34px; }
.actions { display: flex; gap: 10px; margin-top: 16px; }
.actions .btn { flex: 1; }
.order-items .row { justify-content: space-between; }
.slip-img { max-width: 100%; max-height: 70vh; border-radius: 12px; margin: 0 auto; }
.qr-prev { width: 200px; margin: 8px auto; background: #fff; border-radius: 12px; padding: 6px; }
.promo-line { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.promo-line .two { flex: 1; }
.cat-line { display: grid; grid-template-columns: 56px 1fr 1fr 40px; gap: 8px; margin-bottom: 8px; align-items: center; }
@media (max-width: 480px) { .cat-line { grid-template-columns: 48px 1fr 40px; } .cat-line .en { grid-column: 2; } }
.note-box { background: rgba(0,122,255,.08); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--label); margin-bottom: 12px; }
.warn-box { background: rgba(255,149,0,.14); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 12px 0; }
