@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

/* ★ PortOne(아임포트) 결제 iframe이 모달/상태바 위에 표시되도록 */
.imp-dialog, .imp-frame-wrapper, #iamport-checkout, iframe[src*="iamport"], iframe[src*="inicis"] {
    z-index: 9999999 !important;
}

    /* =========================================
       1. [기본 설정] 앱 느낌 내기 & 초기화
       ========================================= */
    * {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent; 
        box-sizing: border-box;
    }

    input, textarea {
        -webkit-user-select: text !important;
        user-select: text !important;
        outline: none;
        /* ★ [한국어 IME 수정] iOS 입력창 포커스 시 자동 확대(auto-zoom) 방지
           Tailwind의 text-sm(14px) 유틸리티가 이 값을 덮어쓸 수 있으므로 !important 적용.
           iOS는 font-size < 16px인 input 포커스 시 자동 확대하며 이 과정에서 IME 초기화가 끊김 */
        font-size: 16px !important;
    }

    /* ★ [한국어 IME 수정] 부모 컨테이너의 user-select:none이 IME 조합 입력을 차단하는 버그 대응
       전역 * { user-select: none } 설정으로 인해 삼성 키보드, 구형 Android Chrome 등 일부
       모바일 브라우저에서 부모 div의 user-select:none이 자식 input의 한국어 IME 조합을 막음.
       부모 컨테이너에 user-select:auto를 적용하여 IME가 정상 동작하도록 함.
       (CSS :has() 선택자: Chrome 105+, Safari 15.4+, Firefox 121+ 지원) */
    /* ★ [한국어 IME 수정 v2] '>' 직접 자식 선택자 제거 → 입력창을 포함하는 모든 조상 div에 적용
       #view-chat 등 상위 컨테이너도 user-select:none이면 Android IME가 차단되므로
       input/textarea를 하나라도 포함하는 div 전체에 auto 적용 */
    div:has(input[type="text"]),
    div:has(input[type="tel"]),
    div:has(input[type="number"]),
    div:has(textarea) {
        -webkit-user-select: auto !important;
        user-select: auto !important;
    }

    body::-webkit-scrollbar, 
    div::-webkit-scrollbar,
    section::-webkit-scrollbar,
    main::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    h1, h2, h3, h4, h5, p, span, div, button, a {
        word-break: keep-all; 
        word-wrap: break-word;
    }
    
    .address-text, .url-text {
        word-break: break-all !important;
    }

    /* =========================================
       2. [레이아웃 & 안전구역] 구글 배너/노치 대응
       ========================================= */
    :root {
        --google-banner-height: 1px; /* 헤더 위치 조절용 변수 */
    }

    /* ★ 전체 폰트 크기 약 10% 축소 (1rem = 16px → 14.4px)
       Tailwind rem 기반 유틸리티 클래스에 일괄 적용됨.
       input/textarea는 별도 16px !important 로 보호되어 iOS 자동확대 방지 유지. */
    html {
        font-size: 90%;
    }

    body {
        font-family: 'Noto Sans KR', sans-serif; 
        background-color: #f8fafc; 
        margin: 0;
        touch-action: manipulation; 
        overscroll-behavior-y: none;
        -webkit-overflow-scrolling: touch;
    }

 .app-container {
    max-width: 480px;
    margin: 0 auto;
    background: #f8fafc;
    min-height: 100vh;
    position: relative;

    padding-top: calc(env(safe-area-inset-top) + var(--google-banner-height));
    padding-bottom: 0 !important;

    /* 74 제거 완료 */
    box-shadow: 0 0 40px rgba(0,0,0,0.08);

    overflow-x: hidden;
    /* ★ z-index 제거: position:relative + z-index 조합이 stacking context를 생성해서
       ::before(z-index:999998)가 외부 뷰들(view-user-history 등) 위에 표시 불가였음.
       z-index를 제거하면 ::before가 root stacking context에서 직접 비교되어 정상 동작. */
}
/* ★ 상태바 영역 배경
   - 웹 브라우저: env(safe-area-inset-top) 크기만큼 덮음 (보통 0)
   - Android 앱: --android-status-bar-height 변수를 MainActivity.onPageFinished() 에서
     네이티브 WindowMetrics 로 정확히 측정 후 CSS 변수로 주입 (env() 우회)
     배경색 #334155(진한 슬레이트) + 흰색 아이콘 조합으로 시계·배터리 가시성 확보 */
:root {
    --android-status-bar-height: 0px; /* 초기값; 네이티브가 덮어씀 */
}
.app-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: env(safe-area-inset-top, 0px);
    background-color: #334155;
    z-index: 999998; /* SweetAlert(999999) 직전 — 모든 모달 위에 표시 */
    pointer-events: none;
}
/* Android 앱: 네이티브가 주입한 정확한 높이 사용 */
.cap-android .app-container::before {
    height: var(--android-status-bar-height, 28px) !important;
    background-color: #334155 !important;
}
/* Android 앱: 콘텐츠가 상태바 아래 가려지지 않도록 패딩 */
.cap-android .app-container {
    padding-top: calc(
        var(--android-status-bar-height, 28px) + var(--google-banner-height, 0px)
    ) !important;
}
/* ★ Android: 전체화면 뷰/모달 상태바 패딩
   — full-screen-view(파트너 탭) + 유저 탭 + 모든 슬라이드업 전체화면 모달
   — env(safe-area-inset-top)은 Capacitor WebView에서 0을 반환하므로 CSS 변수를 직접 사용 */
.cap-android .full-screen-view,
.cap-android #view-landing,
.cap-android #view-user-history,
.cap-android #view-user-chat-list,
.cap-android #view-user-more,
.cap-android #view-user-wizard,
.cap-android #view-chat,
.cap-android #view-partner-write-bid,
.cap-android #view-partner-register,
.cap-android #modal-signup,
.cap-android #modal-education,
.cap-android #modal-admin-login,
.cap-android #modal-detail-view,
.cap-android #modal-payment-management,
.cap-android #modal-activity-dashboard,
.cap-android #modal-partner-profile,
.cap-android #modal-all-reviews,
.cap-android #modal-notifications,
.cap-android #modal-my-reviews,
.cap-android #modal-all-photos,
.cap-android #modal-profile {
    padding-top: calc(var(--android-status-bar-height, 28px) + var(--google-banner-height, 0px)) !important;
}

/* ═══ iOS 앱 전용 (Capacitor) ═══ */
.cap-ios .app-container::before {
    height: env(safe-area-inset-top, 47px) !important;
    background-color: #334155 !important;
}
.cap-ios .app-container {
    padding-top: calc(env(safe-area-inset-top, 47px) + var(--google-banner-height, 0px)) !important;
}
.cap-ios .full-screen-view,
.cap-ios #view-landing,
.cap-ios #view-user-history,
.cap-ios #view-user-chat-list,
.cap-ios #view-user-more,
.cap-ios #view-user-wizard,
.cap-ios #view-chat,
.cap-ios #view-partner-write-bid,
.cap-ios #view-partner-register,
.cap-ios #modal-signup,
.cap-ios #modal-education,
.cap-ios #modal-admin-login,
.cap-ios #modal-detail-view,
.cap-ios #modal-payment-management,
.cap-ios #modal-activity-dashboard,
.cap-ios #modal-partner-profile,
.cap-ios #modal-all-reviews,
.cap-ios #modal-notifications,
.cap-ios #modal-my-reviews,
.cap-ios #modal-all-photos,
.cap-ios #modal-profile,
.cap-ios #modal-user-profile-edit,
.cap-ios #modal-reschedule,
.cap-ios #modal-template-editor,
.cap-ios #modal-template-select,
.cap-ios #modal-doc-viewer,
.cap-ios #view-partner-market,
.cap-ios #view-partner-my,
.cap-ios #view-partner-schedule,
.cap-ios #view-partner-chat-list,
.cap-ios #view-partner-settings,
.cap-ios #modal-blocked-dates,
.cap-ios #modal-write-review,
.cap-ios #modal-credit-payment,
.cap-ios #modal-activity-photos {
    padding-top: env(safe-area-inset-top, 47px) !important;
}
.cap-ios .bottom-nav {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 34px)) !important;
}
.cap-ios input, .cap-ios textarea, .cap-ios select {
    font-size: 16px !important;
}

/* ═══ iOS 100vh 보정 ═══ */
/* iOS WebView에서 100vh가 실제 보이는 화면보다 크게 계산되는 문제 수정.
   html/body를 100%로 고정하고 overflow:hidden으로 페이지 스크롤을 막아
   내부 뷰의 overflow-y:auto만 동작하게 함. */
html.cap-ios {
    height: 100% !important;
    overflow: hidden !important;
}
html.cap-ios body {
    height: 100% !important;
    overflow: hidden !important;
}
html.cap-ios .app-container {
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
}
/* fixed 요소: 100vh → 100% (viewport 기준이므로 정확한 높이) */
html.cap-ios .full-screen-view {
    height: 100% !important;
}
/* 유저 탭 메인 뷰: 100vh → 100% */
html.cap-ios #view-user-quest,
html.cap-ios #view-user-history,
html.cap-ios #view-user-chat-list,
html.cap-ios #view-user-more {
    height: 100% !important;
}

    /* ★ 키보드가 올라와도 입력창이 보이도록 */
    #view-user-wizard {
        padding-bottom: env(keyboard-inset-height, 0) !important;
    }
    
    /* iOS/Android 키보드 대응 */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        #view-user-wizard {
            scroll-padding-bottom: 150px;
        }
    }

    /* 전체화면 모달들이 상태바 + 배너에 가려지지 않게 상단 여백 추가 */
    /* safe-area-inset-top: 노치/다이나믹아일랜드/상태바 높이 자동 반영 */
    #view-user-wizard, #view-chat, #view-partner-write-bid, #view-partner-register,
    #modal-signup, #modal-education, #modal-admin-login, #modal-user-profile-edit,
    #modal-detail-view, #modal-admin-partner-detail, #modal-reschedule,
    #modal-template-editor, #modal-template-select, #modal-doc-viewer,
    #view-partner-market, #view-partner-my, #view-partner-schedule,
    #view-partner-chat-list, #view-partner-settings,
    #modal-payment-management, #modal-activity-dashboard, #modal-blocked-dates,
    #modal-write-review, #modal-partner-profile, #modal-credit-payment {
        padding-top: calc(env(safe-area-inset-top) + var(--google-banner-height)) !important;
    }
/* ★ 추가: 교육신청 모달 강제 위치 고정 */
    #modal-education {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    z-index: 99999 !important;
}

    /* 모달 내부 헤더 스타일 */
    .fixed .h-14, .fixed .h-16 {
        background-color: white;
        z-index: 50;
    }
/* ★ 전체화면 모달: 하단 탭바(z-index:100) 위에 표시 */
#modal-signup:not(.hidden),
#modal-education:not(.hidden),
#view-user-wizard:not(.hidden),
#view-partner-register:not(.hidden),
#modal-admin-login:not(.hidden),
#modal-detail-view:not(.hidden),
#modal-reschedule:not(.hidden),
#modal-user-profile-edit:not(.hidden),
#modal-payment-management:not(.hidden),
#modal-activity-dashboard:not(.hidden),
#view-chat:not(.hidden) {
    z-index: 10000 !important;
}
/* ★ 회원가입 모달 열리면 하단 탭바 완전 숨김 (시블링 셀렉터 — iOS WebView 호환) */
/* #modal-signup이 app-container 밖, #user-nav 바로 앞에 위치하므로 ~ 셀렉터 사용 가능 */
#modal-signup:not(.hidden) ~ #user-nav,
#modal-signup:not(.hidden) ~ #partner-nav {
    display: none !important;
}

.swal2-container {
    z-index: 999999 !important;
}
    /* =========================================
       3. [하단 네비게이션] 안드로이드 버튼 겹침 해결 & PC 노출
       ========================================= */
    /* [수정됨] 하단 탭바: PC 및 모든 화면에서 최상단 노출 보장 */
    /* [수정] 하단 탭바: 높이를 키우고, 무조건 맨 위에 표시 */
    /* [최종 수정] 하단 탭바 강제 노출 스타일 */
    /* ★ 파트너/유저 전체화면 뷰 공통 스타일 */
    .full-screen-view {
        position: fixed !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 100% !important;
        max-width: 480px !important;
        height: 100vh !important;
        background: #f8fafc !important;
        z-index: 50 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    
    /* 숨겨진 파일 입력 */
    .hidden-file-input { display: none !important; }

/* Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #cbd5e1;
    display: flex; 
    justify-content: space-around; 
    padding: 12px 0; 
    z-index: 100; 
    padding-bottom: max(12px, env(safe-area-inset-bottom)); 
    left: 50%; 
    transform: translateX(-50%); 
}
.nav-item { 
    text-align: center; 
    color: #94a3b8; 
    font-size: 10px; 
    cursor: pointer; 
    flex: 1; 
    transition: color 0.2s; 
}
.nav-item.active { color: #0f172a; font-weight: 700; }
.nav-item i { font-size: 22px; margin-bottom: 4px; display: block; }

/* ★ 메인 뷰 헤더 하단 구분선 제거 */
.full-screen-view > div > header,
.full-screen-view > header,
#view-user-quest > div > header {
    border-bottom: none;
    margin-bottom: 0;
}

/* ★ 핵심 추가: hidden 클래스가 없을 때 강제 표시 */
.bottom-nav:not(.hidden) {
    display: flex !important;
    visibility: visible !important;
}
/* 유저 네비게이션 표시 강제 */
#user-nav:not(.hidden) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#partner-nav:not(.hidden) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
    
    .nav-item { 
        text-align: center; 
        color: #94a3b8; 
        font-size: 10px; 
        cursor: pointer; 
        flex: 1; 
        transition: color 0.2s;
        -webkit-tap-highlight-color: transparent;
        position: relative; 
    }
    .nav-item.active { color: #0f172a; font-weight: 700; }
    .nav-item i { font-size: 22px; margin-bottom: 4px; display: block; }

    /* =========================================
       4. [컴포넌트] 버튼, 입력창, 카드 등
       ========================================= */
    .btn-black { 
        background-color: #0f172a;
        color: white; 
        border-radius: 14px; 
        font-weight: 600; 
        transition: all 0.2s; 
        cursor: pointer; 
        letter-spacing: -0.02em;
        border: none;
    }
    .btn-black:active { transform: scale(0.98); background-color: #1e293b; }
    
    .card-shadow { box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05); border: 1px solid #f1f5f9; }

    /* =========================================
       ★ 스텐(스틸) 메탈릭 디자인 시스템
       ========================================= */
    /* 다크 스틸 헤더/배너 */
    .steel-dark {
        background: linear-gradient(145deg, #52525b 0%, #71717a 35%, #a1a1aa 50%, #71717a 65%, #52525b 100%);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 4px 12px rgba(0,0,0,0.15);
    }
    /* 라이트 스틸 카드 표면 */
    .steel-card {
        background: linear-gradient(160deg, #fafafa 0%, #f4f4f5 40%, #e4e4e7 100%);
        border: 1px solid #d4d4d8;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 8px rgba(0,0,0,0.04);
    }
    /* 스틸 태그 */
    .steel-tag {
        background: linear-gradient(145deg, #e4e4e7 0%, #d4d4d8 100%);
        border: 1px solid #a1a1aa;
        color: #3f3f46;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    }
    .steel-tag-dark {
        background: linear-gradient(145deg, #52525b 0%, #71717a 50%, #52525b 100%);
        border: 1px solid #3f3f46;
        color: #fff;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    /* 스틸 버튼 */
    .steel-btn {
        background: linear-gradient(145deg, #52525b 0%, #71717a 40%, #52525b 100%);
        color: #fff;
        border: 1px solid #3f3f46;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 6px rgba(0,0,0,0.12);
        transition: all 0.15s;
    }
    .steel-btn:active { transform: scale(0.98); filter: brightness(0.9); }

    /* ★ 실버 쉬머 버튼 (고객 견적 요청) */
    .steel-shimmer-btn {
        position: relative;
        background: linear-gradient(145deg, #52525b 0%, #71717a 30%, #a1a1aa 50%, #71717a 70%, #52525b 100%);
        color: #fff;
        border: 1px solid #3f3f46;
        box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
        overflow: hidden;
    }
    .steel-shimmer-btn::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 60%;
        height: 100%;
        background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.4) 45%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.4) 55%, transparent 70%);
        animation: btnShimmer 3s ease-in-out infinite;
        pointer-events: none;
        border-radius: 1rem;
    }
    @keyframes btnShimmer {
        0% { left: -100%; }
        50% { left: 120%; }
        100% { left: 120%; }
    }
    .steel-shimmer-btn:active { transform: scale(0.97); filter: brightness(0.9); }

    /* 스틸 아이콘 박스 */
    .steel-icon-box {
        background: linear-gradient(145deg, #e4e4e7, #d4d4d8);
        border: 1px solid #a1a1aa;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    }
    /* 스틸 구분선 */
    .steel-divider {
        border-color: #d4d4d8;
    }
    
    .form-input {
        width: 100%;
        padding: 16px;
        background: #f8fafc;
        border-radius: 14px;
        border: 1px solid #e2e8f0;
        /* ★ [한국어 IME 수정] !important 추가: Tailwind CDN은 <style>을 나중에 주입하므로
           text-sm(0.875rem=14px) 유틸리티 클래스가 이 값을 덮어쓸 수 있음.
           !important로 강제하여 16px 미만으로 내려가지 않도록 보장함 */
        font-size: 16px !important;
        outline: none;
        transition: all 0.2s ease-in-out;
        color: #1e293b;
    }
    .form-input:focus { 
        border-color: #3b82f6;
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); 
        background: #ffffff;
    }

    .type-btn { 
        border: 2px solid #f1f5f9 !important; 
        border-radius: 16px; 
        padding: 1.2rem; 
        display: flex; 
        flex-direction: column;
        align-items: center; 
        justify-content: center; 
        gap: 0.5rem; 
        transition: all 0.2s; 
        color: #64748b; 
        cursor: pointer; 
        background-color: white; 
        position: relative;
    }
    .type-btn:hover { background-color: #f8fafc; border-color: #cbd5e1; }
    .type-btn.selected { 
        border-color: #2563eb !important;
        background-color: #eff6ff !important; 
        color: #2563eb !important; 
        font-weight: bold; 
        box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.15);
    }
    
    .force-click { 
        pointer-events: auto !important;
        cursor: pointer !important; 
        z-index: 50 !important; 
        position: relative; 
    }

    /* 출생년도 롤링 피커 */
    .birth-year-item {
        transition: all 0.15s ease;
    }
    #birth-year-scroll::-webkit-scrollbar {
        display: none;
    }
    #birth-year-scroll {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .hide-scrollbar::-webkit-scrollbar { display: none; }
    .hidden { display: none !important; }

    /* Calendar */
    .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
    .calendar-day { 
        height: 38px; 
        display: flex; 
        align-items: center;
        justify-content: center; 
        border-radius: 10px; 
        font-size: 14px; 
        cursor: pointer; 
        transition: all 0.1s; 
        color: #334155;
    }
    .calendar-day:hover { background-color: #f1f5f9; }
    .calendar-day.selected { 
        background-color: #0f172a; 
        color: white; 
        font-weight: bold;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    }
    .calendar-day.range { background-color: #e0f2fe; color: #0284c7; font-weight: 600; }
    .calendar-day.disabled { color: #cbd5e1; pointer-events: none; opacity: 0.5; }
    
    /* Chat Bubble */
    .msg-bubble { 
        padding: 12px 16px;
        border-radius: 20px; 
        max-width: 75%; 
        font-size: 14px; 
        line-height: 1.5; 
        margin-bottom: 4px; 
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        word-break: break-word;
    }
    .msg-me { 
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); 
        color: white; 
        margin-left: auto; 
        border-bottom-right-radius: 6px; 
    }
    .msg-other { 
        background: white; 
        color: #1e293b; 
        margin-right: auto; 
        border-bottom-left-radius: 6px;
        border: 1px solid #e2e8f0;
    }
    
    /* Loading Spinner */
    #loading-overlay { 
        position: fixed; top:0; left:0; right:0; bottom:0; 
        background: rgba(255,255,255,0.95); 
        z-index: 20000; 
        display: none; 
        justify-content: center;
        align-items: center; 
        flex-direction: column; 
        backdrop-filter: blur(5px); 
    }
    .spinner { 
        border: 4px solid #e2e8f0; 
        border-top: 4px solid #0f172a;
        border-radius: 50%; 
        width: 44px; 
        height: 44px; 
        animation: spin 0.8s linear infinite;
    }
    @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
    
    /* Backgrounds */
    .login-bg { 
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
        position: relative;
    }
    .login-bg::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 60%;
        background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
        pointer-events: none;
    }
    .admin-modal-bg { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); }
    
    /* Toggle Switch */
    .toggle-checkbox { appearance: none; display: none; }
    .toggle-label {
        position: relative;
        display: block;
        width: 50px;
        height: 28px;
        background-color: #e2e8f0;
        border-radius: 9999px;
        cursor: pointer;
        transition: background-color 0.3s ease;
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
        -webkit-tap-highlight-color: transparent;
    }
    .toggle-label:after {
        content: '';
        position: absolute;
        top: 3px;
        left: 3px;
        width: 22px;
        height: 22px;
        background-color: white;
        border-radius: 50%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    }
    .toggle-checkbox:checked + .toggle-label { background-color: #3b82f6; }
    .toggle-checkbox:checked + .toggle-label:after { transform: translateX(22px); }

    /* Rolling Banner Dots */
    .ad-dot { transition: all 0.3s ease; }
    .ad-dot.active-dot { transform: scale(1.2); }

    /* Small Screen Adjustments */
    @media (max-width: 360px) {
        .text-lg { font-size: 16px !important; }
        .text-xl { font-size: 18px !important; }
        .btn-black { padding: 12px !important; }
    }
    /* 탭바 강제 표시 - 맨 아래 추가 */
#user-nav:not(.hidden) {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    z-index: 5000 !important;
}

#view-user-quest,
#view-user-history, 
#view-user-chat-list,
#view-user-more {
    padding-top: 0 !important;
    padding-bottom: 80px !important;
    height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 50 !important;
    background-color: #f8fafc;
}

/* ═══════════════════════════════════════════════════════════════════════════
   약관/문서 스타일
   ═══════════════════════════════════════════════════════════════════════════ */
.document-content {
    padding: 1rem;
    font-size: 14px;
    line-height: 1.8;
    color: #334155;
}

.doc-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.doc-section:last-child {
    border-bottom: none;
}

.doc-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(to bottom, #3b82f6, #1d4ed8);
    border-radius: 2px;
}

.doc-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}

.doc-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.doc-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #64748b;
    font-weight: bold;
}

.doc-list.check li::before {
    content: '✓';
    color: #22c55e;
}

.notice-box {
    background: #f8fafc;
    border-left: 4px solid #94a3b8;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin: 1rem 0;
}

.notice-box.warning {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

.notice-box.safe {
    background: #ecfdf5;
    border-left-color: #10b981;
}

.notice-box.info {
    background: #eff6ff;
    border-left-color: #3b82f6;
}

.highlight {
    background: linear-gradient(to top, #fef08a 40%, transparent 40%);
    padding: 0 2px;
    font-weight: 600;
}

.info-table {
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    margin: 1rem 0;
}

.info-row {
    display: flex;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

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

.info-label {
    width: 100px;
    flex-shrink: 0;
    font-weight: 600;
    color: #475569;
    font-size: 13px;
}

.info-value {
    flex: 1;
    color: #334155;
    font-size: 13px;
}

/* FAQ 스타일 */
.faq-content .faq-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    font-weight: 600;
    color: #1e293b;
}

.faq-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.faq-answer {
    padding: 1rem;
    color: #475569;
}

/* 공지사항 스타일 */
.notice-header {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.notice-header.partner {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.notice-badge {
    display: inline-block;
    background: #0f172a;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.notice-badge.partner {
    background: #059669;
}

.notice-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}

.greeting {
    font-size: 15px;
    color: #475569;
    margin-bottom: 1rem;
}

.quote {
    background: #f1f5f9;
    border-left: 4px solid #3b82f6;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #1e293b;
    font-weight: 500;
}

.promise-list, .guide-list {
    margin: 1.5rem 0;
}

.promise-item, .guide-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
}

.promise-number, .guide-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0f172a, #334155);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.promise-content h4, .guide-content h4 {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.promise-content p, .guide-content p {
    color: #475569;
    font-size: 13px;
}

.closing {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.signature {
    text-align: right;
    margin-top: 1.5rem;
    color: #64748b;
    font-size: 13px;
}

/* 금지 행위 리스트 */
.prohibited-list {
    margin: 1rem 0;
}

.prohibited-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #fef2f2;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.prohibited-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* ★★★ SweetAlert2 프리미엄 커스텀 스타일 ★★★ */

/* 팝업 둥근 모서리 + 그림자 */
.swal-round-popup {
    border-radius: 1.5rem !important;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.03) !important;
    padding: 1.5rem 1.2rem !important;
}

.swal-round-popup .swal2-title {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    padding-top: 0.5rem !important;
}

.swal-round-popup .swal2-html-container {
    font-size: 0.875rem !important;
    color: #64748b !important;
    margin: 0.5rem 0 !important;
}

.swal-round-popup .swal2-icon {
    margin: 1rem auto 0.5rem !important;
    transform: scale(0.85);
}

/* 확인 버튼 (기본 파란색) */
.swal-round-confirm {
    border-radius: 0.875rem !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    padding: 0.65rem 1.5rem !important;
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    box-shadow: 0 4px 14px rgba(59,130,246,0.4) !important;
    border: none !important;
    transition: all 0.2s ease !important;
}
.swal-round-confirm:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(59,130,246,0.5) !important;
}

/* 확인 버튼 (위험/삭제 빨간색) */
.swal-round-confirm-danger {
    border-radius: 0.875rem !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    padding: 0.65rem 1.5rem !important;
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 4px 14px rgba(239,68,68,0.4) !important;
    border: none !important;
    transition: all 0.2s ease !important;
}
.swal-round-confirm-danger:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(239,68,68,0.5) !important;
}

/* 취소 버튼 */
.swal-round-cancel {
    border-radius: 0.875rem !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    padding: 0.65rem 1.5rem !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    border: none !important;
    transition: all 0.2s ease !important;
}
.swal-round-cancel:hover {
    background: #e2e8f0 !important;
}

/* SweetAlert2 인풋 필드 스타일 */
.swal-round-popup .swal2-input,
.swal-round-popup .swal2-textarea {
    border-radius: 0.75rem !important;
    border: 1.5px solid #e2e8f0 !important;
    font-size: 0.875rem !important;
    padding: 0.7rem 1rem !important;
    transition: border-color 0.2s ease !important;
}
.swal-round-popup .swal2-input:focus,
.swal-round-popup .swal2-textarea:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1) !important;
}

/* SweetAlert2 애니메이션 개선 */
.swal-round-popup.swal2-show {
    animation: swalSlideIn 0.35s cubic-bezier(0.21, 1.02, 0.73, 1) !important;
}
.swal-round-popup.swal2-hide {
    animation: swalSlideOut 0.2s ease-in !important;
}
@keyframes swalSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes swalSlideOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(10px) scale(0.97); }
}

/* SweetAlert2 오버레이 */
.swal2-container.swal2-backdrop-show {
    background: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(4px) !important;
}

/* ★ 리뷰 요청 팝업 (스텐 프리미엄) */
.review-steel-popup {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}
.review-steel-popup .swal2-icon { display: none !important; }
.review-steel-popup .swal2-actions { display: none !important; }
.review-steel-popup .swal2-html-container { margin: 0 !important; padding: 0 !important; }

/* ★ 전역 기본 팝업 — 스텐 스타일 (모든 Swal.fire 기본 적용) */
.swal2-popup:not(.review-steel-popup) {
    background: linear-gradient(160deg, #fafafa 0%, #e4e4e7 30%, #d4d4d8 60%, #e4e4e7 100%) !important;
    border: 1.5px solid #3f3f46 !important;
    border-radius: 1.75rem !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.14), 0 8px 24px rgba(0,0,0,0.08) !important;
}
.swal2-popup:not(.review-steel-popup) .swal2-title {
    color: #18181b !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}
.swal2-popup:not(.review-steel-popup) .swal2-html-container,
.swal2-popup:not(.review-steel-popup) .swal2-content {
    color: #52525b !important;
}
.swal2-popup:not(.review-steel-popup) .swal2-confirm {
    background: #18181b !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.22) !important;
}
.swal2-popup:not(.review-steel-popup) .swal2-cancel {
    background: transparent !important;
    border: 1.5px solid #71717a !important;
    color: #52525b !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}
.swal2-popup:not(.review-steel-popup) .swal2-input,
.swal2-popup:not(.review-steel-popup) .swal2-textarea {
    border-radius: 12px !important;
    border: 1.5px solid #a1a1aa !important;
    background: rgba(255,255,255,0.65) !important;
}
.swal2-popup:not(.review-steel-popup) .swal2-input:focus,
.swal2-popup:not(.review-steel-popup) .swal2-textarea:focus {
    border-color: #18181b !important;
    box-shadow: 0 0 0 3px rgba(24,24,27,0.1) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ★★★ 프리미엄 실버 디자인 시스템 (Glassmorphism + Stainless Steel)
   ═══════════════════════════════════════════════════════════════════════════ */

/* --- 통합 카드: 리치 메탈릭 실버 배경 (모든 상태 공통) --- */
.glass-card,
.glass-card-confirmed {
    position: relative;
    background: linear-gradient(160deg, #ffffff 0%, #ededf0 25%, #e4e4e7 50%, #ededf0 75%, #f8f8fa 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.95);
    overflow: hidden;
}
/* 솔리드 보더 (그라데이션 제거) */
.glass-card::before,
.glass-card-confirmed::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    border: 1.5px solid #d4d4d8;
    pointer-events: none;
    z-index: 1;
}
/* 스텐 쉬머 애니메이션 */
.glass-card::after,
.glass-card-confirmed::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.35) 45%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.35) 55%, transparent 70%);
    animation: steelShimmer 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
    border-radius: 1.5rem;
}

/* 카드 내부 콘텐츠가 쉬머/보더 위에 표시 */
.glass-card > *,
.glass-card-confirmed > * {
    position: relative;
    z-index: 3;
}

/* --- 상태별 보더 컬러 (Solid Stroke) --- */
.card-border-confirmed::before { border-color: #22c55e !important; }
.card-border-completed::before { border-color: #3b82f6 !important; }
.card-border-cancelled::before { border-color: #ef4444 !important; }
.card-border-request::before   { border-color: #7c3aed !important; }
.card-border-credit::before    { border-color: #f59e0b !important; }

/* --- 3D 상태 버튼 (입체감) --- */
.status-btn-3d {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 3px 6px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.35);
    transform: translateY(0);
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: default;
}
.status-btn-3d:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* 상태별 3D 버튼 색상 */
.status-btn-pending {
    background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
    color: #fff;
    border: 1px solid #000000;
}
.status-btn-confirmed {
    background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
    color: #fff;
    border: 1px solid #059669;
    box-shadow: 0 3px 6px rgba(16,185,129,0.25), inset 0 1px 0 rgba(255,255,255,0.25);
}
.status-btn-completed {
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
    color: #fff;
    border: 1px solid #2563eb;
    box-shadow: 0 3px 6px rgba(59,130,246,0.25), inset 0 1px 0 rgba(255,255,255,0.25);
}
.status-btn-cancelled {
    background: linear-gradient(180deg, #fca5a5 0%, #ef4444 100%);
    color: #fff;
    border: 1px solid #dc2626;
}
.status-btn-ended {
    background: linear-gradient(180deg, #d4d4d8 0%, #a1a1aa 100%);
    color: #fff;
    border: 1px solid #71717a;
}
.status-btn-credit {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
    border: 1px solid #d97706;
    animation: pulse3d 2s infinite;
}
.status-btn-request {
    background: linear-gradient(180deg, #a78bfa 0%, #7c3aed 100%);
    color: #fff;
    border: 1px solid #6d28d9;
    animation: pulse3d 2s infinite;
}
@keyframes pulse3d {
    0%, 100% { box-shadow: 0 3px 6px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3); }
    50% { box-shadow: 0 3px 12px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.4), 0 0 12px rgba(255,255,255,0.15); }
}

/* --- 스텐 액센트 구분선 --- */
.steel-accent-line {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #a1a1aa 20%, #d4d4d8 50%, #a1a1aa 80%, transparent 100%);
    border: none;
    margin: 12px 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ★★★ 파스텔 베이지 & 화이트 테마 (상세뷰 전용)
   ═══════════════════════════════════════════════════════════════════════════ */

/* 베이지 헤더 (기존 steel-dark 대체) */
.beige-header {
    background: linear-gradient(145deg, #d4c5a9 0%, #c4b393 35%, #b8a882 50%, #c4b393 65%, #d4c5a9 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 4px 12px rgba(0,0,0,0.08);
}

/* 베이지 카드 (기존 steel-card 대체) */
.beige-card {
    background: #ffffff;
    border: 1px solid #e8dcc8;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(180, 160, 120, 0.08), inset 0 1px 0 rgba(255,255,255,1);
}

/* 베이지 악센트 카드 (하이라이트 섹션) */
.beige-accent {
    background: linear-gradient(160deg, #faf6ef 0%, #f5efe3 50%, #f0e8d8 100%);
    border: 1px solid #e8dcc8;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(180, 160, 120, 0.06);
}

/* 베이지 아이콘 박스 */
.beige-icon-box {
    background: linear-gradient(145deg, #f5efe3, #ebe3d3);
    border: 1px solid #ddd0b8;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

/* 베이지 태그 */
.beige-tag {
    background: linear-gradient(145deg, #f5efe3 0%, #ebe3d3 100%);
    border: 1px solid #ddd0b8;
    color: #6b5c45;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.beige-tag-dark {
    background: linear-gradient(145deg, #8b7a5e 0%, #a0906e 50%, #8b7a5e 100%);
    border: 1px solid #6b5c45;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

/* 베이지 버튼 */
.beige-btn {
    background: linear-gradient(145deg, #8b7a5e 0%, #a0906e 40%, #8b7a5e 100%);
    color: #fff;
    border: 1px solid #6b5c45;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 2px 6px rgba(107, 92, 69, 0.2);
    transition: all 0.15s;
}
.beige-btn:active { transform: scale(0.98); filter: brightness(0.92); }

/* 베이지 구분선 */
.beige-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #ddd0b8 20%, #e8dcc8 50%, #ddd0b8 80%, transparent 100%);
    border: none;
    margin: 12px 0;
}

/* --- ★★★ 실시간 견적 카드 (파트너 퀘스트) ★★★ --- */
.realtime-quote-card {
    position: relative;
    background: linear-gradient(160deg, #fafafa 0%, #e4e4e7 30%, #d4d4d8 60%, #e4e4e7 100%);
    border: 1.5px solid #a1a1aa;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
}
/* 은은한 반짝이 효과 (shimmer) */
.realtime-quote-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.5) 45%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.5) 55%, transparent 70%);
    animation: steelShimmer 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
    border-radius: 1.5rem;
}
@keyframes steelShimmer {
    0% { left: -100%; }
    40% { left: 120%; }
    100% { left: 120%; }
}

/* 글로시 광택 오버레이 */
.glossy-overlay {
    position: relative;
}
.glossy-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 1.5rem 1.5rem 0 0;
    pointer-events: none;
    z-index: 3;
}

/* 실시간 뱃지 깜빡이 */
.realtime-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: linear-gradient(145deg, #52525b 0%, #71717a 50%, #52525b 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
    letter-spacing: 0.02em;
}
.realtime-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: realtimePulse 1.5s infinite;
    box-shadow: 0 0 4px #4ade80;
}
@keyframes realtimePulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 4px #4ade80; }
    50% { opacity: 0.5; transform: scale(0.7); box-shadow: 0 0 8px #4ade80; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ★★★ 상세뷰 프리미엄 스텐 배경 (Premium Stainless Detail View)
   ═══════════════════════════════════════════════════════════════════════════ */

/* 상세뷰 전체 래퍼: 메탈릭 그라디언트 */
#modal-detail-view {
    background: linear-gradient(160deg, #fafafa 0%, #e4e4e7 30%, #d4d4d8 60%, #e4e4e7 100%) !important;
}

/* 상세뷰 헤더: 반투명 스텐 */
#modal-detail-view > div:first-child {
    background: rgba(250, 250, 250, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(161, 161, 170, 0.25) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
}

/* 상세뷰 콘텐츠 영역: 투명 배경 + 글로시 오버레이 + 쉬머 */
#detail-content {
    background: transparent !important;
    position: relative;
    overflow-x: hidden;
    color: #18181b;
    line-height: 1.8;
}

/* 글로시 광택 오버레이 (상단 → 하단 페이드) */
#detail-content::before {
    content: '';
    position: fixed;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.05) 60%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* 쉬머 (빛 흐르는 효과) */
#detail-content::after {
    content: '';
    position: fixed;
    top: 56px;
    left: -100%;
    width: 60%;
    height: calc(100vh - 56px);
    max-width: 290px;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.4) 45%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.4) 55%, transparent 70%);
    animation: steelShimmer 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* 콘텐츠 내부 요소가 오버레이 위에 표시되도록 */
#detail-content > * {
    position: relative;
    z-index: 1;
}
/* ═══════════════════════════════════════════════════════
   ★ 대형 텍스트 에디터 Swal 팝업 (홍보 메시지 / 견적 문구)
   ═══════════════════════════════════════════════════════ */
.swal-editor-popup {
    max-height: 88vh !important;
    overflow-y: auto !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}
.swal-editor-popup .swal2-html-container {
    overflow: visible !important;
    padding: 0 !important;
}
.swal-editor-popup .swal2-title {
    font-size: 1.1rem !important;
    padding-bottom: 0.5rem !important;
}
/* 텍스트 에디터 textarea 공통 스타일 */
.swal-editor-textarea {
    width: 100%;
    height: 40vh;
    min-height: 250px;
    font-size: 16px;
    line-height: 1.75;
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    resize: none;
    font-family: inherit;
    box-sizing: border-box;
    background: #f8fafc;
    color: #1e293b;
    transition: border-color .15s;
    overflow-y: auto;
}
.swal-editor-textarea:focus {
    border-color: #6366f1;
    background: #fff;
}
.swal-char-counter {
    display: flex;
    justify-content: flex-end;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-top: 6px;
    margin-bottom: 2px;
}
.swal-char-counter.near-limit { color: #f59e0b; }
.swal-char-counter.at-limit    { color: #ef4444; }
