@font-face {
    font-family: "Space Grotesk";
    src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
}

/* Public trading API documentation and authenticated credential management. */
.developer-api-page,
.api-keys-page {
    padding: clamp(2.5rem, 5vw, 5rem) 0 5rem;
}

.developer-api-container,
.api-keys-container {
    max-width: 1120px;
}

.developer-api-hero,
.api-keys-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.developer-api-hero h1,
.api-keys-header h1 {
    margin: 0.35rem 0 0.55rem;
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4.25rem);
    letter-spacing: -0.045em;
}

.developer-api-hero p,
.api-keys-header p,
.api-doc-section > p {
    max-width: 760px;
    margin: 0;
    color: var(--site-muted, #a5a5a5);
}

.api-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(246, 91, 40, 0.28);
    border-radius: 0.75rem;
    background: rgba(246, 91, 40, 0.07);
}

.api-callout > i {
    color: #f65b28;
    font-size: 1.2rem;
}

.api-callout strong,
.api-callout p {
    display: block;
    margin: 0;
}

.api-callout p {
    margin-top: 0.15rem;
    color: #a8a8a8;
    font-size: 0.9rem;
}

.api-callout--warning {
    margin-top: 1.25rem;
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.07);
}

.api-callout--warning > i {
    color: #f59e0b;
}

.api-doc-section {
    padding: clamp(1.4rem, 3vw, 2rem);
    margin-top: 1rem;
    border: 1px solid #242424;
    border-radius: 0.9rem;
    background: rgba(10, 10, 10, 0.86);
}

.api-doc-section h2,
.api-doc-section h3 {
    color: #fff;
}

.api-doc-section h2 {
    margin: 0 0 1rem;
    font-size: 1.45rem;
}

.api-doc-section h3 {
    margin: 1.6rem 0 0.75rem;
    font-size: 1.05rem;
}

.api-section-heading h2 {
    margin-top: 0.25rem;
}

.api-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.api-overview-grid article {
    min-width: 0;
    padding: 1rem;
    border: 1px solid #242424;
    border-radius: 0.7rem;
    background: #050505;
}

.api-overview-grid span,
.api-overview-grid code {
    display: block;
}

.api-overview-grid span {
    margin-bottom: 0.35rem;
    color: #858585;
    font-size: 0.78rem;
}

.api-overview-grid code,
.api-endpoint-card code,
.api-doc-section p code,
.api-doc-table code {
    color: #ff8b64;
}

.api-endpoint-list {
    display: grid;
    gap: 0.8rem;
}

.api-endpoint-card {
    min-width: 0;
    padding: 1.05rem;
    border: 1px solid #242424;
    border-radius: 0.72rem;
    background: #050505;
}

.api-endpoint-card header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.api-endpoint-card header code {
    overflow-wrap: anywhere;
}

.api-endpoint-card p {
    margin: 0.65rem 0 0;
    color: #aaa;
}

.api-method {
    flex: 0 0 auto;
    padding: 0.25rem 0.5rem;
    border-radius: 0.35rem;
    font: 700 0.7rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.api-method--get {
    color: #7dd3fc;
    background: rgba(14, 165, 233, 0.14);
}

.api-method--post {
    color: #86efac;
    background: rgba(34, 197, 94, 0.14);
}

.api-method--delete {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.14);
}

.api-doc-section pre {
    max-width: 100%;
    padding: 1rem;
    margin: 0.85rem 0 0;
    overflow: auto;
    border: 1px solid #292929;
    border-radius: 0.55rem;
    color: #e6e6e6;
    background: #020202;
    font-size: 0.78rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.api-table-wrap {
    margin-top: 1rem;
    overflow-x: auto;
}

.api-doc-table {
    margin: 0;
    color: #d7d7d7;
}

.api-doc-table > :not(caption) > * > * {
    padding: 0.75rem;
    border-color: #242424;
    color: inherit;
    background: transparent;
}

.api-keys-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.4fr);
    gap: 1rem;
}

.api-key-card,
.api-secret-panel {
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid #242424;
    border-radius: 0.9rem;
    background: rgba(8, 8, 8, 0.9);
}

.api-key-card > header,
.api-secret-panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.api-key-card h2,
.api-secret-panel h2 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
}

.api-key-card header p,
.api-secret-panel header p {
    margin: 0.25rem 0 0;
    color: #8f8f8f;
    font-size: 0.86rem;
}

.api-key-card .form-control {
    border-color: #303030;
    color: #fff;
    background: #050505;
}

.api-key-card .form-control:focus {
    border-color: rgba(246, 91, 40, 0.7);
    box-shadow: 0 0 0 0.2rem rgba(246, 91, 40, 0.12);
}

.api-key-card .form-text {
    color: #818181;
}

.api-key-scope-note {
    display: flex;
    gap: 0.65rem;
    padding-top: 1.25rem;
    margin-top: 1.25rem;
    border-top: 1px solid #202020;
    color: #8f8f8f;
    font-size: 0.82rem;
}

.api-key-scope-note i {
    color: #f65b28;
}

.api-key-scope-note p {
    margin: 0;
}

.api-secret-panel {
    margin-bottom: 1rem;
    border-color: rgba(246, 91, 40, 0.45);
    background: rgba(246, 91, 40, 0.06);
}

.api-secret-panel > header {
    justify-content: flex-start;
}

.api-secret-panel > header > i {
    color: #f65b28;
    font-size: 1.4rem;
}

.api-secret-panel dl {
    display: grid;
    gap: 0.8rem;
    margin: 0;
}

.api-secret-panel dl > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem 0.8rem;
    align-items: center;
}

.api-secret-panel dt {
    grid-column: 1 / -1;
    color: #aaa;
    font-size: 0.78rem;
}

.api-secret-panel dd {
    min-width: 0;
    margin: 0;
}

.api-secret-panel code {
    display: block;
    padding: 0.6rem;
    overflow-wrap: anywhere;
    border-radius: 0.45rem;
    color: #fff;
    background: #050505;
}

.api-tier-badge,
.api-key-status {
    padding: 0.22rem 0.48rem;
    border: 1px solid rgba(246, 91, 40, 0.28);
    border-radius: 999px;
    color: #ff8b64;
    background: rgba(246, 91, 40, 0.08);
    font-size: 0.7rem;
}

.api-key-list {
    display: grid;
    gap: 0.65rem;
}

.api-key-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #252525;
    border-radius: 0.65rem;
    background: #050505;
}

.api-key-row.is-revoked {
    opacity: 0.58;
}

.api-key-row-main {
    min-width: 0;
}

.api-key-row-main > div {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.api-key-row-main code {
    display: block;
    margin-top: 0.45rem;
    overflow-wrap: anywhere;
    color: #d7d7d7;
    font-size: 0.78rem;
}

.api-key-row-main p,
.api-key-empty p {
    margin: 0.35rem 0 0;
    color: #797979;
    font-size: 0.76rem;
}

.api-key-empty {
    display: grid;
    place-items: center;
    min-height: 220px;
    text-align: center;
}

.api-key-empty i {
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 1.7rem;
}

@media (max-width: 820px) {
    .developer-api-hero,
    .api-keys-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .api-overview-grid,
    .api-keys-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .api-secret-panel dl > div {
        grid-template-columns: 1fr;
    }

    .api-secret-panel dt {
        grid-column: auto;
    }

    .api-key-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

:root {
    --nl-bg: #0a0a0a;
    --nl-bg-deep: #050505;
    --nl-surface: #101010;
    --nl-surface-soft: #141414;
    --nl-border: #262626;
    --nl-border-soft: rgba(255, 255, 255, 0.09);
    --nl-text: #fafafa;
    --nl-muted: #8d8d96;
    --nl-cyan: #38bdf8;
    --nl-cyan-deep: #0ea5e9;
    --nl-accent-rgb: 56, 189, 248;
    --nl-accent-deep-rgb: 14, 165, 233;
    --nl-accent-light: #7dd3fc;
    --nl-accent-light-rgb: 125, 211, 252;
    --nl-accent-glow-rgb: 34, 211, 238;
    --nl-accent-bright: #67e8f9;
    --nl-accent-bright-rgb: 103, 232, 249;
    --nl-accent-kicker: #5fc9f7;
    --nl-accent-pale: #bae6fd;
    --nl-accent-extra-pale: #e0f2fe;
    --nl-accent-text: #e7f7ff;
    --nl-accent-darker: #0284c7;
    --nl-accent-info: #3b82f6;
    --nl-accent-info-light: #60a5fa;
    --nl-accent-info-rgb: 37, 99, 235;
    --nl-accent-info-deep-rgb: 30, 64, 175;
    --nl-accent-info-bg-rgb: 15, 23, 42;
    --nl-accent-info-display-rgb: 59, 130, 246;
    --nl-accent-bg-rgb: 8, 47, 73;
    --nl-accent-pale-rgb: 186, 230, 253;
    --nl-accent-deep-bg-rgb: 3, 10, 28;
    --nl-accent-gradient-start: #62c7f4;
    --nl-accent-gradient-end: #3199d2;
    --nl-accent-status: #6bc8ef;
    --nl-accent-contrast: #071018;
    --nl-accent-contrast-strong: #02080c;
    --nl-accent-hover-bg: #13181b;
    --nl-accent-panel-bg: #080b12;
    --nl-accent-media-start: #02040b;
    --nl-accent-media-mid: #07111a;
    --nl-accent-media-end: #020208;
    --nl-accent-code-bg: #111820;
    --nl-accent-pre-bg: #070a0d;
    --nl-danger: #fb7185;
    --nl-success: #34d399;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow-x: hidden;
    background: var(--nl-bg);
    color: var(--nl-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.875rem;
}

/*
 * Responsive table wrappers only scroll horizontally. Without an explicit
 * vertical value, browsers compute overflow-y as auto and can show a one-pixel
 * scrollbar when fractional table row heights are rounded.
 */
.table-responsive {
    overflow-y: hidden;
}

a {
    color: inherit;
}

.site-main {
    flex: 1 0 auto;
}

.site-header {
    min-height: 65px;
    z-index: 1030;
    border-bottom: 1px solid var(--nl-border);
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(16px);
}

.site-header .navbar {
    min-height: 64px;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.site-header .navbar > .container-fluid {
    max-width: 1280px;
}

.navbar-brand,
.footer-brand {
    color: #fff;
    font-size: 1rem;
    font-weight: 650;
    text-decoration: none;
}

.navbar-brand:hover,
.navbar-brand:focus,
.footer-brand:hover,
.footer-brand:focus {
    color: #fff;
}

.brand-logo {
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.26));
}

.site-header .nav-link {
    margin: 0 0.1rem;
    padding: 0.48rem 0.78rem;
    border-radius: 0.4rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    font-weight: 550;
}

.site-header a.nav-link:hover,
.site-header a.nav-link:focus,
.site-header .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.site-header .nav-link.disabled {
    color: rgba(255, 255, 255, 0.48);
}

.navbar-actions .language-label {
    color: rgba(255, 255, 255, 0.88);
    cursor: default;
}

.navbar-logout-form {
    margin: 0;
}

.navbar-logout {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}

.navbar-toggler {
    padding-right: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 600;
}

.mobile-nav-actions {
    display: flex;
    gap: 1.5rem;
}

.mobile-language-label {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    font-weight: 600;
}

.navbar-toggler-close-label,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-open-label {
    display: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-close-label {
    display: inline;
}

.navbar-toggler:focus-visible {
    outline: 2px solid var(--nl-cyan);
    outline-offset: 3px;
}

.btn {
    border-radius: 0.42rem;
    font-size: 0.875rem;
    font-weight: 550;
}

.btn-brand {
    border: 0;
    background: linear-gradient(90deg, var(--nl-cyan), var(--nl-cyan-deep));
    color: var(--nl-accent-contrast);
    box-shadow: 0 0 0 rgba(var(--nl-accent-rgb), 0);
}

.btn-brand:hover,
.btn-brand:focus {
    background: linear-gradient(90deg, var(--nl-cyan-deep), var(--nl-accent-darker));
    color: var(--nl-accent-contrast-strong);
    box-shadow: 0 8px 28px rgba(var(--nl-accent-deep-rgb), 0.18);
}

.btn-brand:disabled {
    border: 1px solid rgba(var(--nl-accent-rgb), 0.25);
    background: rgba(var(--nl-accent-rgb), 0.14);
    color: rgba(var(--nl-accent-light-rgb), 0.58);
    opacity: 1;
}

.btn-lg {
    min-height: 44px;
    padding: 0.72rem 1.75rem;
    border-radius: 999px;
    font-size: 0.86rem;
}

.btn-outline-muted {
    border-color: #35434c;
    color: rgba(255, 255, 255, 0.78);
}

.btn-outline-muted:hover,
.btn-outline-muted:focus {
    border-color: rgba(var(--nl-accent-rgb), 0.5);
    background: rgba(var(--nl-accent-rgb), 0.08);
    color: #fff;
}

.hero-section {
    position: relative;
    isolation: isolate;
    min-height: 455px;
    padding: 7rem 0 4.75rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 10%, rgba(var(--nl-accent-deep-rgb), 0.11), transparent 45%),
        linear-gradient(180deg, #071116 0%, #060b0e 46%, var(--nl-bg-deep) 100%);
}

.hero-section::before,
.hero-section::after {
    position: absolute;
    content: "";
    z-index: -1;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.28;
}

.hero-section::before {
    width: 22rem;
    height: 9rem;
    left: 12%;
    top: 28%;
    background: rgba(var(--nl-accent-deep-rgb), 0.12);
}

.hero-section::after {
    width: 18rem;
    height: 8rem;
    right: 10%;
    top: 20%;
    background: rgba(var(--nl-accent-glow-rgb), 0.08);
}

.eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.38rem 0.75rem;
    border: 1px solid rgba(var(--nl-accent-rgb), 0.26);
    border-radius: 999px;
    background: rgba(var(--nl-accent-bg-rgb), 0.22);
    color: rgba(255, 255, 255, 0.76);
    box-shadow: inset 0 0 16px rgba(var(--nl-accent-rgb), 0.03);
    font-size: 0.72rem;
}

.eyebrow-icon,
.trust-icon {
    color: var(--nl-accent-light);
}

.hero-section h1 {
    max-width: 56rem;
    margin: 1.75rem auto 0;
    color: #fff;
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.hero-copy {
    max-width: 42rem;
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.54);
    font-size: 1rem;
    line-height: 1.75;
}

.hero-trust {
    margin-top: 1.8rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.7rem;
}

.market-preview-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--nl-bg-deep);
}

.market-preview-section {
    padding: 1.3rem 0 2.25rem;
}

.section-kicker {
    color: var(--nl-accent-kicker);
    font-size: 0.64rem;
    font-weight: 650;
    letter-spacing: normal;
}

.section-heading {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 550;
}

.section-link {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    text-decoration: none;
}

.section-link:hover,
.section-link:focus {
    color: var(--nl-accent-light);
}

.market-marquee {
    --market-marquee-gap: 1rem;
    width: calc(100% + 1.5rem);
    margin-right: -1.5rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent,
        #000 1.5rem,
        #000 calc(100% - 1.5rem),
        transparent
    );
    mask-image: linear-gradient(
        90deg,
        transparent,
        #000 1.5rem,
        #000 calc(100% - 1.5rem),
        transparent
    );
}

.market-marquee-track {
    display: flex;
    width: max-content;
    animation: market-marquee-left 75s linear infinite;
    will-change: transform;
}

.market-marquee-group {
    display: flex;
    flex: 0 0 auto;
    gap: var(--market-marquee-gap);
    padding-right: var(--market-marquee-gap);
}

.market-marquee:hover .market-marquee-track,
.market-marquee:focus-within .market-marquee-track {
    animation-play-state: paused;
}

@keyframes market-marquee-left {
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

.market-card {
    width: 260px;
    min-height: 161px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 1rem;
    background: rgba(20, 20, 20, 0.95);
    color: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.market-card:hover {
    border-color: rgba(var(--nl-accent-rgb), 0.28);
    background: var(--nl-accent-hover-bg);
}

.market-card .card-body {
    padding: 1rem;
}

.coin-icon {
    display: inline-block;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: contain;
    vertical-align: middle;
}

.coin-icon--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #262626;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.12);
}

.market-card-name {
    font-size: 0.83rem;
    font-weight: 600;
}

.market-card-symbol,
.market-card-foot,
.market-status {
    color: rgba(255, 255, 255, 0.43);
    font-size: 0.72rem;
}

.market-status {
    padding: 0.26rem 0.48rem;
    border-radius: 999px;
    background: rgba(var(--nl-accent-rgb), 0.08);
    color: var(--nl-accent-status);
}

.market-card-pair {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.market-card-foot {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-icon {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--nl-accent-rgb), 0.22);
    border-radius: 0.6rem;
    background: rgba(var(--nl-accent-bg-rgb), 0.35);
    color: var(--nl-accent-light);
}

.privacy-section {
    padding: 4rem 0;
    border-top: 1px solid var(--nl-border);
    background: #090909;
}

.privacy-value {
    padding: 1.75rem;
    border: 1px solid var(--nl-border-soft);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.015);
}

.privacy-value > span {
    display: block;
    margin-bottom: 1rem;
    color: var(--nl-accent-light);
    font-size: 1.35rem;
}

.privacy-value h2 {
    color: #fff;
    font-weight: 600;
}

.privacy-value p {
    max-width: 21rem;
    margin: 0 auto;
    color: var(--nl-muted);
    line-height: 1.6;
}

/* Shared orange accent palette for customer-facing and administration pages. */

