@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 100 1000;
    src: url("../vendor/dm-sans/files/dm-sans-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 100 1000;
    src: url("../vendor/dm-sans/files/dm-sans-latin-wght-normal.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;
}

@font-face {
    font-family: "DM Sans";
    font-style: italic;
    font-display: swap;
    font-weight: 100 1000;
    src: url("../vendor/dm-sans/files/dm-sans-latin-ext-wght-italic.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "DM Sans";
    font-style: italic;
    font-display: swap;
    font-weight: 100 1000;
    src: url("../vendor/dm-sans/files/dm-sans-latin-wght-italic.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 {
    --app-font-family: "DM Sans", sans-serif;
    --app-bg: #141316;
    --app-sidebar-bg: #0d0e12;
    --app-panel-bg: #1b1a1d;
    --app-active-bg: #1d2027;
    --app-border: #272a33;
    --app-text: #f5f7fb;
    --app-text-secondary: #a4aab6;
    --app-text-muted: #727784;
    --app-input-bg: #141316;
    --app-accent: #5438ff;
    --app-accent-rgb: 84, 56, 255;
    --app-accent-hover: #664cff;
    --app-accent-active: #4c31e6;
    --app-accent-surface: #181528;
    --app-accent-border: rgba(var(--app-accent-rgb), 0.28);
    --app-positive: #24d6a4;
    --app-negative: #ff5478;
    --app-panel-shadow: none;
    --bs-body-bg: var(--app-bg);
    --bs-body-color: var(--app-text);
    --bs-emphasis-color: var(--app-text);
    --bs-secondary-color: var(--app-text-secondary);
    --bs-secondary-color-rgb: 180, 174, 184;
    --bs-tertiary-color: var(--app-text-muted);
    --bs-tertiary-color-rgb: 125, 119, 130;
    --bs-border-color: var(--app-border);
    --bs-primary: var(--app-accent);
    --bs-primary-rgb: var(--app-accent-rgb);
    --bs-link-color: var(--app-text);
    --bs-link-hover-color: var(--app-accent);
    --bs-card-bg: var(--app-panel-bg);
    --bs-card-border-color: var(--app-border);
    --bs-card-cap-bg: transparent;
    --bs-card-border-radius: 0.75rem;
    --bs-border-radius: 0.75rem;
    --bs-border-radius-sm: 0.65rem;
    --bs-border-radius-lg: 0.85rem;
    --bs-form-valid-color: var(--app-positive);
    --bs-form-valid-border-color: var(--app-positive);
    --bs-form-invalid-color: var(--app-negative);
    --bs-form-invalid-border-color: var(--app-negative);
}

html,
body {
    min-height: 100%;
}

body {
    background: var(--app-bg);
    color: var(--app-text);
    font-family: var(--app-font-family);
    font-variant-numeric: tabular-nums;
}

a {
    color: inherit;
}

a:hover {
    color: var(--app-accent);
}

.app-body {
    background: var(--app-bg);
    color: var(--app-text);
}

.app-shell {
    min-height: 100vh;
}

.app-sidebar {
    --bs-offcanvas-bg: var(--app-sidebar-bg);
    --bs-offcanvas-color: var(--app-text);
    --bs-offcanvas-border-color: var(--app-border);
    --bs-offcanvas-width: 18.5rem;
    background: var(--app-sidebar-bg);
}

.app-sidebar .offcanvas-header {
    border-bottom: 1px solid var(--app-border);
}

.app-sidebar .offcanvas-body {
    overflow-y: auto;
}

@media (min-width: 992px) {
    .app-sidebar.offcanvas-lg {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        border-right: 1px solid var(--app-border);
    }

    .app-workspace {
        margin-left: 18.5rem;
        min-height: 100vh;
    }
}

.app-mobile-bar {
    position: sticky;
    top: 0;
    z-index: 1025;
    background: var(--app-sidebar-bg);
    border-bottom: 1px solid var(--app-border);
}

.app-main {
    padding: 1rem;
}

@media (min-width: 992px) {
    .app-main {
        padding: 1.75rem;
    }
}

.app-content-grid {
    max-width: 1720px;
    margin: 0 auto;
}

.auth-page {
    background: #111216;
}

.auth-shell {
    background: #111216;
}

.auth-main {
    background: #111216;
    min-height: calc(100vh - 4.25rem);
    padding: 1rem 0;
}

.auth-code-input {
    font-weight: 800;
    letter-spacing: 0.28em;
    padding-left: calc(1rem + 0.28em);
}

.auth-code-input::placeholder {
    letter-spacing: 0.28em;
}

[data-register-contact-form]:has(#contactMethodSimplex:checked) [data-register-email-field] {
    display: none !important;
}

[data-register-contact-form]:has(#contactMethodSimplex:checked) [data-register-simplex-note] {
    display: block !important;
}

.auth-captcha {
    position: relative;
    padding: 0.85rem 0.95rem;
    border: 1px solid #262933;
    border-radius: 0.65rem;
    background: #141316;
}

.auth-captcha-status {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--app-text-secondary);
    font-size: 0.82rem;
    line-height: 1.35;
}

.auth-captcha.is-complete .auth-captcha-status {
    color: var(--app-positive);
}

.auth-captcha.is-error .auth-captcha-status {
    color: var(--app-negative);
}

.auth-captcha-spinner {
    width: 0.95rem;
    height: 0.95rem;
    flex: 0 0 auto;
    border: 2px solid #303440;
    border-top-color: var(--app-accent);
    border-radius: 50%;
    animation: auth-captcha-spin 0.75s linear infinite;
}

.auth-captcha.is-complete .auth-captcha-spinner,
.auth-captcha.is-error .auth-captcha-spinner {
    display: none;
}

.auth-captcha-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.auth-captcha-noscript {
    margin-top: 0.65rem;
    color: var(--app-negative);
    font-size: 0.78rem;
}

@keyframes auth-captcha-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 992px) {
    .auth-main {
        padding: 2rem 0;
    }
}

@media (max-width: 575.98px) {
    .auth-code-input,
    .auth-code-input::placeholder {
        letter-spacing: 0.18em;
    }
}

.app-side-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1400px) {
    .app-side-stack {
        position: sticky;
        top: 1.75rem;
    }
}

.app-brand {
    color: inherit;
    text-decoration: none;
}

.app-brand:hover {
    color: inherit;
}

