/* 내정보 슬라이드 업 패널 */
.myinfo-panel {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
    transition: bottom 0.3s ease;
    z-index: 1002;
    /* max-height: 70vh; */
}

.myinfo-panel.active {
    bottom: calc(60px + env(safe-area-inset-bottom));
}

/* 데스크탑에서 bottom-nav 높이 고려하지 않음 */
@media (min-width: 991px) {
    .myinfo-panel.active {
        bottom: 0;
    }
}

/* byvtv.ejs에서는 bottom-nav가 없으므로 bottom: 0 */
.myinfo-panel.active.no-bottom-nav {
    bottom: 0;
}

.myinfo-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.myinfo-panel-header span {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.myinfo-panel-header button {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 5px 10px;
}

.myinfo-panel-items {
    padding: 10px 0;
}

.myinfo-panel-items a {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    gap: 12px;
    cursor: pointer;
}

.myinfo-panel-items a:active {
    background-color: #f8f9fa;
}

.myinfo-panel-items a i {
    width: 24px;
    text-align: center;
    color: #666;
    font-size: 18px;
}

.myinfo-panel-items a.highlight {
    color: #E91E63;
    font-weight: bold;
}

.myinfo-panel-items a.highlight i {
    color: #E91E63;
}

/* 내정보 패널 배경 */
.myinfo-backdrop {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1001;
}

.myinfo-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* 내정보 토글 스위치 스타일 */
.myinfo-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid #eee;
}

.myinfo-toggle-item .toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #333;
}

.myinfo-toggle-item .toggle-label i {
    width: 24px;
    text-align: center;
    color: #666;
    font-size: 18px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #E91E63;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