.site-theme-orange {
    --nl-cyan: #f65b28;
    --nl-cyan-deep: #d84517;
    --nl-accent-rgb: 246, 91, 40;
    --nl-accent-deep-rgb: 216, 69, 23;
    --nl-accent-light: #ff8a61;
    --nl-accent-light-rgb: 255, 138, 97;
    --nl-accent-glow-rgb: 255, 111, 61;
    --nl-accent-bright: #ff9a78;
    --nl-accent-bright-rgb: 255, 154, 120;
    --nl-accent-kicker: #ff7c50;
    --nl-accent-pale: #ffc0aa;
    --nl-accent-extra-pale: #fff0eb;
    --nl-accent-text: #fff0eb;
    --nl-accent-darker: #bd3810;
    --nl-accent-info: #f65b28;
    --nl-accent-info-light: #ff8a61;
    --nl-accent-info-rgb: 246, 91, 40;
    --nl-accent-info-deep-rgb: 216, 69, 23;
    --nl-accent-info-bg-rgb: 45, 17, 8;
    --nl-accent-info-display-rgb: 246, 91, 40;
    --nl-accent-bg-rgb: 91, 28, 9;
    --nl-accent-pale-rgb: 255, 192, 170;
    --nl-accent-deep-bg-rgb: 46, 20, 4;
    --nl-accent-gradient-start: #ff8a61;
    --nl-accent-gradient-end: #d84517;
    --nl-accent-status: #ff9a78;
    --nl-accent-contrast: #180703;
    --nl-accent-contrast-strong: #120501;
    --nl-accent-hover-bg: #1a1210;
    --nl-accent-panel-bg: #120b08;
    --nl-accent-media-start: #090301;
    --nl-accent-media-mid: #190a05;
    --nl-accent-media-end: #050201;
    --nl-accent-code-bg: #1a1210;
    --nl-accent-pre-bg: #0f0d0c;
}

/* Homepage-specific depth and glow treatment. */

.home-theme-orange {
    --home-accent: #f65b28;
    --home-accent-deep: #d84517;
    --home-accent-light: #ff8a61;
}

/* Let the homepage glow sit behind the navigation without reducing legibility. */
.home-theme-orange .site-header {
    background: rgba(10, 10, 10, 0.76);
    backdrop-filter: blur(16px) saturate(125%);
}

.home-theme-orange .hero-section {
    margin-top: -65px;
    min-height: 520px;
    padding-top: calc(7rem + 65px);
}

.home-theme-orange .site-header a.nav-link:hover,
.home-theme-orange .site-header a.nav-link:focus,
.home-theme-orange .site-header .nav-link.active {
    background: rgba(246, 91, 40, 0.09);
}

.home-theme-orange .btn-brand {
    background: linear-gradient(90deg, var(--home-accent), var(--home-accent-deep));
    color: #180703;
    box-shadow: 0 0 0 rgba(246, 91, 40, 0);
}

.home-theme-orange .btn-brand:hover,
.home-theme-orange .btn-brand:focus {
    background: linear-gradient(90deg, #ff6d3d, #e34a18);
    color: #120501;
    box-shadow: 0 8px 28px rgba(246, 91, 40, 0.2);
}

.home-theme-orange .btn-outline-muted:hover,
.home-theme-orange .btn-outline-muted:focus {
    border-color: rgba(246, 91, 40, 0.52);
    background: rgba(246, 91, 40, 0.08);
}

.home-theme-orange .hero-section {
    background:
        radial-gradient(circle at 50% 10%, rgba(246, 91, 40, 0.14), transparent 45%),
        linear-gradient(180deg, #160a06 0%, #0e0806 46%, var(--nl-bg-deep) 100%);
}

.home-theme-orange .hero-section::before {
    background: rgba(246, 91, 40, 0.16);
}

.home-theme-orange .hero-section::after {
    background: rgba(255, 111, 61, 0.1);
}

.home-theme-orange .eyebrow-badge {
    border-color: rgba(246, 91, 40, 0.3);
    background: rgba(91, 28, 9, 0.25);
    box-shadow: inset 0 0 16px rgba(246, 91, 40, 0.04);
}

.home-theme-orange .eyebrow-icon,
.home-theme-orange .trust-icon,
.home-theme-orange .section-kicker,
.home-theme-orange .section-link:hover,
.home-theme-orange .section-link:focus,
.home-theme-orange .privacy-value > span {
    color: var(--home-accent-light);
}

.home-theme-orange .market-card:hover {
    border-color: rgba(246, 91, 40, 0.3);
    background: #1a1210;
}

.home-theme-orange .market-status {
    background: rgba(246, 91, 40, 0.09);
    color: #ff9a78;
}

.home-theme-orange .section-icon,
.home-theme-orange .home-news-icon {
    border-color: rgba(246, 91, 40, 0.24);
    background: rgba(246, 91, 40, 0.09);
    color: var(--home-accent-light);
}

.home-theme-orange .home-news-kicker,
.home-theme-orange .home-news-card-category {
    color: rgba(255, 138, 97, 0.82);
}

.home-theme-orange .home-news-card:focus-visible {
    outline-color: var(--home-accent);
}

.home-theme-orange .home-news-card-highlight {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(246, 91, 40, 0.38),
        transparent
    );
}

.home-theme-orange .home-news-card-media {
    background:
        radial-gradient(circle at 30% 100%, rgba(246, 91, 40, 0.23), transparent 42%),
        linear-gradient(145deg, #090301, #190a05 62%, #050201);
}

.home-theme-orange .home-news-card-placeholder,
.home-theme-orange .home-news-card:hover .home-news-card-arrow {
    color: var(--home-accent-light);
}

.home-theme-orange .home-news-card:hover .home-news-card-arrow {
    border-color: rgba(246, 91, 40, 0.28);
}

.home-theme-orange .execution-section {
    background:
        radial-gradient(circle at 18% 10%, rgba(246, 91, 40, 0.055), transparent 27rem),
        #080706;
}

.home-theme-orange .execution-table tbody tr:hover {
    background: rgba(246, 91, 40, 0.04);
}

.home-theme-orange .execution-route-arrow {
    color: var(--home-accent-light);
}

.home-theme-orange .execution-market {
    border-color: rgba(246, 91, 40, 0.16);
    background: rgba(246, 91, 40, 0.065);
    color: #ffb095;
}

.home-theme-orange .site-footer {
    background:
        linear-gradient(180deg, rgba(246, 91, 40, 0.018), transparent 10rem),
        #0a0a0a;
}

.home-theme-orange .trollbox-launcher {
    border-color: rgba(246, 91, 40, 0.34);
    background:
        linear-gradient(135deg, rgba(246, 91, 40, 0.18), rgba(216, 69, 23, 0.08)),
        #14110f;
    color: #fff0eb;
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.42),
        0 0 18px rgba(246, 91, 40, 0.09);
}

.home-theme-orange .trollbox-launcher:hover,
.home-theme-orange .trollbox-launcher:focus-visible {
    border-color: rgba(246, 91, 40, 0.58);
    background:
        linear-gradient(135deg, rgba(246, 91, 40, 0.24), rgba(216, 69, 23, 0.12)),
        #17120f;
}

.home-theme-orange .trollbox-launcher:focus-visible,
.home-theme-orange .trollbox-close:focus-visible,
.home-theme-orange .trollbox-send:focus-visible,
.home-theme-orange .trollbox-feed:focus-visible,
.home-theme-orange .trollbox-guest a:focus-visible {
    outline-color: var(--home-accent);
}

.home-theme-orange .trollbox-unread {
    background: var(--home-accent);
    color: #180703;
}

.home-theme-orange .trollbox-panel {
    background:
        radial-gradient(circle at 100% 0, rgba(246, 91, 40, 0.065), transparent 15rem),
        #0f0d0c;
}

.home-theme-orange .trollbox-username,
.home-theme-orange .trollbox-guest a {
    color: var(--home-accent-light);
}

.home-theme-orange .trollbox-compose .form-control:focus {
    border-color: rgba(246, 91, 40, 0.54);
    box-shadow: 0 0 0 0.16rem rgba(246, 91, 40, 0.1);
}

.home-theme-orange .trollbox-send {
    border-color: rgba(246, 91, 40, 0.32);
    background: rgba(246, 91, 40, 0.12);
    color: #ff9a78;
}

.home-theme-orange .trollbox-send:hover,
.home-theme-orange .trollbox-send:focus-visible {
    border-color: rgba(246, 91, 40, 0.54);
    background: rgba(246, 91, 40, 0.18);
    color: #ffc0aa;
}

.home-theme-orange .trollbox-guest a:hover,
.home-theme-orange .trollbox-guest a:focus-visible {
    color: #ffc0aa;
}

.auth-section {
    min-height: calc(100vh - 65px);
    padding: 1rem 0 4.5rem;
    background:
        radial-gradient(circle at 50% 0%, rgba(var(--nl-accent-deep-rgb), 0.05), transparent 24rem),
        var(--nl-bg);
}

.auth-card {
    max-width: 448px;
    border: 1px solid var(--nl-border);
    border-radius: 0.75rem;
    background: rgba(10, 10, 10, 0.92);
    color: var(--nl-text);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.auth-card .card-body {
    padding: 2rem;
}

.auth-logo {
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.14));
}

.auth-title {
    margin-bottom: 0.4rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.auth-subtitle,
.auth-switch {
    color: var(--nl-muted);
}

.form-label {
    margin-bottom: 0.65rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 600;
}

.form-control,
.input-group-text {
    min-height: 40px;
    border-color: var(--nl-border);
    background: var(--nl-bg);
    color: var(--nl-text);
    font-size: 0.875rem;
}

.input-group-text {
    padding-right: 0.35rem;
    border-right: 0;
    color: rgba(255, 255, 255, 0.5);
}

.input-group .form-control {
    border-left: 0;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.46);
}

.form-control:focus {
    border-color: rgba(var(--nl-accent-rgb), 0.62);
    background: var(--nl-bg);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(var(--nl-accent-rgb), 0.08);
}

.input-group:focus-within .input-group-text {
    border-color: rgba(var(--nl-accent-rgb), 0.62);
}

.form-text {
    color: rgba(255, 255, 255, 0.44);
    font-size: 0.72rem;
}

.alert {
    border-radius: 0.5rem;
    font-size: 0.8rem;
}

.alert-danger {
    border-color: rgba(244, 63, 94, 0.25);
    background: rgba(127, 29, 29, 0.2);
    color: #fecdd3;
}

.alert-success {
    border-color: rgba(52, 211, 153, 0.25);
    background: rgba(6, 78, 59, 0.22);
    color: #a7f3d0;
}

.auth-divider {
    position: relative;
    margin: 1.5rem 0;
    color: rgba(255, 255, 255, 0.36);
    text-align: center;
    font-size: 0.68rem;
}

.captcha-panel {
    padding: 0.45rem;
    border: 1px solid var(--nl-border);
    border-radius: 0.55rem;
    background: #07090a;
}

.captcha-panel--invalid {
    border-color: rgba(244, 63, 94, 0.62);
}

.captcha-panel altcha-widget {
    width: 100%;
    display: block;
    --altcha-max-width: 100%;
    --altcha-border-color: rgba(255, 255, 255, 0.1);
    --altcha-border-radius: 0.4rem;
    --altcha-color-base: #0b0c0d;
    --altcha-color-base-content: rgba(255, 255, 255, 0.88);
    --altcha-color-neutral: #151719;
    --altcha-color-neutral-content: rgba(255, 255, 255, 0.72);
    --altcha-color-primary: var(--nl-accent);
    --altcha-color-primary-content: #120703;
    --altcha-color-success: #34d399;
    --altcha-color-success-content: #03150e;
    --altcha-color-error: #fb7185;
    --altcha-color-error-content: #210307;
    --altcha-checkbox-border-color: rgba(255, 255, 255, 0.3);
    --altcha-checkbox-outline-color: rgba(var(--nl-accent-rgb), 0.45);
    --altcha-input-background-color: #07090a;
    --altcha-input-color: rgba(255, 255, 255, 0.9);
    --altcha-shadow: none;
    --altcha-spinner-color: var(--nl-accent);
}

.invalid-feedback {
    width: 100%;
    color: #fda4af;
    font-size: 0.74rem;
}

.input-group > .invalid-feedback {
    margin-left: 0;
}

.auth-divider::before {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
    content: "";
    background: var(--nl-border);
}

.auth-divider span {
    position: relative;
    padding: 0 0.75rem;
    background: var(--nl-bg);
}

.auth-switch a,
.footer-contact {
    color: var(--nl-cyan);
    font-weight: 550;
    text-decoration: none;
}

.auth-switch a:hover,
.auth-switch a:focus,
.footer-contact:hover,
.footer-contact:focus {
    color: var(--nl-accent-light);
}

.auth-benefits,
.security-reminder {
    max-width: 680px;
}

.auth-benefit,
.security-reminder {
    border: 1px solid var(--nl-border);
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.018);
}

.auth-benefit {
    padding: 1rem;
    text-align: center;
}

.auth-benefit > span {
    color: var(--nl-accent-light);
}

.auth-benefit h2,
.security-reminder h2 {
    margin: 0.45rem 0 0.25rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
}

.auth-benefit p,
.security-reminder p {
    color: var(--nl-muted);
    font-size: 0.7rem;
}

.security-reminder {
    padding: 1rem 1.25rem;
}

.markets-section {
    min-height: 72vh;
    padding: 2rem 0 4rem;
    background: var(--nl-bg);
}

.markets-header h1 {
    margin-bottom: 0.35rem;
    font-size: clamp(1.7rem, 4vw, 2rem);
    font-weight: 650;
    letter-spacing: -0.035em;
}

.markets-header p {
    color: var(--nl-muted);
    font-size: 0.92rem;
}

.market-search {
    width: min(100%, 224px);
}

.market-table-container {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 0.75rem;
    background: var(--nl-bg-deep);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.market-table-wrap {
    border: 0;
    border-radius: 0;
}

.market-table {
    min-width: 900px;
    --bs-table-bg: #050505;
    --bs-table-color: #f5f5f5;
    --bs-table-border-color: rgba(255, 255, 255, 0.055);
    --bs-table-hover-bg: rgba(var(--nl-accent-rgb), 0.035);
    --bs-table-hover-color: #fff;
}

.market-table thead th {
    padding: 0.95rem 1rem;
    border-bottom-width: 1px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.69rem;
    font-weight: 600;
    white-space: nowrap;
}

.market-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.25rem;
    border: 0;
    border-radius: 0.3rem;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    white-space: nowrap;
}

.market-sort-button:hover,
.market-sort-button:focus-visible,
.market-table th[aria-sort="ascending"] .market-sort-button,
.market-table th[aria-sort="descending"] .market-sort-button {
    background: rgba(var(--nl-accent-rgb), 0.08);
    color: var(--nl-accent-extra-pale);
}

.market-sort-button:focus-visible {
    outline: 2px solid rgba(var(--nl-accent-rgb), 0.68);
    outline-offset: 1px;
}

.market-sort-indicator {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.68rem;
}

.market-table th[aria-sort="ascending"] .market-sort-indicator,
.market-table th[aria-sort="descending"] .market-sort-indicator {
    color: var(--nl-accent-light);
}

.market-table tbody td {
    padding: 0.62rem 1rem;
    font-size: 0.72rem;
    white-space: nowrap;
}

.market-table strong,
.market-table small,
.market-table td > span {
    display: block;
}

.market-table strong {
    font-size: 0.74rem;
    font-weight: 550;
}

.market-table small,
.market-placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.market-table .coin-icon {
    flex-basis: 1.55rem;
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0.78rem;
}

.market-favorite-column,
.market-favorite-cell {
    width: 3rem;
    text-align: center;
}

.market-favorite-button,
.market-favorite-login {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 0.38rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    font-size: 1.08rem;
    line-height: 1;
    text-decoration: none;
    transition:
        border-color 140ms ease,
        background-color 140ms ease,
        color 140ms ease;
}

.market-favorite-button:hover,
.market-favorite-button:focus-visible,
.market-favorite-login:hover,
.market-favorite-login:focus-visible {
    border-color: rgba(var(--nl-accent-rgb), 0.34);
    background: rgba(var(--nl-accent-rgb), 0.08);
    color: var(--nl-accent-extra-pale);
}

.market-favorite-button:focus-visible,
.market-favorite-login:focus-visible {
    outline: 2px solid rgba(var(--nl-accent-rgb), 0.68);
    outline-offset: 1px;
}

.market-favorite-button.is-favorite {
    color: #facc15;
}

.market-favorite-button:disabled {
    cursor: wait;
    opacity: 0.48;
}

.market-favorite-status {
    min-height: 1rem;
    display: block;
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.46);
}

.market-favorite-status[data-state="success"] {
    color: var(--nl-success);
}

.market-favorite-status[data-state="error"] {
    color: var(--nl-danger);
}

.range-high {
    color: var(--nl-success);
}

.range-low {
    color: var(--nl-danger) !important;
}

.market-table-footer {
    padding: 0.8rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
    background: rgba(255, 255, 255, 0.015);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
}

.market-data-note {
    color: rgba(var(--nl-accent-light-rgb), 0.65);
}

.empty-panel {
    padding: 1.25rem;
    border: 1px solid var(--nl-border);
    border-radius: 0.5rem;
    background: var(--nl-surface);
    color: var(--nl-muted);
}

/* Authenticated wallet */

.wallet-page {
    min-height: 72vh;
    padding: 2rem 0 4rem;
    background: var(--nl-bg);
}

.wallet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.wallet-header h1 {
    margin-bottom: 0.35rem;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.15rem);
    font-weight: 650;
    letter-spacing: -0.04em;
}

