/* =====================================================
   FON.CSS - Дизайн фона, хедера, футера и общих блоков
   ===================================================== */

/* ------------------- 1. ФОН И ОБЩИЙ БЭКГРАУНД ------------------- */

body {
    background: transparent !important;
}

/* Фоновый градиент (вместо изображения) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a2a 0%, #1a1a3a 50%, #0d0d1a 100%);
    pointer-events: none;
    z-index: -2;
}

/* Прозрачность основного layout */
.main-layout {
    background: transparent !important;
}

.sidebar-left {
    background: transparent !important;
}

.container {
    background: transparent !important;
}


/* ------------------- 2. ХЕДЕР / НАВИГАЦИЯ ------------------- */

.navbar,
.header {
    background: rgba(4, 1, 36, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px !important;
    margin: 10px auto !important;
    width: calc(100% - 40px) !important;
    max-width: 1300px !important;
}


/* ------------------- 3. БОКОВЫЕ БЛОКИ ------------------- */

.sidebar-block {
    background: rgba(4, 1, 36, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}


/* ------------------- 4. КАРТОЧКИ ТОВАРОВ ------------------- */

.products .product {
    background: rgba(4, 1, 36, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}


/* ------------------- 5. МОДАЛЬНЫЕ ОКНА ------------------- */

.modal-content {
    background: rgba(4, 1, 36, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}


/* ------------------- 6. ПРОФИЛЬ И ИСТОРИЯ ------------------- */

.profile-sidebar,
.profile-content {
    background: rgba(4, 1, 36, 0.9) !important;
}

.history-container,
.stats-container {
    background: rgba(4, 1, 36, 0.85) !important;
}


/* ------------------- 7. ФУТЕР ------------------- */

.footer {
    background: rgba(4, 1, 36, 0.95) !important;
}


/* ------------------- 8. ВЫПАДАЮЩИЕ СПИСКИ ------------------- */

.dropdown-content {
    background: rgba(4, 1, 36, 0.95) !important;
}


/* ------------------- 9. КИТЫ ------------------- */

.kit-item {
    background: rgba(109, 4, 247, 0.9) !important;
}

.kit-items-grid {
    background: rgba(4, 1, 36, 0.8) !important;
}


/* ------------------- 10. ТАБЛИЦЫ ------------------- */

table {
    background: rgba(4, 1, 36, 0.9) !important;
}


/* ------------------- 11. БЛОКИ ДЛЯ СРОКОВ ------------------- */

#durationPricesContainer,
#durationCommandsContainer,
.kitsContainer {
    background: rgba(4, 1, 36, 0.85) !important;
}


/* ------------------- 12. ПОЛЕ ПОИСКА ------------------- */

.search-bar input {
    background: rgba(4, 1, 36, 0.7) !important;
    border: 1px solid rgba(4, 1, 36, 0.6) !important;
    color: white !important;
    border-radius: 20px !important;
    padding: 10px 15px !important;
}

.search-bar input::placeholder {
    color: rgba(0, 123, 255, 0.6) !important;
}

.search-bar input:focus {
    outline: none !important;
    border: 1px solid #007bff !important;
}


/* ------------------- 13. ПЛАВАЮЩАЯ КНОПКА ВК ------------------- */

.vk-float-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    cursor: pointer;
}

.vk-icon {
    width: 60px;
    height: 60px;
    background: #0077FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.vk-icon:hover {
    transform: scale(1.1);
}

.vk-icon img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
}

/* Попап окно ВК */
.vk-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 280px;
    background: rgba(30, 32, 38, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vk-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vk-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: bold;
    color: white;
}

.vk-popup-close {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
}

.vk-popup-close:hover {
    color: white;
}

.vk-popup-content {
    padding: 15px;
    text-align: center;
}

.vk-popup-content p {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 14px;
}

.vk-link-btn,
.vk-msg-btn {
    display: block;
    padding: 10px;
    margin: 8px 0;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: 0.3s;
}

.vk-link-btn {
    background: #0077FF;
    color: white;
}

.vk-link-btn:hover {
    background: #0066dd;
}

.vk-msg-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vk-msg-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* ------------------- 14. ТЕКСТЫ В МОДАЛЬНЫХ ОКНАХ ------------------- */

.modal-text {
    color: #ccc;
    line-height: 1.6;
}

.modal-text p {
    margin-bottom: 12px;
}

.modal-text a {
    color: #FFD700;
    text-decoration: none;
}

.modal-text a:hover {
    text-decoration: underline;
}

.modal-text hr {
    border-color: rgba(255, 255, 255, 0.1);
}


/* ------------------- 15. ОКНО СОГЛАСИЯ ------------------- */

#consentModal .modal-content {
    padding: 20px 25px 30px 25px !important;
}

#consentModal h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

#consentModal .modal-text {
    padding: 0 !important;
}

#consentModal p {
    margin-bottom: 25px;
    line-height: 1.5;
}

#consentModal button {
    padding: 10px 30px !important;
    margin: 0 5px !important;
}


/* ------------------- 16. ФУТЕР КОПИРАЙТ ------------------- */

.footer-copyright {
    width: 100%;
    text-align: center;
    padding: 20px 30px 15px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.footer-copyright p {
    margin: 5px 0;
    font-size: 13px;
    color: #9EA7B1;
}

.footer-copyright .footer-disclaimer {
    font-size: 11px;
    color: #6c757d;
    line-height: 1.4;
}


/* ------------------- 17. БЕЙДЖ КОЛИЧЕСТВА ------------------- */

.item-amount-badge {
    position: absolute;
    bottom: 45px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #FFD700;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}