/* 로그인 모달 스타일 */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.login-modal-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.login-modal-container {
    background: #2e323c;
    border-radius: 10px;
    width: 400px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    margin: auto;
    display: flex;
    flex-direction: column;
    /* 스크롤바 숨기기 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Webkit 브라우저에서 스크롤바 숨기기 */
.login-modal-container::-webkit-scrollbar {
    display: none;
}

/* 텔레그램 고객센터 링크 스타일 */
.telegram-support {
    margin-top: 20px;
}

.telegram-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.telegram-link:hover {
    text-decoration: none;
    color: inherit;
}

.msn2_wrapper {position: relative;width: 100%;height: 85px;background: #087199}
.msn2_img {position: absolute;top: 10px;right: 10px;}
.msn2_img img {
    width: 32px;
    height: 32px;
}
.msn2_text {font-size: 18px; font-weight: bold;letter-spacing: -1px;color: #ffffff;position: absolute;top: 20px;left: 10px;}
.msn2_text1 {font-size: 1.5em;;font-weight: bold;letter-spacing: -2px;color: #ff0;position: absolute;top: 50px;width: 100%;text-align: center;}


@media (max-width: 768px) {
    .telegram-support {
        margin-top: 15px;
        padding: 0px;
    }
    
    .msn2_wrapper {
        gap: 10px;
    }
    
    .msn2_img {
        width: 35px;
        height: 35px;
    }
    
    .msn2_img img {
        width: 28px;
        height: 28px;
    }
    
    .msn2_text {
        font-size: 1.2em;
    }
    
    .msn2_text1 {
        font-size: 1.5em;
    }
}

/* 검색 모달 스타일 (로그인 모달과 같은 스타일) */
.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease-out;
}

.search-modal-container {
    background: #2e323c;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #444;
}

.search-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-modal-title i {
    color: var(--group_color_43);
}

.search-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s;
}

.search-close-btn:hover {
    background: #444;
    color: #fff;
}

.search-modal-content {
    padding: 20px;
}

.search-description {
    margin-bottom: 15px;
    color: #ccc;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
}

.search-form .form-group {
    margin-bottom: 10px;
}

.search-form .form-label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
}

.search-form .form-input {
    width: 100%;
    padding: 5px 15px;
    border: 1px solid #555;
    border-radius: 6px;
    background: #ffffff;
    color: #000000;
    font-size: 16px;
    transition: border-color 0.2s;
}

.search-form .form-input:focus {
    outline: none;
    border-color: var(--group_color_43);
}


.search-submit-btn {
    width: 100%;
    background: var(--group_color_43);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 0px;
}

.search-submit-btn:hover {
    background: var(--group_color_40);
}


@media (max-width: 768px) {
    .search-modal-container {
        width: 95%;
        margin: 10px;
    }
    
    .search-modal-header {
        padding: 10px;
    }
    
    .search-modal-content {
        padding: 15px;
    }
    
    .search-form .form-input {
        font-size: 16px; /* iOS 줌 방지 */
    }
    
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #444;
    position: sticky;
    top: 0;
    background: #2e323c;
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon {
    width: 30px;
    height: 30px;
    background: var(--group_color_61);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.header-icon i {
    font-size: 16px;
}

.header-title {
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-btn i {
    font-size: 18px;
}

.close-btn:hover {
    background: #444;
    color: var(--group_color_61);
}

.tab-navigation {
    display: flex;
    background: #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 10;
}

.tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    border: none;
    background: #2e323c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 14px;
}

.tab.active {
    background: #3a3d46;
    border-bottom: 2px solid white;
}

.tab:hover {
    background: #3a3d46;
}

.tab-icon {
    font-size: 16px;
}

.tab-icon i {
    font-size: 16px;
}

.form-container {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    overflow: auto; /* 스크롤 기능을 활성화 */
    /* Chrome, Safari, Opera (웹킷 기반 브라우저) */
    &::-webkit-scrollbar {
      display: none;
    }
  
    /* Firefox */
    scrollbar-width: none;
  
    /* IE, Edge (레거시) */
    -ms-overflow-style: none;    
}

.form-group {
    margin-bottom: 10px;
}

.form-label {
    display: block;
    color: white;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--group_color_61);
}

.form-input::placeholder {
    color: #888;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox {
    width: 16px;
    height: 16px;
    background: #1a1a1a;
    border: 1px solid var(--group_color_61);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: var(--group_color_61);
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label {
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.find-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.find-link:hover {
    color: var(--group_color_61);
}

.login-btn {
    width: 100%;
    padding: 10px;
    background: var(--group_color_61);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
}

.login-btn i {
    font-size: 16px;
}

.login-btn:hover {
    background: var(--group_color_53);
}

.login-btn:disabled {
    background: #666;
    cursor: not-allowed;
}

.modal-footer {
    padding: 10px;
    text-align: right;
    border-top: 1px solid #444;
}

.close-footer-btn {
    padding: 5px 20px;
    background: #1a1a1a;
    color: white;
    border: 1px solid #444;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.close-footer-btn:hover {
    background: #2e323c;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.error-message {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error-message i {
    margin-right: 5px;
    font-size: 12px;
}

.success-message {
    color: var(--group_color_61);
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.success-message i {
    margin-right: 5px;
    font-size: 12px;
}

/* 통합 필드 메시지 */
.field-message {
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 0;
    font-weight: bold;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.05);
    padding-left: 5px;
}

.field-message i {
    font-size: 12px;
    margin-right: 3px;
}

.field-message.success {
    color: var(--group_color_61);
    background: rgba(129, 199, 132, 0.1);
}

.field-message.error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.loading {
    display: none;
    text-align: center;
    color: var(--group_color_61);
    font-size: 14px;
    margin-top: 10px;
}

.loading i {
    margin-right: 8px;
    font-size: 14px;
}

.loading.show {
    display: block;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .login-modal-overlay {
        padding: 20px;
        align-items: center;
        padding-top: 20px;
    }
    
    .login-modal-container {
        width: 100%;
        max-width: 400px;
        max-height: calc(100vh - 40px);
        margin: 0 auto;
        /* 모바일에서도 스크롤바 숨기기 */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .login-modal-container::-webkit-scrollbar {
        display: none;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .tab {
        padding: 12px;
        font-size: 13px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .login-modal-overlay {
        padding: 15px;
        align-items: center;
        padding-top: 15px;
    }
    
    .login-modal-container {
        width: 100%;
        max-width: 380px;
        max-height: calc(100vh - 30px);
        margin: 0 auto;
    }
    
    .form-container {
        padding: 15px;
    }
    
    .modal-header {
        padding: 10px;
    }
}

/* 스크롤바 스타일 */
.login-modal-container::-webkit-scrollbar {
    width: 6px;
}

.login-modal-container::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.login-modal-container::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.login-modal-container::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* 비밀댓글 모달 스타일 */
.secret-comment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    animation: fadeIn 0.3s ease-out;
    padding: 20px;
    box-sizing: border-box;
}

.secret-comment-modal-overlay.show {
    display: block;
}

.secret-comment-modal-container {
    background: #2e323c;
    border-radius: 10px;
    width: 400px;
    max-width: calc(100vw - 40px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
}

.secret-comment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.secret-comment-modal-title {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.secret-comment-modal-title i {
    color: var(--group_color_61);
}

.secret-comment-close-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.secret-comment-form-group {
    margin-bottom: 20px;
}

.secret-comment-form-label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.secret-comment-form-input {
    width: 100%;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.secret-comment-form-input:focus {
    outline: none;
    border-color: var(--group_color_61);
}

.secret-comment-form-input::placeholder {
    color: #888;
}

.secret-comment-button-group {
    display: flex;
    gap: 10px;
}

.secret-comment-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
}

.secret-comment-btn.confirm {
    background: var(--group_color_61);
    color: white;
}

.secret-comment-btn.confirm:hover {
    background: var(--group_color_53);
}

.secret-comment-btn.cancel {
    background: #666;
    color: white;
}

.secret-comment-btn.cancel:hover {
    background: #555;
}

/* 비밀댓글 모달 모바일 반응형 */
@media (max-width: 768px) {image.png
    .secret-comment-modal-container {
        width: 90%;
        padding: 15px;
    }
    
    .secret-comment-modal-title {
        font-size: 16px;
    }
    
    .secret-comment-btn {
        font-size: 14px;
        padding: 8px;
    }
}

.swal2-styled.swal2-confirm { background-color: var(--group_color_28); }
.s_cmt { cursor: pointer; }
.s_cmt:hover { color: #d1ff00; }