/********** Template CSS **********/
:root {
    --primary: #EB1616;
    --secondary: #191C24;
    --light: #6C7293;
    --dark: #000000;
}
  
.content {
    display: flex;
    flex-direction: column;
    height: 100%;
}
  
.footer {
    margin-top: auto;
} 

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Layout ***/
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    height: 100vh;
    overflow-y: auto;
    background: var(--secondary);
    transition: 0.5s;
    z-index: 999;
}

.content {
    margin-left: 250px;
    min-height: 100vh;
    background: var(--dark);
    transition: 0.5s;
}

@media (min-width: 992px) {
    .sidebar {
        margin-left: 0;
    }

    .sidebar.open {
        margin-left: -250px;
    }

    .content {
        width: calc(100% - 250px);
    }

    .content.open {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        margin-left: -250px;
    }

    .sidebar.open {
        margin-left: 0;
    }

    .content {
        width: 100%;
        margin-left: 0;
    }
}


/*** Navbar ***/
.sidebar .navbar .navbar-nav .nav-link {
    padding: 7px 20px;
    color: var(--light);
    font-weight: 500;
    border-left: 3px solid var(--secondary);
    border-radius: 0 30px 30px 0;
    outline: none;
}

.sidebar .navbar .navbar-nav .nav-link:hover,
.sidebar .navbar .navbar-nav .nav-link.active {
    color: var(--primary);
    background: var(--dark);
    border-color: var(--primary);
}

.sidebar .navbar .navbar-nav .nav-link i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border-radius: 40px;
}

.sidebar .navbar .navbar-nav .nav-link:hover i,
.sidebar .navbar .navbar-nav .nav-link.active i {
    background: var(--secondary);
}

.sidebar .navbar .dropdown-toggle::after {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.sidebar .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

.sidebar .navbar .dropdown-item {
    padding-left: 25px;
    border-radius: 0 30px 30px 0;
    color: var(--light);
}

.sidebar .navbar .dropdown-item:hover,
.sidebar .navbar .dropdown-item.active {
    background: var(--dark);
}

.content .navbar .navbar-nav .nav-link {
    margin-left: 25px;
    padding: 12px 0;
    color: var(--light);
    outline: none;
}

.content .navbar .navbar-nav .nav-link:hover,
.content .navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.content .navbar .sidebar-toggler,
.content .navbar .navbar-nav .nav-link i {
    width: 50px;
    height: 50px;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border-radius: 50px;
}

.content .navbar .dropdown-item {
    color: var(--light);
}

.content .navbar .dropdown-item:hover,
.content .navbar .dropdown-item.active {
    background: var(--dark);
}

.content .navbar .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.content .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

@media (max-width: 575.98px) {
    .content .navbar .navbar-nav .nav-link {
        margin-left: 15px;
    }
}


/*** Date Picker ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Testimonial ***/
.progress .progress-bar {
    width: 0px;
    transition: 2s;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 5px solid var(--primary);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--dark);
    border-color: var(--primary);
}
 
.custom-nav {
    margin-bottom: 0;  
}

.custom-nav-link {
    padding:  5px 8px; 
    border-radius: 50px;  
    font-weight: bold;  
    text-transform: uppercase;  
    transition: all 0.3s ease;  
}

.custom-nav-link.active {
    background-color: #EB1616;  
    color: #ddd; 
}

.custom-nav-link {
    color: #ddd; 
}

.custom-nav-link:hover {
    color: #ddd; 
} 

    .stats-item {
        background-color: #292d36;
        color: #ddd;
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 15px;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    }

    .stats-item:hover {
        background-color: #444c56;
    }

    .stats-title {
        font-size: 1.1rem;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .stats-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .stats-content .text-sum {
        font-size: 1.2rem;
        font-weight: bold;
    }

    .stats-content .time {
        font-size: 0.9rem;
        color: #adb5bd;
    }

    .stats-item img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
    }

    /* Стили для мобильных устройств */
    @media only screen and (max-width: 721px) {
        .stats-item {
            padding: 10px;
        }
        
        .stats-title {
            font-size: 1rem;
        }

        .stats-content .text-sum {
            font-size: 1rem;
        }

        .stats-content .time {
            font-size: 0.8rem;
        }
    }
