img.graf_nick {
  max-width: 150px !important;
  height: auto !important;
}
.role-icon {
    width: 40px;
height: auto
    vertical-align: middle;
    transition: transform 0.2s ease;
}
.role-icon:hover {
    transform: scale(1.4);
}

/* ===== АЛМАЗНЫЙ БОНУС (отдельно от мешочка) ===== */
.diamond-bag {
    background: linear-gradient(135deg, #00d4ff22, #0099cc22);
    border: 2px solid #00d4ff;
    border-radius: 16px;
    padding: 12px 16px;
    text-align: center;
    margin: 8px 0;
    animation: diamondPulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease;
}
.diamond-bag:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.7);
}
/* Алмазный сундук */
.diamond-bag-img {
    max-width: 60px;  /* Чуть больше для сундука */
    display: block;
    margin: 0 auto 8px;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.7));
    animation: float 3s ease-in-out infinite, glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.7)); }
    50% { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 1)) brightness(1.2); }
}
.diamond-bag-text {
    color: #00d4ff;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 6px rgba(0, 212, 255, 0.5);
}

/* Анонс получения алмазов */
.diamond-win {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border-radius: 20px;
    padding: 12px 16px;
    text-align: center;
    color: white;
    font-weight: bold;
    animation: diamondPop 0.6s ease-out;
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.6);
}

@keyframes diamondPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.4); }
    50% { box-shadow: 0 0 35px rgba(0, 212, 255, 0.8); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes diamondPop {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}
/* ===== ВЫИГРЫШ ИЗ МЕШОЧКА - КРАСИВОЕ ВЫДЕЛЕНИЕ ===== */
.win-announcement {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border-radius: 20px;
    padding: 15px 20px;
    text-align: center;
    animation: winPulse 0.8s ease-out;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    border: 2px solid #fff8e7;
    color: #00629e;
    font-size: 22px;
    font-weight: 900;
}

.win-announcement strong {
    font-size: 1.3em;
    color: #b22222;
    text-shadow: 0 0 3px #fff;
}

.win-announcement strong:last-child {
    font-size: 1.5em;
    color: #ff6600;
}

@keyframes winPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

/* Альтернативное выделение для мешочка */
.gift-bag .win-announcement {
    background: radial-gradient(ellipse at center, #2ecc71 0%, #27ae60 100%);
    color: white;
    text-shadow: 0 0 5px rgba(0,0,0,0.3);
}
/* Анимация пульсации для иконки дня рождения */
.cake-icon,
.birthday-cake {
    display: inline-block;
    animation: birthdayPulse 1.2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes birthdayPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.9;
        text-shadow: 0 0 3px #ff8c00;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
/* ===== РАДИО И ЗАГОЛОВКИ В НИКЛИСТЕ ===== */
.radio-header {
    margin-bottom: 12px;
    text-align: center;
}
.radio-header iframe {
    display: inline-block;
    margin: 0 auto;
    width: 80%;
}

.radio-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent4);
    text-shadow: 0 0 8px var(--glow);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

/* пульсация */
.pulse {
    animation: pulseRadio 1.8s ease-in-out infinite;
}
@keyframes pulseRadio {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.85; }
    100% { transform: scale(1); opacity: 1; }
}

.users-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent2);
    margin: 12px 0 6px;
    text-align: center;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 4px;
}
/* ===== ВЕРХНЯЯ ПАНЕЛЬ – ВЫРАВНИВАНИЕ (исправлено) ===== */
#topdiv {
    display: flex;
    align-items: center;
    height: 40px;
    line-height: 40px;
    padding: 0 10px;
    box-sizing: border-box;
}

/* выпадающие меню */
#topdiv .dropdown {
    position: relative;
    display: inline-block;
    height: 100%;
    margin-right: 6px;
    vertical-align: top;
}
#topdiv .dropdown-main {
    height: 40px !important;
    line-height: 40px !important;
    padding: 0 12px !important;
    box-sizing: border-box;
    font-size: 13px;
    border-radius: 6px;
    margin: 0;
    width: 100%;
}

/* возвращаем выпадающему списку абсолютное позиционирование */
#topdiv .dropdown-child {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    width: 100%;
}

/* иконки‑кнопки в верхнем меню */
#topdiv .top-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
#topdiv .top-icon-btn {
    width: 40px;
    height: 40px !important;
    line-height: 40px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: 6px;
}

/* кнопка списка пользователей */
#topdiv .dropdown-nicklist {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    margin-left: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
/* ===== НИЖНЯЯ ПАНЕЛЬ – ВЫРАВНИВАНИЕ ===== */
#bottomdiv {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 10px;
    box-sizing: border-box;
}

#bottomdiv form {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    margin: 0;
    flex-wrap: nowrap;
}

