.a7-cabinet-shell {
    background: transparent;
    padding: 30px 0 0;
}

.a7-cabinet-shell .container {
    max-width: 1420px;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.a7-cabinet-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.a7-cabinet-top {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) 1px auto auto;
    align-items: center;
    column-gap: 28px;
    row-gap: 16px;
    padding: 0 0 26px;
}

.a7-cabinet-name {
    color: #0b1730;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.a7-cabinet-id {
    margin-top: 10px;
    color: #8b96ac;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
}

.a7-cabinet-logout {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    color: #8b96ac;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
    text-decoration: none;
}

.a7-cabinet-logout:hover {
    color: #0b1730;
    text-decoration: none;
}

.a7-cabinet-logout::before {
    content: "↩";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 17px;
    line-height: 1;
    opacity: 0.9;
}

.a7-cabinet-divider {
    width: 1px;
    height: 74px;
    background: #dfe4ec;
}

.a7-cabinet-balance {
    justify-self: start;
}

.a7-cabinet-balance-label {
    color: #8b96ac;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 600;
}

.a7-cabinet-balance-value {
    margin-top: 6px;
    color: #09162d;
    font-size: 32px;
    line-height: 1.05;
    font-weight: 700;
    white-space: nowrap;
}

.a7-cabinet-actions {
    display: grid;
    grid-template-columns: 186px 186px;
    gap: 16px;
    justify-content: end;
    justify-self: end;
}

.a7-cabinet-action {
    height: 58px;
    min-width: 186px;
    padding: 0 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}

.a7-cabinet-action:hover {
    text-decoration: none !important;
}

.a7-cabinet-action-primary {
    background: #c8f169;
    border: 1px solid #c8f169;
    color: #13230c;
}

.a7-cabinet-action-primary:hover {
    background: #b9e35b;
    border-color: #b9e35b;
    color: #13230c;
}

.a7-cabinet-action-secondary {
    background: #ffffff;
    border: 1px solid #d9e1ec;
    color: #0b1730;
}

.a7-cabinet-action-secondary:hover {
    background: #f8fafc;
    color: #0b1730;
}

.a7-cabinet-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    border-top: 1px solid #e9edf3;
    border-bottom: 1px solid #e9edf3;
}

.a7-cabinet-tab {
    position: relative;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: #8d98ae;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none !important;
}

.a7-cabinet-tab:hover {
    color: #0b1730;
    text-decoration: none !important;
}

.a7-cabinet-tab.a7-active {
    color: #0b1730;
}

.a7-cabinet-tab.a7-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: #ffd400;
}

.s-po-body {
    padding-top: 0;
}

@media (max-width: 1199px) {
    .a7-cabinet-top {
        grid-template-columns: 1fr 1px auto;
    }

    .a7-cabinet-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991px) {
    .a7-cabinet-top {
        grid-template-columns: 1fr;
        padding-bottom: 20px;
    }

    .a7-cabinet-divider {
        display: none;
    }

    .a7-cabinet-balance {
        margin-top: 6px;
    }

    .a7-cabinet-actions {
        justify-self: start;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .a7-cabinet-action {
        min-width: 0;
        width: 100%;
    }

    .a7-cabinet-tabs {
        overflow-x: auto;
        display: flex;
    }

    .a7-cabinet-tab {
        min-width: 180px;
        flex: 0 0 auto;
    }
}

@media (max-width: 575px) {
    .a7-cabinet-name {
        font-size: 22px;
    }

    .a7-cabinet-balance-value {
        font-size: 28px;
    }

    .a7-cabinet-actions {
        grid-template-columns: 1fr;
    }
}

/* A7 cabinet header final alignment */

.a7-cabinet-top {
    grid-template-columns: 500px 1px 190px minmax(420px, 1fr);
    column-gap: 26px;
}

.a7-cabinet-id {
    font-size: 18px;
    margin-top: 11px;
}

.a7-cabinet-logout {
    font-size: 18px;
    margin-top: 14px;
    gap: 0;
}

.a7-cabinet-logout::before {
    content: none;
    display: none;
}

.a7-cabinet-balance {
    justify-self: start;
}

.a7-cabinet-actions {
    width: 100%;
    justify-self: stretch;
    grid-template-columns: repeat(2, minmax(210px, 1fr));
    gap: 18px;
}

.a7-cabinet-action {
    width: 100%;
    min-width: 0;
}

@media (max-width: 1199px) {
    .a7-cabinet-top {
        grid-template-columns: 1fr 1px auto;
    }

    .a7-cabinet-actions {
        grid-column: 1 / -1;
    }
}


/* ===== A7 cabinet top-up modal ===== */

#modal-pay-step-1 {
    width: calc(100% - 32px);
    max-width: 520px;
    padding: 38px 36px 36px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 70px rgba(16, 32, 56, .16);
}

