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

/* ============================================ */
/* 🎨 ЕДИНАЯ СИСТЕМА РАЗМЕРОВ ДЛЯ ВСЕХ УСТРОЙСТВ */
/* ============================================ */
:root {
    /* Базовые размеры на основе viewport - подогнаны под телефон */
    --container-padding: 3vh 5vw; /* Уменьшили вертикальные отступы */
    --logo-size: min(280px, 30vh); /* Уменьшили логотип */
    --title-size: clamp(28px, 4vh, 42px); /* Уменьшили заголовок */
    --text-size: clamp(15px, 2vh, 18px); /* Уменьшили текст */
    --button-height: clamp(48px, 6vh, 56px); /* Уменьшили кнопки */
    --gap-small: clamp(6px, 1vh, 12px); /* Уменьшили маленькие отступы */
    --gap-medium: clamp(12px, 2vh, 20px); /* Уменьшили средние отступы */
    --gap-large: clamp(20px, 3vh, 32px); /* Уменьшили большие отступы */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    min-height: 100dvh; /* Динамическая высота viewport для мобильных */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    position: relative;
    overflow-x: hidden; /* Только горизонтальный скролл запрещен */
}

/* Индикатор загрузки при старте */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Анимированный спиннер */
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Анимированный градиентный фон */
.gradient-background {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}

.gradient-background.active {
    opacity: 1;
    animation: gradientMove 15s ease infinite, gradientPulse 4s ease-in-out infinite;
}

.gradient-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    filter: blur(80px);
}

.container {
    width: 100%;
    max-width: 450px;
    min-height: 100vh;
    min-height: 100dvh; /* Динамическая высота для мобильных */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    position: relative;
    z-index: 1;
    padding: var(--container-padding);
    box-sizing: border-box;
}

/* Скрытие экранов */
.screen-hidden {
    display: none !important;
}

/* Специальные настройки для приветственного экрана */
#screen-welcome.container {
    justify-content: flex-start; /* Поднимаем элементы вверх */
    gap: clamp(10px, 2vh, 20px); /* Добавляем небольшой gap */
    padding-top: clamp(20px, 5vh, 60px); /* Уменьшили отступ сверху - элементы выше */
}

/* Logo Video */
.logo-container {
    width: var(--logo-size); /* Адаптивный размер */
    height: var(--logo-size); /* Адаптивный размер */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0; /* Убираем margin */
    flex-shrink: 1; /* Позволяем сжиматься если нужно */
}


.logo-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Welcome Text */
.welcome-text {
    text-align: center;
    margin: 0;
    flex-shrink: 0;
}

.welcome-text h1 {
    font-size: var(--title-size); /* Адаптивный размер */
    font-weight: 600;
    margin-bottom: var(--gap-small);
    letter-spacing: -1px;
    line-height: 1.2; /* Уменьшаем межстрочный интервал */
}

.welcome-text p {
    font-size: var(--text-size); /* Адаптивный размер */
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    min-height: 2vh;
    line-height: 1.4;
}

.welcome-text p::after {
    content: '|';
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Buttons */
.buttons {
    width: 90%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: var(--gap-small);
    margin: 0; /* Убираем margin */
    flex-shrink: 0;
}

.btn {
    width: 100%;
    padding: clamp(12px, 2vh, 18px) 24px;
    border: none;
    border-radius: 30px;
    font-size: var(--text-size);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-small);
    min-height: var(--button-height);
}

.btn-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.02);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.apple-icon {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 480px) {
    .logo-container {
        width: 340px;
        height: 340px;
        margin-bottom: 5px;
    }
    
    .welcome-text {
        margin-bottom: 30px;
    }
    
    .welcome-text h1 {
        font-size: 37px;
    }
    
    .welcome-text p {
        font-size: 18.5px;
    }
    
    .container {
        gap: 16px;
        padding: 30px 16px 20px;
    }
    
    body {
        padding: 0;
    }
    
    #screen-platform.container {
        padding-top: 40px;
        margin-top: 0;
    }
    
    .platform-header {
        margin-top: 0;
        margin-bottom: 28px;
    }
    
    .platform-header h2 {
        font-size: 26px;
    }
    
    .platform-subtitle {
        font-size: 14px;
    }
}

@media (max-height: 700px) {
    .logo-container {
        width: 340px;
        height: 340px;
        margin-bottom: 5px;
    }
    
    .container {
        gap: 12px;
        padding: 25px 16px 20px;
    }
    
    .welcome-text h1 {
        font-size: 37px;
        margin-bottom: 4px;
    }
    
    .welcome-text {
        margin-bottom: 20px;
    }
    
    .welcome-text p {
        font-size: 18.5px;
    }
    
    body {
        padding: 0;
    }
    
    #screen-platform.container {
        padding-top: 40px;
        margin-top: 0;
    }
    
    .platform-header {
        margin-top: 0;
        margin-bottom: 28px;
    }
    
    .platform-header h2 {
        font-size: 26px;
    }
    
    .platform-subtitle {
        font-size: 14px;
    }
}