/* все видимые элементы формы – одна высота, без лишних отступов */
#bottomdiv select,
#bottomdiv input[type="text"],
#bottomdiv input[type="search"],
#bottomdiv input[type="submit"],
#bottomdiv button,
#bottomdiv .top-icon-btn,
#bottomdiv .smile-bottom-btn,
#bottomdiv .mp_record {
    height: 34px !important;
    line-height: 34px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    flex-shrink: 0;
}

/* поле ввода сообщения пусть тянется */
#bottomdiv input[name="text0"] {
    flex: 1 1 auto;
    min-width: 120px;
}

/* автоответчик (чекбокс) */
#bottomdiv .autoreply-label {
    height: 34px;
    line-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
}
#bottomdiv input[type="checkbox"] {
    height: auto;
    margin: 0 2px;
}

/* иконка загрузки файла */
#bottomdiv a.icon-btn {
    height: 34px;
    line-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

/* убираем возможные переносы строк внутри формы */
#bottomdiv br {
    display: none;
}
/* ===== ВЫДЕЛЕНИЕ СООБЩЕНИЙ ===== */
/* Общие стили */
.msg-msg,
.msg-my,
.msg-to-me,
.msg-priv-my,
.msg-priv-to-me,
.msg-priv-my2,
.msg-priv-to-me2 {
    padding: 6px 10px;
    margin: 3px 0;
    border-left: 4px solid transparent;
    border-radius: 6px;
    /* Тень для читаемости текста любого цвета */
    transition: background 0.2s ease;
}

/* 0 - обычное сообщение */
.msg-msg {
    background: rgb(210 210 245 / 78%);
    border-color: transparent;
}

/* 1 - моё сообщение */
.msg-my {
    background: rgb(239 208 196 / 75%);
    border-color: var(--accent);
}

/* 2 - сообщение мне */
.msg-to-me {
    background: rgb(199 235 245 / 73%);
    border-color: var(--accent2);
}

/* 3 - приват от меня */
.msg-priv-my {
    background: var(--highlight-private-my-bg);
    border-color: var(--accent);
    border-left-style: dashed;
}

/* 4 - приват мне */
.msg-priv-to-me {
    background: var(--highlight-private-to-me-bg);
    border-color: var(--accent2);
    border-left-style: dashed;
}

/* 5 - приват мой (отдельное окно) */
.msg-priv-my2 {
    background: rgb(217 205 189 / 79%);
    border-color: var(--accent);
    border-left-style: dotted;
}

/* 6 - приват мне (отдельное окно) */
.msg-priv-to-me2 {
    background: var(--highlight-private-to-me-bg);
    border-color: var(--accent2);
    border-left-style: dotted;
}

