/* Panelul Republic City (2026-11-07): bara sus, meniu pe orizontala, carduri cu antet si cifre cu linie mov in stanga,
   dupa panelul aratat de Stefan, in culorile HUD-ului "Apus mov". Numele claselor au ramas cele vechi (.pl, .row, .tr...). */
:root {
    --bg: #15141D;
    --top: #1B1A26;
    --card: #211F2D;
    --card-h: #2C2A3C;
    --line: rgba(255, 255, 255, 0.08);
    --acc: #8B5CF6;
    --acc-l: #B9A2FB;
    --txt: #FFFFFF;
    --mut: #A7A5B5;
    --good: #34D399;
    --bad: #F87171;
    --gold: #F5C542;
    --f: 'Sora', 'Segoe UI', Arial, sans-serif;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--txt); font: 500 14.5px/1.5 var(--f); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--acc-l); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--mut); }
.right { margin-left: auto; }
small { font-size: 0.82em; }
.ic { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl { position: relative; display: inline-flex; align-items: center; gap: 8px; }

/* ---- bara de sus ---- */
.top { display: flex; align-items: center; gap: 14px; padding: 12px 28px; background: var(--top); }
.brand { font-weight: 800; font-size: 18px; letter-spacing: 0.04em; margin-right: auto; white-space: nowrap; }
.brand b { color: var(--acc-l); font-weight: 800; }
.topsearch { display: flex; align-items: center; width: min(300px, 40vw); background: var(--card-h); border-radius: 6px; }
.topsearch input { flex: 1; min-width: 0; padding: 8px 12px; background: none; border: 0; color: var(--txt); font: 500 13.5px var(--f); }
.topsearch input::placeholder { color: var(--mut); }
.topsearch button { display: grid; place-items: center; width: 38px; height: 36px; background: none; border: 0; color: var(--mut); cursor: pointer; }
.topsearch button:hover { color: var(--txt); }
.who { font-weight: 700; white-space: nowrap; }
.who small { color: var(--acc-l); font-weight: 600; margin-left: 4px; }
.logout { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; background: var(--card-h); color: var(--mut); }
.logout:hover { color: var(--txt); background: rgba(248, 113, 113, 0.3); }

/* ---- meniul ---- */
.menu { display: flex; flex-wrap: wrap; gap: 2px 4px; padding: 8px 20px; background: var(--top); border-top: 1px solid var(--line); }
.menu a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 6px; font-weight: 600; color: var(--mut); white-space: nowrap; }
.menu a:hover { color: var(--txt); background: var(--card); }
.menu a.on { color: var(--txt); background: var(--card-h); }
.menu a.on .ic { color: var(--acc-l); }
.staffmenu { background: #181722; padding-block: 6px; }
.menutitle { align-self: center; padding: 0 12px 0 8px; font-size: 12px; font-weight: 700; color: var(--acc-l); }

/* ---- continut ---- */
.main { max-width: 1480px; margin: 0 auto; padding: 16px 28px 48px; display: grid; gap: 20px; align-content: start; }
.crumbs { justify-self: end; font-size: 13px; font-weight: 600; color: var(--mut); }
.crumbs i { font-style: normal; opacity: 0.5; margin: 0 4px; }
.crumbs a { color: var(--acc-l); }
.crumbs a:hover { text-decoration: underline; }
.crumbs b { color: var(--acc-l); font-weight: 600; }

.hello { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hello.gap { margin-top: 6px; }
.hello .name { font-size: 24px; font-weight: 800; padding: 0; margin-right: 6px; }
.plat { padding: 4px 12px; border-radius: 6px; font-size: 13px; font-weight: 700; background: var(--acc); }
.tag { padding: 3px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 700; background: var(--card-h); white-space: nowrap; }
.tag.hot { background: var(--bad); color: #24060A; }
.tab { padding: 7px 14px; border-radius: 6px; font-size: 13.5px; font-weight: 600; color: var(--mut); background: var(--card); }
.tab:hover { color: var(--txt); }
.tab.on { color: var(--txt); background: var(--acc); }
.flash { display: flex; padding: 11px 16px; border-radius: 8px; font-weight: 600; }
.flash.ok { background: rgba(52, 211, 153, 0.16); color: #A7F3D0; }
.flash.bad { background: rgba(248, 113, 113, 0.16); color: #FECACA; }
.box { display: flex; padding: 13px 16px; border-radius: 8px; background: var(--card); }
.box.bad { background: rgba(248, 113, 113, 0.16); color: #FECACA; font-weight: 600; }

/* ---- cifre: valoarea sus, eticheta jos, linie mov in stanga ---- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats.one { grid-template-columns: minmax(0, 1fr); }
.stat { flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 20px; min-width: 0; border-radius: 8px; background: var(--card); border-left: 3px solid var(--acc); }
.stat small { color: var(--mut); font-size: 12.5px; font-weight: 600; }
.stat b { order: -1; font-size: 25px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.segs { display: flex; gap: 2px; height: 6px; width: 100%; }
.segs i { flex: 1; border-radius: 2px; background: rgba(255, 255, 255, 0.1); }
.segs i.on { background: var(--acc); }
.stat .segs { order: 2; margin-top: 6px; }

/* ---- carduri: antetul e h4, urmat de lista ---- */
h4 { margin: 0; padding: 13px 18px; border-radius: 8px 8px 0 0; background: var(--card-h); font-size: 14.5px; font-weight: 700; }
h4 small { font-weight: 600; font-size: 12.5px; color: var(--mut); margin-left: 6px; }
h4.gap { margin-top: 18px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid-side { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.grid-side > * { min-width: 0; }
.stack { display: grid; gap: 14px; }
.rows, .logs, .tablecard { border-radius: 8px; background: var(--card); overflow: hidden; }
h4 + .rows, h4 + .logs, h4 + .tablecard { border-radius: 0 0 8px 8px; }
.row, .job, .tr, .rank { display: grid; gap: 14px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.rows > :last-child, .logs > :last-child { border-bottom: 0; }
.row { grid-template-columns: minmax(0, 1fr) auto; }
.row small, .job small, .tr small { display: block; color: var(--mut); font-weight: 500; font-size: 12.5px; }
.row.four, .row.h { grid-template-columns: minmax(0, 1.4fr) 110px minmax(0, 1fr) auto; }
.row.h, .tr.h { font-size: 12.5px; font-weight: 700; color: var(--txt); text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 2px solid var(--line); }
.job { grid-template-columns: 150px minmax(0, 1fr) 100px; }
.job.wide { grid-template-columns: 220px minmax(0, 1fr) 120px; }
.job .r { text-align: right; color: var(--mut); font-size: 13.5px; }
.tr { grid-template-columns: 64px minmax(0, 1.4fr) 70px minmax(0, 1fr) minmax(0, 1fr) 90px; }
.tr.bans { grid-template-columns: 64px minmax(0, 2fr) minmax(0, 1fr) 110px minmax(0, 1fr) 90px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); display: inline-block; margin-right: 6px; }
.acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

/* butoane si campuri */
.act { justify-content: center; padding: 7px 14px; border: 0; border-radius: 6px; background: var(--acc); color: #FFF; font: 700 13px var(--f); cursor: pointer; white-space: nowrap; }
.act:hover { background: #7C4DEB; }
.act.g { background: var(--card-h); }
.act.g:hover { background: #3A3750; }
.act.w { background: var(--bad); color: #24060A; }
.act.w:hover { background: #FB8E8E; }
.act.big { padding: 12px 28px; font-size: 15px; justify-self: start; }
.aform { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.aform input, .aform select, .field input, .filters input, .filters select {
    padding: 8px 11px; min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--txt); font: 500 13.5px var(--f); }
.aform input { width: 170px; }
.aform input.short { width: 80px; }
.aform input:focus, .aform select:focus, .field input:focus, .filters input:focus, .filters select:focus { outline: none; border-color: var(--acc); }
.search { width: min(380px, 100%); background: var(--card); border-radius: 6px; }
.search input { width: 100%; padding: 9px 13px; background: transparent; border: 0; color: var(--txt); font: 500 13.5px var(--f); }
.search input:focus { outline: 2px solid var(--acc); outline-offset: -2px; border-radius: 6px; }

/* jurnale */
.logs { display: grid; font-size: 13.5px; }
.log { display: grid; grid-template-columns: 136px 104px minmax(0, 1fr); gap: 10px; padding: 9px 18px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.log .t { white-space: nowrap; }
.log .k { font-size: 12px; font-weight: 700; color: var(--acc-l); }
.log .t { color: var(--mut); font-variant-numeric: tabular-nums; }
.log small { color: var(--mut); }

/* (2026-11-07) Track: filtre, randurile din jurnal dupa tip, sume */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 14px 18px; border-radius: 8px; background: var(--card); }
.filters label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--mut); }
.filters label.grow { flex: 1 1 240px; }
.filters label.grow input { width: 100%; }
.log.c-chat .k { color: #7DD3FC; }
.log.c-sms .k { color: #F9A8D4; }
.log.c-money .k { color: var(--good); }
.log.c-item .k { color: var(--gold); }
.log.c-action .k { color: #FCA5A5; }
.log.c-trade .k { color: #FDBA74; }
.plus { color: var(--good); font-weight: 700; }
.minus { color: var(--bad); font-weight: 700; }
mark { background: rgba(245, 197, 66, 0.3); color: #FDE68A; border-radius: 3px; padding: 0 2px; }
.more { display: flex; justify-content: center; padding: 12px; }
.src { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.src span:first-child { min-width: 0; overflow-wrap: anywhere; }
.alert-row { display: grid; grid-template-columns: 112px minmax(120px, 190px) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.alert-row > :nth-child(2) { font-weight: 700; color: var(--acc-l); overflow-wrap: anywhere; }
.alert-row:hover > :nth-child(2) { text-decoration: underline; }
.count { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; margin-left: 8px; border-radius: 11px; background: var(--bad); color: #24060A; font-size: 12px; font-weight: 800; }
.count.zero { background: var(--card); color: var(--mut); }
.note { color: var(--mut); font-size: 13px; }

/* tabel lat (Factions) */
.ftable { width: 100%; border-collapse: collapse; }
.ftable th { padding: 13px 14px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 2px solid var(--line); }
.ftable td { padding: 13px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.ftable tr:last-child td { border-bottom: 0; }
.ftable .fname { font-weight: 700; }
.ftable small { display: block; color: var(--mut); font-size: 12.5px; }
.ftable a { color: var(--acc-l); font-weight: 600; }
.ftable a.act { color: #FFF; }
.ftable a.act.closed { color: #FECACA; }
.scroll { overflow-x: auto; }

/* (2026-11-07) inventarul de pe fisa jucatorului */
.invgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; padding: 14px; }
.invslot { position: relative; display: grid; justify-items: center; gap: 5px; align-content: start; min-width: 0; padding: 10px 8px; border-radius: 8px; background: var(--card-h); text-align: center; }
.invcount { position: absolute; z-index: 1; top: 5px; left: 5px; padding: 0 5px; border-radius: 4px; background: rgba(21, 20, 29, 0.85); font-size: 12px; font-weight: 700; color: var(--gold); }
.invpic { position: relative; display: grid; place-items: center; width: 64px; height: 64px; }
.invpic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--card-h); }
.invletter { font-size: 26px; font-weight: 800; color: var(--acc-l); opacity: 0.55; }
.invname { width: 100%; font-size: 12.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.invdur { width: 80%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.invdur i { display: block; height: 100%; background: var(--good); }
.invslot small { font-size: 11px; overflow-wrap: anywhere; }

/* (2026-11-07) aplicatii la factiuni */
.act.good { background: #16A34A; }
.act.good:hover { background: #15803D; }
.act.closed { background: rgba(248, 113, 113, 0.18); color: #FECACA; }
.act.closed:hover { background: rgba(248, 113, 113, 0.3); }
.tag.sale { background: rgba(52, 211, 153, 0.18); color: #A7F3D0; }
.row small.inline { display: inline; }
.row.app { align-items: start; }
.answer { margin-top: 8px; overflow-wrap: anywhere; }
.answer small { display: block; }
.applyform { display: grid; gap: 12px; padding: 16px 18px; border-radius: 0 0 8px 8px; background: var(--card); }
.applyform label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--mut); }
.applyform input, .applyform textarea, .verdictform input, .verdictform select { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--txt); font: 500 13.5px var(--f); }
.applyform textarea { resize: vertical; }
.applyform input:focus, .applyform textarea:focus, .verdictform input:focus, .verdictform select:focus { outline: none; border-color: var(--acc); }
.applyform .act { justify-self: start; }
.rows .applyform { border-radius: 0; }

/* buguri */
.bug h4 { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bugtitle { min-width: 0; overflow-wrap: anywhere; }
.row.block { display: block; }
.row.block small { display: block; margin-top: 6px; }
.bugbody { overflow-wrap: anywhere; }
.verdict { background: rgba(139, 92, 246, 0.1); overflow-wrap: anywhere; }
.verdictform { display: flex !important; flex-wrap: wrap; gap: 8px; align-items: center; }
.verdictform select { width: auto; }
.verdictform input { flex: 1 1 200px; width: auto; }
.st-open { background: var(--card); }
.st-progress { background: rgba(245, 197, 66, 0.2); color: #FDE68A; }
.st-fixed { background: rgba(52, 211, 153, 0.18); color: #A7F3D0; }
.st-rejected { background: rgba(248, 113, 113, 0.18); color: #FECACA; }

/* dealership */
.cargrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.car { display: grid; grid-template-rows: auto 1fr; border-radius: 8px; background: var(--card); overflow: hidden; }
.carpic { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--card-h); color: var(--mut); }
.carpic .ic { width: 40px; height: 40px; opacity: 0.4; }
.carpic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--card-h); }
.carinfo { display: grid; gap: 3px; align-content: start; padding: 11px 14px 13px; }
.carinfo small { color: var(--mut); font-size: 12.5px; }
.carprice { margin-top: 3px; font-size: 16px; font-weight: 800; color: var(--good); }

/* case si harta */
.housegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.house { display: grid; border-radius: 8px; background: var(--card); overflow: hidden; }
.house:hover { outline: 2px solid var(--acc); }
.houseinfo { display: grid; gap: 3px; justify-items: start; padding: 10px 14px 13px; }
.houseinfo small { color: var(--mut); font-size: 12.5px; }
.mapcrop { position: relative; height: 130px; overflow: hidden; background: #1B3A55; }
.mapcrop.big { height: 300px; border-radius: 8px; }
.mapcrop img { position: absolute; max-width: none; width: 2265px; height: 3320px; }
.mapcrop .mapdot { left: 50%; top: 50%; }
.mapfull { position: relative; border-radius: 8px; background: #1B3A55; overflow: hidden; line-height: 0; }
.mapfull img { display: block; width: 100%; height: auto; }
.mapdot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--mut); border: 2px solid #FFF; box-sizing: content-box; }
.mapfull .mapdot { width: 7px; height: 7px; margin: -4px 0 0 -4px; border-width: 1px; }
.mapdot.sale { background: var(--good); }
.mapdot.tower { background: var(--acc); }
.mapcrop .mapdot, .mapfull .mapdot.here { width: 12px; height: 12px; margin: -7px 0 0 -7px; border-width: 2px; background: #EF4444; }
a.mapdot:hover { transform: scale(1.5); z-index: 1; }
.legend { display: inline-block; width: 10px; height: 10px; margin: 0 5px 0 12px; border-radius: 50%; background: var(--mut); }
.legend:first-child { margin-left: 0; }
.legend.sale { background: var(--good); }
.legend.tower { background: var(--acc); }

/* clasamente */
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.rank { grid-template-columns: 30px minmax(0, 1fr) auto; }
.rank .n { font-weight: 800; color: var(--acc-l); }
.rank.me { background: rgba(139, 92, 246, 0.22); }

/* logare */
.solo { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login { display: grid; gap: 12px; width: min(420px, 100%); padding: 28px; border-radius: 10px; background: var(--card); }
.logo.big { font-size: 28px; font-weight: 800; letter-spacing: 0.04em; }
.logo.big b { color: var(--acc-l); font-weight: 800; }
.login p { margin: 0 0 6px; }
.field { display: grid; gap: 4px; }
.field span { font-size: 13px; color: var(--mut); font-weight: 600; }
.field input { width: 100%; padding: 10px 12px; }

/* ecran mic */
@media (max-width: 1100px) {
    .grid-side, .grid2 { grid-template-columns: 1fr; }
    .stats, .stats.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .top { flex-wrap: wrap; padding: 12px 16px; }
    .topsearch { order: 5; width: 100%; }
    .who { display: none; }
    .menu { padding-inline: 8px; }
    .main { padding: 12px 16px 36px; }
    .crumbs { justify-self: start; }
    .tr, .tr.bans, .row.four { grid-template-columns: 1fr 1fr; }
    .tr.h, .row.h { display: none; }
    .job, .job.wide { grid-template-columns: 1fr 90px; }
    .job .segs { grid-column: 1 / -1; order: 3; }
    .log { grid-template-columns: 136px 1fr; }
    .log > :last-child { grid-column: 1 / -1; }
    .alert-row { grid-template-columns: 1fr 1fr; }
    .alert-row > :nth-child(3) { grid-column: 1 / -1; }
}

/* (2026-11-13) Inventar: ce poarta jucatorul, asezat ca in joc (silueta + sloturile hainelor in jur) */
.dollcard { display: flex; justify-content: center; padding: 18px 12px; }
.doll { position: relative; max-width: 100%; }
.dollbody { position: absolute; pointer-events: none; opacity: 0.9; }
.dollslot { position: absolute; width: 70px; height: 70px; display: grid; justify-items: center; align-content: start; padding-top: 4px; border-radius: 6px; border: 1px solid var(--line); background: rgba(33, 31, 45, 0.86); }
.dollslot.on { border-color: rgba(139, 92, 246, 0.55); background: rgba(44, 42, 60, 0.95); }
.dollpic { position: relative; display: grid; place-items: center; width: 46px; height: 46px; }
.dollpic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: rgba(44, 42, 60, 0.95); }
.dollname { position: absolute; left: 2px; right: 2px; bottom: 3px; text-align: center; font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dollslot:not(.on) .dollname { top: 50%; bottom: auto; transform: translateY(-50%); color: var(--mut); }