/* 전역 폰트 적용 */
* {
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue",
    "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fff;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto; /* 세로 스크롤이 필요하면 auto 유지 */
}

/* 전체 페이지 래퍼 (중앙 정렬) */
.wrapper {
    width: 640px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header 스타일 */
.header {
    width: 640px;
    background: white;
    display: flex;
    flex-direction: column;
    border-bottom: 2px solid #eee;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    position: relative;

}

.logo img {
    height: 30px;
}

/* 프로필 영역 */
.profile {
    display: flex;                /* 가로 배치 */
    align-items: center;          /* 이미지와 버튼 세로 정렬 */
    gap: 10px;                    /* 이미지와 버튼 간격 */
}

.profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* 로그인/로그아웃 버튼 스타일 */
.auth-btn {
    /* 공통 스타일 */
    background-color: #ff3479; /* 메인 컬러 */
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-left: 12px; /* 이미지나 텍스트와 간격 */
}

/* 호버 시 색상 변화 */
.auth-btn:hover {
    background-color: #ff3479;
}

.header-bottom {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    /*border-top: 1px solid #ddd;*/
}

.nav {
    display: flex;
    list-style: none;
    gap: 40px; /* 네비게이션 간격 조정 */
    padding: 0;
    margin: 0;
}

.nav li {
    font-size: 16px;
}

.nav a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    padding: 10px 15px;
}

/* 활성화된 네비게이션 (밑줄 추가) */
.nav .active a {
    font-weight: bold;
    border-bottom: 3px solid black;
    padding-bottom: 10px;
}

/* Main 컨텐츠 */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 640px;
    padding: 24px 0;
}

/* Footer */
.footer {
    width: 640px;
    background: #f8f8f8;
    padding: 24px 140.844px;
    padding-top: 70px;
    font-size: 14px;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* position: absolute;  <-- 제거 */
    /* bottom: 0;           <-- 제거 */
}

/* 푸터 내부 컨테이너 */
.footer-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* 푸터 로고 */
.footer-logo {
    width: 100%;
    display: flex;
    justify-content: flex-start; /* 왼쪽 정렬 */
}

.footer-logo img {
    height: 30px;
}

/* 푸터 메인 콘텐츠 */
.footer-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    text-align: left;
}

/* Team 섹션 */
.team-section {
    flex: 1;
}

.team-section .title {
    font-size: 16px;
    font-weight: bold;
    color: #111;
    margin-bottom: 12px;
}

.team-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.team-item {
    font-size: 14px;
    color: #555;
}

/* 서비스센터 섹션 */
.service-section {
    flex: 1;
}

.service-section .title {
    font-size: 16px;
    font-weight: bold;
    color: #111;
    margin-bottom: 12px;
}

.service-section p {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin: 4px 0;
}

.inquiry-container {
    display: flex;
    justify-content: flex-start; /* 왼쪽 정렬 */
    width: 100%; /* 전체 폭 사용 */
    margin-top: 10px;
}

/* 신규 입점 문의 - 텍스트 링크 스타일 */
.inquiry-link {
    margin-top: 10px;
    font-size: 14px;
}

.inquiry-link a {
    color: #FF3479;
    text-decoration: underline;
    font-weight: bold;
}

.inquiry-link:hover {
    color: #e83670; /* 호버 시 색상 변경 */
}

/* 하단 회사 정보 */
.footer-bottom {
    width: 100%;
    text-align: left; /* 왼쪽 정렬 */
    font-size: 12px;
    color: #888;
    margin-top: 20px;
    display: flex;
    flex-direction: column; /* 여러 줄 정렬을 위해 세로 배치 */
    align-items: flex-start; /* 왼쪽 정렬 */
}

/* ---------- Error pages ---------- */
.error-page {
    width: 640px;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

.error-card {
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}


.error-code {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    color: #9aa0a6;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.error-title {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    margin-bottom: 6px;
}
.error-desc {
    color: #555;
    line-height: 1.7;
    margin-bottom: 10px;
}
.error-meta {
    color: #888;
    font-size: 12px;
}
.error-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* 버튼 톤 재사용 (+ 보조버튼) */
.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
}
.btn-primary { background-color: #ff3479; color: #fff; }
.btn-primary:hover { background-color: #e02f70; }
.btn-ghost { background: #111; color: #fff; }
.btn-ghost:hover { opacity: .9; }

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content p {
    margin: 0 0 20px;
    font-size: 16px;
}

.modal-actions {
    display: flex;
    gap: 10px;
}
.modal-actions .btn-ghost {
    background-color: #eee;
    color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.modal-actions .btn-primary {
    background-color: #ff3479;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.notification-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #EAB308;
    margin-right: 8px;
}

.notification-icon svg {
    width: 26px;
    height: 26px;
    transition: transform 0.2s;
}

.notification-icon:hover svg {
    transform: rotate(15deg);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -7px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background-color: #ff3479;
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 10px;
    border: 2px solid white;
}
.notification-badge.hidden {
    display: none;
}

/* --- Notification Popup (in Header) --- */
#header-notification-popup {
    position: absolute;
    top: 75px;
    right: 10px;
    width: 360px;
    max-height: 480px;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    transition: opacity 0.2s, transform 0.2s;
}

#header-notification-popup.hidden {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
}

#header-notification-popup .notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

#header-notification-popup .notification-header h3 {
    margin: 0;
    font-size: 16px;
}

#header-notification-popup .clear-all-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
}
#header-notification-popup .clear-all-btn:hover {
    text-decoration: underline;
}

#header-notification-popup .notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex-grow: 1;
}

#header-notification-popup .notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}
#header-notification-popup .notification-item:last-child {
    border-bottom: none;
}
#header-notification-popup .notification-item:hover {
    background-color: #f8f9fa;
}

#header-notification-popup .notification-item.unread::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: #ff3479;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

#header-notification-popup .notification-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

#header-notification-popup .notification-content .timestamp {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

#header-notification-popup .notification-empty {
    padding: 60px 20px;
    text-align: center;
    color: #999;
}

#header-notification-popup .notification-footer {
    padding: 12px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

#header-notification-popup .notification-footer a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}
#header-notification-popup .notification-footer a:hover {
    text-decoration: underline;
}