/* 🛍️ Shakedown Vendors (update 320): the vendor app's own styles. Big type, big buttons, works in bright sun. */
:root { --bg: #14121b; --card: #1e1a29; --line: #3d3456; --ink: #fff; --mut: #a39cba; --go: #51cf66; --gold: #ffd166; --red: #ff5e5b; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
button, input, select, textarea { font: inherit; }
a { color: var(--gold); }
[hidden] { display: none !important; }

.vh { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top));
      background: rgba(20, 18, 27, .96); border-bottom: 1px solid var(--line); }
.vh-logo { width: 40px; height: 40px; border-radius: 50%; background: #2a2240; }
.vh-t { flex: 1; min-width: 0; } .vh-t b { display: block; font-size: 1.1rem; } .vh-t small { color: var(--mut); font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vh-game { text-decoration: none; background: #2a2240; color: #fff; border-radius: 999px; padding: 8px 12px; font-weight: 800; font-size: .9rem; white-space: nowrap; }

main { max-width: 560px; margin: 0 auto; padding: 14px 16px; }
.v-load { color: var(--mut); text-align: center; padding: 60px 0; }
h2 { font-size: 1.35rem; margin: 6px 0 10px; }
.mut { color: var(--mut); } .small { font-size: .88rem; }
.card { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 12px; }
.card.go { border-color: var(--go); } .card.warn { border-color: var(--gold); }
.lbl { font-size: .8rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); margin: 16px 0 6px; }

.btn { display: block; width: 100%; border: 0; border-radius: 999px; padding: 14px 18px; font-weight: 900; font-size: 1.05rem; text-align: center; text-decoration: none;
       background: var(--go); color: #102012; cursor: pointer; }
.btn.alt { background: #2a2240; color: #fff; } .btn.red { background: var(--red); color: #fff; } .btn.gold { background: var(--gold); color: #2a1d00; }
.btn:disabled { opacity: .5; }
.row { display: flex; gap: 8px; } .row > * { flex: 1; min-width: 0; }
.mt { margin-top: 10px; }
.big-n { font-size: 2.2rem; font-weight: 900; line-height: 1; } .big-n small { font-size: .9rem; color: var(--mut); font-weight: 800; }

.f label { display: block; font-weight: 800; margin: 10px 0 4px; }
.f input, .f select, .f textarea { width: 100%; background: #0f0d15; color: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 12px; font-size: 1rem; }
.f input::placeholder, .f textarea::placeholder { color: #6c6585; }
.f .hint { color: var(--mut); font-size: .82rem; margin-top: 3px; }
.trap { position: absolute; left: -9999px; }

.vtabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: #0f0d15; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.vtabs button { flex: 1; background: none; border: 0; color: var(--mut); font-size: 1.5rem; padding: 8px 0 6px; cursor: pointer; }
.vtabs button span { display: block; font-size: .72rem; font-weight: 800; }
.vtabs button.on { color: #fff; } .vtabs button.on span { color: var(--go); }

/* sell (same register as the game's Create Sale, update 301) */
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 380px) { .cs-grid { grid-template-columns: 1fr 1fr; } }
.cs-t { position: relative; background: #221c30; border: 2px solid var(--line); border-radius: 16px; color: #fff; padding: 8px 6px 10px; text-align: center; min-height: 112px; cursor: pointer; }
.cs-t img { width: 100%; height: 64px; object-fit: cover; border-radius: 10px; margin-bottom: 4px; }
.cs-t span { display: block; font-size: 2rem; line-height: 64px; height: 64px; }
.cs-t b { display: block; font-size: .85rem; line-height: 1.15; } .cs-t small { display: block; color: var(--gold); font-weight: 900; font-size: .85rem; }
.cs-t.on { border-color: var(--go); } .cs-t.out { opacity: .45; } .cs-t.out small { color: #ff8787; }
.cs-q { position: absolute; top: -8px; right: -6px; font-style: normal; background: var(--go); color: #102012; font-weight: 900; border-radius: 999px; min-width: 28px; height: 28px; line-height: 28px; padding: 0 6px; }
.cs-plus { border-style: dashed; }
.cs-pad { margin-top: 10px; border: 2px solid var(--gold); border-radius: 18px; padding: 10px; background: #1c1a24; }
.cs-pad-v { font-size: 2rem; font-weight: 900; text-align: center; margin-bottom: 6px; } .cs-pad-v span { color: #6c6585; }
.cs-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cs-keys button { background: #2a2240; border: 0; color: #fff; font-size: 1.5rem; font-weight: 900; border-radius: 12px; padding: 10px 0; }
.cs-lines { border: 2px solid var(--line); border-radius: 16px; padding: 4px 10px; }
.cs-l { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); } .cs-l:last-child { border-bottom: 0; }
.cs-l button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #6c6585; background: none; color: #fff; font-weight: 900; flex: none; }
.cs-l span { flex: 1; font-weight: 700; } .cs-l b { font-weight: 900; }
.cs-r { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; } .cs-r small { color: var(--mut); }
.cs-bar { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px; border-radius: 18px; background: #0f0d15; border: 2px solid var(--line); z-index: 5; }
.cs-bar.on { border-color: var(--go); }
.cs-bar > div { flex: 1; } .cs-bar > div b { display: block; font-size: 1.4rem; font-weight: 900; line-height: 1; } .cs-bar > div small { color: var(--mut); font-weight: 700; }
.cs-clear { background: none; border: 0; color: var(--mut); font-weight: 800; }
.cs-go { background: var(--go); color: #102012; border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 900; font-size: 1.05rem; }
.cs-go:disabled { background: var(--line); color: #8a849e; }
.cs-pay { position: fixed; inset: 0; z-index: 100; background: #0a0810; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.cs-pay-in { width: 100%; max-width: 420px; text-align: center; }
.cs-pay-t { font-size: 3rem; font-weight: 900; color: var(--go); line-height: 1.1; }
.cs-pay-qr { width: min(78vw, 320px); height: auto; background: #fff; border-radius: 18px; padding: 10px; }
.cs-apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 6px; } .cs-apps span { background: #2a2240; border-radius: 999px; padding: 3px 10px; font-weight: 800; font-size: .85rem; }
.cs-wait { margin-top: 10px; color: var(--gold); font-weight: 700; font-size: .9rem; }
.cs-done { font-size: 4rem; }

/* items */
.it { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.it:last-child { border-bottom: 0; }
.it img, .it .ph { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: #2a2240; flex: none; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.it .tx { flex: 1; min-width: 0; } .it .tx b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .it .tx small { color: var(--mut); font-weight: 700; }
.it.off { opacity: .5; }
.it button { background: #2a2240; border: 0; color: #fff; border-radius: 999px; padding: 8px 12px; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: #2a2240; border: 2px solid var(--line); color: #fff; border-radius: 999px; padding: 8px 12px; font-weight: 800; cursor: pointer; }
.chip.on { border-color: var(--go); background: #183020; }

/* pin + lots */
.lot { display: flex; align-items: center; gap: 10px; padding: 12px; border: 2px solid var(--line); border-radius: 14px; margin-bottom: 8px; background: #1a1724; cursor: pointer; width: 100%; color: #fff; text-align: left; }
.lot.on { border-color: var(--go); } .lot .tx { flex: 1; } .lot .tx b { display: block; } .lot .tx small { color: var(--mut); font-weight: 700; }
.lot .live { color: var(--go); font-weight: 900; font-size: .8rem; } .lot .soon { color: var(--gold); font-weight: 900; font-size: .8rem; }

.share-qr { display: block; margin: 8px auto; width: 220px; height: auto; background: #fff; border-radius: 14px; padding: 8px; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #fff; color: #14121b; font-weight: 900;
         padding: 10px 16px; border-radius: 999px; z-index: 200; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
