/* =============================================
   FARM MODULE — GHOST TEMPLATE STYLES
   ============================================= */

.farm-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 15px;
	font-family: 'Exo 2', sans-serif;
	color: #b7bacd;
}

/* ---------- Уведомления ---------- */
#farm-messages {
	position: fixed;
	top: 80px;
	right: 20px;
	z-index: 10000;
	max-width: 400px;
}
.farm-message {
	padding: 12px 20px;
	margin-bottom: 8px;
	border-radius: 3px;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: 0 4px 15px rgba(0,0,0,0.4);
	animation: farm-slide-in 0.3s ease;
	border: 1px solid rgba(255,255,255,0.05);
}
.farm-msg-success {
	background: #2a3a2e;
	border-left: 3px solid #4caf50;
	color: #a5d6a7;
}
.farm-msg-error {
	background: #3a2a2a;
	border-left: 3px solid #ef5350;
	color: #ef9a9a;
}
@keyframes farm-slide-in {
	from { transform: translateX(100px); opacity: 0; }
	to { transform: translateX(0); opacity: 1; }
}

/* ---------- Шапка ---------- */
.farm-header {
	background: #252836;
	border-radius: 3px;
	padding: 15px;
	margin-bottom: 10px;
}
.farm-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
}
.farm-stat {
	background: #313448;
	border-radius: 3px;
	padding: 8px 12px;
	min-width: 0;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #2F3553;
}
.farm-stat-icon {
	font-size: 20px;
	flex-shrink: 0;
	line-height: 1;
}
.farm-stat-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: rgba(183,186,205,0.5);
	display: block;
	line-height: 1.2;
}
.farm-stat-value {
	font-size: 15px;
	font-weight: bold;
	color: #fff;
	line-height: 1.2;
}
.farm-exp-bar-wrap {
	width: 100%;
	height: 6px;
	background: #1F222D;
	border-radius: 3px;
	margin-top: 6px;
	overflow: hidden;
}
.farm-exp-bar {
	height: 100%;
	background: #393C53;
	border-radius: 3px;
	transition: width 0.5s ease;
}

/* ---------- Секции ---------- */
.farm-section {
	background: #252836;
	border-radius: 3px;
	padding: 15px;
	margin-bottom: 10px;
}
.farm-section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	flex-wrap: wrap;
	gap: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #2F3553;
}
.farm-section-header h2 {
	margin: 0;
	font-size: 16px;
	color: #b7bacd;
	font-weight: 600;
}
.farm-section-actions {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

/* ---------- Кнопки ---------- */
.farm-btn {
	border: 1px solid #2F3553;
	border-radius: 3px;
	padding: 6px 14px;
	font-size: 12px;
	cursor: pointer;
	transition: all 0.15s;
	font-weight: 600;
	font-family: 'Exo 2', sans-serif;
	background-color: #313448;
	color: #b7bacd;
	text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}
.farm-btn:hover {
	background-color: #3a3e55;
	border-color: #454a68;
	color: #d0d3e6;
}
.farm-btn-plant {
	background-color: #2e4a36;
	border-color: #3a5c44;
	color: #a5d6a7;
}
.farm-btn-plant:hover {
	background-color: #3a5c44;
	color: #c8e6c9;
}
.farm-btn-harvest {
	background-color: #4a3a20;
	border-color: #5c4a2a;
	color: #ffcc80;
	animation: farm-pulse 2s infinite;
}
.farm-btn-harvest:hover {
	background-color: #5c4a2a;
	color: #ffe0b2;
}
@keyframes farm-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255,204,128,0.3); }
	50% { box-shadow: 0 0 0 6px rgba(255,204,128,0); }
}
.farm-btn-sell {
	background-color: #2a3550;
	border-color: #344268;
	color: #90caf9;
	font-size: 11px;
	padding: 4px 10px;
}
.farm-btn-sell:hover {
	background-color: #344268;
	color: #bbdefb;
}
.farm-btn-sell-one {
	background-color: #3a2950;
	border-color: #4a3468;
	color: #ce93d8;
	font-size: 11px;
	padding: 4px 10px;
}
.farm-btn-sell-one:hover {
	background-color: #4a3468;
	color: #e1bee7;
}
.farm-btn-action {
	background-color: #4a3a20;
	border-color: #5c4a2a;
	color: #ffcc80;
}
.farm-btn-action:hover {
	background-color: #5c4a2a;
	color: #ffe0b2;
}
.farm-btn-buy {
	background-color: #2a3550;
	border-color: #344268;
	color: #90caf9;
}
.farm-btn-buy:hover {
	background-color: #344268;
	color: #bbdefb;
}
.farm-btn-fertil {
	background-color: #3a2950;
	border-color: #4a3468;
	color: #ce93d8;
	font-size: 11px;
	padding: 3px 8px;
	margin-top: 4px;
}
.farm-btn-fertil:hover {
	background-color: #4a3468;
	color: #e1bee7;
}

