/* ===== KEYWORK v3 - 레거시 스타일 통합 ===== */

/* ===== 기본 리셋 및 변수 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* KEYWORK 브랜드 컬러 팔레트 */
    --brand-primary: #1428A0;
    --brand-secondary: #2B4CB8;
    --brand-light: #E8EFFF;
    --brand-dark: #0F1B75;
    
    /* 기본 컬러 */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #F0F2F5;
    --bg-chat: #F8F9FA; /* 연한 회색 통일 */
    --bg-hover: #F8F9FA; /* 추가: 호버 배경색 */
    --text-primary: #1A1A1A;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --text-chat: #1A1A1A; /* 채팅 전용 일반 텍스트 */
    --border-color: #E5E7EB;
    
    /* 현장 특화 컬러 */
    --tech-blue: #3B82F6;
    --company-green: #10B981;
    --worker-orange: #F59E0B;
    --safety-red: #EF4444;
    --success: #10B981; /* 추가: 성공/확인 컬러 */
    
    /* 기본 설정 */
    --border-radius: 12px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* ===== 프로필 모달 스타일 ===== */
.profile-modal-content {
    max-width: 500px;
    width: 90%;
}

.info-section {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.info-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brand-light);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: var(--text-primary);
    min-width: 80px;
}

.info-value {
    color: var(--text-secondary);
    font-weight: 400;
}

.info-value-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.info-edit-btn {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.info-edit-btn:hover {
    background: var(--brand-dark);
}

.info-edit-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
}

.nickname-change-info {
    font-size: 12px;
    color: var(--worker-orange);
    font-weight: 500;
}

.nickname-edit-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.nickname-edit-actions {
    display: flex;
    gap: 8px;
}

.nickname-edit-actions .btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 14px;
}

.profile-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

/* ===== 실시간 채팅 애니메이션 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* 메시지 시간 실시간 업데이트 애니메이션 */
.message-time {
    transition: color 0.3s ease !important;
    cursor: pointer;
}

body {
    font-family: 'Noto Sans KR', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* ===== 메인 컨테이너 ===== */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    /* 레거시와 동일하게 전체 화면 사용 */
}

/* ===== 상단 헤더 ===== */
.header {
    background: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 100;
    flex-shrink: 0;
}

.header-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-brand h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-primary);
    letter-spacing: -0.5px;
    margin: 0;
}

.header-brand .subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.2;
    font-weight: 400;
    max-width: 280px;
}

.header-nav {
    display: flex;
    gap: 8px;
}

.btn-primary, .btn-secondary {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary:hover,
.btn-secondary:hover {
    opacity: 0.8;
}

.btn-secondary.logout {
    background: var(--safety-red);
}

/* ===== 메인 콘텐츠 영역 ===== */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: var(--bg-secondary);
    padding-bottom: 80px; /* 하단바 높이만큼 여백 */
}

/* ===== 사용자 프로필 섹션 ===== */
.user-profile-section {
    background: white;
    padding: 16px 20px;
    margin-bottom: 8px;
}

.user-profile {
    display: flex;
    align-items: center;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 15px;
    color: white;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 4px;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.badge-tech {
    background: rgba(59, 130, 246, 0.1);
    color: var(--tech-blue);
}

.welcome-message-section {
    text-align: center;
    padding: 20px;
}

.welcome-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* ===== 채널 섹션 ===== */
.channel-section {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-bottom: 100px !important; /* 하단 네비게이션 공간 확보 */
    background: var(--bg-secondary) !important;
    min-height: calc(100vh - 160px) !important;
}

/* 채팅 탭 헤더 (일상 탭과 동일한 스타일) */
.chat-header-section {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 24px !important;
    padding: 16px 20px !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.chat-header-section .header-brand {
    text-align: center !important;
}

.chat-header-section .header-brand h1 {
    color: var(--brand-primary) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 0 0 4px 0 !important;
}

.chat-header-section .header-brand .subtitle {
    color: var(--text-secondary) !important;
    font-size: 14px !important;
}

.channel-section h2 {
    padding: 15px 20px 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-chat);
    border-bottom: 1px solid var(--border-color);
    margin: 0;
}

.section-header {
    padding: 15px 20px 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-chat);
    border-bottom: 1px solid var(--border-color);
}

/* 채널 카테고리 헤더 */
.channel-category {
    padding: 12px 20px 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}

