.phantom-wallet-control {
    position: relative;
    z-index: 112;
    flex: 0 0 auto;
    font-family: inherit;
}

.phantom-wallet-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(115deg, #9b8cff 0%, #6c55ee 48%, #3a63ee 100%);
    box-shadow: 0 10px 30px rgba(102, 77, 230, .28), inset 0 1px rgba(255, 255, 255, .28);
    font: inherit;
    font-size: .94rem;
    font-weight: 700;
    letter-spacing: .1px;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.phantom-wallet-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 13px 34px rgba(102, 77, 230, .36), inset 0 1px rgba(255, 255, 255, .3);
}

.phantom-wallet-button:focus-visible,
.phantom-wallet-actions button:focus-visible {
    outline: 3px solid rgba(154, 140, 255, .5);
    outline-offset: 3px;
}

.phantom-wallet-button:disabled {
    cursor: wait;
    opacity: .75;
    transform: none;
}

.phantom-wallet-icon {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
}

.phantom-wallet-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.phantom-wallet-control.is-connected .phantom-wallet-button {
    background: rgba(21, 25, 43, .92);
    border-color: rgba(155, 140, 255, .62);
}

.phantom-wallet-popover {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(360px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid rgba(155, 140, 255, .34);
    border-radius: 18px;
    color: #fff;
    background: rgba(13, 16, 29, .97);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .48);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.phantom-wallet-popover[hidden] {
    display: none !important;
}

.phantom-wallet-popover-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.phantom-wallet-state-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #4ddd9b;
    box-shadow: 0 0 0 5px rgba(77, 221, 155, .12);
}

.phantom-wallet-address {
    display: block;
    width: 100%;
    padding: 11px 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 11px;
    color: #d7d2ff;
    background: rgba(255, 255, 255, .055);
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.phantom-wallet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 12px;
}

.phantom-wallet-actions button {
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    font: inherit;
    font-size: .82rem;
    font-weight: 650;
    cursor: pointer;
}

.phantom-wallet-actions button:hover {
    background: rgba(255, 255, 255, .14);
}

.phantom-wallet-actions .phantom-wallet-disconnect {
    color: #ffb6c0;
}

.phantom-wallet-note {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, .6);
    font-size: .72rem;
    line-height: 1.45;
}

.phantom-wallet-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1120px) {
    .phantom-wallet-button {
        padding-inline: 13px;
    }
}

@media (max-width: 980px) {
    .navigation-wrapper {
        flex-wrap: wrap;
        gap: 14px;
    }

    .navigation-wrapper .primary-navigation {
        position: static !important;
        order: 3;
        width: 100%;
        transform: none !important;
    }

    .phantom-wallet-control {
        margin-left: auto;
    }
}

@media (max-width: 520px) {
    .phantom-wallet-button {
        min-height: 42px;
        padding: 8px 11px;
        gap: 7px;
        font-size: .8rem;
    }

    .phantom-wallet-icon {
        width: 21px;
        height: 21px;
    }

    .phantom-wallet-popover {
        position: fixed;
        top: 76px;
        right: 12px;
        width: calc(100vw - 24px);
    }
}
