section.modal-section {
    position: relative;
    z-index: 99999;
}

.modal-overlay {
    position: fixed;
    z-index: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}
.modal-dialog {
    transition: .5s ease-in-out;
    animation: slideTop .5s;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    max-width: 95%;
    margin: 0 auto;
}
.modal-content {
    display: flex;
    flex-flow: column;
    width: 100%;
    align-items: center;
    background: var(--surface-dark, #0f2a14);
    padding: 1rem;
    color: var(--text-primary, #e8e8d0);
    border-top-right-radius: 1rem;
    border-top-left-radius: 1rem;
    border: 1px solid rgba(197, 164, 78, 0.25);
    border-bottom: none;
}

.modal-header {
    width: 100%;
    align-items: center;
    text-align: center;
    color: var(--accent-gold, #c5a44e);
}
.modal-body {
    padding: 1.5rem 0;
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    color: var(--text-primary, #e8e8d0);
}
.grid_header {
    display: grid;
    grid-template-columns: 20% 60% 20%;
}
span.withdraw_wallet {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-gold, #c5a44e);
}
.second-modal-section {
    width: 100%;
    height: 100dvh;
    position: absolute;
    z-index: 999999;
}
.second-modal-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}
.second-modal-dialog {
    width: 100%;
    height: 100%;
}
.second-modal-content {
    position: relative;
    width: 80%;
    height: auto;
    display: flex;
    flex-flow: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    margin: 0 auto;
}
.second-modal-dialog {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    animation: slideTop .5s;
}
.second-modal-content {
    width: 80%;
    height: fit-content;
    padding: 1rem;
    margin: 0 auto;
    top: 50%;
    position: absolute;
    transform: translateY(-50%);
    background: var(--surface-dark, #0f2a14);
    border-radius: .85rem;
    border: 1px solid rgba(197, 164, 78, 0.25);
    color: var(--text-primary, #e8e8d0);
}
@keyframes slideTopClose {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-50%);
        opacity: .1;
    }
}
.slideTop {
    animation: slideTop .5s ease forwards;
}
.slideTopClose {
    animation: slideTopClose 0.5s ease forwards;
}


@keyframes slideTop {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.slideBottom {
    animation: slideBottom .5s;
    opacity: 0;
}

@keyframes slideBottom {
    from {
        transform: translateY(0%);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
        display:none!Important
    }
}
.inputPasswordWrapper {
    padding: .5rem 1rem;
    line-height: 1.5;
    border-radius: 150px;
    margin-bottom: 2rem;
    margin-top: 1rem;
    border: 2px solid rgba(197, 164, 78, 0.3);
    background: rgba(26, 92, 42, 0.15);
}

span.second-modal.close {
    position: absolute;
    top: -50px;
    border: 2px solid rgba(197, 164, 78, 0.4);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    right: 10px;
    font-size: 1.5rem;
    overflow: hidden;
    text-align: center;
    align-items: center;
    display: flex;
    justify-content: center;
    color: var(--accent-gold, #c5a44e);
    background: var(--surface-dark, #0f2a14);
}
.modal-footer {
    width: 100%;
    align-items: center;
    justify-content: center;
    display: flex;
    gap: .5rem;
}

.modal-header .close,
.modal-header .close span {
    color: var(--text-primary, #e8e8d0) !important;
    font-size: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.modal-title,
.modal-title h5 {
    color: var(--accent-gold, #c5a44e) !important;
    font-weight: 700;
}

.second-modal-title,
.second-modal-title h5,
.second-modal-header h5,
.second-modal-header h4 {
    color: var(--accent-gold, #c5a44e) !important;
    font-weight: 700;
}

.second-modal-footer {
    width: 100%;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding-top: 0.5rem;
}
