/* ЦВЕТОВЫЕ ПЕРЕМЕННЫЕ - ИЗМЕНИТЕ ЭТИ ЗНАЧЕНИЯ ДЛЯ СМЕНЫ ЦВЕТОВОЙ ПАЛИТРЫ */
:root {
    /* Основные цвета сайта */
    --color-primary: #ff3366; /* Основной акцентный цвет (кнопки, логотип) */
    --color-primary-hover: #ff1a53; /* Цвет при наведении на кнопки */

    /* Фоны */
    --color-bg-body: #1e1e2d; /* Фон всей страницы */
    --color-bg-header: #1a1a2e; /* Фон верхнего фрейма (хедера) */
    --color-bg-container: #2d2d42; /* Фон основного контейнера */
    --color-bg-sections: #343454; /* Фон секций и промо-кодов */
    --color-bg-highlight: linear-gradient(135deg, #343463 0%, #2b2b45 100%); /* Градиент для выделенных секций */
    --color-bg-table-alt: #26263e; /* Фон для чередующихся строк таблицы */
    --color-bg-table-header: #212135; /* Фон для заголовка таблицы */

    /* Цвета текста */
    --color-text-primary: #ffffff; /* Основной цвет текста */
    --color-text-secondary: #e0e0e0; /* Вторичный цвет текста */
    --color-text-muted: #9999bb; /* Приглушенный цвет текста */
    --color-text-heading: #ffcc00; /* Цвет заголовков */

    /* Границы и тени */
    --color-border: #333355; /* Цвет границ элементов */
    --color-border-highlight: #4a4a6b; /* Цвет границ выделенных элементов */
    --color-border-table: #3f3f5f; /* Цвет границ таблицы */
    --box-shadow-header: 0 2px 15px rgba(0, 0, 0, 0.5); /* Тень хедера */
    --box-shadow-container: 0 4px 20px rgba(0, 0, 0, 0.3); /* Тень контейнера */
    --box-shadow-button: 0 5px 15px rgba(255, 26, 83, 0.4); /* Тень кнопок при наведении */
    --box-shadow-table: 0 3px 10px rgba(0, 0, 0, 0.2); /* Тень таблицы */

    /* Размеры и радиусы */
    --border-radius-small: 5px; /* Маленький радиус скругления */
    --border-radius-medium: 8px; /* Средний радиус скругления */
    --border-radius-large: 25px; /* Большой радиус скругления (кнопки) */
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: var(--color-bg-body);
    background-image: url(background.jpg);
    color: var(--color-text-primary);
    max-width: 100%;
    overflow-x: hidden;
    /* Відступ зверху для компактного хедера */
    padding-top: 60px;
}

/* КОМПАКТНИЙ ХЕДЕР */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-header);
    border-bottom: 1px solid var(--color-border);
    padding: 6px 0;
    z-index: 1000;
    box-shadow: var(--box-shadow-header);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    min-height: 48px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.logo img {
    width: 80px;
    height: auto;
    display: block;
}

.logo a {
    display: block;
    line-height: 1;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

/* СТИЛІ КНОПОК ДЛЯ ХЕДЕРА */
.login-btn,
.register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    min-height: 30px;
    border-radius: 18px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-btn {
    background: transparent;
    border: 1px solid var(--color-text-primary);
    color: var(--color-text-primary);
}

.login-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary) !important;
    text-decoration: none !important;
}

.register-btn {
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
    color: var(--color-text-primary);
}

.register-btn:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: var(--color-text-primary) !important;
    text-decoration: none !important;
}

/* Контейнер для основного содержимого */
.container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    background-color: var(--color-bg-container);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--box-shadow-container);
    padding: 25px;
}

h1,
h2 {
    text-align: center;
    margin: 20px 0;
    color: var(--color-text-heading);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

h3 {
    color: var(--color-text-heading);
    margin: 15px 0;
}

p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* АДАПТИВНИЙ БАННЕР */
.banner {
    width: 100%;
    aspect-ratio: 3.85/1;
    min-height: 100px;
    max-height: 200px;
    background-color: var(--color-bg-sections);
    border-radius: var(--border-radius-medium);
    margin: 20px 0 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.banner a {
    display: block;
    width: 100%;
    height: 100%;
}

.btn {
    display: block;
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-text-primary);
    padding: 15px;
    text-align: center;
    border-radius: var(--border-radius-large);
    margin: 30px 0;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-button);
}

.footer {
    text-align: center;
    font-size: 0.9em;
    margin-top: 40px;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}

/* Highlight sections */
.highlight-section {
    background: var(--color-bg-highlight);
    padding: 20px;
    margin: 25px 0;
    border-radius: var(--border-radius-medium);
    border: 1px solid var(--color-border-highlight);
}

