/*
---
--- Файл: /public/assets/css/style.css
--- Версия: 4.040 | 20.11.2025 12:25
--- Изменения:
--- - ДОБАВЛЕНО: Стили для toast-warning в глобальных уведомлениях.
---
*/

/* ================================================================== */
/* --- 1. ШРИФТЫ (GT Walsheim Pro) v.4.040 --- */
/* ================================================================== */

/* --- A. Normal Width --- */

/* 100 - UltraLight */
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-UltraLight.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-stretch: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-UltraLightOblique.woff2') format('woff2');
    font-weight: 100;
    font-style: italic;
    font-stretch: normal;
    font-display: swap;
}

/* 200 - Thin */
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-Thin.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-stretch: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-ThinOblique.woff2') format('woff2');
    font-weight: 200;
    font-style: italic;
    font-stretch: normal;
    font-display: swap;
}

/* 300 - Light */
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-stretch: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-LightOblique.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
    font-stretch: normal;
    font-display: swap;
}

/* 400 - Regular */
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-stretch: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-RegularOblique.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-stretch: normal;
    font-display: swap;
}

/* 500 - Medium */
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-stretch: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-MediumOblique.woff2') format('woff2');
    font-weight: 500;
    font-style: italic;
    font-stretch: normal;
    font-display: swap;
}

/* 600 - Semibold (ПРОПУСКАЕМ ПО ЗАПРОСУ) */

/* 700 - Bold */
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-stretch: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-BoldOblique.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-stretch: normal;
    font-display: swap;
}

/* 800 - Black */
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-Black.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-stretch: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-BlackOblique.woff2') format('woff2');
    font-weight: 800;
    font-style: italic;
    font-stretch: normal;
    font-display: swap;
}

/* 900 - UltraBold */
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-UltraBold.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-stretch: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-UltraBoldOblique.woff2') format('woff2');
    font-weight: 900;
    font-style: italic;
    font-stretch: normal;
    font-display: swap;
}

/* --- B. Condensed Width --- */

/* 100 - Condensed UltraLight */
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-CondensedUltraLight.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-stretch: condensed;
    font-display: swap;
}
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-CondensedUltraLightOblique.woff2') format('woff2');
    font-weight: 100;
    font-style: italic;
    font-stretch: condensed;
    font-display: swap;
}

/* 200 - Condensed Thin */
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-CondensedThin.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-stretch: condensed;
    font-display: swap;
}
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-CondensedThinOblique.woff2') format('woff2');
    font-weight: 200;
    font-style: italic;
    font-stretch: condensed;
    font-display: swap;
}

/* 300 - Condensed Light */
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-CondensedLight.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-stretch: condensed;
    font-display: swap;
}
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-CondensedLightOblique.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
    font-stretch: condensed;
    font-display: swap;
}

/* 400 - Condensed Regular */
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-CondensedRegular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-stretch: condensed;
    font-display: swap;
}
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-CondensedRegularOblique.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-stretch: condensed;
    font-display: swap;
}

/* 500 - Condensed Medium */
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-CondensedMedium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-stretch: condensed;
    font-display: swap;
}
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-CondensedMediumOblique.woff2') format('woff2');
    font-weight: 500;
    font-style: italic;
    font-stretch: condensed;
    font-display: swap;
}

/* 700 - Condensed Bold */
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-CondensedBold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-stretch: condensed;
    font-display: swap;
}
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-CondensedBoldOblique.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-stretch: condensed;
    font-display: swap;
}

/* 800 - Condensed Black */
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-CondensedBlack.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-stretch: condensed;
    font-display: swap;
}
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-CondensedBlackOblique.woff2') format('woff2');
    font-weight: 800;
    font-style: italic;
    font-stretch: condensed;
    font-display: swap;
}

/* 900 - Condensed UltraBold */
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-CondensedUltraBold.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-stretch: condensed;
    font-display: swap;
}
@font-face {
    font-family: 'GT Walsheim Pro';
    src: url('https://lib.sofu.win/fonts/GTWalsheimPro-CondensedUltraBoldOblique.woff2') format('woff2');
    font-weight: 900;
    font-style: italic;
    font-stretch: condensed;
    font-display: swap;
}


/* 2. Цветовые переменные для тем */
:root {
    /* Темная тема (по умолчанию) */
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-header: rgba(18, 18, 18, 0.85);
    --bg-interactive: #333;
    --border-color: #333;
    --text-primary: #E0E0E0;
    --text-secondary: #BDBDBD;
    --text-logo: #FFFFFF;
    --accent-primary: #8888FF;
    --accent-primary-text: #121212;
    --accent-hover: #FFFFFF;
    /* Цвета для кнопок */
    --btn-primary-bg: #4f46e5;
    --btn-primary-hover-bg: #4338ca;
    --btn-secondary-bg: #4b5563;
    --btn-secondary-hover-bg: #374151;
    --btn-secondary-text: #f3f4f6;
    --btn-success-bg: #16a34a;
    --btn-success-hover-bg: #15803d;
}