.app-brand-mark {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: var(--app-accent);
    border: 1px solid rgba(var(--app-accent-rgb), 0.72);
    color: var(--app-text);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.app-brand-title {
    color: var(--app-text);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.app-brand-subtitle {
    color: var(--app-text-muted);
    font-size: 0.78rem;
}

.app-section-label,
.app-kicker {
    color: var(--app-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.app-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 0.7rem;
    color: var(--app-text-secondary);
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.app-nav-link:hover,
.app-nav-link:focus,
.app-nav-link:focus-visible,
.app-nav-link.active {
    background: var(--app-active-bg);
    border-color: rgba(255, 255, 255, 0.04);
    color: var(--app-text);
}

.app-nav-link:focus-visible,
.btn:focus-visible,
.form-control:focus,
.form-select:focus {
    outline: 2px solid rgba(var(--app-accent-rgb), 0.24);
    outline-offset: 0;
}

.app-nav-hint {
    color: var(--app-text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

.app-sidebar-panel {
    background: var(--app-panel-bg);
    border: 1px solid var(--app-border);
    border-radius: 0.75rem;
}

.app-highlight-panel {
    background: var(--app-accent-surface);
    border-color: var(--app-accent-border);
}

.card {
    background: var(--app-panel-bg);
    border: 1px solid var(--app-border);
    box-shadow: var(--app-panel-shadow);
}

.card-header {
    padding: 1rem 1.25rem 0;
    border-bottom: 0;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    border-top: 1px solid var(--app-border);
    background: transparent;
}

.app-stat-card {
    height: 100%;
    padding: 1rem;
    border: 1px solid var(--app-border);
    border-radius: 0.75rem;
    background: var(--app-active-bg);
}

.app-stat-label {
    color: var(--app-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 0.55rem;
}

.app-stat-value {
    color: var(--app-text);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.app-stat-value-sm {
    color: var(--app-text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.app-detail-row + .app-detail-row {
    border-top: 1px solid var(--app-border);
    margin-top: 0.85rem;
    padding-top: 0.85rem;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.018);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.025);
    --bs-table-color: var(--app-text);
    --bs-table-border-color: var(--app-border);
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    padding: 0.85rem 1rem;
    background: transparent;
    box-shadow: none;
}

.table thead th {
    color: var(--app-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-bottom-color: var(--app-border);
}

.table tbody tr:hover > * {
    background: rgba(42, 39, 45, 0.72);
}

.table a:not(.btn) {
    text-underline-offset: 0.18em;
    text-decoration-color: rgba(var(--app-accent-rgb), 0.28);
}

.table a:not(.btn):hover {
    text-decoration-color: currentColor;
}

.form-control,
.form-select {
    min-height: 3rem;
    background: var(--app-input-bg);
    border-color: var(--app-border);
    color: var(--app-text);
}

.form-control::placeholder {
    color: var(--app-text-muted);
}

.form-control:focus,
.form-select:focus {
    background: var(--app-input-bg);
    color: var(--app-text);
    border-color: var(--app-accent);
    box-shadow: none;
}

.form-text {
    color: var(--app-text-muted);
}

.btn {
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.72rem 1rem;
}

.btn:focus,
.btn:focus-visible {
    box-shadow: none;
}

.btn-dark {
    --bs-btn-color: var(--app-text);
    --bs-btn-bg: var(--app-accent);
    --bs-btn-border-color: var(--app-accent);
    --bs-btn-hover-color: var(--app-text);
    --bs-btn-hover-bg: var(--app-accent-hover);
    --bs-btn-hover-border-color: var(--app-accent-hover);
    --bs-btn-active-color: var(--app-text);
    --bs-btn-active-bg: var(--app-accent-active);
    --bs-btn-active-border-color: var(--app-accent-active);
    --bs-btn-disabled-bg: rgba(var(--app-accent-rgb), 0.45);
    --bs-btn-disabled-border-color: rgba(var(--app-accent-rgb), 0.45);
}

.btn-outline-dark {
    --bs-btn-color: var(--app-text);
    --bs-btn-border-color: var(--app-border);
    --bs-btn-hover-color: var(--app-text);
    --bs-btn-hover-bg: var(--app-active-bg);
    --bs-btn-hover-border-color: var(--app-accent-border);
    --bs-btn-active-color: var(--app-text);
    --bs-btn-active-bg: var(--app-active-bg);
    --bs-btn-active-border-color: var(--app-accent-border);
}

.btn-outline-danger {
    --bs-btn-color: var(--app-negative);
    --bs-btn-border-color: rgba(240, 91, 91, 0.4);
    --bs-btn-hover-color: var(--app-text);
    --bs-btn-hover-bg: rgba(240, 91, 91, 0.14);
    --bs-btn-hover-border-color: rgba(240, 91, 91, 0.55);
    --bs-btn-active-color: var(--app-text);
    --bs-btn-active-bg: rgba(240, 91, 91, 0.18);
    --bs-btn-active-border-color: rgba(240, 91, 91, 0.55);
}

.btn-sm {
    padding: 0.5rem 0.85rem;
}

.badge {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.text-bg-dark {
    background: #262229 !important;
    border: 1px solid var(--app-border);
    color: var(--app-text) !important;
}

.text-bg-light {
    background: var(--app-active-bg) !important;
    border: 1px solid var(--app-border);
    color: var(--app-text-secondary) !important;
}

.list-group {
    --bs-list-group-bg: transparent;
    --bs-list-group-border-color: var(--app-border);
    --bs-list-group-color: var(--app-text);
}

.list-group-item {
    background: transparent;
    color: var(--app-text);
    border-color: var(--app-border);
}

.text-secondary-soft {
    color: var(--app-text-secondary) !important;
}

.text-muted-soft {
    color: var(--app-text-muted) !important;
}

.text-accent {
    color: var(--app-accent) !important;
}

.text-positive {
    color: var(--app-positive) !important;
}

.text-negative {
    color: var(--app-negative) !important;
}

.app-toast {
    width: min(100%, 360px);
    min-width: 0;
    max-width: calc(100vw - 1.5rem);
    background: var(--app-panel-bg);
    color: var(--app-text);
    border: 1px solid var(--app-border) !important;
    border-left-width: 3px !important;
    box-shadow: var(--app-panel-shadow);
}

.app-toast-success {
    border-left-color: var(--app-positive) !important;
}

.app-toast-info,
.app-toast-warning {
    border-left-color: var(--app-accent) !important;
}

.app-toast-danger {
    border-left-color: var(--app-negative) !important;
}

.app-toast .toast-body {
    padding: 1rem 1rem 1rem 1.1rem;
}

.app-toast .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.72;
}

.toast-container {
    top: 0;
    right: 0;
    left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.trollbox-widget {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1030;
    width: auto;
    pointer-events: none;
}

.trollbox-widget > * {
    pointer-events: auto;
}

.trollbox-launcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.82rem 1rem;
    border: 1px solid #2b2f3a;
    border-radius: 0.9rem;
    background: #151820;
    color: var(--app-text);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    margin-left: auto;
}

.trollbox-launcher:hover,
.trollbox-launcher:focus,
.trollbox-launcher:focus-visible {
    border-color: #393e4d;
    background: #191c24;
    color: var(--app-text);
}

.trollbox-widget.is-open .trollbox-launcher {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.trollbox-launcher-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 0.65rem;
    background: rgba(var(--app-accent-rgb), 0.12);
    color: var(--app-accent);
}

.trollbox-launcher-icon svg {
    width: 0.9rem;
    height: 0.9rem;
}

.trollbox-unread-badge {
    min-width: 1.35rem;
    padding: 0.2rem 0.4rem;
    border-radius: 999px;
    background: var(--app-accent);
    color: var(--app-text);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}

.trollbox-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.85rem);
    width: min(calc(100vw - 2rem), 24rem);
    height: min(31rem, calc(100vh - 7rem));
    display: flex;
    flex-direction: column;
    border: 1px solid var(--app-border);
    border-radius: 0.95rem;
    background: #14171d;
    box-shadow: var(--app-panel-shadow);
    overflow: hidden;
}

.trollbox-safety {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(13, 15, 18, 0.92);
}

.trollbox-safety[hidden] {
    display: none;
}

.trollbox-safety-card {
    width: 100%;
    padding: 1rem;
    border: 1px solid #343948;
    border-radius: 0.9rem;
    background: #171a21;
}

.trollbox-safety-title {
    margin: 0 0 0.55rem;
    color: var(--app-text);
    font-size: 0.95rem;
    font-weight: 700;
}

.trollbox-safety-copy {
    margin: 0 0 0.9rem;
    color: var(--app-text-secondary);
    font-size: 0.82rem;
    line-height: 1.55;
}

.trollbox-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem 0.85rem;
    border-bottom: 1px solid var(--app-border);
    background: #171a21;
    flex: 0 0 auto;
}

.trollbox-panel-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.trollbox-panel-subtitle {
    color: var(--app-text-muted);
    font-size: 0.8rem;
}

.trollbox-panel .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.72;
}

.trollbox-panel-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    background: #14171d;
}

.trollbox-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    padding: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: #343948 transparent;
}

.trollbox-messages::-webkit-scrollbar {
    width: 0.45rem;
}

.trollbox-messages::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #343948;
}

.trollbox-messages::-webkit-scrollbar-track {
    background: transparent;
}

.trollbox-empty {
    margin: auto 0.95rem;
    padding: 1rem;
    border: 1px dashed #2a2f39;
    border-radius: 0.9rem;
    background: #171a21;
    color: var(--app-text-muted);
    font-size: 0.82rem;
    text-align: center;
}

.trollbox-message {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    width: fit-content;
    max-width: 86%;
    gap: 0.38rem;
    padding: 0.72rem 0.78rem 0.7rem;
    border: 1px solid #252932;
    border-radius: 0.95rem 0.95rem 0.95rem 0.45rem;
    background: #1a1d25;
}

.trollbox-message.is-own {
    align-self: flex-end;
    border-color: rgba(var(--app-accent-rgb), 0.28);
    border-radius: 0.95rem 0.95rem 0.45rem 0.95rem;
    background: #1b1e2b;
}

.trollbox-message-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.trollbox-message-user {
    color: var(--app-text);
    font-size: 0.79rem;
    font-weight: 600;
    line-height: 1;
}

.trollbox-message-time {
    color: var(--app-text-muted);
    font-size: 0.7rem;
    white-space: nowrap;
    line-height: 1;
}

.trollbox-message-body {
    margin: 0;
    color: var(--app-text-secondary);
    font-size: 0.84rem;
    line-height: 1.5;
    word-break: break-word;
}

.trollbox-form {
    flex: 0 0 auto;
    padding: 0.9rem 0.95rem 0.95rem;
    border-top: 1px solid var(--app-border);
    background: #11141b;
}

.trollbox-form .form-control {
    background: var(--app-input-bg);
    border-color: #262b35;
    color: var(--app-text);
    min-height: 2.9rem;
}

.trollbox-form .form-control::placeholder {
    color: var(--app-text-muted);
}

.trollbox-form .btn {
    min-width: 4.5rem;
    font-weight: 600;
}

.trollbox-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.55rem;
    color: var(--app-text-muted);
    font-size: 0.74rem;
}

.trollbox-form-status {
    min-height: 1em;
}

.trollbox-form-status.is-error {
    color: var(--app-negative);
}

.app-market-grid-item {
    height: 100%;
    padding: 1rem;
    border: 1px solid var(--app-border);
    border-radius: 0.75rem;
    background: var(--app-active-bg);
}

.app-divider {
    border-top: 1px solid var(--app-border);
}

.app-body-trading {
    background: #111318;
}

.app-body-home {
    --home-bg: #111216;
    background: var(--home-bg);
    overflow-x: hidden;
}

.trade-shell {
    min-height: 100vh;
    width: 100%;
    background: #0f1014;
}

.app-body-home .trade-shell {
    background: var(--home-bg);
}

.home-main {
    padding: 0;
}

.app-body-home .trade-main {
    background: var(--home-bg);
    padding: 0;
}

@media (min-width: 992px) {
    .home-main {
        padding: 0;
    }
}

.app-body-home .app-content-grid {
    background: var(--home-bg);
    width: 100%;
    max-width: none;
}

.home-content {
    background: var(--home-bg);
    min-width: 0;
}

.app-body-home .trade-topbar-inner,
.app-body-home .trade-topbar-actions {
    min-width: 0;
}

.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 4.25rem);
    overflow: hidden;
    background: transparent;
}

.home-hero-content {
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    width: min(100%, 66rem);
    padding: clamp(3.5rem, 11vh, 7rem) 1.25rem clamp(3.5rem, 10vh, 6.5rem);
    text-align: center;
}

.home-hero-title {
    max-width: 100%;
    margin: 0 auto;
    color: #f0f1f1;
    font-size: clamp(2.45rem, 5.25vw, 4.85rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
    text-wrap: balance;
}

.home-hero-title-line {
    display: block;
}

@media (min-width: 768px) {
    .home-hero-title-line {
        white-space: nowrap;
    }
}

.home-hero-copy {
    max-width: 41rem;
    margin: 1.55rem auto 0;
    color: #b7bdc5;
    font-size: clamp(1rem, 1.18vw, 1.12rem);
    line-height: 1.55;
    text-wrap: pretty;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 2.3rem;
}

.home-hero-button {
    min-width: 10.75rem;
    padding: 0.72rem 1.2rem;
    border-radius: 0.45rem;
    font-size: 0.98rem;
    font-weight: 700;
}

.home-hero-button-primary {
    border-color: #9be342;
    background: #9be342;
    color: #101315;
}

.home-hero-button-primary:hover,
.home-hero-button-primary:focus-visible {
    border-color: #a9ed58;
    background: #a9ed58;
    color: #101315;
}

.home-hero-button-secondary {
    border-color: #8bcf3f;
    background: transparent;
    color: #f0f1f1;
}

.home-hero-button-secondary:hover,
.home-hero-button-secondary:focus-visible {
    border-color: #a9ed58;
    background: #151a15;
    color: #ffffff;
}

.home-hero-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-top: clamp(3.25rem, 8vh, 4.75rem);
    font-size: clamp(0.82rem, 1vw, 0.95rem);
}

.home-hero-proof {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #f4f5f5;
    font-weight: 700;
}

.home-hero-proof::before {
    content: "";
    width: 0.58rem;
    height: 0.9rem;
    border-right: 2px solid #9be342;
    border-bottom: 2px solid #9be342;
    transform: rotate(42deg) translateY(-0.08rem);
    transform-origin: center;
}

.home-hero-stats > span {
    width: 1px;
    height: 0.95rem;
    background: rgba(255, 255, 255, 0.22);
}

.home-market-section {
    padding: 0 0 clamp(3rem, 8vw, 6rem);
    background: transparent;
}

.home-market-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid #252a33;
    border-radius: 0.85rem;
    background: #17191e;
    min-width: 0;
}

.home-market-card {
    display: grid;
    gap: 0.85rem;
    min-height: 13rem;
    padding: 1.45rem;
    border-right: 1px solid #252a33;
    color: #f0f1f1;
    text-decoration: none;
    min-width: 0;
}

.home-market-card:last-child {
    border-right: 0;
}

.home-market-card:hover,
.home-market-card:focus-visible {
    background: #1b1e24;
    color: #ffffff;
}

.home-market-card-top,
.home-market-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.home-market-icon,
.home-market-icon-fallback {
    display: inline-flex;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 50%;
}

.home-market-icon {
    object-fit: contain;
}

.home-market-icon-fallback {
    align-items: center;
    justify-content: center;
    border: 1px solid #303743;
    background: #111419;
    color: #f0f1f1;
    font-weight: 700;
}

.home-market-sparkline-wrap {
    position: relative;
    display: block;
    width: min(8.75rem, 52%);
    min-width: 4.25rem;
}

.home-market-sparkline {
    display: block;
    width: 100%;
    height: 3.4rem;
}

.home-market-sparkline polyline {
    fill: none;
    stroke: #7a808a;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.home-market-sparkline-positive polyline {
    stroke: var(--app-positive);
}

.home-market-sparkline-negative polyline {
    stroke: var(--app-negative);
}

