/* === ДИЗАЙН-СИСТЕМА ===
   Светлая тема: белые карточки на голубоватом фоне, мягкие тени, крупные
   скругления. Значения сняты с образца (visionoftrading.com) 24.09.2026.

   Шрифты: Sora покрывает только латиницу, кириллицу подхватывает Exo 2 —
   поэтому в стеке они идут именно в таком порядке. */

@import url('/assets/fonts/sora.css');
@import url('/assets/fonts/exo2.css');

:root {
    --bg-0: #f7fbff;
    --bg-1: #eef5ff;
    --bg-2: #e3efff;

    --ink-1: #102d4d;
    --ink-2: #21496f;
    --ink-3: #4f749c;
    --ink-soft: #708eaa;

    --line: rgba(123, 168, 210, 0.34);
    --line-strong: rgba(95, 145, 194, 0.46);

    --accent-1: #19b4ff;
    --accent-2: #3156ec;
    --accent-grad: linear-gradient(135deg, var(--accent-1), var(--accent-2));

    --ok: #20a462;
    --ok-soft: #00d889;
    --bad: #d94f6d;
    --warn: #f0a33c;

    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --pill: 999px;

    --shadow-soft: 0 24px 60px rgba(14, 54, 97, 0.12);
    --shadow-card: 0 14px 34px rgba(14, 54, 97, 0.08);
    --shadow-main: 0 18px 42px rgba(14, 54, 97, 0.12);

    --font-main: 'Sora', 'Exo 2', 'Trebuchet MS', 'Segoe UI', sans-serif;

    --page-max: 1180px;
    --header-h: 76px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-1);
    background:
        radial-gradient(120% 70% at 50% -10%, #ffffff 0%, var(--bg-0) 45%, var(--bg-1) 100%),
        var(--bg-1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--ink-1);
}

h1 { font-size: clamp(34px, 5.4vw, 64px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 24px); }

p { margin: 0; }

a {
    color: var(--accent-2);
    text-decoration: none;
}

a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* === РАСКЛАДКА === */

.page {
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: clamp(48px, 7vw, 96px) 0;
}

.section--tight { padding: clamp(32px, 4vw, 56px) 0; }

.section__head {
    max-width: 680px;
    margin-bottom: clamp(24px, 3vw, 40px);
}

.section__lead {
    margin-top: 14px;
    font-size: 17px;
    color: var(--ink-3);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.grid {
    display: grid;
    gap: 20px;
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
    /* Плитки статистики короткие: в одну колонку они растягивают кабинет
       на четыре экрана прокрутки, поэтому на телефоне остаются по две. */
    .grid--4.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* === ШАПКА === */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 251, 255, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    color: var(--ink-1);
    text-decoration: none;
    white-space: nowrap;
}

.brand:hover { text-decoration: none; }

.brand__mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent-grad);
    color: #fff;
    font-size: 15px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    /* Пункт не переносится внутри себя: шесть разделов должны встать в строку. */
    white-space: nowrap;
    padding: 9px 13px;
    border-radius: var(--pill);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav__link:hover {
    background: rgba(25, 180, 255, 0.1);
    color: var(--ink-1);
    text-decoration: none;
}

.nav__link.is-active {
    color: var(--accent-2);
    font-weight: 600;
}

.nav__link i { color: var(--accent-1); font-size: 13px; }

.nav__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 8px;
}

.burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    color: var(--ink-1);
    font-size: 17px;
    cursor: pointer;
}

/* Контейнер шапки ограничен 1180px на любой ширине экрана, поэтому шесть
   пунктов меню владельца жмутся одинаково и на ноутбуке, и на большом мониторе. */
@media (min-width: 1201px) {
    .nav { gap: 2px; }
    .nav__link { padding: 9px 8px; font-size: 13.5px; }
    .nav__link i { font-size: 13px; }
}

/* Порог бургера поднят до 1200: шесть пунктов меню владельца в одну строку
   на узком ноутбуке уже не помещаются и распирают шапку. */