body.light-theme {
    /* Светлая тема */
/*    --bg-primary: #C5C5C5;
    --bg-secondary: #E0E0E0;
    --bg-header: rgba(240, 240, 240, 0.85);
    --bg-interactive: #e0e0e0;
    --border-color: #d1d1d1;
    --text-primary: #212121;
    --text-secondary: #555555;
    --text-logo: #000000;
    --accent-primary: #444488;
    --accent-primary-text: #FFFFFF;
    --accent-hover: #000000; */
    --bg-primary: #f3f4f6; /* bg-gray-100 */
    --bg-secondary: #ffffff; /* bg-white */
    --bg-header: rgba(255, 255, 255, 0.85);
    --bg-interactive: #e5e7eb; /* bg-gray-200 */
    --border-color: #d1d5db; /* border-gray-300 */
    --text-primary: #111827; /* text-gray-900 */
    --text-secondary: #4b5563; /* text-gray-600 */
    --text-logo: #000000;
    --accent-primary: #4f46e5; /* indigo-600 */
    --accent-primary-text: #FFFFFF;
    --accent-hover: #3730a3; /* indigo-800 */
    /* Цвета для кнопок в светлой теме */
    --btn-primary-bg: #4f46e5;
    --btn-primary-hover-bg: #4338ca;
    --btn-secondary-bg: #e5e7eb;
    --btn-secondary-hover-bg: #d1d5db;
    --btn-secondary-text: #1f2937;
    --btn-success-bg: #22c55e;
    --btn-success-hover-bg: #16a34a;
}
/* ================================================================== */
/* --- НОВЫЙ БЛОК: Стили для кнопок --- */
/* ================================================================== */
.btn {
    display: inline-block;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background-color 0.2s, transform 0.1s;
    user-select: none;
    text-align: center;
}
.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: var(--btn-primary-hover-bg);
}

.btn-secondary {
    background-color: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
}
.btn-secondary:hover {
    background-color: var(--btn-secondary-hover-bg);
}

.btn-success {
    background-color: var(--btn-success-bg);
    color: #ffffff;
}
.btn-success:hover {
    background-color: var(--btn-success-hover-bg);
}

.btn-danger {
    background-color: #dc2626; /* Tailwind red-600 */
    color: white;
}
.btn-danger:hover {
    background-color: #b91c1c; /* Tailwind red-700 */
}

/* 3. Глобальные стили и гибридное масштабирование */
html {
    /* Базовый размер для стандарта 1280px. 1rem = 16px */
    font-size: 14px; 
}
/* --- СТУПЕНЧАТОЕ МАСШТАБИРОВАНИЕ ДЛЯ БОЛЬШИХ ЭКРАНОВ --- */
@media (min-width: 960px) { html { font-size: 15px; } }
@media (min-width: 1024px) { html { font-size: 16px; } }
@media (min-width: 1280px) { html { font-size: 17px; } }
@media (min-width: 1440px) { html { font-size: 18px; } }
@media (min-width: 1600px) { html { font-size: 19px; } }
@media (min-width: 1920px) { html { font-size: 20px; } }
@media (min-width: 2560px) { html { font-size: 21px; } }


body {
    font-family: 'GT Walsheim Pro', sans-serif;
    margin: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    scroll-behavior: smooth;
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

/* 4. Стили для шапки сайта (header) */
header {
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 0.9375rem 5%; /* 15px -> rem */
    background-color: var(--bg-header);
    backdrop-filter: blur(10px); 
    border-bottom: 0.0625rem solid var(--border-color); /* 1px -> rem */
    transition: background-color 0.3s, border-color 0.3s;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem; /* 12px -> rem */
}

.logo-image {
    height: 2.8125rem; /* 45px -> rem */
    width: auto;
}

/* По умолчанию показываем темный логотип, скрываем светлый */
.logo-light {
    display: none;
}
.logo-dark {
    display: block;
}

/* Когда тема светлая, делаем наоборот */
body.light-theme .logo-light {
    display: block;
}
body.light-theme .logo-dark {
    display: none;
}

header .logo .logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-logo);
    white-space: nowrap;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-link:hover {
    color: var(--text-primary);
}
.main-button {
    background-color: var(--accent-primary);
    color: var(--accent-primary-text);
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
    white-space: nowrap;
}
.main-button:hover {
    background-color: var(--accent-hover);
    color: var(--bg-secondary);
    transform: translateY(-0.125rem); /* 2px -> rem */
    box-shadow: 0 0.25rem 0.625rem rgba(0,0,0,0.2); /* 4px 10px -> rem */
}
#language-switcher-header {
    position: relative;
    margin-left: 1.25rem;
}
#language-switcher-button {
    background: none; border: none; color: var(--text-primary);
    cursor: pointer; display: flex; align-items: center;
    font-weight: 500; padding: 0.32rem
}
#language-switcher-button:hover {
    color: var(--accent-primary);
}
#language-switcher-button img {
    width: 1.25rem; height: 1.25rem; border-radius: 50%;
}

