/* --- ШРИФТЫ --- */

@font-face { font-family: 'Aeonik Pro'; src: local('Aeonik Pro'), local('AeonikPro-Regular'); font-weight: 400; font-display: swap; }

@font-face { font-family: 'Aeonik Pro'; src: local('Aeonik Pro Bold'), local('AeonikPro-Bold'); font-weight: 700; font-display: swap; }


/* --- СТИЛИ ДЛЯ БЛОКА ПОД ЗАГОЛОВКОМ (META STYLE) --- */

.meta-subtitle-box {
    margin-top: -8px !important;
    margin-bottom: 16px !important;
   
}

.meta-subtitle-box p {
    font-size: 14px !important;
    color: #65676B !important; /* Фирменный вторичный серый цвет Meta */
    line-height: 1.4 !important;
    font-weight: 400 !important;
    margin: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.meta-header-divider {
    height: 1px !important;
    background-color: #CED0D4 !important; /* Цвет бордеров в Facebook */
    width: 100% !important;
    margin-bottom: 20px !important;
}
:root {

    /* ЗАМЕНЕНО: Основной текст теперь синий #0866FF */
    --bg-color: #F1F3F6; --card-bg: #FFFFFF; --text-main: #0866FF; --text-sub: #6C757D;

    /* ЗАМЕНЕНО: Черная кнопка теперь синяя #0866FF */
    --accent: #2962FF; --success: #10B981; --error: #E11D48; --radius: 28px; --btn-black: #0866FF;

}

.iti--separate-dial-code .iti__selected-flag {
    border-radius: 10px 0 0 10px;
}


/* ВАЖНО: Принудительное наследование шрифтов */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: none; font-family: 'Aeonik Pro', 'Inter', sans-serif !important; }

html, body { height: 100%; margin: 0; }



body {

    background: var(--bg-color); 

    overflow-x: hidden; overflow-y: auto;

}
.footer-row {
    display: flex;
    justify-content: center;
    /* Добавляем выравнивание по центру по вертикали */
    align-items: center; 
    
    gap: 15px;
    margin-bottom: 15px;
}
/* Обновляем контейнер, чтобы выстроить видео и текст в ряд */
.logo-container {
    display: flex;
    align-items: start;
    gap: 6px; /* Расстояние между значком и текстом */
    height: 62px;
    text-decoration: none; /* Если вдруг обернете в ссылку */
}

/* Стили для текста */
.logo-text {
    font-family: 'Aeonik Pro', 'Inter', sans-serif; /* Используем твои шрифты */
    font-weight: 800; /* Максимальная жирность */
    font-size: 24px;  /* Размер текста */
    color: #0866FF;   /* ЗАМЕНЕНО: Черный на синий */
    letter-spacing: -1px; /* Немного сужаем буквы для стиля логотипа */
    line-height: 1;
    position: relative;
    top: 1px; /* Микро-коррекция вертикального положения */
}

/* Опционально: если видео слишком большое, можно ограничить его ширину */
.logo-video {
    height: 32px; /* Подберите высоту под размер текста */
    width: auto;
    display: block;
}

/* ФОН */

