.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 10px var(--space-5) 18px;
    color: inherit;
}

.nav-bar--light {
    color: #ffffff;
}

.nav-bar__side {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 16px;
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.nav-bar__side:active {
    transform: scale(0.97);
}

.nav-bar__side--soft {
    background: rgba(255, 255, 255, 0.08);
}

.nav-bar__title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 20px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.card--soft {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
}

.pill-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    padding: 0 var(--space-5);
}

.pill-tabs__item {
    position: relative;
    padding: 14px 6px;
    text-align: center;
    color: var(--color-text-soft);
    font-size: 18px;
}

.pill-tabs__item.is-active {
    color: var(--color-text);
}

.pill-tabs__item.is-active::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 4px;
    border-radius: 999px;
    background: var(--color-primary);
}

.hero-title {
    font-size: 52px;
    line-height: 1.05;
    font-weight: 800;
    color: var(--color-primary-strong);
    text-align: center;
}

.hero-subtitle {
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-soft);
}

.form-stack {
    display: grid;
    gap: var(--space-4);
}

.field {
    position: relative;
    width: 100%;
    background: var(--color-control-bg);
    border-radius: var(--control-radius);
    min-height: var(--control-height);
    display: flex;
    align-items: center;
    padding: 0 var(--control-padding-x);
    gap: 10px;
    box-shadow: 0 8px 18px rgba(31, 42, 68, 0.04);
    mix-blend-mode: normal;
    transition:
        box-shadow 160ms var(--ease-out),
        background-color 160ms var(--ease-out),
        transform 160ms var(--ease-out);
}

.field__label {
    color: var(--color-text-soft);
    font-size: var(--control-label-size);
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.field input,
.field textarea {
    color: var(--color-text);
    font-size: var(--control-text-size);
    line-height: 1.45;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--color-control-placeholder);
}

.field select,
.field textarea,
.field__control {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--color-text);
    font-size: var(--control-text-size);
    line-height: 1.45;
    appearance: none;
}

.field input,
.field select,
.field textarea,
.field__control {
    flex: 1 1 auto;
    min-width: 0;
}

.field:focus-within {
    background: #ffffff;
    box-shadow:
        0 0 0 3px rgba(var(--color-primary-rgb), 0.1),
        0 12px 24px rgba(var(--color-primary-rgb), 0.08);
}