#language-options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-secondary);
    border: 0.0625rem solid var(--border-color); /* 1px -> rem */
    border-radius: 0.5rem;
    padding: 0.5rem;
    min-width: 12.5rem; /* 200px -> rem */
}
.language-option {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 0.25rem;
}
.language-option:hover {
    background-color: var(--bg-primary);
}
.language-option img {
    width: 1.5rem; /* 24px -> rem */
    margin-right: 0.75rem;
}

/* ==================================================================
--- 5. СТИЛИ ДЛЯ КОМПОНЕНТОВ (АВАТАРЫ) ---
==================================================================
*/
.avatar-image, .avatar-placeholder {
    object-fit: cover;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-size: 1.5em; /* Размер шрифта будет масштабироваться относительно размера контейнера */
    line-height: 1;
}
.avatar-placeholder span {
    display: block;
    transform: scale(0.8); 
}
/* Формы аватара */
.shape-circle, 
.shape-circle-3d { border-radius: 9999px; } /* Используем большое значение для идеального круга */
.shape-square,
.shape-square-3d { border-radius: 0; }
.shape-rounded,
.shape-rounded-3d { border-radius: 0.75rem; }
/* 3D-эффекты для аватара */
.shape-circle-3d,
.shape-square-3d,
.shape-rounded-3d {
    border-width: 3px;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.5), inset 1px 1px 2px rgba(255,255,255,0.3);
}
.shape-circle-3d { border-color: #bababa #4a4a4a #4a4a4a #bababa; }
.shape-square-3d { border-color: #4a4a4a #bababa #bababa #4a4a4a; }
.shape-rounded-3d { border-color: #888888 #cccccc #cccccc #888888; }


/* 6. Адаптивный дизайн для главной страницы */

/* Общий контейнер для секций на главной */
.screen {
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    align-items: center; 
    text-align: center; 
    min-height: 100vh;
    padding: 5rem 1.5rem;
    box-sizing: border-box; 
    position: relative;
    overflow: hidden; 
    border-bottom: 0.0625rem solid var(--border-color); /* 1px -> rem */
}

/* Контейнер для контента с максимальной шириной */
.screen .content { 
    position: relative; 
    z-index: 2; 
    width: 100%;
    max-width: 80rem; /* 1280px -> rem */
    margin: 0 auto;
}

/* Задний фон (видео или изображение) */
.background-media {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 1; opacity: 0.5;
}
.background-holder {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 1; opacity: 0.2;
    background-size: cover; background-position: center center;
}

/* Убираем нижнюю границу у последней секции внутри main */
main > .screen:last-of-type {
    border-bottom: none;
}

/* Типографика в rem */
.title1 { font-size: 4.5rem; margin-bottom: 1.25rem; text-shadow: 0 0 1rem rgba(0,0,0,0.7); font-weight: 700; }
.title2 { font-size: 3rem; margin-bottom: 3.125rem; font-weight: 700; }
.subtitle { font-size: 1.6rem; margin-bottom: 2.5rem; color: #BDBDBD; }
.scroll-button { display: inline-block; padding: 1.125rem 2.2rem; font-size: 1.1rem; font-weight: 700; color: var(--accent-primary-text); background-color: var(--accent-primary); border-radius: 0.5rem; text-decoration: none; transition: all 0.3s ease; }
.scroll-button:hover { background-color: var(--accent-hover); color: var(--bg-secondary); transform: scale(1.05); }

/* Сетка преимуществ */
.promise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; text-align: left; }
.promise-item { display: flex; align-items: center; }
.promise-item img { width: 3.75rem; height: 3.75rem; margin-right: 1.25rem; border-radius: 10%; }
.promise-item p { margin: 0; font-size: 1.3rem; font-weight: 500;}

/* Колонки с логикой */
.logic-columns { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; margin-top: 2.5rem; }
.column { flex-basis: 20.6rem; background: rgba(128, 128, 128, 0.1); padding: 1.875rem; border-radius: 0.625rem; text-align: center; }
.column img { width: 5.6rem; height: 5.6rem;  border-radius: 10%; margin: auto}
.column h3 { font-size: 1.5rem; color: var(--accent-primary); margin-top: 1.25rem; font-weight: 700; }
.column p { font-size: 1.2rem; line-height: 1.6; font-weight: 500;}

/* Сетка концептов */
.concepts-grid { display: flex; justify-content: center; gap: 1.875rem; flex-wrap: wrap; margin: 2.5rem 0; }
.concept-item img { width: 11.25rem; height: 11.25rem; object-fit: cover; border-radius: 1rem; border: 0.125rem solid #444; } /* 2px -> rem */

#trust .content { max-width: 56.25rem; }
#trust p { font-size: 1.4rem; max-width: 50rem; margin: 2.5rem auto 0; }
#cta-button { font-size: 1.2rem; padding: 1.25rem 2.5rem; margin-top: 2.5rem; }


/* 7. Адаптивность для малых экранов */
@media (max-width: 1024px) {
    .title1 { font-size: 3.5rem; }
    .title2 { font-size: 2.5rem; }
    .subtitle { font-size: 1.4rem; }
}

/* --- Планшеты и большие телефоны (< 768px) --- */
@media (max-width: 768px) {
    .screen { padding: 4rem 1rem; }
    .title1 { font-size: 2.8rem; }
    .title2 { font-size: 2.2rem; margin-bottom: 2rem; }
    .subtitle { font-size: 1.2rem; }

    /* Перестраиваем сетку в одну колонку */
    .promise-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .promise-item p { font-size: 1.1rem; }

    .logic-columns { flex-direction: column; align-items: center; }
    .column { flex-basis: 100%; max-width: 25rem; } /* 400px -> rem */
}

/* --- Мобильные телефоны (< 480px) --- */
@media (max-width: 480px) {
    .title1 { font-size: 2.2rem; }
    .title2 { font-size: 1.8rem; }
    .subtitle { font-size: 1.1rem; }
    .scroll-button { padding: 1rem 1.5rem; font-size: 1rem; }

    .concepts-grid { gap: 1rem; }
    .concept-item img { width: 8rem; height: 8rem; }

    #trust p { font-size: 1.1rem; }
}
/* ================================================================== */
/* --- 6. Глобальная настройка шрифтов для мобильных устройств --- */
/* ================================================================== */
body.is-mobile-device {
    /* Устанавливаем жесткий базовый размер шрифта в 16px.
       Теперь 1rem на мобильных устройствах будет равен 16px,
       что является комфортным минимумом для чтения. */
    font-size: 1.3rem;

    /* Запрещает браузерам на iOS (Safari) самостоятельно
       увеличивать или уменьшать текст, сохраняя наш контроль. */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
/* ================================================================== */
/* --- 7. Глобальные стили для полей ввода на мобильных устройствах --- */
/* ================================================================== */
body.is-mobile-device input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
body.is-mobile-device textarea,
body.is-mobile-device select,
body.is-mobile-device button,
body.is-mobile-device label {
    /* Устанавливаем комфортный размер шрифта для всех полей ввода на мобильных */
    font-size: 1.2rem; /* 16px */
}


/* ================================================================== */
/* --- 8. Стили для прелоадера --- */
/* ================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #111; /* Темный фон */
    z-index: 9999; /* Поверх всего остального контента */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out; /* Плавное исчезновение */
    opacity: 1;
    visibility: visible;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Стили для GIF-логотипа в прелоадере */
.preloader-logo {
    width: 90px;  /* Вдвое больше, чем 45px в шапке */
    height: 90px;
    object-fit: cover;
    box-sizing: border-box; /* Учитываем рамку внутри размеров */
}

/* ================================================================== */
/* --- 9. Адаптивность для Панели Управления --- */
/* ================================================================== */

/* Стили для устройств с вертикальной ориентацией и шириной до 1023px */
@media (max-width: 1023px), (orientation: portrait) {
    /* Скрываем основной сайдбар по умолчанию */
    #sidebar-container {
        pointer-events: none;
    }
    
    #sidebar-container.is-open {
        pointer-events: auto;
    }

    #sidebar-container.is-open #sidebar-overlay {
        display: block;
        opacity: 1;
        transition: opacity 0.3s ease-in-out;
    }
    
    #sidebar-container.is-open #sidebar {
        transform: translateX(0);
    }
    
    main > .flex-1 {
        padding-left: 1rem;
    }

    /* --- Прячем/показываем элементы в шапке --- */
    /* Скрываем десктопное меню и десктопный блок пользователя */
    header nav.hidden.md\:flex, 
    header .hidden.md\:flex {
        display: none;
    }

    /* Показываем мобильные элементы */
    header #sidebar-toggle,
    header .relative.md\:hidden,
    header .flex-grow.md\:hidden { 
        display: flex;
    }

    /* Увеличиваем иконку-бургер */
    header #sidebar-toggle svg {
        width: 2rem; /* 32px */
        height: 2rem;
    }
}