.channel-list {
    background: white;
}

.channel-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.channel-item:hover {
    background: var(--bg-tertiary);
}

.channel-item:hover .channel-icon {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: scale(1.05);
}

.channel-item:last-child {
    border-bottom: none;
}

/* ===== 채널 아이콘 - 미니멀 보더 스타일 ===== */
.channel-icon {
    width: 45px;
    height: 45px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition);
    flex-shrink: 0;
}

.channel-item.active .channel-icon {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.channel-info {
    flex: 1;
    min-width: 0;
}

.channel-info h3,
.channel-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.channel-info p,
.channel-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.channel-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.channel-activity {
    display: flex;
    align-items: center;
}

.activity-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
}

.activity-gray { background: #ddd; }
.activity-green { background: var(--company-green); }
.activity-blue { background: var(--tech-blue); }
.activity-orange { background: var(--worker-orange); }

.nav-badge {
    background: var(--text-light);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    font-weight: 600;
}

.nav-badge:not(:empty) {
    background: var(--brand-primary);
}

.channel-arrow {
    font-size: 18px;
    color: var(--text-light);
    margin-left: 8px;
}

/* 읽지 않은 메시지 뱃지 */
.unread-badge {
    display: inline-block;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    padding: 0 6px;
    margin-right: 8px;
    background: #ff4444;
    color: white;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===== 채팅 페이지 - 카카오톡식 고정 입력창 ===== */
.chat-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.chat-header {
    background: var(--brand-primary);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 60px;
    box-sizing: border-box;
}

.chat-header h3 {
    margin-left: 1rem;
    margin: 0 0 0 16px;
    font-size: 18px;
    font-weight: 600;
}

.btn-back {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chat-messages {
    flex: 1;
    padding: 16px 20px;
    padding-bottom: 100px; /* 입력창 높이 + 여유 공간 */
    overflow-y: auto;
    background: var(--bg-secondary);
    height: calc(100vh - 200px); /* 헤더(60px) + 입력창(80px) + 탭바(60px) 제외 */
    box-sizing: border-box;
}

.message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 0.5rem;
    max-width: 80%; /* 모바일 기본값 */
}

/* PC에서는 60%로 제한 */
@media (min-width: 768px) {
    .message {
        max-width: 60%;
    }
}

.message.own {
    margin-left: auto;
    background: #1428A0;
    color: white;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.7;
}

.message-text {
    word-wrap: break-word;
}

.chat-input {
    position: fixed;
    bottom: 60px; /* 탭 바 높이만큼 위로 */
    left: 0;
    right: 0;
    display: flex;
    padding: 16px 20px;
    background: white;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    height: 80px;
    box-sizing: border-box;
    align-items: center;
    z-index: 101;
}

.chat-input input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 24px;
    margin-right: 12px;
    font-size: 16px;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
    outline: none;
}

.chat-input input:focus {
    border-color: var(--brand-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(20, 40, 160, 0.1);
}

.chat-input input::placeholder {
    color: var(--text-light);
}

.chat-input button {
    padding: 14px 20px;
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 60px;
    box-shadow: 0 2px 8px rgba(20, 40, 160, 0.2);
}

.chat-input button:hover {
    background: var(--brand-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 40, 160, 0.3);
}

.chat-input button:active {
    transform: translateY(0);
}

/* 비활성화된 입력창 스타일 */
.chat-input input:disabled {
    background: #f8f9fa;
    color: #9e9e9e;
    cursor: not-allowed;
}

.chat-input button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.chat-input button:disabled:hover {
    background: #ccc;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===== 하단 네비게이션 탭 바 ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.05);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
}

.nav-item:active {
    background: rgba(20, 40, 160, 0.05);
}

.nav-icon {
    font-size: 22px;
    margin-bottom: 1px;
    transition: transform 0.3s ease;
}

.nav-label {
    font-size: 10px;
    color: #666;
    font-weight: 500;
    text-align: center;
    line-height: 1.1;
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

.nav-item.active .nav-label {
    color: var(--brand-primary);
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--brand-primary);
    border-radius: 0 0 3px 3px;
}

/* 모든 콘텐츠에 하단 여백 추가 - 시각적 박스 제거 */
.app-container {
    padding-bottom: 60px;
    background: transparent;
}

.main-content {
    padding-bottom: 60px;
    margin-bottom: 0;
    background: transparent;
}

/* 준비 중 메시지 */
.coming-soon-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 40px;
}

.coming-soon-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.coming-soon-message h2 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 24px;
}

