#page-factions{max-width:980px}.factions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.faction-card{min-height:84px;display:grid;grid-template-columns:34px 46px minmax(0,1fr);align-items:center;gap:12px;padding:13px 15px;border:1px solid rgba(155,124,241,.13);border-radius:13px;background:linear-gradient(135deg,rgba(28,30,40,.96),rgba(17,19,25,.96));transition:.18s ease}.faction-card:hover{transform:translateY(-2px);border-color:rgba(155,124,241,.38);box-shadow:0 12px 28px rgba(0,0,0,.2)}.faction-index{color:#777984;font-size:10px;font-variant-numeric:tabular-nums}.faction-icon{width:42px;height:42px;display:grid;place-items:center;border:1px solid rgba(155,124,241,.22);border-radius:11px;background:rgba(155,124,241,.09);color:#b9a5f2}.faction-icon svg{width:21px;fill:none;stroke:currentColor;stroke-width:1.5}.faction-copy h3{margin:0;color:#f2f1f5;font-size:13px}.faction-copy span{display:inline-block;margin-top:5px;color:#8e8f9b;font-size:9px;text-transform:uppercase;letter-spacing:.08em}.faction-legal{border-color:rgba(61,201,166,.14)}.faction-legal .faction-icon{border-color:rgba(61,201,166,.22);background:rgba(61,201,166,.08);color:#65cdb1}.faction-mafie{border-color:rgba(240,155,98,.16)}.faction-mafie .faction-icon{border-color:rgba(240,155,98,.22);background:rgba(240,155,98,.08);color:#eca36e}@media(max-width:700px){.factions-grid{grid-template-columns:1fr}}@media(max-width:520px){.faction-card{grid-template-columns:28px 40px minmax(0,1fr);padding:11px}.faction-icon{width:36px;height:36px}.faction-copy h3{font-size:12px}}

