.chart-container { position: relative; width: 100%; height: 280px; }
.chart-container-horizontal { position: relative; width: 100%; height: 120px; }
.kpi-card { background-color: #EEEEEE; border-radius: 1rem; padding: 1.5rem; text-align: center; }
.section-grey { background-color: #EEEEEE; }
.accent-orange { color: #FF5100; }
.tab { cursor: pointer; padding: 10px 20px; font-weight: 500; border-bottom: 3px solid transparent; transition: all 0.2s ease-in-out; }
.tab.active { color: #FF5100; border-bottom-color: #FF5100; }

.loader {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background-color: rgba(255, 255, 255, 0.7);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
}
.spinner {
	border: 4px solid rgba(0, 0, 0, 0.1);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border-left-color: #FF5100;
	animation: spin 1s ease infinite;
}
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
.lpa-reportf--hidden { display: none; }
.error-message { text-align: center; padding: 2rem; color: #b91c1c; font-size: 1.2rem; background-color: #fef2f2; border-radius: 1rem; }

.chart-container {
	position: relative;
	height: 400px;
	width: 100%;
}

.chart-container-horizontal {
	position: relative;
	height: 150px;
	width: 100%;
}

/* --- 6. СТИЛИ ДЛЯ БЛОКА "ПУЛЬС КЛУБА" --- */

.mood-gauge__container {
	position: relative;
	width: 300px; /* Фиксированная ширина */
	height: 150px; /* Половина от ширины */
	display: flex;
	justify-content: center;
	align-items: flex-end;
	margin-bottom: 1rem;
	margin-top: 1rem;
}

.mood-gauge__dial {
	position: absolute;
	width: 300px;
	height: 150px;
	
	border-bottom: none; 

	/* 1. ЗАДАЕМ ФОН (СЕРЫЙ ТРЕК) */
	background-color: #EEEEEE;
	
	/* 2. НАКЛАДЫВАЕМ СЕГМЕНТНЫЙ ГРАДИЕНТ (С ПРОБЕЛАМИ) */
	background-image: conic-gradient(
		from -90deg at 50% 100%,
		
		/* Сегмент 1 (Красный) */
		#ef4444 0deg 34deg,
		/* Пробел (покажет серый фон) */
		transparent 34deg 36deg,
		
		/* Сегмент 2 (Оранжевый) */
		#f97316 36deg 70deg,
		/* Пробел */
		transparent 70deg 72deg,
		
		/* Сегмент 3 (Желтый) */
		#eab308 72deg 106deg,
		/* Пробел */
		transparent 106deg 108deg,
		
		/* Сегмент 4 (Светло-зеленый) */
		#84cc16 108deg 142deg,
		/* Пробел */
		transparent 142deg 144deg,
		
		/* Сегмент 5 (Зеленый) */
		#22c55e 144deg 178deg,
		/* Пробел в конце */
		transparent 178deg 180deg
	);
	
	/* Остальное - как было */
	border-top-left-radius: 150px;
	border-top-right-radius: 150px;
	box-sizing: border-box;
}

.mood-gauge__mask-bg {
	/* Маска, которая делает спидометр "пончиком" */
	position: absolute;
	width: 268px; /* 300 - 16 (толщина) * 2 */
	height: 134px; /* 150 - 16 */
	background: #eee; /* Фон kpi-card */
	border-top-left-radius: 134px;
	border-top-right-radius: 134px;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2; /* Под бегунком */
}

/* Контейнер, который вращается */
.mood-gauge__needle-container {
	position: absolute;
	width: 1px; /* Сжимаем контейнер до 1px, чтобы он был просто "осью" */
	height: 150px;
	bottom: 0; /* Ось вращения - центр */
	left: 50%; /* Ставим ось по центру */
	display: flex;
	justify-content: center;
	/* Изначальный поворот (на '1') */
	transform: rotate(-90deg); 
	transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
	z-index: 5; /* Поверх маски и текста */
	
	/* --- ИСПРАВЛЕНИЕ 1: Явно задаем ось вращения --- */
	transform-origin: 50% 100%; /* (bottom center) */
	
	/* ВАЖНО: УБИРАЕМ СТИЛИ СТАРОЙ СТРЕЛКИ */
	background: none;
}
/* УБИРАЕМ ПСЕВДО-ЭЛЕМЕНТЫ СТАРОЙ СТРЕЛКИ */
.mood-gauge__needle-container::before,
.mood-gauge__needle-container::after {
	display: none;
}


/* Новый "бегунок" (точка) */
.mood-gauge__ticker-dot {
	position: absolute;
	
	/* --- ИСПРАВЛЕНИЕ 2: Позиционируем от ОСИ ВРАЩЕНИЯ --- */
	/* Убираем 'top', используем 'bottom' */
	/* 150px (радиус дуги) - 8px (половина толщины дуги) = 142px */
	/* (12px - половина высоты самого "бегунка") */
	bottom: calc(142px - 12px); 
	
	/* Центрируем бегунок (12px - половина ширины) */
	left: -12px; 
	
	width: 24px;
	height: 24px;
	background: #1f2937;
	border: 4px solid #fff;
	border-radius: 50%;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Текст (цифра + описание) в центре */
.mood-gauge__readout {
	position: absolute;
	/* Позиционируем по центру полукруга */
	bottom: 10px; 
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	z-index: 4; /* Поверх маски */
}