.coming-soon-message p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== 공통 모달 베이스 스타일만 유지 ===== */
/* 구체적인 모달 스타일은 각각 auth.css, jobs.css에 정의됨 */

/* 로그인/회원가입 모달 스타일은 auth.css에 정의됨 */

/* 로그인 관련 스타일들은 auth.css로 이동됨 */

/* 약관 모달은 다른 모달들보다 위에 표시 */
#termsModal {
    z-index: 2000;
}

/* 약관 모달 탭 시스템 */
.terms-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
    gap: 0;
}

.terms-tab {
    flex: 1;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.terms-tab:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.terms-tab.active {
    background: var(--bg-primary);
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
}

.tab-content {
    display: none;
    max-height: 500px;
    overflow-y: auto;
    line-height: 1.6;
    color: var(--text-primary);
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: var(--brand-primary);
    margin: 25px 0 15px;
    font-size: 16px;
    border-left: 4px solid var(--brand-primary);
    padding-left: 15px;
}

.tab-content h4 {
    color: var(--text-primary);
    margin: 20px 0 10px;
    font-size: 14px;
    font-weight: 600;
}

.tab-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.tab-content li {
    margin: 8px 0;
    color: var(--text-primary);
}

.tab-content p {
    margin: 12px 0;
    color: var(--text-primary);
}

    margin-top: 30px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--brand-primary);
}

}

    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}

.modal-large {
    max-width: 700px;
    max-height: 85vh;
    width: 95%;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0,0,0,0.1);
    color: #000;
    transform: scale(1.1);
}

/* 모달 헤더 및 바디 스타일 */
    padding: 24px 24px 0 24px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
    position: relative;
}

    margin: 0 0 16px 0;
    color: var(--brand-primary);
    font-size: 20px;
    font-weight: 700;
    padding-right: 40px; /* 닫기 버튼 공간 확보 */
}

    padding: 24px;
    max-height: calc(85vh - 160px);
    overflow-y: auto;
}

/* 모달 푸터 */
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-width: 80px;
}

    background: #f8f9fa;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

    background: #e9ecef;
    color: var(--text-primary);
}

    background: var(--brand-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(20, 40, 160, 0.2);
}

    background: var(--brand-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 40, 160, 0.3);
}

.modal h2 {
    margin-bottom: 1.5rem;
    color: #1428A0;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal input[type="text"],
.modal input[type="password"] {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    font-size: 1rem;
}

.modal button[type="submit"],
.modal .btn-submit {
    padding: 0.75rem;
    background: #1428A0;
    color: white;
    border: none;
    border-radius: 0.25rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.modal button[type="submit"]:hover,
.modal .btn-submit:hover {
    background: #1020a0;
}

/* ===== 탭 스타일 ===== */
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
}

    flex: 1;
    padding: 0.75rem;
    background: none;
    border: none;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

    color: #1428A0;
}

    color: #1428A0;
    border-bottom-color: #1428A0;
    font-weight: bold;
}

    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

    color: #1428A0;
    text-decoration: none;
    font-weight: 500;
}

    text-decoration: underline;
}

    display: flex;
    align-items: center;
    gap: 1rem;
}

    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

    margin: 1rem 0 0.5rem;
    color: #333;
}

    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.btn-link {
    background: none;
    border: none;
    color: #1428A0;
    text-decoration: underline;
    cursor: pointer;
}

/* ===== 고급 회원가입 모달 스타일 (기존 유지) ===== */
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #1428A0 0%, #1e3a8a 100%);
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #666;
}

.progress-steps .step {
    position: relative;
    padding: 0.25rem 0;
}

.progress-steps .step.active {
    color: #1428A0;
    font-weight: bold;
}

.progress-steps .step.completed {
    color: #43b581;
}

}

.birthdate-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.birthdate-input {
    width: 100%;
    text-align: left;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
}

.birthdate-hint {
    color: #999;
    font-size: 11px;
    margin-left: 4px;
    opacity: 0.8;
}

.phone-auth-status {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    display: none;
}

.phone-auth-status.success {
    background: rgba(67, 181, 129, 0.1);
    color: #43b581;
    border: 1px solid rgba(67, 181, 129, 0.3);
}