/* ===== СТРОКА СТАТУСА В НИКЛИСТЕ ===== */
.user-status-line {
    padding: 8px 10px 8px 30px !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: var(--text) !important;
    background: linear-gradient(135deg, var(--card) 0%, var(--card2) 100%) !important;
    border-left: 3px solid var(--accent) !important;
    border-bottom: 1px dashed var(--border) !important;
    border-radius: 0 8px 8px 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    word-break: break-word !important;
    animation: fadeInStatus 0.4s ease !important;
    position: relative !important;
}
.user-status-line::before {
    content: "💬";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.8;
}
.user-status-line img {
    vertical-align: middle;
    margin: 0 3px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
@keyframes fadeInStatus {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== ТЕМЫ (Огненный по умолчанию) ===== */
:root {
    --bg: #1a0a00;
    --bg2: #2d1405;
    --card: #3d1a08;
    --card2: #4a200a;
    --border: #8B2500;
    --border2: #A52A00;
    --accent: #FF4500;
    --accent2: #FF6B00;
    --accent3: #FF8C00;
    --accent4: #FFD700;
    --text: #FFE4C4;
    --text2: #DEB887;
    --text3: #CD853F;
    --grad1: #FF4500;
    --grad2: #FF8C00;
    --grad3: #FFD700;
    --glow: rgba(255, 69, 0, 0.4);
    --glow2: rgba(255, 140, 0, 0.3);
    --record: #FF2200;
    --recordGlow: rgba(255, 34, 0, 0.7);
    --highlight-msg-bg: rgba(255, 120, 30, 0.08);
    --highlight-my-bg: rgba(255, 69, 0, 0.45);
    --highlight-to-me-bg: rgba(0, 200, 255, 0.45);
    --highlight-private-my-bg: rgba(255, 140, 0, 0.55);
    --highlight-private-to-me-bg: rgba(0, 255, 220, 0.55);
}

/* ===== РОЗОВАЯ ТЕМА ===== */
[data-theme="pink"] {
    --bg: #fff0f5; --bg2: #ffe4ec; --card: #ffd6e7; --card2: #ffc2d4;
    --border: #f8a5c2; --border2: #f78da7; --accent: #ff69b4; --accent2: #ff1493;
    --accent3: #db7093; --accent4: #ffb6c1; --text: #4a235a; --text2: #6d2e6d;
    --text3: #8e4585; --grad1: #ffb6c1; --grad2: #ff69b4; --grad3: #ff1493;
    --glow: rgba(255,105,180,0.4); --glow2: rgba(255,20,147,0.3);
    --record: #ff4081; --recordGlow: rgba(255,64,129,0.7);
    --highlight-msg-bg: rgba(255,182,193,0.1);
    --highlight-my-bg: rgba(255,105,180,0.45);
    --highlight-to-me-bg: rgba(255,20,147,0.45);
    --highlight-private-my-bg: rgba(255,105,180,0.55);
    --highlight-private-to-me-bg: rgba(255,20,147,0.55);
}

/* ===== КОРАЛЛОВАЯ ТЕМА ===== */
[data-theme="coral"] {
    --bg: #fff5f0; --bg2: #ffece0; --card: #ffe0d0; --card2: #ffd3c0;
    --border: #ffaa8c; --border2: #ff8c69; --accent: #ff6b4a; --accent2: #e64a19;
    --accent3: #d84315; --accent4: #ffab91; --text: #3e2723; --text2: #4e342e;
    --text3: #5d4037; --grad1: #ff8a65; --grad2: #ff6b4a; --grad3: #e64a19;
    --glow: rgba(255,107,74,0.4); --glow2: rgba(230,74,25,0.3);
    --record: #ff3d00; --recordGlow: rgba(255,61,0,0.7);
    --highlight-msg-bg: rgba(255,138,101,0.1);
    --highlight-my-bg: rgba(255,107,74,0.45);
    --highlight-to-me-bg: rgba(230,74,25,0.45);
    --highlight-private-my-bg: rgba(255,107,74,0.55);
    --highlight-private-to-me-bg: rgba(230,74,25,0.55);
}

/* ===== СВЕТЛО-ФИОЛЕТОВАЯ ТЕМА ===== */
[data-theme="light-purple"] {
    --bg: #f3eefc; --bg2: #eae0fe; --card: #ddcefc; --card2: #d0bdfa;
    --border: #b39ddb; --border2: #9575cd; --accent: #7e57c2; --accent2: #5e35b1;
    --accent3: #4527a0; --accent4: #e1bee7; --text: #2c3e50; --text2: #4a235a;
    --text3: #6a1b9a; --grad1: #b39ddb; --grad2: #7e57c2; --grad3: #5e35b1;
    --glow: rgba(126,87,194,0.4); --glow2: rgba(94,53,177,0.3);
    --record: #ff4081; --recordGlow: rgba(255,64,129,0.7);
    --highlight-msg-bg: rgba(150,100,200,0.1);
    --highlight-my-bg: rgba(126,87,194,0.45);
    --highlight-to-me-bg: rgba(94,53,177,0.45);
    --highlight-private-my-bg: rgba(126,87,194,0.55);
    --highlight-private-to-me-bg: rgba(94,53,177,0.55);
}

/* ===== СВЕТЛО-ЗЕЛЁНАЯ ТЕМА ===== */
[data-theme="light-green"] {
    --bg: #f0fff0; --bg2: #e0ffe0; --card: #d0ffd0; --card2: #c0ffc0;
    --border: #90ee90; --border2: #7acc7a; --accent: #32cd32; --accent2: #228b22;
    --accent3: #006400; --accent4: #adff2f; --text: #1b3e1b; --text2: #2d5a2d;
    --text3: #3e7a3e; --grad1: #98fb98; --grad2: #32cd32; --grad3: #228b22;
    --glow: rgba(50,205,50,0.4); --glow2: rgba(34,139,34,0.3);
    --record: #ff4500; --recordGlow: rgba(255,69,0,0.7);
    --highlight-msg-bg: rgba(144,238,144,0.1);
    --highlight-my-bg: rgba(50,205,50,0.45);
    --highlight-to-me-bg: rgba(34,139,34,0.45);
    --highlight-private-my-bg: rgba(50,205,50,0.55);
    --highlight-private-to-me-bg: rgba(34,139,34,0.55);
}

/* ===== СВЕТЛО-БЕЖЕВАЯ ТЕМА ===== */
[data-theme="light-beige"] {
    --bg: #fefaf0; --bg2: #faf0e6; --card: #f5e6d3; --card2: #f0d9b5;
    --border: #deb887; --border2: #c4a882; --accent: #b8860b; --accent2: #8b6914;
    --accent3: #6b4f12; --accent4: #ffe4b5; --text: #3c2f1e; --text2: #4e3e2c;
    --text3: #5e4e3c; --grad1: #f5deb3; --grad2: #b8860b; --grad3: #8b6914;
    --glow: rgba(184,134,11,0.4); --glow2: rgba(139,105,20,0.3);
    --record: #ff4500; --recordGlow: rgba(255,69,0,0.7);
    --highlight-msg-bg: rgba(210,180,140,0.1);
    --highlight-my-bg: rgba(139,105,20,0.45);
    --highlight-to-me-bg: rgba(107,79,18,0.45);
    --highlight-private-my-bg: rgba(139,105,20,0.55);
    --highlight-private-to-me-bg: rgba(107,79,18,0.55);
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
body {
    color: var(--text);
    background: var(--bg);
    font: 13px 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0; padding: 0; overflow: hidden;
}
a, a:active { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--accent4); text-decoration: underline; text-shadow: 0 0 8px var(--glow2); }
table { border: 1px var(--border) solid; border-collapse: collapse; }
td { color: var(--text); background: var(--card); padding: 6px 10px; border: 1px var(--border) solid; }
input, select, textarea {
    background: var(--card2); color: var(--text); border: 1px var(--border2) solid;
    border-radius: 6px; padding: 6px 10px; font: inherit;
}
input[type=button], input[type=submit] {
    background: linear-gradient(135deg, var(--grad1), var(--grad2), var(--grad3));
    color: white; border: none; font-weight: bold; cursor: pointer;
}
input[type=button]:hover, input[type=submit]:hover {
    box-shadow: 0 0 16px var(--glow);
}

/* ===== НИКЛИСТ – ЕДИНЫЙ РАЗМЕР ИКОНОК ===== */

/* Иконка привата – увеличенная */
#users img.privat-icon {
    width: 50px !important;
}
/* Графические ники – оригинальный размер */
#users img.graf-nick {
    width: auto !important;
    height: auto !important;
    max-width: none;
}
/* Символы пола и статусов ICQ */
.gender-icon, .status-icon {
    font-size: 30px;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
}