@media (max-width: 1200px) {
    .burger { display: grid; place-items: center; margin-left: auto; }
    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin: 0;
        padding: 14px 20px 22px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-soft);
        transform: translateY(-12px);
        opacity: 0;
        /* visibility, а не только opacity: закрытое меню не должно ловить
           фокус с клавиатуры и попадать в скринридер. */
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }
    .nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }
    .nav__link { padding: 13px 14px; font-size: 15px; }
    .nav__actions { margin: 10px 0 0; }
    .nav__actions .btn { flex: 1; }
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: var(--pill);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--accent-grad);
    color: #fff;
    box-shadow: 0 12px 26px rgba(49, 86, 236, 0.28);
}

.btn--primary:hover { box-shadow: 0 16px 32px rgba(49, 86, 236, 0.34); transform: translateY(-2px); }

.btn--success {
    background: linear-gradient(135deg, var(--ok-soft), var(--ok));
    color: #04351f;
    box-shadow: 0 12px 26px rgba(32, 164, 98, 0.28);
}

.btn--success:hover { transform: translateY(-2px); }

.btn--ghost {
    background: #fff;
    border-color: var(--line-strong);
    color: var(--ink-1);
    box-shadow: var(--shadow-card);
}

.btn--ghost:hover { border-color: var(--accent-1); }

.btn--danger {
    background: linear-gradient(135deg, #ef6b84, var(--bad));
    color: #fff;
    box-shadow: 0 12px 26px rgba(217, 79, 109, 0.26);
}

.btn--block { width: 100%; }
.btn--sm { padding: 10px 16px; font-size: 14px; }

.btn[disabled],
.btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

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

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 2.6vw, 30px);
    box-shadow: var(--shadow-card);
}

.card--flat { box-shadow: none; }
.card--pad-sm { padding: 18px; }

.card__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.card__text {
    font-size: 15px;
    color: var(--ink-3);
}

.icon-badge {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: rgba(25, 180, 255, 0.12);
    color: var(--accent-2);
    font-size: 18px;
}

/* === ФОРМЫ === */

.field { margin-bottom: 16px; }

.field__label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
}

.field__hint {
    margin-top: 6px;
    font-size: 13px;
    color: var(--ink-soft);
}

.input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-0);
    font-family: inherit;
    font-size: 16px;
    color: var(--ink-1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input::placeholder { color: var(--ink-soft); }

.input:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 4px rgba(25, 180, 255, 0.16);
}

.input-group { position: relative; }

.input-group .input { padding-right: 48px; }

.input-group__button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: none;
    color: var(--ink-soft);
    cursor: pointer;
}

.input-group__button:hover { color: var(--accent-2); }

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--ink-2);
    cursor: pointer;
}

.checkbox input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--accent-2);
    cursor: pointer;
}

/* === СООБЩЕНИЯ === */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 13px 15px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
}

.alert i { margin-top: 2px; }

.alert--error {
    background: rgba(217, 79, 109, 0.1);
    border: 1px solid rgba(217, 79, 109, 0.3);
    color: #a8284a;
}

.alert--ok {
    background: rgba(32, 164, 98, 0.1);
    border: 1px solid rgba(32, 164, 98, 0.3);
    color: #14764a;
}

.alert--info {
    background: rgba(25, 180, 255, 0.1);
    border: 1px solid rgba(25, 180, 255, 0.3);
    color: var(--ink-2);
}

.alert[hidden] { display: none; }

/* === УЗКАЯ СТРАНИЦА (вход, регистрация) === */

.narrow {
    max-width: 520px;
    margin: clamp(30px, 6vw, 70px) auto;
}

.narrow__head {
    text-align: center;
    margin-bottom: 26px;
}

.narrow__head p {
    margin-top: 10px;
    color: var(--ink-3);
    font-size: 15px;
}

.form-foot {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    color: var(--ink-3);
}

/* === ПОДВАЛ === */

.footer {
    margin-top: 40px;
    padding: 36px 0 28px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.6);
}

.footer__risk {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: 10px;
}

.footer__text {
    max-width: 760px;
    font-size: 14px;
    color: var(--ink-3);
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__copy {
    margin-left: auto;
    color: var(--ink-soft);
}

@media (max-width: 600px) {
    .footer__copy { margin-left: 0; }
}

/* === СЛУЖЕБНОЕ === */

.stack-sm > * + * { margin-top: 10px; }
.stack > * + * { margin-top: 18px; }
.text-muted { color: var(--ink-3); }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* === ГЛАВНАЯ === */

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

@media (max-width: 960px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr); }
}

