/* Staffpaneel (/paneel), launcher-koppelen en winkelpagina's: bouwt voort op /cv-theme.css
   (tokens en onderdelen van de CashVille Launcher). */
@import url("/cv-theme.css");

a { color: var(--gold2); text-decoration: none; }
a:hover { color: #fff; }
code, .mono { font-size: 12px; }
.hidden { display: none !important; }
button { font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; border-radius: var(--r-btn); border: 1px solid var(--edge2); background: var(--panel3); color: var(--text); padding: 7px 12px; transition: transform .2s var(--ease), filter .2s, border-color .2s; }
button:hover:not(:disabled) { filter: brightness(1.1); border-color: rgba(255, 255, 255, .16); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.primary { color: var(--on-gold); background: linear-gradient(180deg, var(--gold2), var(--gold)); border-color: transparent; box-shadow: 0 4px 16px rgba(231, 184, 74, .25); }
button.primary:hover:not(:disabled) { transform: translateY(-1px); }
button.ghost { background: transparent; }
button.small { padding: 4px 9px; font-size: 11.5px; }
input, select, textarea { font: inherit; background: var(--panel2); color: var(--text); border: 1px solid var(--edge2); border-radius: var(--r-btn); padding: 6px 10px; min-height: var(--control-h); width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(231, 184, 74, .45); box-shadow: 0 0 0 3px rgba(231, 184, 74, .12); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--gold); }
label { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
label input, label select { margin-top: 4px; }

/* Inloggen */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(900px 500px at 100% -10%, rgba(231, 184, 74, .08), transparent 60%), radial-gradient(700px 500px at -10% 120%, rgba(34, 192, 110, .07), transparent 60%), var(--bg); }
.login-card { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r); padding: 24px; box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 8px 24px rgba(0, 0, 0, .28); }
.brand { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }
.brand strong { font-family: var(--display); font-weight: 400; font-size: 16px; letter-spacing: .01em; }
.brand small { display: block; color: var(--muted); font-size: 11.5px; }
.logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font: 400 14px/1 var(--display); color: var(--on-gold); background: linear-gradient(180deg, var(--gold2), var(--gold)); box-shadow: 0 4px 16px rgba(231, 184, 74, .25); }
.tabs { display: flex; gap: 3px; margin-bottom: 16px; background: var(--panel2); border: 1px solid var(--edge); padding: 3px; border-radius: 9px; }
.tab { flex: 1; border: 0; background: transparent; color: var(--muted); padding: 6px 4px; font-size: 12px; font-weight: 700; border-radius: 6px; }
.tab.active { color: var(--on-gold); background: linear-gradient(180deg, var(--gold2), var(--gold)); }
.auth-form { display: grid; gap: 12px; }
.hint { color: var(--muted); margin: 0; }
.message { min-height: 1.2em; color: var(--red); margin: 12px 0 0; }
.message.ok { color: var(--green2); }