/* ===== СКРОЛЛБАРЫ ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.15); border-radius: 6px; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF6B00, #FF4500);
    border-radius: 6px; border: 2px solid rgba(255,255,255,0.3);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, #FF8C00, #FF5722); }
* { scrollbar-width: thin; scrollbar-color: #FF6B00 rgba(255,255,255,0.15); }
/* ===== BASE STYLES (используют CSS переменные) ===== */
body {
    color: var(--text);
    background: var(--bg);
    font: 13px 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow: auto;
}
/* ========== СВЕТЛЫЙ СТИЛЬ ДЛЯ ЛОГОВ ========== */
body.log-body, 
body[class*="log"] {
    background-color: #faf5f0 !important;
    color: #333 !important;
    overflow-y: auto !important;  /* включаем прокрутку */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
}

/* Стили для скроллбаров в логах */
body.log-body::-webkit-scrollbar,
body[class*="log"]::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
body.log-body::-webkit-scrollbar-track,
body[class*="log"]::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 6px;
}
body.log-body::-webkit-scrollbar-thumb,
body[class*="log"]::-webkit-scrollbar-thumb {
    background: #FF6B00;
    border-radius: 6px;
}
body.log-body::-webkit-scrollbar-thumb:hover,
body[class*="log"]::-webkit-scrollbar-thumb:hover {
    background: #FF4500;
}

/* Стилизация ссылок в логах */
body.log-body a,
body[class*="log"] a {
    color: #FF6B00;
    text-decoration: none;
}
body.log-body a:hover,
body[class*="log"] a:hover {
    color: #FF4500;
    text-decoration: underline;
}

/* Стилизация форм и кнопок */
body.log-body input[type="submit"],
body[class*="log"] input[type="submit"] {
    background: linear-gradient(135deg, #FFB7C7, #FF9EB2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}
input, select {
    vertical-align: middle;
    margin: 0px;
}
img {
    vertical-align: middle;
    border: 0px;
}

a, a:active {
    color: var(--accent2);
    font: bold 13px 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--accent4);
    text-decoration: underline;
    text-shadow: 0 0 8px var(--glow2);
}

table {
    border: 1px var(--border) solid;
    border-collapse: collapse;
    border-radius: 6px;
    overflow: hidden;
}
td {
    color: var(--text);
    background-color: var(--card);
    font: 13px 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 6px 10px;
    border: 1px var(--border) solid;
}

input, select, textarea {
    margin-bottom: 4px;
    padding: 6px 10px;
    border: 1px var(--border2) solid;
    border-radius: 6px;
    background: var(--card2);
    color: var(--text);
    font: 13px 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--glow), 0 0 12px var(--glow2);
}
input[type=checkbox] {
    width: 16px;
    height: 16px;
    border: 0px;
    accent-color: var(--accent);
}
input[type=file] {
    border: 0px;
    background: transparent;
}
input[type=button], input[type=submit] {
    cursor: pointer;
    padding: 6px 14px;
    color: white;
    border-radius: 6px;
    border: 0px;
    background: linear-gradient(135deg, var(--grad1) 0%, var(--grad2) 50%, var(--grad3) 100%);
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
input[type=button]:hover, input[type=submit]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--glow), 0 0 20px var(--glow2);
    background: linear-gradient(135deg, var(--grad2) 0%, var(--grad3) 50%, var(--accent4) 100%);
}
input[type=button]:active, input[type=submit]:active {
    transform: translateY(0);
}
input[type=button]::-moz-focus-inner, input[type=submit]::-moz-focus-inner {
    border: 0;
    padding: 0;
}

