.profile-popup {
    position: fixed;
    inset: 0;
    z-index: 100080;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: rgba(0, 0, 0, .62);
}

.profile-popup[hidden] {
    display: none;
}

.profile-popup-sheet {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 430px;
    height: 100%;
    height: 100dvh;
    overflow: auto;
    background: #0a0610;
    color: #fff;
    -webkit-overflow-scrolling: touch;
}

.profile-popup-head {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 52px;
    padding: 8px 10px 4px;
}

.profile-popup-back {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.7rem;
    cursor: pointer;
}

.profile-popup-head h1 {
    margin: 0;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.profile-popup-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 6px 18px 14px;
}

.profile-popup-tabs button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #7d7d7d;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: left;
    cursor: pointer;
}

.profile-popup-tabs button:last-child {
    text-align: right;
}

.profile-popup-tabs button.is-active {
    color: #d8d8d8;
}

.profile-popup-pane {
    display: none;
    padding: 0 16px 28px;
}

.profile-popup-pane.is-active {
    display: block;
}

.profile-popup-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 58px;
    margin: 0 0 10px;
    padding: 9px 16px;
    border-radius: 18px;
    background: #2a2a2a;
}

.profile-popup-label {
    color: #9c9c9c;
    font-size: .68rem;
    line-height: 1.2;
}

.profile-popup-value {
    color: #fff;
    font-size: .95rem;
    line-height: 1.25;
    word-break: break-word;
}

.profile-popup-field.is-empty .profile-popup-label {
    color: #6f6f6f;
}

.profile-popup-field.is-empty .profile-popup-value {
    min-height: 1.1em;
}

.profile-popup-field.is-input {
    cursor: text;
}

.profile-popup-field input {
    width: 100%;
    margin-top: 2px;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: .95rem;
}

.profile-popup-help {
    margin: 4px 4px 16px;
    color: #8a8a8a;
    font-size: .68rem;
}

.profile-popup-alert {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: .78rem;
}

.profile-popup-alert.is-error {
    background: rgba(220, 50, 50, .18);
    color: #ffb4b4;
}

.profile-popup-alert.is-success {
    background: rgba(46, 180, 90, .16);
    color: #b8f0c8;
}

.profile-popup-submit {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #f3d056, #d1af1a);
    color: #111;
    font-size: .85rem;
    font-weight: 800;
    cursor: pointer;
}

.profile-popup-submit:disabled {
    opacity: .6;
    cursor: wait;
}

body.profile-popup-open {
    overflow: hidden;
}

.account-sheet-body {
    padding: 0 16px 28px;
}

.account-sheet-empty {
    padding: 48px 12px;
    color: #8a8a8a;
    font-size: .86rem;
    text-align: center;
}

.account-sheet-filters {
    display: flex;
    gap: 8px;
    margin: 0 0 14px;
}

.account-sheet-filters button {
    flex: 1;
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    background: #1c1c1c;
    color: #9a9a9a;
    font-size: .68rem;
    font-weight: 700;
    cursor: pointer;
}

.account-sheet-filters button.is-active {
    background: #2f2f2f;
    color: #fff;
}

.account-sheet-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    margin: 0 0 10px;
    padding: 11px 16px;
    border-radius: 18px;
    background: #2a2a2a;
}

.account-sheet-row strong {
    display: block;
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
}

.account-sheet-row span {
    display: block;
    color: #9c9c9c;
    font-size: .68rem;
    line-height: 1.35;
}

.account-sheet-row-side {
    text-align: right;
    white-space: nowrap;
}

.account-sheet-row-side strong.is-credit {
    color: #7ee2a8;
}

.account-sheet-row-side strong.is-debit {
    color: #ff9b9b;
}

@media (min-width: 768px) {
    .profile-popup {
        align-items: center;
        padding: 24px 16px;
    }

    .profile-popup-sheet {
        height: min(860px, 92vh);
        border-radius: 18px;
        box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
    }
}