/* СТИЛИЗАЦИЯ СПИСКОВ */
ul,
ol {
    color: var(--color-text-secondary);
    margin: 15px 0 25px;
    padding-left: 0;
}

ul li,
ol li {
    margin-bottom: 10px;
    line-height: 1.6;
    position: relative;
}

ul {
    list-style-type: none;
}

ul li {
    padding-left: 25px;
}

ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

/* СТИЛИЗАЦИЯ ТАБЛИЦ */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px;
    background-color: var(--color-bg-sections);
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: var(--box-shadow-table);
    font-size: 0.95em;
}

thead {
    background-color: var(--color-bg-table-header);
}

th {
    text-align: left;
    padding: 10px;
    color: var(--color-text-heading);
    font-weight: bold;
    border-bottom: 2px solid var(--color-border-table);
    font-size: 0.9em;
}

td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--color-border-table);
    color: var(--color-text-secondary);
}

tbody tr:nth-child(even) {
    background-color: var(--color-bg-table-alt);
}

tbody tr:last-child td {
    border-bottom: none;
}

.highlight-row {
    background-color: rgba(255, 51, 102, 0.1) !important;
    border-left: 3px solid var(--color-primary);
}

.compact-table {
    font-size: 0.9em;
    width: 100%;
    margin: 0 auto;
}

.compact-table th {
    padding: 8px 6px;
    text-align: center;
    font-size: 0.85em;
    white-space: normal;
}

.compact-table td {
    padding: 8px 6px;
    text-align: center;
    vertical-align: middle;
}

.compact-table th:first-child,
.compact-table td:first-child {
    text-align: left;
    padding-left: 10px;
}

.payment-table {
    border: none;
    background: none;
    box-shadow: none;
}

.payment-table thead tr {
    background-color: var(--color-bg-table-header);
}

.payment-table th {
    text-transform: none;
    letter-spacing: normal;
    text-align: center;
    padding: 8px 5px;
    font-size: 0.85em;
}

.payment-table td {
    text-align: center;
    padding: 8px 5px;
    background-color: var(--color-bg-sections);
    border: 1px solid var(--color-border);
}

/* Контейнер для сітки */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 25px;
    padding: 20px;
}

.slot-card {
    background: #1a1d29;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #2a2e3e;
    display: flex;
    flex-direction: column;
}

.slot-card:hover {
    transform: translateY(-5px);
    border-color: #3f4458;
}

.slot-card img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3; 
    object-fit: contain; 
    padding: 8px; 
    background-color: #0b0e16;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.slot-card:hover img {
    transform: scale(1.04);
}

.slot-name {
    padding: 15px 5px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    background: #242837;
    border-top: 1px solid #2a2e3e;
}

/* Вспливаюче вікно */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 12, 22, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.popup-content {
    background: #242837;
    width: 90%;
    max-width: 400px;
    padding: 40px 20px;
    border-radius: 20px;
    position: relative;
    border: 1px solid #3f4458;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #888fb1;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-popup:hover {
    color: #ffffff;
}

.popup-title {
    color: #ff004c;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.offer-main {
    display: block;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
}

.offer-sub {
    color: #888fb1;
    font-size: 14px;
    margin-bottom: 25px;
}

.popup-action-btn {
    display: block;
    background: #ff004c;
    color: #fff;
    text-decoration: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.3s, transform 0.2s;
}

.popup-action-btn:hover {
    background: #e60045;
    transform: translateY(-2px);
}

/* АДАПТИВНІСТЬ */
@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        gap: 8px;
        padding: 5px 15px;
    }

    body {
        padding-top: 85px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo img {
        width: 70px;
    }

    .header-buttons {
        gap: 6px;
    }

    .login-btn,
    .register-btn {
        padding: 4px 12px;
        font-size: 10px;
        min-height: 28px;
        border-radius: 16px;
    }

    .banner {
        aspect-ratio: 3.85/1;
        min-height: 80px;
        max-height: 120px;
        margin: 15px 0 20px;
    }

    .compact-table,
    .payment-table {
        font-size: 0.85em;
    }

    .compact-table th,
    .payment-table th {
        padding: 6px 4px;
        font-size: 0.8em;
    }

    .compact-table td,
    .payment-table td {
        padding: 6px 4px;
    }

    .container {
        padding: 15px;
    }
}

@media (min-width: 601px) and (max-width: 768px) {
    .banner {
        aspect-ratio: 3.85/1;
        min-height: 120px;
        max-height: 160px;
    }
}

@media (min-width: 769px) {
    .banner {
        aspect-ratio: 3.85/1;
        min-height: 140px;
        max-height: 200px;
    }
}

@media (min-width: 768px) {
    .container {
        margin: 30px auto;
        padding: 35px;
    }

    .btn {
        max-width: 400px;
        margin: 30px auto;
    }
}