.file {
    vertical-align: middle;
    display: inline-block;
    overflow: hidden;
    width: 20px;
    height: 20px;
    background-image: url(//mpchat.com/blank/img/image.png);
    background-size: contain;
    cursor: pointer;
}
.file input {
    cursor: pointer;
    width: 20px;
    height: 20px;
    filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0);
    -moz-opacity: 0;
    -khtml-opacity: 0;
    opacity: 0;
}

.title {
    color: white;
    background: linear-gradient(135deg, var(--grad1) 0%, var(--grad2) 50%, var(--grad3) 100%);
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.title a { color: white; }
.title a:active { color: white; }
.title a:hover { color: var(--accent4); }
.low {
    color: var(--text3);
    font: normal 11px 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#users table { border: 0px; width: 100%; }
#users td { border: 0px; padding: 4px 2px; }
#users a {
    font: bold 13px 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--accent2);
    transition: all 0.2s ease;
}
#users a:hover {
    color: var(--accent4);
    text-shadow: 0 0 6px var(--glow2);
}

#gamediv table { border-collapse: collapse; }
#gamediv td {
    padding: 4px;
    font: 18px 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    width: 20px;
    height: 15px;
    background: var(--card);
    border: 1px var(--border) solid;
}

.sm {
    cursor: pointer;
    transition: transform 0.15s ease;
}
.sm:hover {
    transform: scale(1.3);
    filter: drop-shadow(0 0 4px var(--accent));
}

/* ===== DROPDOWN ===== */
.dropdown {
    z-index: 10;
    position: relative;
    display: inline-block;
    width: 145px;
    vertical-align: top;
}
.dropdown-main {
    cursor: pointer;
    background: linear-gradient(135deg, var(--grad1) 0%, var(--grad2) 50%, var(--grad3) 100%);
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    height: 38px;
    vertical-align: top;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.dropdown-child {
    display: none;
    background: var(--card);
    border: 1px var(--border) solid;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 16px var(--glow);
}
.dropdown-child a {
    color: var(--text);
    padding: 10px 12px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    transition: background 0.15s ease, padding-left 0.15s ease, color 0.15s ease;
}

.dropdown:hover .dropdown-child { display: block; }
.dropdown-nicklist {
    float: right;
    cursor: pointer;
    background: linear-gradient(135deg, var(--grad1) 0%, var(--grad2) 50%, var(--grad3) 100%);
    color: white;
    font-size: 20px;
    border: none;
    width: 38px;
    height: 38px;
    text-align: center;
    vertical-align: top;
    border-radius: 6px;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.dropdown-nicklist:hover {
    box-shadow: 0 4px 16px var(--glow), 0 0 12px var(--glow2);
    transform: translateY(-1px);
}

/* ===== STATUS SELECTOR ===== */
.status-selector {
    width: 100%;
    margin: 8px 0;
    padding: 6px 8px;
    background: var(--card2);
    color: var(--text);
    border: 1px var(--border2) solid;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.status-selector:hover {
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--glow);
}
.status-selector:focus {
    border-color: var(--accent2);
    box-shadow: 0 0 0 2px var(--glow), 0 0 12px var(--glow2);
}

/* ===== WEBCAM ICONS ===== */
.webcam-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 10px 0;
}
.webcam-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: var(--card2);
    border: 2px var(--border) solid;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    overflow: hidden;
    position: relative;
}
.webcam-icon::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--grad1)22 0%, var(--grad3)22 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.webcam-icon:hover::before { opacity: 1; }
.webcam-icon:hover {
    border-color: var(--accent);
    box-shadow: 0 0 16px var(--glow), 0 0 8px var(--glow2);
    transform: scale(1.08);
}
.webcam-icon i {
    font-size: 24px;
    color: var(--accent2);
    position: relative;
    z-index: 1;
    transition: color 0.2s ease;
}
.webcam-icon:hover i {
    color: var(--accent4);
}

/* ===== FRAMES ===== */
.chat-body { background: var(--bg); }
.top-body {
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 100%) !important;
    border: 1px var(--border) solid !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4), 0 0 8px var(--glow);
}
.header-body {
    background: var(--card);
    border: 1px var(--border) solid;
}
.users-body {
    background: var(--card);
    border: 1px var(--border) solid;
    color: var(--text);
}
.bottom-body {
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 100%) !important;
    border: 1px var(--border) solid !important;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.4), 0 0 8px var(--glow);
}

