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

@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;
}

/* Стили для круглой иконки лоадера */
.blinking-loader-logo {
    width: 160px;
    height: 100px;

    margin-bottom: 0px;
    /* Легкая зеленая тень для стиля */

}

/* Принудительно делаем галочки белыми и убираем фон */

.benefit-list .b-icon svg {
    stroke: #ffffff !important;
    /* Принудительно красим саму галочку в белый */
}

/* Сама анимация моргания (пульсации прозрачности) */
@keyframes logoBlink {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0.3;
        transform: scale(0.9);
    }
}

/* ========================================= */
/* --- ПЕРЕМЕННЫЕ (OPEN AI THEME) --- */
/* ========================================= */

:root {
    /* Цвета в стиле OpenAI / ChatGPT */
    --bg-color: #F7F7F8;
    /* Светло-серый фон как в чате */
    --card-bg: #FFFFFF;
    /* Белые карточки */
    --text-main: #202123;
    /* Основной темный текст */
    --text-sub: #6E6E80;
    /* Вторичный серый текст */
    --border-color: #D9D9E3;
    /* Цвет бордеров OpenAI */

    --accent: #10A37F;
    /* Фирменный зеленый OpenAI */
    --success: #10A37F;
    /* Успех тоже зеленый */
    --error: #EF4146;
    /* Красный для ошибок */
    --btn-primary: #10A37F;
    /* Главные кнопки */

    --radius: 12px;
    /* Менее круглые, более строгие формы */
    --radius-sm: 8px;
}

/* ========================================= */
/* --- БАЗОВЫЕ НАСТРОЙКИ --- */
/* ========================================= */

* {
    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;
}

body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
    touch-action: none !important;
    overscroll-behavior: none !important;
}

/* Типографика */
h1 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    color: var(--text-main);
    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;
}

/* ФОН (Анимация) */
.ambient-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 30%, rgba(16, 163, 127, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(32, 33, 35, 0.03) 0%, transparent 40%);
    z-index: -1;
    animation: breathe 10s infinite alternate ease-in-out;
    pointer-events: none;
}

/* КОНТЕЙНЕР */
.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;
    transition: max-width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================= */
/* --- ХЕДЕР И ЛОГОТИП --- */
/* ========================================= */

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 56px;
    text-decoration: none;
}

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

.logo-text {
    font-weight: 700;
    font-size: 22px;
    color: var(--text-main);
    letter-spacing: -1px;
    line-height: 1;
    position: relative;
    top: 1px;
}

/* ========================================= */
/* --- ВИДЖЕТЫ (ONLINE & USER) --- */
/* ========================================= */

.online-widget {
    background: rgba(255, 255, 255, 0.8);
    padding: 6px 14px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    transition: all 0.5s ease;
}

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

.online-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    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);
}

.user-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.5s ease;
    position: relative;
    min-width: 0;
    flex-shrink: 1;
}

.user-avatar {
    width: 34px;
    height: 34px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.user-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    display: block;
}

/* ========================================= */
/* --- ОСНОВНЫЕ КАРТОЧКИ --- */
/* ========================================= */

.main-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 29px 20px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05), inset 0 1px 1px #fff;
    border: 1px solid var(--border-color);
    text-align: center;
    width: 100%;
    margin: 0px auto;
    animation: fadeCard 0.4s ease-out;
}

/* ========================================= */
/* --- COOKIE BANNER --- */
/* ========================================= */

.cookie-float-panel {
    position: fixed;
    bottom: -150%;
    left: 20px;
    right: 20px;
    margin: 0 auto;
    max-width: 400px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px var(--border-color);
    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: rgba(16, 163, 127, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    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: var(--text-main);
}

.cookie-text p {
    font-size: 13px;
    color: var(--text-sub);
    margin: 0;
    line-height: 1.3;
}

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

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

.c-btn-primary {
    background: var(--btn-primary);
    color: #fff;
}

.c-btn-primary:active {
    transform: scale(0.96);
    opacity: 0.9;
}

.c-btn-ghost {
    background: transparent;
    color: var(--text-sub);
    border: 1px solid var(--border-color);
}

.c-btn-ghost:hover {
    background: var(--bg-color);
    color: var(--text-main);
}

/* ========================================= */
/* --- ФОРМЫ, ИНПУТЫ И КОД (ШАГ 2) --- */
/* ========================================= */

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

.rv-input {
    width: 100%;
    padding: 16px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    outline: none;
    transition: 0.2s;
    font-weight: 500;
}

.rv-input:focus {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.1);
}

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

