:root {
    --primary-color: #ff4081;
    --primary-color-rgb: 255, 64, 129; /* Для использования в rgba() */
    --secondary-color: #822FAF; /* Чуть измененный фиолетовый для градиента */
    --text-color: #e0e0e0; /* Чуть светлее для лучшего контраста на темном */
    --dark-bg: #161625; /* Немного другой оттенок темно-синего */
    --container-bg: rgba(25, 25, 45, 0.8); /* Чуть светлее и менее насыщенный фон контейнера */
    --button-hover: #f50057;
    --font-main: 'Montserrat', sans-serif;
    --font-header: 'Russo One', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--dark-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding: 20px;
}

/* --- Динамический фон --- */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-35deg, var(--secondary-color), var(--primary-color), #1c8ac0, #1cbda0);
    background-size: 400% 400%;
    animation: gradientBG 25s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.background-shapes::before,
.background-shapes::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
    animation: float 20s infinite ease-in-out;
}

.background-shapes::before {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(var(--primary-color-rgb), 0.5) 0%, transparent 70%);
    top: 5%;
    left: 8%;
    animation-duration: 24s;
}

.background-shapes::after {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(130, 47, 175, 0.5) 0%, transparent 70%);
    bottom: 10%;
    right: 12%;
    animation-delay: -7s;
}

@keyframes float {
    0% { transform: translateY(0px) translateX(0px) scale(1) rotate(0deg); }
    25% { transform: translateY(-25px) translateX(20px) scale(1.03) rotate(15deg); }
    50% { transform: translateY(15px) translateX(-15px) scale(0.97) rotate(-10deg); }
    75% { transform: translateY(-20px) translateX(25px) scale(1.02) rotate(10deg); }
    100% { transform: translateY(0px) translateX(0px) scale(1) rotate(0deg); }
}

/* --- Основной контейнер --- */
.container {
    background-color: var(--container-bg);
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    max-width: 580px;
    width: 100%;
    z-index: 1;
    transition: transform 0.1s ease-out;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* --- Заголовки и текст --- */
.gang-name {
    font-family: var(--font-header);
    font-size: 2.8em;
    color: var(--primary-color);
    text-shadow:
        0 0 7px rgba(var(--primary-color-rgb), 0.5),
        0 0 12px rgba(var(--primary-color-rgb), 0.3),
        1px 1px 1px rgba(0,0,0,0.3);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 1.05em;
    color: #c0c0d8;
    margin-bottom: 35px;
    font-weight: 500;
}

.cta-section {
    margin-bottom: 38px;
}

.cta-main-text {
    font-size: 2.3em;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.cta-sub-text {
    font-size: 1.45em;
    font-weight: 600;
    color: #a8a8d8;
    min-height: 1.5em;
    position: relative;
}

#rotating-text {
    display: inline-block;
    transition: opacity 0.35s ease-in-out, transform 0.35s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}

#rotating-text.fade-out {
    opacity: 0;
    transform: translateY(-8px);
}
#rotating-text.fade-in {
    opacity: 1;
    transform: translateY(0);
}


/* --- Кнопки --- */
.boosty-button {
    display: inline-flex; /* Важно для выравнивания иконок и текста */
    align-items: center;
    justify-content: center;
    color: white;
    padding: 14px 28px; /* Немного уменьшил паддинги, т.к. иконки стали больше */
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 600;
    font-family: var(--font-main);
    border-radius: 30px;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, background-size 0.35s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 80%;
    max-width: 350px; /* Можно чуть увеличить макс. ширину из-за двух иконок */
}

.boosty-button .button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0; /* Чтобы SVG не добавлял лишнюю высоту */
}

.boosty-button .button-icon.left-heart {
    margin-right: 10px; /* Отступ от текста */
}

.boosty-button .button-icon.right-heart {
    margin-left: 10px; /* Отступ от текста */
}

.boosty-button .button-icon svg {
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
    /* width и height заданы в HTML, здесь можно переопределить если нужно */
}
.boosty-button .button-text {
    white-space: nowrap; /* Предотвращаем перенос текста кнопки */
}


.boosty-button.primary-action {
    background: linear-gradient(50deg, var(--primary-color), var(--button-hover));
    box-shadow:
        0 3px 10px rgba(0,0,0,0.15),
        0 0 8px rgba(var(--primary-color-rgb),0.1),
        inset 0 1px 0px rgba(255,255,255,0.08);
    margin-top: 15px;
}

.boosty-button.secondary-action {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
    margin-top: 25px;
    /* SVG иконки удалены, поэтому стили для SVG .secondary-action не нужны */
}