.home-market-change {
    position: absolute;
    right: 0;
    bottom: -0.65rem;
    min-width: 4rem;
    padding: 0.22rem 0.48rem;
    border: 1px solid #343948;
    border-radius: 0.45rem;
    background: #20242b;
    color: #c1c6ce;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.home-market-change-positive {
    border-color: rgba(114, 209, 92, 0.38);
    background: #1a2a1d;
    color: #91e87f;
}

.home-market-change-negative {
    border-color: rgba(240, 91, 91, 0.42);
    background: #2a181b;
    color: #ff7777;
}

.home-market-name {
    align-self: end;
    color: #f0f1f1;
    font-size: 0.96rem;
    font-weight: 700;
    min-width: 0;
}

.home-market-price {
    min-width: 0;
    color: #ffffff;
    font-size: clamp(1.12rem, 1.5vw, 1.46rem);
    font-weight: 750;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

.home-market-code {
    flex: 0 0 auto;
    color: #9ba1aa;
    font-size: 1rem;
    font-weight: 750;
}

.home-coin-table-section {
    padding: 0 0 clamp(4rem, 9vw, 7rem);
    background: transparent;
}

.home-coin-table-wrap {
    max-width: 100%;
    contain: layout paint;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.home-coin-table {
    min-width: 58rem;
    --bs-table-bg: transparent;
    --bs-table-color: #f0f1f1;
    --bs-table-border-color: #252a33;
}

.home-coin-table thead th {
    padding: 0 1rem 0.85rem;
    border-bottom: 2px solid #d8dadd;
    color: #8f949d;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.home-coin-table tbody td {
    padding: 1.35rem 1rem;
    border-bottom: 1px solid #252a33;
    color: #f0f1f1;
    font-size: 0.98rem;
}

.home-coin-rank,
.home-coin-price,
.home-coin-volume {
    color: #f4f5f5;
    font-weight: 750;
}

.home-coin-name-cell {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.home-coin-icon,
.home-coin-icon-fallback {
    flex: 0 0 auto;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
}

.home-coin-icon {
    object-fit: contain;
}

.home-coin-icon-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #303743;
    background: #17191e;
    color: #f0f1f1;
    font-size: 0.82rem;
    font-weight: 700;
}

.home-coin-name {
    color: #f4f5f5;
    font-weight: 700;
}

.home-coin-code {
    color: #8f949d;
    font-size: 0.78rem;
    font-weight: 700;
}

.home-coin-change {
    font-weight: 700;
}

.home-coin-change-positive {
    color: #72d15c;
}

.home-coin-change-negative {
    color: #f05b5b;
}

.home-coin-change-neutral,
.home-coin-volume,
.home-coin-unavailable {
    color: #8f949d;
}

.home-coin-sparkline-cell {
    min-width: 12rem;
}

.home-coin-sparkline {
    width: 10.5rem;
    max-width: 100%;
    height: 3.2rem;
}

.home-coin-sparkline polyline {
    fill: none;
    stroke: #7a808a;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.home-coin-sparkline-positive polyline {
    stroke: var(--app-positive);
}

.home-coin-sparkline-negative polyline {
    stroke: var(--app-negative);
}

.home-coin-trade-button {
    min-width: 5rem;
    padding: 0.38rem 0.9rem;
    border: 2px solid #d8dadd;
    border-radius: 999px;
    color: #f4f5f5;
    font-size: 0.9rem;
    font-weight: 700;
}

.home-coin-trade-button:hover,
.home-coin-trade-button:focus-visible {
    border-color: #9be342;
    background: #9be342;
    color: #101315;
}

.home-coin-unavailable {
    font-size: 0.82rem;
    font-weight: 700;
}

.home-learn-section {
    padding: 0 0 clamp(5rem, 10vw, 8rem);
    background: transparent;
}

.home-learn-heading {
    max-width: 46rem;
    margin-bottom: clamp(2.8rem, 5vw, 4.5rem);
}

.home-learn-title {
    margin: 0;
    color: #f4f5f5;
    font-size: clamp(2.8rem, 5vw, 4.7rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.home-learn-copy {
    max-width: 38rem;
    margin: 1.35rem auto 0;
    color: #a7adb7;
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    font-weight: 500;
    line-height: 1.35;
}

.home-learn-card {
    height: 100%;
    color: #f4f5f5;
    min-width: 0;
}

.home-blog-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.home-blog-card-link:hover,
.home-blog-card-link:focus-visible {
    color: #ffffff;
}

.home-learn-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(14rem, 18vw, 18.5rem);
    overflow: hidden;
    border: 1px solid #d8dadd;
    border-radius: 0.55rem 0.55rem 0 0;
    background: #f3f3f2;
    min-width: 0;
}

.home-learn-illustration {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(8rem, 11vw, 11.5rem);
    height: clamp(8rem, 11vw, 11.5rem);
    border: 1px solid #dde0e2;
    border-radius: 50%;
    background: #ffffff;
}

.home-learn-illustration::before,
.home-learn-illustration::after {
    position: absolute;
    content: "";
    border: 1px solid #dde0e2;
    background: #ffffff;
}

.home-learn-illustration::before {
    right: 78%;
    bottom: 11%;
    width: 3.4rem;
    height: 3.1rem;
    border-radius: 0.45rem;
}

.home-learn-illustration::after {
    left: 78%;
    bottom: 15%;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 50%;
}

.home-learn-illustration img {
    position: relative;
    z-index: 1;
    width: 58%;
    height: 58%;
    object-fit: contain;
}

.home-learn-illustration-primary {
    background: #f4eee4;
}

.home-learn-illustration-secondary {
    background: #eef3f8;
}

.home-learn-illustration-tertiary {
    background: #f1eee8;
}

.home-learn-illustration-quaternary {
    background: #f6f0df;
}

.home-learn-play {
    position: absolute;
    inset: 50% auto auto 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.55rem;
    height: 3.55rem;
    border: 1px solid #e1e4e8;
    border-radius: 50%;
    background: #ffffff;
    color: #7c8592;
    transform: translate(-50%, -50%);
}

.home-learn-play svg {
    width: 1.25rem;
    height: 1.25rem;
}

.home-learn-play path {
    fill: currentColor;
}

.home-blog-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-blog-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(7rem, 10vw, 10rem);
    height: clamp(7rem, 10vw, 10rem);
    border: 1px solid #dde0e2;
    border-radius: 50%;
    background: #ffffff;
    color: #101315;
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 750;
}

.home-learn-card-body {
    padding-top: 2rem;
}

.home-learn-card-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.35rem, 1.6vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.home-blog-excerpt {
    margin: 0.8rem 0 0;
    color: #a7adb7;
    font-size: 0.98rem;
    line-height: 1.55;
}

.home-learn-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.55rem;
    color: #a7adb7;
    font-size: 0.98rem;
    font-weight: 700;
    min-width: 0;
}

.home-learn-author {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.home-learn-author span {
    flex: 0 0 auto;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #72d15c;
}

.home-static-section {
    min-height: calc(100vh - 10rem);
    padding: clamp(5rem, 10vw, 8rem) 0;
    background: transparent;
}

.home-static-container {
    width: 100%;
    padding-right: clamp(1rem, 3vw, 2.5rem);
    padding-left: clamp(1rem, 3vw, 2.5rem);
}

.home-static-panel {
    max-width: 48rem;
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3rem);
    border: 1px solid #252a33;
    border-radius: 0.65rem;
    background: #15181d;
    text-align: center;
}

.home-static-kicker {
    margin: 0 0 0.75rem;
    color: #9be342;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.home-static-title {
    margin: 0;
    color: #f4f5f5;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.home-static-copy {
    max-width: 34rem;
    margin: 1rem auto 0;
    color: #a7adb7;
    font-size: 1rem;
    line-height: 1.6;
}

.home-terms-section,
.home-legal-section {
    padding-top: clamp(3rem, 7vw, 5rem);
}

.home-terms-section .home-static-title,
.home-legal-section .home-static-title {
    max-width: none;
    margin-bottom: clamp(1.6rem, 4vw, 2.5rem);
}

.home-api-section {
    padding-top: clamp(3rem, 7vw, 5rem);
}

.home-api-hero {
    max-width: 54rem;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.home-api-kicker {
    margin: 0 0 0.65rem;
    color: #9be342;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-api-copy {
    max-width: 44rem;
    margin-right: 0;
    margin-left: 0;
}

.home-api-summary {
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.home-api-summary-card,
.home-api-example {
    height: 100%;
    padding: 1.25rem;
    border: 1px solid #252a33;
    border-radius: 0.65rem;
    background: #15181d;
}

.home-api-summary-label {
    display: block;
    margin-bottom: 0.55rem;
    color: #8f97a3;
    font-size: 0.82rem;
    font-weight: 700;
}

.home-api-summary-card code,
.home-api-summary-card strong {
    color: #f4f5f5;
    font-size: 1rem;
    font-weight: 700;
}

.home-api-section-block {
    margin-top: clamp(2rem, 5vw, 3.5rem);
    color: #c8cdd6;
}

.home-api-section-block h2 {
    margin: 0 0 1rem;
    color: #f4f5f5;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.home-api-section-block h3 {
    margin: 0 0 0.85rem;
    color: #f4f5f5;
    font-size: 1rem;
    font-weight: 700;
}

.home-api-section-block p,
.home-api-section-block li {
    color: #a7adb7;
    line-height: 1.7;
}

.home-api-table-wrap {
    border: 1px solid #252a33;
    border-radius: 0.65rem;
    background: #15181d;
}

.home-api-table {
    min-width: 58rem;
    color: #c8cdd6;
}

.home-api-table thead th {
    padding: 1rem;
    border-bottom: 1px solid #2c323c;
    color: #8f97a3;
    font-size: 0.78rem;
    font-weight: 700;
}

.home-api-table tbody td {
    padding: 1rem;
    border-color: #252a33;
    vertical-align: top;
}

.home-api-table code,
.home-api-example code,
.home-api-section-block pre code {
    color: #e8edf3;
}

.home-api-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    padding: 0.25rem 0.45rem;
    border: 1px solid rgba(155, 227, 66, 0.35);
    border-radius: 0.35rem;
    color: #9be342;
    font-size: 0.78rem;
    font-weight: 700;
}

.home-api-section-block pre {
    margin: 0 0 1rem;
    padding: 1rem;
    overflow-x: auto;
    border: 1px solid #252a33;
    border-radius: 0.55rem;
    background: #101215;
    color: #e8edf3;
}

.home-status-section {
    padding-top: clamp(3rem, 7vw, 5rem);
}

.home-status-table-wrap {
    border: 1px solid #252a33;
    border-radius: 0.65rem;
    background: #15181d;
}

.home-status-table {
    min-width: 62rem;
    color: #c8cdd6;
}

.home-status-table thead th {
    padding: 1rem;
    border-bottom: 1px solid #2c323c;
    color: #8f97a3;
    font-size: 0.78rem;
    font-weight: 700;
}

.home-status-table tbody td {
    padding: 1rem;
    border-color: #252a33;
    vertical-align: middle;
}

.home-status-coin {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.home-status-coin strong,
.home-status-coin small {
    display: block;
}

.home-status-coin strong {
    color: #f4f5f5;
    font-weight: 700;
}

.home-status-coin small,
.home-status-note {
    color: #8f97a3;
    font-size: 0.82rem;
}

.home-status-icon,
.home-status-icon-fallback {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
}

.home-status-icon-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #222831;
    color: #f4f5f5;
    font-weight: 700;
}

.home-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.5rem;
    padding: 0.32rem 0.55rem;
    border: 1px solid #333a45;
    border-radius: 0.4rem;
    background: #101215;
    color: #c8cdd6;
    font-size: 0.78rem;
    font-weight: 700;
}

.home-status-badge-online {
    border-color: rgba(114, 209, 92, 0.35);
    color: #72d15c;
}

.home-status-badge-degraded,
.home-status-badge-stale {
    border-color: rgba(245, 130, 11, 0.35);
    color: #f5a13d;
}

.home-status-badge-offline {
    border-color: rgba(240, 91, 91, 0.35);
    color: #f05b5b;
}

.home-status-empty {
    color: #8f97a3;
    text-align: center;
}

.home-static-content {
    width: 100%;
    color: #c8cdd6;
    font-size: clamp(1rem, 1.2vw, 1.08rem);
    line-height: 1.75;
}

.home-static-content h2,
.home-static-content h3,
.home-static-content h4 {
    margin: 2rem 0 0.85rem;
    color: #f4f5f5;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.home-static-content p,
.home-static-content ul,
.home-static-content ol,
.home-static-content blockquote,
.home-static-content pre {
    margin-bottom: 1.15rem;
}

.home-static-content a {
    color: #9be342;
}

.home-static-content blockquote {
    padding-left: 1rem;
    border-left: 3px solid #9be342;
    color: #f4f5f5;
}

.home-static-content code,
.home-static-content pre {
    border: 1px solid #252a33;
    border-radius: 0.4rem;
    background: #15181d;
}

.home-static-content code {
    padding: 0.08rem 0.28rem;
}

.home-static-content pre {
    padding: 1rem;
    overflow-x: auto;
}

.home-blog-post-section {
    padding-top: clamp(4rem, 8vw, 7rem);
}

.home-blog-post-shell {
    max-width: 54rem;
    margin: 0 auto;
}

.home-blog-back-link {
    color: #a7adb7;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.home-blog-back-link:hover,
.home-blog-back-link:focus-visible {
    color: #f4f5f5;
}

.home-blog-post-header {
    margin-top: 2rem;
}

.home-blog-post-title {
    margin: 0;
    color: #f4f5f5;
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.home-blog-post-date {
    display: block;
    margin-top: 1.25rem;
    color: #a7adb7;
    font-size: 1rem;
    font-weight: 700;
}

.home-blog-post-image {
    display: block;
    width: 100%;
    max-height: 34rem;
    margin-top: 2.4rem;
    border: 1px solid #252a33;
    border-radius: 0.55rem;
    object-fit: cover;
}

.home-blog-post-body {
    margin-top: 2.5rem;
    color: #c8cdd6;
    font-size: 1.08rem;
    line-height: 1.75;
}

.home-blog-post-body h2,
.home-blog-post-body h3,
.home-blog-post-body h4 {
    margin: 2rem 0 0.9rem;
    color: #f4f5f5;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.home-blog-post-body p,
.home-blog-post-body ul,
.home-blog-post-body ol,
.home-blog-post-body blockquote,
.home-blog-post-body pre {
    margin-bottom: 1.2rem;
}

.home-blog-post-body a {
    color: #9be342;
}

.home-blog-post-body blockquote {
    padding-left: 1rem;
    border-left: 3px solid #9be342;
    color: #f4f5f5;
}

.home-blog-post-body code,
.home-blog-post-body pre {
    border: 1px solid #252a33;
    border-radius: 0.4rem;
    background: #15181d;
}

.home-blog-post-body code {
    padding: 0.08rem 0.28rem;
}

.home-blog-post-body pre {
    padding: 1rem;
    overflow-x: auto;
}

.site-footer {
    border-top: 1px solid #252a33;
    background: var(--home-bg, #111216);
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 0;
    color: #8f949d;
    font-size: 0.9rem;
    font-weight: 600;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.site-footer-links a {
    color: #a7adb7;
    text-decoration: none;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
    color: #f4f5f5;
}

@media (max-width: 767.98px) {
    .home-hero-content {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .home-hero-copy {
        margin-top: 1.25rem;
    }

    .home-hero-actions {
        margin-top: 1.75rem;
    }

    .home-hero-button {
        width: 100%;
        max-width: 18rem;
    }

    .home-hero-stats {
        display: grid;
        gap: 0.55rem;
        margin-top: 3rem;
    }

    .home-hero-stats > span {
        display: none;
    }

    .home-coin-table-section {
        padding-bottom: 3.5rem;
    }

    .home-learn-section {
        padding-bottom: 4rem;
    }

    .home-learn-media {
        min-height: 16rem;
    }

    .home-learn-card-body {
        padding-top: 1.5rem;
    }

    .home-learn-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.7rem;
    }

    .site-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 1399.98px) {
    .home-market-board {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-market-card {
        border-top: 0;
        border-right: 1px solid #252a33;
    }

    .home-market-card:nth-child(3n) {
        border-right: 0;
    }

    .home-market-card:nth-child(n + 4) {
        border-top: 1px solid #252a33;
    }
}

@media (max-width: 991.98px) {
    .home-market-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-market-card,
    .home-market-card:nth-child(3n) {
        border-right: 1px solid #252a33;
    }

    .home-market-card:nth-child(even) {
        border-right: 0;
    }

    .home-market-card:nth-child(n + 3) {
        border-top: 1px solid #252a33;
    }

    .home-learn-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.7rem;
    }
}

@media (max-width: 575.98px) {
    .app-body-home .trade-wordmark-primary {
        font-size: 1.35rem;
    }

    .home-market-board {
        grid-template-columns: 1fr;
    }

    .home-market-card,
    .home-market-card:nth-child(3n),
    .home-market-card:nth-child(even) {
        border-right: 0;
    }

    .home-market-card:nth-child(n + 2) {
        border-top: 1px solid #252a33;
    }

    .home-coin-table {
        min-width: 48rem;
    }
}

.trade-topbar {
    border-bottom: 1px solid #23262d;
    background: #111216;
    padding: 0;
}

.trade-topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    min-height: 4.25rem;
    padding: 0.75rem 1.15rem;
}

.trade-topbar-menu {
    align-items: center;
    gap: 1rem;
}

.trade-wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    color: var(--app-text);
    text-decoration: none;
}

.trade-wordmark:hover {
    color: var(--app-text);
}

.trade-wordmark-primary {
    font-size: 1.52rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.trade-navbar-toggler {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    width: 2.45rem;
    height: 2.35rem;
    padding: 0;
    border: 1px solid #262933;
    border-radius: 0.5rem;
    background: #14161b;
}

.trade-navbar-toggler:focus {
    box-shadow: 0 0 0 0.16rem rgb(245 130 11 / 18%);
}

.trade-navbar-toggler-line {
    display: block;
    width: 1.08rem;
    height: 2px;
    border-radius: 1rem;
    background: var(--app-text);
}

.trade-primary-nav {
    gap: 0.15rem;
    margin-left: 1.15rem;
}

.trade-primary-nav .nav-link {
    padding: 0.45rem 0.72rem;
    border: 1px solid transparent;
    border-radius: 0.45rem;
    color: var(--app-text-secondary);
    font-size: 0.84rem;
    font-weight: 500;
}

.trade-primary-nav .nav-link:hover,
.trade-primary-nav .nav-link:focus,
.trade-primary-nav .nav-link.active {
    background: #1a1c23;
    border-color: #262933;
    color: var(--app-text);
}

.trade-search-field {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.35rem;
    padding: 0 0.8rem;
    border: 1px solid #262933;
    border-radius: 0.5rem;
    background: var(--app-input-bg);
}

.trade-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    color: var(--app-text-muted);
}

.trade-search-icon svg {
    display: block;
    width: 0.95rem;
    height: 0.95rem;
    fill: currentColor;
}

.trade-search-field .form-control {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    background: transparent;
    color: var(--app-text);
    box-shadow: none;
}

.trade-search-field .form-control:focus {
    outline: 0;
    border: 0;
}

.trade-user-badge {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid #262933;
    border-radius: 0.5rem;
    background: #0f1115;
}

.trade-user-name {
    color: var(--app-text);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
}

.trade-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-left: auto;
}

.trade-topbar-link {
    color: var(--app-text-secondary);
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
}

.trade-topbar-link:hover,
.trade-topbar-link:focus-visible {
    color: var(--app-text);
}

.trade-topbar-link-button {
    padding: 0;
    border: 0;
    background: transparent;
}

.trade-topbar-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.5rem;
}

.trade-topbar-icon {
    width: 1rem;
    height: 1rem;
    display: block;
}

.trade-topbar-action-label {
    display: none;
}

.trade-main {
    padding: 0.7rem;
}

.trade-terminal {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.trade-market-strip,
.trade-panel,
.trade-history-panel {
    border: 1px solid #252830;
    border-radius: 0.45rem;
    background: #131519;
}

.trade-market-strip {
    display: grid;
    grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.8rem 1rem;
}

.trade-market-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trade-market-summary-copy {
    min-width: 0;
}

.trade-pair-icons {
    position: relative;
    flex-shrink: 0;
}

.trade-pair-icons-summary {
    width: 3rem;
    height: 2.7rem;
}

.trade-pair-icons-list {
    width: 2.45rem;
    height: 2rem;
}

.trade-pair-icon {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid #262a33;
    background: #181b23;
    color: var(--app-text);
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 2px #13151b;
}

.trade-pair-icons-summary .trade-pair-icon-base {
    top: 0;
    left: 0;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    font-size: 0.82rem;
}

.trade-pair-icons-summary .trade-pair-icon-quote {
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.68rem;
}

.trade-pair-icons-list .trade-pair-icon-base {
    top: 0;
    left: 0;
    z-index: 2;
    width: 1.45rem;
    height: 1.45rem;
    font-size: 0.68rem;
}

.trade-pair-icons-list .trade-pair-icon-quote {
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 1.18rem;
    height: 1.18rem;
    font-size: 0.58rem;
}

.trade-pair-icon-base:not(.has-icon) {
    background: #1b2434;
    color: #d5dcff;
}

.trade-pair-icon-quote:not(.has-icon) {
    background: #251c14;
    color: #ffd9ab;
}

.trade-pair-icon.has-icon {
    background: #111318;
}

.app-coin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid #262a33;
    background: #1b2434;
    color: #d5dcff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 2px #13151b;
}

.app-coin-icon.has-icon {
    background: #111318;
    color: var(--app-text);
}

.trade-pair-symbol {
    color: var(--app-text);
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.1;
}

.trade-metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
}

.trade-metric {
    min-width: 0;
    padding: 0 0.85rem;
    border-left: 1px solid #252830;
}

.trade-metric-label {
    color: var(--app-text-muted);
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.trade-metric-value {
    margin-top: 0.2rem;
    color: var(--app-text);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.15;
}

.trade-workspace-grid {
    --trade-primary-panel-height: 32.5rem;
    display: grid;
    grid-template-columns: 18rem minmax(0, 1.65fr) 17.5rem 17.25rem;
    gap: 0.65rem;
    align-items: start;
}

.trade-panel {
    min-width: 0;
    overflow: hidden;
}

.trade-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid #252830;
}

.trade-panel-kicker {
    color: var(--app-text-muted);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.trade-panel-title {
    margin: 0.15rem 0 0;
    color: var(--app-text);
    font-size: 0.92rem;
    font-weight: 700;
}

.trade-panel-icon {
    color: var(--app-text-muted);
    font-size: 0.88rem;
}

.trade-panel-market-list {
    display: flex;
    flex-direction: column;
    padding: 0.8rem;
}

.trade-panel-market-list .trade-panel-header {
    padding: 0 0 0.7rem;
    border-bottom: 0;
}

.trade-market-list-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    margin-top: 0.8rem;
    padding: 0 0.1rem 0.5rem;
    color: var(--app-text-muted);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.trade-market-list {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.2rem;
    min-height: 0;
    max-height: none;
    overflow: auto;
}

.trade-market-search-empty {
    margin-top: 0.75rem;
}

.trade-market-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.7rem 0.75rem;
    border: 1px solid #20232a;
    border-radius: 0.45rem !important;
    background: #121418;
    color: var(--app-text);
    text-decoration: none;
}

.trade-market-list-item:hover,
.trade-market-list-item:focus,
.trade-market-list-item.is-active {
    border-color: rgba(84, 56, 255, 0.35);
    background: #181a21;
    color: var(--app-text);
}

.trade-market-list-main {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.trade-coin-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.trade-coin-icon-summary {
    padding: 0.16rem;
}

.trade-coin-icon-list {
    padding: 0.12rem;
}

.trade-market-list-symbol {
    color: var(--app-text);
    font-size: 0.87rem;
    font-weight: 600;
}

.trade-market-list-name,
.trade-market-list-note {
    color: var(--app-text-secondary);
    font-size: 0.74rem;
}

.trade-market-list-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.trade-market-list-badge {
    padding: 0.2rem 0.45rem;
    border: 1px solid #262933;
    border-radius: 999px;
    background: #1a1c23;
    color: var(--app-text);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.trade-empty-state {
    padding: 0.95rem;
    border: 1px dashed #262933;
    border-radius: 0.45rem;
    color: var(--app-text-secondary);
    text-align: center;
    font-size: 0.82rem;
}

.trade-panel-chart,
.trade-panel-book,
.trade-panel-ticket {
    display: flex;
    flex-direction: column;
}

.trade-panel-market-list,
.trade-panel-chart,
.trade-panel-book {
    height: var(--trade-primary-panel-height);
}

.trade-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.95rem;
}

.trade-subtab {
    padding: 0 0 0.5rem;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--app-text-muted);
    font-size: 0.84rem;
    font-weight: 500;
}

.trade-subtab.active {
    border-color: #5438ff;
    color: var(--app-text);
}

.trade-chart-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid #252830;
}

.trade-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.42rem;
    border: 1px solid transparent;
    border-radius: 0.28rem;
    background: transparent;
    color: var(--app-text-muted);
    font-size: 0.74rem;
    font-weight: 600;
}