/* ================================================================== */
/* --- 10. Анимация для кнопки чат-бота на главной (НОВЫЙ БЛОК) --- */
/* ================================================================== */

@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(136, 136, 255, 0.7); } /* --accent-primary для темной темы */
    70% { box-shadow: 0 0 0 1.25rem rgba(136, 136, 255, 0); } /* 20px */
    100% { box-shadow: 0 0 0 0 rgba(136, 136, 255, 0); }
}

@keyframes pulse-animation-light {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7); } /* --accent-primary для светлой темы */
    70% { box-shadow: 0 0 0 1.25rem rgba(79, 70, 229, 0); } /* 20px */
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

/* Применяем анимацию только на главной странице (класс landing-page) */
body.landing-page #chatbot-fab {
    /* Увеличиваем кнопку для акцента */
    width: 4.375rem; /* 70px */
    height: 4.375rem; /* 70px */
    animation: pulse-animation 2s infinite;
}

body.light-theme.landing-page #chatbot-fab {
    animation-name: pulse-animation-light;
}


/* ================================================================== */
/* --- 11. СТИЛИ ДЛЯ БЛОКА УПРАВЛЕНИЯ ГОЛОТИПОМ (перенесено из cp_axiopedia_structure.css) --- */
/* ================================================================== */

/* Стиль для ЛОГОТИПА (тень по рамке) */
.logotype-image-shadow {
    border-radius: 0.5rem;
    /* Эффект света из левого верхнего угла для темной темы */
    box-shadow: 
        -3px -3px 6px rgba(0, 0, 0, 0.9),
        3px 3px 6px rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease-in-out;
}
.logotype-image-shadow:hover {
    transform: scale(1.02);
}
body.light-theme .logotype-image-shadow {
    /* Эффект света из левого верхнего угла для светлой темы */
    box-shadow: 
        -4px -4px 8px rgba(255, 255, 255, 0.9),
        4px 4px 8px rgba(0, 0, 0, 0.9);
}