/* Экран выбора платформы */
.screen-hidden {
    display: none !important;
}

#screen-platform.container {
    padding-top: 16px; /* Отступ сверху, чтобы была видна кнопка назад */
    margin-top: 0;
    justify-content: flex-start; /* Выравниваем по верху, а не space-between */
}

.platform-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    margin-top: 20px; /* Опустили заголовок ниже */
}

.platform-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    text-align: center;
    letter-spacing: -0.5px;
}

.platform-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    text-align: center;
}

.platform-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.platform-item {
    width: 100%;
    padding: 18px 20px;
    border: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.platform-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.platform-item:active {
    transform: translateX(2px);
}

.platform-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.platform-item span {
    flex: 1;
    text-align: left;
}

.chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.5;
}

/* Анимации переходов */
@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-out-left {
    animation: slideOutLeft 0.2s ease-in-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.2s ease-in-out forwards;
}

.slide-out-right {
    animation: slideOutRight 0.2s ease-in-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.2s ease-in-out forwards;
}

/* Глобальный контейнер прогресса */
.global-progress-container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    background: #000000;
    z-index: 50;
    padding: 20px 20px 15px;
    pointer-events: none;
    height: auto;
}

.global-progress-container * {
    pointer-events: auto;
}

/* Пошаговый интерфейс - Общие стили */
#screen-install.container,
#screen-subscription.container,
#screen-complete.container {
    padding: 100px 20px 30px; /* Уменьшили верхний отступ т.к. убрали визуальную кнопку */
    justify-content: flex-start;
    max-width: 450px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

/* Убрали визуальную кнопку "Назад" - теперь используется встроенная кнопка Telegram */

