.faction-page {
	box-sizing: border-box;
	color: #E7E0C2;
}
.faction-page * {
	box-sizing: border-box;
}
.faction-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 2px solid rgba(255, 102, 0, 0.35);
}
.faction-kicker {
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #FF9944;
	margin-bottom: 4px;
}
.faction-state {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 10px;
	letter-spacing: 0;
	text-transform: none;
}
.faction-state.is-active {
	background: rgba(60, 230, 107, 0.14);
	color: #6fe08a;
}
.faction-state.is-inactive {
	background: rgba(255, 99, 87, 0.12);
	color: #ff8175;
}
.faction-head h1 {
	margin: 0;
	font-size: 30px;
	color: #FFFFFF;
	line-height: 1.15;
}
.faction-count {
	font-size: 12px;
	color: #9c9584;
}
.faction-btn {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 7px;
	border: 1px solid #FF6600;
	background: #FF6600;
	color: #FFFFFF;
	font-size: 12px;
	font-weight: bold;
	text-decoration: none;
}
.faction-btn:hover {
	background: #FF8030;
}
.faction-btn-ghost {
	background: transparent;
	color: #FFB27A;
}
.faction-btn-ghost:hover {
	background: rgba(255, 102, 0, 0.14);
}
.faction-section {
	margin-bottom: 26px;
}
.faction-section:last-child {
	margin-bottom: 0;
}
.faction-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(255, 102, 0, 0.25);
}
.faction-section-head h2 {
	margin: 0;
	font-size: 18px;
	color: #FFFFFF;
}
.faction-section-head h2 small {
	margin-left: 8px;
	font-size: 11px;
	font-weight: normal;
	color: #8c8575;
}
.faction-section-head span {
	font-size: 12px;
	color: #9c9584;
}
.faction-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}
.faction-card.is-inactive {
	opacity: 0.62;
	border-style: dashed;
	background: rgba(255, 255, 255, 0.015);
}
.faction-card.is-inactive:hover {
	opacity: 1;
}
.faction-card.is-inactive .faction-card-title {
	color: #A9A18D;
}
.faction-card.is-inactive .faction-card-link {
	color: #9c9584;
}
.faction-card {
	display: block;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(255, 102, 0, 0.08), rgba(255, 255, 255, 0.02));
	text-decoration: none;
	transition: border-color 0.2s, transform 0.2s;
}
.faction-card:hover {
	border-color: rgba(255, 102, 0, 0.55);
	transform: translateY(-2px);
}
.faction-card-title {
	font-size: 17px;
	font-weight: bold;
	color: #FFFFFF;
	margin-bottom: 12px;
}
.faction-card-meta {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 12px;
	color: #9c9584;
	margin-bottom: 5px;
}
.faction-online {
	color: #6fe08a;
}
.faction-card-link {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 12px;
	color: #FF9944;
}
.faction-stats {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 18px;
}
.faction-stat {
	padding: 14px 10px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.035);
	text-align: center;
	font-size: 11px;
	color: #9c9584;
}
.faction-stat span {
	display: block;
	font-size: 19px;
	font-weight: bold;
	color: #FF9944;
	margin-bottom: 3px;
}
.faction-panel {
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
	margin-bottom: 18px;
}
.faction-panel-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(255, 102, 0, 0.25);
}
.faction-panel-head h2 {
	margin: 0;
	font-size: 17px;
	color: #FFFFFF;
}
.faction-panel-head span {
	font-size: 12px;
	color: #9c9584;
}
.faction-text {
	font-size: 13px;
	line-height: 1.6;
	color: #D8D1BC;
	margin-bottom: 10px;
}
.faction-text-muted {
	color: #9c9584;
	font-size: 12px;
}
.faction-members {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}
.faction-member {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.14);
	text-decoration: none;
}
.faction-member:hover {
	border-color: rgba(255, 102, 0, 0.4);
	background: rgba(255, 102, 0, 0.06);
}
.faction-member.is-leader {
	border-color: rgba(255, 102, 0, 0.4);
	background: rgba(255, 102, 0, 0.08);
}
.faction-member-status {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex: 0 0 8px;
	background: #7a7468;
}
.faction-member-status.is-online {
	background: #3ce66b;
	box-shadow: 0 0 8px rgba(60, 230, 107, 0.7);
}
.faction-member-main {
	min-width: 0;
	flex: 1 1 auto;
}
.faction-member-main b {
	display: block;
	font-size: 13px;
	color: #FFFFFF;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.faction-member-main span {
	display: block;
	font-size: 11px;
	color: #9c9584;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.faction-member-side {
	font-size: 11px;
	color: #FFB27A;
	white-space: nowrap;
}
.faction-cars {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}
.faction-car {
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.12);
}
.faction-car img {
	display: block;
	width: 100%;
	height: 100px;
	object-fit: cover;
	background: rgba(0, 0, 0, 0.2);
}
.faction-car-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 9px 11px;
}
.faction-car-body b {
	font-size: 12px;
	color: #FFFFFF;
}
.faction-car-body span {
	font-size: 11px;
	color: #9c9584;
}
.faction-car-actions {
	padding: 0 11px 11px;
}
.faction-empty {
	padding: 26px 18px;
	border: 1px dashed rgba(255, 255, 255, 0.14);
	border-radius: 10px;
	text-align: center;
	color: #9c9584;
	font-size: 13px;
}
.faction-empty h1 {
	margin: 0 0 8px;
	color: #FF9944;
	font-size: 24px;
}
.faction-empty p {
	margin: 0 0 16px;
}
@media (max-width: 1000px) {
	.faction-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.faction-cars {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 700px) {
	.faction-grid, .faction-members, .faction-cars {
		grid-template-columns: minmax(0, 1fr);
	}
	.faction-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.faction-head h1 {
		font-size: 23px;
	}
}