.payment-icon {
    width: 50px;
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 7px;
}

[id^=radio-] {
    display: none;
}

[id^=radio-] + label {
    display: inline-flex;  
    align-items: center;  
    justify-content: center;  
    cursor: pointer;
    border: 2px solid #191C24;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 5px;  
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;  
} 

[id^=radio-]:checked + label {
    border: 2px solid #EB1616; 
    box-shadow: 0 4px 8px rgba(235, 22, 22, 0.4);
}

[id^=radio-]:checked + label::before {
    content: '\f00c';  
    font-family: 'Font Awesome 5 Free';  
    font-weight: 900; 
    position: absolute;
    left: 10px; 
    top: 50%;
    transform: translateY(-50%);  
    width: 24px;  
    height: 24px;  
    text-align: center; 
    border-radius: 50%;  
    background-color: #212121;  
    color: #EB1616; 
}
.bonus-square {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    color: white;
    position: relative;
    overflow: hidden; 
}

.bonus-square i {
    position: absolute;
    font-size: 24px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    z-index: 1;
}
 
            .popup-ad {
                position: fixed;
                bottom: 20px;
                right: 20px;
                width: 340px;
                background: linear-gradient(to bottom right, #191C24, #191C24);
                border-radius: 8px;
                padding: 20px;
                z-index: 1000;
                display: none;
                font-family: Ubuntu, sans-serif;
                animation: slideIn 0.3s ease-out;
                border: 2px solid #7d0000;
            }
            
            @keyframes slideIn {
                from {
                    transform: translateY(100px);
                    opacity: 0;
                }
                to {
                    transform: translateY(0);
                    opacity: 1;
                }
            }
            
            .popup-ad-close {
                position: absolute;
                top: 10px;
                right: 10px;
                font-size: 10px;
                color: #495057;
            }
     
            .popup-ad-content {
                margin: 5px 0 20px 0;
                color: #495057;
                line-height: 1.6;
                font-size: 15px;
            }
            
            .popup-ad-title {
                font-size: 18px;
                font-weight: 600;
                color: #6C7293;
                margin-bottom: 12px;
                padding-right: 20px;
            }
            
            .popup-ad-buttons {
                display: flex;
                justify-content: space-between;
                gap: 12px;
            }
            
            .popup-ad-btn {
                padding: 10px 20px;
                border-radius: 8px;
                border: none;
                cursor: pointer;
                font-size: 14px;
                font-weight: 500;
                transition: all 0.2s ease;
                flex: 1;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            .popup-ad-btn.visit {
                background: #EB1616;
                color: white;
                box-shadow: 0 2px 6px rgba(235, 22, 22, 0.3);
            }
            
            .popup-ad-btn.visit:hover {
                background: #c90c0c;
                transform: translateY(-1px);
                box-shadow: 0 4px 8px rgba(235, 22, 22, 0.4);
            }
            
            .popup-ad-btn.close {
                background: #f1f3f5;
                color: #495057;
            }
            
     .ads-grid {
        display: grid;
      
    }

    /* Оформление карточек объявлений */
    .ad-item {
        background: #000;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
      
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .ad-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }

    /* Заголовок карточки */
    .ad-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #444;
    }

    /* Статус объявления */
    .ad-status {
        display: inline-flex;
        align-items: center;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
    }

    .ad-status.active {
        background: #2b855d;
        color: #e1f7e1;
    }

    .ad-status.inactive {
        background: #f44336;
        color: #ffe9e9;
    }

    /* Контент объявления */
    .ad-content {
        margin-bottom: 15px;
    }

    .ad-content p {
        margin: 8px 0;
        color: #bdbdbd;
    }

    /* Статистика объявления */
    .ad-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        background: #2c2c2c;
        padding: 12px;
        border-radius: 6px;
    }

    .stat-item {
        text-align: center;
    }

    .stat-value {
        font-size: 16px;
        font-weight: 600;
        color: #0d6efd;
    }

    .stat-label {
        font-size: 12px;
        color: #9e9e9e;
        margin-top: 4px;
    }

    /* Ссылка на сайт */
    .ad-link {
        word-break: break-all;
        color: #1e90ff;
        text-decoration: none;
    }

    .ad-link:hover {
        text-decoration: underline;
    }
