
:root {
  --bg: #0b0d12;
  --bg-2: #12151c;
  --text: #e7e9ee;
  --muted: #9aa3b2;
  --gold: #f4c95d;
  --accent: #6ee7ff;
  --error: #ff6b6b;
  --ok: #66f4a3;
  --card: #141821;
  --border: #1f2430;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial;
  color: var(--text); background: radial-gradient(1200px 600px at 20% -10%, #122 0%, var(--bg) 40%) fixed;
}
a { color: var(--text); text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 24px; }
header {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(0deg, rgba(11,13,18,0.6), rgba(11,13,18,0.95));
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 14px 0; }
.brand { display:flex; align-items:center; gap:12px; font-weight: 700; letter-spacing: .5px; }
.logo { width: 40px; height: 40px; display:block; object-fit: contain; border-radius: 8px; }
.tabs { display:flex; gap: 6px; flex-wrap: wrap; }
.tab { padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: #0f141c; transition: .2s; font-weight: 600; color: var(--muted); }
.tab.active { color: var(--text); border-color: #263041; background: #131a25; box-shadow: inset 0 0 0 1px #223045; }
.tab:hover { transform: translateY(-1px); }
.right { display:flex; align-items:center; gap: 10px; }
.btn { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: #111723; font-weight: 700; letter-spacing: .2px; display:inline-flex; align-items:center; justify-content:center; gap:8px; line-height:1; cursor:pointer; text-decoration:none; min-height:40px; }
.btn:focus-visible { outline: 2px solid #2a3a54; outline-offset: 2px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
a.btn, a.btn:visited { color: inherit; text-decoration: none; }
.btn.primary { background: linear-gradient(135deg, #1d2a3c, #162131); border-color: #243248; }
.btn.address { color: var(--accent); background: linear-gradient(135deg, #0e1624, #0b1320); border-color: #2a3a54; box-shadow: inset 0 0 0 1px #2a3a54; }
.btn.gold { background: linear-gradient(135deg, #b48718, var(--gold)); color: #1a1202; border: none; box-shadow: 0 6px 24px rgba(244,201,93,.25); }
.pill { padding: 8px 12px; border-radius: 999px; font-weight: 700; border: 1px solid var(--border); background: #0f141c; color: var(--muted); }

main { padding-top: 10px; }
.grid { display:grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card { grid-column: span 12; background: linear-gradient(180deg, #121721, #0f131b); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
@media (min-width: 720px) { .card.half { grid-column: span 6; } }
.h1 { font-size: 28px; font-weight: 800; letter-spacing: .3px; margin: 4px 0 10px; }
.muted { color: var(--muted); }
.kvs { display:grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 12px; margin-top: 10px; }
.kv { background: var(--card); border:1px solid var(--border); border-radius: 14px; padding: 12px; }
.label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.value { font-size: 14px; font-weight: 700; margin-top: 6px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }

.footer { color: var(--muted); text-align: center; padding: 24px 0 40px; }
.glow-pulse { color: #f4c95d; text-shadow: 0 0 8px rgba(244,201,93,.5), 0 0 18px rgba(110,231,255,.35); animation: glow 3s ease-in-out infinite; font-weight: 800; letter-spacing: .6px; }
@keyframes glow {
  0%,100% { text-shadow: 0 0 6px rgba(244,201,93,.6), 0 0 12px rgba(110,231,255,.25); transform: translateY(0); }
  50% { text-shadow: 0 0 14px rgba(244,201,93,.9), 0 0 28px rgba(110,231,255,.55); transform: translateY(-1px); }
}
.notice { margin-top: 8px; font-size: 12px; color: var(--muted); }
.tag { display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border-radius: 999px; border:1px dashed #334; }
.tag.ok { color: var(--ok); border-color: #1f4; }
.tag.err { color: var(--error); border-color: #f44; }
.hidden { display:none !important; }

/* Shop */
.pgrid { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 340px)); gap: 14px; justify-content: center; }
.prod { background: var(--card); border:1px solid var(--border); border-radius: 14px; padding: 12px; display:flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.prod .thumb { height: 140px; border-radius: 12px; border:1px solid var(--border); background: linear-gradient(135deg, #1a2030, #0f141f); box-shadow: inset 0 0 24px rgba(0,0,0,.3); }
.prod .thumb.img { object-fit: contain; width: 100%; height: 140px; display:block; background:#0f141f; }
.prod .thumb.t-hoodie { background: linear-gradient(135deg, #0d111a, #1c2333); }
.prod .thumb.t-tee { background: linear-gradient(135deg, #1a1f2a, #242b3c); }
.prod .thumb.t-cap { background: linear-gradient(135deg, #151a24, #1f2634); }
.prod .thumb.t-sticker { background: linear-gradient(135deg, #121821, #1b2230); }
.prod .prod-name { font-weight: 800; letter-spacing: .2px; }
.prod .price { font-weight: 700; margin-top: 2px; }

/* Forms */
.fgrid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
input[type=text], input[type=url], input[type=number], textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border:1px solid var(--border); background:#0f141c; color: var(--text); }
label .hint { font-size:12px; color: var(--muted); }
.actions-row { display:flex; gap:10px; flex-wrap: wrap; }

/* Badges & disabled */
.badge { display:inline-block; padding:4px 8px; border-radius:999px; border:1px solid var(--border); font-size:12px; color: var(--muted);} 
.badge.sold { color: var(--error); border-color:#f44; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Invoice splash layout helpers */
.invoice-illus { width:100%; height:auto; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(2px); display:flex; align-items:center; justify-content:center; z-index: 50; }
.modal { width: 96%; max-width: 520px; background: #0f1420; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
#admin-list { width: 100%; border-collapse: collapse; }
#admin-list th, #admin-list td { border-bottom: 1px solid var(--border); padding: 10px; text-align: left; }
#admin-list th { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 12px; }
.modal header { padding: 14px 16px; border-bottom:1px solid var(--border); font-weight: 800; letter-spacing:.3px; }
.modal .content { padding: 16px; }
.modal .actions { padding: 14px 16px; border-top:1px solid var(--border); display:flex; gap:10px; justify-content:flex-end; }

/* Background FX container */
#bgfx { position: fixed; inset: 0; z-index: -1; }

/* Center logo overlay (removed) */