.wallet-header p {
    color: var(--nl-muted);
    font-size: 0.9rem;
}

.wallet-header-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.5rem;
}

.wallet-header-actions .btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wallet-toolbar {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.wallet-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wallet-filter-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 0.42rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.84);
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 600;
}

.wallet-filter-button:hover,
.wallet-filter-button:focus-visible,
.wallet-filter-button.is-active {
    border-color: rgba(var(--nl-accent-rgb), 0.28);
    background: rgba(var(--nl-accent-rgb), 0.07);
    color: #fff;
}

.wallet-filter-button:focus-visible {
    outline: 2px solid rgba(var(--nl-accent-rgb), 0.58);
    outline-offset: 2px;
}

.wallet-filter-button.is-active {
    color: var(--nl-accent-light);
}

.wallet-search {
    width: min(100%, 256px);
    flex: 0 0 auto;
}

.wallet-table-container {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 0.7rem;
    background: var(--nl-bg-deep);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.wallet-table {
    min-width: 860px;
    --bs-table-bg: var(--nl-bg-deep);
    --bs-table-color: var(--nl-text);
    --bs-table-border-color: rgba(255, 255, 255, 0.055);
    --bs-table-hover-bg: rgba(var(--nl-accent-rgb), 0.03);
    --bs-table-hover-color: #fff;
}

.wallet-table thead th {
    padding: 0.9rem 0.8rem;
    border-bottom-width: 1px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
}

.wallet-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.25rem;
    border: 0;
    border-radius: 0.3rem;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    white-space: nowrap;
}

.wallet-sort-button:hover,
.wallet-sort-button:focus-visible,
.wallet-table th[aria-sort="ascending"] .wallet-sort-button,
.wallet-table th[aria-sort="descending"] .wallet-sort-button {
    background: rgba(var(--nl-accent-rgb), 0.08);
    color: var(--nl-accent-extra-pale);
}

.wallet-sort-button:focus-visible {
    outline: 2px solid rgba(var(--nl-accent-rgb), 0.68);
    outline-offset: 1px;
}

.wallet-sort-indicator {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.68rem;
}

.wallet-table th[aria-sort="ascending"] .wallet-sort-indicator,
.wallet-table th[aria-sort="descending"] .wallet-sort-indicator {
    color: var(--nl-accent-light);
}

.wallet-table tbody th,
.wallet-table tbody td {
    height: 52px;
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
    white-space: nowrap;
}

.wallet-asset {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.wallet-asset .coin-icon {
    flex-basis: 1.65rem;
    width: 1.65rem;
    height: 1.65rem;
    font-size: 0.78rem;
}

.wallet-asset strong,
.wallet-asset small,
.wallet-locked-balance {
    display: block;
}

.wallet-asset strong {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1.1;
}

.wallet-asset small,
.wallet-locked-balance {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.65rem;
    font-weight: 400;
}

.wallet-amount {
    color: rgba(255, 255, 255, 0.94);
    font-variant-numeric: tabular-nums;
}

.wallet-locked-balance {
    margin-top: 0.14rem;
}

.wallet-network-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0.22rem 0.48rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1;
}

.wallet-actions {
    display: inline-flex;
    justify-content: flex-end;
    gap: 0.3rem;
}

.wallet-actions .btn {
    min-width: 76px;
    padding: 0.35rem 0.55rem;
    font-size: 0.69rem;
}

.wallet-actions .btn:disabled {
    border: 1px solid rgba(var(--nl-accent-rgb), 0.2);
    background: rgba(var(--nl-accent-rgb), 0.12);
    color: rgba(var(--nl-accent-light-rgb), 0.48);
}

.wallet-table-footer {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.68rem;
}

/* Authenticated deposits */

.deposit-page {
    min-height: 72vh;
    padding: 2.15rem 0 4rem;
    background:
        radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.045), transparent 28rem),
        var(--nl-bg);
}

.deposit-shell {
    width: min(100%, 920px);
    margin: 0 auto;
}

.deposit-heading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.deposit-heading h1 {
    margin: 0 0 0.2rem;
    color: #fff;
    font-size: clamp(1.65rem, 4vw, 2rem);
    font-weight: 650;
    letter-spacing: -0.04em;
}

.deposit-heading p {
    color: var(--nl-muted);
    font-size: 0.84rem;
}

.wallet-back-link {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.15rem;
    text-decoration: none;
}

.wallet-back-link:hover,
.wallet-back-link:focus-visible {
    border-color: rgba(var(--nl-accent-rgb), 0.3);
    background: rgba(var(--nl-accent-rgb), 0.08);
    color: #fff;
}

.wallet-back-link:focus-visible,
.deposit-copy-button:focus-visible {
    outline: 2px solid rgba(var(--nl-accent-rgb), 0.68);
    outline-offset: 2px;
}

.deposit-heading-icon {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
}

.deposit-heading-icon .coin-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
}

.deposit-safety-notice {
    margin-bottom: 0.8rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 0.55rem;
    background: rgba(120, 53, 15, 0.12);
    color: rgba(254, 243, 199, 0.86);
    font-size: 0.72rem;
    line-height: 1.5;
}

.deposit-safety-notice strong {
    color: #fbbf24;
}

.deposit-safety-notice--ready {
    border-color: rgba(52, 211, 153, 0.24);
    background: rgba(6, 78, 59, 0.1);
    color: rgba(209, 250, 229, 0.8);
}

.deposit-safety-notice--ready strong {
    color: #6ee7b7;
}

.deposit-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.6rem;
    background: #030303;
}

.deposit-stat {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.deposit-stat-marker,
.deposit-card-marker {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 0.42rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.deposit-stat-marker--green {
    background: rgba(16, 185, 129, 0.13);
    color: #34d399;
}

.deposit-stat-marker--amber {
    background: rgba(245, 158, 11, 0.13);
    color: #fbbf24;
}

.deposit-stat-marker--blue {
    background: rgba(var(--nl-accent-info-rgb), 0.14);
    color: var(--nl-accent-info-light);
}

.deposit-stat-marker--violet {
    background: rgba(124, 58, 237, 0.16);
    color: #c084fc;
}

.deposit-stat-marker--orange {
    background: rgba(234, 88, 12, 0.14);
    color: #fb923c;
}

.deposit-stat small,
.deposit-stat strong {
    display: block;
    min-width: 0;
}

.deposit-stat small {
    margin-bottom: 0.06rem;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.65rem;
    line-height: 1.2;
}

.deposit-stat strong {
    overflow: hidden;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deposit-card {
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.6rem;
    background: #030303;
}

.deposit-card-header {
    min-height: 61px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.deposit-card-header--violet {
    background: linear-gradient(90deg, rgba(76, 29, 149, 0.22), rgba(24, 10, 45, 0.2));
}

.deposit-card-header--amber {
    background: linear-gradient(90deg, rgba(120, 53, 15, 0.18), rgba(46, 20, 4, 0.18));
}

.deposit-card-header--violet .deposit-card-marker {
    background: rgba(124, 58, 237, 0.22);
    color: #c084fc;
}

.deposit-card-header--amber .deposit-card-marker {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
}

.deposit-card-header h2 {
    margin: 0;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 650;
}

.deposit-address-state {
    margin-left: auto;
    padding: 0.24rem 0.48rem;
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.07);
    color: #fde68a;
    font-size: 0.58rem;
    font-weight: 650;
    line-height: 1;
}

.deposit-address-state.is-ready {
    border-color: rgba(52, 211, 153, 0.22);
    background: rgba(52, 211, 153, 0.07);
    color: #86efac;
}

.deposit-address-body {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.deposit-qr-frame {
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.55rem;
    background: #0b0b0b;
}

.deposit-qr-image {
    width: 156px;
    height: 156px;
    border: 7px solid #fff;
    border-radius: 0.34rem;
    background: #fff;
    image-rendering: pixelated;
}

.deposit-qr-fallback {
    width: 156px;
    height: 156px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.34rem;
    background: #fff;
    color: #111;
    font-weight: 700;
}

.deposit-address-content {
    min-width: 0;
}

.deposit-address-help {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.72rem;
}

.deposit-address-control {
    min-height: 42px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.42rem;
    background: #050505;
}

.deposit-address-control code {
    min-width: 0;
    display: block;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
    padding: 0.65rem 0.75rem;
    color: rgba(255, 255, 255, 0.93);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.45;
    white-space: normal;
    word-break: break-word;
}

.deposit-copy-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.42rem;
    padding: 0.55rem 0.8rem;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
}

.deposit-copy-button:hover {
    background: rgba(var(--nl-accent-rgb), 0.08);
    color: #fff;
}

.deposit-copy-status {
    min-height: 1rem;
    display: block;
    margin-top: 0.35rem;
    color: var(--nl-accent-light);
    font-size: 0.65rem;
}

.deposit-address-unavailable {
    min-height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.58);
    text-align: left;
}

.deposit-address-unavailable > span {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    font-weight: 700;
}

.deposit-address-unavailable strong {
    display: block;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.76rem;
}

.deposit-address-unavailable p {
    max-width: 29rem;
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.5;
}

.grin-deposit-workflow {
    display: grid;
    gap: 1px;
    background: var(--nl-border);
}

.grin-deposit-step {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1.25rem;
    background: var(--nl-surface);
}

.grin-deposit-step-number {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    color: #d7b5ff;
    background: rgba(137, 58, 214, 0.18);
    font-weight: 800;
}

.grin-deposit-step h3,
.grin-deposit-requests h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.grin-deposit-step p,
.grin-deposit-empty {
    margin: 0 0 0.85rem;
    color: var(--nl-muted);
}

.grin-slatepack-input,
.grin-slatepack-response {
    min-height: 9rem;
    resize: vertical;
    color: var(--nl-text);
    background: #060606;
    border-color: var(--nl-border);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.78rem;
    line-height: 1.5;
}

.grin-deposit-form-status {
    min-height: 1.25rem;
    margin: 0.75rem 0 0;
    color: var(--nl-muted);
}

.grin-deposit-form-status[data-state="success"] {
    color: var(--nl-success);
}

.grin-deposit-form-status[data-state="error"],
.grin-deposit-error {
    color: var(--nl-danger);
}

.grin-deposit-requests {
    padding: 1.25rem;
    border-top: 1px solid var(--nl-border);
}

.grin-deposit-requests-heading,
.grin-deposit-request-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.grin-deposit-request {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--nl-border);
    border-radius: 0.5rem;
    background: #050505;
}

.grin-deposit-request-summary {
    margin-bottom: 0.85rem;
}

.grin-deposit-status {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    color: var(--nl-muted);
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.grin-deposit-status--completed {
    color: var(--nl-success);
    background: rgba(22, 199, 132, 0.12);
}

.grin-deposit-status--confirming,
.grin-deposit-status--response_ready {
    color: #f0b429;
    background: rgba(240, 180, 41, 0.12);
}

.grin-deposit-status--failed,
.grin-deposit-status--below_minimum {
    color: var(--nl-danger);
    background: rgba(239, 83, 80, 0.12);
}

.grin-deposit-error {
    margin: 0.75rem 0 0;
}

.deposit-instruction-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    padding: 1rem;
}

.deposit-instruction-panel {
    padding: 0.8rem;
    border: 1px solid rgba(245, 158, 11, 0.34);
    border-radius: 0.5rem;
    background: rgba(69, 26, 3, 0.1);
}

.deposit-instruction-panel h3 {
    margin: 0 0 0.55rem;
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 650;
}

.deposit-instruction-panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.deposit-instruction-panel li {
    position: relative;
    margin-top: 0.32rem;
    padding-left: 0.72rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.68rem;
    line-height: 1.45;
}

.deposit-instruction-panel li::before {
    position: absolute;
    top: 0.48em;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d97706;
    content: "";
}

.deposit-footer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.deposit-footer-actions .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.deposit-footer-actions .btn:disabled {
    opacity: 0.55;
}

/* Authenticated withdrawals */

.withdraw-page {
    min-height: 72vh;
    padding: 2.15rem 0 4rem;
    background:
        radial-gradient(circle at 50% 0%, rgba(var(--nl-accent-info-rgb), 0.045), transparent 28rem),
        var(--nl-bg);
}

.withdraw-shell {
    width: min(100%, 920px);
    margin: 0 auto;
}

.withdraw-heading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.withdraw-heading h1 {
    margin: 0 0 0.18rem;
    color: #fff;
    font-size: clamp(1.55rem, 4vw, 1.85rem);
    font-weight: 650;
    letter-spacing: -0.04em;
}

.withdraw-heading p {
    color: var(--nl-muted);
    font-size: 0.78rem;
}

.withdraw-heading-icon {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
}

.withdraw-heading-icon .coin-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
}

.withdraw-availability-notice {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 0.55rem;
    background: rgba(120, 53, 15, 0.12);
    color: rgba(254, 243, 199, 0.82);
    font-size: 0.71rem;
}

.withdraw-availability-notice strong {
    color: #fbbf24;
}

.withdraw-address-format {
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(var(--nl-accent-info-display-rgb), 0.17);
    border-radius: 0.55rem;
    background: rgba(var(--nl-accent-deep-bg-rgb), 0.86);
    color: rgba(255, 255, 255, 0.9);
}

.withdraw-address-format summary {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    cursor: pointer;
    font-size: 0.74rem;
    list-style: none;
}

.withdraw-address-format summary::-webkit-details-marker {
    display: none;
}

.withdraw-address-format summary::after {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.72);
    content: "\f282";
    font-family: "bootstrap-icons";
    font-size: 0.9rem;
}

.withdraw-address-format[open] summary::after {
    transform: rotate(180deg);
}

.withdraw-address-format summary:focus-visible,
.withdraw-amount-actions button:focus-visible,
.withdraw-review-button:focus-visible {
    outline: 2px solid rgba(var(--nl-accent-info-display-rgb), 0.68);
    outline-offset: 2px;
}

.withdraw-address-format p {
    margin: 0;
    padding: 0 0.85rem 0.75rem 2.95rem;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.68rem;
}

.withdraw-info-marker,
.withdraw-balance-marker {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 0.42rem;
    background: rgba(var(--nl-accent-info-rgb), 0.22);
    color: var(--nl-accent-info-light);
    font-size: 0.76rem;
    font-weight: 700;
}

.withdraw-balance-card {
    display: grid;
    grid-template-columns: 42px minmax(170px, 0.52fr) minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(var(--nl-accent-info-display-rgb), 0.35);
    border-radius: 0.7rem;
    background:
        linear-gradient(90deg, rgba(var(--nl-accent-info-deep-rgb), 0.09), rgba(var(--nl-accent-info-bg-rgb), 0.16)),
        var(--nl-accent-panel-bg);
}

.withdraw-balance-marker {
    width: 42px;
    height: 42px;
    font-size: 1rem;
}

.withdraw-balance-value h2 {
    margin: 0 0 0.7rem;
    color: #fff;
    font-size: 0.96rem;
    font-weight: 650;
}

.withdraw-balance-value strong {
    color: #fff;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}

.withdraw-balance-policy {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.72rem;
}

.withdraw-form-card {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.7rem;
    background: #050505;
}

.withdraw-field {
    margin-bottom: 1rem;
}

.withdraw-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.75rem;
    font-weight: 650;
}

.withdraw-field > .form-control,
.withdraw-amount-control {
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 0.42rem;
    background: #080808;
}

.withdraw-field > .form-control {
    color: #fff;
    font-size: 0.77rem;
}

.withdraw-field > .form-control:focus {
    border-color: rgba(var(--nl-accent-info-display-rgb), 0.62);
    background: #080808;
    box-shadow: 0 0 0 0.16rem rgba(var(--nl-accent-info-display-rgb), 0.12);
    color: #fff;
}

.withdraw-field > .form-control::placeholder,
.withdraw-amount-control .form-control::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.withdraw-field > small {
    display: block;
    margin-top: 0.38rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.64rem;
}

.withdraw-amount-row {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
}

.withdraw-amount-control {
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    overflow: hidden;
}

.withdraw-amount-control .form-control {
    min-width: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 0.77rem;
    box-shadow: none;
}

.withdraw-amount-control > span {
    flex: 0 0 auto;
    padding-right: 0.75rem;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.7rem;
}

.withdraw-amount-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.3rem;
}

.withdraw-amount-actions button {
    min-width: 42px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 0.42rem;
    background: #080808;
    color: rgba(255, 255, 255, 0.68);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 650;
}

.withdraw-amount-actions button:last-child {
    min-width: 56px;
    font-size: 0.67rem;
}

.withdraw-amount-actions button:hover {
    border-color: rgba(var(--nl-accent-info-display-rgb), 0.35);
    background: rgba(var(--nl-accent-info-rgb), 0.08);
    color: #fff;
}

.withdraw-amount-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.withdraw-total-card {
    margin: 0.35rem 0 1rem;
    padding: 0.85rem;
    border: 1px solid rgba(var(--nl-accent-info-display-rgb), 0.22);
    border-radius: 0.5rem;
    background: rgba(var(--nl-accent-info-deep-rgb), 0.055);
}

.withdraw-total-card h3 {
    margin: 0 0 0.55rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.75rem;
    font-weight: 650;
}

.withdraw-total-card dl {
    margin: 0;
}

.withdraw-total-card dl > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.32rem 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.68rem;
}

.withdraw-total-card dt {
    font-weight: 500;
}

.withdraw-total-card dd {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-variant-numeric: tabular-nums;
}