/* Progress Indicator */
.progress-container {
    width: 100%; /* Занимает всю ширину */
    margin-bottom: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center; /* Центрируем по горизонтали */
    gap: 40px; /* Отступы между шагами */
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Активный шаг - белый заполненный круг */
.progress-step.active .step-circle {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
    /* Убрали свечение и пульсацию */
}

/* Завершенный шаг - показываем галочку */
.progress-step.completed .step-circle {
    background: #ffffff;
    border-color: #ffffff;
    color: transparent; /* Мгновенно скрываем цифру без анимации */
    font-size: 0;
}

/* Показываем галочку у завершенного шага */
.progress-step.completed .step-circle::before {
    content: '✓';
    position: absolute;
    font-size: 16px; /* Уменьшили размер галочки */
    font-weight: 700;
    color: #000000;
}

.progress-step.completing .step-circle {
    animation: completeStep 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes completeStep {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.step-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    transition: all 0.3s ease;
}

.progress-step.active .step-label {
    color: rgba(255, 255, 255, 0.8);
}

.progress-step.completed .step-label {
    color: rgba(255, 255, 255, 0.6);
}

.progress-line {
    width: 90px; /* Увеличили ширину линии */
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0;
    position: relative;
    top: -15px;
    overflow: hidden;
}

.progress-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, 0.4);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-line.completed::after {
    width: 100%;
}

.progress-line.animating::after {
    animation: fillLine 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Обратная анимация при возврате */
.progress-line.reverse-animating::after {
    animation: emptyLine 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fillLine {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

@keyframes emptyLine {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Step Content */
.step-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.step-content.fade-in {
    animation: fadeInContent 0.5s ease-out forwards;
}

.step-content.fade-out {
    animation: fadeOutContent 0.3s ease-out forwards;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutContent {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-icon-wrapper {
    margin-bottom: 40px; /* Отступ под иконкой */
}

.step-icon {
    width: 100px;
    height: 100px;
    animation: floatSoft 3s ease-in-out infinite;
}

.step-icon-image {
    width: 50px;  /* 🎨 РАЗМЕР ИКОНКИ - измените здесь */
    height: 50px; /* 🎨 РАЗМЕР ИКОНКИ - измените здесь */
    object-fit: contain;
    border-radius: 20px;
    /* Убрали свечение drop-shadow */
    animation: floatSoft 3s ease-in-out infinite;
}

@keyframes floatSoft {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.step-title {
    font-size: 30px; /* 🎨 РАЗМЕР ЗАГОЛОВКА - измените здесь */
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 0;
    letter-spacing: -0.5px;
    margin-bottom: 10px; /* Отступ между заголовком и описанием */
}

.step-description {
    font-size: 16px; /* 🎨 РАЗМЕР ОПИСАНИЯ - измените здесь */
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin: 0;
    max-width: 320px;
}

.highlight {
    color: #ffffff;
    font-weight: 600;
}

/* App Info Card */
.app-info-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.app-info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.app-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.app-info {
    flex: 1;
}

.app-name-text {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.app-type {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.app-action {
    opacity: 0.5;
}

/* Subscription Card */
.subscription-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
}

.subscription-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    font-weight: 500;
}

.subscription-link {
    display: flex;
    gap: 10px;
    align-items: center;
}

.link-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 14px;
    font-family: monospace;
    outline: none;
}

.btn-copy {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.btn-copy:active {
    transform: scale(0.95);
}

/* Instructions */
.instructions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.instruction-number {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

/* Success Screen */
.success-icon-wrapper {
    margin-bottom: 10px;
}

.success-icon {
    width: 120px;
    height: 120px;
}

.checkmark-circle {
    animation: drawCircle 0.6s ease-out 0.3s both;
}

.checkmark {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck 0.6s ease-out 0.6s both;
}

@keyframes drawCircle {
    from {
        stroke-dasharray: 0 220;
    }
    to {
        stroke-dasharray: 220 220;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.success-title {
    color: #ffffff;
    font-size: 38px;
}

.final-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.final-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

.final-text {
    flex: 1;
}

.final-title {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.final-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================ */
/* 🎨 УПРАВЛЕНИЕ ПЕРВЫМ ШАГОМ (УСТАНОВКА) */
/* ============================================ */

/* 0️⃣ ОБЩИЙ КОНТЕЙНЕР - двигает ВСЁ содержимое вверх/вниз */
#screen-install .step-content {
    margin-top: 50px; /* 🎨 ОТСТУП СВЕРХУ (двигает всё содержимое: иконку, заголовок, описание) */
}

/* 1️⃣ ИКОНКА (облако со стрелкой) */
#screen-install .step-icon-wrapper {
    margin-bottom: -5px; /* 🎨 ОТСТУП ПОД ИКОНКОЙ (расстояние от иконки до заголовка) */
}

#screen-install .step-icon-image {
    width: 150px;  /* 🎨 ШИРИНА ИКОНКИ */
    height: 150px; /* 🎨 ВЫСОТА ИКОНКИ */
}

/* 2️⃣ ЗАГОЛОВОК ("Приложение") */
#screen-install .step-title {
    font-size: 25px; /* 🎨 РАЗМЕР ТЕКСТА ЗАГОЛОВКА */
    margin-bottom: -20px; /* 🎨 ОТСТУП ПОД ЗАГОЛОВКОМ (расстояние до описания) */
}

/* 3️⃣ ОПИСАНИЕ ("Установите приложение...") */
#screen-install .step-description {
    font-size: 19px; /* 🎨 РАЗМЕР ТЕКСТА ОПИСАНИЯ */
    margin-bottom: -60px; /* 🎨 ОТСТУП ПОД ОПИСАНИЕМ (расстояние до кнопок) */
}

/* 4️⃣ КНОПКИ */
#screen-install .step-buttons {
    margin-top: 40px; /* 🎨 ОТСТУП НАД КНОПКАМИ (расстояние от описания до кнопок) */
    gap: 20px; /* 🎨 РАССТОЯНИЕ МЕЖДУ ДВУМЯ КНОПКАМИ */
}

/* ============================================ */
/* 🎨 ШАГ 2 (ПОДПИСКА) - НАСТРАИВАЕМЫЕ ПАРАМЕТРЫ */
/* ============================================ */

/* 0️⃣ ОБЩЕЕ ПОЛОЖЕНИЕ ВСЕХ ЭЛЕМЕНТОВ */
#screen-subscription .step-content {
    margin-top: 63px; /* 🎨 СДВИГ ВСЕХ ЭЛЕМЕНТОВ ВВЕРХ/ВНИЗ (положительное = вниз, отрицательное = вверх) */
}

/* 1️⃣ ИКОНКА */
#screen-subscription .step-icon-wrapper {
    margin-bottom: 0px; /* 🎨 ОТСТУП ПОД ИКОНКОЙ (расстояние от иконки до заголовка) */
}

#screen-subscription .step-icon-image {
    width: 130px;  /* 🎨 ШИРИНА ИКОНКИ */
    height: 130px; /* 🎨 ВЫСОТА ИКОНКИ */
}

/* 2️⃣ ЗАГОЛОВОК ("Добавьте подписку") */
#screen-subscription .step-title {
    font-size: 25px; /* 🎨 РАЗМЕР ТЕКСТА ЗАГОЛОВКА */
    margin-bottom: -20px; /* 🎨 ОТСТУП ПОД ЗАГОЛОВКОМ (расстояние до описания) */
}

/* 3️⃣ ОПИСАНИЕ ("Скопируйте ссылку подписки...") */
#screen-subscription .step-description {
    font-size: 19px; /* 🎨 РАЗМЕР ТЕКСТА ОПИСАНИЯ */
    margin-bottom: -58px; /* 🎨 ОТСТУП ПОД ОПИСАНИЕМ (если нужен дополнительный отступ) */
}

/* 4️⃣ КНОПКИ */
#screen-subscription .step-buttons {
    margin-top: 40px; /* 🎨 ОТСТУП НАД КНОПКАМИ (расстояние от описания до кнопок) */
    gap: 12px; /* 🎨 РАССТОЯНИЕ МЕЖДУ ДВУМЯ КНОПКАМИ */
}