.phone-auth-status.error {
    background: rgba(237, 66, 69, 0.1);
    color: #ed4245;
    border: 1px solid rgba(237, 66, 69, 0.3);
}

.sms-help-text {
    margin-top: 8px; 
    font-size: 12px; 
    color: #666; 
    line-height: 1.4;
    display: block;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    border: 1px solid #e0e0e0;
}

.sms-help-text strong {
    color: #1428A0;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn {
    background: #e0e0e0;
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.btn:hover {
    background: #d0d0d0;
    transform: translateY(-1px);
}

.btn:disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

.btn.primary { 
    background: #1428A0; 
    color: white; 
}

.btn.primary:hover { 
    background: #1020a0; 
}

.btn.success { 
    background: #43b581; 
    color: white; 
}

.btn.warning { 
    background: #faa61a; 
    color: white; 
}

.btn.danger { 
    background: #ed4245; 
    color: white; 
}

    max-width: 600px;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    text-align: center;
}

.user-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.user-type-option {
    padding: 24px;
    background: var(--bg-hover);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.user-type-option:hover {
    border-color: var(--brand-primary);
    background: rgba(88, 101, 242, 0.1);
}

.user-type-option.selected {
    border-color: var(--brand-primary);
    background: rgba(88, 101, 242, 0.1);
}

.user-type-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

.user-type-title {
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 16px;
}

.user-type-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.phone-verify-container {
    background: var(--bg-hover);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.phone-input-group, .nickname-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.verify-btn {
    background: var(--success);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    transition: var(--transition);
}

.verify-btn:hover {
    background: #369870;
}

.verify-btn:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
}

.verify-code-input {
    margin-top: 12px;
    animation: slideIn 0.3s ease-out;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 14px;
    padding: 12px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

.form-input::placeholder { 
    color: #999; 
    opacity: 0.7;
    font-size: 13px;
}

.phone-input-group input[type="tel"], 
.nickname-input-group input[type="text"] {
    flex: 1;
}

/* ===== 애니메이션 ===== */
    from { opacity: 0; }
    to { opacity: 1; }
}

    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 반응형 디자인 ===== */
@media (max-width: 480px) {
    .app-container {
        /* 모바일에서도 전체 화면 사용 */
    }
    
    .header {
        padding: 10px 16px;
    }
    
    .header-brand h1 {
        font-size: 16px;
    }
    
    .header-brand .subtitle {
        font-size: 10px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .channel-item {
        padding: 12px 16px;
    }
    
    .channel-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        font-size: 18px;
    }
    
    .channel-info h3,
    .channel-name {
        font-size: 14px;
    }
    
    .channel-info p,
    .channel-description {
        font-size: 12px;
    }
    
    .section-header {
        padding: 12px 16px 8px 16px;
        font-size: 13px;
    }
    
    .user-profile-section {
        padding: 12px 16px;
    }
    
    .profile-avatar {
        width: 45px;
        height: 45px;
        font-size: 16px;
        margin-right: 12px;
    }
    
    .profile-name {
        font-size: 15px;
    }
    
    /* 채팅 모바일 최적화 */
    .chat-section {
        max-width: 100%;
    }
    
    .chat-header {
        padding: 12px 16px;
        height: 56px;
    }
    
    .chat-header h3 {
        font-size: 16px;
        margin-left: 12px;
    }
    
    .btn-back {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .chat-messages {
        padding: 12px 16px;
        padding-bottom: 90px;
        height: calc(100vh - 130px);
    }
    
    .chat-input {
        padding: 12px 16px;
        height: 74px;
    }
    
    .chat-input input {
        padding: 12px 14px;
        font-size: 16px; /* iOS 줌 방지 */
        border-radius: 20px;
        margin-right: 10px;
    }
    
    .chat-input button {
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 20px;
        min-width: 50px;
    }
    
    /* 고급 회원가입 모달 반응형 */
        padding: 1.5rem;
    }
    
    .progress-steps {
        font-size: 0.7rem;
    }
    
    .progress-steps .step {
        flex: 1;
        text-align: center;
    }
    
    .age-input-group {
        justify-content: flex-start;
    }
    
    .age-input {
        width: 70px !important;
        font-size: 16px; /* iOS에서 줌 방지 */
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    .user-type-selector {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .user-type-option {
        padding: 20px;
    }
    
    .user-type-icon {
        font-size: 32px;
    }
    
    .user-type-title {
        font-size: 14px;
    }
    
    .user-type-desc {
        font-size: 11px;
    }
    
    .phone-input-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .phone-input-group input[type="tel"] {
        width: 100%;
    }
    
    .verify-btn {
        width: 100%;
        padding: 12px;
    }

    /* 로그인 모달 반응형 */
        width: 95%;
        max-width: 380px;
    }
    
        padding: 24px 20px 20px;
    }
    
        font-size: 24px;
    }
    
        font-size: 13px;
    }
    
        padding: 24px 20px;
    }
    
        padding: 14px 16px;
        font-size: 16px; /* iOS 줌 방지 */
    }
    
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* ===== PC 대응 (768px 이상) ===== */
@media (min-width: 768px) {
    /* PC에서도 전체 화면 사용 - 레거시와 동일 */
    
    .header-brand h1 {
        font-size: 20px;
    }
    
    .header-brand .subtitle {
        font-size: 12px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .channel-item {
        padding: 18px 24px;
    }
    
    .channel-icon {
        width: 48px;
        height: 48px;
        margin-right: 18px;
        font-size: 22px;
    }
    
    .channel-info h3,
    .channel-name {
        font-size: 16px;
    }
    
    .channel-info p,
    .channel-description {
        font-size: 14px;
    }
    
    .section-header {
        padding: 18px 24px 12px 24px;
        font-size: 15px;
    }
    
    .user-profile-section {
        padding: 20px 24px;
    }
    
    .profile-avatar {
        width: 55px;
        height: 55px;
        font-size: 20px;
        margin-right: 18px;
    }
    
    .profile-name {
        font-size: 18px;
    }

    /* 채팅 PC 최적화 */
    .chat-header {
        padding: 16px 24px;
        height: 64px;
    }
    
    .chat-header h3 {
        font-size: 20px;
        margin-left: 16px;
    }
    
    .btn-back {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }
    
    .chat-messages {
        padding: 20px 24px;
        padding-bottom: 110px;
        height: calc(100vh - 150px);
    }
    
    .chat-input {
        padding: 20px 24px;
        height: 86px;
    }
    
    .chat-input input {
        padding: 16px 20px;
        font-size: 16px;
        border-radius: 26px;
        margin-right: 16px;
    }
    
    .chat-input button {
        padding: 16px 24px;
        font-size: 16px;
        border-radius: 26px;
        min-width: 70px;
    }

    /* 로그인 모달 PC 스타일 */
        max-width: 450px;
    }
    
        padding: 40px 40px 28px;
    }
    
        font-size: 32px;
    }
    
        font-size: 15px;
    }
    
        padding: 40px;
    }
    
        padding: 18px 24px;
        font-size: 16px;
    }
    
        padding: 18px 28px;
        font-size: 17px;
        margin: 12px 0 24px;
    }
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 입력 검증 오류 스타일 */
.form-input.error {
    border-color: #ff4757 !important;
    box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.2) !important;
}