#modal-pay-step-1 .form-wrap__title {
    margin-bottom: 28px !important;
    color: #0b1730;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 600;
    text-transform: none;
}

#modal-pay-step-1 .form-group {
    margin-bottom: 14px;
}

#modal-pay-step-1 .form-control {
    width: 100%;
    height: 58px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 17px;
    background: #f5f7fa;
    color: #0b1730;
    font-size: 16px;
    line-height: 58px;
    box-shadow: none;
    outline: none;
    transition: border-color .15s ease, background .15s ease;
}

#modal-pay-step-1 .form-control:hover {
    background: #f1f4f8;
}

#modal-pay-step-1 .form-control:focus {
    background: #fff;
    border-color: #1f94ed;
    box-shadow: 0 0 0 3px rgba(31, 148, 237, .08);
}

#modal-pay-step-1 select.form-control {
    cursor: pointer;
    line-height: normal;
    text-align-last: center;
}

#modal-pay-step-1 .h6.text-center {
    margin: 18px 0 22px !important;
    padding: 18px 20px;
    border-radius: 17px;
    background: #f5f7fa;
    color: #6f7b90;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

#modal-pay-step-1 .h6.text-center > div:last-child {
    margin-top: 3px;
    color: #0b1730;
    font-size: 18px;
    line-height: 1.35;
}

#modal-pay-step-1 .h6.text-center strong {
    color: #0b1730;
    font-weight: 700;
}

#modal-pay-step-1 .form-wrap__btn {
    width: 100%;
    height: 58px;
    margin: 0;
    border: 0;
    border-radius: 17px;
    background: #1f94ed;
    color: #fff;
    font-size: 16px;
    line-height: 58px;
    font-weight: 700;
    text-align: center;
    box-shadow: none;
    transition: background .15s ease, transform .15s ease;
}

#modal-pay-step-1 .form-wrap__btn:hover {
    background: #1687dc;
}

#modal-pay-step-1 .form-wrap__btn:active {
    transform: translateY(1px);
}

#modal-pay-step-1 .mfp-close {
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    color: #a5adba;
    font-size: 36px;
    line-height: 42px;
    font-weight: 200;
    opacity: 1;
}

#modal-pay-step-1 .mfp-close:hover {
    color: #0b1730;
}

@media (max-width: 575px) {
    #modal-pay-step-1 {
        padding: 34px 20px 24px;
        border-radius: 22px;
    }

    #modal-pay-step-1 .form-wrap__title {
        padding-right: 25px;
        font-size: 22px;
    }
}

/* top-up modal polish */

#modal-pay-step-1 .form-control:focus {
    background: #f5f7fa;
    border-color: transparent;
    box-shadow: none;
    outline: none;
}

#modal-pay-step-1 select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 48px;
    background-image:
        linear-gradient(45deg, transparent 50%, #8d98aa 50%),
        linear-gradient(135deg, #8d98aa 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 50%,
        calc(100% - 16px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

#modal-pay-step-1 .form-wrap__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 18px;
    font-weight: 700;
}

#modal-pay-step-1 .mfp-close {
    background: transparent;
    border: 0;
}

#modal-pay-step-1 .mfp-close::before,
#modal-pay-step-1 .mfp-close::after {
    content: none !important;
    display: none !important;
}