/* 5️⃣ КНОПКА "ДАЛЕЕ" (вторая кнопка) */
#screen-subscription .btn-step-secondary {
    margin-top: 8px; /* 🎨 ДОПОЛНИТЕЛЬНЫЙ ОТСТУП СВЕРХУ ДЛЯ КНОПКИ "ДАЛЕЕ" (положительное = вниз, отрицательное = вверх) */
}

/* ============================================ */
/* 🎨 ШАГ 3 (ГОТОВО) - НАСТРАИВАЕМЫЕ ПАРАМЕТРЫ */
/* ============================================ */

/* 0️⃣ ОБЩЕЕ ПОЛОЖЕНИЕ ВСЕХ ЭЛЕМЕНТОВ */
#screen-complete .step-content {
    margin-top: 18px; /* 🎨 СДВИГ ВСЕХ ЭЛЕМЕНТОВ ВВЕРХ/ВНИЗ (положительное = вниз, отрицательное = вверх) */
    position: relative; /* Создаем контекст наложения */
    z-index: 2; /* Убедимся, что контент поверх видео */
}

/* 1️⃣ ИКОНКА ГАЛОЧКИ */
#screen-complete .success-icon-wrapper {
    margin-bottom: -40px; /* 🎨 ОТСТУП ПОД ИКОНКОЙ (расстояние от иконки до заголовка) */
}

#screen-complete .success-icon {
    width: 210px;  /* 🎨 ШИРИНА ИКОНКИ */
    height: 210px; /* 🎨 ВЫСОТА ИКОНКИ */
}

/* 2️⃣ ЗАГОЛОВОК ("Готово!") */
#screen-complete .step-title {
    font-size: 30px; /* 🎨 РАЗМЕР ТЕКСТА ЗАГОЛОВКА */
    margin-bottom: -20px; /* 🎨 ОТСТУП ПОД ЗАГОЛОВКОМ (расстояние до описания) */
}

/* 3️⃣ ОПИСАНИЕ ("Нажмите на круглую кнопку...") */
#screen-complete .step-description {
    font-size: 19px; /* 🎨 РАЗМЕР ТЕКСТА ОПИСАНИЯ */
    margin-bottom: -60px; /* 🎨 ОТСТУП ПОД ОПИСАНИЕМ */
}

/* 4️⃣ КНОПКА "ЗАВЕРШИТЬ" */
#screen-complete .step-buttons {
    margin-top: 40px; /* 🎨 ОТСТУП НАД КНОПКОЙ (расстояние от описания до кнопки) */
}

/* Step Buttons */
.step-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: auto;
    padding-top: 30px; /* 🎨 ОТСТУП СВЕРХУ ОТ КНОПОК - уменьшите, чтобы поднять кнопки выше */
    flex-shrink: 0;
    position: relative;
    z-index: 200;
    pointer-events: auto;
    opacity: 0; /* Изначально скрываем для анимации */
    transform: translateY(20px); /* Изначальное смещение для анимации */
    animation: fadeInContent 0.5s ease-out 0.2s forwards; /* Применяем анимацию с задержкой */
}

.step-buttons.fade-in {
    animation: fadeInContent 0.5s ease-out 0.2s forwards;
}

.step-buttons.fade-out {
    animation: fadeOutContent 0.3s ease-out forwards;
}

.btn-step-primary {
    width: 100%;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
    pointer-events: auto !important;
    position: relative;
    z-index: 300;
}

.btn-step-primary:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

.btn-step-primary:active {
    transform: translateY(0);
}

/* Иконка-изображение в кнопке */
.btn-icon-image {
    width: 20px;
    height: 20px;
    object-fit: contain;
    /* Убрали фильтр - показываем оригинальное изображение */
}

.btn-step-secondary {
    width: 100%;
    height: 50px;
    background: rgba(255, 255, 255, 0.1); /* Цвет как у English please */
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer !important;
    transition: all 0.3s ease;
    pointer-events: auto !important;
    position: relative;
    z-index: 300;
}

.btn-step-secondary:hover {
    background: rgba(255, 255, 255, 0.15); /* Чуть темнее при наведении */
    color: rgba(255, 255, 255, 0.9);
}

.btn-step-secondary:active {
    background: rgba(255, 255, 255, 0.08);
}

