/* ==========================================================================
   ИЗОЛИРОВАННАЯ SPA СИСТЕМА ИНТЕРФЕЙСА ДОСТИЖЕНИЙ И ФИКСЫ СТИЛЕЙ
   ========================================================================== */

/* 1. Сброс рамки и выделения навигационных табов */
.tabs .tab-btn {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* 2. Стилизация кнопок под дизайн полей ввода с анимацией и цветом */
.ach-full-width-btn {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    border: none !important;
    border-radius: 4px !important; /* Радиус закругления как у ваших инпутов */
    font-size: 15px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    margin-top: 15px !important;
    
    /* Базовый цвет кнопки (Приятный глубокий сине-стальной Nord-цвет) */
    background-color: #5e81ac !important;
    color: #ffffff !important;
    
    /* Настройка плавного перехода для анимации цвета и масштаба */
    transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* 🌟 АНИМАЦИЯ: Плавное осветление и появление тени при наведении */
.ach-full-width-btn:hover {
    background-color: #81a1c1 !important; /* Светло-синий акцент */
    box-shadow: 0 4px 12px rgba(94, 129, 172, 0.3) !important; /* Мягкое свечение */
}

/* 🌟 АНИМАЦИЯ: Легкое уменьшение (эффект физического нажатия) при клике */
.ach-full-width-btn:active {
    transform: scale(0.98) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* 3. Контейнер для всплывающих тостов (уведомлений) */
.ach-toast-wrapper {
    position: fixed !important;
    top: 25px !important;
    right: 25px !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    pointer-events: none;
}

.ach-toast-item {
    pointer-events: auto;
    min-width: 300px;
    max-width: 380px;
    background-color: #2e3440 !important;
    color: #ffffff !important;
    padding: 16px 20px !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5) !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    font-family: sans-serif !important;
    opacity: 0 !important;
    transform: translateY(-20px) scale(0.9) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.ach-toast-item.show {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

.ach-toast-item.achievement-new {
    background: linear-gradient(135deg, #ff9800, #e91e63) !important;
    border-left: 5px solid #ffffff !important;
}

.ach-toast-item.achievement-old {
    border-left: 5px solid #4caf50 !important;
    background-color: #232731 !important;
}

.ach-toast-item.achievement-old .ach-toast-title { color: #4caf50 !important; }
.ach-toast-icon { font-size: 32px !important; flex-shrink: 0; }
.ach-toast-body { display: flex !important; flex-direction: column !important; }
.ach-toast-title { font-weight: bold !important; font-size: 15px !important; }
.ach-toast-message { font-size: 13px !important; opacity: 0.9 !important; }

/* 4. Личный кабинет пользователя */
.ach-profile-card {
    display: none;
    max-width: 500px;
    margin: 50px auto !important;
    padding: 30px !important;
    background-color: #2e3440 !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    font-family: sans-serif !important;
}

.ach-profile-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 2px solid #4c566a !important;
    padding-bottom: 15px !important;
    margin-bottom: 20px !important;
}

.ach-profile-title { margin: 0 !important; color: #88c0d0 !important; font-size: 22px !important; }
.ach-profile-title span { color: #ffffff !important; }
.ach-profile-info { color: #d8dee9 !important; font-size: 15px !important; margin-bottom: 25px !important; }
.ach-title { color: #ebcb8b !important; margin-bottom: 15px !important; font-size: 18px !important; }

.ach-logout-btn {
    padding: 8px 16px !important;
    background-color: #bf616a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    transition: background-color 0.2s !important;
}

.ach-logout-btn:hover { background-color: #d08770 !important; }

.ach-grid-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.ach-card-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: bold !important;
}

.ach-card-item.unlocked {
    background: linear-gradient(135deg, #434c5e, #4c566a) !important;
    color: #a3be8c !important;
    border: 2px solid #a3be8c !important;
}

.ach-card-item.locked {
    opacity: 0.35 !important;
    color: #d8dee9 !important;
    background: #2e3440 !important;
    border: 2px dashed #4c566a !important;
    filter: grayscale(100%) !important;
}

