/* KRAVO RP: panoul web. Aceleasi culori ca in joc (portocaliu pe fundal inchis, Rubik). */

@font-face { font-family: Rubik; font-weight: 400; font-display: swap; src: url(../fonts/rubik-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Rubik; font-weight: 400; font-display: swap; src: url(../fonts/rubik-latin-ext-400.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Rubik; font-weight: 500; font-display: swap; src: url(../fonts/rubik-latin-500.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: Rubik; font-weight: 500; font-display: swap; src: url(../fonts/rubik-latin-ext-500.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: Rubik; font-weight: 600; font-display: swap; src: url(../fonts/rubik-latin-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: Rubik; font-weight: 600; font-display: swap; src: url(../fonts/rubik-latin-ext-600.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: Rubik; font-weight: 700; font-display: swap; src: url(../fonts/rubik-latin-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: Rubik; font-weight: 700; font-display: swap; src: url(../fonts/rubik-latin-ext-700.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: Rubik; font-weight: 800; font-display: swap; src: url(../fonts/rubik-latin-800.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: Rubik; font-weight: 800; font-display: swap; src: url(../fonts/rubik-latin-ext-800.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF; }

:root {
    --bg: #090b10;
    --bg-2: #0d1017;
    --surface: #11141c;
    --surface-2: #161a24;
    --surface-3: #1c2130;
    --line: rgba(255, 255, 255, .06);
    --line-2: rgba(255, 255, 255, .1);
    --text: #f3f4f7;
    --text-2: #a9b0c2;
    --text-3: #6c7489;
    --accent: #ffb020;
    --accent-2: #ff8a00;
    --accent-soft: rgba(255, 176, 32, .12);
    --glow: rgba(255, 150, 20, .28);
    --ok: #34d17a;
    --bad: #ff5468;
    --warn: #ffcc4d;
    --blue: #6f9bff;
    --radius: 18px;
    --side: 264px;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
    font: 15px/1.5 Rubik, system-ui, -apple-system, 'Segoe UI', sans-serif;
    background-image: radial-gradient(900px 500px at 85% -10%, rgba(255, 138, 0, .07), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(80, 110, 255, .05), transparent 60%);
    background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0; }
b { font-weight: 600; }
.muted { color: var(--text-2); }
.small { font-size: 12.5px; }
.mono { font-variant-numeric: tabular-nums; }
.grow { flex: 1; min-width: 0; }
.right { text-align: right; }
.row { display: flex; align-items: center; flex-wrap: wrap; }
.row.gap { gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ic { width: 20px; height: 20px; flex: none; }
.ic.big { width: 44px; height: 44px; opacity: .5; }
::selection { background: var(--accent); color: #1a1204; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #262b38; border-radius: 10px; border: 2px solid var(--bg); }

/* ------------------------------------------------------------ Meniul din stanga */
.side {
    position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 50; display: flex; flex-direction: column;
    background: linear-gradient(180deg, #0c0f15, #0a0c11); border-right: 1px solid var(--line); padding: 20px 14px; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 18px; font-size: 21px; letter-spacing: .5px; }
.brand img { border-radius: 11px; box-shadow: 0 0 24px var(--glow); }
.brand b { font-weight: 800; }
.brand span { color: var(--text); font-weight: 400; }
.side-status {
    display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; padding: 12px 14px; margin: 0 4px 14px;
    border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.side-status .dot { grid-row: span 2; }
.side-status.on { border-color: rgba(52, 209, 122, .25); background: linear-gradient(135deg, rgba(52, 209, 122, .08), transparent); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); display: inline-block; flex: none; }
.on .dot, .tag.ok .dot { background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 209, 122, .6); animation: pulse 2s infinite; }
.off .dot { background: var(--bad); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 209, 122, .55); } 70% { box-shadow: 0 0 0 8px rgba(52, 209, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 209, 122, 0); } }
.nav-group { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); padding: 16px 12px 6px; }
.side nav a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text-2); font-weight: 500;
    transition: background .15s, color .15s; position: relative;
}
.side nav a:hover { background: var(--surface); color: var(--text); }
.side nav a.active { background: linear-gradient(90deg, var(--accent-soft), rgba(255, 176, 32, .03)); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 176, 32, .18); }
.side nav a.active .ic { color: var(--accent); }
.side nav a.active::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.pill { margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: rgba(52, 209, 122, .14); color: var(--ok); }
.side-foot { margin-top: auto; padding: 18px 8px 0; display: grid; gap: 12px; text-align: center; }
.scrim { display: none; }

/* ------------------------------------------------------------ Bara de sus */
.main { margin-left: var(--side); min-width: 0; }
.top {
    position: sticky; top: 0; z-index: 40; height: 68px; display: flex; align-items: center; gap: 16px; padding: 0 32px;
    background: rgba(9, 11, 16, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.crumb { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search { position: relative; margin-left: auto; width: min(340px, 40vw); }
.search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 18px; height: 18px; pointer-events: none; }
.search input {
    width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface);
    color: var(--text); font: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: rgba(255, 176, 32, .5); box-shadow: 0 0 0 4px rgba(255, 176, 32, .1); }
.search.big { width: min(380px, 100%); margin-left: 0; }
.search.big input { height: 48px; }
.content { padding: 28px 32px 60px; max-width: 1480px; display: grid; gap: 22px; }

/* ------------------------------------------------------------ Butoane, etichete */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px;
    font: inherit; font-weight: 600; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); cursor: pointer; white-space: nowrap;
    transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { background: var(--surface-3); }
.btn .ic { width: 18px; height: 18px; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1a1204; border: 0; box-shadow: 0 8px 24px -8px var(--glow); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px var(--glow); }
.btn.ghost { background: transparent; }
.btn.glass { background: rgba(10, 12, 18, .55); backdrop-filter: blur(10px); border-color: rgba(255, 255, 255, .14); }
.btn.wide { width: 100%; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; }
.tag {
    display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; padding: 3px 9px; border-radius: 99px;
    background: rgba(255, 255, 255, .06); color: var(--text-2); white-space: nowrap; vertical-align: middle;
}
.tag.ok { background: rgba(52, 209, 122, .13); color: var(--ok); }
.tag.bad { background: rgba(255, 84, 104, .13); color: var(--bad); }
.tag.gold { background: var(--accent-soft); color: var(--accent); }
.tag.blue { background: rgba(111, 155, 255, .13); color: var(--blue); }
.tag.staff { background: rgba(199, 146, 255, .13); color: #c792ff; margin-left: 6px; }
.badge {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 8px;
    color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
}
.badge.big { padding: 7px 12px; font-size: 13.5px; }
.lvl { display: inline-block; font-weight: 700; font-size: 12.5px; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 8px; white-space: nowrap; }
.lvl.big { font-size: 14px; padding: 6px 12px; }
.price { font-weight: 700; color: var(--ok); white-space: nowrap; }
.price.big { font-size: 24px; }
.link { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: 13px; font-weight: 600; }
.link .ic { width: 16px; height: 16px; }
.eyebrow { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--text-2); display: flex; align-items: center; gap: 10px; }
.bar { display: block; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; margin: 6px 0 2px; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }

/* ------------------------------------------------------------ Avatar */
.avatar {
    --s: 40px; width: var(--s); height: var(--s); border-radius: 12px; flex: none; display: inline-grid; place-items: center;
    font-weight: 700; font-size: calc(var(--s) * .38); color: #fff; letter-spacing: .02em;
    background: linear-gradient(135deg, hsl(var(--h) 55% 45%), hsl(calc(var(--h) + 40) 60% 30%));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.avatar.xs { --s: 24px; border-radius: 7px; }
.avatar.sm { --s: 34px; border-radius: 10px; }
.avatar.lg { --s: 64px; border-radius: 18px; }
.avatar.xl { --s: 96px; border-radius: 26px; box-shadow: 0 12px 40px -10px hsl(var(--h) 60% 40% / .6), inset 0 0 0 1px rgba(255, 255, 255, .15); }

/* ------------------------------------------------------------ Carduri */
.card {
    background: linear-gradient(180deg, var(--surface), #0f1219); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 20px 40px -30px rgba(0, 0, 0, .8);
}
.card.flush { padding: 0; overflow: hidden; }
.card .pad { padding: 22px 22px 0; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head p { margin-top: 3px; }
.empty { color: var(--text-2); text-align: center; padding: 22px 10px; }
.empty.big { padding: 60px 20px; display: grid; gap: 14px; justify-items: center; }
.empty-num { font-size: 80px; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.warn-card { border-color: rgba(255, 84, 104, .2); background: linear-gradient(180deg, rgba(255, 84, 104, .06), var(--surface) 70%); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.page-head p { margin-top: 6px; max-width: 640px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.col-main, .col-side { display: grid; gap: 22px; min-width: 0; }

/* ------------------------------------------------------------ Hero (acasa) */
.hero {
    position: relative; min-height: 330px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2);
    background: #0b0e14; isolation: isolate;
}
.hero-map { position: absolute; inset: 0; z-index: 0; background: #0b0e14; }
.hero-map .leaflet-container { background: #0b0e14; }
.hero-fade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(9, 11, 16, .97) 0%, rgba(9, 11, 16, .86) 38%, rgba(9, 11, 16, .25) 75%, rgba(9, 11, 16, .45) 100%), linear-gradient(0deg, rgba(9, 11, 16, .7), transparent 50%); }
.hero-body { position: relative; z-index: 2; padding: 32px 34px; display: grid; gap: 10px; pointer-events: none; max-width: 100%; }
.hero-body * { pointer-events: auto; }
.live-tag { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--text-2); }
.live-tag.on { color: var(--ok); }
.hero-count { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.hero-count b { font-size: clamp(64px, 9vw, 104px); font-weight: 800; line-height: 1; letter-spacing: -.04em; background: linear-gradient(180deg, #fff, #c9ceda); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-count span { font-size: 20px; color: var(--text-2); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(17, 20, 28, .72);
    border: 1px solid rgba(255, 255, 255, .09); backdrop-filter: blur(8px);
}
.chip .ic { color: var(--accent); }
.chip b { display: block; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
.chip span { font-size: 12px; color: var(--text-2); }
.hero-btn { position: absolute; right: 20px; top: 20px; z-index: 3; }

/* ------------------------------------------------------------ Starea serverului */
.status {
    display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--line);
    background: var(--surface); flex-wrap: wrap;
}
.status.on { border-color: rgba(52, 209, 122, .22); background: linear-gradient(90deg, rgba(52, 209, 122, .09), var(--surface) 55%); }
.status.off { border-color: rgba(255, 84, 104, .22); background: linear-gradient(90deg, rgba(255, 84, 104, .09), var(--surface) 55%); }
.status-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(52, 209, 122, .14); color: var(--ok); }
.off .status-ic { background: rgba(255, 84, 104, .14); color: var(--bad); }
.status-text { flex: 1; min-width: 220px; display: grid; gap: 4px; }
.status-boxes, .minis { display: flex; gap: 10px; flex-wrap: wrap; }
.mini { padding: 10px 16px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); min-width: 110px; }
.mini span { display: block; font-size: 12px; color: var(--text-2); }
.mini b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ Statistici */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat {
    position: relative; overflow: hidden; display: grid; gap: 6px; align-content: start; padding: 20px 22px; border-radius: var(--radius);
    border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), #0f1219); min-height: 150px;
}
.stat-top { display: flex; justify-content: space-between; align-items: center; color: var(--text-2); font-size: 14px; }
.stat-ic { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.stat > b { font-size: 38px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat > b.md { font-size: 24px; }
.stat.gold > b { color: var(--accent); }
.spark { width: 100%; height: 46px; display: block; }

/* ------------------------------------------------------------ Grafic */
.chart { position: relative; height: 240px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .gl { stroke: rgba(255, 255, 255, .05); }
.chart text { fill: var(--text-3); font-size: 11px; font-family: inherit; }
.chart-tip { position: absolute; pointer-events: none; padding: 7px 11px; border-radius: 10px; background: #1d2230; border: 1px solid var(--line-2); font-size: 12.5px; white-space: nowrap; transform: translate(-50%, -120%); opacity: 0; transition: opacity .1s; }
.chart-tip b { color: var(--accent); }

/* ------------------------------------------------------------ Liste */
.events { list-style: none; margin: 0; padding: 0; display: grid; }
.event { display: flex; gap: 14px; padding: 13px 4px; border-top: 1px solid var(--line); align-items: flex-start; }
.event:first-child { border-top: 0; }
.event a b { color: var(--accent); }
.ev-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: var(--text-2); flex: none; }
.ev-ic .ic { width: 18px; height: 18px; }
.k-faction .ev-ic { background: rgba(111, 155, 255, .12); color: var(--blue); }
.k-car .ev-ic { background: var(--accent-soft); color: var(--accent); }
.k-business .ev-ic { background: rgba(52, 209, 122, .12); color: var(--ok); }
.k-level .ev-ic { background: rgba(199, 146, 255, .12); color: #c792ff; }
.list, .flist, .rank, .ranks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.list a, .flist a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; transition: background .15s; }
.list a:hover, .flist a:hover { background: rgba(255, 255, 255, .035); }
.li-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: var(--text-2); flex: none; }
.fdot, .ldot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 12px var(--c); flex: none; }
.rank li { display: flex; align-items: center; gap: 12px; padding: 8px 4px; }
.pos { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: rgba(255, 255, 255, .05); color: var(--text-2); flex: none; }
.pos.p1 { background: linear-gradient(135deg, #ffd25e, #ff9d00); color: #1a1204; }
.pos.p2 { background: linear-gradient(135deg, #e6ebf5, #9aa3b5); color: #14171f; }
.pos.p3 { background: linear-gradient(135deg, #e7a26b, #a75a2a); color: #1a0f06; }
.ranks li { display: flex; align-items: center; gap: 12px; padding: 7px 2px; }
.rankpill { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 8px; font-weight: 700; font-size: 12.5px; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; margin: 0; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ Tabele */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.table td { padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.table th.right, .table td.right { text-align: right; }
.w-id { width: 64px; }
.who { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.who:hover b { color: var(--accent); }
.who.big { display: flex; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); flex-wrap: wrap; }
.tabs.scroll { flex-wrap: nowrap; overflow-x: auto; width: fit-content; max-width: 100%; }
.tabs a { padding: 8px 14px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: 14px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.active { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(255, 176, 32, .2); }

/* ------------------------------------------------------------ Profil */
.profile {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 26px; padding: 30px; border-radius: 24px;
    border: 1px solid var(--line-2); background: var(--surface); flex-wrap: wrap;
}
.profile-bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(600px 260px at 0% 0%, hsl(var(--h) 60% 40% / .28), transparent 70%), radial-gradient(500px 240px at 100% 100%, rgba(255, 138, 0, .1), transparent 70%); }
.profile > * { position: relative; }
.profile-main { flex: 1; min-width: 240px; display: grid; gap: 8px; }
.lvlbar { display: flex; align-items: center; gap: 16px; margin-top: 8px; max-width: 520px; }
.lvlbar .bar { height: 8px; }
.cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.carcard { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.car-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.plate { display: inline-block; font: 600 12px/1 ui-monospace, Consolas, monospace; letter-spacing: .06em; padding: 5px 7px 5px 14px; border-radius: 5px; background: #f1f3f7; color: #11141c; border-left: 8px solid #1f4fbf; white-space: nowrap; }
.fac-mini { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--c) 9%, transparent); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); margin-bottom: 14px; }
.fac-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); flex: none; }
.fac-ic.big { width: 54px; height: 54px; border-radius: 15px; }
.fac-ic.big .ic { width: 26px; height: 26px; }
.fac-ic.xl { width: 76px; height: 76px; border-radius: 22px; box-shadow: 0 10px 40px -10px var(--c); }
.fac-ic.xl .ic { width: 36px; height: 36px; }

/* ------------------------------------------------------------ Factiuni */
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.fcard {
    display: grid; gap: 16px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); position: relative; overflow: hidden;
    background: radial-gradient(400px 160px at 0% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%), var(--surface);
    transition: transform .18s, border-color .18s;
}
.fcard:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.fcard-top { display: flex; align-items: center; gap: 14px; }
.fcard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fcard-stats div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .035); }
.fcard-stats b { font-size: 20px; font-weight: 700; }
.fcard-stats span { font-size: 12px; color: var(--text-2); display: block; }
.fcard-foot { font-size: 13.5px; color: var(--text-2); }
.fcard-foot b { color: var(--text); }
.fhero {
    display: flex; align-items: center; gap: 22px; padding: 28px; border-radius: 24px; border: 1px solid var(--line-2); flex-wrap: wrap;
    background: radial-gradient(700px 240px at 0% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%), var(--surface);
}
.fhero h1 { margin-bottom: 4px; }
.stock { margin-bottom: 12px; }
.stocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 22px; }

/* ------------------------------------------------------------ Afaceri */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.bcard { display: grid; gap: 8px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), #0f1219); transition: transform .18s, border-color .18s; }
.bcard:hover { transform: translateY(-3px); border-color: rgba(255, 176, 32, .3); }
.bcard h3 { margin-top: 6px; }
.bcard-owner { display: flex; align-items: center; gap: 8px; min-height: 28px; margin: 4px 0 6px; font-size: 14px; }
.minimap { height: 260px; background: #0b0e14; }

/* ------------------------------------------------------------ Clasamente */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; max-width: 760px; width: 100%; margin: 0 auto; }
.pod { display: grid; justify-items: center; gap: 8px; padding: 22px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-align: center; position: relative; }
.pod.p1 { padding-top: 34px; border-color: rgba(255, 176, 32, .35); background: radial-gradient(260px 140px at 50% 0%, rgba(255, 176, 32, .18), transparent 70%), var(--surface); }
.pod-pos { position: absolute; top: -14px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--surface-3); border: 1px solid var(--line-2); }
.pod.p1 .pod-pos { background: linear-gradient(135deg, #ffd25e, #ff9d00); color: #1a1204; border: 0; }
.pod.p2 .pod-pos { background: linear-gradient(135deg, #e6ebf5, #9aa3b5); color: #14171f; border: 0; }
.pod.p3 .pod-pos { background: linear-gradient(135deg, #e7a26b, #a75a2a); color: #1a0f06; border: 0; }
.pod b { font-size: 15px; }
.pod-val { font-weight: 700; color: var(--accent); }

/* ------------------------------------------------------------ Staff, actualizari */
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.scard { display: grid; justify-items: center; gap: 8px; padding: 22px 14px; border-radius: 16px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); text-align: center; transition: border-color .15s; }
.scard:hover { border-color: rgba(199, 146, 255, .35); }
.scard .tag.staff { margin: 0; }
.timeline { display: grid; gap: 16px; max-width: 860px; }
.tl-item { border-left: 3px solid var(--line-2); }
.tl-item.latest { border-left-color: var(--accent); }
.tl-date { font-size: 13px; color: var(--text-2); margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.bullets { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); }
.bullets li::marker { color: var(--accent); }

/* ------------------------------------------------------------ Harta */
body.page-map .content { padding: 0; max-width: none; }
.mapwrap { position: relative; height: calc(100vh - 68px); }
#map { position: absolute; inset: 0; background: #0b0e14; }
.leaflet-container { font: inherit; background: #0b0e14; }
.map-panel {
    position: absolute; top: 18px; right: 18px; z-index: 500; width: 270px; padding: 16px; border-radius: 18px; display: grid; gap: 4px;
    background: rgba(13, 16, 23, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px #000;
}
.map-panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.map-panel-head .ic { color: var(--accent); }
.layer { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; cursor: pointer; user-select: none; }
.layer:hover { background: rgba(255, 255, 255, .04); }
.layer input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.map-style { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.map-style button { font: inherit; font-size: 13px; font-weight: 600; padding: 7px; border-radius: 9px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; }
.map-style button.active { background: var(--accent-soft); color: var(--accent); }
.pin {
    width: 26px; height: 26px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center;
    background: var(--c); box-shadow: 0 4px 14px -2px var(--c), 0 0 0 3px rgba(9, 11, 16, .7);
}
.pin i { width: 8px; height: 8px; border-radius: 50%; background: #0b0e14; }
.hero-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent), 0 0 14px var(--c); }
.leaflet-popup-content-wrapper { background: #141823; color: var(--text); border-radius: 14px; border: 1px solid var(--line-2); box-shadow: 0 20px 40px -10px #000; }
.leaflet-popup-tip { background: #141823; }
.leaflet-popup-content { margin: 14px 16px; min-width: 200px; font-size: 13.5px; line-height: 1.45; }
.leaflet-popup-content b { font-size: 15px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-2); }
.pop-stock { margin-top: 8px; display: grid; gap: 2px; }
.pop-stock .bar { margin: 2px 0 4px; }
.pop-link { display: inline-flex; margin-top: 8px; color: var(--accent) !important; font-weight: 600; }
.leaflet-control-zoom a { background: #141823 !important; color: var(--text) !important; border-color: var(--line-2) !important; }
.leaflet-control-attribution { background: rgba(9, 11, 16, .7) !important; color: var(--text-3) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--text-2) !important; }

/* ------------------------------------------------------------ Telefon / tableta */
.only-mobile { display: none; }
@media (max-width: 1280px) {
    .cols { grid-template-columns: minmax(0, 1fr) 340px; }
    .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
    .cols { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .side { transform: translateX(-100%); transition: transform .25s; box-shadow: 20px 0 60px #000; }
    body.side-open .side { transform: none; }
    body.side-open .scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, .55); }
    .main { margin-left: 0; }
    .only-mobile { display: grid; }
    .top { padding: 0 16px; gap: 10px; }
    .content { padding: 20px 16px 50px; gap: 16px; }
    .hide-sm { display: none !important; }
    .search { width: auto; flex: 1; }
    .crumb { display: none; }
    .map-panel { top: auto; bottom: 14px; right: 14px; left: 14px; width: auto; }
    .map-panel p { display: none; }
}
@media (max-width: 600px) {
    h1 { font-size: 23px; }
    .grid4 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat { min-height: 0; padding: 16px; }
    .stat > b { font-size: 28px; }
    .hero-body { padding: 24px 18px 20px; }
    .hero-btn { position: static; margin: 0 18px 18px; }
    .hero { display: flex; flex-direction: column; }
    .chip { padding: 10px 12px; flex: 1 1 140px; }
    .card { padding: 18px; }
    .table th, .table td { padding: 11px 12px; }
    .podium { gap: 8px; }
    .pod { padding: 18px 6px; }
    .pod .avatar.lg { --s: 48px; }
    .pod b { font-size: 13px; }
    .profile, .fhero { padding: 22px 18px; gap: 16px; }
    .avatar.xl { --s: 72px; }
    .lvlbar { flex-wrap: wrap; }
}