/* ---------- Грядки ---------- */
.farm-plots-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
}
.farm-plot {
	background: #313448;
	border: 1px solid #2F3553;
	border-radius: 3px;
	padding: 15px;
	text-align: center;
	transition: all 0.2s;
	position: relative;
}
.farm-plot:hover {
	background: #373C54;
	border-color: #454a68;
}
.farm-plot.empty {
	border: 1px dashed #454a68;
	background: #2A2D3F;
}
.farm-plot.growing {
	border-color: #3a5c44;
	background: #2a3630;
}
.farm-plot.ready {
	border-color: #5c4a2a;
	background: #3a3320;
	animation: farm-ready-glow 2s infinite;
}
@keyframes farm-ready-glow {
	0%, 100% { box-shadow: 0 0 5px rgba(255,204,128,0.15); }
	50% { box-shadow: 0 0 15px rgba(255,204,128,0.25); }
}
.farm-plot-icon {
	font-size: 36px;
	margin-bottom: 5px;
}
.farm-plot-name {
	font-weight: 600;
	font-size: 13px;
	color: #d0d3e6;
	margin-bottom: 5px;
}
.farm-plot-timer {
	font-size: 12px;
	color: #8a8da0;
	margin-bottom: 5px;
}
.farm-plot-fertilized {
	font-size: 11px;
	color: #ce93d8;
	margin-bottom: 3px;
}
.farm-progress-bar {
	width: 100%;
	height: 6px;
	background: #1F222D;
	border-radius: 3px;
	overflow: hidden;
	margin: 6px 0;
}
.farm-progress-fill {
	height: 100%;
	background: #393C53;
	border-radius: 3px;
	transition: width 1s linear;
}
.farm-plot.ready .farm-progress-fill {
	background: #5c4a2a;
}

/* ---------- Амбар ---------- */
.farm-barn {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.farm-barn-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: #323648;
	border-radius: 3px;
	border: 1px solid #2F3553;
	flex-wrap: wrap;
}
.farm-barn-item:hover {
	background: #373C54;
}
.farm-barn-icon {
	font-size: 26px;
}
.farm-barn-name {
	font-weight: 600;
	font-size: 14px;
	color: #d0d3e6;
	min-width: 100px;
}
.farm-barn-qty {
	font-size: 13px;
	color: #a5d6a7;
	background: rgba(76,175,80,0.12);
	padding: 2px 8px;
	border-radius: 3px;
}
.farm-barn-price {
	font-size: 13px;
	color: #90caf9;
	font-weight: 600;
	margin-left: auto;
}
.farm-barn-empty {
	text-align: center;
	padding: 30px;
	color: #6c6f82;
	font-size: 14px;
}

/* ---------- Статистика ---------- */
.farm-mini-stats {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}
.farm-mini-stat {
	font-size: 13px;
	color: #8a8da0;
}
.farm-mini-stat b {
	color: #d0d3e6;
}