/* Стиль для ГОЛОТИПА (тень по контуру) */
.holotype-image-shadow {
    /* Тень по контуру непрозрачных пикселей */
    filter: 
        drop-shadow(-3px -3px 4px rgba(0, 0, 0, 0.9))
        drop-shadow(3px 3px 4px rgba(255, 255, 255, 0.9));
    transition: transform 0.2s ease-in-out;
}
.holotype-image-shadow:hover {
    transform: scale(1.02);
}
body.light-theme .holotype-image-shadow {
    /* Эффект света из левого верхнего угла для светлой темы */
    filter: 
        drop-shadow(-4px -4px 6px rgba(255, 255, 255, 0.9))
        drop-shadow(4px 4px 6px rgba(0, 0, 0, 0.9));
}

/* ================================================================== */
/* --- 12. Стили для подсказки у логотипа (НОВЫЙ БЛОК) --- */
/* ================================================================== */
.logo-tooltip {
    position: absolute;
    top: calc(100% + 12px); /* Появляется под шапкой с отступом */
    left: 1rem; /* Отступ слева */
    background-color: var(--accent-primary);
    color: var(--accent-primary-text);
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    z-index: 1001; /* Выше шапки */
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateY(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 250px;
    pointer-events: none; /* Чтобы не мешала кликам */
}

/* Класс 'hidden' используется для начального скрытия, 'visible' для анимации */
.logo-tooltip:not(.hidden) {
    display: block;
}

.logo-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.logo-tooltip-arrow {
    position: absolute;
    bottom: 100%; /* Указывает вверх, на шапку */
    left: 2rem; /* Позиционируем стрелку примерно над логотипом */
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--accent-primary);
}

.logo-tooltip-text {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

/* Скрываем подсказку на десктопных экранах */
@media (min-width: 768px) {
    .logo-tooltip {
        display: none !important;
    }
}

/* ================================================================== */
/* --- 25. ГЛОБАЛЬНЫЕ СТИЛИ ДЛЯ ИНДИКАТОРА "ИСТОРИИ" (GAUGE) --- */
/* v. 4.001 | 06.09.2025 07:00 */
/* ================================================================== */

/* Контейнер, который будет содержать фон и стрелку */
.gauge-container {
    position: relative;
    display: inline-flex; /* Используем inline-flex, чтобы контейнер занимал размер картинки */
    align-items: center;
    justify-content: center;
}

/* --- НАСТРОЙКИ ТЕНИ ДЛЯ ФОНА --- */
.gauge-background {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    /* Тень для темной темы по умолчанию */
    filter: drop-shadow(0px 5px 10px rgba(255, 255, 255, 0.4));
}
/* Тень фона для СВЕТЛОЙ ТЕМЫ */
.light-theme .gauge-background {
    filter: drop-shadow(0px 5px 10px rgba(0, 0, 0, 0.15));
}


/* --- НАСТРОЙКИ ТЕНИ ДЛЯ СТРЕЛКИ --- */
.gauge-arrow-img {
    position: absolute;
    bottom: 0%; /* Центрируем точку вращения по вертикали */
    left: 50%;   /* Центрируем точку вращения по горизонтали */
    
    /* Точка вращения - нижний центр картинки */
    transform-origin: bottom center;
    
    /* Плавная анимация поворота */
    transition: transform 0.8s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    
    z-index: 5; /* Стрелка всегда поверх фона */
    
    /* Тень стрелки для темной темы по умолчанию */
    filter: drop-shadow(2px 4px 6px rgba(255, 255, 255, 0.7));
}
/* Тень стрелки для СВЕТЛОЙ ТЕМЫ */
.light-theme .gauge-arrow-img {
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.25));
}