/* 프로필 모달 닉네임 검증 툴팁 */
.validation-tooltip {
    position: absolute !important;
    background: #ff4757 !important;
    color: white !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    top: 100% !important;
    left: 0 !important;
    margin-top: 4px !important;
    z-index: 1000 !important;
    white-space: nowrap !important;
}

   친구목록 페이지 스타일

/* 구인구직 헤더 */
   친구목록 페이지 스타일
   ======================================== */

.friends-main-section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 100px; /* 하단 네비게이션 공간 확보 */
}

/* 친구목록 헤더 */
.friends-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.friends-header .header-brand h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-primary);
    margin: 0;
}

.friends-header .subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.friends-header .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.add-friend-btn {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.add-friend-btn:hover {
    background: #1020a0;
    transform: translateY(-1px);
}

/* 내 프로필 섹션 */
.my-profile-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.my-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.profile-contact {
    font-size: 14px;
    color: var(--text-secondary);
}

.profile-edit-btn {
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.profile-edit-btn:hover {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

/* 친구 추가 옵션 */
.friend-add-options {
    margin-bottom: 20px;
}

.add-option {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 16px;
}

.add-option:hover {
    border-color: var(--brand-primary);
    background: rgba(20, 40, 160, 0.02);
}

.option-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.option-text {
    flex: 1;
}

.option-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.option-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.option-arrow {
    font-size: 18px;
    color: var(--text-secondary);
}

/* 친구 검색창 */
.friend-search-container {
    margin-bottom: 16px;
    animation: slideDown 0.3s ease-out;
}

.friend-search-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 40px 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.friend-search-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(20, 40, 160, 0.1);
}

/* 친구 목록 섹션 */
.friends-list-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.friend-count {
    color: var(--brand-primary);
    font-weight: 700;
}

/* 친구 목록 */
.friends-list {
    padding: 20px;
}

.friend-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 16px;
}

.friend-item:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 2px 8px rgba(20, 40, 160, 0.1);
}

