/* Store, locks, account tabs, and admin. Uses the app's variables, so day and night both work. */

/* ---------- locks ---------- */
.lock-ico { width: 13px; height: 13px; margin-left: 3px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 2; }
.tabs a.locked { color: var(--ink-3); }
.chip .ico, .lock-chip .ico { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.lock-chip { background: var(--orange-soft); color: var(--orange-text); }
.ch-card.ch-locked { background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 12px, var(--surface-2) 12px, var(--surface-2) 24px); }
.ch-card.ch-locked h3, .ch-card.ch-locked p { color: var(--ink-2); }
.lock-tip { align-items: center; flex-wrap: wrap; }
.lock-tip .unlock-btn { margin-left: auto; }
.unlock-btn .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.locked-page { position: relative; padding: 28px 30px; max-width: 760px; }
.locked-badge { position: absolute; top: 22px; right: 24px; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--sunrise); color: #fff; box-shadow: 0 6px 18px rgba(var(--accent-rgb), .35); }
.locked-badge svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mod-own { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mod-price { font: 800 1.05rem var(--display); color: var(--orange-text); }

/* ---------- store ---------- */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.store-card { position: relative; padding: 18px 20px; display: flex; flex-direction: column; align-items: flex-start; }
.store-card h3 { margin: 10px 0 4px; font-size: 1.2rem; }
.store-card.featured { border-color: var(--orange); box-shadow: var(--glow); }
.store-card.pick { outline: 3px solid var(--orange); outline-offset: 2px; }
.store-card .btn { width: 100%; justify-content: center; margin-top: auto; }
.store-card .chip.good + .btn { margin-top: 10px; }
.store-flag { position: absolute; top: -10px; right: 14px; padding: 3px 10px; border-radius: 99px; background: var(--sunrise); color: #fff; font: 800 .75rem var(--display); letter-spacing: .05em; text-transform: uppercase; }
.store-mods { display: flex; gap: 4px; flex-wrap: wrap; }
.mod-code.sm { min-width: 0; height: 26px; padding: 0 8px; font-size: .85rem; border-radius: 7px; }
.store-price { font: 800 2rem var(--display); line-height: 1.1; margin: 4px 0 4px; }
.store-price span { font: 500 .85rem var(--ui); color: var(--ink-3); }
.store-save { color: var(--good); }
.store-wait { text-align: center; padding: 40px 20px; }
.rp-spin.big { width: 34px; height: 34px; border-width: 3px; display: inline-block; }

/* ---------- account ---------- */
.pii-note { font-size: .9rem; }
.pii-note b { display: block; margin-bottom: 2px; }
.account-card input[type="date"], .account-card input[type="email"], .account-card input[type="password"] { width: 100%; }

/* ---------- admin and shared tables ---------- */
.ad-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.ad-card { padding: 4px 0; overflow-x: auto; }
.ad-detail { position: sticky; top: calc(var(--bar) + 12px); max-height: calc(100vh - var(--bar) - 24px); overflow: auto; }
.ad-detail h4 { margin: 16px 0 6px; font: 800 .95rem var(--display); }
.ad-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ad-table th { text-align: left; padding: 8px 12px; font: 700 .75rem var(--ui); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.ad-table td { padding: 8px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.ad-table tr:last-child td { border-bottom: 0; }
.ad-table.clickable tbody tr { cursor: pointer; }
.ad-table.clickable tbody tr:hover, .ad-table tr.on { background: var(--orange-soft); }
.ad-table .chip { height: 20px; font-size: .72rem; padding: 0 7px; }
.ad-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .9rem; }
.ad-dl dt { color: var(--ink-3); }
.ad-dl dd { margin: 0; }
.ad-grant { margin-top: 10px; gap: 8px; }
.ad-pager { padding: 8px 12px; }
.btn.sm { height: 28px; padding: 0 10px; font-size: .8rem; }
.pii { font-family: ui-monospace, Consolas, monospace; }
@media (max-width: 900px) { .ad-layout { grid-template-columns: 1fr; } .ad-detail { position: static; max-height: none; } }
.ad-grant input, .ad-grant select, .ad-price { height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: 600 .9rem var(--ui); }
.tabs a.locked { display: inline-flex; align-items: center; gap: 2px; }
.tabs a.locked[aria-current="page"] { color: #fff; }