.trade-chip.is-active {
    border-color: rgba(var(--app-accent-rgb), 0.38);
    background: rgba(var(--app-accent-rgb), 0.1);
    color: var(--app-text);
}

.trade-chip:disabled {
    opacity: 0.72;
    cursor: wait;
}

.trade-chart-stage {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0.65rem;
}

.trade-chart-quote {
    position: absolute;
    top: 0.95rem;
    right: 1rem;
    z-index: 1;
    color: var(--app-text-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.trade-chart-surface {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid #1f222a;
    border-radius: 0.35rem;
    background: #131417;
}

.trade-chart-container {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
}

.trade-chart-message {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    color: var(--app-text-secondary);
    font-size: 0.84rem;
    font-weight: 500;
    text-align: center;
    pointer-events: none;
}

.trade-chart-message.is-error {
    color: var(--app-negative);
}

.trade-book-content {
    display: flex;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
}

.trade-book-pane {
    width: 100%;
    height: 100%;
}

.trade-book-pane.show.active {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.trade-book-head,
.trade-book-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(4.75rem, 0.9fr) minmax(5.25rem, 1fr);
    gap: 0.65rem;
}

.trade-book-head {
    padding: 0.78rem 1rem 0.48rem;
    color: var(--app-text-muted);
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.1;
}

.trade-book-head-book {
    padding-bottom: 0.42rem;
}

.trade-book-head-trades {
    padding-bottom: 0.5rem;
}

.trade-book-head span:nth-child(n + 2),
.trade-book-row span:nth-child(n + 2) {
    text-align: right;
}

.trade-book-list {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    padding: 0 1rem;
}

.trade-book-list-asks {
    flex: 1 1 0;
    min-height: 0;
    padding-bottom: 0.14rem;
    overflow: auto;
}

.trade-book-list-bids {
    flex: 1 1 0;
    min-height: 0;
    padding-top: 0.14rem;
    overflow: auto;
}

.trade-book-list-trades {
    flex: 1 1 auto;
    min-height: 0;
    padding-bottom: 0.4rem;
    overflow: auto;
}

.trade-book-row {
    position: relative;
    z-index: 0;
    align-items: center;
    min-height: 1.72rem;
    padding: 0.18rem 0.38rem;
    border-radius: 0.48rem;
    color: var(--app-text-secondary);
    font-size: 0.74rem;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

button.trade-book-row {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    font: inherit;
    appearance: none;
}

button.trade-book-row:disabled {
    opacity: 1;
}

.trade-book-row > * {
    position: relative;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trade-book-row[data-trade-book-level] {
    cursor: pointer;
    transition: background-color 0.14s ease, transform 0.14s ease;
}

.trade-book-row[data-trade-book-level]:hover {
    background: rgba(255, 255, 255, 0.03);
}

.trade-book-row[data-trade-book-level]:active {
    transform: scale(0.995);
}

.trade-book-row[data-trade-book-level]:focus-visible {
    outline: 1px solid rgba(122, 94, 246, 0.72);
    outline-offset: 1px;
}

.trade-book-row::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: var(--depth);
    border-radius: inherit;
    z-index: 0;
}

.trade-book-row-ask::before {
    background: rgba(255, 84, 120, 0.12);
}

.trade-book-row-bid::before {
    background: rgba(36, 214, 164, 0.12);
}

.trade-book-row-ask .trade-book-price {
    color: var(--app-negative);
}

.trade-book-row-bid .trade-book-price {
    color: var(--app-positive);
}

.trade-book-row-trade::before {
    display: none;
}

.trade-book-row-trade {
    min-height: 1.64rem;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
}

.trade-book-row-trade-buy .trade-book-price {
    color: var(--app-positive);
}

.trade-book-row-trade-sell .trade-book-price {
    color: var(--app-negative);
}

.trade-book-mid {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    padding: 0.62rem 1rem 0.58rem;
    border-top: 1px solid #252830;
    border-bottom: 1px solid #252830;
    margin: 0.3rem 0 0.26rem;
}

.trade-book-mid-price {
    color: var(--app-positive);
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.trade-book-mid-quote {
    color: var(--app-text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.trade-book-balance {
    padding: 0.78rem 1rem 0.92rem;
    margin-top: auto;
}

.trade-book-balance-track {
    display: flex;
    width: 100%;
    height: 2rem;
    overflow: hidden;
    border-radius: 0.45rem;
    background: #101115;
}

.trade-book-balance-fill {
    display: block;
    height: 100%;
}

.trade-book-balance-fill.is-bid {
    background: var(--app-positive);
}

.trade-book-balance-fill.is-ask {
    background: var(--app-negative);
}

.trade-book-balance-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 0.42rem;
    color: var(--app-text-secondary);
    font-size: 0.68rem;
    letter-spacing: 0.03em;
}

.trade-book-trades-summary {
    border-top: 1px solid #252830;
}

.trade-panel-ticket .trade-panel-header {
    padding-bottom: 0.7rem;
}

.trade-side-tabs {
    gap: 0.55rem;
    padding: 0.85rem 0.85rem 0;
}

.trade-side-tabs .nav-link {
    width: 100%;
    padding: 0.62rem 0.75rem;
    border: 1px solid #252830;
    border-radius: 999px;
    background: #121318;
    color: var(--app-text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
}

.trade-side-tabs .nav-link.active.trade-side-buy {
    border-color: rgba(36, 214, 164, 0.38);
    background: rgba(36, 214, 164, 0.14);
    color: var(--app-positive);
}

.trade-side-tabs .nav-link.active.trade-side-sell {
    border-color: rgba(255, 84, 120, 0.35);
    background: rgba(255, 84, 120, 0.14);
    color: var(--app-negative);
}

.trade-side-content {
    padding: 0.85rem;
}

.trade-readonly-ticket {
    display: grid;
    gap: 0.9rem;
    padding: 1.1rem;
    border: 1px solid #252830;
    border-radius: 0.65rem;
    background: #121419;
    text-align: center;
}

.trade-readonly-ticket-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.1rem;
    border: 1px solid #2d3440;
    border-radius: 50%;
    background: #171b22;
    color: var(--app-accent);
}

.trade-readonly-ticket-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.trade-readonly-ticket-title {
    margin: 0;
    color: var(--app-text);
    font-size: 1rem;
    font-weight: 800;
}

.trade-readonly-ticket-copy {
    margin: 0;
    color: var(--app-text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
}

.trade-order-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.95rem;
    margin-bottom: 0.75rem;
}

.trade-order-type {
    padding-bottom: 0.35rem;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--app-text-muted);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
}

.trade-order-type.is-active {
    border-color: var(--app-accent);
    color: var(--app-text);
}

.trade-balance-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--app-text-secondary);
    font-size: 0.78rem;
}

.trade-balance-action {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--app-text);
    font-weight: 700;
    text-align: right;
    cursor: pointer;
}

.trade-balance-action:hover,
.trade-balance-action:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

.trade-balance-action:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    text-decoration: none;
}