/* Indeling: zijbalk zoals de launcher-rail, met iconen en labels */
.app { display: grid; grid-template-columns: 224px 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, #08100c, #050807); border-right: 1px solid var(--edge); padding: 14px 10px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar nav { display: grid; gap: 3px; }
.sidebar nav a { position: relative; color: var(--muted); padding: 8px 10px; border-radius: 10px; display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 13px; transition: background .2s, color .2s; }
.sidebar nav a svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sidebar nav a .badge { margin-left: auto; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.sidebar nav a.active { color: var(--gold2); background: rgba(231, 184, 74, .12); box-shadow: 0 0 0 1px rgba(231, 184, 74, .22) inset; }
.sidebar nav a.active::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.nav-sep { height: 1px; background: var(--edge); margin: 8px 6px; }
.me { margin-top: auto; display: grid; gap: 6px; border-top: 1px solid var(--edge); padding-top: 12px; }
.role { color: var(--muted); font-size: 11.5px; text-transform: capitalize; }
.badge { background: var(--red); color: #fff; border-radius: var(--r-badge); font-size: 11px; padding: 1px 7px; font-weight: 700; }
main { min-width: 0; background: radial-gradient(900px 500px at 100% -10%, rgba(231, 184, 74, .05), transparent 60%), radial-gradient(700px 500px at -10% 120%, rgba(34, 192, 110, .05), transparent 60%), var(--bg); }
.topbar { display: flex; align-items: center; gap: 10px; padding: 16px 22px 12px; background: rgba(7, 9, 10, .85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--edge); position: sticky; top: 0; z-index: 2; }
.topbar h1 { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: 0; margin: 0; line-height: 1.1; }
.menu-button { display: none; }
.view { padding: 18px 22px 40px; display: grid; gap: 14px; }

/* Onderdelen */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r); padding: 14px 16px; box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 8px 24px rgba(0, 0, 0, .28); }
.card h2 { font-size: 11.5px; margin: 0 0 10px; color: var(--muted); font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.stat { font-size: 24px; font-weight: 750; font-variant-numeric: tabular-nums; }
.stat.bad { color: var(--red); }
.stat small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.filters .actions { display: flex; gap: 8px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--edge); border-radius: var(--r); background: var(--panel); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--edge); vertical-align: top; }
th { color: var(--muted); font-weight: 750; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; background: var(--panel2); position: sticky; top: 0; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: rgba(255, 255, 255, .025); }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.time { white-space: nowrap; color: var(--muted); font-size: 12px; }
.cat { display: inline-block; padding: 1px 8px; border-radius: var(--r-badge); font-size: 11px; font-weight: 700; border: 1px solid currentColor; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 11.5px; }
.pos { color: var(--green2); }
.neg { color: var(--red); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.profile-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.avatar { width: 48px; height: 48px; border-radius: 10px; background: var(--panel3); box-shadow: 0 0 0 1px var(--edge2); display: grid; place-items: center; font: 400 20px/1 var(--display); }
.pill { display: inline-block; padding: 2px 8px; border-radius: var(--r-badge); font-size: 11.5px; font-weight: 700; background: var(--panel2); border: 1px solid var(--edge2); }
.pill.on { color: var(--green2); background: rgba(34, 192, 110, .1); border-color: transparent; }
.pill.warn { color: var(--orange); background: rgba(255, 154, 61, .1); border-color: transparent; }
.pill.bad { color: var(--red); background: rgba(239, 75, 85, .1); border-color: transparent; }
.inventory { display: grid; grid-template-columns: repeat(9, minmax(0, 72px)); gap: 4px; }
.slot { background: var(--panel2); border: 1px solid var(--edge2); border-radius: 6px; aspect-ratio: 1; padding: 4px; font-size: 10.5px; overflow: hidden; position: relative; }
.slot b { position: absolute; right: 4px; bottom: 2px; font-size: 12px; }
.slot a { color: var(--text); word-break: break-all; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { border-left: 2px solid var(--edge2); padding-left: 12px; }
.timeline li.dupe { border-left-color: var(--red); }
.empty { color: var(--muted); padding: 24px; text-align: center; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar input { max-width: 320px; }
.toolbar select { width: auto; max-width: 260px; }
.toolbar label.chips { align-items: center; color: var(--text); }
.big-number { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.error-box { border: 1px solid rgba(239, 75, 85, .35); background: rgba(239, 75, 85, .08); color: #ffb3b5; padding: 12px; border-radius: var(--r); }
details summary { cursor: pointer; color: var(--muted); }
pre.data { white-space: pre-wrap; word-break: break-word; margin: 4px 0 0; color: var(--muted); font-size: 12px; font-family: var(--mono); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 5; width: 240px; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .6); }
  .menu-button { display: inline-block; }
  .split { grid-template-columns: 1fr; }
  .view { padding: 16px; }
  .topbar { padding: 12px 16px; }
  .topbar h1 { font-size: 20px; }
  .inventory { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.split > *, .card, .cards > * { min-width: 0; overflow-wrap: anywhere; }

/* Items: plaatje, naam in het spel, details en verwijderen */
.item-icon { width: 28px; height: 28px; vertical-align: middle; image-rendering: pixelated; border-radius: 6px; background: var(--panel2); border: 1px solid var(--edge2); }
.item-icon.generic { display: inline-grid; place-items: center; font-weight: 700; color: var(--muted); font-size: 13px; }
.item-title .item-icon { width: 40px; height: 40px; }
.item-name { font-weight: 650; }
.item-title .item-name { font-size: 18px; }
.item-cell { color: var(--text); }
table.kv { width: 100%; border-collapse: collapse; }
table.kv th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: none; letter-spacing: 0; background: transparent; padding: 4px 12px 4px 0; vertical-align: top; width: 30%; overflow-wrap: anywhere; border: 0; position: static; }
table.kv td { padding: 4px 0; overflow-wrap: anywhere; border: 0; }
button.danger { background: rgba(239, 75, 85, .08); border-color: rgba(239, 75, 85, .35); color: var(--red); }
button.danger:hover:not(:disabled) { background: rgba(239, 75, 85, .14); }
.danger-box { border-color: rgba(239, 75, 85, .35); }
.danger-box label { margin: 8px 0; }
.button-link { padding: 7px 12px; border: 1px solid var(--edge2); background: var(--panel3); color: var(--text); border-radius: var(--r-btn); font-size: 12px; font-weight: 650; white-space: nowrap; }
.button-link:hover { filter: brightness(1.1); color: var(--text); }
form.inline { display: flex; gap: 6px; }
form.inline input { width: 130px; }

/* Inventory zoals in het spel (bewust Minecraft-stijl) */
.mc-wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.mc-panel { background: #c6c6c6; border: 2px solid #fff; border-right-color: #555; border-bottom-color: #555; border-radius: 4px; padding: 8px; color: #3f3f3f; }
.mc-panel a { color: #1d4f91; }
.mc-label { font-size: 12px; font-weight: 600; margin: 6px 0 3px; color: #3f3f3f; }
.mc-top { display: flex; gap: 14px; align-items: flex-end; }
.mc-armor { display: grid; grid-template-columns: 40px; gap: 2px; }
.mc-grid { display: grid; grid-template-columns: repeat(9, 40px); gap: 2px; }
.mc-grid.hotbar { margin-top: 2px; }
.mc-storages { display: flex; flex-wrap: wrap; gap: 12px; }
.mc-slot { position: relative; width: 40px; height: 40px; padding: 0; border-radius: 0; background: #8b8b8b; border: 2px solid #373737; border-right-color: #fff; border-bottom-color: #fff; display: grid; place-items: center; }
.mc-slot:hover, .mc-slot.selected { background: #a8a8a8; border-color: #373737 #fff #fff #373737; outline: 2px solid var(--gold); filter: none; }
.mc-slot.empty-slot { cursor: default; }
.mc-slot .item-icon { width: 32px; height: 32px; background: transparent; border: 0; border-radius: 0; }
.mc-slot .item-icon.generic { background: #6f6f6f; color: #fff; }
.mc-count { position: absolute; right: 1px; bottom: -1px; color: #fff; font-size: 13px; text-shadow: 2px 2px 0 #3f3f3f; font-family: var(--mono); }
.mc-tip { display: none; position: absolute; left: 44px; top: -6px; z-index: 20; min-width: 190px; max-width: 280px; text-align: left; background: #100010f0; border: 2px solid #2d0a63; border-radius: 4px; padding: 6px 8px; color: #fff; font-size: 12.5px; pointer-events: none; }
.mc-slot:hover .mc-tip { display: block; }
.mc-tip-name { font-weight: 700; }
.mc-tip-cat { color: #5555ff; font-size: 11.5px; }
.mc-tip-line { color: #aaa; }
.mc-tip-meta { margin-top: 4px; font-family: var(--mono); font-size: 11px; color: #8a8a8a; }
.slot-card { margin-top: 12px; }
.ok-box { border-color: rgba(34, 192, 110, .35); }
@media (max-width: 720px) {
  .mc-grid { grid-template-columns: repeat(9, 32px); }
  .mc-slot { width: 32px; height: 32px; }
  .mc-slot .item-icon { width: 24px; height: 24px; }
  .mc-armor { grid-template-columns: 32px; }
  .mc-tip { left: auto; right: 0; top: 36px; }
}

/* Launcher koppelen (/launcher/koppel) */
.koppel-card { max-width: 440px; }
.koppel-who { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--edge2); border-radius: var(--r); background: var(--panel2); }
.koppel-who strong { display: block; }
.koppel-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(180deg, var(--green2), var(--green)); color: #04170c; font: 400 14px/1 var(--display); }
.koppel-title { font-family: var(--display); font-weight: 400; font-size: 20px; margin: 16px 0 8px; }
.koppel-code-row { margin: 14px 0 6px; }
.koppel-code { font-family: var(--mono); font-size: 16px; letter-spacing: 2px; padding: 2px 8px; border-radius: var(--r-badge); color: var(--gold2); background: var(--panel2); border: 1px solid var(--edge2); }
.koppel-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