/* Modern custom select */

#modal-pay-step-1 #a7-cabinet-topup-method {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
}

.a7-custom-select {
    position: relative;
    margin-bottom: 14px;
}

.a7-custom-select__button {
    position: relative;
    width: 100%;
    height: 58px;
    padding: 0 52px 0 22px;
    border: 0;
    border-radius: 17px;
    background: #f5f7fa;
    color: #0b1730;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    outline: none;
}

.a7-custom-select__button:hover,
.a7-custom-select__button:focus {
    background: #f1f4f8;
    outline: none;
    box-shadow: none;
}

.a7-custom-select__button::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -7px;
    border-right: 2px solid #8c96a8;
    border-bottom: 2px solid #8c96a8;
    transform: rotate(45deg);
    transition: transform .18s ease, margin .18s ease;
}

.a7-custom-select.is-open .a7-custom-select__button::after {
    margin-top: -2px;
    transform: rotate(225deg);
}

.a7-custom-select__menu {
    position: absolute;
    z-index: 50;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 7px;
    border: 1px solid #e3e8ef;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(15, 30, 50, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.a7-custom-select.is-open .a7-custom-select__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.a7-custom-select__option {
    width: 100%;
    min-height: 48px;
    padding: 10px 15px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #0b1730;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
}

.a7-custom-select__option:hover {
    background: #f3f6f9;
}

.a7-custom-select__option.is-selected {
    background: #eef7ff;
    color: #176fae;
}

/* Buttons without heavy bold text */

#modal-pay-step-1 .form-wrap__btn,
.a7-cabinet-action {
    font-weight: 500 !important;
}

#modal-pay-step-1 .form-wrap__btn {
    font-size: 18px;
}

#a7-invoice-ready {
    width: calc(100% - 32px);
    max-width: 520px;
    padding: 42px 36px 36px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 70px rgba(16, 32, 56, .16);
}

#a7-invoice-ready .form-wrap__title {
    margin-bottom: 14px;
    color: #0b1730;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 600;
    text-transform: none;
}

.a7-invoice-ready__text {
    margin-bottom: 26px;
    color: #7c8799;
    font-size: 16px;
}

#a7-invoice-ready .form-wrap__btn {
    height: 58px;
    border: 0;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2498e8;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
}

#a7-invoice-ready .mfp-close {
    top: 16px;
    right: 16px;
    color: #a5adba;
}

/* invoice ready modal = same geometry as top-up modal */

#a7-invoice-ready {
    width: calc(100% - 32px);
    max-width: 520px;
    padding: 38px 36px 36px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 70px rgba(16, 32, 56, .16);
}

#a7-invoice-ready .form-wrap__title {
    margin-bottom: 18px;
    color: #0b1730;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 600;
    text-transform: none;
}

#a7-invoice-ready .a7-invoice-ready__text {
    margin-bottom: 24px;
    color: #7c8799;
    font-size: 16px;
    line-height: 1.4;
}

#a7-invoice-ready .form-wrap__btn {
    width: 100%;
    height: 58px;
    border: 0;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2498e8;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
}

#a7-invoice-ready .mfp-close {
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    color: #a5adba;
    font-size: 36px;
    line-height: 42px;
    font-weight: 200;
    opacity: 1;
    background: transparent;
    border: 0;
}

#a7-invoice-ready .mfp-close::before,
#a7-invoice-ready .mfp-close::after {
    content: none !important;
    display: none !important;
}

#a7-invoice-ready .mfp-close:hover {
    color: #0b1730;
}

#modal-pay-step-1 .form-wrap__btn:disabled {
    opacity: .7;
    cursor: wait;
}

/* Final invoice window geometry */

#a7-invoice-ready {
    width: 520px !important;
    max-width: calc(100vw - 32px) !important;
    box-sizing: border-box;
    padding: 38px 36px 36px !important;
    border-radius: 28px !important;
}

/* Same close button as top-up window */

#a7-invoice-ready .mfp-close {
    top: 16px !important;
    right: 16px !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    color: #a5adba !important;
    font-size: 30px !important;
    line-height: 42px !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