.trade-order-form {
    display: grid;
    gap: 0.72rem;
}

.trade-input-group .input-group-text {
    border-color: #252830;
    background: var(--app-input-bg);
    color: var(--app-text-muted);
    font-size: 0.76rem;
    font-weight: 600;
}

.trade-input-group .form-control {
    border-left: 0;
    border-right: 0;
    background: var(--app-input-bg);
    font-size: 0.84rem;
    min-height: 2.5rem;
}

.trade-allocation {
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 0.2rem 0;
}

.trade-allocation-line {
    display: block;
    flex: 1;
    height: 0.25rem;
    margin-top: 0.3rem;
    border-radius: 999px;
    background: #23262e;
}

.trade-allocation-step {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.28rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--app-text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
}

.trade-allocation-step::before {
    content: "";
    width: 0.65rem;
    height: 0.65rem;
    border: 2px solid #23262e;
    border-radius: 50%;
    background: #121318;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.trade-allocation-step:disabled {
    opacity: 0.46;
    cursor: not-allowed;
}

.trade-allocation-step.is-active::before {
    border-color: rgba(36, 214, 164, 0.4);
    background: var(--app-positive);
}

.trade-allocation.is-sell .trade-allocation-step.is-active::before {
    border-color: rgba(255, 84, 120, 0.4);
    background: var(--app-negative);
}

.trade-allocation-percent {
    line-height: 1;
}

.trade-allocation-step.is-active .trade-allocation-percent {
    color: var(--app-text);
}

.btn-trade-buy,
.btn-trade-sell {
    padding-top: 0.78rem;
    padding-bottom: 0.78rem;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
}