.code-display {
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.code-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 10px;
    background: rgba(16, 163, 127, 0.1);
    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;
}

/* Intl Tel Input Fix */
.iti {
    width: 100%;
}

.iti__flag-container {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.iti--separate-dial-code .iti__selected-flag {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

/* ========================================= */
/* --- ГРАФИКИ (ШАГ 3) --- */
/* ========================================= */

.bot-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 163, 127, 0.1);
    color: var(--accent);
    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: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius);
    padding: 20px 15px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: none !important;
}

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

.growth-label {
    color: var(--success);
    background: rgba(16, 163, 127, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.pair-name {
    color: var(--text-main) !important;
    font-weight: 700;
}

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

.grid-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color) !important;
    z-index: 0;
}

.candle-bar {
    flex: 1;
    min-width: 6px !important;
    border-radius: 3px !important;
    background: var(--accent) !important;
    /* Зеленые свечи */
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.4s !important;
    position: relative;
    z-index: 1;
    box-shadow: none !important;
}

.candle-bar.red {
    background: #8E8EA0 !important;
    /* Строгий серый для падения вместо красного */
}

.balance-container {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.bal-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-sub) !important;
    font-weight: 600;
    letter-spacing: 1px;
}

.bal-value {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-main) !important;
    font-feature-settings: "tnum";
    margin-top: 4px;
}

.loading-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    color: var(--text-sub);
    font-size: 13px;
    font-weight: 500;
}

.mini-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ========================================= */
/* --- СПИСОК ФИЧ И ДОВЕРИЕ --- */
/* ========================================= */

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

.f-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: left;
    transition: transform 0.1s;
}

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

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

.f-content h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

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

.card-trust-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.card-trust-footer p {
    font-size: 11px;
    color: var(--text-sub);
    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%);
    border-radius: 5px;
}

/* ========================================= */
/* --- КНОПКИ --- */
/* ========================================= */

.btn-black {
    width: 100%;
    height: 56px;
    background: var(--btn-primary);
    color: white;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    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;
}

.btn-select {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-main);
    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: var(--btn-primary);
    color: #fff;
    border: none;
}

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

.btn-spinner-small {
    width: 17px;
    height: 17px;
    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(32, 33, 35, 0.8);
    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;
}

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

.modal-card {
    background: var(--card-bg);
    width: 90%;
    max-width: 380px;
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border-color);
    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.15);
}

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

@media (max-height: 700px) {
    .modal-overlay {
        align-items: flex-start;
        padding: 20px 0;
    }

    .modal-card {
        margin: 20px auto;
    }
}

.f-content h3 {
    font-size: 13px;
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    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: var(--text-main);
    margin-bottom: 30px;
    letter-spacing: -2px;
    animation: scaleIn 0.8s ease;
}

.progress-track {
    width: 160px;
    height: 4px;
    background: var(--bg-color);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--accent);
    transition: width 0.3s ease-out;
    border-radius: 2px;
}

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

/* Промо Попап */
.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;
    border-radius: 7px;
}

.promo-desc {
    font-size: 15px;
    color: var(--text-sub);
    line-height: 1.5;
    margin-bottom: 24px;
    margin-top: 10px;
}

.benefit-list {
    text-align: left;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    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: var(--text-main);
    font-weight: 500;
}

.b-icon {
    width: 20px;
    height: 20px;
    background: var(--success);
    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;
}

/* ========================================= */
/* --- ТАРИФЫ (PLANS) --- */
/* ========================================= */

.plan-modal-card {
    background: var(--card-bg);
    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: var(--text-sub);
    margin-bottom: 20px;
    line-height: 1.4;
    padding: 0 10px;
}

.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;
}

.plan-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    padding: 16px !important;
    position: relative !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    min-height: auto !important;
}

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

.plan-row.best-row {
    border: 2px solid var(--accent) !important;
    background: rgba(16, 163, 127, 0.02) !important;
    margin-top: 15px !important;
}

.plan-level-tag {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--text-sub) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    pointer-events: none !important;
}

.best-badge-mini {
    position: absolute !important;
    top: -10px !important;
    left: 16px !important;
    background: var(--accent) !important;
    color: white !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    z-index: 10 !important;
}

.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: var(--bg-color) !important;
    border-radius: 8px !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 var(--accent) !important;
}

.plan-icon-mini img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 5px;
}

.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: var(--text-main) !important;
    margin-bottom: 4px !important;
    line-height: 1.1 !important;
}

