:root {
    --primary-orange: #FF6B00;
    --primary-hover: #e65100;
    --dark-text: #2c3e50;
    --light-bg: #f0f2f5;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --nav-btn-bg: #fff;
}

body {
    background-color: var(--light-bg);
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-text);
    font-size: 0.95rem;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* =========================================
   ПЕРЕОПРЕДЕЛЕНИЕ BOOTSTRAP
   ========================================= */
.text-primary { color: var(--primary-orange) !important; }
.bg-primary { background-color: var(--primary-orange) !important; }
.border-primary { border-color: var(--primary-orange) !important; }

.btn-primary {
    background-color: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
}
.btn-primary:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.btn-outline-primary {
    color: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
}
.btn-outline-primary:hover {
    background-color: var(--primary-orange) !important;
    color: #fff !important;
}

.page-item.active .page-link {
    background-color: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
}
.form-check-input:checked {
    background-color: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
}

a { color: var(--primary-orange); text-decoration: none; }
a:hover { color: var(--primary-hover); }
.text-decoration-none { text-decoration: none !important; }

/* =========================================
   ШАПКА И МЕНЮ
   ========================================= */
.navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    padding: 8px 0;
    transition: background 0.3s ease;
}
.logo-img { height: 45px; margin-right: 12px; }
.brand-text { 
    font-weight: 900; font-size: 1.8rem; 
    letter-spacing: 1px; color: var(--dark-text); text-transform: uppercase;
}

.navbar-nav { gap: 5px; }
.nav-link-pill {
    font-weight: 600; font-size: 0.85rem; color: #555 !important;
    padding: 6px 14px; border-radius: 50px; transition: all 0.2s;
    white-space: nowrap; display: inline-block; text-decoration: none;
}
.nav-link-pill:hover, .nav-link-pill.active {
    background-color: #fff; color: var(--primary-orange) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* =========================================
   НОВЫЙ ТУМБЛЕР ТЕМЫ (SWITCH)
   ========================================= */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-right: 10px;
}
.theme-switch {
    display: inline-block;
    height: 26px;
    position: relative;
    width: 50px;
}
.theme-switch input { display: none; }

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
}

/* Иконки внутри тумблера */
.slider .fa-sun { color: #f39c12; font-size: 12px; }
.slider .fa-moon { color: #f1c40f; font-size: 12px; }

.slider:before {
    background-color: #fff;
    bottom: 3px;
    content: "";
    height: 20px;
    left: 3px;
    position: absolute;
    transition: .4s;
    width: 20px;
    border-radius: 50%;
    z-index: 2;
}

/* Состояние ВКЛ (Темная) */
input:checked + .slider {
    background-color: var(--primary-orange);
}
input:checked + .slider:before {
    transform: translateX(23px);
}

/* =========================================
   ПОИСК И КНОПКИ
   ========================================= */
.search-form { width: 100%; max-width: 350px; }
.search-input {
    border-radius: 50px !important; background: #fff !important;
    border: 1px solid #eee !important; padding-right: 40px !important;
    font-size: 0.9rem; transition: all 0.3s ease;
}
.search-input:focus {
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.1) !important;
    border-color: var(--primary-orange) !important;
}
.search-btn-icon {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    border: none; background: transparent; color: #aaa;
}

.btn-action-primary {
    background-color: var(--primary-orange); color: white !important;
    border-radius: 50px; padding: 7px 20px; font-weight: 600; font-size: 0.9rem;
    border: none; box-shadow: 0 4px 10px rgba(255, 107, 0, 0.2); transition: all 0.2s;
}
.btn-action-primary:hover { transform: translateY(-2px); background-color: var(--primary-hover); }

/* =========================================
   КАРТОЧКИ И ЛЕНТА
   ========================================= */
.deal-card {
    background: #fff; border-radius: 12px; border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); margin-bottom: 16px;
    overflow: hidden; transition: transform 0.2s;
    min-height: 180px; height: auto; display: flex;
}
.deal-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }

.deal-row { display: flex; width: 100%; align-items: stretch; }