.withdraw-total-card .withdraw-total-row {
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.withdraw-total-card .withdraw-total-row dt,
.withdraw-total-card .withdraw-total-row dd {
    color: #fff;
    font-weight: 650;
}

.withdraw-important-notes {
    margin: 0.35rem 0 0.85rem;
    padding: 0.85rem;
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.03);
}

.withdraw-important-notes h3 {
    margin: 0 0 0.55rem;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.75rem;
    font-weight: 650;
}

.withdraw-important-notes h3 span {
    margin-right: 0.35rem;
    color: #f97316;
}

.withdraw-important-notes ul {
    margin: 0;
    padding-left: 0.85rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.69rem;
    line-height: 1.75;
}

.withdraw-review-button {
    min-height: 42px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 0;
    border-radius: 0.38rem;
    background: #ad5b21;
    color: #080808;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 700;
}

.withdraw-review-button:hover {
    background: #c46b2a;
}

.withdraw-review-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.withdraw-form-status {
    min-height: 1rem;
    display: block;
    margin-top: 0.45rem;
    color: #fbbf24;
    font-size: 0.68rem;
}

.withdraw-form-status[data-state="error"] {
    color: #f87171;
}

.withdraw-form-status[data-state="info"] {
    color: var(--nl-accent-light);
}

.withdraw-form-status[data-state="success"] {
    color: #6ee7b7;
}

.withdraw-footer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 0.8rem;
}

.withdraw-footer-actions .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Authenticated deposit history */

.wallet-history-page {
    min-height: 72vh;
    padding: 2.15rem 0 4rem;
    background: var(--nl-bg);
}

.wallet-history-shell {
    width: min(100%, 1180px);
    margin: 0 auto;
}

.wallet-history-heading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.wallet-history-heading h1 {
    margin: 0 0 0.18rem;
    color: #fff;
    font-size: clamp(1.65rem, 4vw, 2rem);
    font-weight: 650;
    letter-spacing: -0.04em;
}

.wallet-history-heading p {
    color: var(--nl-muted);
    font-size: 0.84rem;
}

.wallet-history-support-note {
    margin-bottom: 1rem;
    padding: 0.7rem 0.85rem;
    border-left: 2px solid #d99a09;
    background: rgba(120, 53, 15, 0.17);
    color: rgba(254, 243, 199, 0.86);
    font-size: 0.7rem;
}

.wallet-history-support-note a {
    color: #fbbf24;
    font-weight: 650;
}

.wallet-history-overview {
    margin-bottom: 0.85rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.55rem;
    background: #030303;
}

.wallet-history-overview-header {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.wallet-history-total {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.wallet-history-total > span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(var(--nl-accent-deep-rgb), 0.14);
    color: var(--nl-cyan);
    font-size: 1rem;
    font-weight: 700;
}

.wallet-history-total small,
.wallet-history-total strong {
    display: block;
}

.wallet-history-total small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.72rem;
}

.wallet-history-total strong {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 650;
    line-height: 1.15;
}

.wallet-history-overview-header .btn {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.wallet-history-counts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    padding-top: 0.85rem;
}

.wallet-history-count {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.68rem;
    white-space: nowrap;
}

.wallet-history-count strong {
    color: #fff;
}

.wallet-history-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
}

.wallet-history-dot--completed {
    background: #22c55e;
}

.wallet-history-dot--processing {
    background: #f59e0b;
}

.wallet-history-dot--pending {
    background: #f59e0b;
}

.wallet-history-dot--failed {
    background: #ef4444;
}

.wallet-history-dot--cancelled {
    background: #64748b;
}

.wallet-history-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.7rem;
}

.wallet-history-filters {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.wallet-history-filter {
    min-height: 34px;
    padding: 0.42rem 0.68rem;
    border: 1px solid transparent;
    border-radius: 0.38rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.84);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
}

.wallet-history-filter:hover,
.wallet-history-filter:focus-visible {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.wallet-history-filter:focus-visible {
    outline: 2px solid rgba(var(--nl-accent-rgb), 0.68);
    outline-offset: 2px;
}

.wallet-history-filter.is-active {
    border-color: #fff;
    background: #fff;
    color: #090909;
}

.wallet-history-search {
    width: min(100%, 270px);
    flex: 0 0 auto;
}

.wallet-history-table-container {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.55rem;
    background: #030303;
}

.wallet-history-table-container .table-responsive {
    overflow-x: auto;
    overflow-y: hidden;
}

.wallet-history-table {
    min-width: 860px;
    --bs-table-bg: #030303;
    --bs-table-color: var(--nl-text);
    --bs-table-border-color: rgba(255, 255, 255, 0.055);
}

.wallet-history-table thead th {
    padding: 0.9rem 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
}

.wallet-history-table tbody td {
    padding: 0.75rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.7rem;
    vertical-align: middle;
}

.wallet-history-table tbody td > small,
.wallet-history-asset small {
    display: block;
    margin-top: 0.12rem;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.62rem;
}

.wallet-history-asset {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.wallet-history-asset .coin-icon {
    flex-basis: 1.55rem;
    width: 1.55rem;
    height: 1.55rem;
}

.wallet-history-asset strong {
    display: block;
    color: #fff;
    font-size: 0.72rem;
}

.wallet-history-status {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 0.2rem 0.48rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 650;
}

.wallet-history-status--completed {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.wallet-history-status--processing,
.wallet-history-status--pending {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

.wallet-history-status--failed {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.wallet-history-status--cancelled {
    background: rgba(100, 116, 139, 0.16);
    color: #94a3b8;
}

.wallet-history-status--rejected {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.wallet-history-amount {
    color: #fff;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
}

.wallet-history-table code {
    color: rgba(var(--nl-accent-light-rgb), 0.78);
    font-size: 0.66rem;
}

.wallet-history-unavailable {
    color: rgba(255, 255, 255, 0.35);
}

.wallet-history-empty {
    min-height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.2rem;
    color: rgba(255, 255, 255, 0.38);
    text-align: center;
}

.wallet-history-empty > span {
    margin-bottom: 0.25rem;
    font-size: 1.55rem;
}

.wallet-history-empty strong {
    color: #fff;
    font-size: 0.76rem;
}

.wallet-history-empty small {
    color: rgba(255, 255, 255, 0.47);
    font-size: 0.66rem;
}

.wallet-history-table-footer {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.65rem;
}

/* Public news */
.news-section {
    padding: 3.5rem 0 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #070809;
}

.home-news-container {
    max-width: 1280px;
}

.home-news-heading {
    margin-bottom: 1.5rem;
}

.home-news-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-grid;
    flex: 0 0 2.5rem;
    place-items: center;
    border: 1px solid rgba(var(--nl-accent-rgb), 0.2);
    border-radius: 0.75rem;
    background: rgba(var(--nl-accent-deep-rgb), 0.09);
    color: var(--nl-accent-light);
}

.home-news-icon .bi {
    font-size: 1.15rem;
}

.home-news-kicker {
    color: rgba(var(--nl-accent-light-rgb), 0.75);
    font-size: 0.625rem;
    line-height: 1rem;
}

.home-news-title {
    margin-top: 0.125rem;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.5rem;
}

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

.home-news-empty {
    min-height: 13rem;
}

.home-news-card {
    position: relative;
    min-width: 0;
    min-height: 13rem;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    background: #080a0c;
    color: inherit;
    text-decoration: none;
    transition:
        border-color 160ms ease,
        background-color 160ms ease;
}

.home-news-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: #090c0e;
    color: inherit;
}

.home-news-card:focus-visible {
    outline: 2px solid var(--nl-cyan);
    outline-offset: 3px;
}

.home-news-card-highlight {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--nl-accent-light-rgb), 0.32),
        transparent
    );
}

.home-news-card-media {
    position: relative;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background:
        radial-gradient(circle at 30% 100%, rgba(var(--nl-accent-deep-rgb), 0.2), transparent 42%),
        linear-gradient(145deg, var(--nl-accent-media-start), var(--nl-accent-media-mid) 62%, var(--nl-accent-media-end));
}

.home-news-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 220ms ease;
}

.home-news-card:hover .home-news-card-media img {
    transform: scale(1.02);
}

.home-news-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(var(--nl-accent-light-rgb), 0.7);
}

.home-news-card-placeholder .bi {
    font-size: 2rem;
}

.home-news-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1.5rem;
}

.home-news-card-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.home-news-card-category {
    color: rgba(var(--nl-accent-light-rgb), 0.78);
    font-size: 0.625rem;
    font-weight: 650;
    letter-spacing: 0.16em;
    line-height: 1rem;
    text-transform: uppercase;
}

.home-news-card-arrow {
    width: 1.75rem;
    height: 1.75rem;
    display: inline-grid;
    flex: 0 0 1.75rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.38);
    transition:
        border-color 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.home-news-card-arrow .bi {
    font-size: 0.9rem;
}

.home-news-card:hover .home-news-card-arrow {
    border-color: rgba(var(--nl-accent-light-rgb), 0.24);
    color: var(--nl-accent-light);
    transform: translateX(2px);
}

.home-news-card-title {
    margin: 1rem 0 0;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.4;
}

.home-news-card-excerpt {
    margin: 0.5rem 0 0;
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.875rem;
    line-height: 1.25rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-news-card-date {
    margin-top: auto;
    padding-top: 1.25rem;
    color: rgba(255, 255, 255, 0.32);
    font-size: 0.6875rem;
    line-height: 1rem;
}

.news-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 0.75rem;
    background: #090b0e;
    color: var(--nl-text);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    transition:
        border-color 160ms ease,
        transform 160ms ease;
}

.news-card:hover {
    border-color: rgba(var(--nl-accent-rgb), 0.32);
    transform: translateY(-2px);
}

.news-card-link {
    color: inherit;
    text-decoration: none;
}

.news-card-link:focus-visible {
    outline: 2px solid var(--nl-cyan);
    outline-offset: -2px;
}

.news-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background:
        radial-gradient(circle at 30% 100%, rgba(var(--nl-accent-deep-rgb), 0.2), transparent 42%),
        linear-gradient(145deg, var(--nl-accent-media-start), var(--nl-accent-media-mid) 62%, var(--nl-accent-media-end));
}

.news-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 220ms ease;
}

.news-card:hover .news-card-media img {
    transform: scale(1.025);
}

.news-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(var(--nl-accent-light-rgb), 0.7);
    font-size: 2rem;
}

.news-card .card-body {
    min-height: 190px;
    padding: 1.35rem;
}

/* Live public executions */
.execution-section {
    padding: 3.25rem 0 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(circle at 18% 10%, rgba(var(--nl-accent-deep-rgb), 0.045), transparent 27rem),
        #070809;
}

.execution-section-header {
    min-height: 2.5rem;
}

.execution-section-icon {
    color: #86efac;
}

.execution-live-meta {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 0.25rem;
}

.execution-live-status {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: #86efac;
    font-size: 0.7rem;
    font-weight: 600;
}

.execution-live-dot {
    width: 0.42rem;
    height: 0.42rem;
    flex: 0 0 0.42rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0.7rem currentColor;
}

.execution-live-status[data-state="connecting"],
.execution-live-status[data-state="paused"] {
    color: rgba(255, 255, 255, 0.48);
}

.execution-live-status[data-state="error"] {
    color: #fca5a5;
}

.execution-updated-at {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
}