/* Блик на кнопке */
.boosty-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.boosty-button:hover::before, .boosty-button:focus::before {
    left: 150%;
}

/* Эффекты наведения для кнопок */
.boosty-button:hover, .boosty-button:focus {
    transform: translateY(-4px) scale(1.02);
    outline: none;
}

.boosty-button.primary-action:hover, .boosty-button.primary-action:focus {
    background-size: 130% 130%;
    box-shadow:
        0 6px 16px rgba(0,0,0,0.2),
        0 0 15px rgba(var(--primary-color-rgb),0.25),
        inset 0 1px 1px rgba(255,255,255,0.12);
}

.boosty-button.secondary-action:hover, .boosty-button.secondary-action:focus {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: white; /* Текст кнопки становится белым */
    border-color: var(--button-hover);
}
/* Стили для SVG иконки на .secondary-action:hover удалены, так как иконки нет */


.boosty-button:active {
    transform: translateY(-1px) scale(0.99);
}
.boosty-button.primary-action:active {
     box-shadow:
        0 2px 7px rgba(0,0,0,0.15),
        0 0 8px rgba(var(--primary-color-rgb),0.1),
        inset 0 1px 1px rgba(255,255,255,0.1);
}
.boosty-button.secondary-action:active {
    background-color: rgba(var(--primary-color-rgb), 0.2);
}

/* --- Ссылка на Discord --- */
footer {
    margin-top: 25px;
}
.discord-link {
    font-size: 0.85em;
    color: #9999b0;
}

.discord-link a {
    color: #7289DA;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, text-shadow 0.2s ease, border-bottom-color 0.2s ease;
    padding-bottom: 1px;
    border-bottom: 1px solid transparent;
}

.discord-link a:hover {
    color: #8ea1e1;
    text-shadow: 0 0 4px rgba(114, 137, 218, 0.5);
    border-bottom-color: #8ea1e1;
}

/* --- Стили для футера автора --- */
.site-author {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85em;
    color: #a0a0c0;
}

.site-author p {
    margin-bottom: 10px;
}

.site-author .author-name {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.site-author .author-name:hover {
    text-decoration: underline;
}

.author-socials a {
    color: #b0b0d0;
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.author-socials a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}


/* --- Адаптивность --- */
@media (max-width: 768px) {
    .container {
        padding: 25px 30px;
        max-width: 90%;
    }
    .gang-name { font-size: 2.4em; }
    .cta-main-text { font-size: 1.9em; }
    .cta-sub-text { font-size: 1.25em; }
    .boosty-button {
        padding: 12px 24px; /* Скорректированы паддинги */
        font-size: 1.1em;
        max-width: 320px;
    }
    .boosty-button .button-icon.left-heart { margin-right: 8px; }
    .boosty-button .button-icon.right-heart { margin-left: 8px; }
    /* SVG иконки останутся того же размера, что задан в HTML (28px), можно уменьшить здесь если нужно */
    .boosty-button .button-icon svg {
        width: 24px; /* Пример уменьшения на мобильных */
        height: 24px;
    }


    .background-shapes::before,
    .background-shapes::after {
        width: 200px;
        height: 200px;
        opacity: 0.05;
    }
}

@media (max-width: 480px) {
    body { padding: 10px; }
    .container {
        padding: 20px 15px;
        margin: 10px 5px;
        width: calc(100% - 10px);
    }
    .gang-name { font-size: 1.9em; }
    .subtitle { font-size: 0.95em; margin-bottom: 25px;}
    .cta-main-text { font-size: 1.6em; }
    .cta-sub-text { font-size: 1.05em; }

    .boosty-button {
        padding: 10px 20px; /* Скорректированы паддинги */
        font-size: 1em;
        width: 90%;
        max-width: 300px;
    }
    .boosty-button .button-icon.left-heart { margin-right: 6px; }
    .boosty-button .button-icon.right-heart { margin-left: 6px; }
    .boosty-button .button-icon svg {
        width: 20px; /* Пример уменьшения на самых маленьких экранах */
        height: 20px;
    }

    .boosty-button.primary-action {
        margin-top: 15px;
    }
    .boosty-button.secondary-action {
        margin-top: 20px;
    }
    footer {
        margin-top: 20px;
    }
    .discord-link { font-size: 0.8em; }
    .site-author {
        margin-top: 25px;
        padding-top: 15px;
        font-size: 0.8em;
    }
    .author-socials a {
        font-size: 1.3em;
        margin: 0 8px;
    }
}