/* Responsive */
@media (max-width: 480px) {
    .global-progress-container {
        padding: 16px 16px 12px;
    }

    #screen-install.container,
    #screen-subscription.container,
    #screen-complete.container {
        padding: 90px 16px 24px; /* Уменьшили верхний отступ */
        min-height: 100vh;
    }

    .step-content {
        margin-top: 30px;
        margin-bottom: 0;
    }

    .step-buttons {
        margin-top: auto;
        padding-top: 24px;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .step-label {
        font-size: 10px;
    }

    .step-icon {
        width: 80px;
        height: 80px;
    }

    .step-title {
        font-size: 28px;
    }

    .step-description {
        font-size: 15px;
    }

    .success-icon {
        width: 100px;
        height: 100px;
    }

    .btn-step-primary {
        height: 52px;
        font-size: 15px;
    }
}

/* Анимации градиента */
@keyframes gradientMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(5%, -5%) rotate(120deg);
    }
    66% {
        transform: translate(-5%, 5%) rotate(240deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

@keyframes gradientPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ============================================ */
/* Модальное окно "Важная информация" */
/* ============================================ */
.modal-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Полная высота для центрирования контента */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Выравнивание по нижнему краю */
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1C1C1D;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 0px; /* Убираем закругление снизу */
    border-bottom-right-radius: 0px;
    width: 100%;
    max-width: 450px; /* Вернем максимальную ширину */
    height: auto; /* Автоматическая высота */
    padding: 20px;
    padding-bottom: 30px; /* Добавим отступ снизу для удлинения */
    box-sizing: border-box;
    transform: translateY(100%); /* Анимация выезда снизу */
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* justify-content: flex-start; */ /* Убираем центрирование контента, чтобы он был сверху */
}

.modal-overlay.visible .modal-content {
    transform: translateY(0%);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #ffffff;
}

.modal-body p {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.modal-body .highlight {
    color: #ffffff;
    font-weight: 600;
}

.modal-footer {
    padding-top: 10px;
    margin-top: 0px; /* Убираем отступ */
}

.modal-footer .btn-step-primary {
    width: 100%;
    height: 52px; /* Высота как у других кнопок */
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    /* Дополнительные стили, если нужно переопределить */
}

/* ============================================ */
/* 🎨 ЭКРАН ЛИЧНОГО КАБИНЕТА */
/* ============================================ */

#screen-profile.container {
    padding: 20px 16px 30px;
    justify-content: flex-start;
    gap: 20px;
    background: #000000;
}

/* VPN Shield Animation */
.vpn-shield-container {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 24px;
}

.shield-rings {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none; /* Круги отключены */
    align-items: center;
    justify-content: center;
}

.ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: ringPulse 3s ease-in-out infinite;
}

.ring-1 {
    width: 120px;
    height: 120px;
    animation-delay: 0s;
}

.ring-2 {
    width: 180px;
    height: 180px;
    animation-delay: 0.5s;
}

.ring-3 {
    width: 240px;
    height: 240px;
    animation-delay: 1s;
}

@keyframes ringPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.shield-icon {
    width: 80px;
    height: 80px;
    position: relative;
    z-index: 2;
    animation: shieldFloat 3s ease-in-out infinite;
}

.shield-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.3));
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

@keyframes shieldFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Balance Info Card - Новая красивая карточка */
.balance-info-card {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.balance-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
    pointer-events: none;
}



/* VPN Status Badge */
.vpn-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    width: fit-content;
    position: relative;
    z-index: 1;
}

