

.crypto-header,
.crypto-header * {
    box-sizing: border-box;
}

.crypto-header {
    width: 100%;
    position: relative;
    z-index: 50;
    color: inherit;
}

.crypto-header__inner {
    width: 100%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    min-height: 70px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #ffffff;
    border: 1px solid #e6f0ec;
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(7, 26, 45, 0.05);
    position: relative;
}

.crypto-header a {
    text-decoration: none;
}

.crypto-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    min-width: max-content;
    color: inherit;
}

.crypto-header__mark,
.crypto-header__logo-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: auto;
    flex: 0 0 auto;
}

.crypto-header__mark svg,
.crypto-header__logo-image {
    display: block;
    width: 100%;
    height: auto;
}

.crypto-header__brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
    letter-spacing: 0.02em;
}

.crypto-header__brand-copy strong {
    display: block;
    color: #092451;
    font-size: 22px;
    font-weight: 800;
    line-height: 0.95;
}

.crypto-header__brand-copy span {
    display: block;
    color: #079a79;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-top: 2px;
}

.crypto-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    gap: 28px;
    min-width: 0;
}

.crypto-header__nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 42px;
    color: #071a2d;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: color 180ms ease;
}

.crypto-header__nav-link:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 0;
    height: 2px;
    transform: translateX(-50%);
    background: #1aa37b;
    border-radius: 999px;
    transition: width 180ms ease;
}

.crypto-header__nav-link:hover,
.crypto-header__nav-link.is-active {
    color: #139d75;
}

.crypto-header__nav-link:hover:after,
.crypto-header__nav-link.is-active:after {
    width: 100%;
}

.crypto-header__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 0 auto;
    min-width: max-content;
}

.crypto-header__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.crypto-header__button:hover {
    transform: translateY(-1px);
}

.crypto-header__button--outline {
    color: #0d7f69;
    background: #ffffff;
    border-color: #19a884;
}

.crypto-header__button--outline:hover {
    background: #effaf6;
    color: #07745f;
}

.crypto-header__button--primary {
    color: #ffffff;
    background: #16a679;
    border-color: #16a679;
    box-shadow: 0 8px 18px rgba(22, 166, 121, 0.18);
}

.crypto-header__button--primary:hover {
    background: #0e8f69;
    border-color: #0e8f69;
    color: #ffffff;
}

.crypto-header__currency-slot {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.crypto-currency-selector {
    position: relative;
    display: inline-block;
    z-index: 3;
    color: #0d2038;
}

.crypto-currency-selector__button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 13px;
    border: 1px solid #dce8e4;
    border-radius: 9px;
    background: #ffffff;
    color: inherit;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.crypto-currency-selector__button:hover,
.crypto-currency-selector.is-open .crypto-currency-selector__button {
    border-color: #16a679;
    box-shadow: 0 8px 20px rgba(7, 26, 45, 0.08);
}

.crypto-currency-selector__icon,
.crypto-currency-selector__arrow {
    width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.crypto-currency-selector__arrow {
    width: 15px;
    height: 15px;
}

.crypto-currency-selector__icon svg,
.crypto-currency-selector__arrow svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    display: block;
}

.crypto-currency-selector__list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 100%;
    list-style: none;
    margin: 0;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #dce8e4;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(7, 26, 45, 0.12);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

.crypto-currency-selector.is-open .crypto-currency-selector__list {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.crypto-currency-selector__item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 32px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #0d2038;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: background-color 160ms ease, color 160ms ease;
}

.crypto-currency-selector__item:hover,
.crypto-currency-selector__item[aria-selected="true"] {
    background: #effaf6;
    color: #0e8f69;
}

.crypto-header__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #dce8e4;
    border-radius: 11px;
    background: #ffffff;
    cursor: pointer;
}

.crypto-header__toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #071a2d;
    transition: transform 180ms ease, opacity 180ms ease;
}

.crypto-header.is-open .crypto-header__toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.crypto-header.is-open .crypto-header__toggle span:nth-child(2) {
    opacity: 0;
}

.crypto-header.is-open .crypto-header__toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.crypto-header__mobile-panel {
    display: none;
}

.crypto-header__mobile-nav,
.crypto-header__mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crypto-header__mobile-link {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #071a2d;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    transition: background-color 160ms ease, color 160ms ease;
}

.crypto-header__mobile-link:hover,
.crypto-header__mobile-link.is-active {
    background: #effaf6;
    color: #0e8f69;
}


@media (max-width: 1280px) {
    .crypto-header__nav {
        gap: 16px;
    }

    .crypto-header__nav-link,
    .crypto-header__button,
    .crypto-currency-selector__button {
        font-size: 12px;
    }

    .crypto-header__button {
        padding-left: 14px;
        padding-right: 14px;
    }
}

@media (max-width: 1024px) {
    .crypto-header__inner {
        gap: 14px;
    }

    .crypto-header__nav,
    .crypto-header__actions {
        display: none;
    }

    .crypto-header__toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .crypto-header__mobile-panel {
        display: block;
        position: absolute;
        top: calc(100% + 12px);
        left: 12px;
        right: 12px;
        padding: 14px;
        background: #ffffff;
        border: 1px solid #e6f0ec;
        border-radius: 18px;
        box-shadow: 0 18px 44px rgba(7, 26, 45, 0.16);
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
        transform-origin: top right;
        pointer-events: none;
        transition: opacity 190ms ease, transform 190ms ease;
    }

    .crypto-header.is-open .crypto-header__mobile-panel {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .crypto-header__mobile-actions {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #edf3f1;
    }

    .crypto-header__mobile-actions .crypto-header__button,
    .crypto-header__currency-slot--mobile,
    .crypto-header__currency-slot--mobile .crypto-currency-selector,
    .crypto-header__currency-slot--mobile .crypto-currency-selector__button {
        width: 100%;
    }

    .crypto-header__currency-slot--mobile .crypto-currency-selector__button {
        justify-content: space-between;
    }

    .crypto-header__currency-slot--mobile .crypto-currency-selector__list {
        left: 0;
        right: 0;
    }
}

@media (max-width: 600px) {
    .crypto-header__inner {
        min-height: 62px;
        padding: 9px 11px;
        border-radius: 14px;
    }

    .crypto-header__mark,
    .crypto-header__logo-image {
        width: 40px;
    }

    .crypto-header__brand-copy strong {
        font-size: 18px;
    }

    .crypto-header__brand-copy span {
        font-size: 11px;
        letter-spacing: 0.22em;
    }

    .crypto-header__toggle {
        width: 40px;
        height: 40px;
    }
}

.crypto-currency-selector-widget,
.crypto-currency-selector-widget * {
    box-sizing: border-box;
}

.crypto-currency-selector-widget {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
