/* =================================================
 ////  ★ Layer 공통 스타일  ///
================================================= */

/* 모달 팝업 관련 스타일 추가 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    padding: 20px;
    box-sizing: border-box;      
}

.modal-container {
    width: 100%;
    max-width: 340px;
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    text-align: center;
}

/* 닫기 버튼 */
.btn-modal-close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0);
    border-radius: 50%;
    border: none;
    color: #919191;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    z-index: 1;
}

/* 닫기 버튼 */
.btn-modal-close:hover {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 배너 영역 */
.modal-banner {
    width: 100%;
    position: relative;
    background: #4b32f1; /* 배너 기본 배경색 */
    line-height: 0;
}

.modal-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* 인디케이터 (도트) */
.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.dot.active {
    background: #fff;
    width: 12px;
    border-radius: 4px;
}

/* 팝업 본문 콘텐츠 */
.modal-body {
    padding: 30px;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.3;
}

.modal-title .highlight {
    color: var(--primary-color);
}

.modal-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* 버튼 영역 */
.modal-btn-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.btn-primary-modal {
    width: 100%;
    padding: 14px 0;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.btn-secondary-modal {
    width: 100%;
    padding: 14px 0;
    background-color: #fff;
    color: #777;
    font-size: 15px;
    font-weight: normal;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: block;
}


/*  회원탈퇴 모달 스타일 */
.modal-aft-overlay {
    opacity: 0;
    visibility: hidden;    
    transition: opacity 0.25s ease, visibility 0.25s ease;  
}

.modal-aft-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    width: 100%;
    max-width: 360px;
    background-color: #fff;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
}

/* 닫기 버튼 (오른쪽 상단 원형 버튼) */
.btn-close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3) url('../images/icon_close_white.png') no-repeat center / 16px;
    border: none;
    cursor: pointer;
    z-index: 2;
}

.modal-header-bg {
    background-color: #e2e3ff;
    padding: 36px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-badge {
    width: 80px;
    height: 80px;
    background: #ffffff url('//im.allido.co.kr/image/withdraw_img.png') no-repeat left 20px top 20px/56%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.12);
}

.icon-badge img {
    width: 45px;
    height: auto;
}

.modal-title {
    font-size: 20px;
    font-weight: normal;
    color: var(--primary-color);
}


.notice-primary {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.45;
    margin-bottom: 16px;
}

.notice-primary .highlight-em {
    color: #ff5472;
    font-weight: 700;
}

.notice-sub {
    font-size: 14px;
    color: #333333;
    line-height: 1.45;
    margin-bottom: 16px;
}

.notice-sub strong {
    font-weight: 700;
}

.notice-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}

/* 하단 버튼 영역 */
.modal-footer {
    padding: 8px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-cancel {
    width: 100%;
    height: 50px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-cancel:active {
    background-color: var(--primary-color);
}

.btn-withdraw {
    width: 100%;
    height: 50px;
    background-color: transparent;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
}

.btn-withdraw:active {
    background-color: #f8f8f8;
}