#a7-invoice-ready .mfp-close:hover,
#a7-invoice-ready .mfp-close:focus {
    background: transparent !important;
    color: #7f8999 !important;
}

/* Download button keeps blue interaction, never yellow */

#a7-invoice-ready .form-wrap__btn {
    background: #2498e8 !important;
    border-color: #2498e8 !important;
    color: #fff !important;
    font-weight: 400 !important;
}

#a7-invoice-ready .form-wrap__btn:hover,
#a7-invoice-ready .form-wrap__btn:focus {
    background: #1689d8 !important;
    border-color: #1689d8 !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* ===== FINAL PAYMENT MODAL STANDARD ===== */

/* Оба окна строго одинакового размера */
#modal-pay-step-1,
#a7-invoice-ready {
    width: 520px !important;
    max-width: calc(100vw - 32px) !important;
    min-height: 454px !important;
    box-sizing: border-box !important;
    padding: 38px 36px 36px !important;
    border-radius: 28px !important;
}

/* Второе окно распределяем по той же высоте аккуратно */
#a7-invoice-ready {
    display: flex !important;
    align-items: stretch !important;
}

#a7-invoice-ready > .text-center {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#a7-invoice-ready .a7-invoice-ready__text {
    margin-bottom: 28px;
}

/* Никакого жёлтого hover в форме пополнения */
#modal-pay-step-1 .form-wrap__btn,
#modal-pay-step-1 .form-wrap__btn:hover,
#modal-pay-step-1 .form-wrap__btn:focus,
#modal-pay-step-1 .form-wrap__btn:active {
    background: #2498e8 !important;
    border-color: #2498e8 !important;
    color: #fff !important;
    box-shadow: none !important;
    font-weight: 400 !important;
}

#modal-pay-step-1 .form-wrap__btn:hover {
    background: #1689d8 !important;
    border-color: #1689d8 !important;
}

/* Такая же реакция у кнопки скачивания */
#a7-invoice-ready .form-wrap__btn,
#a7-invoice-ready .form-wrap__btn:focus,
#a7-invoice-ready .form-wrap__btn:active {
    background: #2498e8 !important;
    border-color: #2498e8 !important;
    color: #fff !important;
    box-shadow: none !important;
}

#a7-invoice-ready .form-wrap__btn:hover {
    background: #1689d8 !important;
    border-color: #1689d8 !important;
    color: #fff !important;
}

/* Крестики абсолютно одинаковые */
#modal-pay-step-1 .mfp-close,
#a7-invoice-ready .mfp-close {
    top: 16px !important;
    right: 16px !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    color: #a5adba !important;
    font-size: 30px !important;
    line-height: 42px !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

#modal-pay-step-1 .mfp-close:hover,
#a7-invoice-ready .mfp-close:hover {
    background: transparent !important;
    color: #7f8999 !important;
}

/* Invoice modal must stay hidden until Magnific Popup opens it */
#a7-invoice-ready.mfp-hide {
    display: none !important;
}

#a7-invoice-ready:not(.mfp-hide) {
    display: flex !important;
}

/* Compact invoice-ready modal */

#a7-invoice-ready {
    width: 430px !important;
    max-width: calc(100vw - 32px) !important;
    min-height: 0 !important;
    padding: 34px 32px 30px !important;
    border-radius: 26px !important;
}

#a7-invoice-ready > .text-center {
    display: block !important;
}

#a7-invoice-ready .form-wrap__title {
    margin-bottom: 14px !important;
}

#a7-invoice-ready .a7-invoice-ready__text {
    margin-bottom: 24px !important;
}

#a7-invoice-ready .form-wrap__btn {
    width: 100%;
}

/* Withdraw modal - same geometry as top-up modal */

#modal-withdraw-step-1 {
    width: 520px !important;
    height: 454px !important;
    max-width: calc(100vw - 32px) !important;
    box-sizing: border-box !important;
    padding: 38px 36px 36px !important;
    border-radius: 28px !important;
}

