/* Фон с изображением */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
   /* background: url('/img/fon.webp')repeat;*/
    background: linear-gradient(270deg, #ff6ec4, #7873f5, #4ade80, #facc15);
    background-repeat: repeat;
    background-position: top left;
    background-size: auto;
    background-attachment: scroll;
    padding: 10px 20px;
   
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Контейнер для всей страницы */

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Расстояние между блоками */
    padding: 10px 20px; /* ✅ Боковые отступы: 20px справа и слева */
    background-color: rgba(255, 255, 255, 0.9);
}

/* Шапка и подвал */
.header {
    
    background: linear-gradient(90deg,rgba(42, 48, 155, 0.73) 0%, rgba(87, 199, 133, 1) 50%, rgb(44 35 179 / 69%) 100%);
    
    color: white;
    padding: 20px;
    text-align: center;
    border: 2px solid #1926c1;
    border-radius: 8px;
    margin-bottom: 10px;
}



.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    max-width: 100px;
    max-height: 100px;
}

.header-button {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: bold;
    white-space: nowrap;
}


.header-button:hover {
    background-color: #e68a00;
}


.footer {
   
    background: linear-gradient(90deg,rgba(42, 48, 155, 0.73) 0%, rgba(87, 199, 133, 1) 50%, rgb(44 35 179 / 69%) 100%);
 
    
    color: white;
    padding: 20px;
    text-align: center;
    border: 2px solid #1926c1;
    border-radius: 8px;
    margin-top: 10px; /* ✅ Добавили отступ сверху */
}

.blok {
    
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border: 1px solid #1926c1;
    border-radius: 10px;
    padding: 10px;   
    background: #96bfa380;
    text-align: center;
    margin: 5px auto;
}







button[name="get_bonus"] {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border: 3px solid #00f113;
    border-radius: 12px;
    cursor: pointer;
    background: transparent;
    color: #667eea;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: color 0.4s ease;
    letter-spacing: 1px;
}

/* Эффект заливки */
button[name="get_bonus"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #667eea;
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: 9px;
}

/* При наведении */
button[name="get_bonus"]:hover {
    color: white;
}

button[name="get_bonus"]:hover::before {
    width: 100%;
}

/* При клике */
button[name="get_bonus"]:active {
    transform: scale(0.98);
}

/* Опционально: добавить небольшую тень */
button[name="get_bonus"] {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

button[name="get_bonus"]:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}










/* Styling the container divs for form inputs */


/* Styling labels for better readability and alignment */
label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

/* Styling input fields */
input[type="url"] {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

/* Hover effect for input fields */
input[type="url"]:hover {
    border-color: #888;
}

/* Focus effect for input fields */
input[type="url"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Styling for required fields */
input:required:invalid {
    border-color: #ff4d4d;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    div {
        max-width: 100%;
    }

    input[type="url"] {
        font-size: 12px;
        padding: 8px;
    }
}








 
 .balance { 
     font-size: 1.5em; font-weight: bold; 
 }
 
 .sidebar {
            width: 100%;
          /*   height: 100vh;   */
            background-color: #2c3e50;
            color: white;
         /*   position: fixed;  */
            border-radius: 8px;
            left: 0;
            top: 0;
            transition: transform 0.3s ease;
            transform: translateX(0);
        }

        .sidebar.collapsed {
            transform: translateX(-200px);
        }

        .sidebar-header {
            padding: 20px;
            background-color: #1a252f;
            
            border-radius: 8px 8px 0px 0px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .sidebar-header h2 {
            margin: 0;
            font-size: 24px;
        }

        .toggle-btn {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
        }

        .sidebar-menu {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .sidebar-menu li {
            padding: 15px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .sidebar-menu li a {
            color: white;
            text-decoration: none;
            display: block;
        }

        .sidebar-menu li a:hover {
            background-color: #34495e;
            border-radius: 4px;
        }

        .content {
            margin-left: 250px;
            padding: 20px;
            transition: margin-left 0.3s ease;
        }

        .content.collapsed {
            margin-left: 50px;
        }

      
 
 
 #banner-wrapper {
            text-align: center;
            margin: 20px 0;
        }
        
        #bonus-banner {
            display: inline-block;
            margin-top: 10px;
            transition: transform 0.2s;
        }
        
        #bonus-banner:hover {
            transform: scale(1.02);
        }
        
        #bonus-banner img {
            max-width: 100%;
            height: auto;
            border-radius: 6px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        
        #timer {
            text-align: center;
            padding: 20px;
            background: var(--light-bg);
            border-radius: 6px;
            margin: 20px 0;
        }
        
        #progress-bar-container {
            height: 20px;
            background: #e0e0e0;
            border-radius: 10px;
            margin: 15px 0;
            overflow: hidden;
        }
        
        #progress-bar {
            height: 100%;
            background: linear-gradient(to right, #4caf50, #8bc34a);
            width: 0%;
            transition: width 1s linear;
            border-radius: 10px;
        }
        
        #countdown {
            font-size: 18px;
            font-weight: bold;
            color: var(--primary-color);
        }
        
        form button {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
            transition: background-color 0.3s;
            display: block;
            margin: 20px auto;
            width: 100%;
            max-width: 250px;
        }
        
        form button:hover {
            background-color: var(--secondary-color);
        }
        
        form button:disabled {
            background-color: #cccccc;
            cursor: not-allowed;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }
        
        th, td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }
        
        th {
            background-color: var(--light-bg);
            font-weight: bold;
        }
        
        tr:hover {
            background-color: rgba(74, 111, 165, 0.05);
        }
        
        @media (max-width: 768px) {
            .main-content {
                flex-direction: column;
            }
            
            .column-left, .column-right {
                width: 100%;
            }
            
            table {
                display: block;
                overflow-x: auto;
            }
        }
 
 
 .success {
            background-color: #00f113;
            color: #ffffff;
            border: 1px solid #c8e6c9;
            padding: 12px;
            border-radius: 5px;
            margin-bottom: 20px;
        }
        
 .error {
            background-color: #f70227;
            color: #e3e9d4;
            border: 1px solid #ffcdd2;
            padding: 12px;
            border-radius: 5px;
            margin-bottom: 20px;
        }
 
 