.deal-img-col {
    width: 220px; min-width: 220px; position: relative; overflow: hidden; background-color: #f8f9fa;
}
.deal-img-col img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.5s;
}
.deal-card:hover .deal-img-col img { transform: scale(1.05); }

.deal-content-col {
    padding: 15px; width: 100%; display: flex; flex-direction: column;
    justify-content: space-between; min-width: 0;
}

.deal-title { font-size: 1.1rem; font-weight: 700; line-height: 1.3; margin-bottom: 5px; }
.deal-title a { color: #2c3e50; text-decoration: none; }
.deal-title a:hover { color: var(--primary-orange); }
.deal-price { font-size: 1.2rem; font-weight: 800; color: #e91e63; }
.old-price { font-size: 0.9rem; text-decoration: line-through; color: #999; margin-left: 8px; }

.expired-deal { filter: grayscale(100%); opacity: 0.85; }
.expired-deal .deal-img-col img { opacity: 0.6; }

.detail-img-container { width: 100%; height: 350px; background-color: #f8f9fa; display: flex; align-items: center; justify-content: center; border-radius: 12px; overflow: hidden; margin-bottom: 1rem; }
.detail-img-container img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================
   НАГРАДЫ (МЕТАЛЛ)
   ========================================= */
.medal-badge {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px; position: relative;
    border: 2px solid rgba(255,255,255,0.5);
    box-shadow: 0 5px 10px rgba(0,0,0,0.15), inset 0 2px 5px rgba(255,255,255,0.4);
    transition: transform 0.2s;
}
.medal-badge:hover { transform: scale(1.1) translateY(-3px); }

.medal-bronze { background: linear-gradient(135deg, #cd7f32, #e8b888, #8c5a2b); color: #4a2c0f; text-shadow: 0 1px 0 rgba(255,255,255,0.3); }
.medal-silver { background: linear-gradient(135deg, #C0C0C0, #E8E8E8, #808080); color: #444; text-shadow: 0 1px 0 rgba(255,255,255,0.5); }
.medal-gold { background: linear-gradient(135deg, #DBA514, #F4E685, #AA771C); color: #5c3a00; text-shadow: 0 1px 0 rgba(255,255,255,0.4); border: 2px solid #fff; }
.medal-diamond { background: linear-gradient(135deg, #E6E9F0, #EEF1F5, #8E9EAB); color: #2c3e50; box-shadow: 0 0 15px rgba(66, 165, 245, 0.4); border: 2px solid #42a5f5; }
.medal-locked { background: #f0f0f0; color: #ccc; box-shadow: inset 0 2px 5px rgba(0,0,0,0.05); border: 1px solid #eee; }

@keyframes zoomInPopup {
    0% { transform: scale(0.5); opacity: 0; } 80% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); }
}
.animate-zoom-in { animation: zoomInPopup 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

/* =========================================
   УТИЛИТЫ
   ========================================= */
.vote-pill { background: #f1f3f5; border-radius: 8px; padding: 4px 8px; display: inline-flex; align-items: center; }
.vote-btn { color: #adb5bd; font-size: 1.2rem; text-decoration: none; padding: 0 6px; border: none; background: none; cursor: pointer; }
.vote-btn:hover { color: var(--primary-orange); }
.temp-score { font-weight: 800; padding: 0 5px; min-width: 35px; text-align: center; }
.hot-score { color: #ff3d00; }
.cold-score { color: #03a9f4; }

.filter-bar { background: #fff; border-radius: 16px; padding: 15px; margin-bottom: 20px; }
.filter-check-btn { display: none; }
.filter-check-label {
    border: 1px solid #e9ecef; padding: 6px 14px; border-radius: 20px;
    font-size: 0.85rem; color: #6c757d; cursor: pointer; display: inline-block;
    margin-right: 5px; margin-bottom: 5px; font-weight: 600;
}
.filter-check-btn:checked + .filter-check-label {
    background-color: var(--primary-orange); color: white; border-color: var(--primary-orange);
}

#avatarPreview { width: 150px !important; height: 150px !important; min-width: 150px; object-fit: cover; border-radius: 50%; }
.avatar-small { width: 36px !important; height: 36px !important; min-width: 36px; object-fit: cover; border-radius: 50%; }
.rounded-circle { object-fit: cover; }
.transition-hover { transition: transform 0.2s; }
.transition-hover:hover { transform: scale(1.1); }

/* =========================================
   🌚 ТЕМНАЯ ТЕМА (ОБНОВЛЕНО)
   ========================================= */
[data-bs-theme="dark"] {
    /* Мягкий темный фон (не черный) */
    --light-bg: #18191a;  
    --dark-text: #e4e6eb;
    --glass-bg: rgba(36, 37, 38, 0.95);
    --nav-btn-bg: #3a3b3c;
}

/* Карточки и блоки */
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .deal-card,
[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .list-group-item,
[data-bs-theme="dark"] .accordion-button,
[data-bs-theme="dark"] .accordion-body,
[data-bs-theme="dark"] .dropdown-menu {
    background-color: #242526 !important; /* Темно-серый цвет карточек */
    color: #e4e6eb;
    border-color: #3a3b3c;
}

/* Подложки */
[data-bs-theme="dark"] .bg-light,
[data-bs-theme="dark"] .deal-img-col,
[data-bs-theme="dark"] .vote-pill,
[data-bs-theme="dark"] .detail-img-container {
    background-color: #3a3b3c !important; /* Светлее чем карточка */
    color: #e4e6eb;
}

/* Ссылки и текст */
[data-bs-theme="dark"] .text-dark,
[data-bs-theme="dark"] .deal-title a,
[data-bs-theme="dark"] .nav-link-pill {
    color: #e4e6eb !important;
}
[data-bs-theme="dark"] .text-muted {
    color: #b0b3b8 !important;
}

/* Поля ввода */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #3a3b3c;
    border-color: #555;
    color: #fff;
}
[data-bs-theme="dark"] .form-control:focus {
    background-color: #4e4f50;
    color: #fff;
}

/* Кнопки и бейджи */
[data-bs-theme="dark"] .badge.bg-light {
    background-color: #3a3b3c !important;
    color: #ccc !important;
    border-color: #555 !important;
}
[data-bs-theme="dark"] .btn-link { color: #b0b3b8; }
[data-bs-theme="dark"] .btn-link:hover { color: var(--primary-orange); }

/* Границы */
[data-bs-theme="dark"] .border,
[data-bs-theme="dark"] .border-top,
[data-bs-theme="dark"] .border-bottom {
    border-color: #3a3b3c !important;
}

/* =========================================
   МОБИЛЬНАЯ ПАНЕЛЬ (Добавить в конец style.css)
   ========================================= */

/* На ПК (ширина > 992px) этот код игнорируется,
   но на телефоне мы добавляем отступ снизу body, 
   иначе панель перекроет конец страницы */
/* === КОМПАКТНАЯ ШАПКА ДЛЯ МОБИЛЬНЫХ === */
/* =========================================
   📱 КОМПАКТНАЯ ЛЕНТА (МОБИЛЬНАЯ ВЕРСИЯ)
   Вставить в конец style.css
   ========================================= */

/* =========================================
   📱 СУПЕР-КОМПАКТНАЯ МОБИЛЬНАЯ ВЕРСИЯ
   Вставить в конец style.css
   ========================================= */

/* =========================================
   📱 УЛЬТРА-КОМПАКТНАЯ ВЕРСИЯ (Low Height)
   Заменить последний блок в style.css
   ========================================= */

/* =========================================
   📱 УЛЬТРА-КОМПАКТНАЯ ВЕРСИЯ + ГОЛОСОВАНИЕ
   (Заменить последний блок в style.css)
   ========================================= */

@media (max-width: 991.98px) {
    /* 1. Карточка */
    .deal-card {
        min-height: 90px !important;
        height: auto !important;
        margin-bottom: 8px !important;
        border-radius: 12px !important;
        padding-right: 5px; /* Небольшой отступ справа */
    }

    .deal-row {
        flex-direction: row !important;
        align-items: stretch;
    }

    /* 2. Картинка */
    .deal-img-col {
        width: 90px !important;
        min-width: 90px !important;
        height: auto !important;
    }

    /* 3. Контент */
    .deal-content-col {
        padding: 8px 0 8px 10px !important; /* Отступы внутри */
        justify-content: center;
        width: 100%;
        position: relative; /* Для позиционирования */
    }

    /* 4. Заголовок (теперь он делит место с голосованием) */
    .deal-title {
        font-size: 0.85rem !important;
        font-weight: 600;
        line-height: 1.25;
        margin-bottom: 4px;
        padding-right: 5px; /* Чтобы текст не прилипал к кнопкам */
        
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 5. Цена */
    .deal-price {
        font-size: 0.95rem !important;
        font-weight: 700;
        display: block;
        margin-top: 2px;
    }
    
    .old-price {
        font-size: 0.75rem !important;
    }

    /* 6. ГОЛОСОВАНИЕ (ВЕРНУЛИ И УМЕНЬШИЛИ) */
    .vote-pill {
        display: inline-flex !important; /* Показываем! */
        padding: 2px 4px !important;     /* Меньше "воздуха" */
        background-color: #f8f9fa;       /* Светлый фон */
        border: 1px solid #eee;          /* Тонкая рамка */
        border-radius: 6px !important;
        margin-left: auto;               /* Прижимаем вправо */
        flex-shrink: 0;                  /* Не даем сжиматься */
        height: 26px;                    /* Фиксированная высота */
        align-items: center;
    }

    .vote-btn {
        font-size: 1rem !important;      /* Кнопки +/- поменьше */
        padding: 0 6px !important;       /* Зоны нажатия */
        line-height: 1;
    }

    .temp-score {
        font-size: 0.8rem !important;    /* Цифра градуса */
        min-width: 25px;                 /* Чтобы не прыгало */
        font-weight: 700;
    }

    /* Скрываем описание и нижнюю панель (места нет) */
    .deal-desc-preview, 
    .card-footer-meta { 
        display: none !important; 
    }
    
    /* Картинка внутри открытого поста */
    .detail-img-container {
        height: 200px !important;
        margin-bottom: 10px !important;
    }
}

/* Темная тема для голосовалки */
[data-bs-theme="dark"] .vote-pill {
    background-color: #2a2b2c !important;
    border-color: #3a3b3c !important;
}

/* Сама панель */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    z-index: 1040; /* Чтобы была поверх всего */
    height: 60px;
    padding-bottom: env(safe-area-inset-bottom); /* Для iPhone */
    box-shadow: 0 -2px 15px rgba(0,0,0,0.05);
}

/* Ссылки-иконки */
.nav-icon-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.2rem;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.nav-icon-link:active, .nav-icon-link:focus { color: #FF6B00; }

/* Плавающая кнопка ПЛЮС */
.btn-create-float {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 2px solid #FF6B00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF6B00;
    font-size: 22px;
    margin-top: -25px; /* Приподнять кнопку */
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.25);
}

/* Темная тема для панели (если включишь потом) */
[data-bs-theme="dark"] .mobile-bottom-nav {
    background-color: #242526;
    border-top-color: #3a3b3c;
}
[data-bs-theme="dark"] .btn-create-float {
    background-color: #242526;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* =========================================
   🔥 ГОРИЗОНТАЛЬНЫЙ ТОП (STORIES STYLE)
   ========================================= */

/* Контейнер для скролла */
.horizontal-scroll-wrapper {
    display: flex;
    overflow-x: auto;           /* Разрешаем скролл по горизонтали */
    gap: 10px;                  /* Расстояние между карточками */
    padding: 5px 10px 15px 5px; /* Отступы (снизу побольше для тени) */
    
    /* Скрываем полосу прокрутки для красоты */
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE/Edge */
    -webkit-overflow-scrolling: touch; /* Плавность на iOS */
}
.horizontal-scroll-wrapper::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
}

/* Микро-карточка */
.top-card-mobile {
    min-width: 100px;           /* Фиксированная ширина карточки */
    width: 100px;
    background: #fff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}
.top-card-mobile:active {
    transform: scale(0.95);     /* Эффект нажатия */
}

/* Картинка в микро-карточке */
.top-card-img {
    width: 100%;
    height: 70px;               /* Высота картинки */
    object-fit: cover;
}

/* Текст в микро-карточке */
.top-card-body {
    padding: 6px;
    text-align: center;
}

/* =========================================
   🌚 ТЕМНАЯ ТЕМА: НОВЫЕ БЛОКИ
   (Вставить в конец style.css)
   ========================================= */

/* 1. Мобильный слайдер (Топ недели) */
[data-bs-theme="dark"] .top-card-mobile {
    background-color: #242526 !important; /* Темный фон карточки */
    border: 1px solid #3a3b3c;            /* Темная обводка */
    color: #e4e6eb;                       /* Светлый текст */
}

/* 2. Текст внутри слайдера */
[data-bs-theme="dark"] .top-card-body .text-muted {
    color: #b0b3b8 !important; /* Светло-серый вместо серого */
}

/* =========================================
   🏆 3D НАГРАДЫ ПО УРОВНЯМ
   ========================================= */

/* =========================================
   🏆 10 УРОВНЕЙ НАГРАД (ULTIMATE PACK)
   ========================================= */

.medal-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    font-size: 1.6rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255,255,255,0.1);
}

.medal-badge:hover {
    transform: scale(1.15) translateY(-5px);
    z-index: 10;
}

/* 1. БРОНЗА (Грубый металл) */
.medal-level-1 {
    background: radial-gradient(circle at 30% 30%, #d4a373, #8d5524);
    color: #3e2723;
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.4), 0 4px 6px rgba(0,0,0,0.3);
    border-color: #a66e4e;
}

/* 2. СТАЛЬ (Холодный блеск) */
.medal-level-2 {
    background: radial-gradient(circle at 30% 30%, #fcfcfc, #9baec8);
    color: #2c3e50;
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.7), 0 4px 6px rgba(0,0,0,0.3);
    border-color: #bdc3c7;
}

/* 3. ЗОЛОТО (Богатство) */
.medal-level-3 {
    background: radial-gradient(circle at 30% 30%, #ffecb3, #ffb300);
    color: #5d4037;
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.6), 0 0 10px rgba(255, 179, 0, 0.4);
    border-color: #ffca28;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

/* 4. ИЗУМРУД (Глубина) */
.medal-level-4 {
    background: radial-gradient(circle at 30% 30%, #69f0ae, #00695c);
    color: #e0f2f1;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5), 0 0 10px rgba(0, 230, 118, 0.3);
    border-color: #00e676;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* 5. САПФИР (Синий кристалл) */
.medal-level-5 {
    background: radial-gradient(circle at 30% 30%, #448aff, #1565c0);
    color: #e3f2fd;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5), 0 0 10px rgba(41, 121, 255, 0.4);
    border-color: #2979ff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* 6. РУБИН (Насыщенный красный) */
.medal-level-6 {
    background: radial-gradient(circle at 30% 30%, #ff5252, #b71c1c);
    color: #ffebee;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5), 0 0 15px rgba(255, 23, 68, 0.5);
    border-color: #ff1744;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* 7. АМЕТИСТ (Магия) */
.medal-level-7 {
    background: radial-gradient(circle at 30% 30%, #e040fb, #4a148c);
    color: #f3e5f5;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.6), 0 0 15px rgba(224, 64, 251, 0.5);
    border-color: #d500f9;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

/* 8. ОБСИДИАН (Черный глянец) */
.medal-level-8 {
    background: radial-gradient(circle at 35% 35%, #616161, #000000);
    color: #fff;
    /* Резкий белый блик сверху для эффекта стекла */
    box-shadow: inset 0 10px 10px -5px rgba(255,255,255,0.4), 0 5px 15px rgba(0,0,0,0.6);
    border: 1px solid #424242;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

/* 9. ПЛАЗМА (Киберпанк) */
.medal-level-9 {
    background: radial-gradient(circle at 50% 50%, #18ffff, #311b92);
    color: #fff;
    border: 2px solid #00e5ff;
    /* Неоновое свечение */
    box-shadow: 0 0 10px #00e5ff, inset 0 0 20px #00e5ff;
    text-shadow: 0 0 5px #fff;
    animation: pulse-plasma 2s infinite;
}

/* 10. ПЕРЛАМУТРОВЫЙ АЛМАЗ (Топ) */
.medal-level-10 {
    /* Радужный перелив на белом фоне */
    background: linear-gradient(135deg, #fff 0%, #f3e5f5 25%, #e1f5fe 50%, #f1f8e9 75%, #fff 100%);
    color: #37474f;
    border: 2px solid #fff;
    /* Перламутровое свечение */
    box-shadow: 
        inset 0 0 20px rgba(255,255,255,0.9), 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 30px rgba(200, 200, 255, 0.4);
    background-size: 200% 200%;
    animation: shimmer 3s ease infinite;
    font-weight: bold;
}

/* Кнопка "Еще" */
.medal-more {
    background: #f5f5f5;
    color: #757575;
    border: 2px dashed #bdbdbd;
    box-shadow: none;
    font-size: 1rem;
}

/* Анимации */
@keyframes pulse-plasma {
    0% { box-shadow: 0 0 10px #00e5ff, inset 0 0 10px #00e5ff; }
    50% { box-shadow: 0 0 20px #00e5ff, inset 0 0 20px #00e5ff; }
    100% { box-shadow: 0 0 10px #00e5ff, inset 0 0 10px #00e5ff; }
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- ТЕМНАЯ ТЕМА --- */
[data-bs-theme="dark"] .medal-level-1 { background: radial-gradient(circle at 30% 30%, #8d6e63, #3e2723); color: #d7ccc8; border-color: #5d4037; }
[data-bs-theme="dark"] .medal-level-2 { background: radial-gradient(circle at 30% 30%, #b0bec5, #37474f); color: #eceff1; border-color: #546e7a; }
[data-bs-theme="dark"] .medal-level-3 { background: radial-gradient(circle at 30% 30%, #ffca28, #ff6f00); color: #fff8e1; border-color: #ff8f00; }
[data-bs-theme="dark"] .medal-more   { background: #2a2b2c; color: #aaa; border-color: #555; }
/* Остальные камни (4-10) в темной теме выглядят даже лучше без изменений, так как они светятся */

/* =========================================
   🎨 ЦВЕТА СОЦСЕТЕЙ (БРЕНДОВЫЕ)
   ========================================= */

/* Telegram (Голубой) */
.social-tg { color: #229ED9 !important; }
.social-tg:hover { color: #1e8bbd !important; }

/* VK (Синий) */
.social-vk { color: #0077FF !important; }
.social-vk:hover { color: #005ccf !important; }

/* YouTube (Красный) */
.social-yt { color: #FF0000 !important; }
.social-yt:hover { color: #cc0000 !important; }

/* Instagram (Малиновый) */
.social-inst { color: #E1306C !important; }
.social-inst:hover { color: #c12055 !important; }

/* TikTok (Черный / Белый в темной теме) */
.social-tt { color: #000 !important; }
[data-bs-theme="dark"] .social-tt { color: #fff !important; }

.share-dropdown-menu {
    position: absolute;
    bottom: 100%; /* Показываем НАД кнопкой */
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    padding: 8px 0;
    min-width: 160px;
    z-index: 1000;
    margin-bottom: 10px;
    animation: fadeIn 0.2s ease;
}

.share-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.1s;
}

.share-dropdown-menu a:hover {
    background: #f8f9fa;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Улучшенный стиль для аватара в профиле */
#avatarPreview {
    width: 150px !important;
    height: 150px !important;
    min-width: 150px;
    object-fit: cover; /* Важно: обрезает, а не сплющивает */
    border-radius: 50%;
    
    /* Добавляем красоту */
    border: 4px solid #fff; /* Белая рамка */
    box-shadow: 0 5px 15px rgba(0,0,0,0.15); /* Тень */
    background-color: #f8f9fa; /* Фон, если картинка прозрачная */
}

/* Для маленьких аватарок в меню */
.avatar-small {
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}