#modal-withdraw-step-1 > .text-center {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

#modal-withdraw-step-1 .form-wrap__title {
    margin: 0 0 34px !important;
    font-size: 25px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    text-transform: none !important;
    color: #0e1b36 !important;
}

#modal-withdraw-step-1 form {
    width: 100%;
    margin: 0 !important;
}

#modal-withdraw-step-1 form + form {
    margin-top: 16px !important;
}

#modal-withdraw-step-1 .form-wrap__btn-wrap {
    margin: 0 !important;
}

#modal-withdraw-step-1 .form-wrap__btn {
    width: 100% !important;
    height: 58px !important;
    padding: 0 20px !important;
    border: 1px solid #2498e8 !important;
    border-radius: 17px !important;
    background: #2498e8 !important;
    color: #fff !important;
    font-size: 16px !important;
    line-height: 56px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    box-shadow: none !important;
    transition: background .2s ease, border-color .2s ease !important;
}

#modal-withdraw-step-1 .form-wrap__btn:hover,
#modal-withdraw-step-1 .form-wrap__btn:focus,
#modal-withdraw-step-1 .form-wrap__btn:active {
    background: #1689d8 !important;
    border-color: #1689d8 !important;
    color: #fff !important;
}

#modal-withdraw-step-1 .mfp-close {
    top: 18px !important;
    right: 18px !important;
}

/* Existing withdraw request notice */

#a7-cabinet-withdraw-placeholder {
    display: none;
}

#modal-withdraw-step-1 .a7-withdraw-notice {
    width: 100%;
    margin: auto 0;
    text-align: center;
}

#modal-withdraw-step-1 .a7-withdraw-notice__title {
    max-width: 390px;
    margin: 0 auto 18px;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 500;
    color: #0e1b36;
}

#modal-withdraw-step-1 .a7-withdraw-notice__text {
    max-width: 390px;
    margin: 0 auto 12px;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 400;
    color: #75839b;
}

#modal-withdraw-step-1 .a7-withdraw-notice__text a {
    color: #2498e8;
    text-decoration: none;
}

#modal-withdraw-step-1 .a7-withdraw-notice__button {
    width: 100%;
    height: 58px;
    margin-top: 20px;
    padding: 0 20px;
    border: 1px solid #2498e8;
    border-radius: 17px;
    background: #2498e8;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

#modal-withdraw-step-1 .a7-withdraw-notice__button:hover {
    background: #1689d8;
    border-color: #1689d8;
}

/* Compact close icon for withdraw modal */

#modal-withdraw-step-1 .mfp-close {
    top: 20px !important;
    right: 20px !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 32px !important;
    background: transparent !important;
    opacity: .5 !important;
}

#modal-withdraw-step-1 .mfp-close::before,
#modal-withdraw-step-1 .mfp-close::after {
    content: "" !important;
    position: absolute !important;
    top: 15px !important;
    left: 6px !important;
    width: 20px !important;
    height: 2px !important;
    background: #9da8b8 !important;
    border-radius: 2px !important;
}

#modal-withdraw-step-1 .mfp-close::before {
    transform: rotate(45deg) !important;
}

#modal-withdraw-step-1 .mfp-close::after {
    transform: rotate(-45deg) !important;
}

#modal-withdraw-step-1 .mfp-close:hover {
    opacity: .85 !important;
}

/* Full-width button in withdraw result modal */
#modal-withdraw-step-1 .a7-withdraw-notice__button {
    display: block !important;
    width: 100% !important;
    height: 58px !important;
    box-sizing: border-box !important;
    line-height: 56px !important;
    font-size: 16px !important;
    text-decoration: none !important;
}


/* ===== A7 cabinet mobile final header ===== */