/* Контейнер для двух колонок */
.main-content {
    display: flex;
    gap: 10px;
    flex: 1;
}

/* Общие стили колонок */
.column {
    padding: 20px;
    box-sizing: border-box;
    border: 2px solid #1926c1;
    border-radius: 8px;
    
    
}

/* Левая колонка */
.column-left {
    flex: 1;
    background-color: #494b8970;
}

/* Правая колонка */
.column-right {
    flex: 3;
    background: linear-gradient(90deg,rgba(42, 91, 155, 0.78) 0%, rgba(54, 99, 76, 1) 94%);
    
}





.ref-title, h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 20px 0 12px;
    color: #333;
    text-align: center;
}

/* список уровней */
.ref-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 25px;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}
.ref-list li {
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
}
.ref-list li:last-child { border-bottom: none; }
.ref-list li:nth-child(1) b { color: #ff5733; }
.ref-list li:nth-child(2) b { color: #ff9800; }
.ref-list li:nth-child(3) b { color: #4caf50; }
.ref-list li:nth-child(4) b { color: #2196f3; }
.ref-list li:nth-child(5) b { color: #9c27b0; }

/* карточки */


.ref-carousel {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
    margin: 20px auto;
    max-width: 900px;
}

.ref-cards-wrapper {
    overflow: hidden;
    flex: 1;
}

.ref-cards {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.ref-card {
    min-width: 250px;
    max-width: 250px;
    margin: 0 8px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
    font-size: 15px;
}
.ref-card:hover {
    transform: translateY(-4px);
}

/* кнопки */
.carousel-btn {
    background: #0077ff;
    color: #fff;
    border: none;
    font-size: 22px;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 8px;
    transition: background 0.2s;
}
.carousel-btn:hover {
    background: #005fcc;
}




.ref-username {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 6px;
    color: #0077ff;
    display: flex;
    align-items: center;
}
.ref-date {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
}
.icon {
    margin-right: 8px;
    font-size: 18px;
}

/* если рефералов нет */
.no-ref {
    text-align: center;
    color: #777;
    font-style: italic;
}

.ref-subs {
    font-size: 14px;
    color: #444;
    margin-top: 6px;
    display: flex;
    align-items: center;
}
.ref-subs .icon {
    color: #28a745; /* зелёный акцент */
}


@media (max-width: 480px) {
    .ref-card {
        min-width: 150px;
        max-width: 150px;
        padding: 10px;
        font-size: 13px;
    }
}



/* Адаптивность */
@media (max-width: 600px) {
    

    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
    }

    thead {
        display: none; /* скрываем заголовки таблицы */
    }

    tbody tr {
        margin-bottom: 15px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        padding: 10px;
    }

    tbody td {
        padding: 8px 50px;
        text-align: center;
        position: relative;
        font-size: 14px;
    }

    tbody td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: 600;
        color: #555;
        text-align: left;
    }
    
    
   .ref-title, h2 { font-size: 18px; }
    .ref-list li { font-size: 14px; padding: 10px 14px; }
     .ref-card {
        min-width: 200px;
        max-width: 200px;
    }
    .ref-username { font-size: 16px; }
    
     .ref-card {
        min-width: 200px;
        max-width: 200px;
        padding: 12px;
        font-size: 14px;
    }
    
    
    
    
}





/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .column-left,
    .column-right {
        flex: 1;
        width: 100%;
    }

    .header,
    .footer {
        margin-bottom: 10px;
    }
}