.field--stack {
    min-height: 82px;
    padding: 14px 18px;
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.field--textarea {
    align-items: stretch;
    padding-top: 14px;
    padding-bottom: 14px;
}

.field--textarea textarea {
    min-height: 92px;
    resize: none;
}

.field__addon {
    color: var(--color-text-soft);
    font-size: 13px;
    font-weight: 600;
    flex: 0 0 auto;
}

.text-link {
    display: inline-block;
    max-width: 100%;
    color: var(--color-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.button {
    width: 100%;
    min-height: var(--control-height);
    border-radius: var(--control-radius);
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: var(--button-text-size);
    font-weight: var(--button-font-weight);
    line-height: 1;
    mix-blend-mode: normal;
    transition:
        transform 160ms var(--ease-out),
        opacity 160ms var(--ease-out),
        box-shadow 160ms var(--ease-out),
        background-color 160ms var(--ease-out),
        color 160ms var(--ease-out);
}

.button:active {
    transform: scale(0.97);
}

.button--primary {
    background: rgba(var(--color-primary-rgb), 1);
    color: #ffffff;
    /* box-shadow: var(--shadow-button); */
}

.button--ghost {
    background: var(--color-primary-soft);
    color: var(--color-primary);
    box-shadow: none;
}

.button--outline {
    background: #f4f7fb;
    color: var(--color-primary);
    box-shadow: none;
}

.button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.button--inline {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
}

.button--soft {
    background: var(--color-primary-soft);
    color: var(--color-primary-strong);
    box-shadow: none;
}

.auth-socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.social-button {
    min-height: 68px;
    border-radius: 22px;
    background: #f9fafb;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--color-text-soft);
}

.social-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
}

.social-dot--facebook {
    background: #4066b0;
}

.social-dot--google {
    background: #ea5b47;
}

.tab-bar {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: var(--shell-width);
    padding: 6px 8px calc(var(--bottom-safe) + 2px);
    background: rgba(255, 255, 255, 0.98);
    border-top-left-radius: 34px;
    border-top-right-radius: 34px;
    box-shadow: 0 -10px 28px rgba(26, 38, 74, 0.08);
    z-index: 20;
}

.tab-bar__items {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    align-items: end;
}

.tab-bar__item {
    min-height: 70px;
    border-radius: 18px;
    display: grid;
    justify-items: center;
    align-content: end;
    gap: 3px;
    color: #9cabc3;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 500;
    transition: transform 160ms var(--ease-out), color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.tab-bar__item:active {
    transform: scale(0.97);
}

.tab-bar__item.is-active {
    color: #192437;
}

.tab-bar__item.is-active .tab-bar__glyph-wrap:not(.tab-bar__glyph-wrap--trade) {
    background: transparent;
    color: inherit;
    box-shadow: none;
}

.tab-bar__item--trade {
    transform: translateY(-14px);
}

.tab-bar__item--trade:active {
    transform: translateY(-14px) scale(0.97);
}

.tab-bar__glyph-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), color 160ms var(--ease-out);
}

.tab-bar__glyph-wrap--trade {
    width: 68px;
    height: 68px;
    background: linear-gradient(180deg, #4d84f2 0%, #3f79ec 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(78, 128, 240, 0.26);
}

.tab-bar__glyph-wrap--trade:active {
    transform: scale(0.97);
}

.tab-bar__icon {
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.tab-bar__glyph-wrap--trade .tab-bar__icon {
    font-size: 24px;
}

.tab-bar__item--trade.is-active .tab-bar__glyph-wrap--trade {
    background: linear-gradient(180deg, #4d84f2 0%, #3f79ec 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(78, 128, 240, 0.26);
}

.market-segments {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.market-search {
    display: grid;
    gap: 12px;
}

.market-search__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.market-search__input {
    min-height: 50px;
    padding: 0 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    color: var(--color-text);
    font-size: 16px;
}

.market-search__button {
    min-height: 50px;
    padding: 0 18px;
    border-radius: 18px;
    background: rgba(111, 99, 246, 0.12);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
}

.market-segments__item {
    min-height: 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-soft);
    font-size: 14px;
}

.market-segments__item.is-active {
    background: rgba(111, 99, 246, 0.12);
    color: var(--color-primary);
}

.list-card {
    padding: 14px;
    display: grid;
    gap: 14px;
}

.asset-row,
.market-row,
.menu-row {
    display: grid;
    align-items: center;
    gap: 14px;
}

.asset-row--link {
    transition: transform 160ms var(--ease-out), opacity 160ms var(--ease-out);
}

.asset-row--link:active {
    transform: scale(0.985);
}

.asset-row {
    grid-template-columns: auto 1fr auto;
}

.market-row {
    grid-template-columns: auto 1fr auto auto;
}

.market-row .row-subtitle {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}

.asset-icon--btc {
    background: linear-gradient(180deg, #f8b33f 0%, #f18d25 100%);
}

.asset-icon--eth {
    background: linear-gradient(180deg, #96b6ff 0%, #5b78f7 100%);
}

.asset-icon--alt {
    background: linear-gradient(180deg, #7f6cff 0%, #5c49f0 100%);
}

.row-title {
    font-size: 18px;
    font-weight: 700;
}

.row-subtitle {
    color: var(--color-text-soft);
    font-size: 13px;
    margin-top: 4px;
}

.price-text {
    font-size: 20px;
    font-weight: 700;
    text-align: right;
}

.trend-up {
    color: var(--color-success);
}

.trend-down {
    color: var(--color-danger);
}

.trend-flat {
    color: #94a3b8;
}

.mini-chart {
    width: 84px;
    height: 42px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}

.mini-chart--up {
    background: linear-gradient(180deg, rgba(83, 212, 117, 0.18) 0%, rgba(83, 212, 117, 0.04) 100%);
}

.mini-chart--down {
    background: linear-gradient(180deg, rgba(239, 90, 122, 0.18) 0%, rgba(239, 90, 122, 0.04) 100%);
}

.mini-chart svg {
    width: 100%;
    height: 100%;
}

.hero-balance {
    color: #ffffff;
    text-align: center;
    display: grid;
    gap: 8px;
    padding: 10px 0 22px;
}

.hero-balance__amount {
    font-size: 48px;
    line-height: 1;
    font-weight: 800;
}

.hero-balance__label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
}

.home-banner {
    display: block;
    padding: 18px 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-soft);
    color: #ffffff;
}

.home-banner__content {
    display: grid;
    gap: 8px;
}

.home-banner__content strong {
    font-size: 20px;
    font-weight: 700;
}

.home-banner__content span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
}

.floating-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 248, 253, 0.98) 100%);
    border-top-left-radius: 38px;
    border-top-right-radius: 38px;
    box-shadow: 0 -20px 50px rgba(35, 34, 78, 0.12);
    padding: 22px 20px 0;
    min-height: calc(100dvh - 238px);
}

.chip-link {
    color: var(--color-primary);
    font-size: 15px;
}

.status-banner {
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(111, 99, 246, 0.08);
    color: var(--color-primary-strong);
    font-size: 14px;
    line-height: 1.6;
}

.market-search {
    display: grid;
    gap: 12px;
}

.market-search__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.market-search__input {
    min-height: 50px;
    padding: 0 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    color: var(--color-text);
    font-size: 16px;
}

.market-search__button {
    min-height: 50px;
    padding: 0 18px;
    border-radius: 18px;
    background: rgba(111, 99, 246, 0.12);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
}

.market-row .row-subtitle {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.empty-state {
    padding: 30px 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    text-align: center;
    color: var(--color-text-soft);
    display: grid;
    gap: 10px;
}

.loader {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    animation: spin 800ms linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 全局返回按钮与底部导航最终覆盖 */
.nav-bar {
    padding: 8px 16px 14px;
}

.nav-bar__side {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    flex: 0 0 40px;
}

.nav-bar__side:has(.text-link) {
    width: auto;
    min-width: fit-content;
    max-width: 42%;
    flex: 0 0 auto;
    justify-content: flex-end;
}

.nav-bar__side:has(.text-link) .text-link {
    max-width: 100%;
}

.nav-bar__title {
    font-size: 18px;
    line-height: 1.2;
}

.nav-bar__back-link {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: #ddecff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 20px 2px #e3e3e3;
}

.nav-bar--light .nav-bar__back-link {
    background: rgba(255, 255, 255, 0.16);
}

.nav-bar__back-glyph {
    width: 11px;
    height: 11px;
    border-left: 2.4px solid currentColor;
    border-bottom: 2.4px solid currentColor;
    transform: rotate(45deg);
    margin-left: 4px;
    color: #193590;
}

.nav-bar--light .nav-bar__back-glyph {
    color: #ffffff;
}

.nav-bar__side .icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: #f8fbff;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.08);
}

.nav-bar__side .icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.tab-bar {
    width: 100%;
    height: calc(58px + var(--bottom-safe));
    padding: 5px 8px calc(var(--bottom-safe) + 4px);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -8px 22px rgba(18, 36, 70, 0.07);
    overflow: visible;
}

.tab-bar__items {
    height: 100%;
    align-items: end;
}

.tab-bar__item {
    min-height: 44px;
    gap: 6px;
    align-content: end;
}

.tab-bar__glyph-wrap {
    width: 22px;
    height: 22px;
    border-radius: 0;
}

.tab-bar__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tab-bar__item--trade {
    position: relative;
    z-index: 2;
}

.tab-bar__glyph-wrap--trade {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: transparent;
    transform: translateY(-15px);
    box-shadow: none;
    overflow: visible;
}

.tab-bar__item--trade .tab-bar__glyph-wrap--trade {
    background: transparent;
}

.tab-bar__item.is-active .tab-bar__glyph-wrap:not(.tab-bar__glyph-wrap--trade) {
    background: transparent;
}

.tab-bar__glyph-wrap--trade .tab-bar__image {
    width: 54px;
    height: 54px;
}

.tab-bar__label {
    font-size: 11px;
    line-height: 1;
    margin-top: 0;
}

.tab-bar__item--trade .tab-bar__label {
    margin-top: -8px;
    font-weight: 600;
}

@media (max-width: 390px) {
    .nav-bar {
        padding: 8px 14px 12px;
    }

    .nav-bar__side,
    .nav-bar__back-link,
    .nav-bar__side .icon {
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

    .tab-bar {
        height: calc(56px + var(--bottom-safe));
    }

    .tab-bar__glyph-wrap--trade {
        width: 50px;
        height: 50px;
    }

    .tab-bar__glyph-wrap--trade .tab-bar__image {
        width: 50px;
        height: 50px;
    }
}

.tab-bar {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(calc(var(--shell-width) - 4px), 410px);
    padding: 8px 10px calc(var(--bottom-safe) + 8px);
    background: rgba(255, 255, 255, 0.98);
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    box-shadow: 0 -10px 30px rgba(18, 36, 70, 0.08);
    backdrop-filter: blur(16px);
    z-index: 30;
}

.tab-bar__items {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
}

.tab-bar__item {
    min-height: 68px;
    display: grid;
    justify-items: center;
    align-content: end;
    gap: 4px;
    color: #a2aec4;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
    transition:
        transform 160ms var(--ease-out),
        color 160ms var(--ease-out);
}

.tab-bar__item:active {
    transform: scale(0.97);
}

.tab-bar__item.is-active {
    color: #232e43;
}

.tab-bar__glyph-wrap {
    width: 34px;
    height: 34px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    transition:
        transform 160ms var(--ease-out),
        color 160ms var(--ease-out),
        opacity 160ms var(--ease-out);
}

.tab-bar__item.is-active:not(.tab-bar__item--trade) .tab-bar__glyph-wrap {
    color: #2c3647;
}

.tab-bar__item--trade {
    transform: translateY(-10px);
}

.tab-bar__item--trade:active {
    transform: translateY(-10px) scale(0.97);
}

.tab-bar__item--trade .tab-bar__label {
    color: #2f3b50;
    font-weight: 600;
}

.tab-bar__glyph-wrap--trade {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(180deg, #4d83ec 0%, #3f77e9 100%);
    color: #ffffff;
    box-shadow: 0 14px 24px rgba(66, 120, 231, 0.2);
}

.tab-bar__glyph-wrap--trade:active {
    transform: scale(0.97);
}

.tab-bar__icon {
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tab-bar__glyph-wrap--trade .tab-bar__icon {
    font-size: 30px;
}

.tab-bar__label {
    letter-spacing: 0;
    white-space: nowrap;
    color: currentColor;
}

@media (max-width: 390px) {
    .tab-bar {
        width: min(calc(var(--shell-width) - 4px), 386px);
        padding: 8px 8px calc(var(--bottom-safe) + 8px);
    }

    .tab-bar__item {
        min-height: 66px;
        font-size: 11px;
    }

    .tab-bar__glyph-wrap {
        width: 32px;
        height: 32px;
    }

    .tab-bar__glyph-wrap--trade {
        width: 70px;
        height: 70px;
    }
}

.tab-bar__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tab-bar__glyph-wrap--trade .tab-bar__image {
    width: 28px;
    height: 28px;
}

.tab-bar {
    width: min(calc(var(--shell-width) - 8px), 414px);
    padding: 7px 8px calc(var(--bottom-safe) + 7px);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -8px 24px rgba(18, 36, 70, 0.07);
}

.tab-bar__item {
    min-height: 60px;
    gap: 5px;
    font-size: 10px;
}

.tab-bar__glyph-wrap {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.tab-bar__glyph-wrap--trade {
    width: 56px;
    height: 56px;
    margin-bottom: 1px;
    box-shadow: 0 12px 22px rgba(66, 120, 231, 0.18);
}

.tab-bar__item--trade {
    transform: translateY(-12px);
}

.tab-bar__item--trade:active {
    transform: translateY(-12px) scale(0.97);
}

.tab-bar__label {
    font-size: 10px;
    line-height: 1;
    margin-top: 1px;
}

@media (max-width: 390px) {
    .tab-bar {
        width: min(calc(var(--shell-width) - 8px), 386px);
        padding: 7px 6px calc(var(--bottom-safe) + 7px);
    }

    .tab-bar__item {
        min-height: 58px;
        font-size: 10px;
        gap: 4px;
    }

    .tab-bar__glyph-wrap {
        width: 32px;
        height: 32px;
    }

    .tab-bar__glyph-wrap--trade {
        width: 52px;
        height: 52px;
    }

    .tab-bar__glyph-wrap--trade .tab-bar__image {
        width: 24px;
        height: 24px;
    }
}

/* 底部导航最终收口覆盖 */
.tab-bar {
    --tab-bar-height: 64px;
    --tab-bar-padding-x: 8px;
    --tab-bar-trade-size: 56px;
    --tab-bar-trade-overhang: 16px;
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 0;
    transform: translateX(-50%);
    width: min(calc(var(--shell-width) - 8px), 414px);
    max-width: calc(100vw - 8px);
    height: calc(var(--tab-bar-height) + var(--bottom-safe));
    padding: 4px var(--tab-bar-padding-x) var(--bottom-safe);
    border-top-left-radius: 35px;
    border-top-right-radius: 35px;
    /* 0 -8px 20px rgba(18, 36, 70, 0.06)  */
    box-shadow: 13px -13px 25px 29px rgba(18, 36, 70, 0.08);
    overflow: visible;
    z-index: 90;
}

.tab-bar__items {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: relative;
    height: 100%;
    align-items: stretch;
}

.tab-bar__item {
    position: relative;
    z-index: 1;
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    padding-bottom: 2px;
    overflow: visible;
    font-size: 10px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.tab-bar__glyph-wrap {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.tab-bar__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tab-bar__glyph-wrap--trade {
    position: absolute;
    left: 50%;
    top: calc(var(--tab-bar-trade-overhang) * -1);
    width: var(--tab-bar-trade-size);
    height: var(--tab-bar-trade-size);
    border-radius: 0;
    background: transparent;
    margin-bottom: 0;
    transform: translateX(-50%);
    box-shadow: none;
    overflow: visible;
    pointer-events: none;
}

.tab-bar__glyph-wrap--trade .tab-bar__image {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tab-bar__item--trade {
    position: relative;
    z-index: 1;
    min-height: 0;
    transform: none;
    margin-top: 0;
    padding-top: 0;
    gap: 0;
}

.tab-bar__item--trade:active {
    transform: none;
}

.tab-bar__item--trade .tab-bar__glyph-wrap--trade:active {
    transform: translateX(-50%) scale(0.97);
}

.tab-bar__item--trade .tab-bar__label {
    position: relative;
    margin-top: 0;
    color: #2f3b50;
    font-weight: 600;
}

.tab-bar__label {
    font-size: 14px;
    line-height: 1;
    margin-top: 2px;
}

@media (max-width: 390px) {
    .tab-bar {
        --tab-bar-height: 58px;
        --tab-bar-padding-x: 6px;
        --tab-bar-trade-size: 52px;
        --tab-bar-trade-overhang: 14px;
        width: min(calc(var(--shell-width) - 8px), 386px);
    }

    .tab-bar__item {
        gap: 5px;
    }

    .tab-bar__item--trade {
        gap: 0;
    }

    .tab-bar__glyph-wrap {
        width: 32px;
        height: 32px;
    }

    .tab-bar__glyph-wrap--trade {
        width: var(--tab-bar-trade-size);
        height: var(--tab-bar-trade-size);
    }

    .tab-bar__glyph-wrap--trade .tab-bar__image {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 360px) {
    .nav-bar {
        gap: 8px;
        padding: 8px 12px 12px;
    }

    .nav-bar__title {
        font-size: 17px;
    }

    .tab-bar {
        --tab-bar-height: 56px;
        --tab-bar-padding-x: 4px;
        --tab-bar-trade-size: 48px;
        --tab-bar-trade-overhang: 12px;
        width: min(calc(100vw - 6px), 354px);
        border-top-left-radius: 28px;
        border-top-right-radius: 28px;
    }

    .tab-bar__item {
        gap: 4px;
    }

    .tab-bar__item--trade {
        gap: 0;
    }

    .tab-bar__glyph-wrap {
        width: 30px;
        height: 30px;
    }

    .tab-bar__glyph-wrap--trade {
        width: var(--tab-bar-trade-size);
        height: var(--tab-bar-trade-size);
    }

    .tab-bar__glyph-wrap--trade .tab-bar__image {
        width: 30px;
        height: 30px;
    }

    .tab-bar__label {
        font-size: 12px;
    }
}

.tab-bar__item--trade .tab-bar__glyph-wrap--trade,
.tab-bar__item--trade.is-active .tab-bar__glyph-wrap--trade,
.tab-bar__item--trade:active .tab-bar__glyph-wrap--trade,
.tab-bar__item--trade .tab-bar__glyph-wrap--trade:active {
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
}