/* ---------- Модальное окно ---------- */
.farm-modal {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}
.farm-modal-overlay {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.65);
}
.farm-modal-content {
	position: relative;
	background: #252836;
	border-radius: 3px;
	max-width: 600px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba(0,0,0,0.6);
	border: 1px solid #2F3553;
	animation: farm-modal-in 0.3s ease;
}
@keyframes farm-modal-in {
	from { transform: scale(0.95); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}
.farm-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 15px;
	border-bottom: 1px solid #2F3553;
	background: #313448;
	border-radius: 3px 3px 0 0;
}
.farm-modal-header h3 {
	margin: 0;
	font-size: 15px;
	color: #b7bacd;
	font-weight: 600;
}
.farm-modal-close {
	font-size: 24px;
	cursor: pointer;
	color: #6c6f82;
	line-height: 1;
	transition: color 0.15s;
}
.farm-modal-close:hover { color: #d0d3e6; }
.farm-modal-body {
	padding: 15px;
}

/* ---------- Список семян ---------- */
.farm-seeds-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.farm-seed-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: #323648;
	border-radius: 3px;
	cursor: pointer;
	transition: all 0.15s;
	flex-wrap: wrap;
	border: 1px solid #2F3553;
}
.farm-seed-item:hover {
	background: #373C54;
	border-color: #454a68;
}
.farm-seed-item.locked {
	opacity: 0.4;
	cursor: not-allowed;
}
.farm-seed-item.locked:hover {
	background: #323648;
	border-color: #2F3553;
}
.farm-seed-icon {
	font-size: 26px;
}
.farm-seed-name {
	font-weight: 600;
	min-width: 90px;
	color: #d0d3e6;
}
.farm-seed-price, .farm-seed-sell, .farm-seed-time, .farm-seed-harvest, .farm-seed-exp, .farm-seed-unlock {
	font-size: 11px;
	color: #8a8da0;
	background: #1F222D;
	padding: 2px 6px;
	border-radius: 3px;
}
.farm-seed-exp {
	color: #ffcc80;
}
.farm-seed-unlock {
	color: #ef9a9a;
}