@media (max-width: 767px) {

    .a7-cabinet-shell {
        padding: 22px 0 0 !important;
        background: #fff !important;
        overflow: visible !important;
    }

    .a7-cabinet-shell .container {
        width: 100% !important;
        max-width: none !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .a7-cabinet-card {
        width: 100% !important;
        overflow: visible !important;
    }

    /* ФИО / ID / Выйти */

    .a7-cabinet-top {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    .a7-cabinet-user {
        width: 100% !important;
        text-align: left !important;
    }

    .a7-cabinet-user::before {
        content: none !important;
        display: none !important;
    }

    .a7-cabinet-name {
        margin: 0 !important;
        color: #0b1730 !important;
        font-size: 22px !important;
        line-height: 1.15 !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0 !important;
    }

    .a7-cabinet-id {
        margin-top: 7px !important;
        color: #8b96ac !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
        font-weight: 600 !important;
    }

    .a7-cabinet-logout {
        display: inline-flex !important;
        width: auto !important;
        margin-top: 8px !important;
        color: #8b96ac !important;
        font-size: 15px !important;
        line-height: 1.2 !important;
        font-weight: 600 !important;
        text-decoration: none !important;
    }

    .a7-cabinet-logout::before,
    .a7-cabinet-logout i {
        display: none !important;
        content: none !important;
    }

    .a7-cabinet-divider {
        display: none !important;
    }

    /* Карточка баланса */

    .a7-cabinet-balance {
        order: 2 !important;
        width: 100% !important;
        margin: 20px 0 0 !important;
        padding: 16px 18px 8px !important;
        background: #fafbfd !important;
        border: 1px solid #e4e9f0 !important;
        border-bottom: 0 !important;
        border-radius: 18px 18px 0 0 !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }

    .a7-cabinet-balance-label {
        display: block !important;
        color: #8b96ac !important;
        font-size: 14px !important;
        line-height: 1.2 !important;
        font-weight: 600 !important;
    }

    .a7-cabinet-balance-value {
        margin-top: 4px !important;
        color: #09162d !important;
        font-size: 30px !important;
        line-height: 1.05 !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
    }

    .a7-cabinet-balance-value::before {
        content: none !important;
    }

    /* Пополнить / Вывести */

    .a7-cabinet-actions {
        order: 3 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 8px 18px 16px !important;
        background: #fafbfd !important;
        border: 1px solid #e4e9f0 !important;
        border-top: 0 !important;
        border-radius: 0 0 18px 18px !important;
        box-sizing: border-box !important;
    }

    .a7-cabinet-action {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 50px !important;
        padding: 0 10px !important;
        border-radius: 12px !important;
        font-size: 15px !important;
        line-height: 1 !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
    }

    .a7-cabinet-action i {
        display: none !important;
    }

    .a7-cabinet-action-primary {
        background: #c8f169 !important;
        border: 1px solid #c8f169 !important;
        color: #13230c !important;
    }

    .a7-cabinet-action-secondary {
        background: #fff !important;
        border: 1px solid #d5deea !important;
        color: #0b1730 !important;
    }

    /* Навигация по разделам */

    .a7-cabinet-tabs {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        width: 100% !important;
        margin-top: 18px !important;
        overflow: visible !important;
        border-top: 0 !important;
        border-bottom: 1px solid #e5eaf0 !important;
    }

    .a7-cabinet-tab {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 62px !important;
        margin: 0 !important;
        padding: 7px 3px !important;
        border: 0 !important;
        color: #9aa5ba !important;
        font-size: 11px !important;
        line-height: 1.15 !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        text-align: center !important;
        white-space: normal !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
    }

    .a7-cabinet-tab i {
        display: none !important;
    }

    .a7-cabinet-tab span {
        display: block !important;
        width: 100% !important;
    }

    .a7-cabinet-tab.a7-active {
        color: #0b1730 !important;
        background: transparent !important;
    }

    .a7-cabinet-tab.a7-active::after {
        content: "" !important;
        display: block !important;
        position: absolute !important;
        left: 4px !important;
        right: 4px !important;
        bottom: -1px !important;
        height: 3px !important;
        background: #ffd400 !important;
    }

    /* Всё ниже меню оставляем старой системе ЛК */

    .s-po-body {
        width: 100% !important;
        overflow-x: hidden !important;
        padding-top: 0 !important;
    }
}