.hero__lead {
    max-width: 540px;
    margin-top: 20px;
    font-size: 17px;
    color: var(--ink-3);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 4vw, 48px);
    margin-top: 40px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.hero__stat b {
    display: block;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    color: var(--ok);
    line-height: 1.1;
}

.hero__stat span { font-size: 13px; color: var(--ink-3); }

/* Карточка-пример сигнала */
.signal-preview {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.signal-preview__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.signal-preview__pair { font-size: 19px; font-weight: 700; }

.signal-preview__tag {
    padding: 6px 12px;
    border-radius: var(--pill);
    background: rgba(32, 164, 98, 0.14);
    color: var(--ok);
    font-size: 13px;
    font-weight: 700;
}

.signal-preview__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.signal-preview__grid span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.signal-preview__grid b { font-size: 15px; }

.signal-preview__meter span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.signal-preview__meter b {
    display: block;
    margin: 2px 0 8px;
    font-size: 22px;
    color: var(--ok);
}

.meter {
    height: 7px;
    border-radius: 4px;
    background: var(--bg-2);
    overflow: hidden;
}

.meter__fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--ok-soft), var(--accent-2));
}

.signal-preview__note {
    margin-top: 14px;
    font-size: 12px;
    color: var(--ink-soft);
    text-align: center;
}

/* Шаги */
.step {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px 22px 22px;
    box-shadow: var(--shadow-card);
}

.step__num {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--accent-grad);
    color: #fff;
    font-weight: 700;
}

/* FAQ */
.faq { display: grid; gap: 12px; }

.faq__item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-card);
}

.faq__item summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: var(--accent-2);
    transition: transform 0.2s ease;
}

.faq__item[open] summary::after { transform: rotate(180deg); }

.faq__item p { margin-top: 12px; color: var(--ink-3); font-size: 15px; }

/* Призыв */
.cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(26px, 4vw, 44px);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #fff, var(--bg-2));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

/* === КАБИНЕТ === */

.account-head {
    display: flex;
    align-items: center;
    gap: 18px;
}

.account-head__avatar {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 20px;
    background: var(--accent-grad);
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
}

.account-head__who { min-width: 0; }

.account-head__name {
    font-size: clamp(22px, 3vw, 32px);
    overflow-wrap: anywhere;
}

.account-head__email {
    margin-top: 4px;
    color: var(--ink-3);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.account-head__out { margin-left: auto; flex-shrink: 0; }

@media (max-width: 600px) {
    .account-head { flex-wrap: wrap; }
    .account-head__out { margin-left: 0; width: 100%; }
}

/* Карточка брокера */
.broker-card__row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.broker-card__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(25, 180, 255, 0.12);
    color: var(--accent-2);
    font-size: 18px;
}