.friend-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.friend-info {
    flex: 1;
    min-width: 0;
}

.friend-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.friend-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.friend-workplace {
    font-size: 13px;
    color: var(--text-secondary);
}

.friend-phone {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.friend-last-seen {
    font-size: 12px;
    color: var(--text-secondary);
}

.friend-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    transform: translateY(-1px);
}

.chat-btn {
    background: var(--brand-primary);
    color: white;
}

.chat-btn:hover {
    background: #1020a0;
}

.call-btn {
    background: #43b581;
    color: white;
}

.call-btn:hover {
    background: #369870;
}

.sms-btn {
    background: #faa61a;
    color: white;
}

.sms-btn:hover {
    background: #e89611;
}

.more-btn {
    background: var(--bg-hover);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.more-btn:hover {
    background: var(--text-secondary);
    color: white;
}

/* 빈 친구목록 메시지 */
.no-friends-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-friends-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.no-friends-message h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.no-friends-message p {
    font-size: 14px;
}

/* 친구 추가 모달 */
.add-friend-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.add-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.add-tab:hover {
    color: var(--brand-primary);
}

.add-tab.active {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
}

.add-tab-content {
}

.search-friend-btn {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 8px;
    transition: var(--transition);
}

.search-friend-btn:hover {
    background: #1020a0;
}

.invite-link-container {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.invite-link-container input {
    flex: 1;
    background: var(--bg-hover);
}

.copy-link-btn {
    background: var(--success);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
}

.form-help {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* 친구 메뉴 모달 */
    max-width: 300px;
}

.friend-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.friend-menu-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.friend-menu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
}

.friend-menu-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.friend-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-action-btn {
    background: white;
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-action-btn:hover {
    background: var(--bg-hover);
}

.menu-action-btn.danger {
    border-color: #ff4757;
    color: #ff4757;
}

.menu-action-btn.danger:hover {
    background: #ff4757;
    color: white;
}

/* 배지 스타일 확장 */
.status-badge.badge-user {
    background: #e9ecef;
    color: #6c757d;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .friends-main-section {
        padding: 16px;
    }
    
    .friends-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .friends-header .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .my-profile {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .friend-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .friend-actions {
        width: 100%;
        justify-content: space-around;
    }
    
    .action-btn {
        flex: 1;
        max-width: 60px;
    }
    
    .add-option {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .invite-link-container {
        flex-direction: column;
    }
}

/* ===== 기타 (More) 페이지 CSS ===== */
.more-main-section {
    flex: 1;
    padding: 0;
    background: var(--bg-secondary);
    display: none;
    min-height: 100vh;
    overflow-y: auto;
}

.more-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.more-header .header-brand h1 {
    color: var(--brand-primary);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.more-header .subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.more-header .header-actions {
    display: flex;
    gap: 12px;
}

.more-header .header-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.more-header .header-btn:hover {
    background: var(--bg-tertiary);
}

/* 사용자 프로필 요약 */
.user-profile-summary {
    padding: 20px;
    background: var(--bg-primary);
    margin-bottom: 8px;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, var(--brand-light) 0%, #ffffff 100%);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.profile-avatar-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-details {
    flex: 1;
    min-width: 0;
}

.profile-details .profile-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.profile-details .profile-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.profile-details .status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.profile-details .status-badge.badge-worker {
    background: #FEF3C7;
    color: #92400E;
}

.profile-details .status-badge.badge-company {
    background: #D1FAE5;
    color: #065F46;
}

.profile-details .status-badge.badge-admin {
    background: #DBEAFE;
    color: #1E40AF;
}

.profile-details .status-badge.badge-user {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.profile-stats {
    color: var(--text-secondary);
    font-size: 14px;
}

.profile-stats .stat-item {
    margin-right: 16px;
}

.profile-edit {
    flex-shrink: 0;
}

.edit-profile-btn {
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.edit-profile-btn:hover {
    background: var(--brand-dark);
}

/* 메뉴 리스트 */
.more-menu-list {
    padding: 0 20px 20px;
}

.menu-category {
    margin-bottom: 24px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.category-title {
    padding: 16px 20px;
    background: var(--bg-tertiary);
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-primary);
    border-bottom: 1px solid var(--border-color);
}

.menu-items {
    /* No padding, items handle their own */
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid #f8f9fa;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: var(--bg-hover);
}

.menu-item.danger:hover {
    background: #FEF2F2;
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.menu-item.danger .menu-icon {
    background: #FEE2E2;
}

.menu-text {
    flex: 1;
    min-width: 0;
}

.menu-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.menu-item.danger .menu-title {
    color: #DC2626;
}

.menu-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.menu-arrow {
    color: var(--text-light);
    font-size: 18px;
    flex-shrink: 0;
}

/* 모달 스타일 확장 */
.settings-list {
    margin: 16px 0;
}

.setting-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
}

.setting-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* 앱 정보 스타일 */
.app-info .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.app-info .info-item:last-child {
    border-bottom: none;
}

/* 도움말 스타일 */
.help-content h4 {
    color: var(--brand-primary);
    font-size: 16px;
    margin: 16px 0 8px 0;
}

.help-content h4:first-child {
    margin-top: 0;
}

.help-content ul {
    margin: 8px 0 16px 20px;
    color: var(--text-primary);
}

.help-content li {
    margin-bottom: 4px;
    line-height: 1.5;
}

/* 이용약관 스타일 */
    color: var(--brand-primary);
    font-size: 18px;
    margin: 16px 0 8px 0;
}

    margin-top: 0;
}

    color: var(--text-primary);
    font-size: 14px;
    margin: 12px 0 6px 0;
}

    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* 고객지원 스타일 */
.support-content h4 {
    color: var(--brand-primary);
    font-size: 16px;
    margin: 16px 0 8px 0;
}

.support-content h4:first-child {
    margin-top: 0;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
}

.support-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.support-btn {
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    min-width: 120px;
}

.support-btn:hover {
    background: var(--brand-dark);
}

/* 시스템 정보 스타일 */
.system-info h4 {
    color: var(--brand-primary);
    font-size: 16px;
    margin: 16px 0 8px 0;
}

.system-info h4:first-child {
    margin-top: 0;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.status-item:last-child {
    border-bottom: none;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status.online {
    background: #D1FAE5;
    color: #065F46;
}

.status.offline {
    background: #FEE2E2;
    color: #991B1B;
}

.browser-info {
    margin: 12px 0;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.browser-info div {
    margin-bottom: 4px;
    word-break: break-all;
}

.user-debug-info {
    margin: 12px 0;
    font-size: 14px;
    color: var(--text-primary);
}

.user-debug-info div {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* ===== reCAPTCHA 스타일 ===== */
#recaptcha-container {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10000 !important;
    background: var(--background-color) !important;
    padding: 20px !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4) !important;
    border: 1px solid var(--border-color) !important;
    display: none !important;
}

#recaptcha-container > div {
    margin: 0 !important;
}

/* SMS 인증 컨테이너 스타일 강화 */
.phone-verify-container {
    position: relative;
}

.sms-help-text {
    background: var(--brand-primary);
    color: white;
    padding: 12px;
    border-radius: 6px;
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
}

.sms-help-text strong {
    display: block;
    margin-bottom: 4px;
}

/* 인증 상태별 스타일 */
.verify-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.verify-btn.success {
    background: #43b581 !important;
    color: white !important;
}

.phone-input-group input:disabled,
.verify-code-input input:disabled {
    background-color: var(--input-disabled) !important;
    cursor: not-allowed;
}

/* 인증 완료 상태 스타일 */
.phone-verified {
    border: 2px solid #43b581;
    background-color: rgba(67, 181, 129, 0.1);
}

.phone-verified:disabled {
    color: var(--text-primary);
}

.user-debug-info div:last-child {
    border-bottom: none;
}

/* ===== 섹션 격리 및 초기화 ===== */
/* 모든 메인 섹션들이 기본적으로 숨겨져 있도록 함 */