:root {
    --panel: rgb(15, 16, 24);
    --card: rgba(255, 255, 255, 0.035);
    --card-hover: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.08);
    --white: #f3f4fa;
    --text: #d7d9e6;
    --muted: #8f93ab;
    --accent: #ff6b66;
    --accent-soft: rgba(255, 107, 102, 0.14);
    --ok: #4ade80;
    --bad: #ff6b66;
    --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: "Manrope", "Segoe UI", sans-serif; }
body { width: 100vw; height: 100vh; overflow: hidden; background: transparent; display: grid; place-items: center; }
.hidden { display: none !important; }

.shop {
    width: min(920px, 92vw); max-height: 82vh;
    display: flex; flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
}

.top {
    display: grid; grid-template-columns: 52px 1fr auto 40px; align-items: center; gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
    background: rgb(32, 20, 26);
}
.badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.badge svg { width: 28px; height: 28px; }
.zone { font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
h1 { font-size: 22px; font-weight: 800; color: var(--white); line-height: 1.2; }
.owner { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.owner b { color: var(--text); }
.wallet { text-align: right; }
.wallet span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.wallet strong { font: 700 18px var(--mono); color: var(--white); }
.close { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.close:hover { color: var(--white); background: var(--card-hover); }
.close svg { width: 18px; height: 18px; }

.grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px;
    padding: 20px 22px 22px; overflow-y: auto;
}
.grid::-webkit-scrollbar { width: 6px; }
.grid::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }

.item {
    display: flex; flex-direction: column; gap: 12px;
    padding: 16px; border-radius: 16px;
    background: var(--card); border: 1px solid var(--line);
    transition: background 0.15s;
}
.item:hover { background: var(--card-hover); }
.item.locked { opacity: 0.72; }
.head { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center; }
.pic { width: 58px; height: 58px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); display: grid; place-items: center; overflow: hidden; }
.pic img { max-width: 48px; max-height: 48px; object-fit: contain; }
.name { font-size: 15.5px; font-weight: 800; color: var(--white); line-height: 1.25; }
.meta { display: flex; gap: 10px; margin-top: 4px; font: 600 12.5px var(--mono); color: var(--muted); }
.meta .price { color: var(--white); }

.mats-title { font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.mats { display: flex; flex-wrap: wrap; gap: 6px; }
.mat {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 9px; border-radius: 999px;
    font-size: 12px; font-weight: 700; color: var(--text);
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
}
.mat .n { font-family: var(--mono); font-size: 11.5px; }
.mat.ok .n { color: var(--ok); }
.mat.bad .n { color: var(--bad); }

.craft {
    margin-top: auto;
    height: 40px; border-radius: 12px; border: 0; cursor: pointer;
    font-size: 13.5px; font-weight: 800; letter-spacing: 0.03em;
    color: #1a0c0c; background: var(--accent);
    transition: background 0.15s;
}
.craft:hover { background: #ff817d; }
.craft:disabled { cursor: not-allowed; color: var(--muted); background: rgba(255, 255, 255, 0.06); }


/* ------------------------------------------------------------------ HUD da zona / zone HUD
   Só fundos sólidos: no FiveM, sombras, filtros e animações com transform ficam com um retângulo preto.
   Solid backgrounds only: in FiveM, shadows, filters and transform animations render a black box. */
.hud {
    position: fixed; left: 0; right: 0; bottom: 3.4vh; margin: 0 auto;
    width: max-content; max-width: 420px;
    display: flex; align-items: center; gap: 10px;
    padding: 8px 14px 8px 11px;
    border-radius: 12px;
    background: rgb(15, 16, 24);
    border: 1px solid rgb(38, 40, 54);
}
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--muted); }
.hud.war .dot { background: var(--accent); }
.hud.war.blink .dot { background: rgb(90, 36, 38); }
.hud-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hud-row { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.hud-zone { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); }
.sep { width: 1px; height: 10px; background: rgb(52, 54, 70); align-self: center; }
.hud-owner-label { font-size: 11px; font-weight: 600; color: var(--muted); }
.hud-owner { font-size: 12.5px; font-weight: 800; color: var(--text); }
.hud.mine .hud-owner::after { content: " ●"; font-size: 8px; vertical-align: 2px; color: var(--ok); }
.hud-status { font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-status.bad { color: var(--accent); }
.hud-status.warn { color: #fbbf24; }
.hud-status.info { color: #93c5fd; }
.hud-track { height: 3px; border-radius: 3px; background: rgb(38, 40, 54); overflow: hidden; }
.hud-fill { height: 100%; width: 0; border-radius: 3px; background: var(--accent); }

/* ------------------------------------------------------------------ aviso do NPC / NPC prompt */
.prompt {
    position: fixed; top: 0; bottom: 0; margin: auto 0; height: max-content;
    display: flex; align-items: center; gap: 10px;
    padding: 8px 14px 8px 8px;
    border-radius: 12px;
    background: rgb(15, 16, 24);
    border: 1px solid rgb(38, 40, 54);
}
.prompt.right-center { right: 2.4vw; }
.prompt.left-center { left: 2.4vw; }
.prompt.center { left: 0; right: 0; margin: auto; width: max-content; top: 12vh; }
.prompt.no-key { padding-left: 14px; }
.key {
    min-width: 28px; height: 28px; padding: 0 8px; border-radius: 8px;
    display: grid; place-items: center;
    font: 800 13px var(--mono); color: #1a0c0c; background: var(--accent);
}
.prompt-text { font-size: 13px; font-weight: 700; color: var(--white); white-space: nowrap; }