.ambient-bg {

    position: fixed; top: -50%; left: -50%; width: 200%; height: 200%;

    background: radial-gradient(circle at 50% 30%, rgba(66, 133, 244, 0.08) 0%, transparent 40%),

                radial-gradient(circle at 80% 80%, rgba(0, 209, 108, 0.06) 0%, transparent 40%);

    z-index: -1; animation: breathe 10s infinite alternate ease-in-out; pointer-events: none;

}
/* --- COOKIE BANNER STYLES --- */
.cookie-float-panel {
    position: fixed;
    bottom: -150%; /* Скрыто по умолчанию внизу */
    left: 20px;
    right: 20px;
    margin: 0 auto;
    max-width: 400px;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: bottom 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.cookie-float-panel.visible {
    bottom: 30px; /* Показываем */
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.cookie-icon {
    width: 40px;
    height: 40px;
    background: #F3F4F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0866FF; /* ЗАМЕНЕНО: Иконка куки синяя */
    flex-shrink: 0;
}
.cookie-icon svg { width: 20px; height: 20px; }

.cookie-text h3 {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 2px 0;
    color: #252729; /* ЗАМЕНЕНО: Заголовок куки синий */
}

.cookie-text p {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
    line-height: 1.3;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.c-btn {
    flex: 1;
    height: 44px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.c-btn-primary {
    background: #0866FF; /* ЗАМЕНЕНО: Кнопка Принять синяя */
    color: #fff;
}
.c-btn-primary:active { transform: scale(0.96); opacity: 0.9; }

.c-btn-ghost {
    background: transparent;
    color: #6B7280;
}
.c-btn-ghost:hover { background: #F9FAFB; color: #0866FF; } /* ЗАМЕНЕНО: Ховер синий */

@media (min-width: 768px) {
    .cookie-float-panel {
        left: auto;
        right: 30px; /* На десктопе прижимаем вправо */
    }
}


/* КОНТЕЙНЕР */

.app-container {

    min-height: 100dvh; width: 100%; max-width: 440px; margin: 0 auto; padding: 10px 20px;

    display: flex; flex-direction: column; justify-content: space-between;

}



/* ХЕДЕР */

.app-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; flex-shrink: 0; }

.logo-container { height: 56px; display: flex; align-items: center; }

.logo-video { height: 100%; width: auto; mix-blend-mode: multiply; display: block; }



/* ОНЛАЙН */

.online-widget {

    background: rgba(255, 255, 255, 0.6); 

    padding: 6px 14px; border-radius: 100px; display: flex; align-items: center; gap: 8px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid rgba(255,255,255,0.8);

}

.online-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; position: relative; }

.online-dot::after {

    content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid var(--success); opacity: 0;

    animation: ripple 2s infinite cubic-bezier(0.4, 0, 0.6, 1);

}

.online-text { font-size: 13px; font-weight: 700; color: var(--text-main); font-variant-numeric: tabular-nums; }

.online-label { font-size: 13px; color: var(--text-sub); }



/* КАРТОЧКА */

.main-card {

    background: rgba(255, 255, 255, 0.95);  border-radius: var(--radius);

    padding: 29px 20px; box-shadow: 0 20px 50px -10px rgba(0,0,0,0.08), inset 0 1px 2px #fff;

    text-align: center; width: 100%; margin: 0px auto;

    animation: fadeCard 0.4s ease-out;

}



/* --- СТИЛИ ДЛЯ ШАГА 2 --- */

.code-display {

    background: #F1F3F6; border-radius: 16px; padding: 20px; margin-bottom: 24px;

    border: 1px solid #E5E7EB; text-align: center;

}

.code-status {

    display: inline-flex; align-items: center; gap: 6px; font-size: 12px;

    color: #1344c4; font-weight: 700; margin-bottom: 10px;

    background: rgb(0 117 245 / 10%); padding: 6px 12px; border-radius: 20px;

}

.code-value {

    font-size: 24px; font-weight: 800; color: var(--text-main); letter-spacing: 1.5px;

    font-family: 'Courier New', monospace !important;

}



.form-group { display: flex; flex-direction: column;  width: 100%; margin-bottom: 20px; }

.rv-input {

    width: 100%; padding: 16px; background: #F8F9FB; border: 1px solid #EEF0F4;

    border-radius: 10px; font-size: 16px;  outline: none; transition: 0.2s;

    font-weight: 500;

}

.rv-input:focus { background: #fff; border-color: var(--text-main); box-shadow: 0 0 0 4px rgba(8, 102, 255, 0.05); }

.rv-input.error { border-color: var(--error); background: #FFF1F2; animation: shake 0.4s; }



/* --- СТИЛИ ДЛЯ ШАГА 3 (ГРАФИК CSS) --- */

.bot-header-badge {

    display: inline-flex; align-items: center; gap: 6px;

    background: rgba(16, 185, 129, 0.1); color: #10B981;

    font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 20px;

    margin-bottom: 15px; letter-spacing: 0.5px;

}

.pulse-dot { width: 6px; height: 6px; background: currentColor; border-radius: 50%; animation: blink 1.5s infinite; }



.chart-wrapper-new {

    background: #F8F9FB; border: 1px solid #EEF0F4; border-radius: 20px;

    padding: 20px 15px; margin-bottom: 20px; position: relative; overflow: hidden;

}



.chart-info { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 12px; font-weight: 700; color: var(--text-sub); }

.growth-label { color: var(--success); background: #DCFCE7; padding: 2px 6px; border-radius: 4px; }



/* ВОЗВРАЩАЕМ СТАРЫЙ ГРАФИК */

.chart-stage {

    height: 160px; width: 100%; display: flex; align-items: flex-end; justify-content: space-between;

    gap: 3px;

    position: relative; margin-bottom: 20px;

}
/* Тексты */
.chart-info, .bal-label { color: #6C757D !important; }
.bal-value { color: #0866FF !important; } /* ЗАМЕНЕНО: Значение баланса синее */
.pair-name { color: #0866FF !important; font-weight: 700; } /* ЗАМЕНЕНО: Имя пары синее */

/* --- СВЕЧИ (SMOOTH BLUE) --- */
.candle-bar {
    /* Основной цвет (Рост/Норма) - СИНИЙ Facebook */
    background: #0866FF !important; /* ЗАМЕНЕНО: Свечи графика синие */
    border-radius: 3px !important;
    min-width: 6px !important; /* Чуть шире для солидности */
    
    /* СУПЕР ПЛАВНАЯ АНИМАЦИЯ */
    /* 0.4s сглаживает рывки, cubic-bezier делает движение естественным */
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.4s !important;
    
    box-shadow: none !important;
}

/* Цвет при падении (вместо красного - серый) */
/* Это создает стильный монохромный эффект */
.candle-bar.red {
background: #7B8190 !important;
 /* Серый */
}
.grid-line { position: absolute; left: 0; right: 0; height: 1px; background: #E5E7EB !important; z-index: 0; }



/* ТОНКИЕ СВЕЧИ С ПЛАВНОЙ АНИМАЦИЕЙ */

.candle-bar {

    flex: 1; min-width: 4px; border-radius: 3px; background: #10B981;

    transition: height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.3s; /* Плавная волна */

    position: relative; z-index: 1;

}

.candle-bar.red { background: #F87171; }



.balance-container { text-align: center; border-top: 1px solid #E5E7EB; padding-top: 15px; }

.bal-label { font-size: 11px; text-transform: uppercase; color: #9CA3AF; font-weight: 600; letter-spacing: 1px; }

.bal-value { font-size: 32px; font-weight: 900; color: #0866FF; font-feature-settings: "tnum"; margin-top: 4px; } /* ЗАМЕНЕНО */



.loading-status {

    display: flex; align-items: center; justify-content: center; gap: 10px;

    margin-top: 20px; color: #6C757D; font-size: 13px; font-weight: 500;

}

.mini-spinner {

    width: 16px; height: 16px; border: 2px solid #E5E7EB; border-top-color: #0866FF; /* ЗАМЕНЕНО: Спиннер синий */

    border-radius: 50%; animation: spin 1s linear infinite;

}



/* ФУТЕР ДОВЕРИЯ */

.card-trust-footer {

    margin-top: 25px; padding-top: 20px; border-top: 1px solid #F3F4F6;

    display: flex; flex-direction: column; align-items: center; gap: 14px;

}

.card-trust-footer p { font-size: 11px; color: #9CA3AF; margin: 0; font-weight: 500; }

.trust-icons { display: flex; gap: 18px; opacity: 0.6; align-items: center; }

.trust-icons img { display: block; width: auto; mix-blend-mode: multiply; filter: grayscale(100%); }



/* Типографика */

h1 { font-size: 24px; font-weight: 800; line-height: 1.1; margin-bottom: 10px; color: #252729; letter-spacing: -0.02em; } /* ЗАМЕНЕНО */



.subtitle { font-size: 14px; color: var(--text-sub); line-height: 1.5; margin-bottom: 24px; font-weight: 500; padding: 0 5px; }



/* СПИСОК */

.features-grid { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }

.f-card { display: flex; align-items: center; gap: 14px; padding: 14px; background: #F8F9FB; border: 1px solid #EEF0F4; border-radius: 18px; text-align: left; transition: transform 0.1s; }

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

.f-icon { width: 42px; height: 42px; background: #FFFFFF; border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.04); flex-shrink: 0; color: var(--text-main); }

.f-content h3 { font-size: 14px; font-weight: 700; color: #252729; margin-bottom: 2px; } /* ЗАМЕНЕНО */

.f-content p { font-size: 12px; color: var(--text-sub); line-height: 1.2; }



/* SVG и КНОПКИ */

.anim-svg { width: 24px; height: 24px; fill: none; stroke: #0866FF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.timer-path { stroke-dasharray: 100; animation: timerFill 3s linear infinite; }

.chart-line { stroke-dasharray: 50; stroke-dashoffset: 50; animation: drawChart 2.5s ease-out forwards infinite; }

.target-circle { animation: pulseTarget 2.5s infinite; transform-origin: center; }

.target-cross { opacity: 0; animation: fadeInCross 2.5s infinite; }



.btn-black {
margin-top: 10px!important;
    width: 100%; height: 56px; background: var(--btn-black); color: white;

    font-size: 17px; font-weight: 700; border: none; border-radius: 16px; cursor: pointer;

    position: relative; overflow: hidden; box-shadow: 0 8px 24px rgba(8, 102, 255, 0.15); transition: transform 0.1s;

    display: flex; align-items: center; justify-content: center;

}

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

.btn-loader { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; display: none; }



/* ФУТЕР */

.footer-links { margin-top: 10px; padding-bottom: 20px; text-align: center; flex-shrink: 0; }



.footer-link { font-size: 11px; color: #9CA3AF; text-decoration: none; font-weight: 500; }

.copyright { font-size: 10px; color: #D1D5DB; }



/* ЛОАДЕР */

.loader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #fff; z-index: 999; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s; }

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

.r-logo { font-size: 48px; font-weight: 900; color: #0866FF; margin-bottom: 30px; letter-spacing: -2px; animation: scaleIn 0.8s ease; } /* ЗАМЕНЕНО */

.progress-track { width: 160px; height: 4px; background: #F1F3F6; border-radius: 2px; overflow: hidden; }

.progress-fill { width: 0%; height: 100%; background: #3b4045; transition: width 0.3s ease-out; border-radius: 2px; } /* ЗАМЕНЕНО */

.loader-text { margin-top: 20px; font-size: 13px; font-weight: 500; color: var(--text-sub); }


.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); 
    z-index: 2000; 
    display: flex; 
    
    /* Изменено выравнивание, чтобы при скролле верх не обрезался */
    align-items: center; 
    justify-content: center;
    
    opacity: 0; visibility: hidden; transition: all 0.4s ease;
    
    /* --- ДОБАВЛЕНО --- */
    overflow-y: auto; /* Разрешаем скролл всей страницы */
    -webkit-overflow-scrolling: touch;
}

/* Добавляем медиа-запрос для маленьких экранов */
@media (max-height: 700px) {
    .modal-overlay {
        align-items: flex-start; /* На низких экранах прижимаем к верху */
        padding: 20px 0; /* Даем отступы */
    }
    .modal-card {
        margin: 20px auto; /* Центрируем с отступами */
    }
}

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



.modal-card {

    background: #fff; width: 90%; max-width: 380px; padding: 24px;

    border-radius: 24px; text-align: center;

    transform: scale(0.95); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    box-shadow: 0 20px 60px rgba(0,0,0,0.25);

}

.modal-overlay.open .modal-card { transform: scale(1); }



/* --- ПРОМО-ПОПАП --- */

.promo-card { padding: 32px 24px; }

.modal-logo-area { margin-bottom: 26px; width: 70px; margin-left: auto; margin-right: auto; }

.modal-logo-area img { width: 100%; height: auto; display: block; }

.promo-desc { font-size: 15px; color: #6B7280; line-height: 1.5; margin-bottom: 24px; margin-top: 10px; }



.benefit-list {

    text-align: left; background: #F9FAFB; border-radius: 16px; padding: 16px; margin-bottom: 24px;

    display: flex; flex-direction: column; gap: 12px;

}

.b-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #374151; font-weight: 500; }

.b-icon {

    width: 20px; height: 20px;  color: #16A34A; border-radius: 50%;

    display: flex; align-items: center; justify-content: center; flex-shrink: 0;

}

.b-icon svg { width: 12px; height: 12px; stroke-width: 3; stroke: #fff!important; }



/* --- МОДАЛКА ВЫБОРА ПЛАНА --- */

.plan-modal-card { background: #F9FAFB; padding: 24px 16px; }



.success-header { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 10px; }

.s-icon-img {

    width: 110px; height: 60px;

    display: flex; align-items: center; justify-content: center;

    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

}

.s-icon-img img { width: 100%; height: auto; display: block; }



.plan-sub { font-size: 13px; color: #6B7280; margin-bottom: 20px; line-height: 1.4; padding: 0 10px; }

/* ========================================================= */
/* --- ФИНАЛЬНЫЕ СТИЛИ: КАРТОЧКИ С КНОПКОЙ СНИЗУ И ТЕГАМИ --- */
/* ========================================================= */

/* 1. Список с прокруткой */
.plans-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 10px !important;
    padding-bottom: 20px !important;
    
    /* Ограничение высоты для мобилок */
   
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* 2. Карточка (Вертикальная колонка) */
.plan-row {
    display: flex !important;
    flex-direction: column !important; /* Элементы друг под другом */
    align-items: stretch !important;   /* Растягиваем на всю ширину */
    
    background: #FFFFFF !important;
    border: 1px solid #F3F4F6 !important;
    border-radius: 16px !important;
    padding: 16px !important;
    
    position: relative !important; /* Чтобы позиционировать метку */
    box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
    min-height: auto !important;
}

.plan-row:active {
    transform: scale(0.98) !important;
}

/* Выделенная карточка (Pro) */
.plan-row.best-row {
    border: 2px solid #2e69dd !important;
    background: #f0f7fd !important;
    margin-top: 15px !important; /* Место под верхний бейдж */
}

/* 3. МЕТКА УРОВНЯ (В правом верхнем углу) */
.plan-level-tag {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #9CA3AF !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    pointer-events: none !important; /* Чтобы клик проходил сквозь текст */
}

/* 4. Бейдж "Рекомендуем" (Слева сверху) */
.best-badge-mini {
    position: absolute !important;
    top: -10px !important;
    left: 16px !important;
    background: #1058b9 !important;
    color: white !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    z-index: 10 !important;
}

/* 5. Верхняя часть (Иконка + Текст) */
.plan-content-top {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    gap: 12px !important;
    margin-bottom: 16px !important; /* Отступ до кнопки */
    /* Чтобы текст не налез на метку справа */
}

/* Иконка */
.plan-icon-mini {
    width: 44px !important;
    height: 44px !important;
    background: #F3F4F6 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
    flex-shrink: 0 !important;
}
.plan-icon-mini.icon-highlight {
    background: #fff !important;
    border: 1px solid #10B981 !important;
}
.plan-icon-mini img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Тексты */
.plan-text-group {
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
}
.plan-row-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0866FF !important; /* ЗАМЕНЕНО */
    margin-bottom: 4px !important;
    line-height: 1.1 !important;
}
.plan-row-desc {
    font-size: 13px !important;
    color: #6B7280 !important;
    font-weight: 500 !important;
}

/* 6. КНОПКИ (Идентичный размер) */
.btn-mini {
    width: 100% !important;
    height: 38px !important; /* Фиксированная высота для всех */
    padding: 0 !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    а
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    margin-top: auto !important;
    
    /* Белая кнопка по умолчанию */
    background: #fff !important;
    border: 1px solid #E5E7EB !important;
    color: #0866FF !important; /* ЗАМЕНЕНО: Текст кнопок синий */
    transition: opacity 0.2s !important;
}

/* Черная кнопка (перекрашиваем) */
.btn-mini.btn-black {
    background: #0866FF !important; /* ЗАМЕНЕНО */
    color: #fff !important;
    border: 1px solid #0866FF !important; /* ЗАМЕНЕНО */
}

.btn-mini:active {
    opacity: 0.9 !important;
}



.plan-card {

    background: #FFFFFF; border-radius: 16px; padding: 16px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid #F3F4F6;

    position: relative; transition: transform 0.2s;

}

.plan-card:active { transform: scale(0.99); }

.plan-card.best-value { border: 1px solid #10B981; box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15); }



.badge-best {

    position: absolute; top: -10px; right: 12px;

    background: #10B981; color: white; font-size: 9px; font-weight: 800;

    padding: 4px 8px; border-radius: 4px; letter-spacing: 0.5px;

}



.plan-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }

.plan-icon-img {

    width: 50px; height: 50px; border-radius: 10px; background: #F3F4F6;

    display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 6px;

}

.plan-icon-img img { width: 100%; height: 100%; object-fit: contain; }



.plan-info { display: flex; flex-direction: column; }

.plan-name { font-weight: 800; font-size: 15px; color: #0866FF; margin-bottom: 2px; } /* ЗАМЕНЕНО */

.plan-profit { font-size: 13px; color: #10B981; font-weight: 600; }



.plan-meta {

    display: flex; justify-content: space-between; align-items: center;

    font-size: 11px; color: #9CA3AF; margin-bottom: 12px; padding-bottom: 12px;

    border-bottom: 1px solid #F3F4F6;

}

.meta-tag { background: #F3F4F6; padding: 2px 6px; border-radius: 4px; color: #6B7280; font-weight: 600; }

.meta-seats { font-weight: 500; }

.meta-seats span { transition: opacity 0.3s ease; display: inline-block; }



/* КНОПКА С ЛОАДЕРОМ */

.btn-select {

    width: 100%; padding: 12px; border-radius: 12px; border: 1px solid #E5E7EB;

    background: #fff; color: #0866FF; font-weight: 700; font-size: 14px; cursor: pointer; /* ЗАМЕНЕНО */

    transition: all 0.2s;

    display: flex; align-items: center; justify-content: center; gap: 8px;

}

.btn-select.black { background: #0866FF; color: #fff; border: none; } /* ЗАМЕНЕНО */

.btn-select:active { opacity: 0.9; }



.btn-spinner-small {

    width: 14px; height: 14px;

    border: 2px solid rgba(0,0,0,0.1); border-top-color: currentColor;

    border-radius: 50%; animation: spin 0.8s linear infinite;

    display: none; /* Скрыт по умолчанию */

}

.btn-select.loading .btn-spinner-small { display: block; }



/* MEDIA FOR DESKTOP */

@media (min-width: 768px) {

    .modal-card { max-width: 400px !important; }

}

/* --- ГЛОБАЛЬНЫЕ СТИЛИ --- */

@font-face { font-family: 'Aeonik Pro'; src: local('Aeonik Pro'), local('AeonikPro-Regular'); font-weight: 400; font-display: swap; }

@font-face { font-family: 'Aeonik Pro'; src: local('Aeonik Pro Bold'), local('AeonikPro-Bold'); font-weight: 700; font-display: swap; }



:root {

    --bg-color: #F1F3F6; --card-bg: #FFFFFF; --text-main: #0866FF; --text-sub: #6C757D; /* ЗАМЕНЕНО */

    --accent: #2962FF; --success: #10B981; --error: #E11D48; --radius: 28px; --btn-black: #0866FF; /* ЗАМЕНЕНО */

    --rv-green: #10B981;

}



* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: none; font-family: 'Aeonik Pro', 'Inter', sans-serif !important; }

html, body { height: 100%; margin: 0; }



body { background: var(--bg-color);  overflow-x: hidden; overflow-y: auto; }



/* ФОН */

.ambient-bg {

    position: fixed; top: -50%; left: -50%; width: 200%; height: 200%;

    background: radial-gradient(circle at 50% 30%, rgba(66, 133, 244, 0.08) 0%, transparent 40%),

                radial-gradient(circle at 80% 80%, rgba(0, 209, 108, 0.06) 0%, transparent 40%);

    z-index: -1; animation: breathe 10s infinite alternate ease-in-out; pointer-events: none;

}



/* КОНТЕЙНЕР (ПО УМОЛЧАНИЮ УЗКИЙ) */

.app-container {

    min-height: 8dvh; width: 100%; max-width: 440px; margin: 0 auto; padding: 10px 20px;

    display: flex; flex-direction: column; justify-content: space-between;

    transition: max-width 0.6s cubic-bezier(0.16, 1, 0.3, 1); /* Плавное расширение */

}



/* ХЕДЕР */

.app-header { 
    display: flex; 
    
    /* Выравниваем по центру по горизонтали */
  
    padding: 20px 0; 
    flex-shrink: 0; 
    gap: 12px;              /* Отступ между лого, счетчиком и юзером */
}

.logo-container { height: 62px; display: flex; align-items: center; }

.logo-video { height: 100%; width: auto; mix-blend-mode: multiply; display: block; }



/* ОНЛАЙН */

.online-widget {

    background: rgba(255, 255, 255, 0.6); 

    padding: 6px 14px; border-radius: 100px; display: flex; align-items: center; gap: 8px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid rgba(255,255,255,0.8);

    transition: all 0.5s ease;

}

.online-dot { width: 8px; height: 8px; background: #1078b9; border-radius: 50%; position: relative; }

.online-dot::after {

    content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid #105fb9; opacity: 0;

    animation: ripple 2s infinite cubic-bezier(0.4, 0, 0.6, 1);

}

.online-text { font-size: 13px; font-weight: 700; color: var(--text-main); font-variant-numeric: tabular-nums; }

.online-label { font-size: 13px; color: var(--text-sub); }



/* ЮЗЕР (ДЛЯ 3+ ШАГА) */

.user-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.5s ease;
    
    /* УБИРАЕМ position: absolute и right: 0 */
    position: relative; 
    
    /* Добавляем, чтобы flex-элемент мог сжиматься */
    min-width: 0; 
    flex-shrink: 1; 
}

.user-avatar { width: 34px; height: 34px; background: #0866FF; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; } /* ЗАМЕНЕНО */

.user-name {
    font-size: 14px;
    font-weight: 700;
    color: #0866FF; /* ЗАМЕНЕНО */
    white-space: nowrap;
    
    /* ДОБАВЛЯЕМ обрезку текста троеточием (...) */
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* Ограничиваем максимальную ширину имени на мобилках */
    max-width: 100px; 
    display: block;
}

@media (min-width: 380px) {
    .user-name {
        max-width: 150px;
    }
}
/* --- ЖЕСТКАЯ БЛОКИРОВКА СКРОЛЛА (FIX ДЛЯ MOBILE) --- */
body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
    
    /* Эти 3 строки — самое главное для iPhone: */
    position: fixed !important; 
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
    
    /* Отключает жесты прокрутки на самом body */
    touch-action: none !important; 
    overscroll-behavior: none !important;
}




/* --- СТИЛИ ДЛЯ ШАГА 4 (ФОРМА + ИТОГИ) --- */

.activation-container {

    width: 100%; margin: 0px auto;

    display: flex; gap: 20px;

    align-items: stretch; justify-content: center;

    padding-bottom: 40px; animation: fadeCard 0.6s ease-out;

}



.info-card {

    flex: 1; background: #fff; border-radius: 24px; padding: 32px;

    box-shadow: 0 10px 40px rgba(0,0,0,0.05);

    display: flex; flex-direction: column; text-align: left;

    max-height: 600px;

}



.success-badge {

    display: inline-flex; align-items: center; gap: 8px;

    color: var(--rv-green); font-weight: 800; font-size: 12px; margin-bottom: 20px;

    background: #DCFCE7; padding: 6px 12px; border-radius: 20px; width: fit-content;

}

.success-badge svg { width: 14px; height: 14px; }



.info-card h2 { font-size: 28px; font-weight: 700; margin-bottom: 10px; color: #252729; letter-spacing: -0.5px; } /* ЗАМЕНЕНО */

.sub-info { font-size: 15px; color: #6C757D; margin-bottom: 30px; line-height: 1.5; }



.profit-box {

    background: #F9FAFB; border: 1px solid #EEF0F4; border-radius: 20px;

    padding: 24px; text-align: center; margin-bottom: 25px;

}

.pb-label { font-size: 11px; text-transform: uppercase; color: #9CA3AF; font-weight: 800; letter-spacing: 1px; }

.pb-val { font-size: 48px; font-weight: 900; color: #0866FF; margin: 8px 0; letter-spacing: -1px; } /* ЗАМЕНЕНО */

.pb-status { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: #2865ef; font-weight: 600; }

.green-dot { width: 8px; height: 8px; background: #2865ef;; border-radius: 50%; }



.live-feed-compact { margin-top: auto; border-top: 1px solid #F3F4F6; padding-top: 20px; }

.feed-title { font-size: 11px; color: #9CA3AF; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; }

.activity-deck { 
    position: relative; 
    height: 220px; /* <--- УВЕЛИЧИЛИ ВЫСОТУ ДЛЯ 3 КАРТОЧЕК */
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}



.toast-card-compact {

    background: #fff; border: 1px solid #EEF0F4; border-radius: 14px; padding: 12px;

    display: flex; align-items: center; gap: 12px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.03);

    transition: all 0.5s ease-in-out; flex-shrink: 0;

}

.card-leave { opacity: 0; transform: translateY(-30px) scale(0.95); }

.card-enter { animation: slideUpFadeIn 0.5s ease forwards; }



.t-avatar { width: 36px; height: 36px; background: #F3F4F6; color: #0866FF; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; } /* ЗАМЕНЕНО */

.t-content { display: flex; flex-direction: column; flex: 1; text-align: left; }

.t-name { font-size: 13px; font-weight: 700; color: #0866FF; margin-bottom: 2px; } /* ЗАМЕНЕНО */

.t-action { font-size: 12px; color: #6B7280; }

.t-amount { color: var(--rv-green); font-weight: 700; font-size: 14px; }



.form-card {

    flex: 1; background: #fff; border-radius: 24px; padding: 32px;

    box-shadow: 0 10px 40px rgba(0,0,0,0.08);

    max-width: 440px; min-height: 580px;

    display: flex; flex-direction: column;

}



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

.form-header h3 { font-size: 22px; font-weight: 800; color: #0866FF; } /* ЗАМЕНЕНО */

.timer-badge { background: #F3F4F6; color: #0866FF; font-weight: 700; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-variant-numeric: tabular-nums; } /* ЗАМЕНЕНО */



.sum-display-mobile { display: none; margin-bottom: 15px;  font-size: 14px; color: #6C757D; }

.sum-display-mobile span { font-weight: 800; color: #0866FF; } /* ЗАМЕНЕНО */



.rv-input-group { margin-bottom: 16px; text-align: left; }

.rv-label { font-size: 11px; font-weight: 700; color: #374151; margin-bottom: 0px; display: block; text-transform: uppercase; letter-spacing: 0.5px; }



.rv-input-clean {

    width: 100% !important; padding: 16px !important;

    background: #F9FAFB !important; border: 1px solid #E5E7EB !important;

    border-radius: 12px !important; font-size: 16px !important; 

    font-weight: 500 !important; transition: 0.2s !important;

}

.rv-input-clean:focus { background: #fff !important; border-color: #0866FF !important; box-shadow: 0 0 0 2px rgba(8, 102, 255, 0.05) !important; } /* ЗАМЕНЕНО */



/* LOCKED */

.locked-fields-row { display: flex; gap: 12px; }

.locked-fields-row .rv-input-group { flex: 1; position: relative; }

.rv-input-locked {

    background: #F3F4F6 !important; color: #9CA3AF !important; cursor: not-allowed;

    border-color: transparent !important; box-shadow: none !important;

    font-weight: 700 !important;

}

.lock-icon { position: absolute; right: 12px; top: 36px; color: #9CA3AF; opacity: 0.5; }



/* CODE */

.code-verify-container { margin-bottom: 24px; }

.code-verify-row { display: flex; gap: 10px; }

.code-input {  font-family: 'Courier New', monospace !important; font-weight: 700 !important; text-align: center; background: #fff !important; border: 1px solid #E5E7EB !important; color: #0866FF !important; } /* ЗАМЕНЕНО */

.btn-verify {

    background: #F3F4F6; color: #0866FF; border: none; border-radius: 12px; padding: 0 20px; /* ЗАМЕНЕНО */

    font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 14px;

    transition: all 0.2s; flex-shrink: 0;

    box-shadow: 0 0 0 2px transparent; /* Для пульсации */

}

.btn-verify.pulse-btn { animation: pulseBorder 2s infinite; border: 1px solid #0866FF; } /* ЗАМЕНЕНО */

.btn-verify:active { transform: scale(0.96); }

.btn-verify.success { background:#26a5df; color: white; pointer-events: none; border: none; animation: none; }



.field-hint { font-size: 11px; color: #9CA3AF; margin-top: 4px; }



.btn-submit-revolut {

    width: 100%; padding: 18px; background: #0866FF; color: white; /* ЗАМЕНЕНО */

    font-size: 17px; font-weight: 700; border: none; border-radius: 16px;

    cursor: pointer; transition: 0.2s; box-shadow: 0 10px 25px rgba(8, 102, 255, 0.1);

    margin-top: auto; opacity: 1;

}

.btn-submit-revolut.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

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



.secure-label { margin-top: 15px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #9CA3AF; font-weight: 500; }



/* ERROR TOAST (Широкий) */

.error-toast {

    position: fixed; bottom: 20px; left: 20px; right: 20px; margin: 0 auto; max-width: 400px;

    background: #0866FF; color: #fff; padding: 16px; border-radius: 16px; /* ЗАМЕНЕНО */

    box-shadow: 0 10px 40px rgba(0,0,0,0.3); z-index: 10000;

    display: flex; align-items: center; gap: 12px; opacity: 0; pointer-events: none;

    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    transform: translateY(20px);

}

.error-toast.show { transform: translateY(0); opacity: 1; }

.et-icon { color: #fff; display: flex; } /* Сделал иконку белой на синем фоне */

.et-text { font-size: 14px; font-weight: 600; line-height: 1.4; text-align: left; }



/* INTL TEL INPUT FIX */

.iti { width: 100%; }

.iti__flag-container { border-radius: 12px 0 0 12px; }

.iti input { padding-left: 95px !important; }



/* --- MEDIA QUERIES --- */

@media (min-width: 900px) {

    /* Только на ПК 4-й шаг широкий */

    .app-container.wide-mode { max-width: 1080px; }

    .modal-card { max-width: 400px !important; }

}



@media (max-width: 899px) {
/* Блокировка скролла */
.iti__country-list{
  font-size: 14px;
}
    .activation-container { flex-direction: column;  gap: 15px; }

    .info-card { width: 100%; max-height: none; }

    .form-card { width: 100%; max-width: 100%; min-height: auto; }

    .sum-display-mobile { display: block; }

    .pb-val { font-size: 28px; }

    .activity-deck { height: 140px; }

    .error-toast { bottom: 20px; }

}



/* Старые стили без изменений */

.code-display { background: #F1F3F6; border-radius: 16px; padding: 20px; margin-bottom: 24px; border: 1px solid #E5E7EB; text-align: center; }



.code-value { font-size: 24px; font-weight: 800; color: var(--text-main); letter-spacing: 1.5px; font-family: 'Courier New', monospace !important; }

.bot-header-badge { display: inline-flex; align-items: center; gap: 6px; background: rgb(25 59 226 / 10%); color: #5264e0; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 20px; margin-bottom: 15px; letter-spacing: 0.5px; }

.chart-wrapper-new {
    background: #F8F9FB !important;
    border: 1px solid #EEF0F4 !important;
    border-radius: 20px;
    padding: 20px 15px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: none !important; /* Убираем тяжелые тени */
}

.chart-stage { height: 130px; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 3px; position: relative; margin-bottom: 20px; }

.candle-bar { flex: 1; min-width: 4px; border-radius: 3px; background: #10B981; transition: height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.3s; position: relative; z-index: 1; }

.candle-bar.red { background: #F87171; }

.btn-select { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid #E5E7EB; background: #fff; color: #0866FF; font-weight: 700; font-size: 14px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; } /* ЗАМЕНЕНО */

.btn-select.black { background: #0866FF; color: #fff; border: none; } /* ЗАМЕНЕНО */

.btn-spinner-small { width: 14px; height: 14px; border: 2px solid rgba(0,0,0,0.1); border-top-color: currentColor; border-radius: 50%; animation: spin 0.8s linear infinite; display: none; }

.btn-select.loading .btn-spinner-small { display: block; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.4s ease; }

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

.modal-card { background: #fff; width: 90%; max-width: 380px; padding: 44px 24px 44px 24px; border-radius: 24px; text-align: center; transform: scale(0.95); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 20px 60px rgba(0,0,0,0.25); }

.modal-overlay.open .modal-card { transform: scale(1); }

.loader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #fff; z-index: 999; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s; }

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

.r-logo { font-size: 48px; font-weight: 900; color: #0866FF; margin-bottom: 30px; letter-spacing: -2px; animation: scaleIn 0.8s ease; } /* ЗАМЕНЕНО */

.progress-track { width: 160px; height: 4px; background: #F1F3F6; border-radius: 2px; overflow: hidden; }



.loader-text { margin-top: 20px; font-size: 13px; font-weight: 500; color: var(--text-sub); }

.btn-black { width: 100%; height: 56px; background: #0866FF; color: white; font-size: 17px; font-weight: 700; border: none; border-radius: 16px; cursor: pointer; position: relative; overflow: hidden; box-shadow: 0 8px 24px rgba(8, 102, 255, 0.15); transition: transform 0.1s; display: flex; align-items: center; justify-content: center; } /* ЗАМЕНЕНО */

.features-grid { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }

.f-card { display: flex; align-items: center; gap: 14px; padding: 14px; background: #F8F9FB; border: 1px solid #EEF0F4; border-radius: 18px; text-align: left; transition: transform 0.1s; }

.f-icon { width: 42px; height: 42px; background: #FFFFFF; border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.04); flex-shrink: 0; color: var(--text-main); }

.f-content h3 { font-size: 14px; font-weight: 700; color: #252729; margin-bottom: 2px; } /* ЗАМЕНЕНО */

.f-content p { font-size: 12px; color: var(--text-sub); line-height: 1.2; }

.anim-svg { width: 24px; height: 24px; fill: none; stroke: #0866FF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }



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

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

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

@keyframes ripple { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.5); opacity: 0; } }

@keyframes pulseBorder { 0% { box-shadow: 0 0 0 0 rgba(0,0,0,0.4); } 70% { box-shadow: 0 0 0 6px rgba(0,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } }

/* АНИМАЦИИ */

@keyframes breathe { 0% { transform: scale(1); } 100% { transform: scale(1.05); } }

@keyframes ripple { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.5); opacity: 0; } }

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

@keyframes timerFill { 0% { stroke-dashoffset: 100; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }

@keyframes drawChart { 0% { stroke-dashoffset: 50; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }

@keyframes pulseTarget { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.85); opacity: 0.7; } }

@keyframes fadeInCross { 0%, 50% { opacity: 0; } 60%, 100% { opacity: 1; } }

@keyframes scaleIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }

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

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

@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }