* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* 🚀 터치 반응 속도 최적화: 클릭 지연(300ms) 제거 및 터치 하이라이트 오버헤드 축소 */
a, button, input, select, textarea, label, .nav-tab, .home-card-btn, .simple-checkbox, .fab-item, .board-item-header {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* 🚀 모바일 사파리 스크롤 최적화: 인라인 스크롤 요소에도 관성 스크롤 강제 적용 */
[style*="overflow-y: auto"], [style*="overflow-y:auto"] {
    -webkit-overflow-scrolling: touch;
}

/* 📱 모바일 터치 최적화: 버튼 및 카드 더블 탭 시 텍스트 선택(블록 지정) 방지 */
button, .nav-tab, .simple-checkbox, .home-card-btn, .board-item-header, .hot-item-card, .partner-section-title, .theme-switch {
    user-select: none;
    -webkit-user-select: none;
}

html {
    background-color: #f8fafc; /* iOS 사파리 바운스 뒷배경 색상 매칭 */
    -webkit-text-size-adjust: 100%; /* 📱 모바일 가로 모드 회전 시 폰트 크기 자동 확대(깨짐) 방지 */
    transition: background-color 0.5s ease;
}
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: #f8fafc; /* iOS 바운스 효과 시 노출되는 뒷배경 색상 매칭 */
    color: #1f2937;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    overflow-x: clip; /* 📱 사파리 먹통 버그(스크롤 잠김) 방지를 위해 hidden 대신 clip 사용 */
    width: 100%;
}

/* 모달/팝업 열림 시 iOS 및 전체 환경 배경 스크롤 완벽 차단 */
body.modal-open {
    overflow: hidden !important;
    touch-action: none !important;
}

/* 스플래시 화면 */
.splash-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; background: #f8fafc; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.4s ease, visibility 0.4s ease; opacity: 0; visibility: hidden; pointer-events: none; }
.splash-logo-icon { font-size: 5rem; animation: bounceLogo 0.8s infinite alternate ease-in-out; margin-bottom: 10px; }
.splash-title { font-size: 1.5rem; font-weight: 700; color: #475569; }
@keyframes bounceLogo { from { transform: translateY(0); } to { transform: translateY(-20px); } }
body.dark-mode .splash-screen { background: #0f172a; }
body.dark-mode .splash-title { color: #cbd5e1; }

/* 물결(Ripple) 애니메이션 효과 */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: currentColor;
    opacity: 0.25;
    pointer-events: none;
}
@keyframes ripple-animation { to { transform: scale(4); opacity: 0; } }

/* 에러 흔들림(Shake) 애니메이션 효과 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}
.error-shake { animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
input.error-shake, select.error-shake, textarea.error-shake {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}
body.dark-mode input.error-shake, body.dark-mode select.error-shake, body.dark-mode textarea.error-shake {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.1) !important;
}

/* 커스텀 유효성 검사 말풍선 (브라우저 기본 디자인 대체) */
.custom-validation-tooltip {
    position: absolute;
    background: #ef4444;
    color: white;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
    z-index: 100000;
    pointer-events: none;
    animation: tooltipPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    white-space: nowrap;
}
.custom-validation-tooltip::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 16px;
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent #ef4444 transparent;
}
@keyframes tooltipPop { 0% { opacity: 0; transform: translateY(10px) scale(0.9); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
body.dark-mode .custom-validation-tooltip { background: #fca5a5; color: #7f1d1d; box-shadow: 0 6px 16px rgba(252, 165, 165, 0.2); }
body.dark-mode .custom-validation-tooltip::after { border-color: transparent transparent #fca5a5 transparent; }

/* 은은한 토스 스타일 백그라운드 효과 */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none; /* 클릭 방해 방지 */
    background-color: #f8fafc;
    will-change: background-color;
    transition: background-color 0.4s ease, background 0.4s ease;
}
body.dark-mode .bg-effects { background-color: #0f172a; }
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    will-change: transform;
    opacity: 0.5;
}
.bg-blob.blob-1 {
    width: 400px; height: 400px; background: #bfdbfe; /* 부드러운 블루 */
    top: -100px; left: -100px; 
    animation: float1 20s infinite ease-in-out;
}
.bg-blob.blob-2 {
    width: 500px; height: 500px; background: #ddd6fe; /* 부드러운 퍼플 */
    bottom: -150px; right: -100px; 
    animation: float2 25s infinite ease-in-out alternate;
}
.bg-blob.blob-3 {
    width: 350px; height: 350px; background: #bbf7d0; /* 부드러운 민트 */
    top: 40%; left: 60%; 
    animation: float3 28s infinite ease-in-out;
}
@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(8vw, 10vh) scale(1.1); }
    66% { transform: translate(-5vw, 15vh) scale(0.95); }
}
@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-10vw, -15vh) scale(1.05); }
    66% { transform: translate(5vw, -5vh) scale(0.9); }
}
@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    33% { transform: translate(-35%, -65%) scale(1.1); }
    66% { transform: translate(-65%, -35%) scale(0.9); }
}

/* ========================================== */
/* 🏠 홈 화면 전용 배경/그라데이션 최적화 (bg-effects 활용) */
/* ========================================== */
body.home-active .bg-effects {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 50%, #f4f7ff 100%);
}
body.dark-mode.home-active .bg-effects {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #172033 100%);
}

body.home-active .bg-effects::before,
body.home-active .bg-effects::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: tossHomeFloat 8s infinite alternate ease-in-out;
    will-change: transform;
    pointer-events: none;
}
body.home-active .bg-effects::before {
    width: 60vw; height: 60vw; max-width: 600px; max-height: 600px;
    background: rgba(147, 197, 253, 0.4);
    top: -10vh; left: -10vw;
}
body.home-active .bg-effects::after {
    width: 50vw; height: 50vw; max-width: 500px; max-height: 500px;
    background: rgba(216, 180, 254, 0.4);
    bottom: -10vh; right: -10vw;
    animation-delay: -4s;
}
body.dark-mode.home-active .bg-effects::before { background: rgba(30, 58, 138, 0.4); }
body.dark-mode.home-active .bg-effects::after { background: rgba(88, 28, 135, 0.4); }

@keyframes tossHomeFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.15); }
}

/* 홈 화면 컨테이너 잔여 박스 완전 제거 */
#section-home { background: transparent !important; box-shadow: none !important; border: none !important; }

/* 레이아웃 & 상단 네비게이션 바 (GNB) */
.app-layout { display: flex; flex-direction: column; min-height: 100dvh; position: relative; z-index: 1; padding-bottom: env(safe-area-inset-bottom); }
.top-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: calc(70px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 24px 0;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: fixed;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    top: 0;
    z-index: 100;
    -webkit-transform: translateZ(0);
    transform: translateZ(0); /* 🚀 GPU 가속을 강제하여 스크롤 시 블러 재연산(렉) 방지 */
    will-change: transform, backdrop-filter; /* 🚀 블러(Blur) 배경 렌더링 렉 방지용 GPU 가속 */
    transition: background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, box-shadow 0.3s ease, border-bottom-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.top-navbar.scrolled {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    border-bottom-color: transparent;
}
body.home-active .top-navbar:not(.scrolled) {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
}
.nav-left { display: flex; align-items: center; }

/* 🚀 로고 텍스트 애니메이션 최적화 (GPU 가속, 리플로우 차단) */
.logo-title-wrapper { display: grid; align-items: center; cursor: pointer; }
.logo-step {
    grid-area: 1 / 1; font-size: 1.25rem; font-weight: 800; color: #1e2937; white-space: nowrap;
    will-change: transform, opacity; pointer-events: none; opacity: 0;
}
.logo-step.step-1 { animation: logoStep1 6s infinite cubic-bezier(0.16, 1, 0.3, 1); }
.logo-step.step-2 { animation: logoStep2 6s infinite cubic-bezier(0.16, 1, 0.3, 1); color: #3b82f6; } /* Heydio 파란색 강조 */
.logo-step.step-3 { animation: logoStep3 6s infinite cubic-bezier(0.175, 0.885, 0.32, 1.275); } /* 슬레이트 뿅 뜨는 바운스 타이밍 */

@keyframes logoStep1 {
    0% { opacity: 0; transform: translateX(-15px); }
    5%, 28% { opacity: 1; transform: translateX(0); }
    33%, 100% { opacity: 0; transform: scale(0.85); }
}
@keyframes logoStep2 {
    0%, 28% { opacity: 0; transform: scale(1.15) translateX(10px); }
    33%, 61% { opacity: 1; transform: scale(1) translateX(0); } /* 슉 줄어들며 나타남 */
    66%, 100% { opacity: 0; transform: scale(0.85); }
}
@keyframes logoStep3 {
    0%, 61% { opacity: 0; transform: scale(0.5) rotate(-15deg); }
    66%, 95% { opacity: 1; transform: scale(1) rotate(0deg); } /* 뿅 뜨며 나타남 */
    100% { opacity: 0; transform: translateY(-15px); }
}

.nav-center { display: flex; gap: 12px; align-items: center; }
.nav-group {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    border-radius: 16px;
}
.nav-group-divider { width: 1px; height: 24px; background: rgba(100, 116, 139, 0.2); margin: 0 4px; }
.nav-tab {
    padding: 6px 10px;
    background: transparent;
    border: none;
    box-shadow: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    will-change: transform;
}
.nav-tab svg { width: 22px !important; height: 22px !important; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.nav-tab:hover { background: rgba(255, 255, 255, 0.65); color: #1e293b; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }
.nav-tab.active { background: #ffffff; color: #2563eb; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1); transform: translateY(-1px); }
.nav-tab.active svg { transform: scale(1.15); color: #1d4ed8; }

#adminNavGroup[style*="block"] { display: flex !important; align-items: center; }

.admin-tab { color: #ef4444; }
.admin-tab:hover { background: rgba(254, 226, 226, 0.6); color: #b91c1c; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.05); }
.admin-tab.active { background: rgba(254, 226, 226, 0.9); color: #991b1b; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1); }
.admin-tab.active svg { color: #991b1b; }

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-auth { display: flex; align-items: center; }
.login-btn { padding: 8px 16px; border-radius: 12px; font-weight: 600; }
.nav-member-btn { padding: 8px; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }

.theme-switch-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.theme-switch { position: relative; display: inline-block; width: 48px; height: 26px; margin: 0; }
.theme-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: 0.3s; border-radius: 34px; }
.slider:before { position: absolute; content: "☀️"; display: flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: white; transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
input:checked + .slider { background-color: #3b82f6; }
input:checked + .slider:before { content: "🌙"; transform: translateX(22px) rotate(360deg); }

.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; color: #475569; cursor: pointer; padding: 4px; }

.main-content { flex: 1; display: flex; flex-direction: column; width: 100%; transition: filter 0.3s; padding-top: calc(70px + env(safe-area-inset-top)); }
.content-wrapper { padding: 40px 20px; max-width: 1680px; margin: 0 auto; width: 100%; box-sizing: border-box; }

h2 {
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}
.container {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 40px 32px;
    border-radius: 28px;
    box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.05), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0); /* 🚀 스크롤 및 애니메이션 부하 완화 */
    will-change: transform, backdrop-filter; /* 🚀 스크롤 시 블러 재연산으로 인한 뚝뚝 끊김 방지 */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
}
.container:hover {
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.08), inset 0 1px 2px rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.8);
}
.notice {
    color: #ef4444;
    font-size: 13px;
    text-align: right;
    margin-bottom: 15px;
    font-weight: 500;
}
.form-group {
    margin-bottom: 20px;
}
.time-group, .info-group {
    display: flex;
    gap: 20px;
}
.time-group .form-group, .info-group .form-group {
    flex: 1;
    margin-bottom: 0;
}
.info-group, .time-group { margin-bottom: 20px; }

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4b5563;
    font-size: 0.95rem;
}
.required::after {
    content: " *";
    color: #ef4444;
}
/* 연락처(tel)와 가격(number) 입력란 스타일 통일 및 개선 */
input[type="text"], input[type="password"], input[type="date"], input[type="time"], input[type="tel"], input[type="number"], select, textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    background-color: #f8fafc;
    color: #1e293b;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="date"]:focus, input[type="time"]:focus, input[type="tel"]:focus, input[type="number"]:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #4f46e5;
    background-color: #ffffff;
    box-shadow: 0 0 0 5px rgba(79, 70, 229, 0.25);
    transform: translateY(-2px);
}
textarea {
    resize: vertical;
}
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); /* 초소형 화면 가로 넘침 방지 */
    gap: 12px;
}
.simple-checkbox {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    padding: 20px 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px -2px rgba(0,0,0,0.02), inset 0 1px 1px rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, background-color 0.2s;
    text-align: left;
}
.simple-checkbox:hover {
    background-color: rgba(255, 255, 255, 0.65);
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.simple-checkbox input[type="checkbox"] {
    display: none;
}
.simple-checkbox:has(input:checked) {
    border-color: #3b82f6;
    background-color: rgba(239, 246, 255, 0.6);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2), 0 8px 20px -4px rgba(59, 130, 246, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}
.simple-checkbox:has(input:checked)::after {
    content: '✅';
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.2rem;
}
button.submit-btn {
    width: 100%;
    padding: 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 20px;
    font-weight: 700;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
    box-shadow: 0 8px 20px -6px rgba(59, 130, 246, 0.3);
}
button.submit-btn:hover {
    background: #2563eb;
    box-shadow: 0 12px 24px -6px rgba(59, 130, 246, 0.4);
}
button.submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px -1px rgba(59, 130, 246, 0.3);
}
.submit-btn:disabled, .action-btn:disabled, .primary:disabled {
    background: #94a3b8 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
}
.table-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch; /* 📱 iOS 부드러운 관성 스크롤 적용 */
    width: 100%;
    box-sizing: border-box;
}
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
    font-size: 0.9rem;
    table-layout: fixed;
}
th, td {
    padding: 14px 12px;
    box-sizing: border-box; /* 🐛 PC 테이블 가로 스크롤(오버플로우)의 근본 원인 해결! */
    text-align: center;
    border-bottom: 1px solid #e5e5eb;
    word-break: break-word;
}
th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #475569;
    word-break: keep-all;
}
th:first-child { border-top-left-radius: 8px; }
th:last-child { border-top-right-radius: 8px; }
tbody tr { transition: background-color 0.2s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
tbody tr:hover { 
    background-color: #f8fafc; 
    transform: scale(1.01); 
}
tbody tr:last-child td { border-bottom: none; }

.status-pending { color: #d97706; font-weight: 600; background: #fef3c7; padding: 4px 8px; border-radius: 6px; display: inline-block; font-size: 0.85rem;}
.status-approved { color: #059669; font-weight: 600; background: #d1fae5; padding: 4px 8px; border-radius: 6px; display: inline-block; font-size: 0.85rem;}
.status-rejected { color: #dc2626; font-weight: 600; background: #fee2e2; padding: 4px 8px; border-radius: 6px; display: inline-block; font-size: 0.85rem;}

/* 이용 신청 폼 섹션 디자인 (직관성 강화) */
.form-section {
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 24px 22px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}
.form-section-title {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.15rem;
    color: #1e293b;
    border-bottom: 1.5px dashed #e2e8f0;
    padding-bottom: 16px;
    display: flex;
    align-items: center;
}

/* 대여 현황 테이블 호버 시 스크롤바 생김 방지 */
#statusTable tr:hover { transform: none !important; }
#statusTable .action-btn:hover { transform: scale(1) !important; }

/* 이용 신청 폼 이분할 레이아웃 */
.rental-form-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.form-col-left, .form-col-right {
    min-width: 0; /* ✨ CSS Grid 영역 무한 확장(Blowout) 방지 핵심 속성 */
    width: 100%;
}
@media (min-width: 1000px) {
    .rental-form-layout {
        grid-template-columns: 1.55fr 1fr;
        align-items: start;
    }
    .form-col-right {
        position: sticky;
        top: calc(90px + env(safe-area-inset-top));
        display: flex;
        flex-direction: column;
    }
    .form-col-right-fixed {
        flex-shrink: 0;
        padding-top: 8px;
    }
    .form-col-right .time-group {
        flex-direction: column;
        gap: 16px;
    }
}

/* 선택 항목 요약 박스 */
.selected-summary-box {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

@media (max-width: 600px) {
    .form-section { padding: 20px 14px; border-radius: 20px; margin-bottom: 20px; }
    .form-section-title { font-size: 1.05rem; margin-bottom: 16px; padding-bottom: 12px; }
}

/* 홈 화면 컨텐츠 래퍼 */
.home-content-wrapper {
    text-align: center;
    padding: 60px 20px;
}

/* 홈(메인) 화면 랜딩 스타일 */
.home-welcome-title { 
    font-size: 2.6rem; color: #1e293b; margin-top: 20px; margin-bottom: 20px; 
    font-weight: 800; letter-spacing: -0.5px; 
    line-height: 1.3;
    opacity: 0;
    animation: welcomePop 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.brand-highlight { color: #3b82f6; }
@keyframes welcomePop {
    0% { opacity: 0; transform: translateY(-20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.wave-bear {
    display: inline-block;
    transform-origin: bottom center;
    animation: waveBear 2.5s infinite;
}
@keyframes waveBear {
    0%, 60%, 100% { transform: rotate(0deg); }
    10%, 30%, 50% { transform: rotate(14deg); }
    20%, 40% { transform: rotate(-8deg); }
}
.home-welcome-desc { color: #64748b; font-size: 1.15rem; margin-bottom: 60px; line-height: 1.6; word-break: keep-all; }
.kvp-highlight { display: inline-block; margin-top: 16px; padding: 10px 22px; background: #eff6ff; color: #2563eb; border-radius: 100px; font-weight: 700; font-size: 1.05rem; border: 1px solid #bfdbfe; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1); }
.home-btn-group { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.home-card-btn {
    flex: 1; min-width: 300px; max-width: 420px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    padding: 60px 30px; cursor: pointer; text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column; align-items: center; gap: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}
.home-card-btn:hover {
    transform: translateY(-8px); background: rgba(255, 255, 255, 0.75); border-color: rgba(255, 255, 255, 1); box-shadow: 0 16px 32px -8px rgba(59, 130, 246, 0.2), inset 0 1px 2px rgba(255, 255, 255, 1);
}
.home-card-btn .icon { font-size: 4.5rem; transition: transform 0.3s; }
.home-card-btn:hover .icon { transform: scale(1.1) rotate(5deg); }
.home-card-btn .title { font-size: 1.6rem; font-weight: 700; color: #1e293b; }
.home-card-btn .desc { font-size: 1.15rem; color: #64748b; word-break: keep-all; line-height: 1.5; }

@media (max-width: 600px) {
    .home-content-wrapper { padding: 24px 16px; }
    .home-welcome-title { font-size: 1.5rem; margin-top: 10px; margin-bottom: 12px; }
    .home-welcome-desc { font-size: 0.95rem; margin-bottom: 30px; }
    .kvp-highlight { font-size: 0.85rem; padding: 8px 16px; margin-top: 12px; }
    .home-btn-group { display: flex; flex-direction: column; gap: 12px; }
    
    .home-card-btn { 
        padding: 18px 16px; 
        width: 100%; 
        max-width: 100%; 
        box-sizing: border-box; 
        display: grid;
        grid-template-columns: 52px 1fr;
        grid-template-areas: 
            "icon title"
            "icon desc";
        column-gap: 16px;
        row-gap: 4px;
        text-align: left;
        align-items: center;
        border-radius: 20px;
    }
    .home-card-btn .icon { 
        grid-area: icon; 
        font-size: 1rem; /* 🐛 PC용 4.5rem 폰트 사이즈가 공간을 차지하던 버그 리셋 */
        line-height: 1;
        background: #eff6ff; 
        color: #3b82f6; 
        border-radius: 14px; 
        width: 52px; 
        height: 52px; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
    }
    .home-card-btn .icon svg { width: 26px !important; height: 26px !important; }
    .home-card-btn .title { grid-area: title; font-size: 1.1rem; align-self: flex-end; padding-top: 2px; margin: 0; }
    .home-card-btn .desc { grid-area: desc; font-size: 0.85rem; align-self: flex-start; line-height: 1.35; color: #64748b; margin-top: -2px; }
    .home-card-btn .desc br { display: none; } /* 📱 모바일에서는 어색한 줄바꿈 무시 */
    
    body.dark-mode .home-card-btn .icon { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
}

/* 홈 화면 공지사항 배너 스타일 */
.home-notice-container { background: #eff6ff; border: 1.5px solid #bfdbfe; border-radius: 16px; padding: 14px 20px; margin: 0 auto 30px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: all 0.2s; text-align: left; max-width: 600px; animation: noticeGlow 2s infinite alternate; }
@keyframes noticeGlow {
    from { box-shadow: 0 0 5px rgba(59, 130, 246, 0.1), inset 0 0 2px rgba(255, 255, 255, 0.5); }
    to { box-shadow: 0 0 15px rgba(59, 130, 246, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.8); }
}
.home-notice-container:hover { background: #dbeafe; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3); animation-play-state: paused; }
.home-notice-container .notice-badge { background: #3b82f6; color: white; font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.home-notice-container .notice-text { flex: 1; font-size: 0.95rem; font-weight: 600; color: #1e40af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.home-notice-container .notice-more { font-size: 0.8rem; font-weight: 600; color: #60a5fa; white-space: nowrap; }

/* 이용 안내 리스트 공지 강조 */
.guide-item.is-notice { border: 2px solid #93c5fd; background: #f8fafc; }
body.dark-mode .guide-item.is-notice { border-color: #3b82f6; background: rgba(30, 58, 138, 0.2); }

body.dark-mode .home-notice-container { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.3); animation: noticeGlowDark 2s infinite alternate; }
@keyframes noticeGlowDark {
    from { box-shadow: 0 0 5px rgba(96, 165, 250, 0.1), inset 0 0 2px rgba(255, 255, 255, 0.05); }
    to { box-shadow: 0 0 15px rgba(96, 165, 250, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1); }
}
body.dark-mode .home-notice-container:hover { background: rgba(59, 130, 246, 0.2); animation-play-state: paused; box-shadow: 0 6px 16px rgba(96, 165, 250, 0.4); }
body.dark-mode .home-notice-container .notice-text { color: #93c5fd; }
body.dark-mode .home-notice-container .notice-more { color: #3b82f6; }

/* 채팅 버블 스타일 */
.chat-bubble { padding: 10px 14px; border-radius: 12px; font-size: 0.95rem; line-height: 1.4; word-break: break-word; }
.chat-me { align-self: flex-end; background-color: #3b82f6; color: white; border-bottom-right-radius: 2px; }
.chat-other { align-self: flex-start; background-color: #ffffff; color: #1f2937; border: 1px solid #e5e7eb; border-bottom-left-radius: 2px; }
.chat-sender { font-size: 0.75rem; color: #6b7280; margin-bottom: 4px; }

/* 채팅창 계좌 안내 카드 UI */
.account-card { margin: -10px -14px; min-width: 220px; border-radius: inherit; overflow: hidden; }
.account-header { padding: 10px 14px; font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.chat-me .account-header { background: rgba(255, 255, 255, 0.15); border-bottom: 1px solid rgba(255, 255, 255, 0.2); color: #ffffff; }
.chat-other .account-header { background: #f1f5f9; border-bottom: 1px solid #e2e8f0; color: #475569; }
.account-body { padding: 16px 14px; }
.account-bank { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; letter-spacing: 0.5px; cursor: pointer; transition: opacity 0.2s, transform 0.1s; display: inline-block; }
.account-bank:hover { opacity: 0.7; }
.account-bank:active { opacity: 0.5; transform: scale(0.98); }
.account-name { font-size: 0.85rem; opacity: 0.9; }

/* 채팅 입력창 강제 시인성 확보 */
.chat-icon-btn:hover { transform: scale(1.1); filter: brightness(1.1); }
.chat-icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 채팅 입력창 포커스 CSS 통합 처리 (JS 인라인 렌더링 부하 억제) */
.chat-input-wrapper { background: #f8fafc; border: 1.5px solid #e2e8f0; transition: border-color 0.2s, background 0.2s; }
.chat-input-wrapper:focus-within { border-color: #3b82f6 !important; background: #ffffff !important; }

/* 커스텀 스크롤바 (채팅창) */
#chatMessages::-webkit-scrollbar { width: 6px; } #chatMessages::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.action-btn {
    padding: 6px 10px;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 3px 2px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.action-btn:hover { 
    opacity: 1; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.15); 
    filter: brightness(1.1); 
}
.action-btn:active { transform: scale(0.95); }

.approve-btn { background-color: #10b981; }
.reject-btn { background-color: #ef4444; }
.edit-btn { background-color: #f59e0b; }
.view-btn { background-color: #64748b; }
.delete-btn { background-color: #94a3b8; }

.btn-divider {
    border-top: 1px dashed #cbd5e1;
    margin: 6px 0;
    width: 100%;
}

/* 게시판 스타일 (목록형 아코디언 UI) */
.board-list { border-top: 2px solid #1e293b; margin-top: 10px; }
.board-header-row { display: flex; padding: 12px 10px; border-bottom: 1px solid #cbd5e1; background: #f8fafc; font-weight: 600; color: #475569; font-size: 0.9rem; text-align: center; }
.board-col-no { width: 50px; flex-shrink: 0; }
.board-col-status { width: 80px; flex-shrink: 0; }
.board-col-title { flex: 1; text-align: center; }
.board-col-author { width: 100px; flex-shrink: 0; }
.board-col-date { width: 100px; flex-shrink: 0; }

.board-item { border-bottom: 1px solid #e2e8f0; }
.board-item-header { display: flex; padding: 20px 10px; align-items: center; cursor: pointer; transition: background 0.2s; text-align: center; font-size: 0.95rem; color: #334155; }
.board-item-header:hover { background: #f1f5f9; }
.board-item-title { flex: 1; text-align: left; padding: 0 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #1e293b; }

.board-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.badge-wait { background: #f1f5f9; color: #64748b; border: 1px solid #cbd5e1; }
.badge-done { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.badge-job { background: #fef3c7; color: #d97706; border: 1px solid #fde68a; }
.badge-seek { background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; }
.badge-free { background: #f3e8ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.badge-qna { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

.board-item-body { background: #f8fafc; padding: 30px 24px; border-bottom: 1px solid #e2e8f0; display: none; }
.board-post-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; border-bottom: 1px dashed #cbd5e1; padding-bottom: 12px; }
.board-post-content { font-size: 1rem; color: #334155; line-height: 1.6; white-space: pre-wrap; margin-bottom: 20px; word-break: break-word; }

.comment-section { background: #f8fafc; border-radius: 12px; padding: 16px; margin-top: 16px; border: 1px solid #f1f5f9; }
.comment-item { margin-bottom: 12px; font-size: 0.95rem; border-bottom: 1px dashed #e2e8f0; padding-bottom: 12px; }
.comment-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.comment-author { font-weight: 700; color: #3b82f6; margin-right: 8px; font-size: 0.9rem; }
.comment-text { color: #334155; line-height: 1.5; }
.comment-date { font-size: 0.75rem; color: #94a3b8; margin-left: 8px; }

/* 장비 배지 스타일 */
.equip-badge { display: inline-block; padding: 2px 6px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; margin-left: 6px; vertical-align: text-top; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.badge-popular { background-color: #fee2e2; color: #ef4444; border: 1px solid #fca5a5; }
.badge-recommend { background-color: #fef3c7; color: #d97706; border: 1px solid #fcd34d; }
.badge-service { background-color: #e0e7ff; color: #4f46e5; border: 1px solid #c7d2fe; }

body.dark-mode .badge-popular { background-color: rgba(239, 68, 68, 0.2); color: #fca5a5; border-color: rgba(239, 68, 68, 0.4); }
body.dark-mode .badge-recommend { background-color: rgba(217, 119, 6, 0.2); color: #fcd34d; border-color: rgba(217, 119, 6, 0.4); }
body.dark-mode .badge-service { background-color: rgba(79, 70, 229, 0.2); color: #a5b4fc; border-color: rgba(79, 70, 229, 0.4); }

/* 장비 가격 표시 태그 (직관성 강화) */
.equip-price-tag {
    display: inline-block;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #ffedd5;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(234, 88, 12, 0.05);
    align-self: flex-start;
}
body.dark-mode .equip-price-tag {
    background: rgba(234, 88, 12, 0.15);
    border-color: rgba(234, 88, 12, 0.3);
    color: #fb923c;
}

.host-name-badge { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; margin-right: 6px; vertical-align: middle; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.badge-heyroo { background: #3b82f6; color: #ffffff; border: 1px solid #2563eb; }
.badge-partner { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }

body.dark-mode .badge-heyroo { background: #2563eb; color: #ffffff; border-color: #1d4ed8; }
body.dark-mode .badge-partner { background: rgba(14, 165, 233, 0.2); color: #7dd3fc; border-color: rgba(14, 165, 233, 0.3); }

/* 공식 인증 배지 */
.official-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #e0f2fe;
    color: #0ea5e9;
    border: 1px solid #bae6fd;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    vertical-align: middle;
    margin-left: 6px;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.official-badge svg { width: 10px; height: 10px; stroke-width: 3; }
body.dark-mode .official-badge {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border-color: rgba(14, 165, 233, 0.3);
}
.selected-item-chip {
    background: #e2e8f0;
    padding: 4px 10px;
    border-radius: 8px;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 500;
}
.selected-item-chip.clickable { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: background-color 0.2s, color 0.2s; word-break: break-word; }
.selected-item-chip.clickable:hover { background: #cbd5e1; color: #ef4444; }

/* 관리자 화면 미리보기 박스 */
.preview-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: rgba(241, 245, 249, 0.6); padding: 8px 12px; border-radius: 12px; border: 1px dashed #cbd5e1; }
body.dark-mode .preview-box { background: rgba(30, 41, 59, 0.6); border-color: #475569; }

/* 파트너사 전용 좌측 하단 공지 팝업 */
.corner-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 100%;
    max-width: 360px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.6);
    padding: 20px;
    z-index: 1001;
    transform-origin: bottom left;
    animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.corner-notice-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #94a3b8;
    padding: 4px;
    line-height: 1;
    transition: transform 0.2s, color 0.2s;
}
.corner-notice-close:hover { color: #ef4444; transform: scale(1.1); }
body.dark-mode .corner-notice { background: rgba(30, 41, 59, 0.85); border-color: #334155; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
body.dark-mode .corner-notice-close { color: #64748b; }
body.dark-mode .corner-notice-close:hover { color: #fca5a5; }

/* 핫 아이템 가로 스와이프 영역 */
.hot-scroll-wrapper { position: relative; display: flex; align-items: center; width: 100%; min-width: 0; }
.hot-items-scroll { display: flex; overflow-x: auto; overflow-y: hidden; gap: 12px; padding-top: 8px; padding-bottom: 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-behavior: auto !important; }
.hot-items-scroll::-webkit-scrollbar { display: none; }
.hot-item-card { flex: 0 0 auto; width: 130px; background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 16px; padding: 14px 14px; cursor: pointer; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 4px 16px rgba(0,0,0,0.03), inset 0 1px 1px rgba(255, 255, 255, 0.8); }
.hot-item-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px -4px rgba(0,0,0,0.08); border-color: #bfdbfe; }
.hot-item-card:active { transform: scale(0.98); }
.hot-item-badge { align-self: flex-start; margin-left: 0; padding: 3px 6px; font-size: 0.7rem; }
.hot-item-provider { font-size: 0.75rem; color: #64748b; margin-top: 2px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-item-title { font-weight: 800; font-size: 0.95rem; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; letter-spacing: -0.3px; }
.hot-item-price { font-size: 0.85rem; color: #ea580c; font-weight: 700; margin-top: auto; padding-top: 4px; }
body.dark-mode .hot-item-card { background: rgba(30, 41, 59, 0.4); border-color: rgba(255, 255, 255, 0.05); }
body.dark-mode .hot-item-card:hover { background: rgba(30, 41, 59, 0.6); border-color: rgba(96, 165, 250, 0.4); }

.partner-section { border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 16px; overflow: hidden; margin-bottom: 12px; transition: box-shadow 0.2s; background: rgba(255, 255, 255, 0.35); box-shadow: 0 4px 16px rgba(0,0,0,0.02), inset 0 1px 1px rgba(255, 255, 255, 0.8); }
.partner-section-title { padding: 16px 20px; background: rgba(255, 255, 255, 0.4); font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background-color 0.2s; color: #1e293b; }
.partner-section-title:hover { background: #f1f5f9; }

/* ========================================== */
/* 📊 관리자 대시보드 통계 카드 스타일 (글로벌 렌더링 최적화) */
/* ========================================== */
.admin-stat-card {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 24px; padding: 24px;
    display: flex; flex-direction: column; gap: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.02), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    transition: transform 0.2s, box-shadow 0.2s;
}
.admin-stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.05); }
.admin-stat-icon {
    width: 48px; height: 48px; border-radius: 14px; margin-bottom: 8px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.admin-stat-icon svg { width: 24px; height: 24px; }
.icon-blue { background: #e0f2fe; color: #0284c7; }
.icon-yellow { background: #fef3c7; color: #d97706; }
.icon-purple { background: #f3e8ff; color: #9333ea; }
.icon-green { background: #d1fae5; color: #059669; }
.admin-stat-title { font-size: 0.95rem; font-weight: 600; color: #64748b; }
.admin-stat-value { font-size: 1.8rem; font-weight: 800; color: #1e293b; }

/* 파트너사 소개 스타일 */
.intro-card { background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 20px; padding: 28px; margin-bottom: 20px; box-shadow: 0 8px 24px -4px rgba(0,0,0,0.03), inset 0 1px 1px rgba(255, 255, 255, 0.8); }
.intro-admin { border-color: rgba(191, 219, 254, 0.8); background: rgba(239, 246, 255, 0.45); }
.intro-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.intro-title { font-size: 1.2rem; font-weight: 700; color: #1e40af; }
.intro-partner .intro-title { color: #0369a1; }
.intro-content { font-size: 1rem; color: #374151; line-height: 1.6; white-space: pre-wrap; }

.intro-items-section { margin-top: 20px; border-top: 1px dashed #e2e8f0; padding-top: 16px; }
.intro-items-header { font-weight: 600; color: #475569; font-size: 0.95rem; margin-bottom: 12px; }
.intro-items-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.intro-item-box { background: #f8fafc; border: 1px solid #e2e8f0; padding: 12px; border-radius: 12px; transition: transform 0.2s, box-shadow 0.2s; }
.intro-item-box:hover { transform: translateY(-2px); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.intro-item-title { font-weight: 600; color: #1e293b; font-size: 0.95rem; }
.intro-item-desc { color: #64748b; font-size: 0.8rem; margin-top: 4px; line-height: 1.3; }
.intro-item-price { color: #ea580c; font-size: 0.85rem; font-weight: 700; margin-top: 6px; }

/* 상세 보기 링크 버튼 */
.detail-link-btn { margin-left: 6px; font-size: 0.75rem; background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; border-radius: 6px; padding: 2px 8px; cursor: pointer; font-weight: 600; transition: all 0.2s; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.detail-link-btn:hover { background: #dbeafe; transform: translateY(-1px); }
.detail-link-btn:active { transform: translateY(0); }

body.dark-mode .detail-link-btn { background: rgba(59, 130, 246, 0.2); color: #93c5fd; border-color: rgba(59, 130, 246, 0.4); }
body.dark-mode .detail-link-btn:hover { background: rgba(59, 130, 246, 0.3); }

/* 탭 뱃지 스타일 */
.tab-badge {
    display: none;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    margin-left: 4px;
    vertical-align: middle;
    box-shadow: 0 0 0 2px #e2e8f0;
    animation: bounceIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes bounceIn { 0% { transform: scale(0); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }

.section-container { display: none; }
.section-container.active { display: block; animation: sectionFadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; will-change: transform, opacity; }
@keyframes sectionFadeIn { from { opacity: 0; transform: translateY(15px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* 이용 안내 스타일 */
.guide-item { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 12px rgba(0,0,0,0.02); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s; line-height: 1.6; }
.guide-item:hover { transform: translateY(-2px); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08); }
.guide-text { flex: 1; color: #374151; font-size: 1.05rem; white-space: pre-wrap; word-break: keep-all; font-weight: 500; }
.guide-actions { margin-left: 12px; flex-shrink: 0; }

/* 아바타 선택 버튼 스타일 */
.avatar-btn { font-size: 2.2rem; background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 12px; padding: 10px; cursor: pointer; transition: transform 0.2s, border-color 0.2s, background 0.2s; display: flex; align-items: center; justify-content: center; }
.avatar-btn:hover { transform: scale(1.1); border-color: #3b82f6; background: #eff6ff; }
body.dark-mode .avatar-btn { background: #1e293b; border-color: #334155; }
body.dark-mode .avatar-btn:hover { border-color: #60a5fa; background: #0f172a; }

/* 모달 스타일 */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; box-sizing: border-box; }
@keyframes modalFadeIn { from { opacity: 0; transform: translateY(15px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-content { background: #ffffff; padding: 32px 28px; border-radius: 20px; width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px; animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0,0,0,0.05); will-change: transform, opacity; -webkit-overflow-scrolling: touch; }
.modal-content h3 { margin-top: 0; margin-bottom: 8px; font-size: 1.1rem; color: #1f2937; }
.modal-content input, .modal-content select, .modal-content textarea { width: 100%; padding: 14px 16px; border: 1.5px solid #e2e8f0; border-radius: 12px; box-sizing: border-box; font-family: inherit; font-size: 1rem; background: #f8fafc; transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; }
.modal-content input:focus, .modal-content select:focus, .modal-content textarea:focus { outline: none; border-color: #3b82f6; background: #ffffff; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); }
.modal-content .modal-btns { display: flex; gap: 10px; margin-top: 10px; }
.modal-content button { flex: 1; padding: 14px; border: none; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 0.95rem; transition: transform 0.2s, background-color 0.2s; }
.modal-content button:active { transform: scale(0.97); }
.modal-content button.primary { background: #3b82f6; color: white; }
.modal-content button.primary:hover { background: #2563eb; }
.modal-content button.secondary { background: #f1f5f9; color: #475569; }
.modal-content button.secondary:hover { background: #e2e8f0; }

/* 🖥️ PC 화면 전용: 페이스북 메신저 형태 채팅 UI (우측 하단 팝업) */
@media (min-width: 601px) {
    #chatModal {
        align-items: flex-end;
        justify-content: flex-end;
        padding-right: 30px;
        padding-bottom: 90px; /* 플로팅 액션 버튼을 가리지 않도록 띄움 */
        background: transparent; /* 딤(Dim) 배경 투명 처리 */
        pointer-events: none; /* 뒤쪽 배경 클릭을 통과시켜 메인 화면 조작 가능하게 함 */
    }
    .chat-modal-content {
        width: 400px !important;
        max-width: 400px !important;
        height: 65vh !important;
        min-height: 500px !important;
        max-height: 700px !important;
        border-radius: 20px !important;
        box-shadow: 0 12px 36px rgba(0,0,0,0.15) !important;
        pointer-events: auto; /* 채팅창 요소는 다시 조작 가능하게 복구 */
        transform-origin: bottom right;
        animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    }
}

.equipment-section-title { font-size: 0.9rem; font-weight: 600; color: #6b7280; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }

/* 드래그 앤 드롭 순서 변경 스타일 */
.draggable-item { padding: 12px 16px; margin-bottom: 8px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; cursor: grab; display: flex; align-items: center; gap: 12px; font-weight: 600; color: #374151; transition: background 0.2s, box-shadow 0.2s; }
.draggable-item:active { cursor: grabbing; background: #eff6ff; box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2); }
.draggable-item.dragging { opacity: 0.5; }
body.dark-mode .draggable-item { background: #1e293b; border-color: #334155; color: #f1f5f9; }
body.dark-mode .draggable-item:active { background: #0f172a; }

/* 달력 래퍼 스타일 */
.calendar-wrapper { background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: 0 8px 24px rgba(0,0,0,0.03), inset 0 1px 1px rgba(255, 255, 255, 0.8); max-width: 800px; margin: 0 auto 20px auto; padding: 20px; border-radius: 24px; }
body.dark-mode .calendar-wrapper { background: rgba(30, 41, 59, 0.4); border-color: rgba(255, 255, 255, 0.05); box-shadow: none; }
/* 달력 다크모드 대응 */
body.dark-mode .fc { color: #f1f5f9; }
body.dark-mode .fc .fc-button-primary { background-color: #3b82f6; border-color: #2563eb; }
body.dark-mode .fc .fc-button-primary:not(:disabled):active, body.dark-mode .fc .fc-button-primary:not(:disabled).fc-button-active { background-color: #1d4ed8; border-color: #1e3a8a; }
body.dark-mode .fc-theme-standard td, body.dark-mode .fc-theme-standard th { border-color: #334155; }
body.dark-mode .fc-theme-standard .fc-scrollgrid { border-color: #334155; }
body.dark-mode .fc-col-header-cell { background-color: #0f172a; }
body.dark-mode .fc-daygrid-day { background-color: #1e293b; }
body.dark-mode .fc-daygrid-day.fc-day-today { background-color: rgba(59, 130, 246, 0.1); }

/* 달력 내부 텍스트 및 버튼 크기 다이어트 */
.fc-toolbar-title { font-size: 1.25rem !important; font-weight: 700 !important; }
.fc-button { padding: 4px 10px !important; font-size: 0.9rem !important; }

/* 달력 주말(토, 일) 텍스트 색상 변경 */
.fc-day-sun a.fc-col-header-cell-cushion, .fc-day-sun a.fc-daygrid-day-number { color: #ef4444 !important; }
.fc-day-sat a.fc-col-header-cell-cushion, .fc-day-sat a.fc-daygrid-day-number { color: #3b82f6 !important; }
.fc-theme-standard .fc-daygrid-day.fc-day-today { background-color: #eff6ff !important; box-shadow: inset 0 0 0 1.5px #93c5fd !important; }
body.dark-mode .fc-day-sun a.fc-col-header-cell-cushion, body.dark-mode .fc-day-sun a.fc-daygrid-day-number { color: #f87171 !important; }
body.dark-mode .fc-day-sat a.fc-col-header-cell-cushion, body.dark-mode .fc-day-sat a.fc-daygrid-day-number { color: #60a5fa !important; }

/* 다크 모드 스타일 오버라이드 */
html.dark-mode { background-color: #0f172a; }
body.dark-mode { color: #f1f5f9; background-color: #0f172a; }
body.dark-mode ::-webkit-scrollbar-thumb { background-color: #475569; }
body.dark-mode ::-webkit-scrollbar-thumb:hover { background-color: #64748b; }
body.dark-mode * { scrollbar-color: #475569 transparent; }
body.dark-mode .top-navbar { background: rgba(15, 23, 42, 0.45); border-bottom-color: rgba(51, 65, 85, 0.6); }
body.dark-mode .top-navbar.scrolled { box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); border-bottom-color: transparent; }
body.dark-mode.home-active .top-navbar:not(.scrolled) { background: transparent; border-bottom-color: transparent; }
body.dark-mode .logo-step { color: #f8fafc; }
body.dark-mode .logo-step.step-2 { color: #60a5fa; }
body.dark-mode .nav-group { background: rgba(30, 41, 59, 0.4); border: 1px solid rgba(255, 255, 255, 0.06); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.05); }
body.dark-mode .nav-group-divider { background: rgba(255, 255, 255, 0.1); }
body.dark-mode .nav-tab { background: transparent; border: none; box-shadow: none; color: #94a3b8; }
body.dark-mode .nav-tab:hover { background: rgba(255, 255, 255, 0.1); color: #f8fafc; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
body.dark-mode .nav-tab.active { background: rgba(59, 130, 246, 0.2); color: #60a5fa; box-shadow: 0 4px 15px rgba(96, 165, 250, 0.2); }
body.dark-mode .nav-tab.active svg { color: #38bdf8; }
body.dark-mode .admin-tab { color: #f87171; }
body.dark-mode .admin-tab:hover { background: rgba(220, 38, 38, 0.2); color: #fca5a5; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1); }
body.dark-mode .admin-tab.active { background: rgba(220, 38, 38, 0.3); color: #f87171; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2); }
body.dark-mode .admin-tab.active svg { color: #f87171; }
body.dark-mode .mobile-menu-btn { color: #cbd5e1; }
body.dark-mode .bg-blob { opacity: 0.15; }
body.dark-mode .container { background: rgba(15, 23, 42, 0.45); border-color: rgba(255, 255, 255, 0.05); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05); }
body.dark-mode h2 { color: #f8fafc; border-color: #334155; }
body.dark-mode label { color: #cbd5e1; }
body.dark-mode input[type="text"], body.dark-mode input[type="password"], body.dark-mode input[type="date"], body.dark-mode input[type="time"], body.dark-mode input[type="tel"], body.dark-mode input[type="number"], body.dark-mode select, body.dark-mode textarea { background-color: #0f172a; color: #f1f5f9; border-color: #334155; }
body.dark-mode input:focus, body.dark-mode select:focus, body.dark-mode textarea:focus { background-color: #1e293b; border-color: #818cf8; box-shadow: 0 0 0 5px rgba(129, 140, 248, 0.25); }
body.dark-mode .simple-checkbox { background: rgba(30, 41, 59, 0.4); border-color: rgba(255, 255, 255, 0.05); }
body.dark-mode .simple-checkbox:hover { background-color: rgba(15, 23, 42, 0.6); border-color: rgba(96, 165, 250, 0.4); }

body.dark-mode .form-section { background: rgba(30, 41, 59, 0.4); border-color: rgba(255, 255, 255, 0.05); }
body.dark-mode .form-section-title { color: #f8fafc; border-bottom-color: rgba(255, 255, 255, 0.1); }
body.dark-mode .request-header-wrap { border-bottom-color: #334155 !important; }
body.dark-mode .selected-summary-box { background: rgba(30, 41, 59, 0.4); border-color: rgba(255, 255, 255, 0.05); }
body.dark-mode .selected-summary-box div { color: #f8fafc !important; }
body.dark-mode .selected-summary-box ul { color: #cbd5e1 !important; }
body.dark-mode .selected-item-chip { background: rgba(255, 255, 255, 0.1) !important; color: #cbd5e1 !important; }
body.dark-mode .selected-item-chip.clickable:hover { background: rgba(239, 68, 68, 0.2) !important; color: #fca5a5 !important; }

body.dark-mode .home-welcome-title { color: #f8fafc; }
body.dark-mode .brand-highlight { color: #60a5fa; }
body.dark-mode .home-welcome-desc { color: #94a3b8; }
body.dark-mode .kvp-highlight { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.3); color: #60a5fa; }
body.dark-mode .home-card-btn { background: rgba(30, 41, 59, 0.4); border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05); }
body.dark-mode .home-card-btn:hover { border-color: rgba(96, 165, 250, 0.4); background: rgba(30, 41, 59, 0.7); box-shadow: 0 16px 32px -8px rgba(96, 165, 250, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1); }
body.dark-mode .home-card-btn .title { color: #f8fafc; }
body.dark-mode .home-card-btn .desc { color: #94a3b8; }

body.dark-mode .simple-checkbox:has(input:checked) { background-color: rgba(59, 130, 246, 0.15); border-color: rgba(96, 165, 250, 0.5); box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3); }
body.dark-mode .equip-title { color: #f8fafc !important; }
body.dark-mode .partner-section { border-color: rgba(255, 255, 255, 0.05); background: rgba(30, 41, 59, 0.4); }
body.dark-mode .partner-section-title { background: rgba(15, 23, 42, 0.4); color: #f1f5f9; border-bottom-color: rgba(255, 255, 255, 0.05); }
body.dark-mode .partner-section-title:hover { background: rgba(30, 41, 59, 0.6); }
body.dark-mode th { background-color: #0f172a; color: #cbd5e1; border-bottom: 1px solid #334155; }
body.dark-mode td { border-bottom: 1px solid #334155; }
body.dark-mode tbody tr:hover { background-color: #334155; }
body.dark-mode .modal-content { background: #1e293b; box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.1); color: #f1f5f9; }
body.dark-mode .modal-content h3 { color: #f8fafc; }
body.dark-mode .modal-content input, body.dark-mode .modal-content select, body.dark-mode .modal-content textarea { background: #0f172a; color: #f1f5f9; border-color: #334155; }
body.dark-mode .modal-content input:focus, body.dark-mode .modal-content select:focus, body.dark-mode .modal-content textarea:focus { border-color: #60a5fa; background: #1e293b; box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2); }
body.dark-mode .equipment-section-title { color: #94a3b8; border-color: #334155; }
body.dark-mode #estimatedFeeContainer { background: linear-gradient(135deg, rgba(30, 58, 138, 0.4) 0%, rgba(14, 165, 233, 0.1) 100%); border-color: #1e3a8a; color: #bfdbfe; }

/* 다크 모드 채팅 스타일 */
body.dark-mode .chat-modal-content { background: #0f172a !important; box-shadow: 0 12px 36px rgba(0,0,0,0.4) !important; }
body.dark-mode .chat-header { background: #1e293b !important; border-bottom-color: #334155 !important; }
body.dark-mode .chat-header h3 { color: #f8fafc !important; }
body.dark-mode .chat-footer { background: #1e293b !important; border-top-color: #334155 !important; }
body.dark-mode .chat-input-wrapper { background: #0f172a !important; border-color: #334155 !important; }
body.dark-mode .chat-input-wrapper:focus-within { border-color: #60a5fa !important; background: #1e293b !important; }
body.dark-mode .chat-other { background-color: #1e293b; color: #f1f5f9; border-color: #334155; }
body.dark-mode .modal-content button.secondary { background: #334155; color: #cbd5e1; }
body.dark-mode .modal-content button.secondary:hover { background: #475569; }
body.dark-mode .chat-other .account-header { background: #0f172a; border-bottom-color: #334155; color: #cbd5e1; }
body.dark-mode .chat-icon-btn { color: #94a3b8 !important; }
body.dark-mode .status-pending { background: rgba(217, 119, 6, 0.2); color: #fcd34d; }
body.dark-mode .status-approved { background: rgba(5, 150, 105, 0.2); color: #6ee7b7; }
body.dark-mode .status-rejected { background: rgba(220, 38, 38, 0.2); color: #fca5a5; }
body.dark-mode .btn-divider { border-color: #475569; }
body.dark-mode p[style*="color: #6b7280"] { color: #94a3b8 !important; }
body.dark-mode td[data-label="메모"] { color: #cbd5e1 !important; }
body.dark-mode div[style*="color: #3b82f6"] { color: #60a5fa !important; }
body.dark-mode span[style*="color: #ea580c"] { color: #fb923c !important; }

body.dark-mode .board-list { border-top-color: #94a3b8; }
body.dark-mode .board-header-row { background: #0f172a; border-bottom-color: #334155; color: #94a3b8; }
body.dark-mode .board-item { border-bottom-color: #334155; }
body.dark-mode .board-item-header { color: #cbd5e1; }
body.dark-mode .board-item-header:hover { background: #1e293b; }
body.dark-mode .board-item-title { color: #f8fafc; }
body.dark-mode .board-item-body { background: #0f172a; border-bottom-color: #334155; }
body.dark-mode .board-post-header { border-bottom-color: #334155; }
body.dark-mode .board-post-header span[style*="color:#1e293b"] { color: #f8fafc !important; }
body.dark-mode .board-post-content { color: #cbd5e1; }
body.dark-mode .badge-wait { background: #1e293b; color: #94a3b8; border-color: #475569; }
body.dark-mode .badge-done { background: rgba(5,150,105,0.2); color: #6ee7b7; border-color: rgba(5,150,105,0.4); }
body.dark-mode .badge-job { background: rgba(217,119,6,0.2); color: #fcd34d; border-color: rgba(217,119,6,0.4); }
body.dark-mode .badge-seek { background: rgba(2,132,199,0.2); color: #7dd3fc; border-color: rgba(2,132,199,0.4); }
body.dark-mode .badge-free { background: rgba(147, 51, 234, 0.2); color: #d8b4fe; border-color: rgba(147, 51, 234, 0.4); }
body.dark-mode .badge-qna { background: rgba(220, 38, 38, 0.2); color: #fca5a5; border-color: rgba(220, 38, 38, 0.4); }

body.dark-mode .comment-section { background: #0f172a; border-color: #1e293b; }
body.dark-mode .comment-item { border-color: #334155; }
body.dark-mode .comment-text { color: #cbd5e1; }
body.dark-mode .tab-badge { box-shadow: 0 0 0 2px #0f172a; }
body.dark-mode .guide-item { background: #1e293b; border-color: #334155; }
body.dark-mode .guide-text { color: #cbd5e1; }
body.dark-mode #mypageId { background-color: #0f172a !important; color: #64748b !important; }

.mypage-theme-box { transition: background 0.3s, border-color 0.3s; }
body.dark-mode .mypage-theme-box { background: rgba(30, 41, 59, 0.4) !important; border-color: rgba(255, 255, 255, 0.05) !important; }
body.dark-mode .mypage-theme-box span { color: #cbd5e1 !important; }

body.dark-mode .intro-card { background: rgba(30, 41, 59, 0.4); border-color: rgba(255, 255, 255, 0.05); }
body.dark-mode .intro-admin { background: rgba(59, 130, 246, 0.1); border-color: #1e3a8a; }
body.dark-mode .intro-title { color: #60a5fa; }
body.dark-mode .intro-partner .intro-title { color: #38bdf8; }
body.dark-mode .intro-content { color: #cbd5e1; }

body.dark-mode .intro-items-section { border-top-color: #334155; }
body.dark-mode .intro-items-header { color: #cbd5e1; }
body.dark-mode .intro-item-box { background: rgba(15, 23, 42, 0.4); border-color: rgba(255, 255, 255, 0.05); }
body.dark-mode .intro-item-title { color: #f8fafc; }
body.dark-mode .intro-item-desc { color: #94a3b8; }
body.dark-mode .intro-item-price { color: #fb923c; }

body.dark-mode .hot-item-title { color: #f8fafc; }
body.dark-mode #hotItemsContainer h3 { color: #f8fafc !important; }

body.dark-mode .admin-stat-card { background: rgba(30, 41, 59, 0.4); border-color: rgba(255, 255, 255, 0.05); }
body.dark-mode .admin-stat-title { color: #94a3b8; }
body.dark-mode .admin-stat-value { color: #f8fafc; }
body.dark-mode .icon-blue { background: rgba(2, 132, 199, 0.2); color: #7dd3fc; }
body.dark-mode .icon-yellow { background: rgba(217, 119, 6, 0.2); color: #fcd34d; }
body.dark-mode .icon-purple { background: rgba(126, 34, 206, 0.2); color: #c084fc; }
body.dark-mode .icon-green { background: rgba(5, 150, 105, 0.2); color: #6ee7b7; }

/* 테마 변경 시 전체 화면 부드러운 색상 전환 (페이드 효과) */
html.theme-transition,
html.theme-transition *,
html.theme-transition *:before,
html.theme-transition *:after {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, fill 0.5s ease, stroke 0.5s ease, box-shadow 0.5s ease !important;
}

/* 오프라인 안내 화면 */
.offline-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh; background: rgba(248, 250, 252, 0.95); backdrop-filter: blur(5px); z-index: 10000; display: flex; flex-direction: column; align-items: center; justify-content: center; animation: modalFadeIn 0.3s ease; }
.offline-content { text-align: center; background: white; padding: 40px; border-radius: 24px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); border: 2px solid #e2e8f0; }
.offline-icon { font-size: 4rem; margin-bottom: 20px; animation: floating 2s infinite ease-in-out; }
@keyframes floating { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
body.dark-mode .offline-screen { background: rgba(15, 23, 42, 0.95); }
body.dark-mode .offline-content { background: #1e293b; border-color: #334155; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5); }
body.dark-mode .offline-content h3 { color: #f8fafc !important; }
body.dark-mode .offline-content p { color: #cbd5e1 !important; }

/* 플로팅 액션 버튼 (FAB) 및 패널 */
.fab-container { position: fixed; bottom: calc(30px + env(safe-area-inset-bottom)); right: calc(30px + env(safe-area-inset-right)); display: flex; flex-direction: column; gap: 15px; z-index: 1000; }
.fab-wrapper { position: relative; }
.fab-btn { width: 56px; height: 56px; border-radius: 50%; border: none; background: #ffffff; box-shadow: 0 4px 12px rgba(0,0,0,0.15); font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; color: #1f2937; }
.fab-profile-btn { padding: 0; overflow: hidden; border: 2px solid #ffffff; }
.fab-btn:hover { transform: scale(1.05); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }
.fab-badge { position: absolute; top: -2px; right: -2px; background: #ef4444; color: white; font-size: 0.75rem; font-weight: 700; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,0.2); animation: bounceIn 0.3s; }
.fab-panel { position: absolute; bottom: 70px; right: 0; width: 320px; max-height: 400px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 20px; box-shadow: 0 12px 40px rgba(0,0,0,0.12); display: none; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,0.6); transform-origin: bottom right; animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.fab-panel-header { padding: 15px; font-weight: 700; border-bottom: 1px solid #e2e8f0; background: #f8fafc; font-size: 1.05rem; }
.fab-panel-content { padding: 10px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 8px; -webkit-overflow-scrolling: touch; }
.fab-item { padding: 12px; border-radius: 10px; background: #f8fafc; cursor: pointer; transition: background 0.2s; font-size: 0.9rem; line-height: 1.4; border: 1px solid transparent; display: flex; flex-direction: column; }
.fab-item:hover { background: #eff6ff; border-color: #bfdbfe; }
.fab-item-time { font-size: 0.75rem; color: #9ca3af; margin-top: 6px; align-self: flex-end; }

body.dark-mode .fab-btn { background: #1e293b; color: #f8fafc; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
body.dark-mode .fab-profile-btn { border-color: #334155; }
body.dark-mode .fab-panel { background: #1e293b; border-color: #334155; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
body.dark-mode .fab-panel-header { background: #0f172a; border-bottom-color: #334155; color: #f8fafc; }
body.dark-mode .fab-item { background: #0f172a; color: #cbd5e1; }
body.dark-mode .fab-item:hover { background: #1e293b; border-color: #475569; }

body.dark-mode #adminChatMonitorList { background: #0f172a !important; border-color: #334155 !important; }
/* 토스트 메시지 스타일 */
.toast-message { position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(20px); background-color: rgba(30, 41, 59, 0.9); color: #ffffff; padding: 12px 24px; border-radius: 30px; font-size: 0.95rem; font-weight: 600; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); opacity: 0; z-index: 100000; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none; }
.toast-message.show { opacity: 1; transform: translateX(-50%) translateY(0); }
body.dark-mode .toast-message { background-color: rgba(241, 245, 249, 0.95); color: #0f172a; }

/* 모바일 토스트 대응 */
@media (max-width: 600px) { .toast-message { bottom: 80px; width: max-content; max-width: 90vw; } }

/* 예상 이용료 컨테이너 화려한 디자인 */
#estimatedFeeContainer {
    background: #f8fafc;
    border: none;
    color: #334155;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    font-size: 1.05rem;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 푸터 (면책 조항) */
.footer-disclaimer {
    text-align: center;
    padding: 40px 20px 20px;
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
    color: #94a3b8;
    font-size: 0.85rem;
    word-break: keep-all;
    line-height: 1.6;
    position: relative;
    z-index: 10;
}
body.dark-mode .footer-disclaimer { border-top-color: #334155; color: #64748b; }

/* 푸터 약관 링크 버튼 */
.footer-link-btn { background: none; border: none; color: #64748b; font-size: 0.85rem; cursor: pointer; transition: color 0.2s; padding: 4px; font-family: inherit; font-weight: 500; }
.footer-link-btn:hover { color: #3b82f6; text-decoration: underline; }
body.dark-mode .footer-link-btn { color: #94a3b8; }
body.dark-mode .footer-link-btn:hover { color: #60a5fa; }

/* 약관 내용 스크롤 박스 */
.terms-content-box { font-size: 0.9rem; color: #475569; line-height: 1.6; max-height: 60vh; overflow-y: auto; padding: 16px; background: #f8fafc; border-radius: 12px; border: 1px solid #e2e8f0; white-space: pre-wrap; text-align: left; -webkit-overflow-scrolling: touch; }
.terms-content-box::-webkit-scrollbar { width: 6px; }
.terms-content-box::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
body.dark-mode .terms-content-box { background: #0f172a; border-color: #334155; color: #cbd5e1; }
body.dark-mode .terms-content-box::-webkit-scrollbar-thumb { background: #475569; }

/* 모바일 사이드바 배경 딤(Dim) */
.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 900; /* top-navbar 내부에서 최상단 덮기 */
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-nav-backdrop.open { opacity: 1; }
.mobile-menu-close-btn { display: none; }

@media (max-width: 1000px) {
    .mobile-menu-close-btn {
        display: flex; position: absolute; top: calc(16px + env(safe-area-inset-top)); right: calc(16px + env(safe-area-inset-right)); background: #f1f5f9; border: none; border-radius: 50%;
        width: 44px; height: 44px; align-items: center; justify-content: center; color: #475569; cursor: pointer; transition: all 0.2s;
    }
    .mobile-menu-close-btn:active { transform: scale(0.9); }
    body.dark-mode .mobile-menu-close-btn { background: #1e293b; color: #94a3b8; }

    .nav-center {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: calc(70px + env(safe-area-inset-top)) 20px calc(40px + env(safe-area-inset-bottom)) 20px;
        box-shadow: -10px 0 25px rgba(0,0,0,0.15);
        display: flex;
        gap: 8px;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-center.open { transform: translateX(0); }
    body.dark-mode .nav-center { background: #0f172a; border-left: 1px solid #334155; box-shadow: -10px 0 25px rgba(0,0,0,0.6); }
    
    .nav-group { width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px; box-sizing: border-box; }
    .nav-group-divider { display: none; }
    .nav-tab { flex-direction: row; width: 100%; box-sizing: border-box; padding: 12px 16px; font-size: 1.05rem; justify-content: flex-start; gap: 12px; }
    #adminNavGroup { width: 100%; }
    #adminNavGroup[style*="block"] { display: flex !important; flex-direction: column; }
    .mobile-menu-btn { display: block; }
    .nav-text-mobile-hide { display: none; }
}

@media (max-width: 600px) {
    .content-wrapper { padding: 20px 10px; }
    
    /* 📱 상단 네비게이션 바(GNB) 가로 스크롤 및 햄버거 메뉴 밀림 방지 */
    .top-navbar { padding: env(safe-area-inset-top) 16px 0; gap: 8px; height: calc(60px + env(safe-area-inset-top)); }
    .top-navbar.nav-hidden { transform: translateY(-100%); }
    .logo-step { font-size: 1.15rem; letter-spacing: -0.5px; margin-left: 2px; }
    .nav-right { gap: 10px; margin-right: 2px; }
    #memberNameDisp span { display: none; } /* 공간 확보: 긴 닉네임 텍스트를 숨기고 프로필 아이콘만 표시 */
    .member-btns .nav-member-btn { width: 32px; height: 32px; padding: 4px; }
    .mobile-menu-btn { padding: 6px; margin-right: -6px; }

    /* 📱 상단바 높이 축소(70px->60px)에 따른 메인 컨텐츠 시작 위치 보정 */
    .main-content { padding-top: calc(60px + env(safe-area-inset-top)); }

    .fab-container { bottom: calc(20px + env(safe-area-inset-bottom)); right: calc(20px + env(safe-area-inset-right)); }
    .fab-btn { width: 50px; height: 50px; font-size: 1.3rem; }
    .fab-panel { width: 280px; max-height: 350px; right: -10px; }
    
    .time-group, .info-group {
        flex-direction: column;
        gap: 0;
    }
    .info-group, .time-group { margin-bottom: 0; }
    .info-group .form-group, .time-group .form-group { margin-bottom: 20px; }
    .container { padding: 24px 14px; }

    /* 이용 신청 폼 상단 헤더 (대여 가이드라인 등) 가로 겹침 최적화 */
    .request-header-wrap { flex-direction: column !important; align-items: stretch !important; gap: 12px !important; }
    .request-header-wrap > div { justify-content: space-between; width: 100%; }

    /* 홈 배너(공지) 여백 축소 */
    .home-notice-container { margin: 0 auto 20px; padding: 12px 16px; }

    /* 모바일 현황표 컴팩트 카드형 UI 변환 */
    #statusTable, #statusTable tbody, #usersTable, #usersTable tbody, #errorLogsTable, #errorLogsTable tbody { display: block; width: 100%; }
    #statusTable thead, #usersTable thead, #errorLogsTable thead { display: none; }
    #statusTable tr, #usersTable tr, #errorLogsTable tr {
        display: flex;
        flex-direction: column;
        position: relative;
        margin-bottom: 16px;
        border: 1px solid rgba(255, 255, 255, 0.6);
        border-radius: 16px;
        padding: 16px;
        background: rgba(255, 255, 255, 0.45);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), inset 0 1px 1px rgba(255, 255, 255, 0.8);
        gap: 8px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    }
    #statusTable td, #usersTable td, #errorLogsTable td {
        display: flex;
        align-items: flex-start;
        text-align: left;
        border: none;
        padding: 0;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    }
    #statusTable td::before, #usersTable td::before, #errorLogsTable td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #94a3b8;
        font-size: 0.8rem;
        width: 70px;
        flex-shrink: 0;
        margin-right: 8px;
        padding-top: 2px;
    }
    
    /* 개별 셀 스타일링 및 순서(Order) 재배치 */
    #statusTable td[data-label="신청자"] { order: 1; font-size: 1.15rem; border-bottom: 1px dashed #e2e8f0; padding-bottom: 12px; margin-bottom: 4px; }
    #statusTable td[data-label="신청자"]::before { content: none; } /* 이름 앞 라벨 숨김 */
    #statusTable td[data-label="상태"] { order: 2; position: absolute; top: 16px; right: 16px; width: auto; }
    #statusTable td[data-label="상태"]::before { content: none; }
    #statusTable td[data-label="신청 항목"] { order: 3; flex-direction: column; }
    #statusTable td[data-label="신청 항목"]::before { margin-bottom: 4px; }
    #statusTable td[data-label="이용 기간"] { order: 4; }
    #statusTable td[data-label="연락처"] { order: 5; align-items: center; }
    #statusTable td[data-label="메모"] { order: 6; background: #f8fafc; padding: 10px; border-radius: 8px; margin-top: 4px; flex-direction: column; }
    #statusTable td[data-label="메모"]::before { margin-bottom: 4px; }
    #statusTable td[data-label="조치"] { order: 7; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 6px; border-top: 1px solid #e2e8f0; padding-top: 12px; margin-top: 4px; }
    #statusTable td[data-label="조치"]::before { content: none; }
    #statusTable td[data-label="조치"] .action-btn { margin: 0; padding: 8px 12px; font-size: 0.85rem; }
    #statusTable td[data-label="조치"] .btn-divider { display: none; } /* 모바일에서 구분선 숨김 */
    
    /* 회원 권한 관리 개별 셀 스타일링 */
    #usersTable td[data-label="이름"] { order: 1; font-size: 1.15rem; border-bottom: 1px dashed #e2e8f0; padding-bottom: 12px; margin-bottom: 4px; }
    #usersTable td[data-label="이름"]::before { content: none; }
    #usersTable td[data-label="현재 권한"] { order: 2; position: absolute; top: 16px; right: 16px; width: auto; }
    #usersTable td[data-label="현재 권한"]::before { content: none; }
    #usersTable td[data-label="이메일/ID"] { order: 3; margin-top: 4px;}
    #usersTable td[data-label="연락처"] { order: 4; }
    #usersTable td[data-label="권한 변경"] { order: 5; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; border-top: 1px solid #e2e8f0; padding-top: 12px; margin-top: 4px; }
    #usersTable td[data-label="권한 변경"]::before { content: none; }

    /* 에러 로그 관리 개별 셀 스타일링 */
    #errorLogsTable td[data-label="발생 일시"] { order: 1; font-weight: bold; border-bottom: 1px dashed #e2e8f0; padding-bottom: 12px; margin-bottom: 4px; }
    #errorLogsTable td[data-label="발생 일시"]::before { content: none; }
    #errorLogsTable td[data-label="보고자"] { order: 2; position: absolute; top: 16px; right: 16px; width: auto; }
    #errorLogsTable td[data-label="보고자"]::before { content: none; }
    #errorLogsTable td[data-label="사용자 메모"] { order: 3; margin-top: 4px; flex-direction: column;}
    #errorLogsTable td[data-label="사용자 메모"]::before { margin-bottom: 4px; }
    #errorLogsTable td[data-label="오류 상세 내용"] { order: 4; flex-direction: column; background: #f8fafc; padding: 10px; border-radius: 8px; margin-top: 8px; }
    #errorLogsTable td[data-label="오류 상세 내용"]::before { margin-bottom: 4px; }

    body.dark-mode #statusTable tr, body.dark-mode #usersTable tr, body.dark-mode #errorLogsTable tr { background: rgba(30, 41, 59, 0.4); border-color: rgba(255, 255, 255, 0.05); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05); }
    body.dark-mode #statusTable td[data-label="신청자"], body.dark-mode #usersTable td[data-label="이름"], body.dark-mode #errorLogsTable td[data-label="발생 일시"] { border-bottom-color: #334155; }
    body.dark-mode #statusTable td[data-label="조치"], body.dark-mode #usersTable td[data-label="권한 변경"] { border-top-color: #334155; }
    body.dark-mode #statusTable td[data-label="메모"], body.dark-mode #errorLogsTable td[data-label="오류 상세 내용"] { background: #0f172a; }
    
    .guide-item { flex-direction: column; align-items: flex-start; gap: 10px; }
    .guide-actions { margin-left: 0; align-self: flex-end; }

    /* 📱 모바일 폼 및 모달 최적화 */
    .modal { padding: 12px; }
    .modal-content { padding: 20px 16px; max-height: 92vh; overflow-y: auto; }
    /* 모바일 환경에서 채팅창 화면 전체 확장 */
    #chatModal .modal-content { height: 95vh !important; max-height: none !important; width: 100% !important; max-width: none !important; padding: 0 !important; }
    
    /* 📱 다중 채팅창 모바일 대응: 스택(Stack)형 전체화면 */
    #chatWindowsContainer {
        top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
        width: 100% !important; height: 100dvh !important;
        padding: 12px !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    /* 채팅창이 하나라도 열려있을 때만 모바일에서 배경 딤(Dim) 처리 및 뒤쪽 터치 차단 */
    #chatWindowsContainer:not(:empty) {
        background: rgba(0,0,0,0.5) !important;
        pointer-events: auto !important;
    }
    /* 채팅창이 켜져 있을 때 우측 하단 플로팅 아이콘(FAB) 숨김 처리 */
    #chatWindowsContainer:not(:empty) ~ #fabContainer {
        display: none !important;
    }
    /* 개별 채팅창 래퍼를 절대 위치로 겹치게(Stack) 배치 */
    #chatWindowsContainer > div {
        position: absolute !important;
        width: calc(100% - 24px) !important;
        height: 95vh !important;
    }
    #chatWindowsContainer > div > .chat-modal-content { height: 100% !important; max-height: none !important; }
    /* 가장 최상단(마지막에 열린) 채팅창 1개만 표시하여 혼란 방지 */
    #chatWindowsContainer > div:not(:last-child) {
        display: none !important;
    }

    .chat-icon-btn { padding: 8px !important; }
    
    /* 📱 검색창 및 필터 상단 레이아웃 세로 정렬 (겹침 및 가림 방지) */
    #section-job .container > div:first-child,
    #section-inquiry .container > div:first-child,
    #section-status .container > div:first-child { flex-direction: column; align-items: stretch; gap: 12px; }
    
    /* 내부 요소 래핑 허용 및 꽉 차게 */
    #section-job .container > div:first-child > div,
    #section-status .container > div:first-child > div { width: 100%; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
    #inquirySearchInput, #jobSearchInput { max-width: none !important; width: 100%; flex: 1; min-width: 150px; }
    
    /* 📱 카드형 UI(문의, 구인 등) 여백 축소 */
    .intro-card { padding: 16px; margin-bottom: 16px; } /* 카드가 세로로 나열될 때 여백 확보 */
    
    /* 📱 게시판 리스트 모바일 대응 */
    .board-header-row { display: none; }
    .board-item-header { flex-wrap: wrap; text-align: left; padding: 14px 12px; }
    .board-col-no { display: none; }
    .board-col-title { flex: 100%; margin: 8px 0; padding: 0; white-space: normal; }
    .board-col-status { width: auto; margin-right: 8px; }
    .board-col-author { width: auto; font-size: 0.8rem; color: #64748b; margin-right: 12px; }
    .board-col-date { width: auto; font-size: 0.8rem; color: #94a3b8; }
    .board-item-body { padding: 16px; }

    /* 📱 예상 이용료 컨테이너 모바일 최적화 */
    #estimatedFeeContainer { padding: 14px 12px; font-size: 0.95rem; margin-bottom: 16px; }
    
    /* 📱 장비 선택 체크박스 터치 영역 축소 (세로 공간 절약) */
    .simple-checkbox { padding: 12px; gap: 8px; }
    
    /* 📱 푸터(면책 조항) 모바일 최적화 */
    .footer-disclaimer { font-size: 0.75rem; padding: 30px 15px 15px; margin-top: 30px; }

    /* 📱 항목 선택 영역 컴팩트 세로 리스트 최적화 (접기/펼치기 아코디언 버그 픽스) */
    .checkbox-group { grid-template-columns: 1fr; gap: 10px; }
    .partner-section > div:last-child { grid-template-columns: 1fr !important; padding: 12px 16px !important; gap: 10px !important; }
    .simple-checkbox { padding: 16px 16px; gap: 4px; justify-content: center; }
    .simple-checkbox .equip-title { font-size: 1.05rem !important; padding-right: 32px !important; line-height: 1.3; }
    .simple-checkbox > div[style*="color:#64748b"] { font-size: 0.8rem; margin-top: 4px !important; }
    .simple-checkbox:has(input:checked)::after { top: 50%; transform: translateY(-50%); right: 16px; }
    
}

/* ========================================== */
/* 🌟 스크롤 페이드인 (Scroll Reveal) 효과 */
/* ========================================== */
.reveal-on-scroll {
    opacity: 0;
}
.reveal-on-scroll.is-visible {
    animation: scrollRevealFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes scrollRevealFade {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}