.btn-trade-buy {
    color: #071510;
    background: var(--app-positive);
    border-color: var(--app-positive);
}

.btn-trade-buy:hover,
.btn-trade-buy:focus-visible {
    color: #071510;
    background: #33e2b2;
    border-color: #33e2b2;
}

.btn-trade-sell {
    color: #ffffff;
    background: var(--app-negative);
    border-color: var(--app-negative);
}

.btn-trade-sell:hover,
.btn-trade-sell:focus-visible {
    color: #ffffff;
    background: #ff6687;
    border-color: #ff6687;
}

.trade-history-panel {
    overflow: hidden;
}

.trade-history-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #252830;
}

.trade-history-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.trade-history-tab {
    padding: 0 0 0.45rem;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--app-text-muted);
    font-size: 0.84rem;
    font-weight: 500;
}

.trade-history-tab.active {
    border-color: var(--app-accent);
    color: var(--app-text);
}

.trade-history-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--app-text-secondary);
    font-size: 0.74rem;
    font-weight: 600;
}

.trade-history-table {
    margin-bottom: 0;
}

.trade-history-table thead th {
    padding: 0.8rem 1rem;
    color: var(--app-text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.trade-history-table tbody td {
    padding: 1rem;
    color: var(--app-text-secondary);
    font-size: 0.82rem;
}

.trade-history-table tbody tr:hover > * {
    background: #171920;
}

@media (min-width: 1200px) {
    .app-body-trading:not(.app-body-dashboard) .trade-main {
        display: flex;
        min-height: calc(100vh - 4.25rem);
    }

    .app-body-trading:not(.app-body-dashboard) .trade-terminal {
        flex: 1 1 auto;
        min-height: calc(100vh - 5.65rem);
    }

    .app-body-trading:not(.app-body-dashboard) .trade-workspace-grid {
        --trade-primary-panel-height: clamp(32.5rem, calc(100vh - 22rem), 46rem);
    }

    .app-body-trading:not(.app-body-dashboard) .trade-history-panel {
        flex: 1 1 auto;
        min-height: 12rem;
    }
}

@media (min-width: 1800px) {
    .app-body-trading:not(.app-body-dashboard) .trade-workspace-grid {
        --trade-primary-panel-height: clamp(36rem, calc(100vh - 22rem), 52rem);
    }
}

.app-body-dashboard {
    background: #0d0f12;
}

.dashboard-shell {
    background: #0b0d0f;
}

.app-body-dashboard .toast-container {
    right: 0 !important;
    left: auto !important;
    padding-top: 0.85rem !important;
    padding-right: 0.85rem !important;
    padding-left: 0 !important;
}

.dashboard-main {
    padding: 1.35rem 1.5rem 1.85rem;
}

.dashboard-content-grid {
    max-width: none;
}

.dashboard-portfolio {
    display: flex;
    flex-direction: column;
    gap: 1.55rem;
}

.dashboard-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid #181b1f;
}

.dashboard-summary-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 13rem;
    padding: 0.35rem 1.55rem 1.6rem;
}

.dashboard-summary-block + .dashboard-summary-block {
    border-left: 1px solid #181b1f;
}

.dashboard-summary-label {
    color: #e3e4e7;
    font-size: 0.94rem;
    font-weight: 600;
}

.dashboard-summary-value {
    color: #f7f8fa;
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}

.dashboard-summary-meta,
.dashboard-summary-note {
    color: #8c9098;
    font-size: 0.82rem;
    font-weight: 500;
}

.dashboard-summary-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-summary-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(73, 235, 185, 0.15);
    color: #66efc0;
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-action-button,
.dashboard-inline-button {
    min-height: 2.45rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.dashboard-action-button-primary {
    background: var(--app-accent);
    border-color: var(--app-accent);
    color: var(--app-text);
}

.dashboard-action-button-primary:hover,
.dashboard-action-button-primary:focus-visible {
    background: var(--app-accent-hover);
    border-color: var(--app-accent-hover);
    color: var(--app-text);
}

.dashboard-action-button-secondary,
.dashboard-inline-button {
    background: #17191d;
    border-color: #252831;
    color: var(--app-text);
}

.dashboard-action-button-secondary:hover,
.dashboard-action-button-secondary:focus-visible,
.dashboard-inline-button:hover,
.dashboard-inline-button:focus-visible {
    background: #1c1f25;
    border-color: #313542;
    color: var(--app-text);
}

.dashboard-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-tabs {
    gap: 1.5rem;
    border-bottom: 0;
}

.dashboard-tab {
    padding: 0 0 0.65rem;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #7d8189;
    font-size: 0.98rem;
    font-weight: 600;
}

.dashboard-tab:hover,
.dashboard-tab:focus-visible {
    color: #d8dae0;
}

.dashboard-tab.active {
    border-color: #f0f1f3;
    background: transparent !important;
    color: #f3f4f7 !important;
}

.dashboard-tab-content {
    padding-top: 0.35rem;
}

.dashboard-transaction-tabs {
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dashboard-transaction-tab {
    border: 1px solid #242832;
    border-radius: 0.75rem;
    background: #15171c;
    color: #8f949d;
    font-size: 0.86rem;
    font-weight: 600;
}

.dashboard-transaction-tab:hover,
.dashboard-transaction-tab:focus-visible {
    border-color: #333946;
    color: #f3f4f7;
}

.dashboard-transaction-tab.active {
    border-color: #3b414f;
    background: #20242c !important;
    color: #f3f4f7 !important;
}

.dashboard-transaction-tab-content {
    min-width: 0;
}

.dashboard-list-head,
.dashboard-token-row {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(8rem, 0.55fr) minmax(11rem, 0.9fr) minmax(11rem, 0.9fr);
    gap: 1.25rem;
    align-items: center;
}

.dashboard-list-head {
    padding: 0 0.05rem 0.7rem;
    color: #989ba2;
    font-size: 0.8rem;
    font-weight: 600;
}

.dashboard-token-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.dashboard-subsection {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #1d2025;
}

.dashboard-subsection-title {
    margin-bottom: 0.85rem;
    color: #f3f4f7;
    font-size: 0.95rem;
    font-weight: 600;
}

.dashboard-affiliate-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
    gap: 1rem;
}

.dashboard-affiliate-panel,
.dashboard-affiliate-total {
    border: 1px solid #1d2025;
    border-radius: 0.95rem;
    background: #16181d;
}

.dashboard-affiliate-panel {
    padding: 1.15rem;
}

.dashboard-panel-kicker {
    color: #8f949d;
    font-size: 0.76rem;
    font-weight: 700;
}

.dashboard-panel-title {
    margin: 0.15rem 0 0.45rem;
    color: #f3f4f7;
    font-size: 1.15rem;
    font-weight: 700;
}

.dashboard-panel-copy {
    max-width: 44rem;
    margin: 0 0 1rem;
    color: #9ba1aa;
    font-size: 0.88rem;
    line-height: 1.6;
}

.dashboard-affiliate-link-group {
    max-width: 48rem;
}

.dashboard-affiliate-link-input {
    border-color: #242832;
    background: #111317;
    color: #f3f4f7;
    font-size: 0.86rem;
}

.dashboard-affiliate-link-input:focus {
    border-color: #343947;
    background: #111317;
    color: #f3f4f7;
    box-shadow: none;
}

.dashboard-affiliate-stat-list {
    display: grid;
    gap: 0.7rem;
}

.dashboard-affiliate-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid #20232a;
}

.dashboard-affiliate-stat:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dashboard-affiliate-stat span,
.dashboard-affiliate-total small {
    color: #8f949d;
    font-size: 0.82rem;
    font-weight: 600;
}

.dashboard-affiliate-stat strong,
.dashboard-affiliate-total strong {
    color: #f3f4f7;
    font-size: 1rem;
    font-weight: 700;
}

.dashboard-affiliate-total-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.75rem;
}

.dashboard-affiliate-total {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.95rem;
}

.dashboard-affiliate-total span {
    color: #8f949d;
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.dashboard-settings-card {
    padding: 1.1rem;
    border: 1px solid #1d2025;
    border-radius: 1rem;
    background: #16181d;
}

.dashboard-settings-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.dashboard-settings-kicker {
    color: #8f949d;
    font-size: 0.76rem;
    font-weight: 700;
}

.dashboard-settings-title {
    margin: 0.15rem 0 0;
    color: #f3f4f7;
    font-size: 1rem;
    font-weight: 700;
}

.dashboard-settings-copy,
.dashboard-settings-note {
    color: #9ba1aa;
    font-size: 0.88rem;
    line-height: 1.6;
}

.dashboard-settings-copy {
    margin: 0 0 1rem;
}

.dashboard-settings-note {
    padding: 0.85rem;
    border: 1px solid #242832;
    border-radius: 0.75rem;
    background: #111317;
}

.dashboard-settings-status {
    flex: 0 0 auto;
    padding: 0.26rem 0.55rem;
    border: 1px solid #2a2e37;
    border-radius: 999px;
    background: #111317;
    color: #9ba1aa;
    font-size: 0.74rem;
    font-weight: 700;
}

.dashboard-settings-status.is-enabled {
    border-color: rgba(114, 209, 92, 0.36);
    background: rgba(114, 209, 92, 0.08);
    color: var(--app-positive);
}

.dashboard-settings-form {
    margin: 0;
}

.dashboard-settings-inline-form {
    display: flex;
    gap: 0.65rem;
}

.dashboard-settings-inline-form .btn {
    white-space: nowrap;
}

.dashboard-settings-inline-form .dashboard-modal-input {
    min-width: 0;
}

.dashboard-token-row {
    padding: 1rem 1.1rem;
    border: 1px solid #1d2025;
    border-radius: 0.95rem;
    background: #17181c;
}

.dashboard-list-head-coins,
.dashboard-token-row-coins {
    grid-template-columns: minmax(0, 1.55fr) minmax(8rem, 0.55fr) minmax(11rem, 0.9fr) minmax(11rem, 0.9fr) minmax(12rem, 0.8fr);
}

.dashboard-token-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.dashboard-token-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid #23262c;
    background: #121418;
    color: #f3f4f7;
    font-size: 1rem;
    font-weight: 700;
}

.dashboard-token-icon.has-icon {
    background: #111318;
}

.dashboard-token-icon-image {
    width: 100%;
    height: 100%;
    padding: 0.3rem;
    object-fit: contain;
}

.dashboard-token-copy {
    min-width: 0;
}

.dashboard-coin-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-shrink: 0;
    width: 100%;
}

.dashboard-coin-action {
    min-height: 2rem;
    padding: 0.4rem 0.78rem;
    border-radius: 999px;
    border: 1px solid #2a2e36;
    background: #13151a;
    color: #e6e8ec;
    font-size: 0.75rem;
    font-weight: 600;
}

.dashboard-coin-action:hover,
.dashboard-coin-action:focus-visible {
    background: #191c22;
    border-color: #393f4c;
    color: #f5f6f8;
}

.dashboard-coin-action:disabled {
    opacity: 0.46;
    cursor: not-allowed;
}

.dashboard-token-title {
    color: #f1f2f5;
    font-size: 0.98rem;
    font-weight: 700;
}

.dashboard-token-subtitle {
    margin-top: 0.2rem;
    color: #8f939b;
    font-size: 0.82rem;
    font-weight: 500;
}