/* ================================================================== */
/* --- 26. НОВЫЙ БЛОК: СТИЛИ ДЛЯ ПАНЕЛИ УПРАВЛЕНИЯ ИНДИКАТОРОМ --- */
/* ================================================================== */

.gauge-controls-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem; /* 12px */
    margin-top: 1rem; /* 16px */
}

.gauge-control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem; /* 48px */
    height: 3rem; /* 48px */
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background-color: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.gauge-control-btn svg {
    width: 1.5rem; /* 24px */
    height: 1.5rem; /* 24px */
    color: var(--text-secondary);
    transition: color 0.2s;
}

.gauge-control-btn:active {
    transform: scale(0.95);
}

/* Стили для кнопки "Плохо" */
.gauge-control-btn.btn-decrease:hover {
    background-color: #ef4444; /* red-500 */
    border-color: #ef4444;
}
.gauge-control-btn.btn-decrease:hover svg {
    color: white;
}

/* Стили для кнопки "Ок" (нейтральная) */
.gauge-control-btn.btn-ok {
    cursor: default;
}
.gauge-control-btn.btn-ok svg {
     color: var(--text-primary);
}

/* Стили для кнопки "Отлично" */
.gauge-control-btn.btn-increase:hover {
    background-color: #22c55e; /* green-500 */
    border-color: #22c55e;
}
.gauge-control-btn.btn-increase:hover svg {
    color: white;
}

/* Стили для кнопки "Плохо" */
.gauge-control-btn.btn-decrease:hover {
    background-color: #ef4444; /* red-500 */
    border-color: #ef4444;
}
.gauge-control-btn.btn-decrease:hover svg {
    color: white;
}
.gauge-control-btn.btn-decrease.selected {
    background-color: #b91c1c; /* red-700 */
    border-color: #b91c1c;
}
.gauge-control-btn.btn-decrease.selected svg {
    color: white;
}


/* Стили для кнопки "Ок" (нейтральная) */
.gauge-control-btn.btn-ok:hover {
    background-color: #22c55e; /* green-500 */
    border-color: #22c55e;
}
.gauge-control-btn.btn-ok:hover svg {
    color: white;
}
.gauge-control-btn.btn-ok.selected {
    background-color: #15803d; /* green-700 */
    border-color: #15803d;
}
.gauge-control-btn.btn-ok.selected svg {
    color: white;
}


/* Стили для кнопки "Отлично" */
.gauge-control-btn.btn-increase:hover {
    background-color: #8b5cf6; /* violet-500 */
    border-color: #8b5cf6;
}
.gauge-control-btn.btn-increase:hover svg {
    color: white;
}
.gauge-control-btn.btn-increase.selected {
    background-color: #6d28d9; /* violet-700 */
    border-color: #6d28d9;
}
.gauge-control-btn.btn-increase.selected svg {
    color: white;
}

/* ================================================================== */
/* --- 27. АДАПТИВНЫЙ ВИДЖЕТ РЕПУТАЦИИ (ИСПРАВЛЕННЫЕ СТИЛИ v4) --- */
/* ================================================================== */

