:root {
    --dark-blue: #071a33;
    --blue: #1267e5;
    --cyan: #16b7e8;
    --light-blue: #eaf5ff;
    --yellow: #ffd447;
    --white: #ffffff;
    --text: #17263d;
    --muted: #708099;
    --line: #dce7f3;
    --green: #13b981;
    --red: #ef5261;
    --shadow: 0 16px 42px rgba(26, 74, 122, .11);
    --page-background: #f4f8fc;
    --surface: #ffffff;
    --surface-soft: #f9fcff;
    --input-background: #fbfdff;
    --chart-background-start: #fbfdff;
    --chart-background-end: #f5faff;
    --chart-grid: rgba(105, 139, 177, .20);
    --chart-axis: #72869e;
    --chart-crosshair: rgba(18, 103, 229, .48);
    --loading-background: rgba(248, 252, 255, .88);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --light-blue: #142942;
    --text: #edf4ff;
    --muted: #9aacbf;
    --line: #293b54;
    --shadow: 0 18px 46px rgba(0, 7, 18, .34);
    --page-background: #081321;
    --surface: #101c2d;
    --surface-soft: #132238;
    --input-background: #0d1929;
    --chart-background-start: #0e1a2b;
    --chart-background-end: #101f33;
    --chart-grid: rgba(137, 166, 199, .17);
    --chart-axis: #9bacc2;
    --chart-crosshair: rgba(64, 151, 255, .62);
    --loading-background: rgba(10, 21, 36, .90);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--page-background); font-family: Inter, Arial, sans-serif; transition: color .22s ease, background .22s ease; }
button, a, input, select { font: inherit; }
button { cursor: pointer; }
h1, h2, p { margin-top: 0; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.eyebrow { margin-bottom: 8px; color: var(--blue); font-size: 12px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.muted { color: var(--muted); }

.top-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 76px;
    padding: 8px clamp(16px, 2vw, 34px);
    background: rgba(7, 26, 51, .97);
    color: var(--white);
    box-shadow: 0 8px 28px rgba(4, 20, 43, .18);
    backdrop-filter: blur(12px);
}

.brand-logo { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--white); text-decoration: none; }
.brand-icon { display: grid; place-items: center; width: 50px; height: 52px; flex: 0 0 auto; }
.brand-icon img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(0, 133, 224, .28)); }
.brand-name { font-size: 19px; font-weight: 650; letter-spacing: -.025em; white-space: nowrap; }
.brand-name b { color: var(--yellow); font-weight: 850; }