.execution-table-panel {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 0.75rem;
    background: rgba(7, 9, 12, 0.92);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.execution-table {
    min-width: 720px;
    --bs-table-bg: transparent;
    --bs-table-color: rgba(255, 255, 255, 0.72);
    --bs-table-border-color: rgba(255, 255, 255, 0.055);
}

.execution-table > :not(caption) > * > * {
    padding: 0.82rem 1rem;
    vertical-align: middle;
}

.execution-table thead th {
    border-bottom-color: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.execution-table tbody tr:last-child > * {
    border-bottom: 0;
}

.execution-table tbody tr {
    transition: background-color 160ms ease;
}

.execution-table tbody tr:hover {
    background: rgba(var(--nl-accent-rgb), 0.035);
}

.execution-route {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.74rem;
    font-weight: 650;
}

.execution-route-asset {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.execution-route .coin-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-basis: 1.25rem;
    font-size: 0.55rem;
}

.execution-route-arrow {
    color: var(--nl-accent-bright);
}

.execution-market {
    display: inline-flex;
    padding: 0.25rem 0.48rem;
    border: 1px solid rgba(var(--nl-accent-light-rgb), 0.12);
    border-radius: 999px;
    background: rgba(var(--nl-accent-deep-rgb), 0.055);
    color: rgba(var(--nl-accent-pale-rgb), 0.78);
    font-size: 0.67rem;
}

.execution-number {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.68rem;
    white-space: nowrap;
}

.execution-usdt-value {
    color: #86efac;
}

.execution-time {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
    white-space: nowrap;
}

.execution-empty {
    padding: 2.5rem 1rem !important;
    color: rgba(255, 255, 255, 0.62) !important;
    font-size: 0.74rem;
    text-align: center;
}

.execution-privacy-note {
    padding-top: 0.8rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
}

.execution-row-new {
    animation: execution-row-arrival 900ms ease-out;
}

@keyframes execution-row-arrival {
    from {
        background: rgba(34, 197, 94, 0.11);
    }
}

@media (prefers-reduced-motion: reduce) {
    .execution-row-new {
        animation: none;
    }
}

.news-card-date,
.news-article-date {
    color: rgba(var(--nl-accent-light-rgb), 0.65);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-card-title {
    margin: 0.75rem 0 0.6rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -0.025em;
    line-height: 1.35;
}

.news-card-excerpt {
    margin-bottom: 1.25rem;
    color: var(--nl-muted);
    font-size: 0.8rem;
    line-height: 1.65;
}

.news-card-action {
    color: var(--nl-accent-light);
    font-size: 0.73rem;
    font-weight: 600;
}

.news-article-page {
    min-height: 72vh;
    padding: clamp(2.5rem, 7vw, 5.5rem) 0 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background:
        radial-gradient(circle at 50% 0%, rgba(var(--nl-accent-deep-rgb), 0.06), transparent 28rem),
        var(--nl-bg);
}

.news-archive-page {
    min-height: 72vh;
    padding: clamp(2.75rem, 7vw, 5rem) 0 5rem;
    background:
        radial-gradient(circle at 50% 0%, rgba(var(--nl-accent-deep-rgb), 0.05), transparent 28rem),
        var(--nl-bg);
}

.news-archive-header {
    max-width: 680px;
    margin-bottom: 2.25rem;
}

.news-archive-header h1 {
    margin-bottom: 0.65rem;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 650;
    letter-spacing: -0.04em;
}

.news-archive-header > p:last-child {
    color: var(--nl-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.news-pagination {
    margin-top: 2.5rem;
}

.news-pagination .page-link {
    border-color: var(--nl-border);
    background: var(--nl-surface);
    color: rgba(255, 255, 255, 0.68);
}

.news-pagination a.page-link:hover,
.news-pagination a.page-link:focus {
    border-color: rgba(var(--nl-accent-rgb), 0.36);
    background: rgba(var(--nl-accent-rgb), 0.08);
    color: #fff;
}

.news-pagination .active > .page-link {
    border-color: rgba(var(--nl-accent-rgb), 0.38);
    background: rgba(var(--nl-accent-rgb), 0.12);
    color: var(--nl-accent-light);
}

.news-pagination .disabled > .page-link {
    border-color: var(--nl-border);
    background: rgba(255, 255, 255, 0.015);
    color: rgba(255, 255, 255, 0.28);
}

.news-article-shell {
    max-width: 900px;
}

.news-article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 2.75rem;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.75rem;
    text-decoration: none;
}

.news-article-back:hover,
.news-article-back:focus {
    color: var(--nl-accent-light);
}

.news-article-header {
    max-width: 760px;
}

.news-article-header h1 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: clamp(2rem, 6vw, 3.65rem);
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.news-prose {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.94rem;
    line-height: 1.8;
}

.news-prose > :first-child {
    margin-top: 0;
}

.news-prose > :last-child {
    margin-bottom: 0;
}

.news-prose h1,
.news-prose h2,
.news-prose h3,
.news-prose h4 {
    margin: 2.1em 0 0.65em;
    color: #fff;
    font-weight: 650;
    letter-spacing: -0.025em;
    line-height: 1.3;
}

.news-prose h1 {
    font-size: 1.75rem;
}

.news-prose h2 {
    font-size: 1.45rem;
}

.news-prose h3 {
    font-size: 1.2rem;
}

.news-prose h4 {
    font-size: 1rem;
}

.news-prose p,
.news-prose ul,
.news-prose ol,
.news-prose pre,
.news-prose blockquote,
.news-prose table {
    margin-bottom: 1.4rem;
}

.news-prose a {
    color: var(--nl-accent-light);
    text-underline-offset: 0.2em;
}

.news-prose a:hover,
.news-prose a:focus {
    color: var(--nl-accent-pale);
}

.news-prose strong {
    color: #fff;
}

.news-prose li + li {
    margin-top: 0.35rem;
}

.news-prose blockquote {
    padding: 0.2rem 0 0.2rem 1.25rem;
    border-left: 3px solid rgba(var(--nl-accent-rgb), 0.58);
    color: rgba(255, 255, 255, 0.62);
}

.news-prose code {
    padding: 0.12rem 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.3rem;
    background: var(--nl-accent-code-bg);
    color: var(--nl-accent-pale);
    font-size: 0.86em;
}

.news-prose pre {
    max-width: 100%;
    padding: 1rem;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.55rem;
    background: var(--nl-accent-pre-bg);
}

.news-prose pre code {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
}

.news-prose hr {
    margin: 2.25rem 0;
    border-color: rgba(255, 255, 255, 0.12);
}

.news-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.55rem;
}

.news-prose table {
    width: 100%;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
}

.news-prose th,
.news-prose td {
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-prose th {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

/* Public transparency pages */

.transparency-page {
    min-height: 72vh;
    padding: clamp(2.75rem, 7vw, 5rem) 0 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.035);
    background:
        radial-gradient(circle at 50% 0%, rgba(var(--nl-accent-deep-rgb), 0.055), transparent 30rem),
        var(--nl-bg);
}

.transparency-header {
    max-width: 760px;
    margin-bottom: 2.25rem;
}

.transparency-header h1 {
    margin-bottom: 0.75rem;
    color: #fff;
    font-size: clamp(2.1rem, 5vw, 3.25rem);
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.transparency-header > p:last-child {
    color: var(--nl-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.transparency-rate-grid,
.transparency-summary-grid {
    margin-bottom: 0.25rem;
}

.transparency-rate-card,
.transparency-summary-card {
    min-height: 156px;
    padding: 1.25rem;
    border: 1px solid var(--nl-border);
    border-radius: 0.7rem;
    background:
        linear-gradient(145deg, rgba(var(--nl-accent-rgb), 0.035), transparent 65%),
        var(--nl-surface);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.transparency-rate-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.transparency-rate-card > span,
.transparency-summary-card > span {
    color: rgba(var(--nl-accent-light-rgb), 0.68);
    font-size: 0.63rem;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.transparency-rate-card > strong {
    margin: 0.55rem 0 0.65rem;
    color: #fff;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 620;
    letter-spacing: -0.05em;
    line-height: 1;
}

.transparency-rate-card > p {
    max-width: 32rem;
    color: var(--nl-muted);
    font-size: 0.73rem;
    line-height: 1.6;
}

.transparency-summary-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.transparency-summary-card > strong {
    margin: 0.55rem 0 0.35rem;
    color: #fff;
    font-size: 2rem;
    font-weight: 620;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.transparency-summary-card > .transparency-summary-text {
    overflow: hidden;
    font-size: 1rem;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transparency-summary-card > small {
    color: rgba(255, 255, 255, 0.44);
    font-size: 0.64rem;
}

.transparency-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--nl-border);
    border-radius: 0.7rem;
    background: var(--nl-surface);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
}

.transparency-panel-header {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--nl-border-soft);
    background: rgba(255, 255, 255, 0.012);
}

.transparency-panel-header h2,
.transparency-note-card h2,
.transparency-disclosure h2 {
    margin: 0;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 620;
    letter-spacing: -0.02em;
}

.transparency-panel-header > span,
.transparency-panel-header > time {
    flex: 0 0 auto;
    color: var(--nl-muted);
    font-size: 0.64rem;
}

.transparency-table {
    min-width: 680px;
    --bs-table-bg: transparent;
    --bs-table-color: rgba(255, 255, 255, 0.72);
    --bs-table-border-color: rgba(255, 255, 255, 0.065);
}

.transparency-table thead th {
    padding: 0.7rem 0.9rem;
    border-bottom-width: 1px;
    background: #0d0d0d;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.61rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.transparency-table tbody th,
.transparency-table tbody td {
    padding: 0.85rem 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    vertical-align: middle;
}

.transparency-table tbody th {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.transparency-table tbody tr:last-child > * {
    border-bottom: 0;
}

.transparency-number {
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.transparency-note-card {
    padding: 1.2rem;
}

.transparency-note-card > p:not(.section-kicker) {
    margin: 0.8rem 0 1.2rem;
    color: var(--nl-muted);
    font-size: 0.75rem;
    line-height: 1.7;
}

.transparency-meta-list {
    display: grid;
    gap: 0.75rem;
}

.transparency-meta-list > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--nl-border-soft);
}

.transparency-meta-list dt {
    color: var(--nl-muted);
    font-size: 0.63rem;
    font-weight: 500;
}

.transparency-meta-list dd {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.67rem;
    text-align: right;
}

.transparency-meta-list dd span {
    display: block;
    margin-top: 0.15rem;
    color: var(--nl-muted);
    font-size: 0.57rem;
}

.transparency-disclosure {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(var(--nl-accent-rgb), 0.14);
    border-radius: 0.6rem;
    background: rgba(var(--nl-accent-rgb), 0.035);
}

.transparency-disclosure > p {
    margin-top: 0.45rem;
    color: var(--nl-muted);
    font-size: 0.72rem;
    line-height: 1.65;
}

.transparency-table-scroll {
    scrollbar-color: rgba(var(--nl-accent-rgb), 0.22) transparent;
    scrollbar-width: thin;
}

.transparency-table-scroll:focus-visible {
    outline: 2px solid rgba(var(--nl-accent-rgb), 0.72);
    outline-offset: -2px;
}

.transparency-empty {
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--nl-muted);
    font-size: 0.78rem;
    text-align: center;
}

/* Public reserves page */

.reserves-body,
.reserves-body .site-main {
    background: #0b0b0b;
}

.reserves-page {
    min-height: 72vh;
    padding: 2.5rem 0 5rem;
    background: #0b0b0b;
}

.reserves-page > .container {
    max-width: 1016px;
}

.reserves-header {
    margin-bottom: 2rem;
}

.reserves-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reserves-title-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    border: 1px solid rgba(var(--nl-accent-rgb), 0.24);
    border-radius: 0.5rem;
    background: rgba(var(--nl-accent-deep-rgb), 0.1);
    color: var(--nl-cyan);
    font-size: 1rem;
}

.reserves-header h1 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.reserves-header > p {
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
}

.reserves-updated-bar {
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 0.45rem;
    background: #0d0d0d;
}

.reserves-updated-bar form {
    margin: 0;
}

.reserves-updated-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.7rem;
}

.reserves-updated-copy > i {
    color: var(--nl-cyan);
    font-size: 0.78rem;
}

.reserves-updated-copy time,
.reserves-updated-copy strong {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reserves-refresh-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.15rem 0;
    border: 0;
    background: transparent;
    color: var(--nl-cyan);
    font-size: 0.69rem;
    font-weight: 500;
}

.reserves-refresh-button:hover,
.reserves-refresh-button:focus {
    color: var(--nl-accent-light);
}

.reserves-refresh-button:focus-visible {
    outline: 2px solid rgba(var(--nl-accent-rgb), 0.72);
    outline-offset: 4px;
}

.reserves-grid {
    margin-top: 0.5rem;
}

.reserve-asset-card {
    min-height: 184px;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 0.48rem;
    background: #0c0c0c;
}

.reserve-asset-header {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reserve-asset-header .coin-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
}

.reserve-asset-identity {
    min-width: 0;
}

.reserve-asset-identity h2 {
    margin: 0 0 0.3rem;
    overflow: hidden;
    color: #fff;
    font-size: 0.83rem;
    font-weight: 650;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reserve-asset-identity > div {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.reserve-asset-symbol {
    padding: 0.08rem 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.52rem;
    line-height: 1.2;
}

.reserve-network-label {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.55rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reserve-balance {
    margin-top: 1rem;
}

.reserve-balance-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.55rem;
    font-weight: 550;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.reserve-balance-value {
    display: flex;
    align-items: baseline;
    gap: 0.38rem;
    margin: 0.3rem 0 0;
    line-height: 1;
    white-space: nowrap;
}

.reserve-balance-value strong {
    overflow: hidden;
    color: #fff;
    font-size: 1.18rem;
    font-weight: 650;
    letter-spacing: -0.035em;
    text-overflow: ellipsis;
}

.reserve-balance-value > span {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.59rem;
}

.reserve-privacy-note {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: auto 0 0;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.56rem;
    line-height: 1.35;
}

.reserve-privacy-note > i {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.62);
}

.reserves-ledger-note {
    max-width: 720px;
    margin: 2rem auto 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.67rem;
    line-height: 1.55;
    text-align: center;
}

.reserves-empty {
    min-height: 184px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 0.48rem;
    background: #0c0c0c;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.78rem;
    text-align: center;
}

/* Public data and logs policy */

.logs-policy-body,
.logs-policy-body .site-main {
    background: #080808;
}

.logs-policy-page {
    min-height: 72vh;
    background: #080808;
}

.logs-policy-page .container {
    max-width: 1040px;
}

.logs-policy-hero {
    padding: clamp(2.75rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background:
        radial-gradient(circle at 22% 20%, rgba(var(--nl-accent-rgb), 0.1), transparent 24rem),
        linear-gradient(135deg, rgba(126, 94, 20, 0.13), rgba(10, 10, 10, 0.12)),
        #11100c;
}

.logs-policy-back {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 2.6rem;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.78rem;
    font-weight: 550;
    text-decoration: none;
}

.logs-policy-back:hover,
.logs-policy-back:focus {
    color: #fff;
}

.logs-policy-title-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.logs-policy-title-icon {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 72px;
    border: 1px solid rgba(var(--nl-accent-light-rgb), 0.36);
    border-radius: 1rem;
    background: linear-gradient(145deg, var(--nl-accent-gradient-start), var(--nl-accent-gradient-end));
    color: var(--nl-accent-contrast);
    box-shadow: 0 16px 42px rgba(var(--nl-accent-deep-rgb), 0.15);
    font-size: 2rem;
}

.logs-policy-title-row h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 6vw, 3.6rem);
    font-weight: 680;
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.logs-policy-title-row p {
    max-width: 710px;
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: clamp(0.84rem, 2vw, 1rem);
    line-height: 1.6;
}

.logs-policy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.8rem;
    padding-left: 92px;
}

.logs-policy-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 32px;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.68rem;
    font-weight: 600;
}

.logs-policy-content {
    padding-top: clamp(2.75rem, 6vw, 4.5rem);
    padding-bottom: 5rem;
}

.logs-policy-intro {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.018);
}

.logs-policy-intro-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border-radius: 0.6rem;
    background: rgba(var(--nl-accent-rgb), 0.1);
    color: var(--nl-cyan);
    font-size: 1rem;
}

.logs-policy-intro h2,
.logs-policy-record-card h2,
.logs-policy-principle h2,
.logs-policy-contact h2 {
    margin: 0;
    color: #fff;
    font-weight: 650;
    letter-spacing: -0.025em;
}

.logs-policy-intro h2 {
    font-size: 1.15rem;
}

.logs-policy-intro p {
    max-width: 760px;
    margin: 0.65rem 0 0;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.78rem;
    line-height: 1.75;
}

.logs-policy-section {
    margin-top: 3.4rem;
}

.logs-policy-section-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.logs-policy-section-heading > span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border-radius: 0.6rem;
    font-size: 1rem;
}

.logs-policy-section-heading--private > span {
    background: rgba(251, 113, 133, 0.09);
    color: var(--nl-danger);
}

.logs-policy-section-heading--retained > span {
    background: rgba(52, 211, 153, 0.09);
    color: var(--nl-success);
}

.logs-policy-section-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 670;
    letter-spacing: -0.04em;
}

.logs-policy-table-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(251, 113, 133, 0.14);
    border-radius: 0.8rem;
    background: #0a0909;
}

.logs-policy-table-panel--retained {
    border-color: rgba(52, 211, 153, 0.14);
    background: #090b0a;
}

.logs-policy-table-scroll {
    scrollbar-color: rgba(var(--nl-accent-rgb), 0.22) transparent;
    scrollbar-width: thin;
}

.logs-policy-table-scroll:focus-visible {
    outline: 2px solid rgba(var(--nl-accent-rgb), 0.72);
    outline-offset: -2px;
}

.logs-policy-table {
    min-width: 760px;
    --bs-table-bg: transparent;
    --bs-table-color: rgba(255, 255, 255, 0.68);
    --bs-table-border-color: rgba(255, 255, 255, 0.07);
}

.logs-policy-table--retained {
    min-width: 980px;
}

.logs-policy-table thead th {
    padding: 0.9rem 1rem;
    border-bottom-width: 1px;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.64rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.logs-policy-table tbody th,
.logs-policy-table tbody td {
    padding: 0.95rem 1rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.72rem;
    line-height: 1.55;
    vertical-align: middle;
}

.logs-policy-table tbody th {
    min-width: 220px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 610;
    white-space: nowrap;
}

.logs-policy-table tbody th > i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.55rem;
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
}

.logs-policy-table-panel:not(.logs-policy-table-panel--retained)
    .logs-policy-table tbody th > i {
    background: rgba(251, 113, 133, 0.07);
    color: var(--nl-danger);
}

.logs-policy-table-panel--retained .logs-policy-table tbody th > i {
    background: rgba(52, 211, 153, 0.07);
    color: var(--nl-success);
}

.logs-policy-table tbody tr:last-child > * {
    border-bottom: 0;
}

.logs-policy-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 650;
    white-space: nowrap;
}

.logs-policy-status--none {
    border: 1px solid rgba(251, 113, 133, 0.2);
    background: rgba(251, 113, 133, 0.07);
    color: #fda4af;
}

.logs-policy-status--stored {
    border: 1px solid rgba(52, 211, 153, 0.2);
    background: rgba(52, 211, 153, 0.07);
    color: #6ee7b7;
}

.logs-policy-status--limited {
    border: 1px solid rgba(var(--nl-accent-rgb), 0.2);
    background: rgba(var(--nl-accent-rgb), 0.07);
    color: var(--nl-accent-light);
}

.logs-policy-record-grid {
    margin-top: 3.4rem;
}

.logs-policy-record-card {
    padding: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.018);
}

.logs-policy-record-card > span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 0.55rem;
    background: rgba(var(--nl-accent-rgb), 0.08);
    color: var(--nl-cyan);
    font-size: 0.9rem;
}

.logs-policy-record-card h2 {
    font-size: 0.95rem;
}

.logs-policy-record-card p {
    margin: 0.7rem 0 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.72rem;
    line-height: 1.72;
}

.logs-policy-principles {
    margin-top: 2rem;
}

.logs-policy-principle {
    padding: 1.25rem;
    text-align: center;
}

.logs-policy-principle > i {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--nl-cyan);
    font-size: 1.1rem;
}

.logs-policy-principle h2 {
    font-size: 0.82rem;
}

.logs-policy-principle p {
    margin: 0.5rem 0 0;
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.66rem;
    line-height: 1.6;
}

.logs-policy-contact {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    margin-top: 3.2rem;
    padding: 1.35rem;
    border: 1px solid rgba(var(--nl-accent-rgb), 0.16);
    border-radius: 0.8rem;
    background: rgba(var(--nl-accent-rgb), 0.035);
}

.logs-policy-contact > span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.6rem;
    background: rgba(var(--nl-accent-rgb), 0.09);
    color: var(--nl-cyan);
    font-size: 1rem;
}

.logs-policy-contact h2 {
    font-size: 0.92rem;
}

.logs-policy-contact p {
    margin: 0.45rem 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    line-height: 1.6;
}

.logs-policy-contact .btn {
    min-width: 132px;
}

/* Public privacy policy */

.privacy-policy-content,
.terms-policy-content {
    max-width: 920px !important;
}

.privacy-policy-intro,
.privacy-policy-card,
.privacy-policy-commitment,
.terms-policy-intro,
.terms-policy-card,
.terms-policy-agreement {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.018);
}

.privacy-policy-intro,
.terms-policy-intro {
    padding: clamp(1.5rem, 4vw, 2rem);
}

.privacy-policy-intro h2,
.privacy-policy-card h2,
.privacy-policy-commitment h2,
.terms-policy-intro h2,
.terms-policy-card h2,
.terms-policy-agreement h2 {
    margin: 0;
    color: #fff;
    font-weight: 650;
    letter-spacing: -0.025em;
}

.privacy-policy-intro h2,
.terms-policy-intro h2 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.privacy-policy-intro p,
.terms-policy-intro p {
    max-width: 760px;
    margin: 0.85rem 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.84rem;
    line-height: 1.75;
}

.privacy-policy-stack,
.terms-policy-stack {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
}

.privacy-policy-card,
.terms-policy-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
    gap: 1rem;
    padding: 1.55rem;
}

.privacy-policy-card-icon,
.terms-policy-card-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.6rem;
    background: rgba(var(--nl-accent-rgb), 0.08);
    color: var(--nl-cyan);
    font-size: 1rem;
}

.privacy-policy-card h2,
.terms-policy-card h2 {
    font-size: 1.05rem;
}

.privacy-policy-card p,
.privacy-policy-card li,
.terms-policy-card p,
.terms-policy-card li {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.78rem;
    line-height: 1.72;
}

.privacy-policy-card p,
.terms-policy-card p {
    margin: 0.65rem 0 0;
}

.privacy-policy-card ul,
.terms-policy-card ul {
    display: grid;
    gap: 0.5rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.privacy-policy-card li,
.terms-policy-card li {
    position: relative;
    padding-left: 0.9rem;
}

.privacy-policy-card li::before,
.terms-policy-card li::before {
    position: absolute;
    top: 0;
    left: 0;
    color: rgba(var(--nl-accent-rgb), 0.72);
    content: "\2022";
}

.privacy-policy-card strong,
.terms-policy-card strong {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 620;
}

.terms-policy-card a {
    color: var(--nl-accent-light);
}

.terms-policy-card a:hover,
.terms-policy-card a:focus {
    color: var(--nl-accent-extra-pale);
}

.privacy-policy-commitment,
.terms-policy-agreement {
    margin-top: 3rem;
    padding: clamp(2rem, 5vw, 3rem);
    border-color: rgba(var(--nl-accent-rgb), 0.18);
    background:
        linear-gradient(145deg, rgba(var(--nl-accent-rgb), 0.035), rgba(255, 255, 255, 0.012)),
        #0a0c0d;
    text-align: center;
}

.privacy-policy-commitment > span,
.terms-policy-agreement > span {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--nl-accent-gradient-start), var(--nl-accent-gradient-end));
    color: var(--nl-accent-contrast);
    font-size: 1.45rem;
}