.dashboard-token-metric {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    min-width: 0;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.dashboard-token-metric-actions {
    align-items: stretch;
}

.dashboard-token-value {
    color: #f5f6f8;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
}

.dashboard-token-value-buy {
    color: var(--app-positive);
}

.dashboard-token-value-sell {
    color: var(--app-negative);
}

.dashboard-token-value-deposit {
    color: var(--app-positive);
}

.dashboard-token-value-withdrawal {
    color: #f3f4f7;
}

.dashboard-token-meta {
    color: #8d9198;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
}

.dashboard-inline-form {
    margin: 0;
}

.dashboard-empty-state {
    padding: 1.2rem;
    border: 1px dashed #272b32;
    border-radius: 0.95rem;
    background: #14161a;
    color: #8f939b;
    text-align: center;
    font-size: 0.85rem;
}

.dashboard-sync-warning {
    margin-bottom: 0.9rem;
    padding: 0.95rem 1rem;
    border: 1px solid #3a3223;
    border-radius: 0.95rem;
    background: #181611;
    color: #d9c7a2;
}

.dashboard-sync-warning-title {
    color: #f4f1f5;
    font-size: 0.86rem;
    font-weight: 600;
}

.dashboard-sync-warning-copy {
    margin-top: 0.35rem;
    color: #b7aa8c;
    font-size: 0.8rem;
    line-height: 1.5;
}

.dashboard-modal-content {
    border: 1px solid #23262d;
    border-radius: 1rem;
    background: #131519;
}

.dashboard-modal-copy {
    font-size: 0.84rem;
    line-height: 1.5;
}

.dashboard-modal-qr-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.dashboard-modal-qr-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16rem;
    max-width: 100%;
    padding: 0.9rem;
    border: 1px solid #23262d;
    border-radius: 0.9rem;
    background: #ffffff;
}

.dashboard-modal-qr-image {
    display: block;
    width: 100%;
    height: auto;
}

.dashboard-modal-qr-copy {
    color: #8d9198;
    font-size: 0.8rem;
    line-height: 1.45;
    text-align: center;
}

.dashboard-modal-address {
    min-height: 7rem;
    border-color: #252830;
    background: var(--app-input-bg);
    color: #f5f6f8;
    font-size: 0.88rem;
    line-height: 1.55;
    resize: none;
}

.dashboard-modal-address:focus {
    border-color: #373c49;
    box-shadow: none;
}

.dashboard-modal-input {
    min-height: 2.7rem;
    border-color: #252830;
    background: var(--app-input-bg);
    color: #f5f6f8;
    font-size: 0.88rem;
}

.dashboard-modal-input:focus {
    border-color: #373c49;
    box-shadow: none;
}

.dashboard-withdraw-amount-control {
    display: flex;
    gap: 0.5rem;
}

.dashboard-withdraw-amount-control .dashboard-modal-input {
    min-width: 0;
}

.dashboard-withdraw-max-button {
    flex: 0 0 auto;
    min-width: 4.25rem;
    min-height: 2.7rem;
    border: 1px solid #252831;
    border-radius: 999px;
    background: #17191d;
    color: var(--app-text);
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-withdraw-max-button:hover,
.dashboard-withdraw-max-button:focus-visible {
    background: #1c1f25;
    border-color: #313542;
    color: var(--app-text);
}

.support-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.support-page-title {
    margin: 0.25rem 0 0;
    color: #f5f6f8;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.support-page-copy {
    max-width: 42rem;
    margin: 0.45rem 0 0;
    color: #8f949d;
    font-size: 0.92rem;
}

.support-ticket-title-link {
    display: inline-flex;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f5f6f8;
    cursor: pointer;
    font: inherit;
    text-align: left;
    text-decoration: none;
}

.support-ticket-title-link:hover,
.support-ticket-title-link:focus-visible {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: #3b414f;
    text-underline-offset: 0.2rem;
}

.support-ticket-list-head,
.support-ticket-row {
    grid-template-columns: minmax(0, 1.5fr) minmax(8rem, 0.45fr) minmax(10rem, 0.55fr);
}

.support-message-list {
    display: grid;
    gap: 0.85rem;
}

.support-message {
    padding: 1rem;
    border: 1px solid #23262d;
    border-radius: 1rem;
    background: #15171c;
}

.support-message-staff {
    border-color: #303641;
    background: #181b21;
}

.support-message-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
}

.support-message-author {
    color: #f5f6f8;
    font-size: 0.94rem;
    font-weight: 700;
}

.support-message-meta {
    margin-top: 0.12rem;
    color: #8f949d;
    font-size: 0.78rem;
}

.support-message-body {
    color: #d7dae0;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
}

.support-ticket-form {
    display: grid;
    gap: 1rem;
}

.support-ticket-message {
    min-height: 13rem;
}

.support-thread-modal-content {
    background: #111317;
}

.support-thread-message-list {
    padding-bottom: 0.25rem;
}

.support-thread-reply-panel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #23262d;
}

.support-ticket-reply-message {
    min-height: 8rem;
}

.dashboard-modal-meta {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.dashboard-modal-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid #23262d;
    border-radius: 0.85rem;
    background: #111318;
}

.dashboard-modal-note {
    color: #8d9198;
    font-size: 0.8rem;
    line-height: 1.5;
}

@media (max-width: 1599.98px) {
    .trade-workspace-grid {
        grid-template-columns: 17rem minmax(0, 1.4fr) 16.75rem 16.5rem;
    }
}

@media (max-width: 1399.98px) {
    .trade-market-strip {
        grid-template-columns: 1fr;
    }

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

    .trade-workspace-grid {
        grid-template-columns: 17rem minmax(0, 1fr) 17rem;
    }

    .trade-panel-ticket {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1199.98px) {
    .trade-topbar-inner {
        align-items: center;
    }

    .trade-topbar-menu {
        width: 100%;
        margin-top: 0.65rem;
        padding-top: 0.75rem;
        border-top: 1px solid #23262d;
    }

    .trade-primary-nav {
        width: 100%;
        margin-left: 0;
        gap: 0.35rem;
    }

    .trade-primary-nav .nav-link {
        width: 100%;
        padding: 0.64rem 0.75rem;
    }

    .trade-topbar-actions {
        align-items: stretch;
        flex-direction: column;
        justify-content: flex-start;
        width: 100%;
        margin-left: 0;
        padding-top: 0.7rem;
    }

    .trade-user-badge {
        align-items: center;
        width: 100%;
    }

    .trade-topbar-actions form,
    .trade-topbar-actions .btn,
    .trade-topbar-actions .trade-topbar-link {
        width: 100%;
    }

    .trade-topbar-actions .btn,
    .trade-topbar-actions .trade-topbar-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 2.45rem;
    }

    .trade-topbar-icon-button {
        gap: 0.5rem;
        height: 2.45rem;
        border: 1px solid #262933;
        background: #0f1115;
    }

    .trade-topbar-action-label {
        display: inline;
    }

    .trade-workspace-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        --trade-primary-panel-height: auto;
    }

    .trade-panel-chart,
    .trade-history-panel {
        grid-column: 1 / -1;
    }

    .trade-panel-market-list,
    .trade-panel-chart,
    .trade-panel-book {
        height: auto;
    }
}

@media (max-width: 991.98px) {
    .trade-topbar-inner,
    .trade-market-strip,
    .trade-history-header {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .trade-main {
        padding: 0.6rem;
    }

    .trade-metric-grid,
    .trade-workspace-grid {
        grid-template-columns: 1fr;
        --trade-primary-panel-height: auto;
    }

    .trade-panel-market-list {
        display: none;
    }

    .trade-book-head,
    .trade-book-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    }

    .dashboard-main {
        padding: 1rem 1rem 1.4rem;
    }

    .dashboard-summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-summary-block:nth-child(odd) {
        border-left: 0;
    }

    .dashboard-summary-block:nth-child(n + 3) {
        border-top: 1px solid #181b1f;
    }

    .dashboard-affiliate-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-list-head,
    .dashboard-token-row {
        grid-template-columns: minmax(0, 1fr) minmax(8rem, 0.65fr);
    }

    .dashboard-list-head-coins,
    .dashboard-token-row-coins {
        grid-template-columns: minmax(0, 1fr) minmax(8rem, 0.65fr);
    }

    .dashboard-list-head span:nth-child(3),
    .dashboard-list-head span:nth-child(4),
    .dashboard-list-head span:nth-child(5) {
        display: none;
    }

    .dashboard-token-row > :nth-child(3),
    .dashboard-token-row > :nth-child(4),
    .dashboard-token-row > :nth-child(5) {
        grid-column: 1 / -1;
    }

    .dashboard-token-metric:nth-child(2) {
        align-items: flex-end;
    }

}