.main-menu { display: flex; align-items: center; gap: 21px; margin-right: auto; }
.main-menu a { color: #bcd0e7; text-decoration: none; transition: color .18s ease; }
.main-menu a:hover, .main-menu a.active { color: var(--white); }
.mobile-menu-settings { display: none; }

.header-settings { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.header-control { display: inline-grid; place-items: center; min-width: 42px; height: 38px; border: 1px solid rgba(205, 227, 251, .30); border-radius: 10px; padding: 0 9px; color: #e4f0ff; background: rgba(255, 255, 255, .06); font-size: 12px; font-weight: 800; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.header-control:hover { border-color: #82cfff; background: rgba(34, 143, 229, .16); transform: translateY(-1px); }
.currency-selector.header-control { width: 72px; max-width: 72px; outline: 0; padding: 0 7px; text-overflow: clip; white-space: nowrap; cursor: pointer; }
.currency-selector.header-control option { color: #17263d; background: #ffffff; }
.language-selector.header-control { width: 48px; max-width: 48px; outline: 0; padding: 0 6px; cursor: pointer; text-overflow: clip; }
.language-selector.header-control option { color: #17263d; background: #ffffff; }
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] input, html[dir="rtl"] select, html[dir="rtl"] textarea,
html[dir="rtl"] .price-value, html[dir="rtl"] .market-price,
html[dir="rtl"] .account-id-value { direction: ltr; }
.setting-currency-control { width: min(245px, 55%); height: 40px; border: 1px solid var(--line); border-radius: 10px; outline: 0; padding: 0 10px; color: var(--text); background: var(--surface); font-size: 12px; font-weight: 750; }
.setting-currency-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 103, 229, .10); }
.currency-confirm-dialog { width: min(460px, calc(100% - 28px)); border: 1px solid var(--line); border-radius: 24px; padding: 30px; color: var(--text); background: var(--surface); box-shadow: 0 32px 90px rgba(0, 15, 40, .38); text-align: center; }
.currency-confirm-dialog::backdrop { background: rgba(2, 13, 29, .72); backdrop-filter: blur(5px); }
.currency-confirm-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 18px; color: var(--dark-blue); background: linear-gradient(145deg, var(--yellow), #ffe884); box-shadow: 0 13px 28px rgba(255, 212, 71, .23); font-size: 28px; font-weight: 900; }
.currency-confirm-dialog .eyebrow { margin-bottom: 7px; }
.currency-confirm-dialog h2 { margin-bottom: 12px; font-size: 29px; letter-spacing: -.025em; }
.currency-confirm-text { margin-bottom: 21px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.currency-confirm-error { margin-bottom: 14px; border: 1px solid #f1aab3; border-radius: 12px; padding: 11px 13px; color: #a32031; background: #fff0f2; font-size: 13px; }
.currency-confirm-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; }
.currency-confirm-actions .button { min-height: 47px; }
.currency-confirm-actions .button:disabled { cursor: wait; opacity: .65; }
html[data-theme="dark"] .currency-confirm-error { border-color: #7c3442; color: #ffb4bf; background: #321b25; }
.theme-control { min-width: 38px; padding: 0; color: var(--yellow); line-height: 0; }
.theme-control [data-theme-icon] { display: grid; place-items: center; width: 19px; height: 19px; color: inherit; font-size: 0; line-height: 0; }
.theme-control [data-theme-icon]::before { content: ""; display: block; width: 19px; height: 19px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20.6 15.7A8.5 8.5 0 0 1 8.3 3.4 9.1 9.1 0 1 0 20.6 15.7Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20.6 15.7A8.5 8.5 0 0 1 8.3 3.4 9.1 9.1 0 1 0 20.6 15.7Z'/%3E%3C/svg%3E") center / contain no-repeat; }
html[data-theme="dark"] .theme-control [data-theme-icon]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4.2' fill='black'/%3E%3Cpath d='M12 1.5v3M12 19.5v3M1.5 12h3M19.5 12h3M4.6 4.6l2.1 2.1M17.3 17.3l2.1 2.1M19.4 4.6l-2.1 2.1M6.7 17.3l-2.1 2.1' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4.2' fill='black'/%3E%3Cpath d='M12 1.5v3M12 19.5v3M1.5 12h3M19.5 12h3M4.6 4.6l2.1 2.1M17.3 17.3l2.1 2.1M19.4 4.6l-2.1 2.1M6.7 17.3l-2.1 2.1' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.account-header-actions { display: flex; align-items: center; gap: 16px; }

.account-area { display: flex; align-items: center; justify-content: flex-end; gap: 9px; white-space: nowrap; }
.account-area form { margin: 0; }
.auth-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border: 1px solid transparent; border-radius: 11px; padding: 0 16px; font-size: 14px; font-weight: 760; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.account-area .login-button { border-color: rgba(214, 234, 255, .42); background: rgba(255, 255, 255, .07); color: #f3f8ff; }
.account-area .login-button:hover { border-color: #8dcfff; background: rgba(30, 145, 232, .16); }
.account-area .registration-button { border-color: var(--yellow); background: var(--yellow); color: var(--dark-blue); box-shadow: 0 7px 18px rgba(255, 212, 71, .18); }
.account-area .registration-button:hover { background: #ffe071; transform: translateY(-1px); }
.logged-user { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; border: 1px solid rgba(255, 212, 71, .28); border-radius: 11px; padding: 0 10px 0 6px; color: var(--yellow); background: rgba(255, 212, 71, .07); font-size: 13px; font-weight: 800; text-decoration: none; }
.logged-user:hover { border-color: rgba(255, 212, 71, .55); color: #ffe889; }
.logged-user-avatar { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; color: var(--dark-blue); background: var(--yellow); font-size: 11px; font-weight: 900; }
.logged-user-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.text-button { min-height: 36px; border: 1px solid rgba(214, 234, 255, .35); border-radius: 10px; padding: 0 12px; background: transparent; color: #d9e8f8; }
.text-button:hover { border-color: #8dcfff; color: var(--white); }
.menu-button { display: none; width: 40px; height: 40px; border: 0; border-radius: 11px; background: var(--yellow); color: var(--dark-blue); font-weight: 850; }

.support-page-content {
    width: min(1120px, calc(100% - 40px));
    margin: 34px auto 72px;
}

.support-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(310px, .7fr);
    align-items: center;
    gap: 36px;
    overflow: hidden;
    border-radius: 28px;
    padding: 58px;
    color: var(--white);
    background:
        radial-gradient(circle at 82% 12%, rgba(38, 195, 255, .34), transparent 28%),
        linear-gradient(135deg, #071c39, #0b61bd);
    box-shadow: 0 26px 65px rgba(9, 69, 135, .24);
}

.support-hero .eyebrow { color: #79dcff; }
.support-hero h1 { margin-bottom: 15px; font-size: clamp(38px, 5vw, 59px); letter-spacing: -.045em; }
.support-hero-copy > p:not(.eyebrow) { max-width: 650px; margin-bottom: 25px; color: #d6e9ff; font-size: 17px; line-height: 1.65; }
.support-telegram-button { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; border: 1px solid rgba(255, 255, 255, .22); color: #06264c; background: var(--yellow); text-decoration: none; }
.support-telegram-button span { font-size: 18px; }
.support-telegram-button.is-disabled { cursor: default; color: #c7dcf2; background: rgba(255, 255, 255, .09); }

.support-status-card {
    display: grid;
    grid-template-columns: 68px 1fr;
    align-items: start;
    gap: 17px;
    border: 1px solid rgba(166, 222, 255, .25);
    border-radius: 22px;
    padding: 24px;
    background: rgba(5, 28, 59, .48);
    box-shadow: inset 0 1px rgba(255, 255, 255, .06);
    backdrop-filter: blur(12px);
}

.support-status-icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    color: #05244a;
    background: linear-gradient(145deg, var(--yellow), #ffe98c);
    font-size: 17px;
    font-weight: 950;
    box-shadow: 0 13px 28px rgba(255, 212, 71, .19);
}

.support-status-card small { color: #8bcdf9; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.support-status-card strong { display: block; margin: 6px 0 8px; font-size: 19px; }
.support-status-card p { margin: 0; color: #c8ddf5; font-size: 13px; line-height: 1.55; }

.support-directions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 22px;
}

.support-directions article {
    border: 1px solid var(--line);
    border-radius: 21px;
    padding: 27px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.support-directions article > span { color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.support-directions h2 { margin: 22px 0 10px; font-size: 21px; }
.support-directions p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.support-process {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: 23px;
    padding: 35px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.support-process h2 { margin-bottom: 12px; font-size: 28px; }
.support-process > div:first-child > p:last-child { margin: 0; color: var(--muted); line-height: 1.65; }
.support-process-steps { display: grid; gap: 9px; }
.support-process-steps span { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; color: var(--muted); background: var(--surface-soft); font-size: 13px; }
.support-process-steps b { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; color: var(--white); background: var(--blue); }

.restricted-account-card { width: min(540px, 100%); max-width: 540px; border: 1px solid var(--line); border-radius: 24px; padding: 36px 34px 32px; background: var(--surface); box-shadow: 0 24px 60px rgba(8, 45, 86, .16); text-align: center; }
.restricted-account-card h1 { margin: 0 0 12px; font-size: clamp(28px, 5vw, 38px); line-height: 1.08; letter-spacing: -.035em; }
.restricted-account-card > p:not(.eyebrow) { max-width: 440px; margin: 0 auto 24px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.restricted-account-card .protected-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.restricted-account-card .text-link { grid-column: 1 / -1; justify-self: center; margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.restricted-account-card .text-link:hover { color: var(--blue); }
.restricted-account-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 21px; color: #5b4700; background: linear-gradient(145deg, var(--yellow), #ffe98b); font-size: 30px; font-weight: 950; box-shadow: 0 15px 32px rgba(255, 212, 71, .23); }

.verification-content { display: grid; place-items: center; min-height: calc(100vh - 78px); padding: 42px 20px 70px; }
.verification-card { width: min(860px, 100%); border: 1px solid var(--line); border-radius: 28px; padding: 42px; background: var(--surface); box-shadow: 0 28px 70px rgba(8, 45, 86, .16); text-align: center; }
.verification-shield { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; border: 7px solid #d5efff; border-radius: 24px; color: var(--white); background: linear-gradient(145deg, var(--blue), var(--cyan)); box-shadow: 0 16px 34px rgba(18, 103, 229, .24); font-size: 31px; font-weight: 950; }
.verification-shield.is-verified { border-color: #d9f6ec; background: linear-gradient(145deg, #0da879, var(--green)); }
.verification-pro-shield { border-color: #dbe9ff; background: linear-gradient(145deg, #0b4eae, var(--blue)); font-size: 16px; letter-spacing: .04em; }
.verification-card h1 { max-width: 690px; margin: 7px auto 14px; font-size: clamp(31px, 5vw, 46px); line-height: 1.06; letter-spacing: -.04em; }
.verification-lead { max-width: 700px; margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.7; }
.verification-pro-benefits { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.verification-pro-benefits span { border: 1px solid rgba(18, 103, 229, .20); border-radius: 999px; padding: 8px 12px; color: var(--blue); background: rgba(18, 103, 229, .07); font-size: 11px; font-weight: 800; }
.verification-provider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; text-align: left; }
.verification-provider-grid.single-provider { grid-template-columns: minmax(0, 390px); justify-content: center; }
.verification-provider-card { display: grid; grid-template-columns: 58px 1fr; align-items: start; gap: 13px; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; padding: 18px; background: var(--surface-soft); }
.verification-provider-card > img { width: 58px; height: 58px; border-radius: 16px; object-fit: contain; }
.verification-provider-card > div { min-width: 0; }
.verification-provider-card > div > span { color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.verification-provider-card h2 { margin: 4px 0 6px; font-size: 19px; }
.verification-provider-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.verification-provider-card > a, .verification-provider-card > .provider-action { display: flex; align-items: center; justify-content: center; grid-column: 1 / -1; min-height: 42px; border-radius: 11px; font-size: 12px; font-weight: 850; text-decoration: none; }
.tbank-provider { border-color: rgba(216, 180, 25, .42); background: rgba(255, 221, 45, .10); }
.tbank-provider > a { color: #171717; background: rgba(255, 221, 45, .88); }
.ozon-provider { border-color: rgba(0, 91, 255, .30); background: rgba(0, 91, 255, .07); }
.ozon-provider > a { color: var(--white); background: rgba(0, 91, 255, .86); }
.verification-provider-card > .provider-action.is-disabled { border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.verification-provider-empty { margin-top: 26px; border: 1px dashed var(--line); border-radius: 16px; padding: 20px; color: var(--muted); background: var(--surface-soft); font-size: 13px; line-height: 1.6; }
.verification-provider-guidance { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 13px; margin-top: 22px; border: 1px solid rgba(51, 181, 229, .28); border-radius: 17px; padding: 16px; text-align: left; background: rgba(51, 181, 229, .07); }
.verification-provider-guidance > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--white); background: #258cc2; font-size: 18px; font-weight: 900; }
.verification-provider-guidance h2 { margin: 1px 0 6px; font-size: 16px; }
.verification-provider-guidance p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.verification-provider-guidance p + p { margin-top: 7px; }
.verification-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; text-align: left; }
.verification-steps article { min-width: 0; border: 1px solid var(--line); border-radius: 17px; padding: 19px; background: var(--surface-soft); }
.verification-steps article > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--white); background: var(--blue); font-size: 11px; font-weight: 900; }
.verification-steps h2 { margin: 15px 0 8px; font-size: 17px; }
.verification-steps p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.verification-steps b { color: var(--text); overflow-wrap: anywhere; }
.verification-security-note { display: grid; grid-template-columns: 34px 1fr; align-items: start; gap: 12px; margin-top: 14px; border: 1px solid #f0d47a; border-radius: 16px; padding: 15px 17px; color: #665211; background: #fff9df; text-align: left; }
.verification-security-note > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: #3f330b; background: var(--yellow); font-weight: 950; }
.verification-security-note p { margin: 1px 0 0; font-size: 12px; line-height: 1.55; }
.verification-actions { display: grid; grid-template-columns: 1.25fr .85fr; gap: 10px; margin-top: 22px; }
.verification-actions.single-action { grid-template-columns: minmax(220px, 360px); justify-content: center; }
.verification-actions .button { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 13px; text-decoration: none; }
.verification-telegram-button { border-color: #229ed9; color: var(--white); background: linear-gradient(135deg, #2aabee, #168bd0); box-shadow: 0 13px 28px rgba(42, 171, 238, .20); }
.verification-telegram-button img { width: 30px; height: 30px; margin-right: 9px; border-radius: 50%; object-fit: contain; }
.verification-telegram-button.is-disabled { border-color: var(--line); color: var(--muted); background: var(--surface-soft); box-shadow: none; }
html[data-theme="dark"] .verification-security-note { border-color: rgba(255, 212, 71, .35); color: #ffe99a; background: rgba(255, 212, 71, .08); }

.page-content { width: min(1180px, calc(100% - 40px)); margin: 34px auto 70px; }
.page-message { margin-bottom: 20px; border: 1px solid #a7e3cb; border-radius: 12px; padding: 13px 16px; background: #eafaf4; color: #08764b; }

.market-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: center; min-height: 320px; overflow: hidden; border-radius: 26px; padding: 44px 54px; color: var(--white); background: radial-gradient(circle at 82% 30%, rgba(22, 183, 232, .32), transparent 28%), linear-gradient(135deg, #092449, #0a5bb9); box-shadow: 0 24px 60px rgba(19, 78, 143, .22); }
.market-hero::after { content: ""; position: absolute; width: 330px; height: 330px; right: -140px; bottom: -210px; border: 70px solid rgba(255, 212, 71, .09); border-radius: 50%; }
.hero-copy { position: relative; z-index: 2; max-width: 660px; }
.hero-copy .eyebrow { color: #82dfff; }
.hero-copy h1 { max-width: 650px; margin-bottom: 14px; font-size: clamp(36px, 5vw, 58px); line-height: 1.02; letter-spacing: -.045em; }
.hero-description { max-width: 620px; margin-bottom: 22px; color: #d8eaff; font-size: 17px; line-height: 1.6; }
.hero-mascot { position: relative; z-index: 2; display: grid; place-items: center; align-self: stretch; }
.hero-mascot img { position: relative; z-index: 2; width: 225px; max-height: 265px; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(0, 26, 71, .30)); }
.mascot-glow { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(94, 215, 255, .19); filter: blur(3px); }

.market-warning { display: inline-flex; border: 1px solid rgba(255, 212, 71, .38); border-radius: 11px; padding: 9px 12px; color: #fff0b0; background: rgba(75, 53, 0, .22); font-size: 13px; }
.market-warning[hidden] { display: none; }

.rates-section { margin-top: 36px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.section-heading h2 { margin-bottom: 0; font-size: 27px; }
.section-heading > p { margin-bottom: 2px; color: var(--muted); font-size: 13px; }
.rate-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.rate-card[hidden] { display: none; }
.rate-card { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 18px; padding: 20px; color: var(--text); background: var(--surface); box-shadow: var(--shadow); text-align: left; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .22s ease; }
.rate-card:hover { transform: translateY(-3px); border-color: #b9d7f5; }
.rate-card.active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 103, 229, .10), var(--shadow); }
.coin-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.coin-heading > span:last-child { min-width: 0; }
.coin-heading b, .coin-heading small { display: block; }
.coin-heading small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; }
.coin-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; overflow: hidden; border: 1px solid color-mix(in srgb, var(--coin-color) 24%, var(--line)); border-radius: 13px; color: var(--coin-color); background: color-mix(in srgb, var(--coin-color) 10%, var(--surface)); font-weight: 900; box-shadow: 0 7px 16px color-mix(in srgb, var(--coin-color) 20%, transparent); }
.coin-icon img { width: 27px; height: 27px; object-fit: contain; }
.asset-card-price { display: block; overflow: hidden; margin-bottom: 8px; font-size: clamp(21px, 2.2vw, 28px); letter-spacing: -.035em; text-overflow: ellipsis; }
.asset-card-change { font-size: 14px; font-weight: 800; }
.asset-list-actions { display: flex; justify-content: center; gap: 9px; margin-top: 18px; }
.show-more-assets, .collapse-assets { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; color: var(--blue); background: var(--surface); font-weight: 760; }
.show-more-assets:hover, .collapse-assets:hover { border-color: var(--blue); background: #f7fbff; }
.collapse-assets { color: var(--muted); }
.show-more-assets[hidden], .collapse-assets[hidden] { display: none; }

.trading-panel { margin-top: 22px; border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: var(--surface); box-shadow: var(--shadow); transition: background .22s ease; }
.chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.pair-heading { display: flex; align-items: center; gap: 12px; }
.pair-heading p { margin-bottom: 3px; color: var(--muted); font-size: 13px; font-weight: 750; }
.pair-heading h2 { margin-bottom: 0; font-size: 26px; }
.pair-heading > span:last-child { margin-left: 7px; font-size: 14px; font-weight: 800; }
.selected-coin-mark { display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; color: var(--blue); background: var(--light-blue); font-size: 20px; font-weight: 850; }
.selected-coin-mark img { width: 29px; height: 29px; object-fit: contain; }
.chart-tools { display: flex; align-items: end; gap: 10px; }
.chart-coin-select { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 750; }
.chart-coin-select select { min-width: 190px; height: 42px; border: 1px solid var(--line); border-radius: 11px; padding: 0 34px 0 11px; outline: none; color: var(--text); background: var(--surface); }
.chart-coin-select select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 103, 229, .11); }
.chart-controls { display: flex; gap: 5px; border-radius: 12px; padding: 4px; background: var(--light-blue); }
.chart-controls button { display: grid; place-items: center; width: 36px; min-height: 34px; border: 0; border-radius: 9px; padding: 0; color: var(--blue); background: var(--surface); box-shadow: 0 3px 10px rgba(18, 103, 229, .11); font-size: 20px; font-weight: 750; }
.chart-controls button:hover { background: #f5faff; }
.chart-controls button:disabled { cursor: default; opacity: .38; }
.chart-controls span { align-self: center; min-width: 72px; color: var(--muted); font-size: 12px; text-align: center; }
.ohlc-stats { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)) auto; gap: 10px; margin-bottom: 14px; }
.ohlc-stats span { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; color: var(--muted); background: var(--surface-soft); font-size: 11px; text-transform: uppercase; }
.ohlc-stats b { color: var(--text); font-size: 14px; letter-spacing: normal; }
.ohlc-stats time { align-self: center; min-width: 100px; color: var(--muted); font-size: 12px; text-align: right; }
.candlestick-wrap { position: relative; min-height: 510px; border: 1px solid var(--line); border-radius: 16px; padding: 8px; background: linear-gradient(180deg, var(--chart-background-start), var(--chart-background-end)); }
.candlestick-wrap canvas { display: block; width: 100%; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.chart-empty[hidden] { display: none; }
.chart-loading { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 16px; color: var(--blue); background: var(--loading-background); font-weight: 750; backdrop-filter: blur(3px); }
.chart-loading[hidden] { display: none; }
.chart-legend { display: flex; align-items: center; gap: 18px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; }
.legend-up { background: var(--green); }
.legend-down { background: var(--red); }
.chart-legend small { margin-left: auto; }

.about-section { scroll-margin-top: 96px; margin-top: 64px; }
.about-intro { max-width: 940px; margin-bottom: 26px; }
.about-intro h2 { margin-bottom: 16px; font-size: clamp(32px, 4.2vw, 49px); line-height: 1.08; letter-spacing: -.035em; }
.about-intro-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.about-intro-copy p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.72; }
.about-story { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); align-items: stretch; gap: 1px; overflow: hidden; margin-bottom: 18px; border: 1px solid rgba(70, 164, 239, .22); border-radius: 24px; color: #edf7ff; background: linear-gradient(135deg, #071a33, #0b4678 64%, #0875a8); box-shadow: 0 22px 48px rgba(7, 55, 104, .18); }
.about-story-copy { padding: 32px; }
.about-story-copy > span { color: #78d8ff; font-size: 11px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.about-story-copy h3 { max-width: 520px; margin: 11px 0 12px; color: #fff; font-size: 29px; line-height: 1.12; letter-spacing: -.025em; }
.about-story-copy p { max-width: 620px; margin: 0; color: #c9e1f5; font-size: 14px; line-height: 1.68; }
.about-story-simple { grid-template-columns: 1fr; }
.about-story-simple .about-story-copy { padding: 34px 36px; }
.about-story-simple .about-story-copy h3 { max-width: none; margin-top: 0; }
.about-story-simple .about-story-copy p { max-width: 930px; }
.about-story-simple .about-story-copy p + p { margin-top: 13px; }
.about-exchange-details { display: grid; grid-template-columns: minmax(230px, .72fr) minmax(0, 1.8fr); gap: 34px; margin: 18px 0; border-block: 1px solid var(--line); padding: 30px 4px; }
.about-exchange-details > div:first-child span { color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .10em; text-transform: uppercase; }
.about-exchange-details h3 { max-width: 320px; margin: 9px 0 0; font-size: 25px; line-height: 1.2; }
.about-exchange-copy { columns: 2; column-gap: 26px; }
.about-exchange-copy p { margin: 0 0 14px; break-inside: avoid; color: var(--muted); font-size: 13px; line-height: 1.7; }
.about-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255, 255, 255, .14); }
.about-metrics > div { display: grid; align-content: center; min-height: 116px; padding: 21px 24px; background: rgba(6, 31, 61, .50); backdrop-filter: blur(8px); }
.about-metrics strong { color: var(--yellow); font-size: 28px; letter-spacing: -.03em; }
.about-metrics span { margin-top: 4px; color: #d2e8f8; font-size: 11px; font-weight: 720; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; padding: 27px; background: var(--surface); box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease, background .22s ease; }
.about-card::after { content: ""; position: absolute; right: -45px; bottom: -58px; width: 120px; height: 120px; border-radius: 50%; background: color-mix(in srgb, var(--blue) 7%, transparent); }
.about-card:hover { transform: translateY(-3px); border-color: #5aa5ef; }
.about-number { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 25px; border-radius: 13px; color: var(--dark-blue); background: var(--yellow); font-size: 13px; font-weight: 900; }
.about-card h3 { margin: 0 0 10px; font-size: 20px; }
.about-card p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.trust-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; margin-top: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--line); }
.trust-panel > div { display: grid; align-content: start; gap: 8px; min-height: 166px; padding: 28px; background: var(--surface); }
.trust-panel span { color: var(--blue); font-size: 12px; font-weight: 850; letter-spacing: .10em; text-transform: uppercase; }
.trust-panel b { max-width: 280px; font-size: 17px; line-height: 1.4; }
.trust-panel p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.about-support-link { display: grid; grid-template-columns: 1fr auto; gap: 5px 18px; align-items: center; margin-top: 16px; border: 1px solid rgba(16, 107, 232, .22); border-radius: 18px; padding: 18px 21px; color: var(--text); background: linear-gradient(135deg, rgba(16, 107, 232, .08), rgba(27, 153, 229, .04)); text-decoration: none; }
.about-support-link span { color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.about-support-link b { grid-column: 1; font-size: 16px; }
.about-support-link i { position: relative; grid-column: 2; grid-row: 1 / span 2; display: block; width: 39px; height: 39px; border-radius: 12px; color: var(--dark-blue); background: var(--yellow); font-size: 0; font-style: normal; transition: transform .18s ease; }
.about-support-link i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 19px; height: 19px; background: currentColor; transform: translate(-50%, -50%); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.about-support-link:hover { border-color: var(--blue); }
.about-support-link:hover i { transform: translateX(3px); }

.site-footer { margin-top: 80px; color: #eaf3ff; background: #071321; }
.footer-content, .footer-legal { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.footer-content { display: grid; grid-template-columns: minmax(260px, 1.1fr) 1.6fr; gap: 70px; padding: 55px 0 44px; }
.footer-brand .brand-logo { width: max-content; }
.footer-brand p { max-width: 380px; margin: 18px 0 0; color: #91a7c2; line-height: 1.65; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.footer-links > div { display: grid; align-content: start; gap: 12px; }
.footer-links b { margin-bottom: 5px; color: var(--white); }
.footer-links a, .footer-legal a { width: max-content; color: #91a7c2; text-decoration: none; }
.footer-links a:hover, .footer-legal a:hover { color: var(--yellow); }
.footer-user { color: var(--yellow); font-weight: 750; }
.footer-account-form { margin: 0; }
.footer-account-form button { border: 0; padding: 0; color: #91a7c2; background: transparent; font: inherit; cursor: pointer; }
.footer-account-form button:hover { color: var(--yellow); }
.footer-legal { border-top: 1px solid #26364a; padding: 26px 0 34px; }
.footer-legal p { color: #8397b0; font-size: 12px; line-height: 1.65; }
.footer-legal > div { display: flex; flex-wrap: wrap; gap: 14px 28px; color: #9eb0c5; font-size: 12px; }

.policy-acceptance-option { align-items: flex-start; width: 100%; min-width: 0; max-width: none; border: 1px solid rgba(16, 107, 232, .18); border-radius: 13px; padding: 12px 13px; background: rgba(16, 107, 232, .05); }
.policy-acceptance-option input { margin-top: 3px; }
.policy-acceptance-option span { min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
.policy-acceptance-option a { color: var(--blue); font-weight: 800; text-decoration: none; }
.policy-acceptance-option a:hover { text-decoration: underline; }

/* Поля регистрации всегда остаются внутри карточки, включая узкие экраны. */
.registration-page .account-layout,
.registration-page .account-card,
.registration-page .account-form,
.registration-page .account-form label,
.registration-page .password-field,
.registration-page .account-form input:not([type="checkbox"]),
.registration-page .account-form select { min-width: 0; }
.registration-page .account-card,
.registration-page .account-form,
.registration-page .account-form input:not([type="checkbox"]),
.registration-page .account-form select,
.registration-page .policy-acceptance-option { width: 100%; max-width: 100%; }
.registration-page .account-form { grid-template-columns: minmax(0, 1fr); }
.registration-page .policy-acceptance-option span { display: block; flex: 1 1 auto; min-width: 0; white-space: normal; overflow-wrap: anywhere; }

.policy-page { min-height: 100vh; overflow-x: hidden; color: var(--text); background: var(--page-background); }
.policy-overview { max-width: 980px; margin: 24px auto 22px; border-block: 1px solid var(--line); padding: 24px 4px; }
.policy-overview p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.policy-overview p + p { margin-top: 12px; }
.account-header.policy-header { position: sticky; top: 0; z-index: 100; width: 100%; margin: 0; padding: 8px max(20px, calc((100% - 1100px) / 2)); color: var(--white); background: #071a33; box-shadow: 0 8px 28px rgba(4, 20, 43, .20); }
.policy-header .brand-logo { color: var(--white); }
.policy-header .back-link { color: #d7e9ff; }
.policy-header .back-link:hover { color: var(--yellow); }
.policy-content { width: min(980px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 80px; }
.policy-content, .policy-hero, .policy-overview, .policy-navigation, .policy-document, .policy-signature, .policy-guest-note { min-width: 0; max-width: 100%; }
.policy-hero, .policy-overview, .policy-navigation, .policy-document, .policy-signature, .policy-guest-note { overflow-wrap: anywhere; }
.policy-hero { overflow: hidden; border: 1px solid rgba(16, 107, 232, .23); border-radius: 26px; padding: 42px; color: #eef8ff; background: linear-gradient(135deg, #071a33, #0b4678 64%, #0875a8); box-shadow: 0 24px 55px rgba(7, 55, 104, .18); }
.policy-hero h1 { margin: 8px 0 14px; color: #fff; font-size: clamp(36px, 6vw, 58px); line-height: 1.03; letter-spacing: -.045em; }
.policy-hero > p:not(.eyebrow) { max-width: 700px; margin: 0; color: #c9e1f5; font-size: 15px; line-height: 1.7; }
.policy-navigation { margin: 18px 0; border: 1px solid var(--line); border-radius: 20px; padding: 25px 27px; background: var(--surface); }
.policy-navigation > b { display: block; margin-bottom: 16px; font-size: 18px; }
.policy-navigation ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 24px; margin: 0; padding-left: 20px; }
.policy-navigation li { min-width: 0; color: var(--muted); font-size: 12px; }
.policy-navigation a { color: var(--muted); line-height: 1.35; text-decoration: none; }
.policy-navigation a:hover { color: var(--blue); }
.policy-document { display: block; padding: 10px 0; }
.policy-document article { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 17px; scroll-margin-top: 96px; border-bottom: 1px solid var(--line); padding: 28px 2px; }
.policy-document article:first-child { padding-top: 18px; }
.policy-document article:last-child { border-bottom: 0; }
.policy-document article > span { grid-row: 1 / span 4; padding-top: 4px; color: var(--blue); font-size: 13px; font-weight: 900; letter-spacing: .04em; }
.policy-document h2 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.02em; }
.policy-document p { grid-column: 2; margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.78; }
.policy-document p:last-child { margin-bottom: 0; }
.policy-document p b { color: var(--text); }
.policy-document a { color: var(--blue); font-weight: 750; }
.policy-signature { margin-top: 22px; border: 1px solid rgba(19, 185, 129, .34); border-radius: 23px; padding: 28px; background: linear-gradient(135deg, rgba(19, 185, 129, .12), rgba(16, 107, 232, .06)); box-shadow: 0 18px 40px rgba(8, 93, 66, .08); }
.policy-signature-status { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.policy-signature-status > span { display: grid; place-items: center; width: 47px; height: 47px; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--green); font-size: 23px; font-weight: 900; }
.policy-signature-status small, .policy-signature-details span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.policy-signature-status h2 { margin: 2px 0 0; color: var(--green); font-size: 27px; }
.policy-signature-details { display: grid; grid-template-columns: 1.1fr .8fr 1fr 1.2fr; gap: 10px; }
.policy-signature-details > div { display: grid; gap: 6px; border: 1px solid rgba(19, 185, 129, .2); border-radius: 14px; padding: 14px; background: var(--surface); }
.policy-signature-details strong { overflow-wrap: anywhere; font-size: 14px; }
.policy-signature > p { margin: 15px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.policy-guest-note { margin-top: 22px; border: 1px solid var(--line); border-radius: 20px; padding: 25px; background: var(--surface); }
.policy-guest-note b { font-size: 18px; }
.policy-guest-note p { margin: 8px 0 17px; color: var(--muted); font-size: 13px; line-height: 1.6; }

@media (max-width: 760px) {
    .policy-content { width: calc(100% - 24px); padding: 28px 0 56px; }
    .policy-hero { border-radius: 20px; padding: 28px 20px; }
    .policy-hero h1 { font-size: 36px; }
    .policy-navigation { padding: 21px 19px; }
    .policy-navigation ol { grid-template-columns: 1fr 1fr; gap: 8px 20px; }
    .policy-header { min-height: 64px; padding-inline: 12px; }
    .policy-document article { grid-template-columns: 39px minmax(0, 1fr); gap: 0 12px; padding: 22px 2px; }
    .policy-document article > span { padding-top: 3px; font-size: 11px; }
    .policy-document h2 { font-size: 18px; }
    .policy-document p { font-size: 12px; line-height: 1.65; }
    .policy-signature { border-radius: 19px; padding: 21px 17px; }
    .policy-signature-details { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
    .policy-content { width: calc(100% - 18px); padding-top: 20px; }
    .policy-hero { border-radius: 17px; padding: 22px 16px; }
    .policy-hero h1 { font-size: clamp(30px, 10vw, 36px); overflow-wrap: normal; }
    .policy-overview { margin-top: 16px; padding: 19px 2px; }
    .policy-navigation { border-radius: 16px; padding: 18px 15px; }
    .policy-navigation ol { grid-template-columns: 1fr; }
    .policy-document article { grid-template-columns: 1fr; padding-inline: 0; }
    .policy-document article > span { grid-row: auto; margin-bottom: 8px; }
    .policy-document h2, .policy-document p { grid-column: 1; }
    .policy-signature, .policy-guest-note { border-radius: 16px; padding: 18px 14px; }
    .policy-signature-status { align-items: flex-start; }
}

html[data-theme="dark"] .rate-card:hover,
html[data-theme="dark"] .about-card:hover { border-color: #3d80c3; }
html[data-theme="dark"] .show-more-assets:hover,
html[data-theme="dark"] .collapse-assets:hover,
html[data-theme="dark"] .chart-controls button:hover { background: #172943; }
html[data-theme="dark"] .form-errors { border-color: #7c3442; color: #ffb4bf; background: #321b25; }
html[data-theme="dark"] .page-message { border-color: #226d56; color: #85e8c1; background: #102d27; }

.account-page { min-height: 100vh; background: linear-gradient(145deg, #07182f, #0e4486 60%, #147cca); }
html[data-theme="dark"] .account-page { background: linear-gradient(145deg, #050c16, #092541 62%, #0c4169); }
.account-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1100px, calc(100% - 40px)); min-height: 78px; margin: 0 auto; }
.back-link { flex: 0 0 auto; color: #d7e9ff; text-decoration: none; }
.back-link:hover { color: var(--yellow); }
.account-content { display: grid; place-items: center; min-height: calc(100vh - 78px); padding: 34px 20px 70px; }
.compact-account-content { padding-top: 55px; }
.account-layout { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 510px); align-items: center; gap: 30px; width: min(100%, 900px); }
.account-card { width: 100%; border: 1px solid rgba(255, 255, 255, .25); border-radius: 22px; padding: 34px; background: var(--surface); box-shadow: 0 28px 70px rgba(0, 18, 48, .30); }
.account-card h1 { margin-bottom: 8px; font-size: 36px; }
.form-description { margin-bottom: 24px; }

.account-promo { position: relative; align-self: stretch; min-height: 610px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .23); border-radius: 24px; padding: 34px 30px; color: var(--white); background: linear-gradient(155deg, rgba(22, 151, 232, .44), rgba(4, 30, 72, .38)); box-shadow: 0 28px 70px rgba(0, 18, 48, .22); backdrop-filter: blur(10px); }
.account-promo::before { content: ""; position: absolute; width: 240px; height: 240px; right: -100px; top: -100px; border-radius: 50%; background: rgba(255, 212, 71, .15); }
.account-promo h2 { position: relative; z-index: 2; max-width: 300px; margin: 20px 0 12px; font-size: 31px; line-height: 1.08; }
.account-promo p { position: relative; z-index: 2; max-width: 290px; color: #d8ebff; line-height: 1.55; }
.account-promo img { position: absolute; right: -34px; bottom: -70px; z-index: 1; width: 390px; max-width: none; filter: drop-shadow(0 20px 24px rgba(0, 23, 68, .25)); }
.registration-promo img { right: -5px; bottom: -90px; width: 320px; }
.promo-badge { position: relative; display: inline-flex; justify-self: start; align-self: start; width: max-content; max-width: 100%; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 7px 11px; color: var(--yellow); background: rgba(5, 37, 82, .25); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.mobile-promo-badge { display: none; }
.login-promo { min-height: 440px; }
.login-promo img { right: -5px; bottom: -92px; width: 320px; }

.account-form { display: grid; gap: 17px; }
.account-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 750; }
.account-form label small { color: var(--muted); font-size: 12px; font-weight: 400; }
.account-form input, .account-form select { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; outline: none; color: var(--text); background: var(--input-background); }
.account-form input:focus, .account-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 103, 229, .12); }
.remember-option { display: flex !important; align-items: center; grid-template-columns: none; gap: 10px !important; width: max-content; max-width: 100%; color: var(--muted); cursor: pointer; font-weight: 550 !important; }
.remember-option input { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; accent-color: var(--blue); }
.forgot-password-link { width: max-content; margin-top: -7px; color: var(--blue); font-size: 13px; font-weight: 750; text-decoration: none; }
.forgot-password-link:hover { text-decoration: underline; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 90px; }
.show-password { position: absolute; top: 50%; right: 11px; transform: translateY(-50%); border: 0; padding: 5px; background: transparent; color: var(--blue); font-size: 12px; font-weight: 750; }
.optional { color: var(--muted); font-size: 12px; font-weight: 400; }
.button { border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; font-weight: 760; }
.button.primary { border-color: var(--yellow); background: var(--yellow); color: var(--dark-blue); }
.full-width { width: 100%; margin-top: 3px; }
.form-errors { margin-bottom: 20px; border: 1px solid #ffc4ca; border-radius: 11px; padding: 12px 14px; background: #fff0f2; color: #a32031; font-size: 14px; }
.form-errors ul { margin: 8px 0 0; padding-left: 18px; }
.form-footer { margin: 22px 0 0; text-align: center; color: var(--muted); }
.form-footer a { color: var(--blue); font-weight: 750; }
.registration-content { padding-block: 24px 56px; }
.registration-layout { grid-template-columns: minmax(280px, 340px) minmax(0, 560px); width: min(100%, 930px); }
.registration-promo { min-height: 560px; }
.registration-card { min-height: 560px; }
.registration-progress-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.registration-progress-heading .eyebrow { margin-bottom: 3px; }
.registration-progress-heading small { color: var(--muted); font-size: 11px; font-weight: 700; }
.registration-progress-heading > strong { color: var(--blue); font-size: 12px; }
.registration-progress { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; margin: 0 0 25px; padding: 0; list-style: none; }
.registration-progress li { position: relative; display: grid; justify-items: center; min-width: 0; gap: 5px; color: var(--muted); text-align: center; }
.registration-progress li::before { content: ""; position: absolute; top: 12px; left: calc(-50% - 3px); width: calc(100% + 6px); height: 2px; background: var(--line); }
.registration-progress li:first-child::before { display: none; }
.registration-progress li span { position: relative; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 10px; font-weight: 850; }
.registration-progress li small { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.registration-progress li.complete::before, .registration-progress li.active::before { background: var(--blue); }
.registration-progress li.complete span { border-color: var(--blue); color: #fff; background: var(--blue); }
.registration-progress li.active span { border-color: var(--yellow); color: var(--dark-blue); background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 212, 71, .16); }
.registration-progress li.active small { color: var(--text); font-weight: 800; }
.registration-step-form { min-height: 185px; align-content: start; }
.registration-step-actions { display: grid; grid-template-columns: .75fr 1.25fr; gap: 9px; margin-top: auto; }
.registration-step-actions .button { display: grid; place-items: center; width: 100%; min-height: 47px; text-decoration: none; }
.registration-step-actions .button:only-child { grid-column: 1 / -1; }
.registration-step-actions .secondary { color: var(--text); background: var(--surface-soft); }
.registration-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.registration-summary > div { display: grid; min-width: 0; gap: 5px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: var(--surface-soft); }
.registration-summary .wide { grid-column: 1 / -1; }
.registration-summary span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.registration-summary b { overflow-wrap: anywhere; font-size: 12px; }
.auth-alternative { margin-top: 19px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-social-icons { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; margin-top: 14px; }
.auth-social-button { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 54px; gap: 11px; overflow: hidden; border: 1px solid transparent; border-radius: 13px; padding: 8px 52px; color: var(--white); background: #1267e5; box-shadow: 0 9px 20px rgba(18, 103, 229, .13); cursor: default; font: inherit; font-size: 14px; font-weight: 850; text-align: center; transition: transform .18s ease, filter .18s ease, box-shadow .18s ease; }
.auth-social-button[hidden] { display: none; }
.auth-social-button:hover { transform: translateY(-2px); filter: brightness(1.025); box-shadow: 0 13px 25px rgba(8, 45, 86, .18); }
.auth-provider-logo { position: absolute; left: 11px; width: 34px; height: 34px; border-radius: 10px; object-fit: contain; }
.auth-social-button.tbank { border-color: #e2bd13; color: #171717; background: #ffdd2d; }
.auth-social-button.ozon { border-color: #005bff; background: linear-gradient(135deg, #005bff, #0875ff); }
.auth-social-button.telegram { border-color: #2aabee; background: linear-gradient(135deg, #2aabee, #168bd0); }
.auth-social-button.google { border-color: #c7c9cb; color: #1f1f1f; background: #ffffff; }
.auth-social-button.google .auth-provider-logo { width: 30px; height: 30px; left: 13px; border-radius: 0; }
.auth-social-button.icbc { border-color: #c11a27; background: linear-gradient(135deg, #c11a27, #8b0e19); }
.auth-social-button.goldman { border-color: #599ccc; color: #10273a; background: #c8e7f9; }
.auth-social-button.icbc .auth-provider-logo,
.auth-social-button.goldman .auth-provider-logo { padding: 3px; background: #fff; object-fit: contain; }
.auth-provider-dialog { --auth-provider-accent: #4285f4; --auth-provider-soft: rgba(66, 133, 244, .14); width: min(500px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; border: 0; padding: 0; overflow: auto; color: var(--text); background: transparent; }
.auth-provider-dialog[data-provider-theme="ozon"] { --auth-provider-accent: #005bff; --auth-provider-soft: rgba(0, 91, 255, .14); }
.auth-provider-dialog[data-provider-theme="tbank"] { --auth-provider-accent: #d4aa00; --auth-provider-soft: rgba(255, 221, 45, .19); }
.auth-provider-dialog[data-provider-theme="icbc"] { --auth-provider-accent: #c11a27; --auth-provider-soft: rgba(193, 26, 39, .14); }
.auth-provider-dialog[data-provider-theme="goldman"] { --auth-provider-accent: #5797c6; --auth-provider-soft: rgba(87, 151, 198, .15); }
.auth-provider-dialog[data-provider-theme="telegram"] { --auth-provider-accent: #229ed9; --auth-provider-soft: rgba(34, 158, 217, .14); }
.auth-provider-dialog[data-provider-theme="google"] { --auth-provider-accent: #4285f4; --auth-provider-soft: rgba(66, 133, 244, .14); }
html[data-theme="dark"] .auth-provider-dialog[data-provider-theme="tbank"] { --auth-provider-accent: #ffdd2d; }
.auth-provider-dialog::backdrop { background: rgba(5, 11, 20, .72); backdrop-filter: blur(7px); }
.auth-provider-dialog-card { position: relative; display: flex; flex-direction: column; align-items: center; border: 1px solid var(--line); border-radius: 24px; padding: 30px; overflow: hidden; text-align: center; background: var(--surface); box-shadow: 0 25px 70px rgba(0, 0, 0, .34); }
.auth-provider-dialog-state { display: flex; flex-direction: column; align-items: center; width: 100%; }
.auth-provider-dialog-state[hidden] { display: none; }
.auth-provider-dialog-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--surface-soft); font: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.auth-provider-spinner { width: 58px; height: 58px; margin-bottom: 15px; border: 5px solid var(--auth-provider-soft); border-top-color: var(--auth-provider-accent); border-radius: 50%; animation: auth-provider-spin .85s linear infinite; }
.auth-provider-loading-state .eyebrow { margin: 0 0 7px; color: var(--auth-provider-accent); }
.auth-provider-loading-state h2 span, .auth-provider-error-state h2 span { color: var(--auth-provider-accent); }
.auth-provider-loading-progress { width: 100%; height: 5px; margin-top: 22px; overflow: hidden; border-radius: 999px; background: var(--surface-soft); }
.auth-provider-loading-progress span { display: block; width: 35%; height: 100%; border-radius: inherit; background: var(--auth-provider-accent); animation: auth-provider-progress 1.15s ease-in-out infinite; }
.auth-provider-dialog-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 15px; border-radius: 18px; color: #fff; background: linear-gradient(145deg, #ff6b6b, #d63f52); box-shadow: 0 12px 28px rgba(214, 63, 82, .24); font-size: 29px; font-weight: 900; }
.auth-provider-error-state .eyebrow { margin: 0 0 7px; color: #e75d6b; }
.auth-provider-dialog h2 { margin: 0; font-size: clamp(22px, 5vw, 29px); line-height: 1.12; }
.auth-provider-error-service { max-width: 100%; margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.3; }
.auth-provider-error-service b { display: inline-block; max-width: 100%; color: var(--auth-provider-accent); white-space: nowrap; }
.auth-provider-dialog-message { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; text-wrap: balance; }
.auth-provider-dialog-note { width: 100%; margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; color: var(--muted); background: var(--surface-soft); font-size: 12px; line-height: 1.55; }
.auth-provider-dialog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 18px; }
.auth-provider-dialog-action, .auth-provider-support-action { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; text-align: center; text-decoration: none; }
.auth-provider-support-action { gap: 7px; border-color: rgba(34, 158, 217, .35); color: #fff; background: #229ed9; }
.auth-provider-support-action img { width: 23px; height: 23px; border-radius: 6px; object-fit: contain; }
.auth-provider-support-action.is-disabled { border-color: var(--line); color: var(--muted); background: var(--surface-soft); }
@keyframes auth-provider-spin { to { transform: rotate(360deg); } }
@keyframes auth-provider-progress { 0% { transform: translateX(-110%); } 50% { transform: translateX(95%); } 100% { transform: translateX(285%); } }
@media (prefers-reduced-motion: reduce) {
    .auth-provider-spinner { animation-duration: 1.8s; }
    .auth-provider-loading-progress span { width: 100%; animation: none; }
}

.cabinet-page { min-height: 100vh; background: var(--page-background); }
.cabinet-header { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 8px max(24px, calc((100% - 1180px) / 2)); color: var(--white); background: rgba(7, 26, 51, .98); box-shadow: 0 8px 28px rgba(4, 20, 43, .18); backdrop-filter: blur(12px); }
.cabinet-user-chip { display: none; }
.cabinet-header-actions { display: flex; align-items: center; gap: 10px; }
.cabinet-header-actions form { margin: 0; }
.cabinet-market-link { display: inline-flex; align-items: center; min-height: 38px; border: 1px solid rgba(214, 234, 255, .35); border-radius: 10px; padding: 0 13px; color: #d9e8f8; text-decoration: none; }
.cabinet-market-link:hover { border-color: #8dcfff; color: var(--white); }
.cabinet-content { width: min(1180px, calc(100% - 40px)); margin: 34px auto 70px; }
.profile-summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; border-radius: 24px; padding: 32px 38px; color: var(--white); background: radial-gradient(circle at 78% 20%, rgba(22, 183, 232, .30), transparent 25%), linear-gradient(135deg, #092449, #0a5bb9); box-shadow: 0 22px 55px rgba(19, 78, 143, .20); }
.profile-summary::after { content: ""; position: absolute; width: 230px; height: 230px; right: -130px; bottom: -155px; border: 48px solid rgba(255, 212, 71, .11); border-radius: 50%; }
.profile-identity { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; min-width: 0; }
.profile-avatar { display: grid; place-items: center; width: 72px; height: 72px; flex: 0 0 auto; border: 2px solid rgba(255, 255, 255, .25); border-radius: 22px; color: var(--dark-blue); background: var(--yellow); box-shadow: 0 14px 30px rgba(1, 23, 57, .28); font-size: 30px; font-weight: 900; }
.profile-identity .eyebrow { color: #8de4ff; }
.profile-identity h1 { overflow: hidden; margin-bottom: 5px; font-size: clamp(29px, 4vw, 42px); letter-spacing: -.035em; text-overflow: ellipsis; }
.profile-identity p:last-child { overflow: hidden; margin-bottom: 0; color: #c9e1fa; text-overflow: ellipsis; }
.profile-id { position: relative; z-index: 1; display: grid; min-width: 280px; border: 1px solid rgba(255, 255, 255, .20); border-radius: 17px; padding: 18px 21px; background: rgba(5, 37, 82, .42); backdrop-filter: blur(8px); }
.profile-id span { color: #9ac8f5; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.profile-id strong { margin: 5px 0 3px; color: var(--yellow); font-size: 25px; letter-spacing: .08em; }
.profile-id small { color: #c2daf2; }
.cabinet-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 18px; }
.overview-card { display: grid; gap: 7px; min-height: 145px; border: 1px solid var(--line); border-radius: 19px; padding: 24px; background: var(--surface); box-shadow: var(--shadow); }
.overview-card > span { color: var(--muted); font-size: 13px; }
.overview-card strong { align-self: end; font-size: clamp(22px, 3vw, 31px); letter-spacing: -.03em; }
.overview-card small { color: var(--muted); line-height: 1.4; }
.balance-card { border-color: #e8c848; background: linear-gradient(145deg, var(--yellow), #ffe98d); color: var(--dark-blue); }
.balance-card > span, .balance-card small { color: #68581e; }
.balance-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 13px; }
.balance-actions button { min-height: 34px; border: 1px solid rgba(12, 42, 78, .24); border-radius: 9px; color: var(--dark-blue); background: rgba(255, 255, 255, .52); font-size: 11px; font-weight: 850; }
.balance-actions button:first-child { border-color: var(--dark-blue); color: var(--white); background: var(--dark-blue); }
.balance-actions button:hover { transform: translateY(-1px); box-shadow: 0 7px 14px rgba(23, 47, 76, .14); }
.verified-status { color: var(--green); }
.verification-pro-status { color: var(--blue); font-size: clamp(20px, 2.5vw, 28px) !important; }
.pending-status { color: #d99500; }
.verification-overview-card { align-content: start; }
.verification-start-button { display: inline-flex; align-items: center; justify-content: center; justify-self: start; min-height: 36px; margin-top: 5px; border: 1px solid var(--blue); border-radius: 10px; padding: 0 13px; color: var(--white); background: var(--blue); font-size: 11px; font-weight: 850; text-decoration: none; }
.verification-start-button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(18, 103, 229, .20); }
.cabinet-grid { display: grid; grid-template-columns: .78fr 1.42fr; align-items: start; gap: 18px; margin-top: 18px; }
.cabinet-panel { border: 1px solid var(--line); border-radius: 21px; padding: 26px; background: var(--surface); box-shadow: var(--shadow); }
.account-settings-panel, .activity-panel { min-width: 0; }
.account-settings-panel { align-self: start; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.panel-heading h2 { margin-bottom: 0; font-size: 24px; letter-spacing: -.025em; }
.planned-label { border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; color: var(--muted); background: var(--surface-soft); font-size: 10px; font-weight: 750; white-space: nowrap; }
.settings-list { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--line); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 66px; padding: 14px 16px; background: var(--surface-soft); }
.setting-row > span { color: var(--muted); font-size: 13px; }
.setting-row b { overflow: hidden; max-width: 52%; font-size: 13px; text-overflow: ellipsis; }
.setting-row button { min-width: 94px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; color: var(--text); background: var(--surface); font-size: 13px; text-align: left; opacity: 1; cursor: default; }
.support-setting-row a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(16, 107, 232, .22); border-radius: 10px; padding: 8px 11px; color: var(--blue); background: var(--surface); font-size: 12px; font-weight: 850; text-decoration: none; }
.support-setting-row a:hover { border-color: var(--blue); background: var(--light-blue); }
.support-setting-row i { position: relative; display: block; width: 16px; height: 16px; flex: 0 0 16px; font-size: 0; font-style: normal; }
.support-setting-row i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 15px; height: 15px; background: currentColor; transform: translate(-50%, -50%); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.history-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.history-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; padding: 18px 19px; background: var(--surface-soft); }
.history-card > div { display: flex; align-items: center; gap: 9px; }
.history-card h3 { margin: 0; font-size: 15px; }
.history-card > p { margin: 24px 0 2px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.history-icon { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 9px; color: var(--blue); background: var(--light-blue); font-weight: 850; line-height: 1; }
.deposit-icon { color: var(--green); }
.withdrawal-icon { color: var(--red); }
.history-card ul { display: grid; gap: 8px; margin: 17px 0 0; padding: 0; list-style: none; }
.history-card ul.history-scrollable { overflow-y: auto; padding-right: 7px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.history-card li { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 8px; font-size: 11px; }
.history-card .history-entry[hidden] { display: none; }
.history-card li span, .history-card li time { color: var(--muted); }
.trades-history-card, .crypto-purchases-history-card, .futures-history-card { grid-column: 1 / -1; }
.trades-history-card .history-entry { grid-template-columns: minmax(110px, .7fr) minmax(130px, 1fr) auto; align-items: center; gap: 10px; padding: 11px 0 3px; }
.trades-history-card .history-entry time { text-align: right; }
.history-card .crypto-purchase-history-row { grid-template-columns: minmax(110px, 1fr) minmax(110px, .9fr) minmax(120px, .9fr) auto auto; align-items: center; gap: 10px; padding: 11px 0 3px; }
.crypto-purchase-history-row > strong { justify-self: start; width: max-content; border-radius: 999px; padding: 5px 8px; font-size: 10px; font-weight: 800; }
.crypto-purchase-history-row time { text-align: right; }
.deposit-history-card .history-entry, .withdrawal-history-card .history-entry { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 10px; padding: 11px 0 3px; }
.deposit-history-card .history-entry > span, .withdrawal-history-card .history-entry > span { justify-self: end; border-radius: 999px; padding: 4px 7px; background: var(--surface); font-size: 10px; font-weight: 750; }
.deposit-history-card .history-entry time, .withdrawal-history-card .history-entry time { grid-column: 1 / -1; }
.futures-history-icon { color: var(--white); background: linear-gradient(145deg, var(--cyan), var(--blue)); }
.history-card .futures-history-row { display: grid; grid-template-columns: minmax(130px, 1.2fr) minmax(90px, .8fr) 90px minmax(90px, .8fr) minmax(125px, 1fr); align-items: center; gap: 10px; padding: 11px 0 3px; }
.trade-asset b, .trade-asset small { display: block; }
.trade-asset small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.futures-history-row .trade-amount, .futures-history-row .trade-balance-change { color: var(--text); font-weight: 750; }
.futures-history-row .trade-balance-change { text-align: right; }
.futures-history-row .trade-outcome { width: max-content; border-radius: 999px; padding: 5px 8px; font-weight: 800; }
.futures-history-row .trade-win { color: #08764b; background: #dff8ed; }
.futures-history-row .trade-loss { color: #a32031; background: #ffe5e9; }
html[data-theme="dark"] .futures-history-row .trade-win { color: #85e8c1; background: #173a31; }
html[data-theme="dark"] .futures-history-row .trade-loss { color: #ffb4bf; background: #3a2029; }
.security-section { scroll-margin-top: 20px; margin-top: 18px; }
.security-heading > div > p:last-child { max-width: 620px; margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.captcha-badge { flex: 0 0 auto; border: 1px solid rgba(18, 103, 229, .25); border-radius: 12px; padding: 10px 13px; color: var(--blue); background: var(--light-blue); font-size: 13px; font-weight: 800; }
.security-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.security-action-card { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; border: 1px solid var(--line); border-radius: 17px; padding: 21px; background: var(--surface-soft); }
.security-action-icon { display: grid; place-items: center; grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 12px; color: var(--dark-blue); background: var(--yellow); font-weight: 900; line-height: 1; }
.email-security-icon::before { content: ""; display: block; width: 19px; height: 19px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6.5h18v11H3zM3.8 7.2 12 13l8.2-5.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6.5h18v11H3zM3.8 7.2 12 13l8.2-5.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.password-security-icon::before { content: ""; display: block; width: 19px; height: 19px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10h12v10H6zM8.5 10V7.5a3.5 3.5 0 0 1 7 0V10M12 14v2.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10h12v10H6zM8.5 10V7.5a3.5 3.5 0 0 1 7 0V10M12 14v2.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.security-action-card h3 { margin: 1px 0 5px; font-size: 18px; }
.security-action-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.security-action-button { grid-column: 1 / -1; margin-top: 16px; color: var(--blue); background: var(--surface); }
.security-action-button:hover { border-color: var(--blue); }
.security-dialog { width: min(560px, calc(100% - 28px)); max-height: calc(100vh - 36px); overflow-y: auto; border: 1px solid var(--line); border-radius: 22px; padding: 27px; color: var(--text); background: var(--surface); box-shadow: 0 30px 90px rgba(0, 15, 40, .34); }
.security-dialog::backdrop { background: rgba(2, 13, 29, .72); backdrop-filter: blur(5px); }
.operation-dialog { width: min(540px, calc(100% - 28px)); max-height: calc(100vh - 36px); max-height: calc(100dvh - 36px); overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; scroll-padding-block: 16px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 24px; padding: 27px; color: var(--text); background: var(--surface); box-shadow: 0 30px 90px rgba(0, 15, 40, .34); }
.operation-dialog::backdrop { background: rgba(2, 13, 29, .72); backdrop-filter: blur(5px); }
.payment-confirm-dialog > * { min-width: 0; max-width: 100%; }
.operation-limit-card { display: grid; gap: 4px; margin: 18px 0; border: 1px solid rgba(16, 107, 232, .2); border-radius: 16px; padding: 15px 17px; background: rgba(16, 107, 232, .07); }
.operation-limit-card span, .operation-limit-card small { color: var(--muted); font-size: 12px; }
.operation-limit-card strong { color: var(--blue); font-size: 21px; }
.operation-form { display: grid; gap: 14px; }
.operation-form select { width: 100%; min-height: 46px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; padding: 0 42px 0 13px; appearance: none; -webkit-appearance: none; color: var(--text); background-color: var(--input-background); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1.5 1.5 4.5 4 4.5-4' fill='none' stroke='%23708099' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; text-overflow: ellipsis; white-space: nowrap; font: inherit; }
.operation-form select:disabled, .operation-form input:disabled { cursor: not-allowed; opacity: .58; }
.withdrawal-bank-fields { display: grid; gap: 14px; }
.withdrawal-bank-fields[hidden] { display: none !important; }
.operation-amount-field { display: grid; grid-template-columns: 1fr auto; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--input-background); }
.operation-amount-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(16, 107, 232, .12); }
.operation-amount-field input { min-width: 0; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.operation-amount-field .operation-currency-select { width: 104px; min-height: 44px; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 0 34px 0 12px; color: var(--blue); background-color: var(--surface); background-position: right 11px center; background-size: 11px 7px; font-size: 12px; font-weight: 850; }
.deposit-requisites-card { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; border: 1px solid rgba(19, 185, 129, .28); border-radius: 16px; padding: 15px; background: rgba(19, 185, 129, .08); }
.deposit-requisites-card[hidden], .payment-service-status[hidden] { display: none; }
.deposit-requisites-card > div { display: grid; gap: 4px; min-width: 0; }
.deposit-requisites-card span, .deposit-requisites-card small { color: var(--muted); font-size: 11px; }
.deposit-requisites-card strong { overflow-wrap: anywhere; font-size: 14px; }
.deposit-requisites-card small { grid-column: 1 / -1; line-height: 1.45; }
.payment-service-status { border: 1px solid rgba(236, 155, 47, .32); border-radius: 16px; padding: 14px 15px; background: rgba(255, 196, 67, .09); }
.payment-service-status strong { display: block; margin-bottom: 5px; color: #ba7418; }
.payment-service-status p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.operation-result { width: 100%; min-width: 0; max-width: 100%; overflow: hidden; border-radius: 14px; padding: 13px 15px; overflow-wrap: anywhere; }
.operation-result strong { display: block; max-width: 100%; margin-bottom: 4px; overflow-wrap: anywhere; }
.operation-result p { max-width: 100%; margin: 0; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; }
.payment-confirm-dialog > .operation-result { margin-top: 13px; }
.operation-result.success { border: 1px solid rgba(19, 185, 129, .3); color: #08775a; background: rgba(19, 185, 129, .1); }
.operation-result.error { border: 1px solid rgba(225, 70, 85, .28); color: #be2f42; background: rgba(225, 70, 85, .09); }
.payment-confirm-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 13px; }
.payment-confirm-summary > div { display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; background: var(--surface-soft); }
.payment-confirm-summary span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.payment-confirm-summary strong { overflow-wrap: anywhere; font-size: 15px; }
.payment-control-card { display: grid; gap: 13px; margin-top: 13px; border: 1px solid rgba(16, 107, 232, .22); border-radius: 16px; padding: 16px; background: linear-gradient(145deg, rgba(16, 107, 232, .08), rgba(27, 153, 229, .04)); }
.payment-control-card[hidden] { display: none; }
.payment-control-heading { display: grid; grid-template-columns: 36px 1fr; align-items: start; gap: 11px; }
.payment-control-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: var(--dark-blue); background: var(--yellow); font-size: 17px; font-weight: 950; }
.payment-control-heading h3 { margin: 1px 0 5px; font-size: 15px; }
.payment-control-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.payment-control-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.payment-control-steps span { display: grid; align-content: start; min-width: 0; gap: 5px; min-height: 68px; border: 1px solid var(--line); border-radius: 11px; padding: 9px; overflow-wrap: anywhere; color: var(--text); background: var(--surface-soft); font-size: 10px; line-height: 1.35; }
.payment-control-steps b { color: var(--blue); font-size: 9px; letter-spacing: .08em; }
.payment-control-card > small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.payment-confirm-actions { display: grid; grid-template-columns: .75fr 1.25fr; gap: 9px; margin-top: 15px; }
.payment-confirm-actions .button { width: 100%; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.dialog-heading h2 { margin: 0; font-size: 27px; }
.dialog-close { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--surface-soft); font-size: 24px; line-height: 1; }
.dialog-close:hover { border-color: var(--blue); color: var(--blue); }
.dialog-description { margin: 10px 0 15px; color: var(--muted); line-height: 1.55; }
.dialog-form { margin-top: 19px; }
.security-result { display: flex; align-items: start; gap: 13px; margin: 18px 0; border: 1px solid; border-radius: 15px; padding: 16px; }
.security-result > span { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; font-size: 18px; font-weight: 900; }
.security-result h3 { margin: 1px 0 5px; font-size: 17px; }
.security-result p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; }
.security-result.success { border-color: #8adbbb; color: #08764b; background: #eafaf4; }
.security-result.success > span { color: #eafaf4; background: #0da870; }
.security-result.error { border-color: #f1aab3; color: #a32031; background: #fff0f2; }
.security-result.error > span { color: #fff0f2; background: #d03b50; }
.dialog-done { margin-top: 8px; }
html[data-theme="dark"] .security-result.success { border-color: #226d56; color: #85e8c1; background: #102d27; }
html[data-theme="dark"] .security-result.error { border-color: #7c3442; color: #ffb4bf; background: #321b25; }
.recovery-layout { align-items: center; }
.recovery-promo { min-height: 590px; }
.recovery-card { max-width: 510px; }
.recovery-note { margin: 19px 0 0; border-left: 3px solid var(--blue); padding-left: 12px; color: var(--muted); font-size: 12px; line-height: 1.55; }

@media (max-width: 900px) {
    .top-bar { gap: 12px; padding-inline: 20px; }
    .brand-logo { margin-right: auto; }
    .main-menu { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 18px; background: var(--dark-blue); box-shadow: 0 14px 24px rgba(4, 20, 43, .18); }
    .main-menu.open { display: flex; }
    .main-menu a { padding: 11px 12px; }
    .header-settings .placeholder-control { display: none; }
    .mobile-menu-settings { display: flex; gap: 8px; margin-top: 8px; border-top: 1px solid rgba(205, 227, 251, .16); padding: 14px 12px 2px; }
    .mobile-menu-settings .header-control { min-width: 58px; }
    .mobile-menu-settings .language-selector.header-control { width: 58px; max-width: 58px; }
    .menu-button { display: block; }
    .rate-grid { grid-template-columns: repeat(3, 1fr); }
    .ohlc-stats { grid-template-columns: repeat(4, 1fr); }
    .ohlc-stats time { grid-column: 1 / -1; text-align: left; }
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .about-card:last-child { grid-column: auto; }
    .footer-content { grid-template-columns: 1fr; gap: 38px; }
    .account-layout { grid-template-columns: 1fr; max-width: 540px; }
    .account-promo { display: grid; grid-template-columns: minmax(0, 1fr) 180px; align-items: center; min-height: 220px; padding: 28px; }
    .account-promo .promo-badge, .account-promo h2, .account-promo p { grid-column: 1; max-width: none; }
    .account-promo h2 { margin: 12px 0 8px; font-size: 25px; }
    .account-promo p { margin-bottom: 0; }
    .account-promo img, .login-promo img { position: static; grid-column: 2; grid-row: 1 / span 3; justify-self: end; width: 170px; }
    .cabinet-grid { grid-template-columns: 1fr; }
    .recovery-promo { min-height: 220px; }
}

@media (max-width: 620px) {
    .top-bar { flex-wrap: nowrap; gap: 5px; min-height: 60px; padding: 5px 8px; }
    .brand-logo { order: initial; margin-right: auto; }
    .top-bar .brand-logo { gap: 4px; }
    .brand-icon { width: 35px; height: 38px; }
    .top-bar .brand-name { display: inline; font-size: 13px; }
    .top-bar .header-settings { gap: 3px; }
    .top-bar .currency-selector.header-control { width: 58px; max-width: 58px; height: 32px; padding-inline: 4px; font-size: 10px; }
    .top-bar .theme-control { min-width: 32px; width: 32px; height: 32px; }
    .account-area { order: initial; width: auto; justify-content: flex-end; gap: 4px; }
    .account-area .logged-user { width: auto; max-width: 108px; min-height: 34px; border-radius: 10px; padding: 0 7px 0 5px; justify-content: flex-start; }
    .account-area .logged-user-avatar { width: 25px; height: 25px; }
    .account-area .logged-user-name { display: block; max-width: 68px; font-size: 10px; }
    .account-area .text-button { display: none; }
    .auth-button { min-height: 32px; padding-inline: 7px; font-size: 10.5px; }
    .menu-button { order: initial; width: 34px; height: 34px; }
    .main-menu { order: initial; }
    .page-content { width: min(100% - 24px, 1180px); margin-top: 20px; }
    .market-hero { grid-template-columns: 1fr; padding: 24px 22px 28px; text-align: center; }
    .hero-mascot { order: -1; min-height: 132px; }
    .hero-mascot img { width: 126px; max-height: 136px; }
    .mascot-glow { width: 130px; height: 130px; }
    .hero-copy { display: grid; justify-items: center; }
    .hero-copy h1 { font-size: 35px; }
    .hero-description { font-size: 15px; }
    .section-heading { align-items: start; flex-direction: column; gap: 5px; }
    .rate-grid { display: grid; grid-template-columns: 1fr; gap: 7px; max-height: none; overflow: visible; border: 1px solid var(--line); border-radius: 18px; padding: 7px; background: var(--surface-soft); }
    .rate-grid.mobile-expanded { max-height: min(62vh, 560px); max-height: min(62dvh, 560px); overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; -webkit-overflow-scrolling: touch; }
    .rate-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 3px 10px; width: 100%; min-height: 68px; border-radius: 13px; padding: 10px 11px; box-shadow: none; scroll-snap-align: none; }
    .rate-card:hover { transform: none; }
    .coin-heading { grid-row: 1 / span 2; margin-bottom: 0; }
    .coin-icon { width: 35px; height: 35px; }
    .asset-card-price { grid-column: 2; margin: 0; font-size: 16px; text-align: right; }
    .asset-card-change { grid-column: 2; font-size: 11px; text-align: right; }
    .trading-panel { padding: 16px 12px; }
    .chart-heading { align-items: stretch; flex-direction: column; }
    .selected-coin-mark { width: 38px; height: 38px; }
    .pair-heading { gap: 8px; }
    .pair-heading h2 { font-size: 20px; }
    .pair-heading > span:last-child { margin-left: 0; font-size: 12px; }
    .chart-tools { align-items: stretch; flex-direction: column; width: 100%; }
    .chart-coin-select { flex: 1; }
    .chart-coin-select select { width: 100%; min-width: 0; }
    .chart-controls { justify-content: space-between; width: 100%; }
    .chart-controls span { flex: 1; }
    .chart-controls button { padding-inline: 9px; }
    .ohlc-stats { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .ohlc-stats time { grid-column: 1 / -1; }
    .candlestick-wrap { min-height: 448px; border-radius: 18px; padding: 6px; box-shadow: inset 0 1px rgba(255, 255, 255, .42), 0 12px 30px rgba(11, 69, 126, .10); }
    .candlestick-wrap canvas { min-height: 440px; }
    .chart-legend { flex-wrap: wrap; }
    .chart-legend small { width: 100%; margin-left: 0; }
    .asset-list-actions { display: flex; margin-top: 12px; }
    .about-section { margin-top: 42px; }
    .about-intro { width: 100%; margin-bottom: 18px; }
    .about-intro h2 { font-size: 29px; line-height: 1.12; }
    .about-intro-copy { grid-template-columns: 1fr; gap: 10px; }
    .about-intro-copy p { font-size: 13px; line-height: 1.62; }
    .about-story { grid-template-columns: 1fr; border-radius: 19px; }
    .about-story-copy { padding: 23px 19px; }
    .about-story-copy h3 { margin-top: 8px; font-size: 24px; }
    .about-story-copy p { font-size: 12px; line-height: 1.58; }
    .about-exchange-details { grid-template-columns: 1fr; gap: 15px; padding: 23px 2px; }
    .about-exchange-details h3 { max-width: none; font-size: 22px; }
    .about-exchange-copy { columns: 1; }
    .about-exchange-copy p { font-size: 12px; line-height: 1.65; }
    .about-story-simple .about-story-copy { padding: 23px 19px; }
    .about-story-simple .about-story-copy h3 { margin-top: 0; }
    .about-metrics > div { min-height: 88px; padding: 15px 17px; }
    .about-metrics strong { font-size: 23px; }
    .about-metrics span { font-size: 10px; }
    .about-grid { display: grid; grid-template-columns: 1fr; gap: 10px; overflow: visible; padding: 0; }
    .about-card, .about-card:last-child { width: 100%; padding: 20px; }
    .about-number { width: 36px; height: 36px; margin-bottom: 15px; border-radius: 11px; }
    .about-card h3 { font-size: 18px; }
    .trust-panel { display: grid; grid-template-columns: 1fr; gap: 1px; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--line); }
    .trust-panel > div { width: 100%; min-height: 0; border: 0; border-radius: 0; padding: 17px 19px; }
    .trust-panel p { font-size: 11px; }
    .about-support-link { padding: 16px 17px; }
    .site-footer { margin-top: 58px; }
    .footer-content, .footer-legal { width: calc(100% - 28px); }
    .footer-content { padding: 42px 0 32px; }
    .footer-links { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; }
    .footer-legal > div { flex-direction: column; gap: 10px; }
    .account-header { width: calc(100% - 24px); min-height: 70px; }
    .account-header .brand-icon { width: 44px; height: 46px; }
    .account-header .brand-name { font-size: 16px; }
    .account-header-actions { gap: 8px; }
    .account-header .theme-control { min-width: 34px; width: 34px; height: 34px; }
    .account-header .currency-selector.header-control { width: 64px; max-width: 64px; height: 34px; font-size: 10px; }
    .back-link { font-size: 13px; }
    .account-content { padding: 14px 12px 36px; }
    .account-card { padding: 25px 20px; }
    .account-promo { display: none; }
    .registration-content { padding-top: 10px; }
    .registration-layout { display: block; width: 100%; }
    .registration-card { min-height: 0; }
    .registration-progress li small { display: none; }
    .registration-progress { margin-bottom: 22px; }
    .registration-step-actions { grid-template-columns: 1fr; }
    .registration-step-actions .button.primary { order: -1; }
    .cabinet-header { min-height: 64px; padding: 6px 12px; }
    .cabinet-header .brand-icon { width: 38px; height: 41px; }
    .cabinet-header .brand-name { font-size: 14px; }
    .cabinet-header-actions { gap: 5px; }
    .cabinet-market-link, .cabinet-header .text-button { min-height: 34px; padding-inline: 9px; font-size: 11px; }
    .cabinet-header .theme-control { min-width: 34px; width: 34px; height: 34px; }
    .cabinet-header .currency-selector.header-control { width: 64px; max-width: 64px; height: 34px; font-size: 10px; }
    .cabinet-content { width: calc(100% - 24px); margin-top: 20px; }
    .profile-summary { align-items: stretch; flex-direction: column; gap: 12px; padding: 18px; }
    .profile-avatar { width: 58px; height: 58px; border-radius: 18px; font-size: 24px; }
    .profile-identity { gap: 13px; }
    .profile-identity h1 { font-size: 22px; }
    .profile-identity p:last-child { max-width: 145px; font-size: 11px; }
    .profile-id { grid-template-columns: 1fr auto; align-items: center; min-width: 0; width: 100%; padding: 10px 12px; }
    .profile-id span { grid-column: 1; }
    .profile-id strong { font-size: 16px; }
    .profile-id small { display: none; }
    .cabinet-overview { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
    .overview-card { flex: 0 0 min(76vw, 280px); min-height: 118px; scroll-snap-align: start; }
    .cabinet-panel { padding: 20px 16px; }
    .panel-heading, .security-heading { align-items: stretch; flex-direction: column; }
    .history-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; overflow: visible; padding: 0; }
    .history-card, .futures-history-card { min-width: 0; grid-column: auto; }
    .trades-history-card, .crypto-purchases-history-card, .futures-history-card { grid-column: 1 / -1; }
    .history-card > p { margin-top: 18px; }
    .captcha-badge { width: max-content; max-width: 100%; }
    .security-actions { grid-template-columns: 1fr; }
    .security-action-card { padding: 18px; }
    .security-dialog, .operation-dialog { width: calc(100% - 24px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); border-radius: 18px; padding: 20px 15px; }
    .payment-confirm-dialog { scroll-padding-block: 12px 20px; }
    .dialog-heading h2 { font-size: 24px; }
    .recovery-content { padding-top: 18px; }
}

@media (max-width: 390px) {
    .top-bar { gap: 4px; padding-inline: 6px; }
    .top-bar .brand-icon { width: 32px; height: 35px; }
    .top-bar .brand-name { font-size: 10px; }
    .top-bar .currency-selector.header-control { width: 50px; max-width: 50px; }
    .top-bar .theme-control { min-width: 30px; width: 30px; height: 30px; }
    .auth-button { min-height: 30px; padding-inline: 4px; font-size: 9px; }
    .menu-button { width: 30px; height: 30px; }
    .account-area .logged-user { max-width: 82px; padding-right: 5px; }
    .account-area .logged-user-name { max-width: 45px; font-size: 9px; }
    .rate-card { padding: 13px; }
    .coin-heading { gap: 7px; }
    .coin-heading small { display: none; }
    .account-header .brand-name { display: inline; font-size: 14px; }
    .cabinet-header .brand-name { font-size: 12px; }
    .cabinet-header .cabinet-header-actions .currency-selector.header-control { width: 100%; max-width: none; }
    .cabinet-market-link { padding-inline: 7px; }
    .cabinet-header .text-button { padding-inline: 7px; }
}

.button.secondary { border-color: var(--blue); color: var(--blue); background: transparent; text-decoration: none; }
.button.primary { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

.protected-page { min-height: 100vh; background: radial-gradient(circle at 80% 25%, rgba(22, 183, 232, .14), transparent 30%), var(--page-background); }
.protected-page .account-header { width: 100%; margin: 0; padding: 8px max(20px, calc((100% - 1100px) / 2)); color: var(--white); background: rgba(7, 26, 51, .98); box-shadow: 0 8px 28px rgba(4, 20, 43, .20); backdrop-filter: blur(12px); }
.protected-page .account-header .brand-logo { color: var(--white); }
.protected-page .account-header .back-link { color: #d7e9ff; }
.protected-page .account-header .back-link:hover { color: var(--yellow); }
.protected-content { display: grid; place-items: center; min-height: calc(100vh - 78px); padding: 40px 20px 70px; }
.access-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); align-items: center; width: min(980px, 100%); overflow: hidden; border: 1px solid var(--line); border-radius: 30px; padding: 54px 58px; background: var(--surface); box-shadow: var(--shadow); }
.access-copy h1 { max-width: 650px; margin-bottom: 17px; font-size: clamp(36px, 5vw, 58px); line-height: 1.02; letter-spacing: -.045em; }
.access-copy > p:not(.eyebrow) { max-width: 600px; margin-bottom: 28px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.access-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.access-actions .button { min-width: 126px; }
.plain-action { padding: 10px 5px; color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.plain-action:hover { color: var(--blue); }
.access-visual { position: relative; display: grid; place-items: center; min-height: 330px; }
.access-visual::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: linear-gradient(145deg, rgba(18, 103, 229, .13), rgba(22, 183, 232, .22)); }
.access-visual img { position: relative; z-index: 1; width: min(310px, 100%); max-height: 315px; object-fit: contain; filter: drop-shadow(0 20px 26px rgba(8, 89, 166, .22)); }
.access-lock { position: absolute; top: 29px; right: 12px; z-index: 2; display: grid; place-items: center; width: 55px; height: 55px; border: 6px solid var(--surface); border-radius: 18px; color: var(--white); background: var(--green); box-shadow: 0 11px 22px rgba(19, 185, 129, .25); font-size: 25px; font-weight: 900; }

.futures-content { width: min(1380px, calc(100% - 40px)); margin: 38px auto 70px; }
.futures-intro { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 27px; }
.futures-intro h1 { margin-bottom: 11px; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.03; letter-spacing: -.045em; }
.futures-intro > div > p:last-child { max-width: 770px; margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.terminal-status { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; border: 1px solid #a7e3cb; border-radius: 999px; padding: 9px 14px; color: #08764b; background: #eafaf4; font-size: 12px; font-weight: 800; }
.terminal-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(19, 185, 129, .14); }
html[data-theme="dark"] .terminal-status { border-color: #226d56; color: #85e8c1; background: #102d27; }
.futures-workspace { display: grid; grid-template-columns: minmax(330px, .75fr) minmax(600px, 1.65fr); gap: 18px; align-items: start; }
.futures-market-panel, .futures-terminal { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.futures-market-panel { position: sticky; top: 94px; overflow: hidden; }
.futures-panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; padding: 21px 19px 17px; }
.futures-panel-heading .eyebrow { margin-bottom: 4px; }
.futures-panel-heading h2 { margin: 0; font-size: 22px; }
.market-search { display: flex; align-items: center; width: 142px; border: 1px solid var(--line); border-radius: 11px; padding: 0 9px; background: var(--input-background); }
.market-search span { color: var(--muted); font-size: 21px; line-height: 1; }
.market-search input { width: 100%; min-width: 0; height: 38px; border: 0; outline: 0; padding: 0 5px; color: var(--text); background: transparent; font-size: 12px; }
.futures-market-labels, .futures-asset-row { display: grid; grid-template-columns: minmax(128px, 1.35fr) minmax(90px, 1fr) 63px; align-items: center; gap: 8px; }
.futures-market-labels { border-block: 1px solid var(--line); padding: 9px 17px; color: var(--muted); background: var(--surface-soft); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.futures-market-labels span:nth-child(n+2) { text-align: right; }
.futures-asset-list { max-height: 720px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.futures-asset-row { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 11px 16px; color: var(--text); background: transparent; text-align: left; transition: background .16s ease, box-shadow .16s ease; }
.futures-asset-row:last-child { border-bottom: 0; }
.futures-asset-row:hover { background: var(--surface-soft); }
.futures-asset-row.active { background: color-mix(in srgb, var(--blue) 8%, var(--surface)); box-shadow: inset 3px 0 var(--blue); }
.futures-asset-row > strong, .futures-asset-row > span:last-child { overflow: hidden; font-size: 12px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.futures-asset-name { display: flex; align-items: center; min-width: 0; gap: 9px; }
.futures-asset-name .coin-icon { width: 34px; height: 34px; }
.futures-asset-name > span:last-child { min-width: 0; }
.futures-asset-name b, .futures-asset-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.futures-asset-name b { font-size: 13px; }
.futures-asset-name small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.futures-terminal { padding: 22px; }
.selected-future-asset { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.selected-future-logo { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 15px; color: var(--white); background: linear-gradient(145deg, var(--cyan), var(--blue)); font-size: 19px; font-weight: 900; }
.selected-future-logo img { width: 30px; height: 30px; object-fit: contain; }
.selected-future-asset small, .selected-future-price small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; }
.selected-future-asset h2 { margin: 0; font-size: 20px; }
.selected-future-price { margin-left: auto; text-align: right; }
.selected-future-price strong { font-size: 20px; }
.futures-chart-card { scroll-margin-top: 88px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; outline: none; background: linear-gradient(180deg, var(--chart-background-start), var(--chart-background-end)); box-shadow: inset 0 1px rgba(255, 255, 255, .45), 0 14px 34px rgba(19, 79, 139, .08); }
.chart-status-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 13px 16px; }
.chart-status-row > div:first-child span, .chart-status-row > div:first-child b { display: block; }
.chart-status-row > div:first-child span { margin-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 800; }
.chart-status-row > div:first-child b { font-size: 18px; }
.deal-timer { min-width: 110px; border-left: 1px solid var(--line); padding-left: 18px; text-align: right; }
.deal-timer small, .deal-timer strong { display: block; }
.deal-timer small { margin-bottom: 2px; color: var(--muted); font-size: 10px; }
.deal-timer strong { color: var(--blue); font-size: 23px; font-variant-numeric: tabular-nums; }
.future-canvas-wrap { position: relative; min-height: 350px; }
#futuresChart { display: block; width: 100%; }
.chart-start-message { position: absolute; top: 50%; left: 50%; width: max-content; max-width: calc(100% - 32px); transform: translate(-50%, -50%); border: 1px solid var(--line); border-radius: 12px; padding: 11px 15px; color: var(--muted); background: var(--loading-background); font-size: 13px; text-align: center; backdrop-filter: blur(7px); }
.futures-chart-legend { display: flex; align-items: center; gap: 15px; border-top: 1px solid var(--line); padding: 10px 15px; color: var(--muted); background: color-mix(in srgb, var(--surface-soft) 88%, transparent); font-size: 11px; }
.futures-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.futures-chart-legend i { width: 8px; height: 8px; border-radius: 2px; }
.futures-chart-legend small { margin-left: auto; color: var(--muted); font-size: 10px; }
.deal-result { display: flex; align-items: center; gap: 13px; border-top: 1px solid var(--line); padding: 14px 16px; }
.deal-result > span { display: grid; place-items: center; min-width: 58px; height: 36px; border-radius: 10px; color: var(--white); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.deal-result.win { color: #08764b; background: #eafaf4; }
.deal-result.win > span { background: var(--green); }
.deal-result.loss { color: #a32031; background: #fff0f2; }
.deal-result.loss > span { background: var(--red); }
.deal-result b, .deal-result p { display: block; margin: 0; }
.deal-result p { margin-top: 3px; font-size: 12px; }
html[data-theme="dark"] .deal-result.win { color: #85e8c1; background: #102d27; }
html[data-theme="dark"] .deal-result.loss { color: #ffb4bf; background: #321b25; }
.future-deal-dialog { width: min(510px, calc(100% - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; border: 1px solid var(--line); border-radius: 23px; padding: 28px; color: var(--text); background: var(--surface); box-shadow: 0 32px 90px rgba(0, 15, 40, .38); }
.future-deal-dialog::backdrop { background: rgba(2, 13, 29, .72); backdrop-filter: blur(5px); }
.future-deal-dialog h2 { margin: 0 0 10px; font-size: 29px; letter-spacing: -.03em; }
.future-confirm-heading { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 14px; margin-bottom: 13px; }
.future-confirm-heading .eyebrow { margin-bottom: 5px; }
.future-confirm-heading h2 { margin-bottom: 0; }
.future-confirm-logo { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line)); border-radius: 17px; color: var(--white); background: linear-gradient(145deg, var(--cyan), var(--blue)); box-shadow: 0 12px 25px rgba(18, 103, 229, .17); font-size: 21px; font-weight: 900; }
.future-confirm-logo img { width: 38px; height: 38px; object-fit: contain; }
.future-dialog-description { margin-bottom: 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.future-dialog-details { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 21px; }
.future-dialog-details > div { display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 13px; padding: 12px 13px; background: var(--surface-soft); }
.future-dialog-details .wide { grid-column: 1 / -1; }
.future-dialog-details span, .future-result-balance span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.future-dialog-details b { overflow-wrap: anywhere; font-size: 14px; }
.future-dialog-actions { display: grid; grid-template-columns: .9fr 1.35fr; gap: 9px; }
.future-dialog-actions .button { min-height: 47px; }
.future-result-dialog { text-align: center; }
.future-result-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 17px; border-radius: 19px; color: var(--white); background: var(--green); box-shadow: 0 14px 30px rgba(19, 185, 129, .24); font-size: 30px; font-weight: 900; }
.future-result-dialog.loss .future-result-icon { background: var(--red); box-shadow: 0 14px 30px rgba(239, 82, 97, .22); }
.future-result-dialog.win .eyebrow { color: var(--green); }
.future-result-dialog.loss .eyebrow { color: var(--red); }
.future-result-balance { display: grid; gap: 7px; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 14px; padding: 15px; background: var(--surface-soft); }
.future-result-balance b { font-size: 21px; }
@media (max-width: 430px) {
    .future-deal-dialog { padding: 22px 18px; }
    .future-dialog-details, .future-dialog-actions { grid-template-columns: 1fr; }
    .future-dialog-details .wide { grid-column: auto; }
}
.future-order-form { display: grid; gap: 17px; margin-top: 19px; }
.order-block { min-width: 0; margin: 0; border: 0; padding: 0; }
.order-block legend, .order-label > span { margin-bottom: 8px; padding: 0; font-size: 13px; font-weight: 800; }
.order-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-label small { color: var(--muted); font-size: 10px; }
.amount-field { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding-right: 14px; background: var(--input-background); }
.amount-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 103, 229, .10); }
.amount-field input { width: 100%; min-width: 0; height: 48px; border: 0; outline: 0; padding: 0 14px; color: var(--text); background: transparent; font-weight: 750; }
.amount-field span { color: var(--muted); font-size: 12px; font-weight: 800; }
.future-available-balance { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 7px 1px 0; color: var(--muted); font-size: 11px; }
.future-available-balance strong { color: var(--text); font-size: 12px; }
.choice-grid { display: grid; gap: 8px; }
.direction-grid { grid-template-columns: repeat(3, 1fr); }
.duration-grid { grid-template-columns: repeat(4, 1fr); }
.choice-grid label { min-width: 0; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border: 1px solid var(--line); border-radius: 11px; padding: 7px; color: var(--muted); background: var(--surface-soft); font-size: 12px; font-weight: 760; text-align: center; transition: border-color .16s ease, color .16s ease, background .16s ease; }
.choice-grid input:checked + span { border-color: var(--blue); color: var(--blue); background: color-mix(in srgb, var(--blue) 8%, var(--surface)); box-shadow: 0 0 0 2px rgba(18, 103, 229, .07); }
.choice-grid input:focus-visible + span { outline: 3px solid rgba(18, 103, 229, .22); }
.choice-grid span b { color: inherit; }
.order-summary { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.order-summary div { min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px; }
.order-summary div:nth-child(3n) { border-right: 0; }
.order-summary div:nth-last-child(-n+3) { border-bottom: 0; }
.order-summary span, .order-summary b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-summary span { margin-bottom: 4px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.order-summary b { font-size: 12px; }
.future-form-message { border: 1px solid #f1aab3; border-radius: 11px; padding: 11px 13px; color: #a32031; background: #fff0f2; font-size: 12px; }
.start-future-button:disabled { cursor: wait; opacity: .72; }
.compact-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px; min-height: 88px; border-top: 1px solid #193551; padding: 22px; color: #8fa8c3; background: var(--dark-blue); font-size: 12px; }
.compact-footer a { color: #bad0e7; text-decoration: none; }
.compact-footer a:hover { color: var(--yellow); }

.crypto-content, .p2p-content { width: min(1380px, calc(100% - 40px)); margin: 34px auto 76px; }
.crypto-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .85fr); align-items: center; min-height: 410px; overflow: hidden; border-radius: 28px; padding: 42px 54px; color: var(--white); background: radial-gradient(circle at 76% 42%, rgba(22, 183, 232, .32), transparent 31%), linear-gradient(135deg, #071d3b, #0a62c4); box-shadow: 0 24px 60px rgba(19, 78, 143, .22); }
.crypto-hero::after { content: ""; position: absolute; right: -120px; bottom: -210px; width: 360px; height: 360px; border: 72px solid rgba(255, 212, 71, .10); border-radius: 50%; }
.crypto-hero-copy { position: relative; z-index: 2; max-width: 680px; }
.crypto-hero .eyebrow { color: #88e5ff; }
.crypto-hero h1 { margin-bottom: 15px; font-size: clamp(54px, 7vw, 86px); line-height: .96; letter-spacing: -.06em; }
.crypto-hero-copy > p:not(.eyebrow) { max-width: 650px; color: #c9e1fa; font-size: 17px; line-height: 1.65; }
.crypto-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.crypto-hero .button.secondary { border-color: rgba(255, 255, 255, .42); color: var(--white); background: rgba(255, 255, 255, .08); }
.crypto-hero-mascot { position: relative; z-index: 1; display: grid; place-items: center; min-height: 335px; }
.crypto-hero-mascot img { width: min(560px, 115%); max-height: 390px; object-fit: contain; filter: drop-shadow(0 24px 32px rgba(0, 20, 62, .28)); }
.crypto-workspace { display: grid; grid-template-columns: minmax(330px, .72fr) minmax(610px, 1.65fr); gap: 17px; align-items: start; margin-top: 18px; }
.crypto-market-panel, .crypto-chart-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.crypto-market-panel { position: sticky; top: 94px; }
.crypto-panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding: 20px 18px 16px; }
.crypto-panel-heading .eyebrow { margin-bottom: 4px; }
.crypto-panel-heading h2 { margin: 0; font-size: 22px; }
.crypto-market-labels, .crypto-asset-row { display: grid; grid-template-columns: minmax(128px, 1.35fr) minmax(90px, 1fr) 64px; align-items: center; gap: 8px; }
.crypto-market-labels { border-block: 1px solid var(--line); padding: 9px 16px; color: var(--muted); background: var(--surface-soft); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.crypto-market-labels span:nth-child(n+2) { text-align: right; }
.crypto-asset-list { max-height: 700px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.crypto-asset-list-actions { display: none; gap: 7px; border-top: 1px solid var(--line); padding: 10px; background: var(--surface-soft); }
.crypto-asset-list-actions button { flex: 1 1 0; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; color: var(--blue); background: var(--surface); font-size: 11px; font-weight: 800; }
.crypto-asset-list-actions button:hover { border-color: var(--blue); }
.crypto-asset-row { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 11px 15px; color: var(--text); background: transparent; text-align: left; }
.crypto-asset-row:hover { background: var(--surface-soft); }
.crypto-asset-row.active { background: color-mix(in srgb, var(--blue) 8%, var(--surface)); box-shadow: inset 3px 0 var(--blue); }
.crypto-asset-row > strong, .crypto-asset-row > span:last-child { overflow: hidden; font-size: 12px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.crypto-asset-name { display: flex; align-items: center; min-width: 0; gap: 9px; }
.crypto-asset-name .coin-icon { width: 34px; height: 34px; }
.crypto-asset-name > span:last-child { min-width: 0; }
.crypto-asset-name b, .crypto-asset-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crypto-asset-name b { font-size: 13px; }
.crypto-asset-name small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.crypto-chart-panel { min-width: 0; padding: 20px; }
.crypto-chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.crypto-chart-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.crypto-chart-controls { flex: 0 0 auto; }
.crypto-selected-asset { display: flex; align-items: center; gap: 10px; }
.crypto-selected-asset > span, #portfolioCoinLogo { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; color: var(--white); background: linear-gradient(145deg, var(--cyan), var(--blue)); font-weight: 900; }
.crypto-selected-asset img, #portfolioCoinLogo img { width: 28px; height: 28px; object-fit: contain; }
.crypto-selected-asset small { color: var(--muted); font-size: 10px; }
.crypto-selected-asset h2 { margin: 3px 0 0; font-size: 19px; }
.crypto-selected-price { display: grid; justify-items: end; gap: 4px; }
.crypto-selected-price strong { font-size: 23px; }
.crypto-selected-price span { font-size: 12px; font-weight: 800; }
.crypto-ohlc { display: flex; flex-wrap: wrap; gap: 8px; border: 1px solid var(--line); border-radius: 12px 12px 0 0; padding: 9px 12px; color: var(--muted); background: var(--surface-soft); font-size: 10px; }
.crypto-ohlc b { margin-left: 3px; color: var(--text); font-size: 11px; }
.crypto-chart-wrap { position: relative; min-height: 460px; overflow: hidden; border-inline: 1px solid var(--line); background: var(--chart-background-start); }
#cryptoCandlesChart { display: block; width: 100%; }
.crypto-chart-footer { display: flex; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 0 0 12px 12px; padding: 10px 12px; color: var(--muted); font-size: 11px; }
.crypto-chart-footer span { display: inline-flex; align-items: center; gap: 5px; }
.crypto-chart-footer small { margin-left: auto; }
.user-assets-section { scroll-margin-top: 96px; margin-top: 56px; }
.user-assets-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 15px; }
.portfolio-empty-card, .selected-asset-actions { border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: var(--surface); box-shadow: var(--shadow); }
.portfolio-empty-card { display: flex; align-items: center; gap: 18px; }
.portfolio-empty-icon { display: grid; place-items: center; width: 60px; height: 60px; flex: 0 0 auto; border-radius: 18px; color: var(--blue); background: var(--light-blue); font-size: 30px; }
.portfolio-empty-card h3 { margin: 0 0 6px; }
.portfolio-empty-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.selected-action-coin { display: flex; align-items: center; gap: 12px; }
.selected-action-coin small, .selected-action-coin b { display: block; }
.selected-action-coin small { color: var(--muted); font-size: 10px; }
.selected-action-coin b { margin-top: 3px; }
.selected-action-coin > strong { margin-left: auto; font-size: 18px; }
.selected-action-coin > strong span { color: var(--muted); font-size: 12px; }
.asset-action-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 20px; }
.crypto-buy-button { border-color: var(--green); color: var(--white); background: var(--green); }
.crypto-sell-button { border-color: var(--red); color: var(--red); background: transparent; }
.asset-order-dialog, .p2p-load-dialog { width: min(470px, calc(100% - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 21px; padding: 25px; color: var(--text); background: var(--surface); box-shadow: 0 30px 80px rgba(0, 15, 38, .35); }
.asset-order-dialog::backdrop, .p2p-load-dialog::backdrop { background: rgba(2, 14, 31, .68); backdrop-filter: blur(4px); }
.asset-order-dialog > p { color: var(--muted); line-height: 1.55; }
.asset-order-status { border: 1px solid #f0c86c; border-radius: 13px; padding: 15px; color: #805c00; background: #fff8df; }
.asset-order-status b, .asset-order-status p { display: block; }
.asset-order-status p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; }
html[data-theme="dark"] .asset-order-status { border-color: #71591d; color: #ffe18a; background: #30291a; }

/* Покупка криптовалюты, портфель и уведомления о завершённых операциях. */
.portfolio-assets-list { display: grid; gap: 10px; min-width: 0; }
.portfolio-asset-card { display: grid; grid-template-columns: auto minmax(90px, 1fr) minmax(130px, .9fr) minmax(130px, .9fr); align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: var(--surface); box-shadow: var(--shadow); }
.portfolio-asset-card > small { grid-column: 2 / -1; color: var(--muted); font-size: 11px; }
.portfolio-asset-name, .portfolio-asset-quantity, .portfolio-asset-value { display: grid; gap: 3px; }
.portfolio-asset-name small, .portfolio-asset-quantity span, .portfolio-asset-value span { color: var(--muted); font-size: 11px; }
.portfolio-asset-quantity strong, .portfolio-asset-value strong { overflow-wrap: anywhere; font-size: 13px; }
.asset-order-quote { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 1px solid var(--line); border-radius: 15px; padding: 12px; background: var(--surface-soft); }
.asset-order-quote > div { display: grid; gap: 4px; }
.asset-order-quote span { color: var(--muted); font-size: 11px; }
.asset-order-quote strong { overflow-wrap: anywhere; font-size: 13px; }
.asset-order-quote > small { grid-column: 1 / -1; color: var(--muted); line-height: 1.45; }
.asset-order-status { display: flex; align-items: flex-start; width: 100%; min-width: 0; max-width: 100%; gap: 13px; margin-top: 14px; overflow: hidden; }
.asset-order-status > div { min-width: 0; max-width: 100%; }
.asset-order-status p { max-width: 100%; overflow-wrap: anywhere; }
.asset-order-status.error { border-color: rgba(225, 70, 85, .3); color: #be2f42; background: rgba(225, 70, 85, .09); }
.asset-order-status.pending { border-color: rgba(64, 105, 242, .3); color: var(--text); background: var(--light-blue); }
.order-status-icon, .order-waiting-spinner { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 800; }
.asset-order-status.error .order-status-icon { background: #df4658; }
.order-waiting-spinner::before { content: ""; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: decision-spin .85s linear infinite; }
.order-request-badge { display: inline-flex !important; margin-top: 10px; border-radius: 999px; padding: 5px 10px; color: var(--blue); background: rgba(64,105,242,.12); font-size: 11px; }
.order-processing-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; gap: 7px; margin-top: 12px; }
.order-processing-summary span { display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 11px; padding: 8px; background: var(--surface); }
.order-processing-summary small { color: var(--muted); }
.order-processing-summary b { overflow-wrap: anywhere; font-size: 11px; }
.order-processing-steps { display: grid; gap: 6px; margin-top: 12px; }
.order-processing-steps span { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 7px; color: var(--text); font-size: 11px; }
.order-processing-steps b { display: grid !important; place-items: center; width: 25px; height: 25px; border-radius: 8px; color: var(--blue); background: rgba(64,105,242,.12); font-size: 9px; }
.order-processing-note { display: block; margin-top: 10px; color: var(--muted); line-height: 1.5; }
.crypto-purchase-history { margin-top: 16px; border: 1px solid var(--line); border-radius: 20px; padding: 20px; background: var(--surface); box-shadow: var(--shadow); }
.crypto-purchase-history-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 12px; }
.crypto-purchase-history-heading h3 { margin: 2px 0 0; }
.crypto-purchase-history-heading > span, .crypto-history-empty { color: var(--muted); font-size: 12px; }
.crypto-purchase-history-list { display: grid; gap: 7px; }
.crypto-purchase-history-list article { display: grid; grid-template-columns: minmax(90px, .7fr) repeat(3, minmax(110px, 1fr)) auto; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 10px 0; font-size: 12px; }
.crypto-purchase-history-list article > div { display: grid; gap: 2px; }
.crypto-purchase-history-list small, .crypto-purchase-history-list time { color: var(--muted); font-size: 10px; }
.purchase-status-pending { color: #946200; background: rgba(236, 166, 27, .14); }
.purchase-status-completed { color: #08775a; background: rgba(19, 185, 129, .13); }
.purchase-status-rejected { color: #bc3448; background: rgba(225, 70, 85, .12); }
.account-crypto-portfolio { margin: 14px 0 0; padding: 18px 20px; }
.account-crypto-portfolio .panel-heading { align-items: center; margin-bottom: 12px; }
.account-crypto-portfolio .panel-heading h2 { font-size: 20px; }
.account-crypto-portfolio .eyebrow { margin-bottom: 4px; font-size: 10px; }
.account-crypto-portfolio .button { min-height: 36px; padding: 9px 13px; font-size: 11px; }
.account-portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 8px; }
.account-portfolio-card { display: grid; grid-template-columns: auto minmax(70px, .75fr) minmax(105px, 1fr) minmax(90px, .8fr); grid-template-rows: auto auto; align-items: center; min-width: 0; gap: 4px 9px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--surface-soft); }
.account-portfolio-card > .coin-icon { grid-column: 1; grid-row: 1 / span 2; width: 34px; height: 34px; }
.account-portfolio-card > div { display: grid; grid-column: 2; grid-row: 1; min-width: 0; }
.account-portfolio-card > div b, .account-portfolio-card > div small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-portfolio-card > div small, .account-portfolio-card > small { color: var(--muted); }
.account-portfolio-card > strong { grid-column: 3; grid-row: 1; margin: 0; overflow-wrap: anywhere; font-size: 12px; }
.account-portfolio-card > span { grid-column: 4; grid-row: 1; justify-self: end; color: var(--blue); font-size: 11px; font-weight: 700; text-align: right; }
.account-portfolio-card > small { grid-column: 2 / -1; grid-row: 2; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.account-portfolio-empty { display: flex; align-items: center; gap: 11px; border: 1px dashed var(--line); border-radius: 14px; padding: 12px 14px; }
.account-portfolio-empty > span { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; color: var(--blue); background: var(--light-blue); font-size: 20px; }
.account-portfolio-empty h3, .account-portfolio-empty p { margin: 0; }
.account-portfolio-empty h3 { font-size: 14px; }
.account-portfolio-empty p { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.decision-notification-dialog { width: min(92vw, 540px); border: 1px solid var(--line); border-radius: 23px; padding: 25px; color: var(--text); background: var(--surface); box-shadow: 0 30px 90px rgba(9, 18, 55, .3); }
.decision-notification-dialog::backdrop { background: rgba(7, 12, 31, .68); backdrop-filter: blur(4px); }
.decision-notification-heading { display: flex; align-items: center; gap: 13px; }
.decision-notification-heading h2 { margin: 3px 0 0; font-size: 25px; }
.decision-notification-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 15px; color: #fff; background: #13b981; font-size: 24px; font-weight: 850; }
.decision-notification-dialog.is-error .decision-notification-icon { background: #e14655; }
.decision-notification-message { margin: 18px 0; color: var(--muted); line-height: 1.65; }
.decision-notification-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 17px; }
.decision-notification-details div { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 13px; padding: 10px; background: var(--surface-soft); }
.decision-notification-details span { color: var(--muted); font-size: 10px; }
.decision-notification-details strong { overflow-wrap: anywhere; font-size: 12px; }
.decision-notification-support { display: block; margin: -3px 0 16px; color: var(--blue); font-size: 13px; font-weight: 700; }
@keyframes decision-spin { to { transform: rotate(360deg); } }

.p2p-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr); align-items: center; min-height: 245px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; padding: 26px 36px; background: linear-gradient(125deg, var(--surface) 55%, color-mix(in srgb, var(--cyan) 13%, var(--surface))); box-shadow: var(--shadow); }
.p2p-hero h1 { margin-bottom: 10px; font-size: clamp(42px, 5.1vw, 65px); line-height: .98; letter-spacing: -.05em; }
.p2p-hero > div:first-child > p:not(.eyebrow) { max-width: 660px; color: var(--muted); font-size: 14px; line-height: 1.58; }
.p2p-features { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.p2p-features span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; color: var(--blue); background: var(--surface-soft); font-size: 10px; font-weight: 750; }
.p2p-hero-mascot { display: grid; place-items: center; min-height: 190px; }
.p2p-hero-mascot img { width: min(450px, 100%); max-height: 210px; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(8, 89, 166, .16)); }
.p2p-market { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 21px; background: var(--surface); box-shadow: var(--shadow); }
.p2p-market-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px 14px; }
.p2p-market-top .eyebrow { margin-bottom: 3px; font-size: 9px; }
.p2p-market-top h2 { margin: 0; font-size: 21px; }
.p2p-location-panel { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(430px, 1.45fr) minmax(180px, .55fr); align-items: center; gap: 22px; border-top: 1px solid var(--line); padding: 18px 22px; background: color-mix(in srgb, var(--blue) 3%, var(--surface)); }
.p2p-location-panel h3 { margin: 3px 0 5px; font-size: 17px; }
.p2p-location-panel > div:first-child > p:last-child { max-width: 460px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.p2p-location-controls { display: grid; gap: 9px; min-width: 0; }
.p2p-region-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; border: 1px solid var(--line); border-radius: 12px; padding: 4px; background: var(--surface); }
.p2p-region-tabs button { min-width: 0; border: 0; border-radius: 8px; padding: 9px 7px; overflow: hidden; color: var(--muted); background: transparent; font-size: 10px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.p2p-region-tabs button:hover { color: var(--text); background: var(--surface-soft); }
.p2p-region-tabs button.active { color: var(--white); background: var(--blue); box-shadow: 0 6px 14px rgba(18, 103, 229, .2); }
.p2p-country-field { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.p2p-country-field select { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 10px; outline: none; padding: 0 11px; color: var(--text); background: var(--input-background); font-size: 12px; font-weight: 700; text-transform: none; }
.p2p-current-market { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 11px; background: var(--surface); }
.p2p-current-market > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--white); background: linear-gradient(145deg, var(--cyan), var(--blue)); font-size: 11px; font-weight: 900; }
.p2p-current-market small, .p2p-current-market b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p2p-current-market small { margin-bottom: 3px; color: var(--muted); font-size: 9px; }
.p2p-current-market b { font-size: 12px; }
.p2p-current-market strong { border-radius: 8px; padding: 6px 7px; color: var(--blue); background: var(--light-blue); font-size: 10px; }
.p2p-trade-controls { display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding: 12px 22px; }
.p2p-side-tabs { display: flex; gap: 5px; border: 1px solid var(--line); border-radius: 12px; padding: 4px; background: var(--surface-soft); }
.p2p-side-tabs button { min-width: 102px; border: 0; border-radius: 9px; padding: 9px 15px; color: var(--muted); background: transparent; font-weight: 800; }
.p2p-side-tabs button.active { color: var(--white); background: var(--blue); box-shadow: 0 7px 18px rgba(18, 103, 229, .22); }
.p2p-asset-tabs { display: flex; min-width: 0; overflow-x: auto; gap: 4px; padding: 3px 1px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.p2p-asset-tabs button { flex: 0 0 auto; border: 0; border-radius: 9px; padding: 9px 13px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 850; }
.p2p-asset-tabs button:hover { color: var(--text); background: var(--surface-soft); }
.p2p-asset-tabs button.active { color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, var(--surface)); }
.p2p-market-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.p2p-market-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(19, 185, 129, .12); }
.p2p-market-status b { color: var(--text); }
.p2p-filters { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(190px, .8fr) auto; align-items: end; gap: 12px; border-top: 1px solid var(--line); padding: 13px 22px; }
.p2p-filters label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.p2p-filters input, .p2p-filters select { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 11px; outline: none; padding: 0 12px; color: var(--text); background: var(--input-background); }
.p2p-amount-field { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 11px; padding-right: 12px; background: var(--input-background); }
.p2p-amount-field input { border: 0; background: transparent; }
.p2p-amount-field b { color: var(--muted); font-size: 11px; }
.p2p-refresh-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; border: 1px solid var(--line); border-radius: 11px; padding: 0 16px; color: var(--blue); background: var(--surface-soft); font-weight: 800; }
.p2p-refresh-button.loading span { animation: p2p-spin .7s linear infinite; }
@keyframes p2p-spin { to { transform: rotate(360deg); } }
.p2p-table { border-top: 1px solid var(--line); }
.p2p-table-head, .p2p-offer-row { display: grid; grid-template-columns: minmax(180px, 1.15fr) minmax(130px, .8fr) minmax(210px, 1.25fr) minmax(190px, 1.15fr) 135px; align-items: center; gap: 16px; }
.p2p-table-head { padding: 11px 22px; color: var(--muted); background: var(--surface-soft); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.p2p-live-viewport { position: relative; min-height: 86px; overflow: hidden; }
.p2p-offer-row { min-height: 82px; border-top: 1px solid var(--line); padding: 11px 22px; background: var(--surface); }
.p2p-offer-row:hover { background: color-mix(in srgb, var(--blue) 3%, var(--surface)); }
.p2p-live-entry { animation: p2p-row-drop .32s cubic-bezier(.2, .72, .22, 1) both; animation-delay: var(--p2p-entry-delay, 0ms); will-change: transform, opacity; }
@keyframes p2p-row-drop {
    from { opacity: .2; transform: translateY(-28px); }
    to { opacity: 1; transform: translateY(0); }
}
.p2p-advertiser { display: flex; align-items: center; min-width: 0; gap: 10px; }
.p2p-advertiser > span { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; color: var(--white); background: linear-gradient(145deg, var(--cyan), var(--blue)); font-weight: 900; }
.p2p-advertiser > div { min-width: 0; }
.p2p-advertiser b, .p2p-advertiser small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p2p-advertiser b { font-size: 13px; }
.p2p-advertiser small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.p2p-offer-price b, .p2p-offer-price small { display: block; }
.p2p-offer-price b { color: var(--text); font-size: 16px; }
.p2p-offer-price small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.p2p-offer-limits { display: grid; gap: 6px; }
.p2p-offer-limits span { color: var(--muted); font-size: 10px; }
.p2p-offer-limits b { margin-left: 4px; color: var(--text); }
.p2p-payment-methods { display: flex; flex-wrap: wrap; gap: 5px; }
.p2p-payment-methods span { border-left: 2px solid var(--blue); padding: 3px 6px; color: var(--muted); background: var(--surface-soft); font-size: 9px; font-weight: 750; }
.p2p-payment-methods small { width: 100%; margin-top: 2px; color: var(--muted); font-size: 9px; }
.p2p-deal-button { min-height: 40px; border: 0; border-radius: 10px; color: var(--white); font-size: 11px; font-weight: 850; }
.p2p-deal-button.buy { background: var(--green); }
.p2p-deal-button.sell { background: var(--red); }
.p2p-empty { padding: 45px 20px; color: var(--muted); text-align: center; }
.p2p-information { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.p2p-information article { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--surface); box-shadow: var(--shadow); }
.p2p-information article > span { color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.p2p-information h3 { margin: 27px 0 8px; font-size: 17px; }
.p2p-information p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.p2p-load-dialog { text-align: center; }
.p2p-load-dialog .dialog-close { position: absolute; top: 17px; right: 17px; }
.p2p-dialog-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 8px auto 18px; border-radius: 18px; color: var(--dark-blue); background: var(--yellow); font-size: 28px; font-weight: 900; }
.p2p-load-dialog h2 { margin-bottom: 10px; font-size: 28px; }
.p2p-load-dialog > p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.6; }

@media (max-width: 1180px) and (min-width: 901px) {
    .top-bar { gap: 13px; padding-inline: 18px; }
    .main-menu { gap: 14px; }
    .main-menu a { font-size: 13px; }
    .top-bar .brand-name { font-size: 10px; }
}

@media (max-width: 1160px) {
    .top-bar { gap: 12px; padding-inline: 20px; }
    .top-bar .brand-logo { margin-right: auto; }
    .top-bar .main-menu { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 18px; background: var(--dark-blue); box-shadow: 0 14px 24px rgba(4, 20, 43, .18); }
    .top-bar .main-menu.open { display: flex; }
    .top-bar .main-menu a { padding: 11px 12px; }
    .top-bar .header-settings .placeholder-control { display: none; }
    .top-bar .mobile-menu-settings { display: grid; grid-template-columns: minmax(0, 1fr) 58px 42px; align-items: center; gap: 8px; margin-top: 8px; border-top: 1px solid rgba(205, 227, 251, .16); padding: 14px 12px 2px; }
    .top-bar .mobile-menu-settings .currency-selector.header-control { width: 100%; max-width: none; }
    .top-bar .menu-button { display: block; }
    .futures-workspace { grid-template-columns: 1fr; }
    .futures-market-panel { position: static; }
    .futures-asset-list { max-height: 390px; }
    .crypto-workspace { grid-template-columns: 1fr; }
    .crypto-market-panel { position: static; }
    .crypto-asset-list { max-height: 390px; }
    .p2p-hero { grid-template-columns: 1fr 1fr; }
    .p2p-location-panel { grid-template-columns: minmax(240px, .7fr) minmax(420px, 1.3fr); }
    .p2p-current-market { grid-column: 1 / -1; }
    .p2p-trade-controls { align-items: stretch; flex-direction: column; gap: 9px; }
    .p2p-table-head, .p2p-offer-row { grid-template-columns: minmax(170px, 1.1fr) 120px minmax(190px, 1fr) 130px; }
    .p2p-table-head span:nth-child(4), .p2p-payment-methods { display: none; }
}

@media (max-width: 760px) {
    .access-card { grid-template-columns: 1fr; padding: 35px 28px 25px; text-align: center; }
    .access-copy { display: grid; justify-items: center; }
    .access-actions { justify-content: center; }
    .access-visual { order: -1; min-height: 210px; }
    .access-visual::before { width: 190px; height: 190px; }
    .access-visual img { width: 205px; max-height: 210px; }
    .access-lock { top: 15px; right: calc(50% - 115px); width: 46px; height: 46px; border-radius: 15px; font-size: 20px; }
    .futures-intro { align-items: start; flex-direction: column; }
    .futures-terminal { padding: 15px; }
    .direction-grid { grid-template-columns: 1fr; }
    .crypto-hero, .p2p-hero { grid-template-columns: 1fr; text-align: center; }
    .crypto-hero-copy, .p2p-hero > div:first-child { display: grid; justify-items: center; }
    .crypto-hero-mascot { order: -1; min-height: 245px; }
    .p2p-hero-mascot { min-height: 150px; }
    .crypto-hero-mascot img { width: 350px; max-height: 260px; }
    .p2p-hero-mascot img { width: 360px; max-height: 160px; }
    .p2p-information { grid-template-columns: 1fr; }
    .p2p-location-panel { grid-template-columns: 1fr; }
    .p2p-current-market { grid-column: auto; }
    .user-assets-grid { grid-template-columns: 1fr; }
    .p2p-table-head { display: none; }
    .p2p-offer-row { grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px; }
    .p2p-deal-button { grid-column: 1 / -1; }
    .p2p-offer-limits { text-align: right; }
}

@media (max-width: 620px) {
    .support-page-content { width: calc(100% - 24px); margin: 18px auto 44px; }
    .support-hero { grid-template-columns: 1fr; gap: 20px; border-radius: 22px; padding: 28px 20px; }
    .support-hero h1 { font-size: 37px; }
    .support-hero-copy > p:not(.eyebrow) { margin-bottom: 18px; font-size: 14px; }
    .support-telegram-button { width: 100%; justify-content: center; }
    .support-status-card { grid-template-columns: 52px 1fr; gap: 12px; border-radius: 17px; padding: 16px; }
    .support-status-icon { width: 52px; height: 52px; border-radius: 15px; font-size: 13px; }
    .support-status-card strong { font-size: 16px; }
    .support-status-card p { font-size: 11px; }
    .support-directions { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
    .support-directions article { flex: 0 0 min(82vw, 300px); padding: 21px; scroll-snap-align: start; }
    .support-process { grid-template-columns: 1fr; gap: 20px; border-radius: 19px; padding: 23px 19px; }
    .support-process h2 { font-size: 24px; }
    .restricted-account-card { width: 100%; border-radius: 19px; padding: 27px 18px 23px; }
    .restricted-account-card h1 { font-size: 29px; }
    .restricted-account-card > p:not(.eyebrow) { margin-bottom: 20px; font-size: 13px; line-height: 1.55; }
    .restricted-account-card .protected-actions { grid-template-columns: 1fr; }
    .restricted-account-card .text-link { grid-column: auto; }
    .restricted-account-icon { width: 58px; height: 58px; border-radius: 18px; font-size: 25px; }
    .account-layout { gap: 10px; }
    .registration-layout { display: grid; gap: 18px; }
    .account-promo {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 92px;
        align-items: center;
        min-height: 142px;
        border-radius: 18px;
        padding: 17px 15px 16px 18px;
    }
    .account-promo .desktop-promo-badge { display: none; }
    .account-promo .mobile-promo-badge { display: inline-flex; }
    .account-promo .promo-badge, .account-promo h2, .account-promo p { grid-column: 1; }
    .account-promo .promo-badge { padding: 5px 8px; font-size: 9px; }
    .account-promo h2 { margin: 9px 0 5px; font-size: 20px; line-height: 1.06; }
    .account-promo p { margin: 0; font-size: 11px; line-height: 1.4; }
    .account-promo img, .login-promo img {
        position: static;
        grid-column: 2;
        grid-row: 1 / span 3;
        justify-self: end;
        width: 96px;
        max-width: 96px;
    }
    .registration-page .registration-promo {
        grid-template-columns: minmax(0, 1fr) 108px;
        align-items: center;
        min-height: 184px;
    }
    .registration-page .registration-promo .promo-badge,
    .registration-page .registration-promo h2,
    .registration-page .registration-promo p { position: relative; z-index: 3; grid-column: 1; }
    .registration-page .registration-promo img {
        position: static;
        z-index: 1;
        grid-column: 2;
        grid-row: 1 / span 3;
        align-self: end;
        justify-self: end;
        width: 132px;
        max-width: 132px;
        transform: translate(13px, 17px);
    }
    .auth-social-icons { grid-template-columns: 1fr; gap: 8px; }
    .auth-social-button { min-height: 50px; border-radius: 12px; padding: 7px 48px; }
    .auth-provider-logo { left: 9px; width: 32px; height: 32px; }
    .auth-social-button.google .auth-provider-logo { left: 11px; width: 28px; height: 28px; }
    .verification-content { min-height: calc(100vh - 60px); padding: 20px 12px 42px; }
    .verification-card { border-radius: 20px; padding: 26px 16px 20px; }
    .verification-shield { width: 60px; height: 60px; margin-bottom: 16px; border-width: 6px; border-radius: 19px; font-size: 26px; }
    .verification-card h1 { font-size: 29px; }
    .verification-lead { font-size: 13px; line-height: 1.6; }
    .verification-steps { grid-template-columns: 1fr; gap: 9px; margin-top: 21px; }
    .verification-steps article { display: grid; grid-template-columns: 34px 1fr; gap: 0 11px; border-radius: 14px; padding: 14px; }
    .verification-steps h2 { align-self: center; margin: 0; font-size: 15px; }
    .verification-steps p { grid-column: 2; margin-top: 5px; }
    .verification-security-note { grid-template-columns: 30px 1fr; padding: 13px; }
    .verification-actions { grid-template-columns: 1fr; }
    .verification-actions .verification-telegram-button { order: -1; }
    .verification-provider-grid { grid-template-columns: 1fr; gap: 9px; margin-top: 21px; }
    .verification-provider-card { grid-template-columns: 50px 1fr; border-radius: 15px; padding: 14px; }
    .verification-provider-card > img { width: 50px; height: 50px; border-radius: 13px; }
    .verification-provider-guidance { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; margin-top: 17px; border-radius: 14px; padding: 13px; }
    .verification-provider-guidance > span { width: 32px; height: 32px; font-size: 16px; }
    .verification-provider-guidance h2 { font-size: 15px; }
    .verification-provider-guidance p { font-size: 11px; }
    .auth-provider-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
    .auth-provider-dialog-card { border-radius: 19px; padding: 25px 17px 17px; }
    .auth-provider-dialog-close { top: 9px; right: 9px; width: 34px; height: 34px; }
    .auth-provider-dialog-icon { width: 50px; height: 50px; margin-bottom: 12px; border-radius: 15px; font-size: 25px; }
    .auth-provider-error-state h2 { max-width: 245px; font-size: 23px; line-height: 1.12; text-wrap: balance; }
    .auth-provider-error-service { margin-top: 7px; font-size: 12px; }
    .auth-provider-dialog-message { max-width: 290px; margin-top: 12px; font-size: 13px; line-height: 1.5; text-wrap: pretty; hyphens: none; overflow-wrap: normal; }
    .auth-provider-dialog-note { margin-top: 13px; padding: 12px; font-size: 11px; line-height: 1.5; text-align: left; hyphens: none; overflow-wrap: normal; }
    .auth-provider-dialog-actions { grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
    .auth-provider-dialog-action, .auth-provider-support-action { min-height: 46px; }
    .verification-pro-benefits { gap: 6px; margin-top: 17px; }
    .verification-pro-benefits span { padding: 7px 9px; font-size: 9px; }
    .candlestick-wrap canvas, .crypto-chart-wrap canvas { touch-action: pan-y; user-select: none; }
    .desktop-chart-hint { display: none; }
    .top-bar, .account-header, .cabinet-header { position: sticky; top: 0; z-index: 100; }
    .top-bar { box-shadow: 0 8px 24px rgba(2, 14, 31, .26); }
    .top-bar > .header-settings { display: none; }
    .top-bar .mobile-menu-settings .currency-selector.header-control { width: 100%; max-width: none; height: 38px; font-size: 12px; }
    .account-header, .cabinet-header { flex-wrap: nowrap; height: auto; padding-block: 8px; }
    .account-page .account-header {
        width: 100%;
        min-height: 58px;
        padding: 6px 9px;
        color: var(--white);
        background: #071a33;
        box-shadow: 0 8px 24px rgba(2, 14, 31, .28);
        backdrop-filter: none;
    }
    .account-page .account-header .brand-logo { gap: 4px; min-width: 0; }
    .account-page .account-header .brand-icon { width: 36px; height: 39px; }
    .account-page .account-header .brand-name { font-size: 13px; }
    .account-page .account-header .currency-selector.header-control { width: 56px; max-width: 56px; height: 34px; }
    .account-page .account-header .theme-control { min-width: 34px; width: 34px; height: 34px; }
    .account-header-actions { display: flex; justify-content: flex-end; width: auto; gap: 5px; }
    .account-header .header-settings { gap: 4px; }
    .account-header .placeholder-control { display: none; }
    .account-header .back-link { position: relative; display: block; width: 36px; height: 36px; overflow: hidden; border: 1px solid rgba(255, 212, 71, .52); border-radius: 11px; padding: 0; color: var(--yellow); background: rgba(4, 30, 72, .36); box-shadow: 0 6px 18px rgba(0, 13, 35, .22); font-size: 0; line-height: 0; }
    .account-header .back-link::after { content: ""; position: absolute; top: 50%; left: 50%; display: block; width: 19px; height: 19px; transform: translate(-50%, -50%); background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 12H5m6-6-6 6 6 6' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 12H5m6-6-6 6 6 6' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
    .protected-page .account-header { min-height: 60px; gap: 6px; padding: 6px 8px; }
    .protected-page .account-header .brand-logo { gap: 4px; margin-right: auto; }
    .protected-page .account-header .brand-icon { width: 36px; height: 39px; }
    .protected-page .account-header .brand-name { display: inline; font-size: 12px; }
    .protected-page .account-header .currency-selector.header-control { width: 58px; max-width: 58px; height: 34px; font-size: 10px; }
    .cabinet-header { gap: 5px; padding-inline: 8px; }
    .cabinet-header .brand-logo { margin-right: 0; }
    .cabinet-header .brand-name { display: none; }
    .cabinet-user-chip { display: inline-flex; align-items: center; min-width: 0; max-width: 92px; min-height: 34px; gap: 6px; border: 1px solid rgba(255, 212, 71, .28); border-radius: 10px; padding: 4px 7px 4px 4px; color: var(--yellow); background: rgba(255, 212, 71, .07); text-decoration: none; }
    .cabinet-user-chip > span { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; border-radius: 8px; color: var(--dark-blue); background: var(--yellow); font-size: 10px; font-weight: 900; }
    .cabinet-user-chip b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
    .cabinet-header-actions { display: flex; align-items: center; width: auto; margin-left: auto; gap: 5px; }
    .cabinet-header-actions form { display: grid; place-items: center; }
    .cabinet-header .cabinet-header-actions .currency-selector.header-control { width: 58px; max-width: 58px; }
    .cabinet-header .theme-control { display: grid; place-items: center; width: 34px; min-width: 34px; height: 34px; min-height: 34px; overflow: hidden; padding: 0; }
    .cabinet-market-link, .cabinet-header .text-button { position: relative; display: block; width: 34px; min-width: 34px; height: 34px; min-height: 34px; overflow: hidden; padding: 0; font-size: 0; line-height: 0; }
    .cabinet-market-link::after, .cabinet-header .text-button::after { content: ""; position: absolute; top: 50%; left: 50%; display: block; width: 18px; height: 18px; transform: translate(-50%, -50%); background: currentColor; }
    .cabinet-market-link::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3 2.5 11h2.3v9.5h5.5v-6h3.4v6h5.5V11h2.3L12 3Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3 2.5 11h2.3v9.5h5.5v-6h3.4v6h5.5V11h2.3L12 3Z'/%3E%3C/svg%3E") center / contain no-repeat; }
    .cabinet-header .text-button::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 5h5v14h-5M12 8l4 4-4 4M16 12H4' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 5h5v14h-5M12 8l4 4-4 4M16 12H4' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
    .cabinet-content { width: calc(100% - 16px); margin: 12px auto 42px; }
    .profile-summary { gap: 10px; border-radius: 20px; padding: 16px; }
    .profile-avatar { width: 50px; height: 50px; border-radius: 15px; font-size: 21px; }
    .profile-identity h1 { font-size: 20px; }
    .profile-id { border-radius: 13px; padding: 9px 11px; }
    .cabinet-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: visible; padding: 0; }
    .overview-card { align-self: start; min-height: 108px; border-radius: 16px; padding: 15px; }
    .overview-card strong { font-size: 18px; }
    .verification-overview-card { min-height: 108px; }
    .verification-start-button { min-height: 30px; margin-top: 1px; padding-inline: 9px; font-size: 9px; }
    .balance-card { grid-column: 1 / -1; min-height: 128px; }
    .balance-card strong { font-size: 27px; }
    .cabinet-grid { gap: 10px; margin-top: 10px; }
    .cabinet-panel { border-radius: 17px; padding: 16px 13px; }
    .panel-heading { margin-bottom: 14px; }
    .panel-heading h2 { font-size: 20px; }
    .planned-label { display: none; }
    .setting-row { min-height: 55px; padding: 10px 12px; }
    .history-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: visible; padding: 0; }
    .history-card, .futures-history-card { min-width: 0; padding: 13px; }
    .trades-history-card, .crypto-purchases-history-card, .futures-history-card { grid-column: 1 / -1; }
    .trades-history-card .history-entry { grid-template-columns: minmax(0, 1fr) auto; }
    .trades-history-card .history-entry time { grid-column: 1 / -1; text-align: left; }
    .history-card .crypto-purchase-history-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px 10px; }
    .crypto-purchase-history-row > strong { justify-self: end; }
    .crypto-purchase-history-row time { grid-column: 1 / -1; text-align: left; }
    .history-card h3 { font-size: 13px; }
    .history-card > p { margin: 14px 0 2px; }
    .history-card .futures-history-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
    .futures-history-row .trade-outcome { justify-self: start; }
    .futures-history-row .trade-balance-change { justify-self: end; }
    .futures-history-row time { grid-column: 1 / -1; }
    .security-section { margin-top: 10px; }
    .security-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .security-action-card { display: flex; align-items: center; flex-direction: column; padding: 14px 10px; text-align: center; }
    .security-action-card h3 { font-size: 14px; line-height: 1.25; white-space: nowrap; }
    .security-action-card p { display: none; }
    .security-action-button { width: 100%; margin-top: 9px; padding-inline: 8px; font-size: 11px; }
    .protected-content { padding: 20px 12px 45px; }
    .access-card { border-radius: 22px; padding: 27px 20px 22px; }
    .access-copy h1 { font-size: 34px; }
    .access-copy > p:not(.eyebrow) { font-size: 14px; }
    .access-actions { align-items: stretch; flex-direction: column; width: 100%; }
    .plain-action { text-align: center; }
    .futures-content, .crypto-content, .p2p-content { width: calc(100% - 20px); margin-top: 16px; margin-bottom: 42px; }
    .futures-intro { gap: 8px; margin-bottom: 15px; }
    .futures-intro h1 { margin-bottom: 5px; font-size: 32px; }
    .futures-intro > div > p:last-child { display: none; }
    .terminal-status { padding: 7px 10px; }
    .futures-panel-heading { align-items: stretch; flex-direction: column; }
    .market-search { width: 100%; }
    .futures-market-labels, .futures-asset-row { grid-template-columns: minmax(118px, 1.2fr) minmax(75px, .9fr) 58px; gap: 5px; }
    .futures-asset-row { padding-inline: 11px; }
    .futures-asset-name .coin-icon { width: 30px; height: 30px; }
    .futures-asset-list { max-height: 215px; }
    .futures-terminal { padding: 13px; }
    .selected-future-asset { align-items: flex-start; flex-wrap: wrap; }
    .selected-future-price { width: 100%; margin-left: 60px; text-align: left; }
    .future-canvas-wrap { min-height: 390px; }
    .futures-chart-legend { flex-wrap: wrap; gap: 8px 13px; padding: 9px 12px; }
    .futures-chart-legend small { width: 100%; margin-left: 0; }
    .future-order-form { gap: 12px; margin-top: 14px; }
    .direction-grid { grid-template-columns: repeat(3, 1fr); }
    .duration-grid { grid-template-columns: repeat(4, 1fr); }
    .choice-grid { gap: 5px; }
    .choice-grid span { min-height: 40px; padding: 5px 3px; font-size: 10px; }
    .order-summary { grid-template-columns: repeat(2, 1fr); }
    .order-summary div:nth-child(3n) { border-right: 1px solid var(--line); }
    .order-summary div:nth-child(2n) { border-right: 0; }
    .order-summary div:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
    .order-summary div:nth-last-child(-n+2) { border-bottom: 0; }
    .crypto-hero, .p2p-hero { grid-template-columns: minmax(0, 1fr) 122px; min-height: 0; border-radius: 20px; padding: 18px; text-align: left; }
    .crypto-hero-copy, .p2p-hero > div:first-child { justify-items: start; }
    .crypto-hero h1 { margin-bottom: 8px; font-size: 35px; }
    .p2p-hero h1 { margin-bottom: 7px; font-size: 34px; }
    .crypto-hero-copy > p:not(.eyebrow), .p2p-hero > div:first-child > p:not(.eyebrow) { display: none; }
    .crypto-hero-actions { gap: 6px; margin-top: 12px; }
    .crypto-hero-actions .button { min-height: 36px; padding-inline: 10px; font-size: 11px; }
    .crypto-hero-mascot { order: initial; min-height: 110px; }
    .crypto-hero-mascot img { width: 128px; max-height: 120px; }
    .p2p-hero-mascot { min-height: 90px; }
    .p2p-hero-mascot img { width: 132px; max-height: 100px; }
    .p2p-features { display: none; }
    .crypto-chart-panel { padding: 12px; }
    .crypto-chart-heading { align-items: flex-start; flex-direction: column; }
    .crypto-chart-heading-actions { align-items: stretch; flex-direction: column; width: 100%; gap: 10px; }
    .crypto-selected-price { justify-items: start; }
    .crypto-chart-wrap { min-height: 430px; border-radius: 14px 14px 0 0; }
    .crypto-chart-wrap canvas { min-height: 430px; }
    .crypto-chart-footer { flex-wrap: wrap; }
    .crypto-chart-footer small { width: 100%; margin-left: 0; }
    .crypto-panel-heading { align-items: stretch; flex-direction: column; }
    .crypto-panel-heading .market-search { width: 100%; }
    .crypto-market-labels, .crypto-asset-row { grid-template-columns: minmax(118px, 1.2fr) minmax(75px, .9fr) 58px; gap: 5px; }
    .crypto-asset-row { padding-inline: 11px; }
    .crypto-asset-list { max-height: none; overflow: visible; }
    .crypto-asset-list-actions { display: flex; }
    .selected-action-coin { align-items: flex-start; flex-wrap: wrap; }
    .selected-action-coin > strong { width: 100%; margin-left: 56px; }
    .user-assets-section { margin-top: 30px; }
    .user-assets-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; overflow: visible; padding: 0; }
    .portfolio-empty-card, .selected-asset-actions { width: 100%; padding: 18px; }
    .selected-asset-actions { order: -1; }
    .p2p-market-top { align-items: flex-start; flex-direction: column; }
    .p2p-market-status { margin-top: 3px; }
    .p2p-market-top { padding: 17px 16px 12px; }
    .p2p-location-panel { gap: 12px; padding: 14px; }
    .p2p-location-panel > div:first-child > p:last-child { display: none; }
    .p2p-region-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .p2p-country-field { grid-template-columns: 1fr; gap: 6px; }
    .p2p-side-tabs { width: 100%; }
    .p2p-side-tabs button { flex: 1; min-width: 0; }
    .p2p-asset-tabs { width: 100%; }
    .p2p-filters { grid-template-columns: 1fr 1fr; padding: 12px; }
    .p2p-refresh-button { grid-column: 1 / -1; min-height: 38px; }
    .p2p-offer-row { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: 0; gap: 10px; padding: 13px; }
    .p2p-advertiser, .p2p-payment-methods, .p2p-deal-button { grid-column: 1 / -1; }
    .p2p-offer-price { min-width: 0; }
    .p2p-offer-price b { overflow-wrap: anywhere; font-size: 14px; }
    .p2p-offer-price small { line-height: 1.35; }
    .p2p-offer-limits { gap: 5px; text-align: right; }
    .p2p-offer-limits span { display: grid; gap: 2px; }
    .p2p-offer-limits b { margin-left: 0; overflow-wrap: anywhere; }
    .p2p-deal-button { min-height: 38px; }
    .p2p-payment-methods { display: flex; }
    .p2p-information { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
    .p2p-information article { flex: 0 0 min(82vw, 300px); padding: 18px; scroll-snap-align: start; }
    .compact-footer { min-height: 64px; gap: 10px 16px; padding: 13px; }
    .history-card .futures-history-row { grid-template-columns: 1fr 1fr; }
    .futures-history-row time { grid-column: 1 / -1; }
    .currency-confirm-dialog { border-radius: 20px; padding: 24px 18px 19px; }
    .currency-confirm-dialog h2 { font-size: 25px; }
    .currency-confirm-actions { grid-template-columns: 1fr; }
    .currency-confirm-actions [data-currency-confirm] { order: -1; }
    .deposit-requisites-card { grid-template-columns: 1fr; }
    .deposit-requisites-card small { grid-column: auto; }
    .payment-confirm-summary, .payment-confirm-actions { grid-template-columns: 1fr; }
    .payment-control-card { padding: 14px; }
    .payment-control-steps { grid-template-columns: 1fr; }
    .payment-control-steps span { grid-template-columns: 28px 1fr; align-items: center; min-height: 0; }
    .portfolio-assets-list { width: 100%; }
    .portfolio-asset-card { grid-template-columns: auto 1fr; }
    .portfolio-asset-card > .portfolio-asset-quantity,
    .portfolio-asset-card > .portfolio-asset-value { grid-column: 1 / -1; }
    .portfolio-asset-card > small { grid-column: 1 / -1; }
    .order-processing-summary, .decision-notification-details { grid-template-columns: 1fr; }
    .asset-order-dialog { width: calc(100% - 24px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); border-radius: 18px; padding: 20px 15px; }
    .crypto-purchase-history { padding: 15px; }
    .crypto-purchase-history-heading { align-items: flex-start; flex-direction: column; }
    .crypto-purchase-history-list article { grid-template-columns: 1fr 1fr; }
    .crypto-purchase-history-list article time { grid-column: 1 / -1; }
    .account-crypto-portfolio { padding: 15px 13px; }
    .account-crypto-portfolio .panel-heading { align-items: center; flex-direction: row; gap: 9px; }
    .account-crypto-portfolio .panel-heading h2 { font-size: 17px; }
    .account-crypto-portfolio .button { flex: 0 0 auto; padding-inline: 10px; }
    .account-portfolio-grid { grid-template-columns: 1fr; }
    .account-portfolio-card { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto auto; }
    .account-portfolio-card > .coin-icon { grid-column: 1; grid-row: 1 / span 3; }
    .account-portfolio-card > div { grid-column: 2; grid-row: 1; }
    .account-portfolio-card > strong { grid-column: 3; grid-row: 1; text-align: right; }
    .account-portfolio-card > span { grid-column: 2 / -1; grid-row: 2; justify-self: start; text-align: left; }
    .account-portfolio-card > small { grid-column: 2 / -1; grid-row: 3; }
    .decision-notification-dialog { border-radius: 19px; padding: 20px 16px; }
    .decision-notification-heading h2 { font-size: 22px; }
}

@media (max-width: 370px) {
    .protected-page .account-header .brand-icon { width: 32px; height: 35px; }
    .protected-page .account-header .brand-name { font-size: 10px; }
    .protected-page .account-header .currency-selector.header-control { width: 50px; max-width: 50px; }
    .cabinet-header .brand-icon { width: 31px; height: 34px; }
    .cabinet-user-chip { max-width: 68px; padding-right: 5px; }
    .cabinet-header .cabinet-header-actions .currency-selector.header-control { width: 50px; max-width: 50px; }
    .cabinet-header .theme-control,
    .cabinet-market-link,
    .cabinet-header .text-button { width: 31px; min-width: 31px; height: 31px; min-height: 31px; }
    .history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trades-history-card, .crypto-purchases-history-card, .futures-history-card { grid-column: 1 / -1; }
}

/* Точное позиционирование якоря: шапка не перекрывает название, логотип и курс. */
.trading-panel { scroll-margin-top: 96px; }

/* Единые аккуратные стрелки всех выпадающих списков. */
.currency-selector.header-control,
.setting-currency-control,
.chart-coin-select select,
.account-form select,
.p2p-country-field select,
.p2p-filters select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1.5 1.5 4.5 4 4.5-4' fill='none' stroke='%23708099' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
}
.currency-selector.header-control {
    padding-left: 6px !important;
    padding-right: 20px !important;
    background-position: right 6px center !important;
    background-size: 9px 6px;
}
.mobile-menu-settings .currency-selector.header-control {
    padding-left: 12px !important;
    padding-right: 34px !important;
    background-position: right 12px center !important;
    background-size: 12px 8px;
}
.setting-currency-control,
.chart-coin-select select,
.account-form select,
.p2p-country-field select,
.p2p-filters select { padding-right: 38px; }
.operation-form select { padding-right: 42px; background-position: right 14px center; }
.operation-amount-field .operation-currency-select { padding-right: 34px; background-position: right 11px center; }

/* Нативный календарь остаётся кликабельным, но его кнопка всегда внутри поля. */
.account-form input[type="date"] {
    display: block;
    min-width: 0;
    max-width: 100%;
    padding-right: 10px;
}
.account-form input[type="date"]::-webkit-calendar-picker-indicator {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    opacity: .72;
}
.account-form input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background-color: rgba(18, 103, 229, .10);
    opacity: 1;
}

/* Итог операции: цветом выделяется короткий заголовок, а не длинная строка. */
.operation-result,
.operation-result.success,
.operation-result.error {
    justify-self: start;
    width: fit-content;
    max-width: 100%;
    overflow: visible;
    border: 0;
    padding: 0;
    background: transparent;
}
.operation-result strong {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.25;
}
.operation-result.success strong { background: rgba(19, 185, 129, .10); }
.operation-result.error strong { background: rgba(225, 70, 85, .09); }
.operation-result p { margin-top: 8px; color: var(--muted); }
.payment-confirm-dialog > .operation-result { width: fit-content; }
html[data-theme="dark"] .operation-result.success { color: #85e8c1; }
html[data-theme="dark"] .operation-result.error { color: #ffb4bf; }

.asset-order-status > div { flex: 1 1 auto; width: 0; }
.asset-order-status.success { border-color: rgba(19, 185, 129, .3); color: #08775a; background: rgba(19, 185, 129, .09); }
.asset-order-status.success .order-status-icon { background: var(--green); }
html[data-theme="dark"] .asset-order-status.success { color: #85e8c1; background: rgba(19, 185, 129, .10); }
.order-refresh-button { display: block; width: 100%; margin-top: 13px; }
.crypto-purchase-history-list article > strong { justify-self: start; width: max-content; max-width: 100%; border-radius: 999px; padding: 5px 8px; font-size: 10px; }
.crypto-operation-sell > div small { color: var(--red); }

/* На компьютере настройки занимают широкую прямоугольную строку, история ниже. */
@media (min-width: 901px) {
    .cabinet-grid { grid-template-columns: minmax(0, 1fr); }
    .account-settings-panel .settings-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-settings-panel .settings-list .setting-row:last-child { grid-column: 1 / -1; }
}

/* v9: подтверждение криптоопераций и точная остановка у терминала. */
#cryptoMarket { scroll-margin-top: 94px; }
.asset-confirmation-dialog { width: min(520px, calc(100% - 24px)); }
.asset-confirmation-dialog > p { color: var(--muted); line-height: 1.55; }
.asset-confirmation-summary { margin: 18px 0 12px; }
.asset-confirmation-note { margin: 0 0 18px; font-size: 12px; }
.asset-confirmation-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 9px; }
.asset-confirmation-actions .button { width: 100%; }
.asset-confirmation-actions .button.secondary {
    border: 1px solid var(--line);
    color: var(--text);
    background: var(--surface-soft);
}

@media (max-width: 620px) {
    #cryptoMarket { scroll-margin-top: 78px; }
    .crypto-asset-list.is-mobile-scroll {
        max-height: min(58dvh, 480px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: auto;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    .crypto-asset-list.is-mobile-scroll .crypto-asset-row:last-child {
        border-bottom: 0;
    }
    .asset-confirmation-actions { grid-template-columns: 1fr; }
    .asset-confirmation-actions .button.primary { order: -1; }
}

/* v17: партнёры, спокойный фон на широких экранах и стабильный мобильный масштаб. */
.partners-section {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    border: 1px solid rgba(16, 107, 232, .18);
    border-radius: 24px;
    padding: 31px;
    background:
        radial-gradient(circle at 92% 0, rgba(22, 183, 232, .14), transparent 29%),
        linear-gradient(145deg, color-mix(in srgb, var(--surface) 94%, #ddecff), var(--surface));
    box-shadow: var(--shadow);
}
.partners-section::after {
    content: "";
    position: absolute;
    right: -72px;
    bottom: -94px;
    width: 220px;
    height: 220px;
    border: 34px solid rgba(255, 212, 71, .09);
    border-radius: 50%;
    pointer-events: none;
}
.partners-heading { position: relative; z-index: 1; max-width: 680px; margin-bottom: 23px; }
.partners-heading h3 { margin: 6px 0 8px; font-size: 29px; letter-spacing: -.03em; }
.partners-heading > .partners-description { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.partners-grid { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }
.partner-card {
    display: grid;
    flex: 0 1 calc((100% - 33px) / 4);
    align-content: start;
    min-width: 0;
    min-height: 154px;
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 15px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: 0 10px 24px rgba(8, 45, 86, .07);
    backdrop-filter: blur(10px);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.partner-card:hover { transform: translateY(-3px); border-color: rgba(16, 107, 232, .45); box-shadow: 0 15px 30px rgba(8, 45, 86, .11); }
.partner-logo { display: grid; place-items: center; width: 100%; height: 66px; margin-bottom: 12px; border-radius: 12px; padding: 9px 12px; background: rgba(255, 255, 255, .92); }
.partner-logo img { display: block; max-width: 100%; max-height: 48px; object-fit: contain; }
.partner-card > span { color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.partner-card > strong { margin-top: 4px; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }

.desktop-coin-background { display: none; }
@media (min-width: 1320px) {
    body > main,
    body > footer { position: relative; z-index: 1; }
    .desktop-coin-background {
        position: fixed;
        inset: 0;
        z-index: 0;
        display: block;
        overflow: hidden;
        pointer-events: none;
    }
    .desktop-coin {
        position: absolute;
        width: 72px;
        height: 72px;
        object-fit: contain;
        opacity: .042;
        filter: saturate(.60) drop-shadow(0 12px 20px rgba(8, 68, 126, .14));
    }
    .coin-bitcoin { top: 14%; left: .7%; width: 84px; height: 84px; transform: rotate(-28deg); }
    .coin-ethereum { top: 29%; right: .9%; width: 74px; height: 74px; transform: rotate(31deg); }
    .coin-tether { top: 52%; left: 1.8%; width: 58px; height: 58px; transform: rotate(22deg); }
    .coin-solana { top: 68%; right: 1.4%; width: 79px; height: 79px; transform: rotate(-34deg); }
    .coin-bnb { bottom: 4%; left: 5%; width: 54px; height: 54px; transform: rotate(38deg); }
    .coin-dogecoin { right: 5.5%; bottom: 3%; width: 59px; height: 59px; transform: rotate(-24deg); }
    html[data-theme="dark"] .desktop-coin { opacity: .052; filter: saturate(.56) brightness(1.04) drop-shadow(0 12px 20px rgba(0, 0, 0, .18)); }
}

@media (max-width: 900px) {
    .partner-card { flex-basis: calc((100% - 11px) / 2); }
}

@media (max-width: 620px) {
    .partners-section { border-radius: 19px; padding: 21px 15px 16px; }
    .partners-heading { margin-bottom: 16px; }
    .partners-heading h3 { font-size: 24px; }
    .partners-heading > .partners-description { font-size: 11px; line-height: 1.5; }
    .partners-grid { gap: 8px; }
    .partner-card { flex-basis: calc((100% - 8px) / 2); min-height: 130px; border-radius: 14px; padding: 10px; }
    .partner-logo { height: 54px; margin-bottom: 9px; border-radius: 10px; padding: 8px; }
    .partner-logo img { max-height: 38px; }
    .partner-card > span { font-size: 8px; }
    .partner-card > strong { font-size: 11px; }

    .login-card,
    .registration-card { display: flex; flex-direction: column; }
    .login-card > .eyebrow { order: 1; }
    .login-card > h1 { order: 2; }
    .login-card > .form-description { order: 3; }
    .login-card > .form-errors { order: 4; }
    .login-card > .account-form { order: 5; }
    .login-card > .auth-alternative { order: 6; }
    .login-card > .form-footer { order: 7; }
    .registration-card > .registration-progress-heading { order: 1; }
    .registration-card > .registration-progress { order: 2; }
    .registration-card > h1 { order: 3; }
    .registration-card > .form-description { order: 4; }
    .registration-card > .form-errors { order: 5; }
    .registration-card > .registration-step-form { order: 6; }
    .registration-card > .auth-alternative { order: 7; }
    .registration-card > .form-footer { order: 8; }
    .login-card > .form-description,
    .registration-card > .form-description { margin-bottom: 12px; }
    .login-card > .auth-alternative,
    .registration-card > .auth-alternative { width: 100%; margin: 20px 0 0; }
    .auth-social-icons { gap: 7px; margin-top: 11px; }
    .auth-social-button { min-height: 47px; border-radius: 12px; padding-block: 6px; }

    .cabinet-overview { align-items: start; }
    .verification-overview-card,
    .registration-date-card {
        align-self: stretch;
        height: 120px;
        min-height: 120px;
        max-height: 120px;
        overflow: hidden;
    }
    .verification-overview-card { grid-template-rows: auto minmax(0, 1fr) auto; }
    .verification-overview-card .pending-status {
        align-self: center;
        font-size: 15px !important;
        line-height: 1.12;
        overflow-wrap: normal;
    }
    .registration-date-card { grid-template-rows: auto minmax(0, 1fr); }
    .registration-date-card strong { align-self: center; font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap; }
    .registration-date-card small { display: none; }
}

html[data-theme="dark"] .auth-social-button { background: rgba(18, 103, 229, .68); backdrop-filter: blur(14px) saturate(118%); }
html[data-theme="dark"] .auth-social-button.tbank { border-color: rgba(255, 221, 45, .74); background: rgba(255, 221, 45, .67); }
html[data-theme="dark"] .auth-social-button.ozon { border-color: rgba(0, 91, 255, .72); background: linear-gradient(135deg, rgba(0, 91, 255, .64), rgba(8, 117, 255, .64)); }
html[data-theme="dark"] .auth-social-button.telegram { border-color: rgba(42, 171, 238, .72); background: linear-gradient(135deg, rgba(42, 171, 238, .64), rgba(22, 139, 208, .64)); }
html[data-theme="dark"] .auth-social-button.google { border-color: rgba(116, 119, 117, .58); background: rgba(255, 255, 255, .70); }
html[data-theme="dark"] .auth-social-button.icbc { border-color: rgba(193, 26, 39, .62); background: linear-gradient(135deg, rgba(193, 26, 39, .72), rgba(139, 14, 25, .72)); }
html[data-theme="dark"] .auth-social-button.goldman { border-color: rgba(89, 156, 204, .62); background: rgba(200, 231, 249, .76); }

/* v19: точная компоновка завершённой и PRO-верификации. */
.verification-complete-card { align-content: center; grid-template-rows: auto auto; gap: 10px; }
.verification-complete-card strong { align-self: center; }
.verification-standard-status { font-size: clamp(17px, 2vw, 23px) !important; line-height: 1.12; }

@media (max-width: 620px) {
    .verification-pro-shield {
        box-sizing: border-box;
        overflow: hidden;
        padding: 0;
        font-size: 12px;
        letter-spacing: 0;
        line-height: 1;
        white-space: nowrap;
    }
    .verification-provider-grid.single-provider { grid-template-columns: minmax(0, 1fr); }
    .verification-complete-card { grid-template-rows: auto minmax(0, 1fr); }
    .verification-standard-status { font-size: 13px !important; line-height: 1.12; }
}