.broker-card--ok .broker-card__icon { background: rgba(32, 164, 98, 0.14); color: var(--ok); }
.broker-card--wait .broker-card__icon { background: rgba(240, 163, 60, 0.16); color: #b9741a; }

.broker-card__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.broker-card__value { font-size: 18px; }

.broker-card__hint { margin: 14px 0 16px; }

/* Плитки статистики */
.stat {
    position: relative;
    padding: 20px;
    border-radius: var(--radius-lg);
    color: #fff;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.stat--blue { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.stat--green { background: linear-gradient(135deg, #34d399, #15a463); }
.stat--amber { background: linear-gradient(135deg, #fbbf4c, #ef8f1e); }
.stat--indigo { background: linear-gradient(135deg, #6366f1, #3730a3); }

.stat__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 15px;
}

.stat__label { display: block; font-size: 13px; opacity: 0.9; }

.stat__value {
    display: block;
    margin-top: 2px;
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .stat { padding: 16px; }
    .stat__icon { width: 32px; height: 32px; margin-bottom: 10px; font-size: 13px; }
}


/* Полоса статуса */
.status-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #fff, var(--bg-2));
}

.status-bar__left { display: flex; align-items: center; gap: 14px; }

.status-bar__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(32, 164, 98, 0.14);
    color: var(--ok);
    font-size: 17px;
}

.status-bar__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: auto;
}

@media (max-width: 800px) {
    .status-bar__chips { margin-left: 0; width: 100%; }
}

.chip {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: #fff;
    min-width: 150px;
}

.chip span {
    display: block;
    font-size: 12px;
    color: var(--ink-soft);
}

.chip b { font-size: 14px; }

.chip--open { border-color: rgba(32, 164, 98, 0.4); }
.chip--open b { color: var(--ok); }
.chip--closed b { color: var(--ink-soft); }

/* История */
.history { margin-top: 16px; }

.history__empty {
    padding: 26px 20px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--ink-3);
    font-size: 15px;
}

.history__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.history__row:last-child { border-bottom: none; }

.history__dir {
    padding: 4px 10px;
    border-radius: var(--pill);
    font-size: 12px;
    font-weight: 700;
}

.history__dir--up { background: rgba(32, 164, 98, 0.14); color: var(--ok); }
.history__dir--down { background: rgba(217, 79, 109, 0.12); color: var(--bad); }

.history__time { margin-left: auto; color: var(--ink-soft); font-size: 13px; }

/* Плитки разделов */
.tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-0);
    color: var(--ink-1);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.tile:hover { border-color: var(--accent-1); transform: translateY(-2px); text-decoration: none; }

.tile i {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 11px;
    background: rgba(25, 180, 255, 0.12);
    color: var(--accent-2);
    font-size: 14px;
}

@media (max-width: 480px) {
    .tiles { grid-template-columns: minmax(0, 1fr); }
}

/* === СИГНАЛЫ === */

.trade {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 900px) {
    .trade { grid-template-columns: minmax(0, 1fr); }
}

.tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-0);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
    cursor: pointer;
    transition: all 0.18s ease;
}

.tab i { font-size: 14px; color: var(--accent-2); }
.tab:hover { border-color: var(--accent-1); }

.tab.is-active {
    background: var(--accent-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(49, 86, 236, 0.26);
}

.tab.is-active i { color: #fff; }

@media (max-width: 560px) {
    .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.search { position: relative; margin-bottom: 16px; }

.search > i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--ink-soft);
    font-size: 14px;
}

.search__input { padding-left: 44px; padding-right: 44px; }

.search__clear {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: none;
    color: var(--ink-soft);
    cursor: pointer;
}

.search__clear:hover { color: var(--bad); }

.assets {
    max-height: min(52vh, 460px);
    overflow-y: auto;
    padding-right: 4px;
    display: grid;
    gap: 8px;
}

.assets::-webkit-scrollbar { width: 6px; }
.assets::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }

.assets__empty {
    padding: 30px;
    text-align: center;
    color: var(--ink-3);
}

.asset {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: all 0.16s ease;
}

.asset:hover { border-color: var(--accent-1); transform: translateX(2px); }

.asset.is-active {
    border-color: var(--accent-2);
    background: rgba(25, 180, 255, 0.07);
    box-shadow: 0 6px 16px rgba(49, 86, 236, 0.14);
}

.asset__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
}