.privacy-policy-commitment h2,
.terms-policy-agreement h2 {
    font-size: clamp(1.25rem, 3vw, 1.55rem);
}

.privacy-policy-commitment p,
.terms-policy-agreement p {
    max-width: 660px;
    margin: 1rem auto 0;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.8rem;
    line-height: 1.75;
}

.privacy-policy-actions,
.terms-policy-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.privacy-policy-actions .btn,
.terms-policy-actions .btn {
    min-width: 150px;
}

/* Public fees page */

.fee-page {
    background: #0b0b0b;
}

.fee-page > .container {
    max-width: 1140px;
}

.fee-page-header {
    max-width: 760px;
    margin: 0 auto 1.35rem;
}

.fee-page-header h1 {
    margin-bottom: 0.55rem;
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 650;
    letter-spacing: -0.04em;
}

.fee-page-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.86rem;
    line-height: 1.65;
}

.fee-summary-grid {
    margin-bottom: 2rem;
}

.fee-summary-card {
    min-height: 202px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.012);
}

.fee-summary-card header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.8rem;
}

.fee-summary-card h2 {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.77rem;
    font-weight: 650;
}

.fee-summary-icon {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.45rem;
    background: rgba(var(--nl-accent-info-rgb), 0.1);
    color: var(--nl-accent-info);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
}

.fee-summary-card--deposits .fee-summary-icon {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.fee-summary-card--withdrawals .fee-summary-icon {
    background: rgba(34, 197, 94, 0.09);
    color: #22c55e;
}

.fee-summary-card > strong {
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nl-accent-info);
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.fee-summary-card--deposits > strong {
    color: #f97316;
}

.fee-summary-card--withdrawals > strong {
    color: #22c55e;
}

.fee-summary-card > small {
    display: block;
    margin-top: 0.1rem;
    color: rgba(255, 255, 255, 0.36);
    font-size: 0.64rem;
    text-align: center;
}

.fee-summary-card > p {
    margin: 0.8rem 0 0;
    color: rgba(255, 255, 255, 0.43);
    font-size: 0.7rem;
    line-height: 1.65;
}

.fee-assets-section {
    margin-top: 0.25rem;
}

.fee-asset-card {
    min-height: 268px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.008);
}

.fee-asset-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.95rem;
}

.fee-asset-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fee-asset-identity .coin-icon {
    width: 2.55rem;
    height: 2.55rem;
    flex: 0 0 2.55rem;
}

.fee-asset-identity h3 {
    margin: 0;
    color: #fff;
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.fee-asset-identity p {
    margin: 0.15rem 0 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.67rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fee-availability {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding-top: 0.65rem;
}

.fee-status-dot {
    width: 0.48rem;
    height: 0.48rem;
    display: inline-block;
    flex: 0 0 0.48rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.fee-status-dot--trading.is-enabled {
    background: #22c55e;
}

.fee-status-dot--deposit.is-enabled {
    background: var(--nl-accent-info);
}

.fee-status-dot--withdrawal.is-enabled {
    background: #f97316;
}

.fee-asset-details {
    display: grid;
    gap: 0;
    margin: 0;
}

.fee-asset-details > div {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(8.5rem, auto);
    align-items: baseline;
    gap: 1rem;
    padding: 0.22rem 0;
}

.fee-asset-details > .fee-asset-divider {
    margin-top: 0.45rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.fee-asset-details dt {
    min-width: 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.66rem;
    font-weight: 450;
}

.fee-asset-details dd {
    margin: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.67rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fee-assets-empty {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.55rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.76rem;
}

.fee-explanation-grid {
    margin-top: 1.5rem;
}

.fee-explanation-card {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.012);
}

.fee-explanation-card h2 {
    margin-bottom: 0.65rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 650;
}

.fee-explanation-card p {
    margin-bottom: 0.55rem;
    color: rgba(255, 255, 255, 0.44);
    font-size: 0.69rem;
    line-height: 1.65;
}

.fee-key-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin: 0 0 0.65rem;
    padding: 0;
    list-style: none;
}

.fee-key-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.69rem;
}

.fee-effective-note {
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.62rem;
    text-align: right;
}

/* Public site footer */

.site-footer {
    border-top: 1px solid var(--nl-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 10rem),
        #0a0a0a;
}

.footer-shell {
    max-width: 1280px;
}

.footer-main {
    padding-top: clamp(3.5rem, 7vw, 5.5rem);
    padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.footer-about {
    min-width: 0;
}

.footer-about h2,
.footer-link-group h2 {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.25;
}

.footer-about > p {
    max-width: 30rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.78rem;
    line-height: 1.75;
}

.footer-about-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.4rem;
}

.footer-about-actions .btn {
    min-width: 126px;
}

.footer-about-actions .footer-contact {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.73rem;
}

.footer-link-list {
    display: grid;
    gap: 0.7rem;
}

.footer-link-list a {
    width: fit-content;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.74rem;
    line-height: 1.35;
    text-decoration: none;
}

.footer-link-list a:hover,
.footer-link-list a:focus {
    color: #fff;
}

.footer-link-list a:focus-visible,
.footer-contact:focus-visible {
    outline: 2px solid rgba(var(--nl-accent-rgb), 0.72);
    outline-offset: 4px;
}

.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.64rem;
}

@media (max-width: 767.98px) {
    .transparency-page {
        padding-top: 2.5rem;
    }

    .logs-policy-hero {
        padding: 2.5rem 0 3rem;
    }

    .logs-policy-back {
        margin-bottom: 2rem;
    }

    .logs-policy-meta {
        padding-left: 0;
    }

    .logs-policy-content {
        padding-top: 2.75rem;
        padding-bottom: 3.5rem;
    }

    .logs-policy-section,
    .logs-policy-record-grid {
        margin-top: 2.75rem;
    }

    .logs-policy-contact {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .logs-policy-contact .btn {
        grid-column: 1 / -1;
    }

    .reserves-page {
        padding: 2rem 0 3.5rem;
    }

    .reserve-asset-card {
        min-height: 178px;
    }

    .transparency-panel-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .footer-bottom-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-bottom-row {
        gap: 0.4rem;
    }
}

@media (max-width: 575.98px) {
    .logs-policy-title-row {
        align-items: flex-start;
        gap: 0.85rem;
    }

    .logs-policy-title-icon {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        border-radius: 0.75rem;
        font-size: 1.4rem;
    }

    .logs-policy-title-row h1 {
        font-size: 2rem;
    }

    .logs-policy-title-row p {
        margin-top: 0.55rem;
        font-size: 0.76rem;
    }

    .logs-policy-meta {
        margin-top: 1.4rem;
    }

    .logs-policy-intro {
        gap: 0.75rem;
        padding: 1.15rem;
    }

    .logs-policy-section-heading > span {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .logs-policy-record-card {
        padding: 1.15rem;
    }

    .logs-policy-contact {
        grid-template-columns: 1fr;
        padding: 1.15rem;
    }

    .logs-policy-contact .btn {
        grid-column: auto;
        width: 100%;
    }

    .privacy-policy-card,
    .terms-policy-card {
        grid-template-columns: 1fr;
        padding: 1.2rem;
    }

    .privacy-policy-actions,
    .terms-policy-actions {
        display: grid;
    }

    .privacy-policy-actions .btn,
    .terms-policy-actions .btn {
        width: 100%;
    }

    .reserves-header {
        margin-bottom: 1.5rem;
    }

    .reserves-updated-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
        padding: 0.75rem 0.85rem;
    }

    .reserves-updated-copy {
        flex-wrap: wrap;
    }

    .reserves-grid {
        margin-top: 0.35rem;
    }

    .reserve-asset-card {
        padding: 1rem;
    }

    .transparency-rate-card,
    .transparency-summary-card {
        min-height: 132px;
        padding: 1rem;
    }

    .transparency-note-card {
        padding: 1rem;
    }

    .fee-summary-card {
        min-height: 180px;
    }

    .fee-asset-card {
        min-height: auto;
    }

    .fee-asset-details > div {
        grid-template-columns: minmax(0, 1fr) minmax(7.5rem, auto);
        gap: 0.6rem;
    }

    .fee-asset-details dd {
        font-size: 0.62rem;
    }

    .footer-main {
        padding-top: 3rem;
        padding-bottom: 2.75rem;
    }
}

@media (max-width: 1023.98px) {
    .site-header .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.75rem 0 1rem;
        border-top: 1px solid var(--nl-border);
    }

    .site-header .nav-link {
        display: block;
        margin: 0.1rem 0;
    }

    .navbar-actions .btn {
        width: 100%;
        margin-top: 0.45rem;
    }

    .navbar-logout-form {
        width: 100%;
    }
}

@media (min-width: 640px) {
    .navbar-brand {
        font-size: 1.125rem;
    }
}

@media (min-width: 992px) and (max-width: 1023.98px) {
    .site-header .navbar-expand-lg {
        flex-wrap: wrap;
    }

    .site-header .navbar-toggler {
        display: block;
    }

    .site-header .navbar-expand-lg .navbar-collapse {
        display: none !important;
        flex-basis: 100%;
    }

    .site-header .navbar-expand-lg .navbar-collapse.show {
        display: block !important;
    }

    .site-header .navbar-nav {
        flex-direction: column;
    }

    .site-header .navbar-actions {
        display: block !important;
    }
}

@media (min-width: 1024px) {
    .mobile-nav-actions {
        display: none;
    }
}

/* Authenticated order and trade history */

.account-trading-page {
    min-height: 72vh;
    padding: 2rem 0 4rem;
    background:
        radial-gradient(circle at 50% 0, rgba(var(--nl-accent-rgb), 0.05), transparent 28rem),
        var(--nl-bg);
}

.account-trading-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--nl-border-soft);
}

.account-trading-heading h1 {
    margin-bottom: 0.3rem;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.15rem);
    font-weight: 650;
    letter-spacing: -0.04em;
}

.account-trading-heading p {
    max-width: 43rem;
    color: var(--nl-muted);
}

.account-trading-back-link {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin-top: 0.2rem;
    border: 1px solid var(--nl-border);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
}

.account-trading-back-link:hover,
.account-trading-back-link:focus {
    border-color: rgba(var(--nl-accent-rgb), 0.5);
    background: rgba(var(--nl-accent-rgb), 0.08);
    color: #fff;
}

.account-trading-tabs {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid var(--nl-border);
    border-radius: 0.55rem;
    background: rgba(0, 0, 0, 0.45);
}

.account-trading-tab {
    padding: 0.48rem 0.8rem;
    border-radius: 0.38rem;
    color: var(--nl-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.account-trading-tab:hover,
.account-trading-tab:focus,
.account-trading-tab.is-active {
    background: rgba(var(--nl-accent-rgb), 0.11);
    color: var(--nl-accent-light);
}

.account-trading-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1rem;
    border: 1px solid var(--nl-border);
    border-radius: 0.7rem;
    overflow: hidden;
    background: rgba(5, 5, 5, 0.88);
}

.account-trading-summary-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-right: 1px solid var(--nl-border-soft);
    border-bottom: 1px solid var(--nl-border-soft);
}

.account-trading-summary-item:nth-child(even) {
    border-right: 0;
}

.account-trading-summary-item:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.account-trading-summary-icon {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(var(--nl-accent-rgb), 0.1);
    color: var(--nl-accent-light);
    font-size: 1rem;
}

.account-trading-summary-icon.is-buy {
    background: rgba(52, 211, 153, 0.09);
    color: var(--nl-success);
}

.account-trading-summary-icon.is-sell {
    background: rgba(251, 113, 133, 0.09);
    color: var(--nl-danger);
}

.account-trading-summary-item span:not(.account-trading-summary-icon) {
    display: block;
    color: var(--nl-muted);
    font-size: 0.72rem;
}

.account-trading-summary-item strong {
    display: block;
    margin-top: 0.1rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 650;
}

.account-trading-panel {
    border: 1px solid var(--nl-border);
    border-radius: 0.7rem;
    overflow: hidden;
    background: rgba(5, 5, 5, 0.92);
}

.account-trading-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    padding: 1rem;
    border-bottom: 1px solid var(--nl-border);
}

.account-trading-filters .form-label {
    margin-bottom: 0.32rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.7rem;
    font-weight: 600;
}

.account-trading-filters .form-select {
    min-height: 38px;
    border-color: var(--nl-border);
    background-color: #0b0b0b;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
}

.account-trading-filters .form-select:focus {
    border-color: rgba(var(--nl-accent-rgb), 0.55);
    box-shadow: 0 0 0 0.2rem rgba(var(--nl-accent-rgb), 0.1);
}

.account-trading-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.account-trading-filter-actions .btn {
    min-height: 38px;
}

.account-trading-table-wrap {
    overflow-y: hidden;
}

.account-trading-table {
    min-width: 980px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.76rem;
}

.account-trading-table > :not(caption) > * > * {
    padding: 0.8rem 0.85rem;
    border-color: var(--nl-border-soft);
    background: transparent;
    color: inherit;
}

.account-trading-table thead th {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
}

.account-trading-table tbody tr:last-child > * {
    border-bottom: 0;
}

.account-trading-table tbody tr:hover > * {
    background: rgba(255, 255, 255, 0.018);
}

.account-trading-table time,
.account-trading-table small {
    color: var(--nl-muted);
    font-size: 0.68rem;
}

.account-trading-market {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    color: #fff;
    text-decoration: none;
}

.account-trading-market:hover,
.account-trading-market:focus {
    color: var(--nl-accent-light);
}

.account-trading-market span,
.account-trading-market small {
    white-space: nowrap;
}

.account-trading-market .coin-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.account-trading-side,
.account-trading-liquidity {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.48rem;
    border: 1px solid var(--nl-border-soft);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 650;
}

.account-trading-side.is-buy {
    border-color: rgba(52, 211, 153, 0.24);
    background: rgba(52, 211, 153, 0.07);
    color: var(--nl-success);
}

.account-trading-side.is-sell {
    border-color: rgba(251, 113, 133, 0.24);
    background: rgba(251, 113, 133, 0.07);
    color: var(--nl-danger);
}

.account-trading-number {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.account-trading-progress-label {
    min-width: 9rem;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
    color: var(--nl-muted);
    font-size: 0.66rem;
    font-variant-numeric: tabular-nums;
}

.account-trading-progress {
    height: 0.22rem;
    background: rgba(255, 255, 255, 0.08);
}

.account-trading-progress .progress-bar {
    background: var(--nl-cyan);
}

.account-trading-empty {
    min-height: 17rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    color: var(--nl-muted);
    text-align: center;
}

.account-trading-empty > i {
    margin-bottom: 0.25rem;
    color: rgba(var(--nl-accent-light-rgb), 0.58);
    font-size: 1.5rem;
}

.account-trading-empty strong {
    color: #fff;
    font-size: 0.9rem;
}

.account-trading-empty .btn {
    margin-top: 0.4rem;
}

.account-trading-pagination {
    min-height: 54px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--nl-border);
    color: var(--nl-muted);
    font-size: 0.72rem;
}

.account-trading-pagination .page-link {
    border-color: var(--nl-border);
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.75);
}

.account-trading-pagination .page-link:hover,
.account-trading-pagination .page-link:focus {
    border-color: rgba(var(--nl-accent-rgb), 0.45);
    background: rgba(var(--nl-accent-rgb), 0.08);
    color: #fff;
}

.account-trading-pagination .page-item.disabled .page-link {
    border-color: var(--nl-border);
    background: #080808;
    color: #626267;
}

@media (min-width: 768px) {
    .account-trading-summary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .account-trading-summary-item,
    .account-trading-summary-item:nth-child(even),
    .account-trading-summary-item:nth-last-child(-n + 2) {
        border-right: 1px solid var(--nl-border-soft);
        border-bottom: 0;
    }

    .account-trading-summary-item:last-child {
        border-right: 0;
    }

    .account-trading-filters {
        grid-template-columns: minmax(10rem, 1.2fr) minmax(8rem, 0.8fr) minmax(11rem, 1fr) 5rem auto;
        align-items: end;
    }

    .account-trading-filter-actions {
        grid-column: auto;
    }
}

@media (max-width: 575.98px) {
    .account-trading-page {
        padding-top: 1.25rem;
    }

    .account-trading-heading,
    .account-trading-tabs {
        width: 100%;
    }

    .account-trading-tab {
        flex: 1 1 50%;
        text-align: center;
    }

    .account-trading-filters {
        grid-template-columns: minmax(0, 1fr);
    }

    .account-trading-filter-actions {
        grid-column: auto;
    }
}

/* Authenticated account security settings */

.account-settings-page {
    min-height: 72vh;
    padding: 2rem 0 4rem;
    background:
        radial-gradient(circle at 50% 0, rgba(var(--nl-accent-rgb), 0.05), transparent 26rem),
        var(--nl-bg);
}

.account-settings-container {
    max-width: 1080px;
}

.account-settings-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--nl-border-soft);
}

.account-settings-header h1 {
    margin-bottom: 0.35rem;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.15rem);
    font-weight: 650;
    letter-spacing: -0.04em;
}

.account-settings-header p,
.account-settings-card-header p,
.account-settings-notice p,
.totp-reauthentication p {
    color: var(--nl-muted);
}

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

.account-settings-card {
    padding: 1.25rem;
    border: 1px solid var(--nl-border);
    border-radius: 0.75rem;
    background: rgba(8, 8, 8, 0.9);
}

