/* 다랑파이어 로그인 후 공통 좌측 사이드 네비게이션 */
.side-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    background: #0f1524;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1200;
    overflow-y: auto;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", sans-serif;
}

body.has-sidenav .side-nav {
    display: flex;
}

.side-nav-brand {
    display: block;
    padding: 22px 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    cursor: pointer;
}

.side-nav-brand .brand-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.side-nav-brand .brand-title span {
    color: #ff6b35;
}

.side-nav-brand .brand-sub {
    font-size: 11px;
    color: #6b7690;
    margin-top: 4px;
}

.side-nav-menu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    flex: 1;
}

.side-nav-menu li a,
.side-nav-menu li button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 20px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.side-nav-menu li a:hover,
.side-nav-menu li button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-left-color: #ff6b35;
}

.side-nav-menu li a.active,
.side-nav-menu li button.active {
    background: rgba(255, 107, 53, 0.12);
    color: #fff;
    border-left-color: #ff6b35;
}

.side-nav-menu .nav-icon {
    font-size: 15px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.side-nav-bottom {
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.side-nav-logout {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 107, 53, 0.5);
    border-radius: 8px;
    background: rgba(255, 107, 53, 0.1);
    color: #ff8a5c;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

.side-nav-logout:hover {
    background: rgba(255, 107, 53, 0.2);
}

@media (max-width: 968px) {
    .side-nav { display: none !important; }
}

/* 이용약관 팝업 모달 */
.terms-modal-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 8, 16, 0.75);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.terms-modal {
    width: 100%;
    max-width: 640px;
    max-height: 84vh;
    background: #131a2b;
    border: 1px solid #1f2942;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", sans-serif;
}

.terms-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
}

.terms-modal-header h2 {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.terms-modal-close {
    background: transparent;
    border: none;
    color: #8b94a8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}

.terms-modal-close:hover {
    color: #fff;
}

.terms-modal-sub {
    padding: 6px 24px 16px;
    color: #8b94a8;
    font-size: 12.5px;
    border-bottom: 1px solid #1f2942;
}

.terms-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    color: #cbd5e1;
    word-break: keep-all;
}

.terms-modal-body h3 {
    color: #ff9142;
    font-size: 13.5px;
    font-weight: 700;
    margin: 18px 0 6px;
}

.terms-modal-body h3:first-child {
    margin-top: 0;
}

.terms-modal-body p {
    font-size: 13px;
    line-height: 1.75;
    color: #b5bdd0;
    margin: 0;
}

.terms-modal-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid #1f2942;
    text-align: right;
}

.terms-modal-confirm {
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    background: #ff6b35;
    color: #fff;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    font-family: inherit;
}

.terms-modal-confirm:hover {
    background: #e0531f;
}

@media (max-width: 640px) {
    .terms-modal { max-height: 90vh; }
}
