@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/static/fonts/roboto-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/static/fonts/roboto-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ink: #1b1e23;
    --muted: #636b75;
    --line: #d5d9df;
    --canvas: #f0f2f4;
    --panel: #ffffff;
    --sidebar: #17191d;
    --green: #f2c811;
    --green-bright: #ffe46a;
    --green-soft: #fff7d1;
    --accent-ink: #5f5100;
    --violet: #5b5fc7;
    --violet-soft: #ededfa;
    --amber: #8a5a00;
    --amber-soft: #fff2d6;
    --danger: #a4262c;
    --danger-soft: #fdf0f0;
    font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--canvas);
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; border-radius: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: square; stroke-linejoin: miter; }

.app-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 27px 0 0; color: #b8bdc5; background: var(--sidebar); border-right: 1px solid #2b2f35; overflow: hidden; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; font-size: 24px; font-weight: 700; letter-spacing: -.7px; }
.sidebar .brand { margin: 0 25px 46px; }
.brand-mark { position: relative; display: inline-flex; align-items: flex-end; gap: 3px; width: 25px; height: 26px; }
.brand-mark span { display: block; width: 11px; height: 26px; background: #f2c811; }
.brand-mark span:last-child { height: 18px; background: #d5e9f8; }
.workspace-label { margin: 0 25px 13px; color: #6f7781; font-size: 9px; font-weight: 700; letter-spacing: 1.35px; text-transform: uppercase; }
.main-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 13px; min-height: 46px; padding: 0 25px; border-left: 4px solid transparent; font-size: 13px; font-weight: 500; transition: color .12s, background .12s; }
.nav-item svg { width: 18px; height: 18px; color: #7e8791; }
.nav-item:hover { color: #fff; background: #24282e; }
.nav-item.active { color: #1b1e23; border-left-color: #fff0a6; background: #f2c811; }
.nav-item.active svg { color: #1b1e23; }
.nav-item.active::after { content: ""; width: 6px; height: 6px; margin-left: auto; background: #d8ecfb; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid #30343a; }
.status-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; background: #28a745; }
.profile { display: flex; align-items: center; gap: 10px; padding: 18px 20px; }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px; color: #fff; background: #f2c811; font-size: 11px; font-weight: 700; }
.profile-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.profile-copy strong { overflow: hidden; color: #edf0f3; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy span { overflow: hidden; max-width: 116px; color: #7f8892; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.profile form { margin-left: auto; }
.icon-button { display: grid; place-items: center; width: 28px; height: 32px; padding: 0; border: 0; color: #7f8892; background: transparent; cursor: pointer; }
.icon-button:hover { color: #fff; background: #30343a; }
.icon-button svg { width: 16px; }

.main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 34px; border-bottom: 1px solid var(--line); color: #7a828c; background: #fff; font-size: 10px; }
.topbar-kicker { color: #3e454e; font-weight: 500; }
.topbar-divider { margin: 0 9px; color: #b0b6bd; }
.page-content { width: min(100%, 1400px); margin: 0 auto; padding: 36px 34px 54px; }
.page-heading { margin-bottom: 28px; padding-left: 15px; border-left: 4px solid var(--green); }
.heading-with-action { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-left: 0; border-left: 0; }
.heading-with-action > div { padding-left: 15px; border-left: 4px solid var(--green); }
.eyebrow { margin-bottom: 9px; color: var(--accent-ink); font-size: 9px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 9px; font-size: clamp(26px, 2.5vw, 33px); font-weight: 600; letter-spacing: -.8px; line-height: 1.2; }
.page-heading p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 41px; padding: 0 18px; border: 1px solid transparent; color: #1b1e23; background: #e2e5e9; font-size: 11px; font-weight: 600; cursor: pointer; transition: background .12s; }
.button svg { width: 16px; height: 16px; }
.button-primary { color: #fff; background: var(--green); border-color: var(--accent-ink); }
.button-primary:hover { background: #ddb500; border-color: #5f5100; }
.button:disabled { opacity: .65; cursor: wait; }
.button-full { width: 100%; }

.metric-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.metric-card { position: relative; min-width: 0; min-height: 175px; padding: 23px; border: 1px solid var(--line); background: var(--panel); }
.metric-card:nth-child(2) { border-color: #e3d47f; background: #fff9df; }
.metric-featured { color: #fff; border-color: #f2c811; background: #f2c811; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #606a75; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .4px; }
.metric-featured .metric-top { color: #d8edfc; }
.metric-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: rgba(0,0,0,.13); }
.metric-icon.soft { color: #006ebd; background: #fff; }
.metric-icon svg { width: 16px; height: 16px; }
.metric-value { margin: 24px 0 14px; font-size: clamp(25px, 2.6vw, 35px); font-weight: 500; letter-spacing: -1px; white-space: nowrap; }
.metric-value small { margin-left: 4px; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.metric-featured .metric-value small { color: #d8edfc; }
.metric-caption { color: #737d88; font-size: 9px; text-transform: uppercase; letter-spacing: .35px; }
.metric-link { display: flex; justify-content: space-between; color: #fff; font-size: 10px; }
.metric-link:hover { text-decoration: underline; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .85fr); gap: 12px; }
.panel { border: 1px solid var(--line); background: var(--panel); }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.panel-header h2 { margin-bottom: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: uppercase; }
.panel-header p { margin-bottom: 0; color: #7a838d; font-size: 10px; line-height: 1.5; }
.workspace-panel { padding: 24px 24px 12px; }
.workspace-links { margin-top: 16px; }
.workspace-link { display: flex; align-items: center; gap: 14px; margin: 0 -24px; padding: 17px 24px; border-top: 1px solid #e3e6e9; border-left: 3px solid transparent; transition: background .12s, border-color .12s; }
.workspace-link:hover { border-left-color: var(--accent-ink); background: #f2f7fb; }
.workspace-icon { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; }
.workspace-icon svg { width: 18px; height: 18px; }
.workspace-icon.green { color: #fff; background: var(--green); }
.workspace-icon.violet { color: #fff; background: var(--violet); }
.workspace-icon.amber { color: #fff; background: #9a6700; }
.workspace-link > span:nth-child(2) { display: flex; flex-direction: column; gap: 5px; }
.workspace-link strong { font-size: 12px; font-weight: 600; }
.workspace-link small { color: #77818b; font-size: 10px; }
.round-arrow { display: grid; place-items: center; width: 28px; height: 28px; margin-left: auto; border: 1px solid #cfd4da; color: #59636e; font-size: 13px; }
.workspace-link:hover .round-arrow { color: #fff; border-color: var(--accent-ink); background: var(--green); }
.readiness-panel { padding: 24px; }
.readiness-item { display: flex; align-items: center; gap: 12px; padding: 17px 0; border-bottom: 1px solid #e3e6e9; }
.readiness-item > div { display: flex; flex-direction: column; gap: 5px; }
.readiness-item strong { font-size: 11px; font-weight: 500; }
.readiness-item small { color: #7b858f; font-size: 9px; }
.check-circle, .number-circle { display: grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; color: #fff; background: var(--green); font-size: 11px; font-weight: 700; }
.number-circle { color: #5b6570; background: #e5e8eb; }
.text-link { display: flex; justify-content: space-between; margin-top: 20px; color: var(--accent-ink); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.text-link:hover { text-decoration: underline; }

.settings-layout { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(380px, 1.2fr); align-items: start; gap: 12px; }
.form-panel, .requisites-panel { padding: 25px; }
.form-panel { border-top: 3px solid var(--green); }
.requisites-panel { border-top: 3px solid #343a43; }
.panel-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--green); }
.panel-icon svg { width: 16px; height: 16px; }
.violet-icon { background: var(--violet); }
.stack-form { display: flex; flex-direction: column; gap: 18px; }
.form-panel .stack-form { margin-top: 25px; }
.field { display: flex; flex-direction: column; gap: 7px; color: #3e4650; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .25px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #cbd1d8; outline: 0; color: var(--ink); background: #fff; font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; transition: border .12s, outline .12s; }
.field input, .field select { height: 42px; padding: 0 12px; }
.field textarea { min-height: 96px; padding: 12px; line-height: 1.55; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #969ea7; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent-ink); outline: 1px solid var(--green); }
.field small { color: #7e8791; font-size: 9px; font-weight: 400; line-height: 1.5; text-transform: none; letter-spacing: 0; }
.count-badge { display: grid; place-items: center; min-width: 29px; height: 29px; padding: 0 8px; color: #fff; background: #343a43; font-size: 11px; font-weight: 600; }
.alert { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; padding: 12px 13px; border: 1px solid; border-left-width: 4px; font-size: 10px; line-height: 1.55; }
.alert svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; }
.alert-error { color: var(--danger); border-color: #e5b8ba; background: var(--danger-soft); }
.alert-success { color: #176b35; border-color: #aad4b7; background: #edf8f0; }
.requisite-list { display: flex; flex-direction: column; gap: 10px; margin-top: 21px; }
.requisite-item { padding: 17px; border: 1px solid #dce0e4; border-left: 3px solid var(--green); background: #fafbfb; }
.requisite-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.requisite-heading > div { display: flex; align-items: center; gap: 9px; }
.requisite-heading h3 { margin: 0; font-size: 12px; font-weight: 600; }
.currency-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 22px; padding: 0 6px; color: #fff; background: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .3px; }
.soft-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; color: #37586e; background: #e3edf4; font-size: 8px; font-weight: 600; text-transform: uppercase; }
.requisite-bank { margin: 12px 0 7px; color: #4f5964; font-size: 11px; font-weight: 500; }
.requisite-details { color: #5d6771; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.requisite-date { margin-top: 13px; padding-top: 10px; border-top: 1px solid #dfe3e6; color: #858e97; font-size: 9px; }
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 48px 25px 39px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 17px; color: #fff; background: #65717d; }
.empty-icon svg { width: 25px; height: 25px; }
.empty-state h3 { margin-bottom: 8px; font-size: 12px; text-transform: uppercase; }
.empty-state p { max-width: 290px; margin: 0; color: #7a848e; font-size: 10px; line-height: 1.6; }

.payout-layout { display: grid; grid-template-columns: minmax(400px, 1.25fr) minmax(270px, .75fr); align-items: start; gap: 12px; }
.payout-panel, .info-panel { padding: 27px; }
.payout-panel { border-top: 3px solid var(--violet); }
.info-panel { border-top: 3px solid #343a43; }
.current-limit { display: flex; flex-direction: column; align-items: flex-start; margin: 24px 0 25px; padding: 24px; color: #fff; background: #343a43; border-left: 5px solid var(--violet); }
.current-limit > span:first-child { color: #c6ccd3; font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }
.current-limit > div { margin: 13px 0 15px; font-size: clamp(28px, 3vw, 38px); font-weight: 500; letter-spacing: -1px; }
.current-limit small { color: #d5dae0; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.limit-status { display: flex; align-items: center; gap: 7px; color: #d6dee5; font-size: 9px; text-transform: uppercase; }
.limit-status .status-dot { width: 6px; height: 6px; background: #69d38b; }
.limit-form { max-width: 420px; }
.limit-form .button { align-self: flex-start; }
.money-input { position: relative; }
.money-input input { padding-right: 55px; }
.money-input > span { position: absolute; top: 50%; right: 13px; color: #66717c; font-size: 10px; transform: translateY(-50%); }
.last-updated { margin-top: 24px; padding-top: 16px; border-top: 1px solid #e1e5e8; color: #818b94; font-size: 9px; }
.info-panel { padding-top: 28px; }
.info-panel-icon { display: grid; place-items: center; width: 41px; height: 41px; margin-bottom: 22px; color: #fff; background: var(--violet); }
.info-panel h2 { margin-bottom: 10px; font-size: 13px; text-transform: uppercase; }
.info-panel > p { color: var(--muted); font-size: 11px; line-height: 1.65; }
.info-list { margin: 22px 0 26px; padding: 0; list-style: none; }
.info-list li { position: relative; margin: 13px 0; padding-left: 16px; color: #5e6974; font-size: 10px; line-height: 1.55; }
.info-list li::before { content: ""; position: absolute; top: 5px; left: 1px; width: 5px; height: 5px; background: var(--green); }
.tariff-inline { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line); color: #6c7680; font-size: 10px; text-transform: uppercase; }
.tariff-inline strong { color: var(--violet); font-size: 18px; }

.tariff-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.tariff-card { position: relative; min-height: 275px; padding: 26px; color: #fff; border: 1px solid #f2c811; background: #f2c811; overflow: hidden; }
.tariff-card::after { content: ""; position: absolute; right: 0; bottom: 0; width: 70px; height: 70px; border-top: 1px solid rgba(255,255,255,.25); border-left: 1px solid rgba(255,255,255,.25); }
.payout-tariff { border-color: #343a43; background: #343a43; }
.payout-tariff::after { width: 110px; height: 110px; border-color: rgba(255,255,255,.12); }
.tariff-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.tariff-card .workspace-icon.green, .tariff-card .workspace-icon.violet { color: #fff; background: rgba(0,0,0,.15); }
.tariff-card .soft-badge { color: #fff; background: rgba(0,0,0,.15); }
.tariff-card h2 { margin-bottom: 7px; font-size: 17px; text-transform: uppercase; }
.tariff-card > p { color: #d5eafa; font-size: 10px; }
.payout-tariff > p { color: #c9ced5; }
.tariff-rate { position: relative; z-index: 1; margin-top: 27px; font-size: 48px; font-weight: 500; letter-spacing: -2px; }
.tariff-rate span, .payout-tariff .tariff-rate span { margin-left: 4px; color: #fff; font-size: 25px; }
.tariff-caption { position: relative; z-index: 1; margin-top: 3px; color: #d5eafa; font-size: 9px; text-transform: uppercase; }
.payout-tariff .tariff-caption { color: #c9ced5; }
.method-tariff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.method-tariff-panel { padding: 25px; }
.payin-method-tariffs { border-top: 3px solid var(--green); }
.payout-method-tariffs { border-top: 3px solid var(--violet); }
.method-tariff-list { margin-top: 22px; }
.method-tariff-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 0; border-top: 1px solid #e1e5e8; }
.method-tariff-row > div { display: flex; align-items: center; gap: 11px; color: #68747e; font-size: 10px; }
.method-tariff-row > strong { color: #263640; font-size: 27px; font-weight: 500; letter-spacing: -.5px; }
.method-tariff-row > strong small { margin-left: 3px; color: #74818a; font-size: 12px; }

.conditions-panel { padding: 25px; }
.conditions-list { margin: 20px 0 0; }
.conditions-list > div { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid #e2e5e8; font-size: 11px; }
.conditions-list dt { color: #6d7781; }
.conditions-list dd { margin: 0; font-weight: 500; }
.quiet-note { display: flex; align-items: center; gap: 10px; margin-top: 9px; padding: 13px; color: #586570; border-left: 3px solid var(--green); background: #edf3f7; font-size: 10px; line-height: 1.5; }
.quiet-note svg { flex: 0 0 auto; width: 16px; height: 16px; }

.spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.login-body { background: #fff; }
.login-shell { display: grid; grid-template-columns: minmax(440px, 1.08fr) minmax(450px, .92fr); min-height: 100vh; }
.login-showcase { position: relative; display: flex; flex-direction: column; padding: 40px 50px 32px; color: #fff; background-color: #17191d; background-image: linear-gradient(#25292f 1px, transparent 1px), linear-gradient(90deg, #25292f 1px, transparent 1px); background-size: 64px 64px; overflow: hidden; }
.brand-light { position: relative; z-index: 2; align-self: flex-start; }
.showcase-content { position: relative; z-index: 2; max-width: 560px; margin: auto 0; padding: 60px 0; }
.showcase-content h1 { margin-bottom: 24px; font-size: clamp(36px, 4vw, 55px); font-weight: 500; letter-spacing: -2px; line-height: 1.12; }
.showcase-content h1 em { color: #f2c811; font-style: normal; }
.showcase-orb { position: absolute; pointer-events: none; }
.orb-one { right: -105px; bottom: -105px; width: 340px; height: 340px; border: 42px solid rgba(242,200,17,.22); }
.orb-one::before, .orb-one::after { content: ""; position: absolute; border: 1px solid rgba(105,183,237,.22); }
.orb-one::before { inset: 35px; }
.orb-one::after { inset: 80px; background: rgba(242,200,17,.12); }
.orb-two { top: 16%; right: 0; width: 76px; height: 76px; background: #f2c811; opacity: .42; }
.login-form-side { display: grid; place-items: center; padding: 45px; }
.login-form-wrap { width: min(100%, 380px); }
.login-form-wrap h2 { margin-bottom: 11px; font-size: 30px; font-weight: 600; letter-spacing: -.8px; }
.login-lead { margin-bottom: 29px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.login-form { gap: 19px; }
.login-form .field { font-size: 10px; }
.login-form .field input { height: 46px; font-size: 13px; }
.login-button { justify-content: space-between; min-height: 46px; margin-top: 4px; padding: 0 16px; }
.login-button span { font-size: 17px; font-weight: 400; }
.login-help { margin-top: 27px; color: #7c858e; font-size: 10px; line-height: 1.7; text-align: center; }
.mobile-login-brand { display: none; }

.nav-count { display: grid; place-items: center; min-width: 21px; height: 21px; margin-left: auto; padding: 0 5px; color: #fff; background: #f2c811; font-size: 9px; font-weight: 700; }
.nav-item.active .nav-count { color: #5f5100; background: #fff; }
.nav-item.has-count::after { display: none; }
.button-count { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; color: #315c78; background: #fff; font-size: 9px; }
.notifications-panel { border-top: 3px solid #343a43; }
.notification-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 24px; border-bottom: 1px solid var(--line); }
.notification-filters { display: flex; align-items: center; gap: 3px; }
.notification-filters a { padding: 9px 12px; color: #65717b; border: 1px solid transparent; font-size: 10px; font-weight: 500; }
.notification-filters a:hover { color: var(--accent-ink); background: #f0f5f8; }
.notification-filters a.active { color: #fff; border-color: var(--accent-ink); background: var(--green); }
.notification-total { color: #7c8791; font-size: 9px; text-transform: uppercase; }
.notification-list { display: flex; flex-direction: column; }
.notification-item { position: relative; display: flex; align-items: flex-start; gap: 17px; padding: 24px; border-bottom: 1px solid #e0e4e7; border-left: 4px solid #187d3d; background: #fff; }
.notification-item:last-child { border-bottom: 0; }
.notification-item.notification-rejected { border-left-color: var(--danger); }
.notification-item.unread { background: #f2f8fc; }
.notification-item.notification-rejected.unread { background: #fff7f7; }
.notification-icon { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; color: #fff; background: #187d3d; }
.notification-rejected .notification-icon { background: var(--danger); }
.notification-icon svg { width: 19px; height: 19px; }
.notification-content { flex: 1; min-width: 0; }
.notification-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.notification-heading > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.notification-heading h2 { margin: 0; font-size: 13px; font-weight: 600; }
.notification-type { padding: 5px 7px; color: #5a6873; background: #e8edf1; font-size: 8px; text-transform: uppercase; }
.notification-status { flex: 0 0 auto; padding: 6px 8px; color: #fff; background: #187d3d; font-size: 8px; font-weight: 600; text-transform: uppercase; }
.notification-status.rejected { background: var(--danger); }
.notification-amount { margin-top: 18px; color: #21313b; font-size: 24px; font-weight: 500; letter-spacing: -.5px; }
.notification-amount small { color: #6c7881; font-size: 10px; font-weight: 500; letter-spacing: 0; }
.notification-content > p { margin: 10px 0 15px; color: #66727c; font-size: 11px; line-height: 1.6; }
.notification-meta { display: flex; align-items: center; gap: 12px; color: #87919a; font-size: 9px; }
.notification-meta > span { padding: 3px 6px; color: #fff; background: var(--green); font-size: 8px; font-weight: 600; text-transform: uppercase; }
.notification-empty { display: flex; flex-direction: column; align-items: center; padding: 50px 25px; text-align: center; }
.notification-empty h2 { margin-bottom: 8px; font-size: 13px; text-transform: uppercase; }
.notification-empty p { color: #7c8790; font-size: 10px; }
.notification-empty .text-link { width: 100%; justify-content: center; gap: 10px; }

.workspace-icon.finance-icon { color: #fff; background: #315c78; }
.finance-balance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.finance-balance { min-height: 170px; padding: 24px; color: #fff; border: 1px solid #f2c811; background: #f2c811; }
.finance-balance.working-balance { border-color: #343a43; background: #343a43; }
.finance-balance.insurance-balance { border-color: #5b5fc7; background: #5b5fc7; }
.insurance-balance .finance-balance-label, .insurance-balance .finance-balance-value small, .insurance-balance .finance-balance-note { color: #e2e2fa; }
.finance-balance-label { display: flex; align-items: center; justify-content: space-between; color: #d6eafa; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }
.working-balance .finance-balance-label { color: #ccd2d9; }
.balance-marker { padding: 5px 7px; color: #fff; background: rgba(0,0,0,.15); font-size: 8px; }
.finance-balance-value { margin: 25px 0 12px; font-size: clamp(28px, 3vw, 38px); font-weight: 500; letter-spacing: -1px; }
.finance-balance-value small { color: #d6eafa; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.working-balance .finance-balance-value small { color: #ccd2d9; }
.finance-balance-note { color: #d6eafa; font-size: 9px; }
.working-balance .finance-balance-note { color: #aeb7c0; }
.finance-main-grid { display: grid; grid-template-columns: minmax(360px, 1.05fr) minmax(360px, .95fr); align-items: start; gap: 12px; }
.deposit-panel, .withdrawal-panel { padding: 26px; }
.deposit-panel { border-top: 3px solid #315c78; }
.withdrawal-panel { border-top: 3px solid var(--green); }
.network-badge { padding: 6px 9px; color: #fff; background: #315c78; font-size: 9px; font-weight: 600; }
.deposit-wallet { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; margin-top: 24px; padding: 21px; border: 1px solid #d4dce2; border-left: 4px solid #315c78; background: #f4f7f9; }
.deposit-wallet > span { color: #687682; font-size: 9px; text-transform: uppercase; }
.deposit-wallet code { width: 100%; color: #1d465f; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 500; line-height: 1.7; overflow-wrap: anywhere; user-select: all; }
.button-secondary { color: #fff; border-color: #315c78; background: #315c78; }
.button-secondary:hover { background: #264b63; }
.network-warning { display: flex; align-items: flex-start; gap: 11px; margin-top: 20px; color: #68737d; }
.network-warning svg { flex: 0 0 auto; width: 17px; height: 17px; color: #9a6700; }
.network-warning p { margin: 0; font-size: 10px; line-height: 1.6; }
.network-warning strong { color: #3d4851; font-weight: 600; }
.withdrawal-form { margin-top: 24px; }
.withdrawal-form .button { align-self: flex-start; }
.withdrawal-note { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: #7a858f; font-size: 9px; line-height: 1.6; }
.withdrawals-history { margin-top: 12px; padding: 25px; }
.withdrawals-table-wrap { margin: 20px -25px -25px; overflow-x: auto; }
.withdrawals-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 10px; }
.withdrawals-table th { padding: 11px 15px; color: #717c86; background: #f0f2f4; font-size: 8px; font-weight: 600; text-align: left; text-transform: uppercase; letter-spacing: .45px; }
.withdrawals-table th:first-child, .withdrawals-table td:first-child { padding-left: 25px; }
.withdrawals-table th:last-child, .withdrawals-table td:last-child { padding-right: 25px; }
.withdrawals-table td { padding: 15px; border-top: 1px solid #e1e5e8; color: #626d77; vertical-align: middle; }
.withdrawal-amount { color: #253642 !important; font-weight: 600; white-space: nowrap; }
.withdrawal-address { display: block; max-width: 210px; overflow: hidden; color: #315c78; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.withdrawal-status { display: inline-flex; padding: 5px 8px; color: #765000; background: #fff1d2; font-size: 8px; font-weight: 600; text-transform: uppercase; white-space: nowrap; }
.finance-empty { padding: 38px 10px 25px; color: #56616b; text-align: center; }
.finance-empty > span { font-size: 12px; font-weight: 600; text-transform: uppercase; }
.finance-empty p { margin: 8px 0 0; color: #7d8790; font-size: 10px; }

.activity-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; padding: 18px 22px; border-left: 4px solid #59636e; }
.activity-panel.is-active { border-left-color: #187d3d; }
.activity-copy { display: flex; align-items: center; gap: 14px; }
.activity-icon { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: #59636e; }
.is-active .activity-icon { background: #187d3d; }
.payout-activity .activity-icon { background: var(--violet); }
.activity-copy h2 { margin: 0 0 5px; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.activity-copy p { margin: 0; color: #727e88; font-size: 10px; line-height: 1.5; }
.activity-toggle { display: flex; align-items: center; gap: 11px; padding: 7px; border: 1px solid transparent; color: #616d77; background: transparent; cursor: pointer; }
.activity-toggle:hover { border-color: #d2d8dd; background: #f6f7f8; }
.activity-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.switch-track { position: relative; display: block; width: 46px; height: 24px; border: 1px solid #8a949d; background: #737e88; }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; transition: transform .15s; }
.is-active .switch-track { border-color: #187d3d; background: #187d3d; }
.payout-activity.is-active .switch-track { border-color: var(--violet); background: var(--violet); }
.is-active .switch-knob { transform: translateX(21px); }
.switch-label { min-width: 68px; font-size: 9px; font-weight: 600; text-align: left; text-transform: uppercase; }
.is-active .switch-label { color: #187d3d; }
.payout-activity.is-active .switch-label { color: var(--violet); }

.workspace-icon.orders-icon { color: #fff; background: #315c78; }
.orders-panel { border-top: 3px solid #343a43; }
.orders-filters { position: relative; padding: 17px 23px; border-bottom: 1px solid var(--line); }
.order-filter-row { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; }
.order-filter-row:last-of-type { margin-bottom: 0; }
.filter-label { flex: 0 0 42px; color: #7a858f; font-size: 8px; font-weight: 600; text-transform: uppercase; }
.order-filter-row nav { display: flex; flex-wrap: wrap; gap: 3px; }
.order-filter-row nav a { padding: 7px 9px; border: 1px solid transparent; color: #606c76; font-size: 9px; }
.order-filter-row nav a:hover { color: var(--accent-ink); background: #f0f5f8; }
.order-filter-row nav a.active { color: #fff; border-color: #343a43; background: #343a43; }
.orders-count { position: absolute; top: 20px; right: 23px; color: #7b8690; font-size: 9px; text-transform: uppercase; }
.order-search-form { display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(2, minmax(105px, .75fr)) repeat(2, minmax(135px, .85fr)) auto; align-items: end; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #e0e4e7; }
.order-search-form .field { font-size: 8px; }
.order-search-form .field input { height: 37px; font-size: 10px; }
.order-search-actions { display: flex; align-items: center; gap: 9px; height: 37px; }
.order-search-actions .button { min-height: 37px; padding: 0 13px; font-size: 9px; }
.order-search-actions > a { color: #69757f; font-size: 9px; }
.order-search-actions > a:hover { color: var(--accent-ink); text-decoration: underline; }

.order-card { border-bottom: 1px solid #dce1e5; background: #fff; }
.order-card:last-child { border-bottom: 0; }
.order-card-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 23px; border-bottom: 1px solid #e4e7e9; background: #f6f7f8; }
.order-card-header > div { display: flex; align-items: center; gap: 9px; }
.order-id { color: #35434e; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 600; }
.order-status { display: inline-flex; padding: 6px 9px; color: #fff; background: #59636e; font-size: 8px; font-weight: 600; text-transform: uppercase; }
.order-status-new { background: #f2c811; }
.order-status-pending { color: #624500; background: #f4c542; }
.order-status-paid { background: #187d3d; }
.order-status-dispute { background: #a4262c; }
.order-status-cancelled { color: #5f6973; background: #e0e4e7; }
.order-card-body { display: grid; grid-template-columns: minmax(210px, .8fr) minmax(400px, 1.2fr); gap: 25px; padding: 22px 23px; }
.order-amount { color: #1d303b; font-size: 29px; font-weight: 500; letter-spacing: -.7px; }
.order-amount small { color: #6c7983; font-size: 11px; letter-spacing: 0; }
.order-payer { display: block; margin-top: 8px; color: #65717b; font-size: 10px; }
.order-details { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 15px; margin: 0; }
.order-details div { min-width: 0; }
.order-details dt { margin-bottom: 7px; color: #89939c; font-size: 8px; text-transform: uppercase; }
.order-details dd { margin: 0; color: #55616b; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.order-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 13px 23px; border-top: 1px solid #e2e6e8; background: #fafbfb; }
.order-actions .button { min-height: 33px; padding: 0 11px; border-color: #cbd1d6; color: #4b5761; background: #fff; font-size: 9px; }
.order-actions .order-action-primary { color: #fff; border-color: var(--accent-ink); background: var(--green); }
.order-actions .order-action-paid { color: #fff; border-color: #187d3d; background: #187d3d; }
.order-actions .order-action-dispute { color: #fff; border-color: #a4262c; background: #a4262c; }
.order-actions .order-action-cancel:hover { color: #fff; border-color: #59636e; background: #59636e; }
.order-final-note { color: #818c95; font-size: 9px; text-transform: uppercase; }

.limits-fieldset { margin: 3px 0 0; padding: 21px 0 0; border: 0; border-top: 1px solid var(--line); }
.limits-fieldset legend { padding: 0 10px 0 0; color: #36434d; font-size: 10px; font-weight: 600; text-transform: uppercase; }
.limit-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 12px; margin-top: 18px; }
.limit-monthly { grid-column: 1 / -1; }
.limits-rule { margin: 13px 0 0; color: #7b8690; font-size: 9px; line-height: 1.55; }
.requisite-limits-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.requisite-limits-summary span { padding: 5px 7px; color: #5e6b75; background: #e9edf0; font-size: 8px; }
.requisite-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 11px; border-top: 1px solid #dfe3e6; }
.requisite-footer .requisite-date { margin: 0; padding: 0; border: 0; }
.requisite-settings-link { color: var(--accent-ink); font-size: 9px; font-weight: 600; white-space: nowrap; }
.requisite-settings-link:hover { text-decoration: underline; }
.back-link { display: inline-block; margin-bottom: 20px; color: #65717c; font-size: 10px; }
.back-link:hover { color: var(--accent-ink); }
.requisite-settings-layout { display: grid; grid-template-columns: minmax(260px, .65fr) minmax(480px, 1.35fr); align-items: start; gap: 12px; }
.requisite-settings-card { padding: 25px; border-top: 3px solid #343a43; }
.requisite-settings-card h2 { margin: 21px 0 10px; font-size: 17px; }
.requisite-settings-badges { display: flex; gap: 6px; }
.requisite-limits-editor { padding: 26px; border-top: 3px solid var(--green); }
.limits-edit-form { margin-top: 25px; }
.limits-edit-form .button { align-self: flex-start; }
.limits-consistency { padding: 12px; border-left: 3px solid var(--green); color: #62717c; background: #edf4f8; font-size: 9px; line-height: 1.55; }

.method-fields { display: flex; flex-direction: column; gap: 18px; }
.method-fields[hidden] { display: none; }
.method-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 22px; padding: 0 7px; color: #fff; background: #343a43; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.payout-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 23px; }
.payout-methods a { display: flex; flex-direction: column; gap: 8px; padding: 13px; border: 1px solid #d3d9de; color: #4d5964; background: #f5f6f7; }
.payout-methods a:hover { border-color: var(--violet); }
.payout-methods a.active { color: #fff; border-color: var(--violet); background: var(--violet); }
.payout-methods strong { font-size: 12px; font-weight: 600; }
.payout-methods small { color: #727e88; font-size: 9px; white-space: nowrap; }
.payout-methods a.active small { color: #e2e2fa; }
.method-description { margin-top: 15px; padding: 11px 13px; border-left: 3px solid var(--violet); color: #626d77; background: #f4f3fa; font-size: 10px; line-height: 1.55; }

.security-layout { display: block; }
.security-panel { padding: 27px; border-top: 3px solid var(--green); }
.security-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; color: #5e6872; background: #e7eaed; font-size: 8px; font-weight: 600; text-transform: uppercase; white-space: nowrap; }
.security-badge.enabled { color: #fff; background: #187d3d; }
.security-state { display: flex; align-items: center; gap: 18px; margin: 25px 0; padding: 23px; border: 1px solid #d9dfe4; border-left: 4px solid #59636e; background: #f7f8f9; }
.security-state.enabled-state { border-left-color: #187d3d; background: #f0f8f2; }
.security-state-icon { display: grid; place-items: center; flex: 0 0 auto; width: 45px; height: 45px; color: #fff; background: #59636e; }
.enabled-state .security-state-icon { background: #187d3d; }
.security-state h3 { margin-bottom: 7px; font-size: 13px; font-weight: 600; }
.security-state p { margin: 0; color: #68737d; font-size: 10px; line-height: 1.6; }
.button-danger { align-self: flex-start; color: #fff; border-color: #a4262c; background: #a4262c; }
.button-danger:hover { background: #8c1f24; }
.disable-2fa-form { max-width: 340px; padding-top: 22px; border-top: 1px solid var(--line); }
.code-input { max-width: 230px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; font-size: 21px !important; font-weight: 500 !important; letter-spacing: 7px !important; text-align: center; }
.twofactor-setup { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 27px; margin-top: 25px; padding-top: 25px; border-top: 1px solid var(--line); }
.qr-column { display: flex; flex-direction: column; align-items: center; gap: 11px; }
.qr-column > span { color: #737e88; font-size: 9px; text-transform: uppercase; }
.qr-frame { padding: 11px; border: 1px solid #cbd1d8; background: #fff; }
.qr-frame img { display: block; width: 100%; height: auto; }
.setup-steps { margin: 0 0 20px; padding: 0; list-style: none; }
.setup-steps li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #56616b; font-size: 10px; line-height: 1.45; }
.setup-steps li > span { display: grid; place-items: center; flex: 0 0 auto; width: 23px; height: 23px; color: #fff; background: var(--green); font-size: 10px; }
.manual-secret { display: flex; flex-direction: column; gap: 8px; margin-bottom: 21px; }
.manual-secret > span { color: #717c86; font-size: 9px; text-transform: uppercase; }
.manual-secret code { padding: 11px; border: 1px solid #d5dbe0; color: #24475f; background: #f2f7fa; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; user-select: all; }
.enable-2fa-form .button { align-self: flex-start; }
.cancel-setup-form { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.text-button { padding: 0; border: 0; color: #727d87; background: transparent; font-size: 10px; cursor: pointer; text-decoration: underline; }
.text-button:hover { color: var(--danger); }
.password-panel { margin-top: 12px; padding: 27px; border-top: 3px solid #343a43; }
.password-icon { color: #fff; background: #343a43; }
.password-change-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 15px; max-width: 760px; margin-top: 25px; }
.password-current, .password-submit { grid-column: 1 / -1; }
.password-current { max-width: calc(50% - 8px); }
.password-submit { padding-top: 3px; }

.twofactor-body { background-color: #eef1f4; background-image: linear-gradient(#e2e6ea 1px, transparent 1px), linear-gradient(90deg, #e2e6ea 1px, transparent 1px); background-size: 48px 48px; }
.twofactor-login-shell { display: grid; place-items: center; min-height: 100vh; padding: 30px; }
.twofactor-login-card { width: min(100%, 430px); padding: 36px; border: 1px solid #cdd3d9; border-top: 5px solid var(--green); background: #fff; }
.twofactor-login-card .brand { margin-bottom: 42px; color: var(--ink); }
.twofactor-lock { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; color: #fff; background: var(--green); }
.twofactor-login-card h1 { font-size: 28px; }
.twofactor-login-card > p { color: var(--muted); font-size: 11px; line-height: 1.65; }
.twofactor-login-card > p strong { color: #3c4751; font-weight: 500; overflow-wrap: anywhere; }
.twofactor-login-form { margin-top: 25px; }
.twofactor-login-form .code-input { max-width: none; height: 54px; }
.back-login { display: block; margin-top: 24px; color: #68747f; font-size: 10px; text-align: center; }
.back-login:hover { color: var(--accent-ink); }

.wallet-missing-warning { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; padding: 16px 18px; border: 1px solid #d39b19; border-left: 5px solid #9a6700; color: #684900; background: #fff5d6; }
.wallet-missing-warning svg { flex: 0 0 auto; width: 19px; height: 19px; }
.wallet-missing-warning div { display: flex; flex-direction: column; gap: 5px; }
.wallet-missing-warning strong { font-size: 11px; }
.wallet-missing-warning span { font-size: 10px; line-height: 1.55; }
.wallet-missing-inline { color: #765500; font-size: 11px; }
.deposit-disabled-note { margin-top: 22px; padding: 15px; border-left: 4px solid #9a6700; color: #684900; background: #fff5d6; font-size: 10px; line-height: 1.6; }
.deposit-gate-message { margin-top: 24px; padding: 18px; border-left: 4px solid #9a6700; background: #fff5d6; }
.deposit-gate-message strong { color: #684900; font-size: 11px; }
.deposit-gate-message p { margin: 9px 0 16px; color: #765500; font-size: 10px; line-height: 1.6; }
.activity-toggle:disabled { opacity: .45; cursor: not-allowed; }
.activity-toggle:disabled:hover { border-color: transparent; background: transparent; }

.rapira-rate-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; padding: 18px 23px; border-left: 4px solid var(--green); }
.rapira-rate-label { color: #6a7680; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.rapira-rate-value { margin-top: 9px; color: #24343e; font-size: 23px; font-weight: 500; }
.rapira-rate-value small { color: #6c7882; font-size: 11px; }
.rapira-market-details { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 9px; color: #74808a; font-size: 9px; }
.rapira-rate-note { display: block; margin-top: 8px; color: #7a858e; font-size: 9px; }
.rapira-source { padding: 8px 11px; color: #1b1e23; background: var(--green); font-size: 10px; font-weight: 700; }

.deposit-request-panel { margin-top: 12px; padding: 25px; border-top: 3px solid var(--green); scroll-margin-top: 20px; }
.deposit-request-layout { display: grid; grid-template-columns: minmax(330px, .85fr) minmax(380px, 1.15fr); gap: 28px; }
.deposit-request-form { margin-top: 22px; }
.deposit-request-form .button { align-self: flex-start; }
.tx-hash-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px !important; }
.deposit-request-history > h3 { margin-bottom: 12px; color: #66727c; font-size: 9px; text-transform: uppercase; }
.deposit-request-item { padding: 13px 0; border-top: 1px solid #e0e4e7; }
.deposit-request-item > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.deposit-request-item strong { font-size: 10px; }
.deposit-request-amount { display: block; margin: 9px 0 6px; color: #2a3b46; font-size: 16px; font-weight: 500; }
.deposit-request-item code { display: block; overflow: hidden; color: #657580; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.deposit-request-item time { display: block; margin-top: 7px; color: #8a949d; font-size: 8px; }
.deposit-request-item p { margin: 8px 0 0; color: #66727c; font-size: 9px; line-height: 1.5; }
.deposit-status { display: inline-flex; padding: 5px 7px; color: #5f5100; background: #fff0a6; font-size: 8px; font-weight: 600; text-transform: uppercase; white-space: nowrap; }
.deposit-status-approved { color: #fff; background: #187d3d; }
.deposit-status-rejected { color: #fff; background: #a4262c; }
.deposit-history-empty { padding: 35px 10px; border-top: 1px solid #e0e4e7; color: #7d8790; font-size: 10px; text-align: center; }
.admin-deposits-panel { padding-top: 24px; border-top: 3px solid var(--green); }
.admin-deposits-panel > .panel-header { padding: 0 25px 22px; }
.admin-deposit-card { display: grid; grid-template-columns: minmax(400px, 1fr) minmax(300px, .65fr); gap: 28px; padding: 23px 25px; border-top: 1px solid #dfe3e7; }
.admin-deposit-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.admin-deposit-top > strong { font-size: 11px; }
.admin-deposit-amount { margin: 19px 0 16px; color: #243640; font-size: 25px; font-weight: 500; }
.admin-deposit-amount small { color: #72808a; font-size: 10px; }
.admin-deposit-hash { display: flex; flex-direction: column; gap: 7px; }
.admin-deposit-hash > span { color: #89939c; font-size: 8px; text-transform: uppercase; }
.admin-deposit-hash code { color: #315c78; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; user-select: all; }
.admin-deposit-main > time { display: block; margin-top: 10px; color: #87919a; font-size: 8px; }
.deposit-review-form { display: flex; flex-direction: column; gap: 15px; padding-left: 25px; border-left: 1px solid #dfe3e7; }
.deposit-review-actions { display: flex; gap: 7px; }
.deposit-approve { color: #fff; background: #187d3d; border-color: #187d3d; }
.deposit-reject { color: #fff; background: #a4262c; border-color: #a4262c; }
.deposit-reviewed { padding-left: 25px; border-left: 1px solid #dfe3e7; color: #6f7b85; font-size: 10px; }
.deposit-reviewed > span { color: #3d4c56; font-weight: 600; text-transform: uppercase; }
.deposit-reviewed p { margin: 10px 0 0; line-height: 1.6; }

.tariff-edit-link { color: #fff; background: #343a43; border-color: #343a43; white-space: nowrap; }
.admin-tariff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-tariff-editor { padding: 25px; }
.admin-tariff-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 13px; margin-top: 24px; }
.percent-input { position: relative; }
.percent-input input { width: 100%; height: 42px; padding: 0 35px 0 12px; border: 1px solid #cbd1d8; outline: 0; font-size: 13px; }
.percent-input input:focus { border-color: var(--green); outline: 1px solid var(--green); }
.percent-input > span { position: absolute; top: 50%; right: 12px; color: #6f7b85; font-size: 12px; transform: translateY(-50%); }
.admin-tariff-submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 12px; padding: 18px 21px; border: 1px solid var(--line); background: #fff; }
.admin-tariff-submit > span { color: #75818b; font-size: 9px; }

.admin-sidebar { border-top: 4px solid var(--green); }
.admin-role-label { padding: 6px 9px; color: #fff; background: #343a43; font-size: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.admin-stats-grid { display: grid; grid-template-columns: .7fr .85fr 1.25fr 1.2fr; gap: 12px; margin-bottom: 12px; }
.admin-stat { display: flex; flex-direction: column; min-height: 158px; padding: 22px; border: 1px solid var(--line); background: #fff; }
.admin-stat > span { color: #68747e; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .45px; }
.admin-stat strong { margin: 23px 0 10px; color: #26333c; font-size: clamp(24px, 2.5vw, 34px); font-weight: 500; letter-spacing: -.8px; white-space: nowrap; }
.admin-stat small { margin-top: auto; color: #808a93; font-size: 9px; }
.admin-stat-primary { border-color: var(--accent-ink); background: var(--green); }
.admin-stat-primary > span, .admin-stat-primary strong, .admin-stat-primary small { color: #fff; }
.admin-stat-primary small { color: #d4eafa; }
.admin-stat-dark { border-color: #343a43; background: #343a43; }
.admin-stat-dark > span, .admin-stat-dark strong { color: #fff; }
.admin-stat-dark small { color: #b7c0c8; }
.admin-withdrawals { padding-top: 24px; }
.admin-withdrawals > .panel-header { padding: 0 25px; }
.admin-withdrawals .withdrawals-table-wrap { margin-bottom: 0; }
.admin-table { min-width: 950px; }
.admin-trader { display: flex; flex-direction: column; gap: 4px; }
.admin-trader strong { color: #35434d; font-size: 10px; font-weight: 600; }
.admin-trader span { color: #85909a; font-size: 8px; }
.create-trader-panel { margin-bottom: 12px; padding: 24px 25px; border-top: 3px solid #343a43; }
.create-trader-form { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)) auto; align-items: end; gap: 11px; margin-top: 21px; }
.create-trader-form .button { min-height: 42px; white-space: nowrap; }
.admin-traders-panel { padding-top: 24px; border-top: 3px solid var(--green); }
.admin-traders-panel > .panel-header { padding: 0 25px 22px; }
.admin-trader-card { display: grid; grid-template-columns: minmax(200px, .55fr) minmax(400px, 1.25fr) auto; align-items: center; gap: 25px; padding: 23px 25px; border-top: 1px solid #dfe3e7; scroll-margin-top: 20px; }
.admin-trader-card:target { border-left: 4px solid var(--green); background: #f0f7fb; }
.admin-trader-identity { display: flex; align-items: center; gap: 13px; min-width: 0; }
.admin-trader-identity .avatar { width: 42px; height: 42px; }
.admin-trader-identity > div { min-width: 0; }
.admin-trader-identity h2 { margin: 0 0 5px; font-size: 13px; font-weight: 600; }
.admin-trader-identity span { display: block; overflow: hidden; color: #64717b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-trader-identity small { display: block; margin-top: 6px; color: #8b959e; font-size: 8px; }
.trader-wallet-form { display: flex; align-items: flex-end; gap: 9px; }
.trader-wallet-form .field { flex: 1; min-width: 0; }
.trader-wallet-form input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.trader-wallet-form .button { flex: 0 0 auto; min-height: 42px; }

.button-primary,
.workspace-icon.green,
.check-circle,
.panel-icon:not(.violet-icon):not(.password-icon),
.currency-badge,
.notification-filters a.active,
.notification-meta > span,
.order-actions .order-action-primary,
.order-status-new,
.setup-steps li > span,
.twofactor-lock,
.metric-featured,
.metric-icon,
.metric-link,
.available-balance,
.payin-tariff,
.admin-stat-primary,
.admin-stat-primary strong { color: #1b1e23; }
.metric-featured .metric-top,
.metric-featured .metric-value small,
.available-balance .finance-balance-label,
.available-balance .finance-balance-value small,
.available-balance .finance-balance-note,
.available-balance .balance-marker,
.payin-tariff > p,
.payin-tariff .tariff-caption,
.payin-tariff .tariff-rate span,
.payin-tariff .soft-badge,
.payin-tariff .workspace-icon.green,
.admin-stat-primary > span,
.admin-stat-primary small { color: #403700; }
.metric-icon.soft { color: #5f5100; }

@media (min-width: 1500px) {
    .page-content { padding-top: 44px; }
    .metric-card { padding: 27px; }
    .page-heading { margin-bottom: 34px; }
}

@media (max-width: 1050px) {
    .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
    .sidebar .brand { margin-left: 19px; }
    .workspace-label { margin-left: 19px; }
    .nav-item { padding-left: 19px; padding-right: 17px; }
    .profile { padding-left: 15px; padding-right: 15px; }
    .page-content, .topbar { padding-left: 25px; padding-right: 25px; }
    .metric-grid { grid-template-columns: 1.2fr 1fr 1fr; }
    .metric-card { padding: 20px; }
    .settings-layout, .payout-layout, .security-layout, .finance-main-grid, .requisite-settings-layout { grid-template-columns: 1fr; }
    .finance-balance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .insurance-balance { grid-column: 1 / -1; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .admin-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-tariff-grid { grid-template-columns: 1fr; }
    .create-trader-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .order-card-body { grid-template-columns: 1fr; }
    .order-search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .order-search-query { grid-column: 1 / -1; }
    .orders-count { position: static; display: block; margin-top: 12px; }
    .admin-trader-card { grid-template-columns: 1fr; gap: 18px; }
    .deposit-request-layout, .admin-deposit-card { grid-template-columns: 1fr; }
    .deposit-review-form, .deposit-reviewed { padding: 20px 0 0; border-top: 1px solid #dfe3e7; border-left: 0; }
    .login-showcase { padding: 35px; }
    .login-form-side { padding: 35px; }
}

@media (max-width: 780px) {
    .app-shell { display: block; }
    .sidebar { position: static; display: block; width: 100%; height: auto; padding: 16px 18px 0; border-right: 0; }
    .sidebar .brand { margin: 0 0 18px; font-size: 22px; }
    .brand-mark { width: 21px; height: 22px; }
    .brand-mark span { width: 9px; height: 22px; }
    .brand-mark span:last-child { height: 15px; }
    .workspace-label, .sidebar-bottom { display: none; }
    .main-nav { flex-direction: row; gap: 0; margin: 0 -18px; overflow-x: auto; }
    .nav-item { flex: 1 0 auto; justify-content: center; min-height: 40px; padding: 0 13px; border-left: 0; border-bottom: 3px solid transparent; font-size: 11px; }
    .nav-item svg { width: 15px; height: 15px; }
    .nav-item.active { border-bottom-color: #b9dcf5; }
    .nav-item.active::after { display: none; }
    .topbar { height: 45px; padding: 0 18px; }
    .topbar > div:first-child { display: none; }
    .page-content { padding: 27px 18px 40px; }
    .heading-with-action { align-items: flex-start; }
    .heading-with-action .button { min-height: 38px; padding: 0 13px; font-size: 10px; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .metric-featured { grid-column: 1 / -1; }
    .metric-value { font-size: 28px; }
    .login-shell { display: block; }
    .login-showcase { display: none; }
    .login-form-side { min-height: 100vh; padding: 35px 25px; }
    .mobile-login-brand { display: block; margin-bottom: 65px; }
    .mobile-login-brand .brand { color: var(--ink); }
}

@media (max-width: 520px) {
    .nav-item { gap: 7px; padding: 0 10px; }
    .nav-item svg { display: none; }
    .page-heading { margin-bottom: 23px; }
    .heading-with-action { display: block; }
    .heading-with-action .button { margin-top: 20px; }
    h1 { font-size: 27px; }
    .metric-grid, .tariff-cards, .finance-balance-grid, .admin-stats-grid, .method-tariff-grid { grid-template-columns: 1fr; }
    .admin-stat { min-height: 140px; }
    .admin-tariff-fields { grid-template-columns: 1fr; }
    .create-trader-form { grid-template-columns: 1fr; }
    .admin-tariff-submit { align-items: stretch; flex-direction: column; }
    .admin-stat strong { font-size: 28px; }
    .metric-featured { grid-column: auto; }
    .metric-card { min-height: 160px; padding: 21px; }
    .workspace-panel, .readiness-panel, .form-panel, .requisites-panel, .payout-panel, .info-panel, .conditions-panel { padding: 21px; }
    .workspace-link { gap: 11px; margin-left: -21px; margin-right: -21px; padding-left: 21px; padding-right: 21px; }
    .workspace-link small { line-height: 1.45; }
    .payout-layout, .settings-layout, .security-layout { display: block; }
    .info-panel, .requisites-panel { margin-top: 12px; }
    .security-panel, .password-panel { padding: 21px; }
    .password-change-form { grid-template-columns: 1fr; }
    .password-current, .password-submit { grid-column: auto; }
    .password-current { max-width: none; }
    .finance-balance { min-height: 150px; padding: 21px; }
    .finance-balance-value { font-size: 30px; }
    .deposit-panel, .withdrawal-panel, .withdrawals-history { padding: 21px; }
    .withdrawals-table-wrap { margin: 20px -21px -21px; }
    .deposit-wallet { padding: 17px; }
    .deposit-wallet code { font-size: 11px; }
    .security-panel .panel-header { flex-direction: column; }
    .security-state { align-items: flex-start; padding: 18px; }
    .twofactor-setup { grid-template-columns: 1fr; }
    .qr-column { max-width: 280px; margin: 0 auto; }
    .twofactor-login-shell { padding: 16px; }
    .twofactor-login-card { padding: 25px; }
    .current-limit { padding: 20px; }
    .current-limit > div { font-size: 29px; }
    .tariff-card { padding: 23px; }
    .conditions-list > div { gap: 20px; }
    .quiet-note { align-items: flex-start; }
    .admin-trader-card, .admin-deposit-card { padding: 19px 17px; }
    .deposit-request-panel { padding: 21px; }
    .deposit-request-form .button { width: 100%; }
    .deposit-review-actions { flex-direction: column; }
    .deposit-review-actions .button { width: 100%; }
    .trader-wallet-form { align-items: stretch; flex-direction: column; }
    .trader-wallet-form .button { width: 100%; }
    .activity-panel { align-items: flex-start; flex-direction: column; padding: 17px; }
    .activity-toggle { align-self: flex-end; }
    .orders-filters { padding: 15px; }
    .order-filter-row { align-items: flex-start; flex-direction: column; gap: 7px; }
    .filter-label { flex: none; }
    .order-search-form { grid-template-columns: 1fr; }
    .order-search-query { grid-column: auto; }
    .order-search-actions { justify-content: space-between; }
    .order-card-header { padding: 13px 16px; }
    .order-card-body { padding: 19px 16px; }
    .order-details { grid-template-columns: 1fr 1fr; }
    .order-details div:first-child { grid-column: 1 / -1; }
    .order-actions { align-items: stretch; flex-direction: column; padding: 13px 16px; }
    .order-actions .button { width: 100%; }
    .limit-form-grid { grid-template-columns: 1fr; }
    .limit-monthly { grid-column: auto; }
    .requisite-limits-editor, .requisite-settings-card { padding: 21px; }
    .requisite-footer { align-items: flex-start; flex-direction: column; }
    .payout-methods { gap: 3px; }
    .payout-methods a { padding: 10px 8px; }
    .payout-methods small { font-size: 8px; white-space: normal; }
    .notification-toolbar { align-items: flex-start; padding: 14px; }
    .notification-filters { flex-wrap: wrap; }
    .notification-filters a { padding: 8px; font-size: 9px; }
    .notification-total { display: none; }
    .notification-item { gap: 12px; padding: 19px 16px; }
    .notification-icon { width: 34px; height: 34px; }
    .notification-heading { flex-direction: column; gap: 10px; }
    .notification-status { align-self: flex-start; }
    .notification-amount { font-size: 22px; }
}