.plan-row-desc {
    font-size: 13px !important;
    color: var(--text-sub) !important;
    font-weight: 500 !important;
}

.btn-mini {
    width: 100% !important;
    height: 38px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    margin-top: auto !important;
    background: var(--bg-color) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    transition: opacity 0.2s !important;
}

.btn-mini.btn-black {
    background: var(--accent) !important;
    color: #fff !important;
    border: 1px solid var(--accent) !important;
}

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

/* Альтернативный вид карточки тарифа */
.plan-card {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.2s;
}

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

.plan-card.best-value {
    border: 1px solid var(--accent);
    background: rgba(16, 163, 127, 0.02);
}

.badge-best {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--accent);
    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: 8px;
    background: var(--bg-color);
    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: var(--text-main);
    margin-bottom: 2px;
}

.plan-profit {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

.plan-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-sub);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.meta-tag {
    background: var(--bg-color);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-sub);
    font-weight: 600;
}

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

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

/* ========================================= */
/* --- ШАГ 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: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    text-align: left;
    max-height: 600px;
}

.success-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 800;
    font-size: 12px;
    margin-bottom: 20px;
    background: rgba(16, 163, 127, 0.1);
    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: var(--text-main);
    letter-spacing: -0.5px;
}

.sub-info {
    font-size: 15px;
    color: var(--text-sub);
    margin-bottom: 30px;
    line-height: 1.5;
}

.profit-box {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    margin-bottom: 25px;
}

.pb-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-sub);
    font-weight: 800;
    letter-spacing: 1px;
}

.pb-val {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent);
    margin: 8px 0;
    letter-spacing: -1px;
}

.pb-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-main);
    font-weight: 600;
}

.green-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.live-feed-compact {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.feed-title {
    font-size: 11px;
    color: var(--text-sub);
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.activity-deck {
    position: relative;
    height: 220px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-card-compact {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    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: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    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: var(--text-main);
    margin-bottom: 2px;
}

.t-action {
    font-size: 12px;
    color: var(--text-sub);
}

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

.form-card {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    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: var(--text-main);
}

.timer-badge {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.sum-display-mobile {
    display: none;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
    color: var(--text-sub);
}

.sum-display-mobile span {
    font-weight: 800;
    color: var(--text-main);
}

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

.rv-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-sub);
    margin-bottom: 6px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rv-input-clean {
    width: 100% !important;
    padding: 16px !important;
    background: var(--bg-color) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: 0.2s !important;
    color: var(--text-main);
}

.rv-input-clean:focus {
    background: #fff !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px rgba(16, 163, 127, 0.1) !important;
}

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

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

.rv-input-locked {
    background: var(--bg-color) !important;
    color: var(--text-sub) !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: var(--text-sub);
    opacity: 0.5;
}

.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 var(--border-color) !important;
    color: var(--text-main) !important;
}

.btn-verify {
    background: var(--bg-color);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    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 var(--accent);
}

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

.btn-verify.success {
    background: var(--success);
    color: white;
    pointer-events: none;
    border: none;
    animation: none;
}

.field-hint {
    font-size: 11px;
    color: var(--text-sub);
    margin-top: 4px;
}

.btn-submit-revolut {
    width: 100%;
    padding: 16px;
    background: var(--btn-primary);
    color: white;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: 0.2s;
    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: var(--text-sub);
    font-weight: 500;
}

/* ERROR TOAST */
.error-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    margin: 0 auto;
    max-width: 400px;
    background: var(--text-main);
    color: #fff;
    padding: 16px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    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: 500;
    line-height: 1.4;
    text-align: left;
}

/* ФУТЕР */
.footer-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

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

.footer-link {
    font-size: 11px;
    color: var(--text-sub);
    text-decoration: none;
    font-weight: 500;
}

.copyright {
    font-size: 10px;
    color: var(--border-color);
}

/* SVG */
.anim-svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--accent);
    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;
}

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

@media (min-width: 380px) {
    .user-name {
        max-width: 150px;
    }
}

@media (min-width: 768px) {
    .cookie-float-panel {
        left: auto;
        right: 30px;
    }

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

@media (min-width: 900px) {
    .app-container.wide-mode {
        max-width: 1080px;
    }

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

@media (max-width: 899px) {
    .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;
    }

    .info-card h2 {
        font-size: 24px;
    }
}

/* ========================================= */
/* --- АНИМАЦИИ (БЕЗ ДУБЛЕЙ) --- */
/* ========================================= */

@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);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseBorder {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 163, 127, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 163, 127, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 163, 127, 0);
    }
}