.sa-ach-wrap {
    position: relative;
    width: 100%;
    margin: 13px 0 0;
    padding: 20px;
    border-radius: 20px !important;
    background: #2f2f3d !important;
    border: 1px solid rgba(255, 255, 255, .05) !important;
    box-shadow: 0 20px 65px rgba(0, 0, 0, .5);
    color: #fff;
    box-shadow: 0 5px 10px #13151a4f;
}

.sa-ach-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 17px;
}

.sa-ach-head h3 {
    margin: 0;
    color: #fff;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 800;
}

.sa-ach-head button {
    height: 35px;
    min-width: 46px;
    padding: 0 14px;
    border: solid 1px #3c4560;
    border-radius: 8px;
    background: #1b2233;
    color: #8790c2;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: .18s ease;
}

.sa-ach-head button:hover {
    color: #fff;
    background: #252c3e;
    border-color: #546079;
}

.sa-ach-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    min-height: 58px;
    align-items: center;
}

.sa-ach-card {
    position: relative;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    outline: none;
}

.sa-ach-card img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 9px rgba(0,0,0,.32));
    transition: .18s ease;
}

.sa-ach-card:hover img {
    transform: translateY(-2px);
    filter: drop-shadow(0 11px 12px rgba(0,0,0,.42));
}

.sa-ach-tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    z-index: 20;
    width: 230px;
    padding: 12px 13px;
    border-radius: 12px;
    background: #2f2f3d;
    border: 1px solid #48485b;
    box-shadow: 0 14px 28px rgba(0,0,0,.38);
    color: #fff;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: .16s ease;
    pointer-events: none;
}

.sa-ach-tip:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 10px;
    height: 10px;
    background: #2f2f3d;
    border-right: 1px solid #48485b;
    border-bottom: 1px solid #48485b;
    transform: translate(-50%, -5px) rotate(45deg);
}

.sa-ach-tip b,
.sa-ach-tip small,
.sa-ach-tip em {
    display: block;
}

.sa-ach-tip b {
    color: #fff;
    font-size: 12.5px;
    line-height: 1.25;
    font-weight: 800;
}

.sa-ach-tip small {
    margin-top: 6px;
    color: #8f8fa6;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 700;
}

.sa-ach-tip em {
    margin-top: 8px;
    color: #4ddf99;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.sa-ach-card:hover .sa-ach-tip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.sa-ach-empty {
    border-radius: 14px;
    background: #3a3a4759;
    display: flex;
    width: 100%;
    font-weight: bold;
    color: #727287;
    font-size: 11px;
    border: dashed 1px #4a4a5b;
    padding: 25px;
    align-items: center;
    justify-content: center;
}

.sa-ach-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sa-ach-modal.is-open {
    display: flex;
}

.sa-ach-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(6px);
}

.sa-ach-modal-box {
    position: relative;
    z-index: 1;
    width: min(1000px, 100%);
    max-height: min(720px, 88vh);
    overflow: hidden;
    border-radius: 20px !important;
    background: #2f2f3d !important;
    border: 1px solid rgba(255,255,255,.05) !important;
    box-shadow: 0 20px 65px rgba(0,0,0,.5);
    color: #fff;
}

.sa-ach-modal-head {
    position: relative;
    min-height: 78px;
    padding: 22px 72px 12px 34px !important;
    border: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sa-ach-modal-head .modal_head {
    width: 100%;
}

.sa-ach-modal-head .flex_modal_head {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}

.sa-ach-modal-head .flex_modal_head > span {
    color: #fff;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 800;
    text-align: center;
}

.sa-ach-modal-head .line_title {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 4px;
}

.sa-ach-modal-head .line_purse1 {
    width: 45px;
    height: 2px;
    border-radius: 10px;
    background: #4ddf99;
    display: inline-block;
}

.sa-ach-modal-head .line_purse {
    width: 80px;
    height: 1px;
    border-bottom: 1px dashed #74748d;
    display: inline-block;
}

.sa-ach-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 37px;
    height: 37px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50%;
    background: #ff5c6c42 !important;
    color: #ff7a70 !important;
    opacity: 1 !important;
    text-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .18s ease;
}

.sa-ach-close span {
    line-height: 1;
    font-size: 24px;
    font-weight: 800;
}

.sa-ach-close:hover {
    background: #ff5c6c66 !important;
    color: #fff !important;
}

.sa-ach-modal-body {
    max-height: calc(88vh - 98px);
    overflow: auto;
    padding: 12px 30px 30px !important;
}

.sa-ach-modal-body::-webkit-scrollbar {
    width: 5px;
}

.sa-ach-modal-body::-webkit-scrollbar-thumb {
    background: #55556a;
    border-radius: 10px;
}

.sa-ach-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.sa-ach-metrics span {
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 11px;
    background: #3a3a49;
    color: #8f8fa6;
    font-size: 10.5px;
    font-weight: 800;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
}

.sa-ach-metrics i {
    grid-row: 1 / 3;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #44d993, #2694e8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    box-shadow: 0 8px 18px rgba(0,0,0,.22);
}

.sa-ach-metrics b {
    display: block;
    color: #4ddf99;
    font-size: 15px;
    line-height: 1.25;
}

.sa-ach-metrics small {
    display: block;
    min-width: 0;
    color: #8f8fa6;
    font-size: 10.5px;
    line-height: 1.25;
    font-weight: 800;
}

.sa-ach-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sa-ach-modal-item {
    min-height: 76px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #3a3a49;
    display: flex;
    gap: 13px;
    align-items: center;
}

.sa-ach-modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: #444456;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
}

.sa-ach-modal-icon img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 8px 9px rgba(0,0,0,.3));
}

.sa-ach-modal-text {
    min-width: 0;
}

.sa-ach-modal-text b,
.sa-ach-modal-text span,
.sa-ach-modal-text small {
    display: block;
}

.sa-ach-modal-text b {
    color: #fff;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
}

.sa-ach-modal-text span {
    margin-top: 4px;
    color: #8f8fa6;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 700;
}

.sa-ach-modal-text small {
    margin-top: 6px;
    color: #4ddf99;
    font-size: 10.5px;
    font-weight: 800;
}

.sa-ach-modal-empty {
    border-radius: 14px;
    background: #3a3a4759;
    width: 100%;
    font-weight: bold;
    color: #727287;
    font-size: 11px;
    border: dashed 1px #4a4a5b;
    padding: 35px;
    text-align: center;
}

body.sa-ach-lock {
    overflow: hidden;
}

@media (max-width: 760px) {
    .sa-ach-wrap {
        padding: 16px;
        border-radius: 0 0 8px 8px;
    }
    .sa-ach-head h3 {
        font-size: 19px;
    }
    .sa-ach-card,
    .sa-ach-card img {
        width: 52px;
        height: 52px;
    }
    .sa-ach-tip {
        display: none;
    }
    .sa-ach-modal {
        padding: 10px;
    }
    .sa-ach-modal-head {
        padding: 22px 56px 10px 18px !important;
    }
    .sa-ach-modal-head .flex_modal_head > span {
        font-size: 17px;
    }
    .sa-ach-modal-body {
        padding: 10px 14px 18px !important;
    }
    .sa-ach-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sa-ach-modal-grid {
        grid-template-columns: 1fr;
    }
}