.account-settings-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.account-settings-card-header > div {
    min-width: 0;
    flex: 1 1 auto;
}

.account-settings-card-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 650;
}

.account-settings-card-header p {
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
}

.account-settings-icon {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--nl-accent-rgb), 0.25);
    border-radius: 0.55rem;
    background: rgba(var(--nl-accent-rgb), 0.09);
    color: var(--nl-accent-light);
    font-size: 1rem;
}

.account-settings-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.account-settings-status {
    flex: 0 0 auto;
    padding: 0.23rem 0.48rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: var(--nl-muted);
    font-size: 0.68rem;
    font-weight: 650;
}

.account-settings-status.is-enabled {
    border-color: rgba(52, 211, 153, 0.26);
    background: rgba(52, 211, 153, 0.08);
    color: var(--nl-success);
}

.account-settings-notice,
.totp-reauthentication {
    margin-bottom: 1rem;
    padding: 0.9rem;
    border: 1px solid var(--nl-border-soft);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.018);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
}

.account-settings-notice strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #fff;
}

.account-settings-notice ol {
    display: grid;
    gap: 0.35rem;
    color: var(--nl-muted);
}

.account-settings-notice--warning {
    border-color: rgba(251, 113, 133, 0.24);
    background: rgba(251, 113, 133, 0.055);
}

.totp-reauthentication {
    margin-top: 1rem;
}

.totp-enrollment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.totp-qr-panel {
    width: fit-content;
    height: fit-content;
    margin: 0 auto;
    padding: 0.55rem;
    border-radius: 0.55rem;
    background: #fff;
}

.totp-qr-panel img {
    max-width: 100%;
    height: auto;
    display: block;
}

.totp-enrollment-fields {
    min-width: 0;
}

.totp-enrollment-fields .input-group .form-control {
    border-left: 1px solid var(--nl-border);
}

.totp-copy-status {
    min-height: 1.1rem;
    display: block;
    margin-top: 0.3rem;
    color: var(--nl-success);
    font-size: 0.7rem;
}

.account-settings-tips {
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid var(--nl-border-soft);
}

.account-settings-tips h3 {
    margin-bottom: 0.55rem;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 650;
}

.account-settings-tips ul {
    display: grid;
    gap: 0.35rem;
    color: var(--nl-muted);
    font-size: 0.74rem;
}

.account-settings-tips i {
    margin-right: 0.4rem;
    color: var(--nl-success);
}

@media (min-width: 768px) {
    .account-settings-card {
        padding: 1.5rem;
    }

    .totp-enrollment-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        align-items: start;
    }
}

@media (min-width: 992px) {
    .account-settings-grid {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        align-items: start;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 0;
        padding: 5rem 0 4rem;
    }

    .home-theme-orange .hero-section {
        min-height: 0;
        padding-top: calc(5rem + 65px);
    }

    .hero-section h1 {
        font-size: clamp(2.55rem, 13vw, 3.7rem);
    }

    .hero-copy {
        padding: 0 0.75rem;
        font-size: 0.92rem;
    }

    .section-link {
        display: none;
    }

    .news-section-all-link {
        display: inline-flex;
    }

    .auth-section {
        padding-top: 0;
    }

    .auth-card {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .auth-card .card-body {
        padding: 1.5rem;
    }

    .market-table-footer {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 0.3rem;
    }

    .market-search {
        width: 100%;
    }

    .wallet-page {
        padding-top: 1.5rem;
    }

    .wallet-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .wallet-header-actions,
    .wallet-header-actions .btn {
        width: 100%;
    }

    .wallet-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding: 0.85rem 0;
    }

    .wallet-filter-actions {
        flex-wrap: wrap;
    }

    .wallet-search {
        width: 100%;
    }

    .wallet-table-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .deposit-page {
        padding-top: 1.5rem;
    }

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

    .deposit-stat:last-child {
        grid-column: 1 / -1;
    }

    .deposit-address-body {
        grid-template-columns: 1fr;
    }

    .deposit-qr-frame {
        margin: 0 auto;
    }

    .deposit-instruction-grid,
    .deposit-footer-actions {
        grid-template-columns: 1fr;
    }

    .withdraw-page {
        padding-top: 1.5rem;
    }

    .withdraw-heading {
        align-items: flex-start;
    }

    .withdraw-balance-card {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 1rem;
    }

    .withdraw-balance-policy {
        grid-column: 1 / -1;
    }

    .withdraw-form-card {
        padding: 1rem;
    }

    .withdraw-amount-row {
        flex-direction: column;
    }

    .withdraw-amount-actions button {
        min-height: 42px;
        flex: 1 1 0;
    }

    .withdraw-footer-actions {
        grid-template-columns: 1fr;
    }

    .wallet-history-page {
        padding-top: 1.5rem;
    }

    .wallet-history-counts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wallet-history-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .wallet-history-filters {
        overflow-x: auto;
        padding-bottom: 0.2rem;
    }

    .wallet-history-search {
        width: 100%;
    }

    .wallet-history-table-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .news-section {
        padding-bottom: 3rem;
    }

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

    .home-news-card-body {
        padding: 1.25rem;
    }

    .execution-section {
        padding: 2.75rem 0 3rem;
    }

    .execution-section-header {
        align-items: flex-start !important;
    }

    .execution-live-meta {
        padding-top: 0.1rem;
    }

    .execution-live-status {
        max-width: 9.5rem;
        justify-content: flex-end;
    }

    .execution-updated-at {
        display: none;
    }

    .news-card .card-body {
        min-height: 0;
    }

    .news-article-page {
        padding-top: 2.25rem;
    }

    .news-archive-page {
        padding-top: 2.5rem;
    }

    .news-article-back {
        margin-bottom: 2rem;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .market-marquee {
        width: 100%;
        margin-right: 0;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .market-marquee-track {
        width: 100%;
        animation: none;
        will-change: auto;
    }

    .market-marquee-group {
        width: 100%;
        flex-wrap: wrap;
        padding-right: 0;
    }

    .market-marquee-group[aria-hidden="true"] {
        display: none;
    }

    .news-card,
    .news-card-media img {
        transition: none;
    }

    .news-card:hover,
    .news-card:hover .news-card-media img {
        transform: none;
    }
}

/* Trading workspace */
.trade-body {
    background: #0a0a0a;
}

.trade-terminal {
    --trade-bg: #0a0a0a;
    --trade-panel: #0a0a0a;
    --trade-border: #262626;
    --trade-muted: #a3a3a3;
    --trade-blue: var(--nl-cyan-deep);
    --trade-buy: #2ebd85;
    --trade-sell: #f6465d;
    min-height: 100vh;
    background: var(--trade-bg);
    color: #f5f5f5;
}

.trade-container {
    max-width: 1920px;
    padding-right: 1rem;
    padding-left: 1rem;
}

.trade-overview {
    border-bottom: 1px solid var(--trade-border);
    background: var(--trade-bg);
}

.trade-overview .trade-container {
    padding-right: 1rem;
    padding-left: 1rem;
}

.trade-overview-grid {
    min-height: 77px;
    display: grid;
    grid-template-columns: minmax(300px, 350px) minmax(150px, 170px) minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
}

.trade-pair .coin-icon {
    flex-basis: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
}

.trade-pair h1 {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.trade-pair span,
.trade-last-price small {
    color: var(--trade-muted);
    font-size: 0.68rem;
}

.trade-last-price {
    min-width: 0;
}

.trade-last-value {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.trade-last-price strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.05rem;
    font-weight: 600;
}

.trade-last-value > span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.75rem;
}

.trade-fiat-price,
.trade-mobile-change,
.trade-mobile-volume {
    display: block;
    margin-top: 0.1rem;
    line-height: 1.2;
}

.trade-mobile-change,
.trade-mobile-volume {
    display: none;
}

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

.trade-stat-item {
    min-width: 0;
}

.trade-stat dt {
    margin-bottom: 0.18rem;
    color: var(--trade-muted);
    font-size: 0.67rem;
    font-weight: 500;
}

.trade-stat dd {
    margin: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.88);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trade-stat .trade-stat-fiat {
    display: block;
    margin-top: 0.12rem;
    color: var(--trade-muted);
    font-size: 0.6rem;
}

.trade-main {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.trade-workspace {
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trade-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--trade-border);
    border-radius: 0.42rem;
    background: var(--trade-panel);
}

.trade-panel-header {
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.trade-panel-header h2 {
    color: #f5f5f5;
    font-size: 0.88rem;
    font-weight: 600;
}

.live-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--trade-muted);
    font-size: 0.62rem;
}

.live-status > span:first-child,
.status-dot {
    width: 0.38rem;
    height: 0.38rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.48);
}

.live-status[data-state="connected"] {
    color: var(--trade-buy);
}

.live-status[data-state="connected"] > span:first-child,
.status-dot {
    background: var(--trade-buy);
    box-shadow: 0 0 8px rgba(46, 189, 133, 0.52);
}

.live-status[data-state="stale"] {
    color: #fbbf24;
}

.live-status[data-state="offline"] {
    color: var(--trade-sell);
}

.live-status[data-state="offline"] > span:first-child {
    background: var(--trade-sell);
    box-shadow: 0 0 8px rgba(246, 70, 93, 0.48);
}

.book-filters .btn,
.chart-ranges .btn {
    border-color: var(--trade-border);
    background: transparent;
    color: var(--trade-muted);
    font-size: 0.65rem;
}

.book-filters .btn:hover,
.book-filters .btn:focus,
.chart-ranges .btn:hover,
.chart-ranges .btn:focus {
    color: #fff;
}

.book-filters .btn.active,
.chart-ranges .btn.active {
    border-color: var(--trade-blue);
    background: var(--trade-blue);
    color: var(--nl-accent-contrast);
}

.order-book-panel {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.order-book-head,
.book-row,
.market-list-head,
.trade-market-link,
.market-history-head,
.history-row {
    display: grid;
    align-items: center;
}

.order-book-head,
.book-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    text-align: right;
}

.order-book-head {
    padding: 0.4rem 0.65rem;
    color: var(--trade-muted);
    font-size: 0.625rem;
}

.order-book-body {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.book-side {
    min-height: 0;
    flex: 1 1 50%;
    overflow: auto;
    scrollbar-color: rgba(255, 255, 255, 0.13) transparent;
    scrollbar-width: thin;
}

.book-row {
    position: relative;
    width: 100%;
    min-height: 21px;
    padding: 0.18rem 0.65rem;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: #f5f5f5;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.68rem;
    line-height: 0.95rem;
    text-align: right;
}

.book-row::before {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--depth-width, 0%);
    content: "";
    pointer-events: none;
}

.book-row--buy::before {
    background: rgba(46, 189, 133, 0.13);
}

.book-row--sell::before {
    background: rgba(246, 70, 93, 0.13);
}

.book-row:hover,
.book-row:focus-visible {
    background: rgba(255, 255, 255, 0.04);
}

.book-row:focus-visible {
    z-index: 2;
    outline: 1px solid var(--trade-blue);
    outline-offset: -1px;
    background: rgba(var(--nl-accent-deep-rgb), 0.12);
}

.book-level-tooltip {
    --bs-tooltip-max-width: min(20rem, calc(100vw - 2rem));
    --bs-tooltip-bg: #171717;
    --bs-tooltip-color: #f5f5f5;
    --bs-tooltip-opacity: 1;
    --bs-tooltip-padding-x: 0.7rem;
    --bs-tooltip-padding-y: 0.55rem;
    font-family: var(--bs-font-sans-serif);
    font-size: 0.72rem;
    line-height: 1.35;
}

.book-level-tooltip .tooltip-inner {
    border: 1px solid #333;
    box-shadow: 0 0.45rem 1.3rem rgba(0, 0, 0, 0.42);
    text-align: left;
}

.book-row span {
    position: relative;
    z-index: 1;
}

/* Keep signed market movement colors consistent outside and inside the terminal. */
.book-row--buy span:first-child,
.text-buy {
    color: var(--trade-buy, #2ebd85) !important;
}

.book-row--sell span:first-child,
.text-sell {
    color: var(--trade-sell, #f6465d) !important;
}

.book-empty {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.68rem;
    text-align: center;
}

.book-current-price {
    min-height: 34px;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-top: 1px solid rgba(var(--nl-accent-deep-rgb), 0.18);
    border-bottom: 1px solid rgba(var(--nl-accent-deep-rgb), 0.18);
    background: rgba(var(--nl-accent-deep-rgb), 0.06);
    color: var(--nl-cyan);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.69rem;
    font-weight: 650;
}

.book-current-price small {
    font-size: 0.6rem;
}

.book-depth {
    flex: 0 0 auto;
    padding: 0.45rem 0.65rem 0.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    font-size: 0.63rem;
}

.book-depth-track {
    height: 3px;
    display: flex;
    margin-top: 0.4rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--trade-border);
}

.book-depth-track span:first-child {
    width: 50%;
    background: var(--trade-buy);
}

.book-depth-track span:last-child {
    width: 50%;
    background: var(--trade-sell);
}

.trade-center,
.trade-side {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trade-center {
    min-width: 0;
}

.trade-side {
    height: 400px;
    flex-direction: column-reverse;
}

.chart-panel {
    height: 380px;
    min-height: 380px;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
}

.chart-toolbar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 38px;
    padding: 0.35rem 0.65rem;
}

.chart-toolbar-selector {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.35rem;
    border: 0;
    border-radius: 0.25rem;
    background: transparent;
    color: var(--trade-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.68rem;
}

.chart-toolbar-selector:hover,
.chart-toolbar-selector:focus-visible,
.chart-toolbar-selector[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.06);
    color: #f5f5f5;
}

.chart-toolbar-selector:focus-visible {
    outline: 2px solid rgba(var(--nl-accent-deep-rgb), 0.7);
    outline-offset: 1px;
}

.chart-toolbar-selector.dropdown-toggle::after {
    display: none;
}

.chart-tool-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--trade-muted);
}

.chart-tool-icons .bi {
    font-size: 1rem;
}

.chart-tool-button {
    width: 1.75rem;
    height: 1.75rem;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0.25rem;
    background: transparent;
    color: var(--trade-muted);
}

.chart-tool-button.dropdown-toggle::after {
    display: none;
}

.chart-tool-button:hover,
.chart-tool-button:focus-visible,
.chart-tool-button.active {
    background: rgba(255, 255, 255, 0.06);
    color: #f5f5f5;
}

.chart-tool-button:focus-visible,
.chart-auto-scale:focus-visible,
.chart-scale-button:focus-visible {
    outline: 2px solid rgba(var(--nl-accent-deep-rgb), 0.7);
    outline-offset: 1px;
}

.chart-tool-button:disabled,
.chart-auto-scale:disabled {
    opacity: 0.35;
}

.chart-control-menu,
.chart-settings-menu {
    --bs-dropdown-bg: #111;
    --bs-dropdown-border-color: #2a2a2a;
    --bs-dropdown-link-color: #c5c5c5;
    --bs-dropdown-link-hover-color: #fff;
    --bs-dropdown-link-hover-bg: rgba(255, 255, 255, 0.06);
    --bs-dropdown-link-active-color: var(--nl-cyan);
    --bs-dropdown-link-active-bg: rgba(var(--nl-accent-deep-rgb), 0.12);
    min-width: 7.5rem;
    padding: 0.3rem;
    box-shadow: 0 0.65rem 1.7rem rgba(0, 0, 0, 0.48);
    font-size: 0.72rem;
}

.chart-control-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.38rem 0.5rem;
    border-radius: 0.2rem;
}

.chart-settings-menu {
    width: 12rem;
    padding: 0.65rem;
    color: #d4d4d4;
}

.chart-settings-menu > strong {
    display: block;
    margin-bottom: 0.55rem;
    color: #f5f5f5;
    font-size: 0.72rem;
}

.chart-settings-menu .form-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 1.7rem;
    margin: 0 0 0.35rem;
    padding: 0;
}

.chart-settings-menu .form-check-input {
    flex: 0 0 auto;
    margin: 0;
}

.chart-settings-menu .form-check-label {
    font-size: 0.68rem;
}

.trade-chart {
    position: relative;
    min-height: 0;
    flex: 1 1 auto;
    background: var(--trade-bg);
}

.trade-chart-host {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.chart-legend {
    position: absolute;
    z-index: 2;
    top: 0.5rem;
    left: 0.75rem;
    right: 4.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.55rem;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.6);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.62rem;
    line-height: 1.55;
    text-overflow: ellipsis;
    pointer-events: none;
}

.chart-legend > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chart-legend-symbol,
.chart-legend-time {
    flex: 0 1 auto;
}

.chart-legend-time {
    color: rgba(255, 255, 255, 0.48);
}

.chart-legend-symbol::after {
    width: 0.42rem;
    height: 0.42rem;
    display: inline-block;
    margin-left: 0.45rem;
    border-radius: 50%;
    background: rgba(75, 158, 149, 0.72);
    box-shadow: 0 0 0 0.25rem rgba(75, 158, 149, 0.12);
    content: "";
    vertical-align: 0.02rem;
}

.chart-legend-ohlc {
    flex: 1 1 100%;
    color: #4b9e95;
    white-space: normal !important;
}

.chart-legend-volume {
    flex: 1 1 100%;
    color: rgba(255, 255, 255, 0.5);
}

.chart-empty,
.history-empty,
.activity-empty {
    color: var(--trade-muted);
    text-align: center;
}

.chart-empty {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.35rem;
    pointer-events: none;
}

.chart-empty > span,
.history-empty > span,
.activity-empty > span {
    color: rgba(var(--nl-accent-rgb), 0.65);
    font-size: 1.3rem;
}