.vpn-status-badge.online {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

.vpn-status-badge.offline {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.vpn-status-badge.online .status-indicator {
    background: #00ff40;
    box-shadow: 0 0 12px rgba(0, 255, 64, 0.8), 0 0 24px rgba(52, 199, 89, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.vpn-status-badge.offline .status-indicator {
    background: rgba(255, 255, 255, 0.4);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 12px rgba(0, 255, 64, 0.8), 0 0 24px rgba(0, 255, 64, 0.4);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 16px rgb(0, 255, 64), 0 0 32px rgba(0, 255, 64, 0.6);
    }
}

/* Balance Main */
.balance-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.balance-title {
    margin-left: 1px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-amount {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -1px;
    line-height: 1;
}

/* Balance Duration */
.balance-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.balance-duration svg {
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

/* Profile Buttons */
.profile-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-profile-primary {
    width: 100%;
    height: 56px;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}

.btn-profile-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.btn-profile-primary:active {
    transform: translateY(0);
}

.btn-profile-primary svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.price-label {
    margin-left: auto;
    font-size: 15px;
    opacity: 0.95;
    flex-shrink: 0;
}

.btn-profile-secondary {
    width: 100%;
    height: 54px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-profile-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-profile-secondary:active {
    transform: scale(0.98);
}

.btn-profile-secondary svg {
    width: 20px;
    height: 20px;
    font-size: 0;
}

.btn-profile-secondary span:first-of-type {
    flex: 1;
    text-align: left;
}

.platform-badge {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.profile-buttons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-profile-small {
    height: 54px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-profile-small:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-profile-small:active {
    transform: scale(0.98);
}

.btn-profile-small svg {
    width: 20px;
    height: 20px;
}

/* Responsive для профиля */
@media (max-width: 480px) {
    #screen-profile.container {
        padding: 30px 16px 24px;
        gap: 20px;
    }

    .vpn-shield-container {
        height: 180px;
        margin-bottom: 16px;
    }

    .shield-icon {
        width: 200px;
        height: 200px;
    }

    .ring-1 {
        width: 100px;
        height: 100px;
    }

    .ring-2 {
        width: 150px;
        height: 150px;
    }

    .ring-3 {
        width: 200px;
        height: 200px;
    }

    .balance-info-card {
        padding: 20px;
    }

    .balance-amount {
        font-size: 38px;
    }

    .balance-duration {
        padding: 10px 14px;
        font-size: 13px;
    }

    .btn-profile-primary,
    .btn-profile-secondary {
        height: 52px;
        font-size: 15px;
    }

    .btn-profile-small {
        height: 52px;
        font-size: 15px;
    }
}

/* ============================================ */
/* 💳 МОДАЛЬНОЕ ОКНО ОЖИДАНИЯ ОПЛАТЫ */
/* ============================================ */

.payment-waiting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.payment-waiting-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.payment-waiting-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 24px 24px 0 0;
    padding: 20px 24px 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.payment-waiting-overlay.visible .payment-waiting-content {
    transform: translateY(0);
}

/* Заголовок модального окна ожидания - на уровне с крестиком */
.payment-waiting-content .modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 -5px 0;
    text-align: left;
}

.payment-waiting-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0 0 16px;
    line-height: 1.5;
}

.payment-waiting-text span {
    color: #00d4aa;
    cursor: pointer;
    text-decoration: underline;
}

/* Белый спиннер для ожидания оплаты */
.payment-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 24px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================ */
/* ЭКРАН ПРОФИЛЯ ПОЛЬЗОВАТЕЛЯ */
/* ============================================ */

#screen-user-profile.container {
    padding: 20px 16px 30px;
    justify-content: flex-start;
    gap: 24px;
    background: #000000;
}

/* Header */
.user-profile-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.profile-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.3px;
}

/* Profile Sections */
.profile-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-label {
        font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-left: 4px;
}

/* Subscription Link Card */
.subscription-link-card {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscription-link-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-color: rgba(255, 255, 255, 0.15);
}

.subscription-link-card:active {
    transform: scale(0.98);
}

.link-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.link-icon {
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.link-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-input:focus {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

.copy-link-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.copy-link-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.copy-link-btn:active {
    transform: scale(0.95);
}

.copy-icon,
.check-icon {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.check-icon {
    animation: checkmark-appear 0.3s ease;
}

@keyframes checkmark-appear {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Profile Actions */
.profile-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-action-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
}

.profile-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.profile-action-btn:active {
    transform: translateX(2px);
}

.profile-action-btn svg:first-child {
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.profile-action-btn span {
    flex: 1;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
}

.arrow-icon {
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

/* Responsive для экрана профиля */
@media (max-width: 480px) {
    #screen-user-profile.container {
        padding: 16px 16px 24px;
        gap: 20px;
    }

    .user-profile-header {
        margin-bottom: 16px;
    }

    .profile-title {
        font-size: 18px;
    }

    .subscription-link-card {
        padding: 14px;
    }

    .link-input {
        font-size: 12px;
        padding: 8px 12px;
    }

    .copy-link-btn {
        width: 40px;
        height: 40px;
    }

    .profile-action-btn {
        padding: 16px 14px;
    }

    .profile-action-btn span {
        font-size: 15px;
    }
}

/* ============================================ */
/* 🎨 ПАРАМЕТРЫ ДЛЯ НАСТРОЙКИ ЛИЧНОГО КАБИНЕТА */
/* ============================================ */

/*
📐 РАЗМЕР ЛОГОТИПА (shield-icon):
   Найдите в CSS: .shield-icon { width: 80px; height: 80px; }
   Измените оба значения на нужный размер (например, 100px)

📏 ВЫСОТА КОНТЕЙНЕРА ЛОГОТИПА:
   Найдите в CSS: .vpn-shield-container { height: 180px; }
   Измените значение чтобы поднять/опустить логотип

🔘 РАЗМЕР КОЛЕЦ ВОКРУГ ЛОГОТИПА:
   Найдите в CSS:
   .ring-1 { width: 120px; height: 120px; }
   .ring-2 { width: 180px; height: 180px; }
   .ring-3 { width: 240px; height: 240px; }

📦 ОТСТУПЫ МЕЖДУ СЕКЦИЯМИ:
   Найдите в CSS: #screen-profile.container { gap: 20px; }
   Увеличьте/уменьшите значение для изменения расстояния между элементами

📍 ОТСТУПЫ ВНУТРИ КОНТЕЙНЕРА:
   Найдите в CSS: #screen-profile.container { padding: 20px 16px 30px; }
   Формат: padding: СВЕРХУ СЛЕВА-СПРАВА СНИЗУ;

📝 РАЗМЕР КАРТОЧКИ ПРОФИЛЯ:
   Найдите в CSS: .profile-card { padding: 20px; }
   Измените padding для изменения внутренних отступов карточки

🔽 ОТСТУП ПОД ЛОГОТИПОМ:
   Найдите в CSS: .vpn-shield-container { margin-bottom: 24px; }
   Измените значение для расстояния между логотипом и карточкой профиля

💳 ОТСТУП МЕЖДУ ИНФОРМАЦИЕЙ О ПРОФИЛЕ И ПОДПИСКЕ:
   Найдите в CSS: .profile-card { gap: 16px; }
   Измените для расстояния между секциями внутри карточки

🔘 ВЫСОТА КНОПОК:
   Главная кнопка: .btn-profile-primary { height: 56px; }
   Вторичные кнопки: .btn-profile-secondary { height: 54px; }
   Маленькие кнопки: .btn-profile-small { height: 54px; }

📊 РАССТОЯНИЕ МЕЖДУ КНОПКАМИ:
   Найдите в CSS: .profile-buttons { gap: 12px; }
   Измените для расстояния между всеми кнопками

📱 ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ:
   Найдите секцию: @media (max-width: 480px)
   Там можно настроить отдельные параметры для маленьких экранов
*/


/* ==================== АДМИН ПАНЕЛЬ ==================== */

/* Admin Header */
.admin-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.admin-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

/* Admin Section */
.admin-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Broadcast Form */
.broadcast-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.broadcast-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    resize: vertical;
    transition: all 0.2s;
}

.broadcast-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.broadcast-textarea::placeholder {
    color: var(--text-secondary);
}

.broadcast-info {
    display: flex;
    justify-content: flex-end;
}

.char-counter {
    font-size: 13px;
    color: var(--text-secondary);
}

.char-counter #char-count {
    font-weight: 600;
    color: var(--text-primary);
}

/* Broadcast Send Button */
.btn-broadcast-send {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-broadcast-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
}

.btn-broadcast-send:active {
    transform: translateY(0);
}

.btn-broadcast-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-broadcast-send svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

/* Spinner for loading state */
.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Broadcast Result */
.broadcast-result {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 12px;
    text-align: center;
    animation: fadeIn 0.3s;
}

.result-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.result-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.result-stats {
    font-size: 14px;
    color: var(--text-secondary);
}

.result-stats strong {
    color: var(--text-primary);
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin Statistics Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.stat-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Sync Section */
.sync-info {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid #007AFF;
}

.info-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.info-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Sync Button */
.btn-sync {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #34C759 0%, #248A3D 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

.btn-sync:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 199, 89, 0.4);
}

.btn-sync:active {
    transform: translateY(0);
}

.btn-sync:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-sync svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

/* Sync Result */
.sync-result {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 12px;
    animation: fadeIn 0.3s;
}

.sync-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.sync-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--card-bg);
    border-radius: 8px;
}

.sync-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.sync-stat strong {
    font-size: 16px;
    color: var(--text-primary);
}

/* Sync Progress */
.sync-progress {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 12px;
    animation: fadeIn 0.3s;
}

.progress-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 12px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #34C759 0%, #248A3D 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-details {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

/* ============================================ */
/* МОДАЛЬНОЕ ОКНО ПОДТВЕРЖДЕНИЯ ОПЛАТЫ */
/* ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content.payment-confirmation {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 24px 24px 0 0;
    padding: 20px 20px 40px;
    width: 100%;
    max-width: 500px;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-content.payment-confirmation {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
    text-align: left;
}

.payment-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 6px;
}

.payment-description {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
}

.payment-method {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 0px;
    gap: 12px;
}

.payment-icon {
    height: 32px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.payment-method-text {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    flex: 1;
}

.payment-change {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.2s ease;
}

.payment-change:hover {
    color: rgba(255, 255, 255, 0.8);
}

.btn-payment-confirm {
    width: 100%;
    height: 56px;
    background: #ffffff;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
    margin-top: 0px;
}

.btn-payment-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-payment-confirm:active {
    transform: translateY(0);
}

/* Модальное окно выбора способа оплаты */
.modal-content.payment-method-selector {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 24px 24px 0 0;
    padding: 20px 20px 32px;
    width: 100%;
    max-width: 500px;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-content.payment-method-selector {
    transform: translateY(0);
}

.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.payment-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.payment-option.selected {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.payment-option-icon {
    height: 32px;
    width: auto;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: contain;
}

.payment-option-icon-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon {
    font-size: 24px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
}

.payment-option-text {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    flex: 1;
}

.payment-option-check {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.payment-option.selected .payment-option-check {
    opacity: 1;
}

/* ============================================ */
/* ЭКРАН ВЫБОРА СУММЫ ПОПОЛНЕНИЯ */
/* ============================================ */

#screen-topup-amount.container {
    padding: 20px 20px;
    justify-content: flex-start;
    gap: 20px;
}

/* Header */
.topup-header {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.topup-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -1px;
}

.topup-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-weight: 500;
}

/* Selected Amount Display */
.selected-amount-display {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#selected-amount-value {
    font-size: 64px;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -2px;
}

/* Amount Grid */
.amount-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
    margin-top: 16px;
}

.amount-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.amount-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.amount-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

.amount-card:hover::before {
    opacity: 1;
}

.amount-card:active {
    transform: translateY(-2px);
}

.amount-card.selected {
    background: #ffffff;
    border-color: #ffffff;
    transform: scale(1.05);
}

.amount-card.selected .amount-value,
.amount-card.selected .amount-days {
    color: #000000;
}

/* Убрали галочку при выборе */

.amount-value {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.amount-days {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

/* Action Button */
.topup-action {
    width: 100%;
    padding-top: 0px;
    margin-top: -16px;
}

.btn-topup-primary {
    width: 100%;
    height: 58px;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 29px;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.btn-topup-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

.btn-topup-primary:active {
    transform: translateY(0);
}

.btn-topup-primary:disabled {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-topup-primary:disabled:hover {
    transform: none;
}

.btn-topup-primary svg {
    transition: transform 0.3s ease;
}

.btn-topup-primary:not(:disabled):hover svg {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 480px) {
    #screen-topup-amount.container {
        padding: 18px 16px;
        gap: 18px;
    }
    
    .topup-title {
        font-size: 28px;
    }
    
    .topup-subtitle {
        font-size: 14px;
    }
    
    .selected-amount-display {
        padding: 24px 18px;
        border-radius: 18px;
    }
    
    #selected-amount-value {
        font-size: 52px;
    }
    
    .amount-grid {
        gap: 8px;
        margin-top: 12px;
    }
    
    .amount-card {
        padding: 16px 8px;
        border-radius: 14px;
    }
    
    .amount-value {
        font-size: 20px;
    }
    
    .amount-days {
        font-size: 11px;
    }
    
    .btn-topup-primary {
        height: 56px;
        font-size: 16px;
    }
}

/* ============================================ */
/* СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ПОДПИСКИ */
/* ============================================ */

/* Стили для поля ссылки в модальном окне */
.subscription-link-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.subscription-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0;
}

.copy-subscription-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.copy-subscription-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.copy-subscription-btn:active {
    transform: scale(0.95);
}

.copy-icon-modal,
.check-icon-modal {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.check-icon-modal {
    animation: checkmark-appear 0.3s ease;
}

.subscription-instruction {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Адаптивность для модального окна подписки */
@media (max-width: 480px) {
    .subscription-link-field {
        padding: 10px;
    }

    .subscription-input {
        font-size: 13px;
    }

    .copy-subscription-btn {
        width: 36px;
        height: 36px;
    }

    .subscription-instruction {
        font-size: 13px;
    }
}

/* ============================================ */
/* РЕФЕРАЛЬНАЯ ПРОГРАММА - МОДАЛЬНОЕ ОКНО */
/* ============================================ */

.referral-modal-content {
    background: #1C1C1D;
    border-radius: 24px 24px 0 0;
    padding: 24px 20px 50px;
    width: 100%;
    max-width: 500px;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#referral-modal.active .referral-modal-content {
    transform: translateY(0);
}

.referral-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.referral-header .modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1;
}

.referral-body {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.referral-info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.referral-icon-wrapper {
    width: 96px;
    height: 96px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    animation: referralFloat 3s ease-in-out infinite;
}

.referral-icon {
    width: 56px;
    height: 56px;
    stroke: #ffffff;
    animation: referralIconScale 3s ease-in-out infinite;
}

/* Анимации для реферальной иконки */
@keyframes referralFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes referralIconScale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.referral-description {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.referral-description strong {
    color: #ffffff;
    font-weight: 700;
}

.referral-footer {
    display: flex;
    gap: 10px;
    margin-top: -8px;
}

.btn-referral-share,
.btn-referral-copy {
    flex: 1;
    height: 52px;
    border-radius: 14px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-referral-share {
    background: #ffffff;
    color: #000000;
}

.btn-referral-share:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.btn-referral-share:active {
    transform: translateY(0);
}

.btn-referral-share svg {
    stroke: #000000;
}

.btn-referral-copy {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-referral-copy:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-referral-copy:active {
    background: rgba(255, 255, 255, 0.08);
}

.btn-referral-copy svg {
    stroke: #ffffff;
}

.btn-referral-copy .check-icon-ref {
    stroke: #4CAF50;
}

/* Анимация для кнопки копирования */
.btn-referral-copy.copied {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.4);
}

.referral-modal-content .modal-close-btn {
    position: absolute;
    top: 18px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.2s ease;
}

.referral-modal-content .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