/* ===== RECORD BUTTON ===== */
.mp_record {
    display: inline-flex;
    background: url('https://mpchat.com/blank/img/mic.png') no-repeat 50% 50%;
    width: 28px;
    height: 28px;
    line-height: 28;
    background-size: contain;
    cursor: pointer;
    text-align: center;
    color: white;
    font: normal 11px 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    vertical-align: middle;
    border-radius: 50%;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}
.mp_record:hover {
    background-color: var(--glow);
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--glow);
}
.mp_recording {
    border-radius: 14px;
    background: var(--record);
    background-image: none;
    border-color: var(--record);
    animation: pulse 1.2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 var(--recordGlow); }
    70% { box-shadow: 0 0 0 10px rgba(0,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}



/* ===== TRANSLIT TABLE ===== */
#trlist {
    background: var(--card);
    border: 1px var(--border) solid;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 12px var(--glow);
}
#trlist td {
    padding: 4px 8px;
    font-size: 11px;
    color: var(--text);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 680px) {
    .dropdown { width: auto; min-width: 100px; }
    .dropdown-main { font-size: 11px; padding: 8px; }
}

::selection {
    background: var(--accent);
    color: white;
}

/* ===== TOP ICON BUTTONS ===== */
.top-icons {
    display: inline-flex;
    gap: 6px;
    vertical-align: top;
    margin-left: 10px;
}
.top-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px var(--border) solid;
    background: var(--card2);
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.top-icon-btn i {
    font-size: 16px;
    color: var(--accent2);
    transition: color 0.2s ease;
}
.top-icon-btn:hover i {
    color: var(--accent4);
}
.top-icon-btn:hover {
    border-color: var(--accent);
    background: var(--card);
    box-shadow: 0 0 10px var(--glow);
    transform: translateY(-1px);
}
.top-icon-btn:active {
    transform: translateY(0);
}

/* ===== AUTOREPLY LABEL ===== */
.autoreply-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 4px;
    padding: 4px 6px;
    border-radius: 6px;
    background: var(--card2);
    border: 1px var(--border) solid;
    transition: all 0.2s ease;
    vertical-align: middle;
}
.autoreply-label:hover {
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--glow);
}
.autoreply-label input[type=checkbox] {
    display: none;
}
.autoreply-label i {
    font-size: 18px;
    color: var(--text3);
    transition: all 0.2s ease;
}
.autoreply-label:hover i {
    color: var(--accent2);
}
.autoreply-label input[type=checkbox]:checked + i {
    color: var(--accent);
    text-shadow: 0 0 8px var(--glow);
}

/* ===== DROPDOWN FONT AWESOME ICONS ===== */
.dropdown-child a i {
    width: 18px;
    text-align: center;
    margin-right: 6px;
    color: var(--accent2);
    font-size: 13px;
}
.dropdown-child a:hover i {
    color: var(--accent4);
}
.dropdown-main i {
    margin-right: 4px;
}

/* ===== WEBCAM ITEM WITH LABEL ===== */
.webcam-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.webcam-label {
    font-size: 10px;
    color: var(--text3);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}
.webcam-item:hover .webcam-label {
    color: var(--accent2);
}
.webcam-item:hover .webcam-icon {
    border-color: var(--accent);
    box-shadow: 0 0 16px var(--glow), 0 0 8px var(--glow2);
    transform: scale(1.08);
}

/* ===== SMILES SLIDE PANEL ===== */
.smiles-panel {
    position: fixed;
    left: -200px;
    top: 45px;
    bottom: 55px;
    width: 200px;
    background: var(--card);
    border-right: 2px var(--border) solid;
    box-shadow: 4px 0 20px rgba(0,0,0,0.5), 0 0 16px var(--glow);
    z-index: 50;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.smiles-panel.active {
    left: 0;
}
.smiles-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--grad1) 0%, var(--grad2) 50%, var(--grad3) 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    border-bottom: 1px var(--border) solid;
}
.smiles-panel-header i {
    margin-right: 6px;
}
.smiles-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}
.smiles-close:hover {
    background: rgba(255,255,255,0.2);
}
.smiles-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}
.smiles-loading {
    text-align: center;
    color: var(--text3);
    padding: 20px;
    font-size: 13px;
}
.smiles-loading i {
    margin-right: 6px;
    color: var(--accent);
}

/* Стили для смайлов внутри панели */
.smiles-panel-content .sm {
    display: inline-block;
    margin: 3px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.15s ease;
}
.smiles-panel-content .sm:hover {
    transform: scale(1.3);
    background: var(--card2);
    box-shadow: 0 0 8px var(--glow);
}

