:root{--bg:#f4f5f7;--surface:#fff;--ink:#14161a;--muted:#5b616e;--soft-ink:#3b414c;--line:#e3e5ea;--field-line:#d5d9e1;--accent:#1f4fd1;--accent-soft:#e8eefc;--accent-soft-ink:#1a3f9e;--danger:#b42318;--shadow:0 1px 3px #14161a12;--display:Manrope, Inter, system-ui, sans-serif;--tabbar:calc(84px + env(safe-area-inset-bottom,0px))}*{box-sizing:border-box}html,body{background:var(--bg);margin:0}body{color:var(--ink);-webkit-tap-highlight-color:transparent;font:16px/1.4 Inter,system-ui,sans-serif}button,input,select{font:inherit;color:inherit}button{cursor:pointer}h1,h2{font-family:var(--display);margin:0}:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.screen{flex-direction:column;min-height:100dvh;display:flex}.topbar{justify-content:space-between;align-items:center;gap:8px;padding:20px 20px 8px;display:flex}.topbar h1{letter-spacing:-.5px;font-size:30px;font-weight:800}.subbar{align-items:center;gap:8px;padding:16px 12px 8px;display:flex}.subbar h1{font-size:22px;font-weight:800}.content{padding:8px 20px calc(var(--tabbar) + 96px);flex-direction:column;flex:1;gap:10px;display:flex}.icon-btn{background:var(--surface);width:44px;height:44px;box-shadow:var(--shadow);border:none;border-radius:22px;flex:none;justify-content:center;align-items:center;display:inline-flex}.section-label{color:var(--muted);text-transform:uppercase;letter-spacing:.6px;margin:6px 0 0;font-size:13px;font-weight:600}.empty{text-align:center;color:var(--muted);margin:24px 0}.search{background:var(--surface);height:48px;color:var(--muted);box-shadow:var(--shadow);border-radius:14px;align-items:center;gap:10px;margin-bottom:6px;padding:0 16px;display:flex}.search input{color:var(--ink);background:0 0;border:none;outline:none;flex:1;min-width:0;font-size:16px}.tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.tile{text-align:left;color:#fff;border:none;border-radius:18px;flex-direction:column;justify-content:space-between;align-items:flex-start;min-width:0;height:112px;padding:14px;display:flex;box-shadow:0 2px 6px #14161a1f}.tile .name{font-family:var(--display);text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:17px;font-weight:700;overflow:hidden}.mark{width:40px;height:40px;font-family:var(--display);color:#fff;background:#ffffff38;border-radius:12px;flex:none;justify-content:center;align-items:center;font-size:19px;font-weight:800;display:inline-flex;overflow:hidden}.mark img{object-fit:contain;background:#fff;width:100%;height:100%;padding:4px}.row-card{background:var(--surface);text-align:left;box-shadow:var(--shadow);border:none;border-radius:18px;align-items:center;gap:14px;width:100%;padding:14px;display:flex}.row-card.upcoming{box-shadow:none;background:0 0;border:1.5px dashed #c9cdd6}.row-card.dim{opacity:.6}.row-card .text{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.row-card .name{font-family:var(--display);text-overflow:ellipsis;white-space:nowrap;font-size:16px;font-weight:700;overflow:hidden}.row-card .sub{color:var(--muted);font-size:13px}.logo{object-fit:contain;color:#fff;font-family:var(--display);background:#fff;border-radius:12px;flex:none;justify-content:center;align-items:center;font-weight:800;display:inline-flex}.chip{white-space:nowrap;border-radius:999px;flex:none;padding:6px 10px;font-size:12px;font-weight:600}.chip.soon{color:#8a3c00;background:#fff1e0}.chip.ok{color:#1e5e40;background:#e7f5ee}.chip.upcoming{background:var(--accent-soft);color:var(--accent-soft-ink)}.chip.expired{color:var(--soft-ink);background:#eceef2}.link-btn{height:44px;color:var(--accent);background:0 0;border:none;justify-content:center;align-items:center;gap:6px;font-size:14px;font-weight:600;display:inline-flex}.fab{right:20px;bottom:calc(var(--tabbar) + 20px);background:var(--accent);color:#fff;border:none;border-radius:30px;justify-content:center;align-items:center;width:60px;height:60px;display:flex;position:fixed;box-shadow:0 8px 20px #1f4fd159}.tabbar{height:var(--tabbar);padding:8px 12px calc(20px + env(safe-area-inset-bottom,0px));background:var(--surface);border-top:1px solid var(--line);grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;display:grid;position:fixed;bottom:0;left:0;right:0}.tab{color:var(--muted);background:0 0;border:none;flex-direction:column;justify-content:center;align-items:center;gap:4px;font-size:12px;font-weight:500;display:flex}.tab.on{color:var(--accent);font-weight:600}.detail{color:#fff;flex-direction:column;min-height:100dvh;display:flex}.detail .subbar{justify-content:space-between}.glass{color:#fff;background:#ffffff29;border:none;border-radius:22px;justify-content:center;align-items:center;width:44px;height:44px;display:inline-flex}.store{align-items:center;gap:14px;padding:8px 24px 24px;display:flex}.store .mark{border-radius:16px;width:56px;height:56px;font-size:26px}.store h1{font-size:26px;font-weight:800}.store .sub{opacity:.85;font-size:14px}.sheet{background:var(--bg);color:var(--ink);border-radius:28px 28px 0 0;flex-direction:column;flex:1;gap:16px;padding:24px 20px 28px;display:flex}.code-card{background:#fff;border-radius:22px;flex-direction:column;align-items:center;gap:12px;padding:24px 16px 18px;display:flex;box-shadow:0 6px 24px #14161a1a}.code{width:100%}.code svg{width:100%;height:auto;max-height:42vh;display:block}.codetext{letter-spacing:2px;text-align:center;word-break:break-all;margin:0;font-family:JetBrains Mono,ui-monospace,monospace;font-size:18px}.format-label{color:var(--muted);font-size:12px}.status{align-self:center}.tip{color:#6b4300;background:#fff7e6;border-radius:16px;align-items:center;gap:12px;padding:14px 16px;font-size:14px;line-height:1.35;display:flex}.actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:auto;display:grid}.action{background:var(--surface);border:none;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;gap:4px;height:64px;font-size:13px;font-weight:500;display:flex}.action.danger{color:var(--danger)}.form{padding:8px 20px calc(96px + env(safe-area-inset-bottom,0px));flex-direction:column;flex:1;gap:14px;display:flex}.segmented{background:#e6e8ee;border-radius:14px;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;display:grid}.segmented button{height:40px;color:var(--soft-ink);background:0 0;border:none;border-radius:10px;font-size:14px;font-weight:500}.segmented button[aria-pressed=true]{color:var(--ink);background:#fff;font-weight:600;box-shadow:0 1px 3px #14161a1f}.banner{background:var(--accent-soft);color:#1a2f66;border-radius:16px;margin:0;padding:12px 14px;font-size:14px;line-height:1.35}.banner.busy{padding-bottom:16px;position:relative;overflow:hidden}.banner.busy:after{content:"";background:var(--accent);border-radius:3px;width:40%;height:3px;animation:1.4s ease-in-out infinite slide;position:absolute;bottom:0;left:0}.banner .slow{opacity:0;margin-top:4px;font-size:12px;animation:.4s 8s forwards fade-in;display:block}@keyframes slide{0%{left:-40%}to{left:100%}}@keyframes fade-in{to{opacity:.8}}@media (prefers-reduced-motion:reduce){.banner.busy:after{opacity:.4;width:100%;animation:none}}.field{flex-direction:column;gap:6px;min-width:0;display:flex}.field-label{color:var(--soft-ink);justify-content:space-between;align-items:center;gap:8px;font-size:13px;font-weight:600;display:flex}.badge{background:var(--accent-soft);color:var(--accent-soft-ink);border-radius:999px;padding:3px 8px;font-size:11px;font-weight:600}.input{border:1.5px solid var(--field-line);background:#fff;border-radius:14px;width:100%;min-width:0;height:52px;padding:0 14px;font-size:16px}.input.waiting{background:linear-gradient(90deg, #fff 30%, var(--accent-soft) 50%, #fff 70%) 0 0 / 300% 100%;animation:1.6s linear infinite shimmer}.spinner{border:2.5px solid var(--accent-soft);border-top-color:var(--accent);border-radius:50%;width:18px;height:18px;animation:.8s linear infinite spin}@keyframes shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.input.waiting,.spinner{animation:none}}.input.filled{border-color:#9fb6ee}.with-logo{align-items:center;gap:10px;display:flex}.pills{flex-wrap:wrap;gap:6px;display:flex}.pills button{border:1.5px solid var(--field-line);background:#fff;border-radius:999px;height:36px;padding:0 12px;font-size:13px;font-weight:500}.pills button[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-soft-ink);font-weight:600}.two{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.secondary{height:48px;box-shadow:var(--shadow);background:#fff;border:none;border-radius:14px;justify-content:center;align-items:center;gap:8px;font-size:14px;font-weight:500;display:flex}.bottom-bar{padding:12px 20px calc(20px + env(safe-area-inset-bottom,0px));background:linear-gradient(transparent, var(--bg) 30%);position:fixed;bottom:0;left:0;right:0}.primary{background:var(--accent);color:#fff;border:none;border-radius:16px;width:100%;height:56px;font-size:16px;font-weight:600}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.panel{background:var(--surface);box-shadow:var(--shadow);border-radius:18px;flex-direction:column;gap:10px;padding:16px;display:flex}.panel p{color:var(--muted);margin:0;font-size:14px}.panel .row{grid-template-columns:minmax(0,1fr);gap:8px;display:grid}.panel .row.two{grid-template-columns:repeat(2,minmax(0,1fr))}.danger-text{color:var(--danger)}.result{border-radius:14px;outline:none;grid-template-columns:22px minmax(0,1fr);align-items:start;gap:4px 10px;padding:14px;display:grid}.result>div{flex-direction:column;gap:2px;display:flex}.result strong{font-size:15px}.result span{font-size:13px}.result .primary,.result .secondary{grid-column:1/-1;width:100%;height:48px;margin-top:8px}.result .primary+.secondary{margin-top:0}.result.ok{color:#1e5e40;background:#e7f5ee}.result.err{color:var(--danger);background:#fdecea}.dialog-backdrop{z-index:100;background:#14161a73;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.dialog{background:var(--surface);border-radius:20px;flex-direction:column;gap:14px;width:100%;max-width:360px;padding:20px;display:flex;box-shadow:0 8px 32px #14161a40}.dialog p{margin:0;font-size:15px;line-height:1.4}.dialog input{border:1.5px solid var(--field-line);border-radius:12px;height:48px;padding:0 12px;font-size:16px}.dialog .actions{justify-content:flex-end;gap:8px;display:flex}.dialog .secondary{background:var(--bg);box-shadow:none;flex:1}.dialog .secondary.strong{background:var(--accent-soft);color:var(--accent-soft-ink);font-weight:600}.dialog .secondary.strong.danger-text{color:var(--danger)}.scanner{z-index:10;background:#000;flex-direction:column;display:flex;position:fixed;inset:0}.scanner video{object-fit:cover;flex:1;width:100%}.scanner .frame{pointer-events:none;border:3px solid #ffffffe6;border-radius:20px;height:28%;position:absolute;top:28%;left:12%;right:12%;box-shadow:0 0 0 100vmax #00000059}.scanner .hint-text{text-align:center;color:#fff;font-size:15px;position:absolute;top:calc(28% - 48px);left:0;right:0}.scanner .cancel{left:20px;right:20px;bottom:calc(28px + env(safe-area-inset-bottom,0px));height:56px;color:var(--ink);background:#ffffffeb;border:none;border-radius:16px;font-size:16px;font-weight:600;position:absolute}