@media (max-width: 767.98px) {
    .support-page-header {
        flex-direction: column;
    }

    .support-page-header .dashboard-inline-button {
        width: 100%;
        justify-content: center;
    }

    .dashboard-settings-card-header,
    .dashboard-settings-inline-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-settings-status {
        width: fit-content;
    }

    .trade-wordmark {
        width: auto;
        justify-content: flex-start;
    }

    .trade-panel-header,
    .trade-chart-toolbar,
    .trade-book-head,
    .trade-side-tabs,
    .trade-side-content {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .trade-chart-stage {
        min-height: 24rem;
        padding: 0;
    }

    .trade-chart-surface {
        min-height: 22rem;
    }

    .trade-chart-container {
        height: 22rem;
    }

    .dashboard-summary-strip {
        grid-template-columns: 1fr;
    }

    .dashboard-summary-block {
        min-height: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .dashboard-summary-block + .dashboard-summary-block {
        border-left: 0;
        border-top: 1px solid #181b1f;
    }

    .dashboard-tabs {
        gap: 1rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.2rem;
    }

    .dashboard-tab {
        white-space: nowrap;
    }

    .dashboard-list-head {
        display: none;
    }

    .dashboard-token-row {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .dashboard-token-metric {
        align-items: flex-start;
        text-align: left;
    }

    .dashboard-token-main {
        gap: 0.85rem;
    }

    .dashboard-coin-actions {
        justify-content: flex-start;
    }

    .dashboard-affiliate-link-group {
        display: grid;
        grid-template-columns: 1fr;
    }

}

@media (max-width: 575.98px) {
    .toast-container {
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
    }

    .toast-container .app-toast {
        max-width: 100%;
        width: 100%;
    }

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

    .trade-book-head,
    .trade-book-row {
        gap: 0.45rem;
        font-size: 0.8rem;
    }

    .trollbox-widget {
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
        width: auto;
    }

    .trollbox-launcher,
    .trollbox-panel {
        width: 100%;
    }

    .trollbox-panel {
        bottom: calc(100% + 0.65rem);
        height: min(28rem, calc(100vh - 6rem));
    }

    .trollbox-message {
        max-width: 92%;
    }
}

.app-body-admin {
    min-height: 100vh;
    background: #0d0f12;
    color: #e8ebef;
    font-family: var(--app-font-family);
}

.admin-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: #0d0f12;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex: 0 0 16rem;
    flex-direction: column;
    height: 100vh;
    padding: 1.1rem;
    background: #111419;
    border-right: 1px solid #252a33;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0.2rem 1.2rem;
    color: #f5f7fa;
    text-decoration: none;
}

.admin-brand:hover {
    color: #ffffff;
}

.admin-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid #303743;
    border-radius: 0.45rem;
    background: #171b21;
    color: #f5820b;
    font-weight: 700;
}

.admin-brand-title,
.admin-brand-subtitle {
    display: block;
}

.admin-brand-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.admin-brand-subtitle {
    margin-top: 0.1rem;
    color: #8d96a3;
    font-size: 0.78rem;
}

.admin-nav {
    display: grid;
    gap: 0.25rem;
}

.admin-nav-link,
.admin-sidebar-link {
    color: #aeb6c2;
    text-decoration: none;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 0.4rem;
    font-size: 0.92rem;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    color: #f5f7fa;
    background: #1a1f27;
    border-color: #2b323d;
}

.admin-nav-link.active {
    color: #f5820b;
}

.admin-sidebar-footer {
    display: grid;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #252a33;
    font-size: 0.88rem;
}

.admin-sidebar-link:hover {
    color: #ffffff;
}

.admin-page {
    min-width: 0;
    flex: 1;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 5.25rem;
    padding: 1rem 1.5rem;
    background: #0d0f12;
    border-bottom: 1px solid #252a33;
}

.admin-kicker {
    color: #8d96a3;
    font-size: 0.78rem;
}

.admin-page-title {
    margin: 0.1rem 0 0;
    color: #f5f7fa;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.admin-user-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
}

.admin-user-pill,
.admin-topbar-button,
.admin-action-button {
    border: 1px solid #303743;
    border-radius: 0.4rem;
    background: #171b21;
    color: #e8ebef;
}

.admin-user-pill {
    padding: 0.45rem 0.75rem;
    font-size: 0.88rem;
}

.admin-topbar-button,
.admin-action-button {
    min-height: 2.1rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.86rem;
}

.admin-topbar-button:hover,
.admin-action-button:hover {
    border-color: #f5820b;
    color: #ffffff;
}

.admin-action-button-danger:hover {
    border-color: #f05b5b;
}

.admin-content {
    width: 100%;
    padding: 1.5rem;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.admin-stat-card,
.admin-panel {
    background: #141820;
    border: 1px solid #252a33;
    border-radius: 0.55rem;
}

.admin-stat-card {
    padding: 1rem;
}

.admin-stat-label,
.admin-stat-meta,
.admin-panel-copy,
.admin-table-meta,
.admin-list-meta {
    color: #8d96a3;
}

.admin-stat-label {
    font-size: 0.78rem;
}

.admin-stat-value {
    margin-top: 0.35rem;
    color: #f5f7fa;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.admin-stat-meta {
    margin-top: 0.15rem;
    font-size: 0.8rem;
}

.admin-stat-warning .admin-stat-value {
    color: #f5b04b;
}

.admin-stat-danger .admin-stat-value {
    color: #f05b5b;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
    gap: 0.9rem;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.admin-dashboard-card {
    min-height: 18rem;
}

.admin-dashboard-card-large {
    grid-row: span 2;
    min-height: 24rem;
}

.admin-chart-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.7rem;
    color: #aeb6c2;
    font-size: 0.8rem;
}

.admin-chart-dot {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.35rem;
    border-radius: 999px;
    vertical-align: middle;
}

.admin-chart-dot-deposit,
.admin-chart-bar-deposit {
    background: #72d15c;
}

.admin-chart-dot-withdrawal,
.admin-chart-bar-withdrawal {
    background: #f05b5b;
}

.admin-chart-bar-user {
    background: #f5820b;
}

.admin-chart {
    display: grid;
    align-items: end;
    gap: 0.55rem;
    min-height: 15rem;
    padding: 1.1rem;
}

.admin-chart-grouped,
.admin-chart-single {
    grid-template-columns: repeat(14, minmax(0, 1fr));
}

.admin-chart-day {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0.45rem;
    min-width: 0;
    height: 100%;
}

.admin-chart-bars {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 0.18rem;
    min-height: 12rem;
    padding: 0 0.1rem;
    border-bottom: 1px solid #252a33;
}

.admin-chart-bar {
    display: block;
    width: 0.55rem;
    height: var(--admin-chart-height, 0%);
    min-height: 0.15rem;
    border-radius: 0.18rem 0.18rem 0 0;
}

.admin-chart-single .admin-chart-bar {
    width: 0.8rem;
}

.admin-chart-label {
    color: #747d8a;
    font-size: 0.7rem;
    text-align: center;
}

.admin-support-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    padding: 1.1rem;
    border-bottom: 1px solid #252a33;
}

.admin-support-count {
    color: #f5f7fa;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
}

.admin-support-breakdown {
    display: grid;
    gap: 0.45rem;
    align-content: center;
}

.admin-support-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: #aeb6c2;
    font-size: 0.84rem;
}

.admin-support-breakdown-row strong {
    color: #f5f7fa;
}

.admin-support-oldest {
    padding: 1rem 1.1rem;
}

.admin-support-modal-content {
    border: 1px solid #252a33;
    background: #111419;
    color: #e8ebef;
}

.admin-support-thread {
    display: grid;
    gap: 0.85rem;
}

.admin-support-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.4fr);
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #252a33;
}

.admin-support-reply-form,
.admin-support-status-form {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid #252a33;
    border-radius: 0.55rem;
    background: #141820;
}

.admin-support-form-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.75rem;
}

.admin-support-form-row > div {
    min-width: 0;
    flex: 1 1 auto;
}

.admin-wallet-table {
    min-width: 76rem;
}

.admin-wallet-coin {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 11rem;
}

.admin-wallet-icon,
.admin-wallet-icon-fallback {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
}

.admin-wallet-icon {
    display: block;
}

.admin-wallet-icon-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #303743;
    background: #171b21;
    color: #f5820b;
    font-weight: 700;
}

.admin-wallet-code,
.admin-wallet-amount {
    color: #f5f7fa;
    font-weight: 700;
}

.admin-wallet-service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 10rem;
}

.admin-login-user-agent {
    max-width: 24rem;
    color: #aeb6c2;
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

.admin-panel {
    overflow: hidden;
}

.admin-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #252a33;
}

.admin-panel-title {
    margin: 0;
    color: #f5f7fa;
    font-size: 1rem;
    font-weight: 700;
}

.admin-panel-copy {
    margin: 0.25rem 0 0;
    font-size: 0.84rem;
}

.admin-panel-link {
    color: #f5820b;
    font-size: 0.86rem;
    text-decoration: none;
}

.admin-panel-link:hover {
    color: #ffa33a;
}

.admin-filter-panel {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #252a33;
    background: #11151c;
}

.admin-filter-label {
    margin-bottom: 0.32rem;
    color: #8d96a3;
    font-size: 0.74rem;
    font-weight: 700;
}

.admin-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.admin-list {
    display: grid;
}

.admin-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid #202630;
}

.admin-list-row:last-child {
    border-bottom: 0;
}

.admin-list-title {
    color: #f5f7fa;
    font-weight: 600;
}

.admin-list-meta,
.admin-table-meta {
    font-size: 0.8rem;
}

.admin-table {
    --bs-table-bg: transparent;
    --bs-table-color: #e8ebef;
    --bs-table-border-color: #252a33;
    color: #e8ebef;
    font-size: 0.88rem;
}

.admin-table thead th {
    padding: 0.78rem 1rem;
    color: #8d96a3;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: none;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: #171c24;
}

.admin-empty,
.admin-empty-cell {
    color: #8d96a3;
    text-align: center;
}

.admin-empty {
    padding: 1.25rem;
}

.admin-empty-cell {
    padding: 1.5rem !important;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.6rem;
    padding: 0.2rem 0.52rem;
    border: 1px solid #303743;
    border-radius: 0.35rem;
    background: #171b21;
    color: #c8d0da;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-badge-success {
    border-color: #27563c;
    background: #132018;
    color: #72d15c;
}

.admin-badge-warning {
    border-color: #5a4322;
    background: #211911;
    color: #f5b04b;
}

.admin-badge-danger {
    border-color: #613033;
    background: #231416;
    color: #f05b5b;
}

.admin-badge-critical {
    border-color: #7b3a31;
    background: #2a1714;
    color: #ff8a65;
}

.admin-table-warning {
    color: #f5b04b;
    font-size: 0.8rem;
}

.admin-action-stack {
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
}

.admin-blog-post-cell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    min-width: 24rem;
}

.admin-blog-thumb {
    display: block;
    width: 3.2rem;
    height: 3.2rem;
    border: 1px solid #303743;
    border-radius: 0.45rem;
    object-fit: cover;
}

.admin-blog-thumb-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #171b21;
    color: #f5820b;
    font-weight: 700;
}

.admin-blog-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.32fr);
    gap: 1rem;
    padding: 1.1rem;
}

.admin-blog-editor-panel,
.admin-blog-sidebar {
    min-width: 0;
}

.admin-blog-sidebar {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.admin-blog-sidebar-card {
    padding: 1rem;
    border: 1px solid #252a33;
    border-radius: 0.55rem;
    background: #111419;
}

.admin-blog-image-preview {
    display: block;
    width: 100%;
    max-height: 15rem;
    border: 1px solid #303743;
    border-radius: 0.45rem;
    object-fit: cover;
}

.admin-blog-editor-shell {
    overflow: hidden;
    border: 1px solid #303743;
    border-radius: 0.55rem;
    background: #101318;
}

.admin-blog-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.65rem;
    border-bottom: 1px solid #303743;
    background: #141820;
}

.admin-blog-editor-button {
    min-width: 2rem;
    min-height: 2rem;
    border: 1px solid #303743;
    border-radius: 0.35rem;
    background: #171b21;
    color: #e8ebef;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-blog-editor-button:hover,
.admin-blog-editor-button:focus-visible,
.admin-blog-editor-button-selected {
    border-color: #f5820b;
    color: #ffffff;
}

.admin-blog-editor-content {
    min-height: 28rem;
    padding: 1rem;
    color: #e8ebef;
    font-size: 1rem;
    line-height: 1.65;
    outline: 0;
}

.admin-blog-editor-content:focus {
    background: #111419;
}

.admin-blog-editor-content a {
    color: #f5820b;
}

.admin-blog-editor-content blockquote {
    padding-left: 1rem;
    border-left: 3px solid #f5820b;
    color: #f5f7fa;
}

.admin-blog-editor-content pre,
.admin-blog-editor-content code {
    border: 1px solid #303743;
    border-radius: 0.35rem;
    background: #0d0f12;
}

.admin-blog-editor-content pre {
    padding: 0.85rem;
}

.admin-static-page-editor {
    padding: 1.1rem;
}

@media (max-width: 1399.98px) {
    .admin-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-dashboard-card-large {
        grid-column: 1 / -1;
        grid-row: auto;
    }

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

@media (max-width: 991.98px) {
    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid #252a33;
    }

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

    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-user-actions {
        width: 100%;
        justify-content: space-between;
    }

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

    .admin-dashboard-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-support-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-blog-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .admin-content,
    .admin-topbar,
    .admin-sidebar {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .admin-nav,
    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-chart {
        gap: 0.35rem;
        padding: 0.8rem;
    }

    .admin-chart-bars {
        min-height: 9rem;
    }

    .admin-chart-bar {
        width: 0.38rem;
    }

    .admin-chart-single .admin-chart-bar {
        width: 0.55rem;
    }

    .admin-support-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-support-form-row {
        align-items: stretch;
        flex-direction: column;
    }
}