/* ---------- Удобрения ---------- */
.farm-fertilizers-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.farm-fertilizer-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: #323648;
	border-radius: 3px;
	cursor: pointer;
	transition: all 0.15s;
	flex-wrap: wrap;
	border: 1px solid #2F3553;
}
.farm-fertilizer-item:hover {
	background: #373C54;
	border-color: #454a68;
}
.farm-fert-icon { font-size: 26px; }
.farm-fert-name { font-weight: 600; color: #d0d3e6; }
.farm-fert-desc { font-size: 12px; color: #8a8da0; }
.farm-fert-price { font-size: 13px; font-weight: 600; color: #ce93d8; margin-left: auto; }

/* ---------- Не авторизован ---------- */
.farm-not-auth {
	text-align: center;
	padding: 60px 20px;
	background: #252836;
	border-radius: 3px;
}
.farm-not-auth h2 {
	font-size: 36px;
	margin-bottom: 10px;
	color: #d0d3e6;
}
.farm-not-auth p {
	font-size: 14px;
	color: #8a8da0;
}

/* =============================================
   GHOST — 2-COLUMN LAYOUT + SIDEBAR (REDESIGN)
   ============================================= */

/* —— Layout —— */
.farm-page-layout {
	display: flex;
	gap: 18px;
	max-width: 1600px;
	margin: 0 auto;
	padding: 15px;
	font-family: 'Exo 2', sans-serif;
	color: #b7bacd;
	align-items: flex-start;
}
.farm-main-col {
	flex: 1;
	min-width: 0;
}
.farm-main-col .farm-container {
	padding: 0;
	max-width: none;
}
.farm-sidebar-col {
	width: 320px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: sticky;
	top: 20px;
}

/* —— Sidebar Blocks (общие) —— */
.farm-sidebar-block {
	background: #1e2030;
	border-radius: 6px;
	border: 1px solid rgba(255,255,255,0.04);
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Заголовок блока */
.farm-sidebar-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: linear-gradient(135deg, #252840 0%, #1e2030 100%);
	border-bottom: 1px solid rgba(255,255,255,0.04);
}
.farm-sh-icon {
	font-size: 22px;
	line-height: 1;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,0.03);
	border-radius: 8px;
}
.farm-sh-text {
	flex: 1;
	min-width: 0;
}
.farm-sidebar-header h3 {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: #d0d3e6;
	letter-spacing: 0.2px;
}
.farm-sb-hint {
	display: block;
	font-size: 10px;
	color: #555871;
	margin-top: 1px;
	letter-spacing: 0.1px;
}

/* Тело блока */
.farm-sidebar-body {
	padding: 10px;
	max-height: 480px;
	overflow-y: auto;
}
.farm-sidebar-body::-webkit-scrollbar {
	width: 3px;
}
.farm-sidebar-body::-webkit-scrollbar-track {
	background: transparent;
}
.farm-sidebar-body::-webkit-scrollbar-thumb {
	background: #3a3e58;
	border-radius: 3px;
}
.farm-sb-body-prices {
	padding: 8px 10px;
}
.farm-sb-loading {
	text-align: center;
	color: #555871;
	padding: 24px 0;
	font-size: 11px;
	letter-spacing: 0.3px;
}

/* —— Sidebar Tabs (segmented control) —— */
.farm-sidebar-tabs {
	display: flex;
	gap: 0;
	padding: 8px 10px 0;
	background: #1a1c2d;
}
.farm-stab {
	flex: 1;
	border: none;
	background: transparent;
	color: #555871;
	padding: 8px 4px 10px;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	white-space: nowrap;
	font-family: 'Exo 2', sans-serif;
	border-bottom: 2px solid transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	position: relative;
}
.farm-stab-icon {
	font-size: 14px;
	line-height: 1;
}
.farm-stab-text {
	font-size: 11px;
}
.farm-stab:hover {
	color: #8a8da0;
	background: rgba(255,255,255,0.02);
}
.farm-stab.active {
	color: #b7bacd;
	border-bottom-color: #5c6bc0;
	background: rgba(92,107,192,0.06);
}
.farm-tab-pane {
	display: none;
}
.farm-tab-pane.active {
	display: block;
}

/* —— BLOCK 1: Barn Table —— */
.farm-barn-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 11px;
}
.farm-barn-table th {
	background: #171924;
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 6px 8px;
	color: #555871;
	font-weight: 700;
	text-align: left;
	border-bottom: 1px solid rgba(255,255,255,0.04);
}
.farm-barn-table td {
	padding: 6px 8px;
	border-bottom: 1px solid rgba(255,255,255,0.025);
	color: #7a7e96;
	font-size: 11px;
}
.farm-barn-table tr:last-child td {
	border-bottom: none;
}
.farm-barn-table tr.farm-barn-current {
	background: rgba(76,175,80,0.08);
}
.farm-barn-table tr.farm-barn-current td {
	color: #81c784;
	border-color: rgba(76,175,80,0.12);
	font-weight: 600;
}
.farm-barn-table tr.farm-barn-locked {
	opacity: 0.3;
}
.farm-barn-level-badge {
	display: inline-block;
	background: rgba(76,175,80,0.15);
	color: #81c784;
	font-size: 9px;
	padding: 2px 6px;
	border-radius: 3px;
	margin-left: 4px;
	font-weight: 700;
}

/* —— BLOCK 1: Fertilizer Shop —— */
.farm-sb-fert-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 10px;
	background: rgba(255,255,255,0.02);
	border-radius: 5px;
	margin-bottom: 6px;
	cursor: pointer;
	transition: all 0.2s;
	border: 1px solid rgba(255,255,255,0.03);
}
.farm-sb-fert-item:last-child {
	margin-bottom: 0;
}
.farm-sb-fert-item:hover {
	background: rgba(92,107,192,0.08);
	border-color: rgba(92,107,192,0.15);
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.farm-sb-fert-icon {
	font-size: 24px;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,0.03);
	border-radius: 8px;
}
.farm-sb-fert-info {
	flex: 1;
	min-width: 0;
}
.farm-sb-fert-name {
	font-weight: 700;
	font-size: 12px;
	color: #d0d3e6;
	line-height: 1.3;
}
.farm-sb-fert-desc {
	font-size: 10px;
	color: #6c6f82;
	margin-top: 2px;
	line-height: 1.3;
}
.farm-sb-fert-price {
	font-weight: 700;
	font-size: 13px;
	color: #b39ddb;
	white-space: nowrap;
	background: rgba(179,157,219,0.08);
	padding: 4px 8px;
	border-radius: 4px;
}
.farm-sb-fert-locked {
	opacity: 0.45;
	cursor: not-allowed;
}
.farm-sb-fert-locked:hover {
	background: rgba(255,255,255,0.02);
	border-color: rgba(255,255,255,0.03);
	transform: none;
	box-shadow: none;
}
.farm-sb-fert-unlock {
	font-size: 10px;
	color: #ef9a9a;
	font-weight: 600;
}

/* —— BLOCK 1: Beds —— */
.farm-sb-bed {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	background: rgba(255,255,255,0.02);
	border-radius: 5px;
	margin-bottom: 5px;
	border: 1px solid rgba(255,255,255,0.03);
	transition: all 0.15s;
}
.farm-sb-bed:last-child {
	margin-bottom: 0;
}
.farm-sb-bed-icon {
	font-size: 20px;
	flex-shrink: 0;
}
.farm-sb-bed-info {
	flex: 1;
	min-width: 0;
}
.farm-sb-bed-name {
	font-size: 11px;
	font-weight: 700;
	color: #d0d3e6;
}
.farm-sb-bed-status {
	font-size: 10px;
	color: #555871;
	margin-top: 1px;
}
.farm-sb-bed-actions {
	display: flex;
	gap: 4px;
}
.farm-sb-bed-btn {
	border: none;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s;
	font-family: 'Exo 2', sans-serif;
	letter-spacing: 0.2px;
}
.farm-sb-bed-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.farm-sb-bed-btn-plant {
	background: rgba(76,175,80,0.15);
	color: #81c784;
}
.farm-sb-bed-btn-harvest {
	background: rgba(255,183,77,0.15);
	color: #ffb74d;
	animation: farm-pulse 2s infinite;
}
.farm-sb-bed-btn-fert {
	background: rgba(179,157,219,0.15);
	color: #b39ddb;
}
.farm-sb-bed-growing {
	border-color: rgba(76,175,80,0.12);
	background: rgba(76,175,80,0.04);
}
.farm-sb-bed-ready {
	border-color: rgba(255,183,77,0.15);
	background: rgba(255,183,77,0.04);
}

/* —— BLOCK 2: Market Prices —— */
.farm-sb-market-timer {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	background: rgba(255,255,255,0.02);
	border: 1px solid rgba(255,255,255,0.03);
	border-radius: 5px;
	margin-bottom: 8px;
	font-size: 11px;
	color: #555871;
}
.farm-sb-market-timer b {
	color: #7986cb;
}
.farm-sb-price-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 5px;
	margin-bottom: 4px;
	border: 1px solid transparent;
	transition: all 0.15s;
}
.farm-sb-price-item:last-child {
	margin-bottom: 0;
}
.farm-sb-price-item:hover {
	transform: translateX(3px);
}
.farm-sb-price-icon {
	font-size: 20px;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	background: rgba(255,255,255,0.03);
}
.farm-sb-price-name {
	flex: 1;
	font-size: 12px;
	font-weight: 600;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.farm-sb-price-val {
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}
.farm-sb-price-mod {
	font-size: 10px;
	font-weight: 700;
	white-space: nowrap;
	padding: 2px 6px;
	border-radius: 3px;
	min-width: 38px;
	text-align: center;
}

/* Приоритет — жёлтый/золотой */
.farm-sb-price-priority {
	background: rgba(255,183,77,0.06);
	border-color: rgba(255,183,77,0.12);
}
.farm-sb-price-priority .farm-sb-price-icon {
	background: rgba(255,183,77,0.1);
}
.farm-sb-price-priority .farm-sb-price-name {
	color: #ffd54f;
}
.farm-sb-price-priority .farm-sb-price-val {
	color: #ffe082;
}
.farm-sb-price-priority .farm-sb-price-mod {
	color: #ffd54f;
	background: rgba(255,213,79,0.1);
}
.farm-sb-price-priority-badge {
	font-size: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background: rgba(255,183,77,0.15);
	color: #ffb74d;
	padding: 2px 6px;
	border-radius: 3px;
	font-weight: 700;
	margin-left: 4px;
}

/* Положительный — зелёный */
.farm-sb-price-positive {
	background: rgba(76,175,80,0.04);
	border-color: rgba(76,175,80,0.08);
}
.farm-sb-price-positive .farm-sb-price-icon {
	background: rgba(76,175,80,0.08);
}
.farm-sb-price-positive .farm-sb-price-name {
	color: #81c784;
}
.farm-sb-price-positive .farm-sb-price-val {
	color: #a5d6a7;
}
.farm-sb-price-positive .farm-sb-price-mod {
	color: #66bb6a;
	background: rgba(76,175,80,0.1);
}

/* Отрицательный — красный */
.farm-sb-price-negative {
	background: rgba(239,83,80,0.04);
	border-color: rgba(239,83,80,0.08);
}
.farm-sb-price-negative .farm-sb-price-icon {
	background: rgba(239,83,80,0.08);
}
.farm-sb-price-negative .farm-sb-price-name {
	color: #ef9a9a;
}
.farm-sb-price-negative .farm-sb-price-val {
	color: #ef9a9a;
}
.farm-sb-price-negative .farm-sb-price-mod {
	color: #ef5350;
	background: rgba(239,83,80,0.1);
}

/* Заблокированный */
.farm-sb-price-locked {
	background: rgba(255,255,255,0.01);
	opacity: 0.35;
}
.farm-sb-price-locked .farm-sb-price-name {
	color: #555871;
}

/* —— BLOCK 3: Top Players —— */
.farm-sb-top-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.farm-sb-top-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 5px;
	margin-bottom: 3px;
	transition: all 0.15s;
}
.farm-sb-top-item:last-child {
	margin-bottom: 0;
}
.farm-sb-top-item:hover {
	background: rgba(255,255,255,0.03);
}
.farm-sb-top-rank {
	font-size: 12px;
	font-weight: 800;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #555871;
	background: rgba(255,255,255,0.03);
	border-radius: 6px;
}
.farm-sb-top-rank-1 {
	color: #ffd54f;
	background: rgba(255,213,79,0.1);
}
.farm-sb-top-rank-2 {
	color: #b0bec5;
	background: rgba(176,190,197,0.08);
}
.farm-sb-top-rank-3 {
	color: #cd7f32;
	background: rgba(205,127,50,0.1);
}
.farm-sb-top-avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 2px solid rgba(255,255,255,0.06);
}
.farm-sb-top-info {
	flex: 1;
	min-width: 0;
}
.farm-sb-top-name {
	font-size: 12px;
	font-weight: 600;
	color: #d0d3e6;
	text-decoration: none;
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.farm-sb-top-name:hover {
	color: #7986cb;
}
.farm-sb-top-meta {
	font-size: 10px;
	color: #555871;
	margin-top: 1px;
}
.farm-sb-top-level {
	font-size: 11px;
	font-weight: 700;
	color: #81c784;
	background: rgba(76,175,80,0.1);
	padding: 3px 8px;
	border-radius: 4px;
	white-space: nowrap;
}
.farm-sb-top-empty {
	text-align: center;
	color: #555871;
	padding: 30px 10px;
	font-size: 12px;
}

/* —— Рыночные индикаторы (barn items) —— */
.farm-market-info {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: rgba(255,255,255,0.02);
	border: 1px solid rgba(255,255,255,0.04);
	border-radius: 5px;
	margin-bottom: 8px;
	font-size: 12px;
	color: #555871;
	flex-wrap: wrap;
}
.farm-market-timer b,
.farm-market-priority b {
	color: #7986cb;
}
.farm-price-up {
	color: #81c784;
	font-weight: 700;
	font-size: 12px;
}
.farm-price-down {
	color: #ef9a9a;
	font-weight: 700;
	font-size: 12px;
}
.farm-priority-badge {
	font-size: 13px;
	vertical-align: middle;
}
.farm-barn-priority {
	background: rgba(255,183,77,0.06) !important;
	border-color: rgba(255,183,77,0.12) !important;
}
.farm-barn-total {
	font-size: 13px;
	color: #81c784;
	font-weight: 700;
}
.farm-sell-limit {
	font-size: 10px;
	color: #555871;
	background: rgba(255,255,255,0.03);
	padding: 2px 6px;
	border-radius: 3px;
}
.farm-limit-reached {
	font-size: 11px;
	color: #ef9a9a;
	font-weight: 700;
	padding: 3px 8px;
	background: rgba(239,83,80,0.08);
	border-radius: 4px;
}

/* —— Адаптивность —— */
@media (max-width: 1100px) {
	.farm-page-layout {
		flex-direction: column;
	}
	.farm-sidebar-col {
		width: 100%;
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
	}
	.farm-sidebar-block {
		flex: 1;
		min-width: 280px;
	}
}
@media (max-width: 768px) {
	.farm-page-layout {
		padding: 10px;
	}
	.farm-stats {
		flex-wrap: wrap;
	}
	.farm-stat {
		min-width: calc(50% - 6px);
		flex: none;
	.farm-plots-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	}
	.farm-section-header {
		flex-direction: column;
		align-items: flex-start;
	}
	.farm-barn-item {
		flex-direction: column;
		text-align: center;
	}
	.farm-barn-price {
		margin-left: 0;
	}
	.farm-sidebar-col {
		flex-direction: column;
	}
	.farm-sidebar-block {
		min-width: auto;
	}
	.farm-sidebar-body {
		max-height: 350px;
	}
}