.asset__icon--currencies { background: linear-gradient(135deg, #34d399, #15a463); }
.asset__icon--crypto { background: linear-gradient(135deg, #fbbf4c, #ef8f1e); }
.asset__icon--commodities { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.asset__icon--stocks { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.asset__icon--indices { background: linear-gradient(135deg, #f472b6, #be185d); }

.asset__body { min-width: 0; flex: 1; }
.asset__body b { display: block; font-size: 14px; }
.asset__body small { display: block; font-size: 12px; color: var(--ink-3); }

.asset__tag {
    padding: 4px 9px;
    border-radius: var(--pill);
    background: var(--bg-2);
    font-size: 11px;
    color: var(--ink-2);
    white-space: nowrap;
}

.chosen {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    min-height: 44px;
}

.chosen__empty { color: var(--ink-soft); font-size: 14px; }

.times {
    display: grid;
    /* auto-fit, а не «ровно 5»: на странице сигналов кнопок пять, в разборе
       скриншота шесть, и лишний столбец не должен оставаться пустым. */
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 8px;
    margin-top: 14px;
}

/* На телефоне шесть кнопок разбора складываются 5 + 1 — некрасиво и неудобно
   попадать пальцем. Две ровные строки по три лучше одинокого хвоста. */
@media (max-width: 600px) {
    #shotTimes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.time {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-0);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-1);
    cursor: pointer;
    transition: all 0.18s ease;
}

.time small { font-size: 10px; font-weight: 500; color: var(--ink-soft); }
.time:hover { border-color: var(--accent-1); }

.time.is-active {
    background: var(--accent-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(49, 86, 236, 0.26);
}

.time.is-active small { color: rgba(255, 255, 255, 0.85); }

/* === ОКНО СИГНАЛА === */

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(16, 45, 77, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal[hidden] { display: none; }

.modal__box {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 30px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-soft);
    animation: modal-in 0.22s ease;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 11px;
    background: var(--bg-1);
    color: var(--ink-2);
    cursor: pointer;
}

.modal__close:hover { background: var(--bg-2); }

.modal__title { font-size: 21px; text-align: center; margin-bottom: 22px; }

.loader { padding: 34px 0; text-align: center; color: var(--ink-3); }

.loader__dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }

.loader__dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--accent-1);
    animation: dot 1.1s infinite ease-in-out;
}

.loader__dots span:nth-child(2) { animation-delay: 0.16s; }
.loader__dots span:nth-child(3) { animation-delay: 0.32s; }

@keyframes dot {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.15); }
}

.verdict {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
}

.verdict i { font-size: 30px; }
.verdict b { font-size: 26px; letter-spacing: 0.02em; }
.verdict span { font-size: 14px; opacity: 0.8; }

.verdict--up {
    background: rgba(32, 164, 98, 0.1);
    border-color: rgba(32, 164, 98, 0.3);
    color: var(--ok);
}

.verdict--down {
    background: rgba(217, 79, 109, 0.09);
    border-color: rgba(217, 79, 109, 0.3);
    color: var(--bad);
}

.rows { margin-top: 18px; }

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.row:last-child { border-bottom: none; }
.row > span { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); }
.row > span i { color: var(--accent-2); font-size: 13px; }
.row__meter { text-align: right; min-width: 120px; }
.row__meter b { display: block; margin-bottom: 5px; font-size: 16px; }

/* === РАЗБОР СКРИНШОТА === */

.drop {
    padding: 28px 20px;
    border: 2px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--bg-0);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drop:hover,
.drop.is-over {
    border-color: var(--accent-1);
    background: rgba(25, 180, 255, 0.05);
}

.drop.has-file { padding: 16px; cursor: default; }

.drop__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background: var(--accent-grad);
    color: #fff;
    font-size: 21px;
}

.drop__empty b { display: block; font-size: 17px; margin-bottom: 6px; }
.drop__empty p { color: var(--ink-3); font-size: 14px; }

.drop__list {
    display: inline-block;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.drop__list li {
    position: relative;
    padding-left: 22px;
    font-size: 13px;
    color: var(--ink-3);
    line-height: 1.9;
}

.drop__list li::before {
    content: '\f00c';
    position: absolute;
    left: 0;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    color: var(--ok);
}

.drop__preview img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: var(--bg-2);
}

.drop__preview span {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: var(--ink-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.points {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--ink-2);
}

.points li:last-child { border-bottom: none; }

.points li i {
    margin-top: 4px;
    flex-shrink: 0;
    font-size: 12px;
    color: var(--ok);
}

.modes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.mode {
    padding: 11px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-0);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    cursor: pointer;
    transition: all 0.18s ease;
}

.mode:hover { border-color: var(--accent-1); }

.mode.is-active {
    background: var(--accent-grad);
    border-color: transparent;
    color: #fff;
}

/* === ТОРГОВАЯ ПЛАТФОРМА: регистрация у брокера и подтверждение === */
.activate {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 22px;
    align-items: start;
}

.activate__promo {
    position: relative;
    overflow: hidden;
    padding: 34px 32px;
    border-radius: var(--radius-xl);
    background: linear-gradient(150deg, #123a6b 0%, #1b4f92 55%, #2563eb 100%);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

/* Мягкое пятно света, чтобы плоская заливка не выглядела картонной. */
.activate__promo::after {
    content: '';
    position: absolute;
    right: -70px;
    top: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(25, 180, 255, 0.45), transparent 70%);
    pointer-events: none;
}

.activate__eyebrow {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

/* Глобальное правило заголовков красит h1 в тёмный — на синей панели нужен белый. */
.activate__title {
    color: #fff;
    margin: 0 0 24px;
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.12;
    font-weight: 800;
}

.activate__opens {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.activate__opens-label {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
}

.activate__list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.activate__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.activate__list i { margin-top: 4px; font-size: 12px; color: #6ee7b7; }

/* Шаги с живым состоянием: пройденный, текущий и будущий выглядят по-разному. */
.steps-line { display: grid; gap: 4px; margin: 26px 0 0; padding: 0; list-style: none; }

.steps-line__item {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 0;
    opacity: 0.55;
}

.steps-line__item.is-done, .steps-line__item.is-active { opacity: 1; }

.steps-line__item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 44px;
    bottom: -4px;
    width: 2px;
    background: rgba(255, 255, 255, 0.24);
}

.steps-line__mark {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

.steps-line__item.is-done .steps-line__mark { background: var(--ok); border-color: transparent; }
.steps-line__item.is-active .steps-line__mark { background: var(--accent-1); border-color: transparent; }

.steps-line__item b { display: block; font-size: 15px; }
.steps-line__item span { font-size: 13.5px; color: rgba(255, 255, 255, 0.78); }

.activate__panel { padding: 28px; }

.activate__state {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--bg-1);
}

.activate__state-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    color: var(--accent-2);
    box-shadow: var(--shadow-card);
}

.activate__state b { display: block; font-size: 16px; color: var(--ink-1); }
.activate__state p { margin: 3px 0 0; font-size: 14px; color: var(--ink-3); }

.activate__state--ok { border-color: rgba(32, 164, 98, 0.35); background: rgba(32, 164, 98, 0.08); }
.activate__state--ok .activate__state-icon { color: var(--ok); }
.activate__state--wait { border-color: rgba(251, 191, 76, 0.45); background: rgba(251, 191, 76, 0.1); }
.activate__state--wait .activate__state-icon { color: #b8770f; }

.activate__h2 { margin: 0 0 8px; font-size: clamp(20px, 2.4vw, 26px); }
.activate__cta { margin-top: 18px; }
.activate__bonus { margin-top: 10px; }

.activate__divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 20px;
    color: var(--ink-3);
    font-size: 13.5px;
}

.activate__divider::before, .activate__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.activate__row { display: flex; gap: 10px; }
.activate__row .input { flex: 1; min-width: 0; }
.activate__row .btn { flex-shrink: 0; }

.activate__faq { margin-top: 28px; }
.activate__faq .faq { margin-top: 12px; }

@media (max-width: 900px) {
    .activate { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
    .activate__promo { padding: 26px 22px; }
    .activate__panel { padding: 22px 18px; }
    /* На телефоне кнопка рядом с полем сжимает ввод до нечитаемого — переносим. */
    .activate__row { flex-direction: column; }
    .activate__row .btn { width: 100%; }
}

/* ==========================================================================
   РАЗБОР СКРИНШОТА: оверлей анализа поверх графика и выбор инструмента.
   Линии рисуются в SVG с viewBox 0 0 100 60 — координаты в процентах,
   поэтому разметка тянется под любой размер превью без пересчёта.
   ========================================================================== */

.drop__preview { position: relative; }

.shot-canvas {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    line-height: 0;
}

/* Слой с разметкой. pointer-events снят — клики уходят на дроп-зону. */
.shot-scan {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.shot-scan.is-on { opacity: 1; }

/* Затемнение: под белой плашкой график не должен спорить с текстом. */
.shot-scan__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 30, 55, 0.24), rgba(6, 30, 55, 0.46));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.shot-scan.is-scanning .shot-scan__veil { opacity: 1; }

.shot-scan__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Линии «проявляются»: штрих равен длине пути, offset уводится в ноль. */
.shot-scan__path {
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    animation: shotDraw 0.9s ease forwards;
}

.shot-scan__path--level {
    stroke: rgba(255, 255, 255, 0.72);
    stroke-width: 0.45;
    stroke-dasharray: 3 2.4;
    stroke-dashoffset: 0;
    opacity: 0;
    animation: shotFade 0.5s ease forwards;
}

.shot-scan__path--trend {
    stroke: var(--ok-soft);
    stroke-width: 0.7;
    filter: drop-shadow(0 0 2px rgba(0, 216, 137, 0.6));
}

.shot-scan__path--channel {
    stroke: rgba(25, 180, 255, 0.9);
    stroke-width: 0.55;
}

.shot-scan__zone {
    fill: rgba(25, 180, 255, 0.14);
    stroke: rgba(25, 180, 255, 0.5);
    stroke-width: 0.3;
    opacity: 0;
    animation: shotFade 0.6s ease forwards;
}

.shot-scan__dot {
    fill: #fff;
    stroke: var(--accent-1);
    stroke-width: 0.5;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: shotPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Бегущая полоса сканера — единственный элемент, который крутится в цикле. */
.shot-scan__beam {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 22%;
    background: linear-gradient(90deg,
        rgba(25, 180, 255, 0) 0%,
        rgba(25, 180, 255, 0.28) 45%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(25, 180, 255, 0.28) 55%,
        rgba(25, 180, 255, 0) 100%);
    opacity: 0;
}

.shot-scan.is-scanning .shot-scan__beam {
    opacity: 1;
    animation: shotBeam 1.9s linear infinite;
}

.shot-scan__badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.94);
    min-width: min(260px, 78%);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
    text-align: center;
    line-height: 1.35;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.shot-scan.is-scanning .shot-scan__badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.shot-scan__badge b {
    display: block;
    font-size: 17px;
    color: var(--ink-1);
    margin-bottom: 4px;
}

.shot-scan__badge span {
    font-size: 13px;
    color: var(--ink-3);
}

/* Ярлык вердикта поверх графика — остаётся после того, как сканер погас. */
.shot-scan__tag {
    position: absolute;
    left: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: var(--pill);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-card);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-1);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.shot-scan.is-done .shot-scan__tag { opacity: 1; transform: translateY(0); }
.shot-scan__tag--up i { color: var(--ok); }
.shot-scan__tag--down i { color: var(--bad); }

@keyframes shotDraw { to { stroke-dashoffset: 0; } }
@keyframes shotFade { to { opacity: 1; } }
@keyframes shotPop { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: scale(1); } }
@keyframes shotBeam { from { left: -22%; } to { left: 100%; } }

/* Сводка выбранных настроек — строка «анализ будет проведён по…». */
.shot-summary {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-1);
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.55;
}

.shot-summary > i {
    flex: none;
    margin-top: 2px;
    color: var(--accent-1);
    font-size: 14px;
}

.shot-summary b { color: var(--ink-1); }
.shot-summary em { font-style: normal; color: var(--ink-soft); }

/* Компактный выбор инструмента: тот же список активов, но ниже ростом. */
.shot-picker { margin-top: 16px; }
.shot-picker .assets { max-height: 210px; }
.shot-picker .search { margin-bottom: 12px; }

.shot-picker__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 13px;
}

.shot-picker__tab {
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    background: var(--bg-0);
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-3);
    cursor: pointer;
    transition: all 0.18s ease;
}

.shot-picker__tab:hover { border-color: var(--accent-1); color: var(--ink-1); }

.shot-picker__tab.is-active {
    background: var(--accent-grad);
    border-color: transparent;
    color: #fff;
}

@media (max-width: 720px) {
    .shot-scan__badge { min-width: 82%; padding: 12px 16px; }
    .shot-scan__badge b { font-size: 15px; }
    .shot-scan__badge span { font-size: 12px; }
}

/* Падение: тренд и канал перекрашиваются, наклон меняет сам скрипт. */
.shot-scan.is-down .shot-scan__path--trend {
    stroke: var(--bad);
    filter: drop-shadow(0 0 2px rgba(217, 79, 109, 0.6));
}

.shot-scan.is-down .shot-scan__zone {
    fill: rgba(217, 79, 109, 0.14);
    stroke: rgba(217, 79, 109, 0.5);
}