.chart-empty strong,
.history-empty strong,
.activity-empty strong {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.72rem;
}

.chart-empty small,
.history-empty small {
    max-width: 20rem;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.62rem;
}

.chart-status {
    min-height: 39px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    color: var(--trade-muted);
    font-size: 0.58rem;
}

.chart-ranges {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.chart-range-tools {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.chart-ranges::-webkit-scrollbar {
    display: none;
}

.chart-go-to-button {
    width: 1.75rem;
    height: 1.75rem;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0.2rem;
    background: transparent;
    color: var(--trade-muted);
    font-size: 0.72rem;
}

.chart-go-to-button.dropdown-toggle::after {
    display: none;
}

.chart-go-to-button:hover,
.chart-go-to-button:focus-visible,
.chart-go-to-button[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.06);
    color: #f5f5f5;
}

.chart-go-to-button:focus-visible {
    outline: 2px solid rgba(var(--nl-accent-deep-rgb), 0.7);
    outline-offset: 1px;
}

.chart-go-to-menu {
    --bs-dropdown-bg: #111;
    --bs-dropdown-border-color: #2a2a2a;
    width: 13rem;
    padding: 0.65rem;
    color: #d4d4d4;
}

.chart-go-to-menu label {
    display: block;
    margin-bottom: 0.4rem;
    color: #f5f5f5;
    font-size: 0.68rem;
    font-weight: 600;
}

.chart-go-to-menu .form-control {
    margin-bottom: 0.55rem;
    border-color: #333;
    background: #090909;
    color: #f5f5f5;
    color-scheme: dark;
    font-size: 0.68rem;
}

.chart-go-to-menu .btn {
    width: 100%;
    font-size: 0.68rem;
}

.chart-status-tools {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.65rem;
    white-space: nowrap;
}

.chart-status-separator {
    width: 1px;
    height: 1.05rem;
    background: rgba(255, 255, 255, 0.1);
}

.chart-auto-scale {
    padding: 0.1rem 0.2rem;
    border: 0;
    border-radius: 0.2rem;
    background: transparent;
    color: var(--trade-muted);
    font: inherit;
}

.chart-auto-scale.active {
    color: var(--nl-cyan);
}

.chart-auto-scale:hover,
.chart-scale-button:hover {
    background: rgba(var(--nl-accent-deep-rgb), 0.1);
}

.chart-scale-button {
    padding: 0.1rem 0.2rem;
    border: 0;
    border-radius: 0.2rem;
    background: transparent;
    color: var(--trade-muted);
    font: inherit;
}

.chart-scale-button.active {
    color: var(--nl-cyan);
}

.chart-ranges .btn {
    min-width: 1.9rem;
    padding: 0.18rem 0.35rem;
    border-color: transparent;
    border-radius: 0.25rem !important;
    font-size: 0.58rem;
}

.chart-ranges .btn.active {
    border-color: transparent;
    background: rgba(var(--nl-accent-deep-rgb), 0.12);
    color: var(--nl-cyan);
}

.chart-panel:fullscreen {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    background: #0a0a0a;
}

@media (max-width: 575.98px) {
    .chart-status {
        flex-wrap: wrap;
        gap: 0.2rem 0.5rem;
    }

    .chart-range-tools {
        width: 100%;
        flex: 1 1 100%;
    }

    .chart-ranges {
        flex: 1 1 auto;
        justify-content: space-between;
        overflow: visible;
    }

    .chart-ranges .btn {
        flex: 1 1 auto;
    }

    .chart-status-tools {
        margin-left: auto;
    }
}

.order-entry-panel {
    height: 660px;
    min-height: 660px;
}

.order-entry-grid {
    display: grid;
    grid-template-rows: repeat(2, 326px);
    gap: 0.5rem;
}

.order-entry {
    height: 326px;
}

.order-entry header {
    min-height: 38px;
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    text-align: center;
}

.order-entry--buy header {
    background: rgba(46, 189, 133, 0.12);
    color: var(--trade-buy);
}

.order-entry--sell header {
    background: rgba(246, 70, 93, 0.12);
    color: var(--trade-sell);
}

.order-entry h2 {
    font-size: 0.875rem;
    font-weight: 600;
}

.order-entry-body {
    height: calc(100% - 38px);
    padding: 0.5rem;
    overflow-y: auto;
}

.order-preview-note {
    margin-bottom: 0.3rem;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.56rem;
}

.order-preview-note > span {
    display: block;
}

.order-preview-note [data-order-balance] {
    margin-top: 0.12rem;
    color: rgba(255, 255, 255, 0.55);
}

.order-field {
    margin-bottom: 0.25rem;
}

.order-field label {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--trade-muted);
    font-size: 0.68rem;
}

.order-field .form-control,
.order-field .input-group-text {
    min-height: 30px;
    border-color: var(--trade-border);
    background: var(--trade-bg);
    color: #f5f5f5;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.68rem;
}

.order-field .form-control {
    border-left: 1px solid var(--trade-border);
}

.order-field .form-control[readonly] {
    color: rgba(255, 255, 255, 0.72);
    cursor: default;
}

.order-field .input-group-text {
    border-left: 0;
    color: var(--trade-muted);
}

.order-percentage-selector {
    --order-percentage-accent: rgba(255, 255, 255, 0.65);
    --order-percentage-fill-width: 0%;
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    min-height: 30px;
    margin: 0.15rem 0 0.3rem;
    isolation: isolate;
}

.order-entry--buy .order-percentage-selector {
    --order-percentage-accent: var(--trade-buy);
}

.order-entry--sell .order-percentage-selector {
    --order-percentage-accent: var(--trade-sell);
}

.order-percentage-track,
.order-percentage-fill {
    position: absolute;
    top: 6px;
    left: 10%;
    height: 2px;
    border-radius: 999px;
    pointer-events: none;
}

.order-percentage-track {
    right: 10%;
    background: rgba(255, 255, 255, 0.16);
}

.order-percentage-fill {
    z-index: 1;
    width: var(--order-percentage-fill-width);
    background: var(--order-percentage-accent);
    transition: width 140ms ease;
}

.order-percentage-start,
.order-percentage-dot {
    width: 9px;
    height: 9px;
    border: 2px solid rgba(255, 255, 255, 0.36);
    border-radius: 50%;
    background: var(--trade-panel);
    box-shadow: 0 0 0 2px var(--trade-panel);
}

.order-percentage-start {
    z-index: 2;
    grid-column: 1;
    justify-self: center;
    margin-top: 2px;
}

.order-percentage-point {
    appearance: none;
    z-index: 2;
    display: flex;
    min-width: 0;
    min-height: 30px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.48);
    align-items: center;
    flex-direction: column;
    font-size: 0.56rem;
    line-height: 1;
    cursor: pointer;
}

.order-percentage-dot {
    display: block;
    margin-top: 2px;
    transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.order-percentage-label {
    display: block;
    margin-top: 6px;
    transition: color 120ms ease;
}

.order-percentage-point.is-filled .order-percentage-dot {
    border-color: var(--order-percentage-accent);
    background: var(--order-percentage-accent);
}

.order-percentage-point.is-active .order-percentage-dot {
    transform: scale(1.28);
}

.order-percentage-point.is-active .order-percentage-label {
    color: var(--order-percentage-accent);
    font-weight: 700;
}

.order-percentage-point:hover:not(:disabled) .order-percentage-dot,
.order-percentage-point:focus-visible .order-percentage-dot {
    border-color: var(--order-percentage-accent);
    box-shadow:
        0 0 0 2px var(--trade-panel),
        0 0 0 4px var(--order-percentage-accent);
    transform: scale(1.18);
}

.order-percentage-point:focus-visible .order-percentage-label {
    color: rgba(255, 255, 255, 0.9);
}

.order-percentage-point:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    .order-percentage-fill,
    .order-percentage-dot,
    .order-percentage-label {
        transition: none;
    }
}

.order-action {
    width: 100%;
    min-height: 30px;
    margin-top: 0.15rem;
    border: 0;
    font-size: 0.68rem;
}

.order-entry--buy .order-action {
    background: rgba(46, 189, 133, 0.3);
    color: rgba(110, 231, 183, 0.92);
}

.order-entry--sell .order-action {
    background: rgba(246, 70, 93, 0.3);
    color: rgba(253, 164, 175, 0.92);
}

.trade-terminal[data-authenticated="true"] .order-entry--buy .order-action {
    background: var(--trade-buy);
    color: #03140d;
}

.trade-terminal[data-authenticated="true"] .order-entry--sell .order-action {
    background: var(--trade-sell);
    color: #170206;
}

.order-action:hover,
.order-action:focus {
    filter: brightness(1.08);
}

.order-action:disabled {
    opacity: 0.48;
}

.order-feedback {
    min-height: 1.15rem;
    padding-top: 0.25rem;
    font-size: 0.56rem;
    line-height: 1.25;
}

.market-list-panel,
.market-history-panel {
    min-height: 0;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
}

.market-list-panel .trade-panel-header h2,
.market-history-panel .trade-panel-header h2 {
    font-size: 1.125rem;
}

.market-list-search {
    padding: 0.35rem 0.5rem;
}

.market-list-search .form-control {
    min-height: 32px;
    border-color: var(--trade-border);
    border-radius: 0.28rem;
    background: #080808;
    font-size: 0.65rem;
}

.market-list-head,
.trade-market-link {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr) minmax(0, 0.95fr);
    gap: 0.35rem;
}

.market-list-head {
    padding: 0.3rem 0.5rem 0.3rem 2.7rem;
    color: var(--trade-muted);
    font-size: 0.57rem;
    text-align: right;
}

.market-list-head span:first-child {
    text-align: left;
}

.trade-market-list {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    scrollbar-color: rgba(255, 255, 255, 0.13) transparent;
    scrollbar-width: thin;
}

.trade-market-row {
    min-height: 44px;
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr);
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: #f5f5f5;
}

.trade-market-row:hover,
.trade-market-row:focus-within,
.trade-market-row.active {
    color: #fff;
    background: rgba(var(--nl-accent-deep-rgb), 0.075);
}

.trade-market-link {
    min-width: 0;
    min-height: 44px;
    align-self: stretch;
    padding: 0.35rem 0.5rem 0.35rem 0;
    color: inherit;
    text-decoration: none;
}

.trade-market-link:hover,
.trade-market-link:focus {
    color: inherit;
}

.trade-market-link:focus-visible {
    border-radius: 0.2rem;
    outline: 2px solid rgba(var(--nl-accent-rgb), 0.58);
    outline-offset: -2px;
}

.trade-market-favorite {
    width: 1.75rem;
    height: 1.75rem;
    justify-self: center;
    border-radius: 0.3rem;
    font-size: 0.9rem;
}

.market-row-pair {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.42rem;
}

.market-row-pair .coin-icon {
    flex-basis: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.62rem;
}

.market-row-pair > span:last-child,
.market-row-price,
.market-row-volume {
    min-width: 0;
}

.market-row-price,
.market-row-volume {
    text-align: right;
}

.trade-market-row strong,
.trade-market-row small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trade-market-row strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.67rem;
    font-weight: 550;
}

.trade-market-row small {
    color: var(--trade-muted);
    font-size: 0.56rem;
}

.market-list-empty {
    padding: 1rem;
    color: var(--trade-muted);
    font-size: 0.65rem;
    text-align: center;
}

.trade-market-favorite-status {
    min-height: 1.5rem;
    margin: 0;
    padding: 0.25rem 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--trade-muted);
    font-size: 0.56rem;
    line-height: 1rem;
}

.trade-market-favorite-status[data-state="success"] {
    color: var(--trade-buy);
}

.trade-market-favorite-status[data-state="error"] {
    color: var(--trade-sell);
}

.market-history-head,
.history-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(54px, 0.8fr);
    gap: 0.3rem;
    text-align: right;
}

.market-history-head {
    padding: 0.4rem 0.5rem;
    color: var(--trade-muted);
    font-size: 0.56rem;
}

.market-history-head span:first-child,
.history-row span:first-child {
    text-align: left;
}

.market-history-list {
    min-height: 0;
    overflow-y: auto;
}

.history-row {
    padding: 0.38rem 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.77);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.62rem;
}

.history-row span:first-child::before {
    width: 0.34rem;
    height: 0.34rem;
    display: inline-block;
    margin-right: 0.28rem;
    border-radius: 50%;
    background: var(--nl-cyan);
    content: "";
    vertical-align: 0.03rem;
}

.history-row--buy span:nth-child(3) {
    color: var(--trade-buy);
}

.history-row--sell span:nth-child(3) {
    color: var(--trade-sell);
}

.history-empty {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem;
}

.user-activity-panel {
    height: 300px;
    min-height: 300px;
    margin-top: 0.5rem;
}

.activity-tabs {
    min-height: 44px;
    border-bottom: 1px solid var(--trade-border);
}

.activity-tabs .nav-link {
    height: 44px;
    padding: 0 1rem;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--trade-muted);
    font-size: 0.7rem;
}

.activity-tabs .nav-link.active {
    border-bottom-color: var(--trade-blue);
    color: #fff;
}

.activity-empty {
    min-height: 0;
    height: calc(100% - 44px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.45rem;
    padding: 2rem;
}

.activity-empty p {
    margin: 0 0 0.35rem;
    font-size: 0.65rem;
}

.activity-content {
    position: relative;
    height: calc(100% - 44px);
    min-height: 0;
}

.activity-list {
    max-height: 100%;
    overflow: auto;
}

.activity-row {
    min-width: 620px;
    display: grid;
    grid-template-columns:
        minmax(75px, 0.7fr)
        minmax(100px, 1fr)
        minmax(110px, 1fr)
        minmax(100px, 1fr)
        minmax(85px, 0.7fr);
    align-items: center;
    gap: 0.6rem;
    min-height: 38px;
    padding: 0.4rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.68);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.62rem;
}

.activity-row--head {
    position: sticky;
    z-index: 1;
    top: 0;
    min-height: 32px;
    background: #0d0d0d;
    color: var(--trade-muted);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.56rem;
    text-transform: uppercase;
}

.activity-row-action {
    text-align: right;
}

.activity-row-action .btn {
    padding: 0.2rem 0.55rem;
    border-color: rgba(255, 255, 255, 0.16);
    font-size: 0.56rem;
}

.activity-message {
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    font-size: 0.62rem;
}

.trade-execution-toast-container {
    z-index: 1090;
    right: 0.35rem;
    bottom: 4.75rem;
    width: min(24rem, calc(100vw - 1rem));
    pointer-events: none;
}

.trade-execution-toast {
    width: 100%;
    border: 1px solid var(--trade-border);
    border-left: 3px solid var(--trade-buy);
    background: rgba(12, 12, 12, 0.98);
    color: #f5f5f5;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.42);
    pointer-events: auto;
}

.trade-execution-toast--sell {
    border-left-color: var(--trade-sell);
}

.trade-execution-toast .toast-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: transparent;
    color: inherit;
}

.trade-execution-toast .toast-header > .bi {
    color: var(--trade-buy);
}

.trade-execution-toast--sell .toast-header > .bi {
    color: var(--trade-sell);
}

.trade-execution-toast .toast-header small {
    max-width: 10.5rem;
    overflow: hidden;
    color: var(--trade-muted);
    font-size: 0.66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trade-execution-toast .toast-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
}

.trade-execution-toast .toast-body small {
    color: var(--trade-muted);
}

@media (max-width: 1023.98px) {
    .trade-center {
        display: contents;
    }

    .chart-panel {
        order: -2;
    }

    .order-book-panel {
        order: -1;
    }

    .trade-overview-grid {
        min-height: 174px;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 114px 60px;
        gap: 0;
    }

    .trade-pair {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
    }

    .trade-last-price {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        margin-top: 0.9rem;
        text-align: right;
    }

    .trade-last-value {
        justify-content: flex-end;
    }

    .trade-mobile-change,
    .trade-mobile-volume {
        display: block;
    }

    .trade-stat {
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
        align-self: stretch;
        padding-top: 0.7rem;
        border-top: 1px solid var(--trade-border);
        text-align: center;
    }

    .trade-stat-change {
        display: none;
    }

    .trade-stat-item:nth-child(2) {
        order: 3;
    }

    .trade-stat-item:nth-child(3) {
        order: 1;
    }

    .trade-stat-item:nth-child(4) {
        order: 2;
    }
}

@media (min-width: 640px) {
    .trade-container {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .trade-main {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .chart-panel {
        height: 420px;
        min-height: 420px;
    }

    .order-entry-panel {
        height: 326px;
        min-height: 326px;
    }

    .order-entry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 326px;
    }
}

@media (min-width: 768px) {
    .trade-container {
        padding-right: 2rem;
        padding-left: 2rem;
    }

    .order-book-panel,
    .trade-side {
        height: 500px;
    }

    .chart-panel {
        height: 460px;
        min-height: 460px;
    }

    .user-activity-panel {
        height: 400px;
        min-height: 400px;
    }
}

@media (min-width: 1024px) {
    .trade-container {
        padding-right: 3rem;
        padding-left: 3rem;
    }

    .trade-workspace {
        min-height: 650px;
        height: calc(100vh - 180px);
        flex-direction: row;
        gap: 0.75rem;
    }

    .order-book-panel,
    .trade-side {
        width: 25%;
        max-width: 350px;
        height: 100%;
        flex: 0 0 25%;
    }

    .trade-center {
        height: 100%;
        flex: 1 1 auto;
    }

    .chart-panel {
        height: auto;
        min-height: 0;
        flex: 1 1 auto;
    }

    .trade-side {
        flex-direction: column;
    }

    .user-activity-panel {
        margin-top: 0.75rem;
    }
}