/* ===== THEME SELECTOR IN NICKLIST ===== */
.theme-selector-nicklist {
    margin: 10px 0;
    padding: 8px;
    background: var(--card2);
    border: 1px var(--border) solid;
    border-radius: 8px;
    text-align: left;
}
.theme-selector-nicklist label {
    font-size: 11px;
    color: var(--text3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}
.theme-selector-nicklist label i {
    margin-right: 4px;
    color: var(--accent2);
}
.theme-selector-nicklist select {
    width: 100%;
    padding: 6px 8px;
    background: var(--bg);
    color: var(--text);
    border: 1px var(--border2) solid;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.theme-selector-nicklist select:hover {
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--glow);
}
.theme-selector-nicklist select:focus {
    outline: none;
    border-color: var(--accent2);
    box-shadow: 0 0 0 2px var(--glow), 0 0 12px var(--glow2);
}
.theme-selector-nicklist select option {
    background: var(--card);
    color: var(--text);
}

/* ===== PERSONAL SMILES BUTTON ===== */
.personal-smiles-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px var(--border) solid;
    background: var(--card2);
    color: var(--accent2);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.personal-smiles-btn:hover {
    border-color: var(--accent);
    background: var(--card);
    box-shadow: 0 0 10px var(--glow);
    color: var(--accent4);
    transform: translateY(-1px);
}
.personal-smiles-btn:active {
    transform: translateY(0);
}

/* ===== PERSONAL SMILES OVERLAY ===== */
.personal-smiles-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.personal-smiles-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== PERSONAL SMILES PANEL ===== */
.personal-smiles-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 660px;
    max-width: 95vw;
    background: var(--card);
    border: 2px var(--border) solid;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 24px var(--glow);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.personal-smiles-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Header */
.personal-smiles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--grad1) 0%, var(--grad2) 50%, var(--grad3) 100%);
    color: white;
    font-weight: 600;
    font-size: 15px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    border-bottom: 1px var(--border) solid;
}
.personal-smiles-header i {
    margin-right: 6px;
}
.personal-smiles-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.upload-smile-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}
.upload-smile-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}
.personal-smiles-close {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}
.personal-smiles-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* Content */
.personal-smiles-content {
    padding: 16px;
    max-height: 320px;
    overflow-y: auto;
}

/* Grid: 2 ряда по 6 шт, 100px каждый */
.personal-smiles-grid {
    display: grid;
    grid-template-columns: repeat(6, 100px);
    grid-auto-rows: 100px;
    gap: 10px;
    justify-content: center;
}

/* Смайл в сетке */
.personal-smiles-grid .sm,
.personal-smiles-grid .personal-smile {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    background: var(--card2);
    border: 2px var(--border) solid;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    padding: 4px;
}
.personal-smiles-grid .sm img,
.personal-smiles-grid .personal-smile img {
    max-width: 90px;
    max-height: 90px;
    object-fit: contain;
}
.personal-smiles-grid .sm:hover,
.personal-smiles-grid .personal-smile:hover {
    border-color: var(--accent);
    box-shadow: 0 0 16px var(--glow), 0 0 8px var(--glow2);
    transform: scale(1.05);
    background: var(--bg);
}

/* Loading / Empty states */
.smiles-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text3);
    padding: 40px;
    font-size: 14px;
}
.smiles-loading i {
    margin-right: 6px;
    color: var(--accent);
}
.smiles-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text3);
    padding: 40px;
    font-size: 14px;
}
.smiles-empty i {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--border2);
}

/* Responsive */
@media (max-width: 700px) {
    .personal-smiles-panel {
        width: 95vw;
    }
    .personal-smiles-grid {
        grid-template-columns: repeat(4, 80px);
        grid-auto-rows: 80px;
        gap: 8px;
    }
    .personal-smiles-grid .sm,
    .personal-smiles-grid .personal-smile {
        width: 80px;
        height: 80px;
    }
    .personal-smiles-grid .sm img,
    .personal-smiles-grid .personal-smile img {
        max-width: 70px;
        max-height: 70px;
    }
}

/* ========== 🎛️ СТИЛИ ДЛЯ КОМАНД ЧАТА ========== */