/* Общий контейнер для индикатора и кнопок */
.reputation-widget {
    /* --gauge-size устанавливается через JS для адаптивности */
    width: var(--gauge-size, 150px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Панель управления ВНУТРИ виджета */
.reputation-widget .gauge-controls-panel {
    width: 100%;
    margin-top: 0.2rem; /* отступ кнопок от индикатора по вертикали */
    display: flex;
    justify-content: space-between;
    position: relative; /* ИСПРАВЛЕНИЕ: Добавляем позиционирование */
    z-index: 10; /* ИСПРАВЛЕНИЕ: Поднимаем панель над индикатором */
}

/* Сами кнопки ВНУТРИ виджета - новый, более надежный подход */
.reputation-widget .gauge-control-btn {
    width: 32%; /* 32% вместо 33.33% для избежания ошибок округления */
    aspect-ratio: 1 / 1; /* Гарантирует, что кнопка всегда будет круглой */
    height: auto;
    border-radius: 50%;
    border: none;
    padding: 0;
    
    /* Делаем кнопку flex-контейнером для идеального центрирования SVG */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Стили по умолчанию и при наведении */
    background-color: var(--bg-secondary);
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease;
}

.reputation-widget .gauge-control-btn:active {
    transform: scale(0.95);
}

/* SVG иконка внутри кнопки */
.reputation-widget .gauge-control-btn svg {
    /* ИЗМЕНЕНО: Размер иконки увеличен с 50% до 60% для лучшей видимости */
    width: 60%;
    height: 60%;
    color: var(--text-secondary);
    transition: color 0.2s ease-in-out;
}

/* --- Динамические цвета для кнопок виджета --- */

/* --- Кнопка Уменьшить (Красная) --- */
/* 1. Невыделенное состояние */
.reputation-widget .gauge-control-btn.btn-decrease { background-color: rgba(239, 68, 68, 0.2); } /* red-500 с 30% непрозрачности */
/* 2. Наведение на невыделенную */
.reputation-widget .gauge-control-btn.btn-decrease:hover { background-color: #ef4444; } /* red-500 */
/* 3. Выделенное состояние */
.reputation-widget .gauge-control-btn.btn-decrease.selected { background-color: #b91c1c; } /* red-700 */
/* 4. Наведение на выделенную */
.reputation-widget .gauge-control-btn.btn-decrease.selected:hover { background-color: #dc2626; } /* red-600 */


/* --- Кнопка OK (Зеленая) --- */
/* 1. Невыделенное состояние */
.reputation-widget .gauge-control-btn.btn-ok { background-color: rgba(34, 197, 94, 0.2); } /* green-500 с 30% непрозрачности */
/* 2. Наведение на невыделенную */
.reputation-widget .gauge-control-btn.btn-ok:hover { background-color: #22c55e; } /* green-500 */
/* 3. Выделенное состояние */
.reputation-widget .gauge-control-btn.btn-ok.selected { background-color: #15803d; } /* green-700 */
/* 4. Наведение на выделенную */
.reputation-widget .gauge-control-btn.btn-ok.selected:hover { background-color: #16a34a; } /* green-600 */


/* --- Кнопка Увеличить (Фиолетовая) --- */
/* 1. Невыделенное состояние */
.reputation-widget .gauge-control-btn.btn-increase { background-color: rgba(139, 92, 246, 0.2); } /* violet-500 с 30% непрозрачности */
/* 2. Наведение на невыделенную */
.reputation-widget .gauge-control-btn.btn-increase:hover { background-color: #8b5cf6; } /* violet-500 */
/* 3. Выделенное состояние */
.reputation-widget .gauge-control-btn.btn-increase.selected { background-color: #6d28d9; } /* violet-700 */
/* 4. Наведение на выделенную */
.reputation-widget .gauge-control-btn.btn-increase.selected:hover { background-color: #7c3aed; } /* violet-600 */


/* Цвет иконки при наведении или выборе */
.reputation-widget .gauge-control-btn:hover svg,
.reputation-widget .gauge-control-btn.selected svg {
    color: white;
}

/* ================================================================== */
/* --- 28. СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ОЦЕНКИ --- */
/* ================================================================== */
.evaluation-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000; /* Выше всего, включая шапку */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.evaluation-overlay.visible {
    opacity: 1;
    visibility: visible;
}
.evaluation-modal {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.evaluation-overlay.visible .evaluation-modal {
    transform: scale(1);
}
.evaluation-modal-header {
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}
.evaluation-modal-body {
    padding: 1.5rem;
    display: flex;
    gap: 2rem;
}
.evaluation-column {
    flex: 1;
}
.evaluation-column h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}
.evaluation-modal-body label {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
}
.evaluation-modal-body input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    cursor: pointer;
}
.evaluation-modal-footer {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    border-radius: 0 0 0.75rem 0.75rem;
}
/* Адаптивность для мобильных */
@media (max-width: 640px) {
    .evaluation-modal-body {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ================================================================== */
/* --- 29. Стили для нового таб-интерфейса уведомлений  --- */
/* ================================================================== */

.notification-tab {
    background-color: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    width: 50%;
}
.notification-tab.active-tab {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}
.notification-tab:hover:not(.active-tab) {
    background-color: var(--bg-interactive);
}

/* Стили для новых уведомлений */
.notification-item {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--border-color);
	transition: opacity 0.3s ease-out;
}
.notification-item:last-child {
	border-bottom: none;
}
.notification-body {
	color: var(--text-secondary);
}
.notification-actions {
	margin-top: 0.75rem;
	display: flex;
	gap: 0.5rem;
	justify-content: flex-end;
}

/* ================================================================== */
/* --- 30. Стили для модального окна автоперевода (из main.js) --- */
/* ================================================================== */
#translation-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #e0e0e0;
}
.translation-modal {
    background-color: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.translation-modal-header {
    padding: 1rem;
    border-bottom: 1px solid #4a5568;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
}
.translation-modal-body {
    padding: 1rem;
    overflow-y: auto;
    flex-grow: 1;
}
#translation-log-container {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}
#translation-log-container p {
    margin: 0 0 0.5em 0;
    word-break: break-all;
}
#translation-log-container .log-key { color: #90cdf4; }
#translation-log-container .log-source { color: #faf089; }
#translation-log-container .log-success { color: #9ae6b4; }
#translation-log-container .log-error { color: #f56565; }
#translation-log-container .log-info { color: #a0aec0; }
.translation-modal-footer {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #4a5568;
}
.close-translation-modal-btn {
    background-color: #4a5568;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.close-translation-modal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ================================================================== */
/* --- 31. Стили для страницы "Холл Клуба" (из dashboard.php) --- */
/* ================================================================== */
.plan-card { 
    background-color: var(--bg-secondary); 
    border: 1px solid var(--border-color); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.plan-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.plan-card.highlight { border-color: var(--accent-primary); border-width: 2px; }
.feature-list li { display: flex; align-items: flex-start; }
.feature-list svg { flex-shrink: 0; margin-top: 5px; margin-right: 0.75rem; }
.social-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

/* ================================================================== */
/* --- 32. СТИЛИ ДЛЯ КАРТОЧКИ ПОЛЬЗОВАТЕЛЯ (из cp_search.css) --- */
/* ================================================================== */

.user-card {
    position: relative;
    aspect-ratio: 736 / 414;
    border-radius: 1rem;
    overflow: hidden;
    color: white;
    box-shadow: 0 0.625rem 1.25rem rgba(0, 0, 0, 0.4); /* 10px 20px -> rem */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.user-card:hover {
    transform: translateY(-0.3125rem); /* 5px -> rem */
    box-shadow: 0 0.9375rem 1.5625rem rgba(0, 0, 0, 0.5); /* 15px 25px -> rem */
}

.user-card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #000;
}

.user-card-background video,
.user-card-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    padding: 0.8rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.user-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem; /* 10px -> rem */
}

.user-card-avatar-link {
    flex-shrink: 0;
}

.user-card-avatar {
    width: 4rem; /* 75px -> rem */
    height: 4rem; /* 75px -> rem */
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0.625rem rgba(0,0,0,0.5); /* 10px -> rem */
    object-fit: cover;
    transition: transform 0.3s ease;
}
.user-card-avatar:hover {
    transform: scale(1.05);
}

.user-card-info-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; 
    min-width: 0;
    width: 100%;
}

.user-card-name {
    /* font-size теперь устанавливается динамически через JS */
    font-size: 1.2rem; 
    font-weight: bold;
    text-align: center;
    margin-top: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    word-break: break-word;
    /* Улучшаем высоту строки для предотвращения "слипания" */
    line-height: 1.25; 
}
.user-card-name a {
    color: white;
    text-decoration: none;
}
.user-card-name a:hover {
    text-decoration: underline;
    color: var(--accent-primary);
}

.user-card-role {
    font-size: 0.85rem;
    font-weight: bold;
    margin-top: 0.125rem; /* 2px -> rem */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.user-card-actions {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.user-card-actions button {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.4rem;
    border-radius: 50%;
    line-height: 1;
    transition: background-color 0.2s, transform 0.2s;
    backdrop-filter: blur(5px);
}
.user-card-actions button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}
.user-card-actions button svg {
    width: 0.9rem;
    height: 0.9rem;
}

.user-card-actions .action-btn-pm.online {
    background-color: #10B981; /* Tailwind emerald-500 */
    border-color: rgba(255, 255, 255, 0.5);
}
.user-card-actions .action-btn-pm.online:hover {
    background-color: #059669; /* Tailwind emerald-600 */
}

.user-card .avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
}

.user-card .avatar-placeholder span {
    font-family: 'Times New Roman', serif; 
    font-size: 2rem; 
    line-height: 1;
}


/* ================================================================== */
/* --- 33. Всплывающие уведомления (глобальный сервис) --- */
/* ================================================================== */
.global-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%); /* Скрыт сверху */
    z-index: 10000; /* Поверх всех модалок (обычно они до 9999) */
    background-color: var(--bg-secondary, #1f1f23);
    border: 1px solid var(--border-color, #333);
    color: var(--text-primary, #fff);
    padding: 12px 24px;
    border-radius: 50px; /* Pill shape */
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2), 0 4px 6px -2px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Эффект пружины */
    font-family: inherit;
    min-width: 300px;
    max-width: 90vw;
    pointer-events: none; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.global-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.global-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Типы уведомлений */
.global-toast.toast-success {
    border-color: #10b981; /* green-500 */
    background-color: rgba(16, 185, 129, 0.95); /* Полупрозрачный зеленый фон */
    color: white;
}
.global-toast.toast-success .global-toast-icon { color: white; }

.global-toast.toast-error {
    border-color: #ef4444; /* red-500 */
    background-color: rgba(239, 68, 68, 0.95);
    color: white;
}
.global-toast.toast-error .global-toast-icon { color: white; }

.global-toast.toast-warning {
    border-color: #f59e0b; /* amber-500 */
    background-color: rgba(245, 158, 11, 0.95);
    color: white;
}
.global-toast.toast-warning .global-toast-icon { color: white; }

.global-toast.toast-info {
    border-color: #3b82f6; /* blue-500 */
    background-color: rgba(59, 130, 246, 0.95);
    color: white;
}
.global-toast.toast-info .global-toast-icon { color: white; }

.global-toast-icon {
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}
.global-toast-message {
    font-size: 0.95rem;
    font-weight: 500;
}