/* Vehicle-style faction list */
#page-factions{width:100%;max-width:none;box-sizing:border-box}
#page-factions .factions-list-header{grid-template-columns:44px 44px minmax(220px,1fr) 100px 150px 170px}
#page-factions .faction-card{grid-template-columns:44px 44px minmax(220px,1fr) 100px 150px 170px}
#page-factions .factions-list-header span:nth-child(2){grid-column:3}
#page-factions .factions-list-header span:nth-child(3){grid-column:4;justify-self:center;text-align:center}
#page-factions .factions-list-header span:nth-child(4){grid-column:5;justify-self:end}
#page-factions .faction-member-count{justify-self:center;color:#b9a5f2;font-size:10px;font-variant-numeric:tabular-nums}
@media(max-width:700px){#page-factions .factions-list-header{grid-template-columns:34px 40px minmax(0,1fr) 64px 100px 150px}#page-factions .faction-card{grid-template-columns:34px 40px minmax(0,1fr) 64px 100px 150px}}
@media(max-width:520px){#page-factions .faction-card{grid-template-columns:28px 38px minmax(0,1fr) 48px 74px 128px}.faction-member-count{font-size:8px}}
#page-factions .factions-list-header{grid-template-columns:44px 44px minmax(220px,1fr) 150px}
#page-factions .factions-list-header span:nth-child(2){grid-column:3}
#page-factions .factions-list-header span:nth-child(3){grid-column:4}
@media(max-width:700px){#page-factions .factions-list-header{grid-template-columns:34px 40px minmax(0,1fr) 100px}}
#page-factions .factions-list-header span:nth-child(3){justify-self:end}
#page-factions .faction-mafie{border-color:rgba(239,83,98,.24)}
#page-factions .faction-mafie .faction-icon{border-color:rgba(239,83,98,.4);background:rgba(239,83,98,.12);color:#ff737f}
#page-factions .faction-mafie .faction-type{color:#ff737f}
#page-factions .faction-gang,#page-factions .faction-sindicat{border-color:rgba(160,166,178,.22)}
#page-factions .faction-gang .faction-icon,#page-factions .faction-sindicat .faction-icon{border-color:rgba(160,166,178,.3);background:rgba(160,166,178,.1);color:#b4bac5}
#page-factions .faction-gang .faction-type,#page-factions .faction-sindicat .faction-type{color:#a7adb9}
#page-factions .factions-list-header{grid-template-columns:44px 44px minmax(220px,1fr) 150px 170px}
#page-factions .faction-card{grid-template-columns:44px 44px minmax(220px,1fr) 150px 170px}
@media(max-width:700px){#page-factions .factions-list-header{grid-template-columns:34px 40px minmax(0,1fr) 100px 150px}#page-factions .faction-card{grid-template-columns:34px 40px minmax(0,1fr) 100px 150px}}
@media(max-width:520px){#page-factions .faction-card{grid-template-columns:28px 38px minmax(0,1fr) 74px 128px}}
.faction-view-button{justify-self:end;width:max-content;max-width:100%;min-height:32px;padding:6px 12px;border:1px solid rgba(255,255,255,.14);border-radius:6px;background:#1b1d24;color:#e8e7ed;font:600 10px 'DM Sans',sans-serif;white-space:nowrap;cursor:pointer;transition:.18s ease}
.faction-view-button:hover{border-color:rgba(155,124,241,.55);background:rgba(155,124,241,.12)}
.faction-detail-back{display:inline-flex;align-items:center;gap:8px;margin:0 0 20px;padding:8px 0;border:0;background:transparent;color:#a6a7b3;font:600 12px 'DM Sans',sans-serif;cursor:pointer}
.faction-detail-back:hover{color:#f2f1f5}
.faction-detail-heading{margin-bottom:20px}
.faction-detail-panel{display:flex;align-items:center;gap:18px;min-height:140px;padding:24px;border:1px solid rgba(160,166,178,.2);border-radius:10px;background:linear-gradient(135deg,rgba(28,30,40,.96),rgba(17,19,25,.96))}
.faction-detail-emblem{width:64px;height:64px;flex:0 0 auto;display:grid;place-items:center;border:1px solid rgba(160,166,178,.3);border-radius:12px;background:rgba(160,166,178,.1);color:#b4bac5}
.faction-detail-emblem svg{width:30px;fill:none;stroke:currentColor;stroke-width:1.5}
.faction-detail-category{display:grid;gap:8px}
.faction-detail-category small{color:#8e8f9b;font-size:9px;font-weight:800;letter-spacing:.1em}
.faction-detail-category strong{width:max-content;color:#b4bac5;font-size:14px;text-transform:uppercase}
.faction-detail-panel.faction-mafie{border-color:rgba(239,83,98,.24)}
.faction-detail-panel.faction-mafie .faction-detail-emblem{border-color:rgba(239,83,98,.4);background:rgba(239,83,98,.12);color:#ff737f}
.faction-detail-category strong.faction-mafie{color:#ff737f}
.faction-detail-panel.faction-legal .faction-detail-emblem{border-color:rgba(61,201,166,.3);background:rgba(61,201,166,.08);color:#65cdb1}
.faction-detail-category strong.faction-legal{color:#65cdb1}
@media(max-width:520px){.faction-detail-panel{min-height:110px;padding:18px}.faction-detail-emblem{width:52px;height:52px}}
.stats-submenu{flex-wrap:wrap}
.faction-category-management{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;padding-top:12px}
.faction-category-row{display:grid;grid-template-columns:minmax(120px,1fr) 100px 100px 74px;align-items:center;gap:8px;min-height:52px;padding:6px 8px;border-bottom:1px solid rgba(155,124,241,.12)}
.faction-category-name{min-width:0;display:grid;gap:4px}
.faction-category-name strong{overflow:hidden;color:#dedbe8;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.faction-category-name small{color:#858391;font-size:9px}
.faction-category-row select,.faction-category-row input{width:100%;height:34px;min-width:0;box-sizing:border-box;padding:0 8px;border:1px solid rgba(155,124,241,.23);border-radius:6px;background:#171820;color:#d9d2ec;font:500 11px 'DM Sans',sans-serif;outline:none}
.faction-category-row select:focus,.faction-category-row input:focus{border-color:#a987ff;box-shadow:0 0 0 2px rgba(155,124,241,.12)}
.faction-category-row select:disabled,.faction-category-row input:disabled{opacity:.55}
.faction-limit-save{height:32px;padding:0 8px;border:1px solid rgba(155,124,241,.28);border-radius:6px;background:rgba(155,124,241,.1);color:#cbbaff;font:600 9px 'DM Sans',sans-serif;white-space:nowrap;cursor:pointer}
.faction-limit-save:hover{border-color:rgba(173,143,255,.62);background:rgba(155,124,241,.2)}
.faction-limit-save:disabled{opacity:.55;cursor:wait}
.faction-category-empty{grid-column:1/-1;padding:20px;color:#9694a2;text-align:center;font-size:11px}
@media(max-width:1000px){.faction-category-management{grid-template-columns:1fr}}
@media(max-width:520px){.faction-category-row{grid-template-columns:minmax(80px,1fr) 82px 78px 62px;gap:5px;padding:6px 2px}.faction-category-row select,.faction-category-row input{padding:0 5px;font-size:10px}.faction-limit-save{padding:0 5px;font-size:8px}}
#page-factions .factions-list-header,#page-factions .faction-card{grid-template-columns:44px 44px minmax(220px,1fr) 100px 150px 170px;column-gap:12px}
#page-factions .factions-list-header span:nth-child(2){grid-column:3}
#page-factions .factions-list-header span:nth-child(3){grid-column:4}
#page-factions .factions-list-header span:nth-child(4){grid-column:5;justify-self:center;text-align:center}
#page-factions .factions-list-header span:nth-child(5){grid-column:6;justify-self:end}
#page-factions .factions-list-header span:nth-child(6){grid-column:7}
#page-factions .faction-member-count{justify-self:center}
#page-factions .factions-list-header,#page-factions .faction-card{grid-template-columns:44px 44px minmax(170px,1fr) minmax(190px,1fr) 100px 150px 170px;column-gap:12px}
@media(max-width:700px){#page-factions .factions-list-header,#page-factions .faction-card{grid-template-columns:minmax(100px,1fr) minmax(120px,1.1fr) 54px 84px 118px;column-gap:8px}#page-factions .faction-index,#page-factions .faction-icon,#page-factions .factions-list-header span:first-child{display:none}#page-factions .factions-list-header span:nth-child(2){grid-column:1}#page-factions .factions-list-header span:nth-child(3){grid-column:2}#page-factions .factions-list-header span:nth-child(4){grid-column:3;justify-self:center}#page-factions .factions-list-header span:nth-child(5){grid-column:4;justify-self:end}#page-factions .factions-list-header span:nth-child(6){grid-column:5}}
@media(max-width:520px){#page-factions .factions-list-header,#page-factions .faction-card{grid-template-columns:minmax(70px,1fr) minmax(85px,1.1fr) 35px 65px 94px;column-gap:5px}#page-factions .faction-card{padding:7px 8px}#page-factions .faction-copy h3{font-size:10px}#page-factions .faction-leader{font-size:8px}#page-factions .faction-member-count{font-size:8px}#page-factions .faction-type{font-size:8px}.faction-view-button{padding:5px 6px;font-size:8px}#page-factions .factions-list-header span:nth-child(3){white-space:normal;text-align:center}}
.faction-leader{min-width:0;display:grid;gap:3px;color:#d8d1e8;font-size:10px;overflow-wrap:anywhere}
#page-factions .factions-list-header span:nth-child(3){justify-self:start;padding-left:2px;text-align:left}
#page-factions .faction-leader{justify-self:start;text-align:left}
#page-factions .factions-list-header,#page-factions .faction-card{grid-template-columns:44px 44px minmax(170px,1fr) minmax(190px,1fr) 100px 150px;column-gap:12px}
@media(max-width:700px){#page-factions .factions-list-header,#page-factions .faction-card{grid-template-columns:minmax(100px,1fr) minmax(120px,1.1fr) 54px 100px;column-gap:8px}#page-factions .faction-index,#page-factions .faction-icon,#page-factions .factions-list-header span:first-child{display:none}#page-factions .factions-list-header span:nth-child(2){grid-column:1}#page-factions .factions-list-header span:nth-child(3){grid-column:2}#page-factions .factions-list-header span:nth-child(4){grid-column:3;justify-self:center}#page-factions .factions-list-header span:nth-child(5){grid-column:4;justify-self:end}}
@media(max-width:520px){#page-factions .factions-list-header,#page-factions .faction-card{grid-template-columns:minmax(70px,1fr) minmax(85px,1.1fr) 35px 74px;column-gap:5px}.faction-view-button{display:none}}
.faction-leader strong{font-weight:600}
.faction-leader small{color:#a7a0b7;font-size:9px}
.faction-leader-empty{color:#777984}
.factions-grid{display:grid;grid-template-columns:1fr;gap:0}.factions-list-header{display:grid;grid-template-columns:44px minmax(220px,1fr) 150px;padding:0 14px 9px;color:#777984;font-size:9px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.faction-card{min-height:62px;grid-template-columns:44px 44px minmax(220px,1fr) 150px;padding:8px 14px;border:0;border-top:1px solid #292a31;border-radius:0;background:transparent;box-shadow:none}.faction-card:last-child{border-bottom:1px solid #292a31}.faction-card:hover{transform:none;border-color:#343640;box-shadow:none;background:rgba(155,124,241,.035)}.faction-icon{width:34px;height:34px;border-radius:8px}.faction-icon svg{width:18px}.faction-copy h3{font-size:12px}.faction-type{justify-self:end;color:#8e8f9b;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.faction-legal .faction-type{color:#65cdb1}.faction-mafie .faction-type{color:#eca36e}@media(max-width:700px){.faction-card{grid-template-columns:34px 40px minmax(0,1fr) 100px}.factions-list-header{grid-template-columns:34px minmax(0,1fr) 100px}}@media(max-width:520px){.factions-list-header{display:none}.faction-card{grid-template-columns:28px 38px minmax(0,1fr) 74px;padding:7px 8px}.faction-icon{width:30px;height:30px}.faction-type{font-size:8px}}