/* 🌤️ ПОГОДА — карточка с градиентом */
.cmd-weather {
    background: linear-gradient(135deg, 
        rgba(100, 181, 246, 0.15) 0%, 
        rgba(66, 165, 245, 0.1) 100%);
    border: 2px solid rgba(33, 150, 243, 0.4);
    border-left: 5px solid #2196F3;
    border-radius: 12px;
    padding: 10px 14px;
    margin: 5px 0;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.25), 
                0 0 12px rgba(255, 255, 255, 0.1);
    animation: slideIn 0.3s ease;
    position: relative;
    overflow: hidden;
}
.cmd-weather::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite linear;
    pointer-events: none;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
    0% { transform: rotate(0deg) translateX(-100%); }
    100% { transform: rotate(0deg) translateX(100%); }
}
.cmd-weather b {
    color: var(--accent4, #FFD700);
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}
.cmd-weather font[color] {
    font-weight: 700;
    text-shadow: 0 0 4px currentColor;
}
.cmd-weather i {
    color: var(--text2, #DEB887);
    font-style: normal;
}

/* ♈ ГОРОСКОП — мистический фиолетовый */
.cmd-horoscope {
    background: linear-gradient(135deg, 
        rgba(156, 39, 176, 0.15) 0%, 
        rgba(103, 58, 183, 0.1) 100%);
    border: 2px solid rgba(156, 39, 176, 0.4);
    border-left: 5px solid #9C27B0;
    border-radius: 12px;
    padding: 10px 14px;
    margin: 5px 0;
    box-shadow: 0 4px 20px rgba(156, 39, 176, 0.25),
                0 0 12px rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.4s ease;
}
.cmd-horoscope b {
    color: var(--accent4, #FFD700);
    font-size: 1.1em;
}
.cmd-horoscope i {
    color: #E1BEE7;
    line-height: 1.6;
    display: block;
    margin-top: 4px;
}
.cmd-horoscope small {
    color: var(--text3, #CD853F);
    display: block;
    margin-top: 6px;
    font-size: 11px;
}

/* 🔮 ГАДАЛКА — магический шар */
.cmd-fortuneteller {
    background: linear-gradient(135deg, 
        rgba(142, 68, 173, 0.2) 0%, 
        rgba(108, 52, 131, 0.15) 100%);
    border: 2px dashed rgba(142, 68, 173, 0.5);
    border-radius: 16px;
    padding: 12px 16px;
    margin: 5px 0;
    text-align: center;
    box-shadow: 0 4px 24px rgba(142, 68, 173, 0.3),
                0 0 16px rgba(255, 255, 255, 0.15);
    animation: magicPulse 2s ease-in-out infinite;
}
@keyframes magicPulse {
    0%, 100% { box-shadow: 0 4px 24px rgba(142, 68, 173, 0.3), 0 0 16px rgba(255, 255, 255, 0.15); }
    50% { box-shadow: 0 4px 24px rgba(142, 68, 173, 0.5), 0 0 24px rgba(255, 255, 255, 0.3); }
}
.cmd-fortuneteller b {
    color: #CE93D8;
    font-size: 1.1em;
    display: block;
    margin-bottom: 6px;
}
.cmd-fortuneteller i {
    color: #F3E5F5;
    font-size: 1.15em;
    line-height: 1.5;
}

/* 🖼️ КАРТИНКА — чистая презентация */
.cmd-image {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border, #8B2500);
    border-radius: 12px;
    padding: 8px;
    margin: 5px 0;
    display: inline-block;
    max-width: 100%;
    animation: popIn 0.3s ease;
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.cmd-image img {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cmd-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow, rgba(255, 69, 0, 0.4));
}
.cmd-image + br { display: none; }

/* ❌ ОШИБКА — аккуратное предупреждение */
.cmd-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.4);
    border-left: 4px solid #F44336;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 4px 0;
    color: #FFCDD2;
    font-size: 12px;
    animation: shake 0.4s ease;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* ⏳ ЗАГРУЗКА — мягкая анимация */
.cmd-loading {
    color: var(--text3, #CD853F);
    font-style: italic;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ========== 🎨 АДАПТАЦИЯ ПОД ТЕМЫ ========== */

/* Розовая тема */
[data-theme="pink"] .cmd-weather {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.2), rgba(255, 105, 180, 0.1));
    border-color: rgba(255, 105, 180, 0.5);
    border-left-color: #FF69B4;
}
[data-theme="pink"] .cmd-horoscope,
[data-theme="pink"] .cmd-fortuneteller {
    background: linear-gradient(135deg, rgba(236, 112, 196, 0.2), rgba(194, 24, 91, 0.15));
    border-color: rgba(194, 24, 91, 0.5);
}

/* Коралловая тема */
[data-theme="coral"] .cmd-weather {
    background: linear-gradient(135deg, rgba(255, 171, 145, 0.2), rgba(255, 107, 74, 0.1));
    border-color: rgba(255, 107, 74, 0.5);
    border-left-color: #FF6B4A;
}

/* Фиолетовая тема */
[data-theme="light-purple"] .cmd-horoscope,
[data-theme="light-purple"] .cmd-fortuneteller {
    background: linear-gradient(135deg, rgba(179, 157, 219, 0.2), rgba(94, 53, 177, 0.15));
    border-color: rgba(94, 53, 177, 0.5);
}

/* Зелёная тема */
[data-theme="light-green"] .cmd-weather {
    background: linear-gradient(135deg, rgba(152, 251, 152, 0.2), rgba(50, 205, 50, 0.1));
    border-color: rgba(50, 205, 50, 0.5);
    border-left-color: #32CD32;
}

/* ========== 📱 МОБИЛЬНАЯ АДАПТАЦИЯ ========== */
@media (max-width: 480px) {
    .cmd-weather, .cmd-horoscope, .cmd-fortuneteller {
        padding: 8px 10px;
        font-size: 12px;
    }
    .cmd-weather b, .cmd-horoscope b {
        font-size: 1em;
    }
    .cmd-image img {
        max-width: 100%;
        height: auto;
    }
}