/* 사이드 메뉴 오버레이 */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1999;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.5);
}

/* 사이드 메뉴 */
.side-menu {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 450px;
    max-width: 100vw;
    height: 100%;
    background: #131217;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 사이드 메뉴 헤더 */
.side-menu-header {
    padding: 20px;
    position: relative;
    flex-shrink: 0;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

/* 유저 정보 섹션 */
.user-info-section {
    padding: 20px;
    margin-top: 20px;
    flex-shrink: 0;
}

.user-info-section.guest-section {
    background: #202020;
}

.user-info-section.member-section {
    background: transparent;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 비회원 상태 스타일 */
.user-info.guest {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-info.guest .user-text {
    width: 100%;
}

.button-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.button-group .btn-login {
    flex: 1;
    padding: 10px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    background: #3F3FF5;
    color: #FFF;
}

.button-group .btn-signup {
    flex: 1;
    padding: 10px 24px;
    border: 1px solid #FFF;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    background: transparent;
    color: #FFF;
}

/* 회원 정보 스타일 */
.user-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-text {
    flex-grow: 1;
}

.login-text {
    color: #FFF;
    font-size: 16px;
    font-weight: 600;
    display: block;
}

.login-sub {
    color: #999;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

.member-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.level-text {
    background: #3F3FF5;
    color: #FFF;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.member-type {
    background: #666;
    color: #FFF;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.member-type.business {
    background: #1a5490;
}

.member-type.general {
    background: #666;
}

.member-type.vip {
    background: #d4af37;
}

.username {
    color: #FFF;
    font-size: 18px;
    font-weight: 600;
}

.btn-mypage {
    border-radius: 5px;
    background: #3F3FF5;
    color: #FFF;
    font-size: 14px;
    font-weight: 700;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
}

/* 메뉴 컨텐츠 - 스크롤 가능하도록 수정 */
.side-menu-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

.menu-section {
    padding: 15px 0;
}

.menu-title {
    padding: 0 20px;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: normal;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    color: #FFF;
    text-decoration: none;
    transition: background-color 0.2s;
}

.menu-item span:first-child {
    color: #FFF;
    font-size: 14px;
    font-weight: 600;
}

.arrow {
    color: #ffffff;
    font-size: 20px;
}

.menu-divider {
    height: 1px;
    background: transparent;
    border-bottom: 1px solid #EBEBEB;
    margin: 0 25px;
}

.menu-divider.logout-divider {
    height: 8px;
    background-color: #202020;
    border: none;
    margin: 0;
}

/* 로그아웃 섹션 */
.logout-section {
    padding: 15px 0;
}

.logout-item {
    justify-content: flex-end !important;
    padding-right: 25px !important;
}

.logout-item .logout-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFF;
    font-size: 14px;
    font-weight: 600;
}

.logout-item svg {
    width: 20px;
    height: 20px;
}

/* 업체회원 전용 메뉴 스타일 */
.business-only .menu-title {
    color: #fff;
    font-weight: 600;
}