        /* --- 테마 및 변수 설정 (Mystic Dark & Silver) --- */
        :root {
            /* 텍스트: Silver Grey와 은은한 푸른빛 */
            --text-main: #E2E8F0;
            --text-sub: #94A3B8;

            /* 포인트 컬러: 신금(辛金)의 Silver와 목(木) 기운의 Cyan/Blue */
            --accent-silver: #C0C0C0;
            --accent-metal: #94A3B8;
            --accent-blue: #3B82F6;
            --accent-cyan: #22D3EE;

            /* 글래스모피즘: 극도로 얇고 투명한 유리 질감 */
            --glass-bg: rgba(15, 23, 42, 0.25);
            /* 투명도 대폭 상향 */
            --glass-border: rgba(255, 255, 255, 0.1);
            /* 테두리를 은빛/흰빛으로 선명하게 */
            --accent-glow: rgba(34, 211, 238, 0.4);

            /* 오행 색상 (다크모드에 맞춘 보석/네온 톤으로 최적화) */
            --wood: #10B981;
            --fire: #EF4444;
            --earth: #F59E0B;
            --metal: #94A3B8;
            --water: #3B82F6;
            --danger: #ff6b6b;
        }

        /* --- 기본 초기화 (화면 쏠림 버그 해결) --- */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
            /* 화면 쏠림을 방지하기 위해 100vw 대신 100% 사용, 기본 배경색 고정 */
            background-color: #020617;
            color: var(--text-main);
            width: 100%;
            height: 100vh;
            overflow: hidden;
        }

        #app {
            display: flex;
            width: 100%;
            height: 100%;
            position: relative;
            z-index: 1;
            overflow: hidden;
            /* 오로라가 화면 밖으로 삐져나가는 것 방지 */
        }

        /* --- 🌟 배경 오로라 (글래스모피즘의 핵심: 빛의 산란) --- */
        #app::before,
        #app::after {
            content: '';
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            /* 강한 블러로 신비로운 빛 연출 */
            z-index: -1;
            /* 패널들 뒤로 배치 */
            pointer-events: none;
        }

        /* 좌측 상단의 밝은 시안(Cyan) 빛 */
        #app::before {
            top: -10%;
            left: -5%;
            width: 45vw;
            height: 45vw;
            background: radial-gradient(circle, rgba(34, 211, 238, 0.25) 0%, transparent 70%);
        }

        /* 우측 하단의 깊은 블루(Blue) 빛 */
        #app::after {
            bottom: -10%;
            right: -5%;
            width: 55vw;
            height: 55vw;
            background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
        }

        /* --- 레이아웃 및 리얼 글래스모피즘 패널 --- */
        .section-left,
        .section-right {
            width: 25%;
            height: 100%;
            display: flex;
            flex-direction: column;
            background: var(--glass-bg);

            /* 핵심 굴절 효과 */
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);

            border-left: 1px solid var(--glass-border);
            border-right: 1px solid var(--glass-border);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
            /* 패널의 입체감 부여 */
            z-index: 10;
        }

        .section-center {
            width: 50%;
            height: 100%;
            position: relative;
            overflow: hidden;
        }

        /* --- 모바일 반응형 --- */
        @media (max-width: 1024px) {
            body {
                overflow-y: auto;
                height: auto;
            }

            #app {
                flex-direction: column;
                height: auto;
                overflow: visible;
            }

            .section-left,
            .section-center,
            .section-right {
                width: 100%;
                height: auto;
                border: none;
                backdrop-filter: none;
                background: rgba(2, 6, 23, 0.95);
            }

            .section-center {
                order: 1;
                height: 100vh;
            }

            .section-right {
                order: 2;
                padding-bottom: 40px;
            }

            .section-left {
                order: 3;
            }

            #app::before,
            #app::after {
                display: none;
            }

            /* 모바일에선 푸터가 패널에 가리지 않고 항상 위에 보이도록 */
            #app-footer {
                z-index: 100;
            }
        }

        /* --- 공통 패널 및 폼 디자인 --- */
        .panel {
            padding: 24px;
            flex: 1;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
        }

        h2 {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--accent-silver);
            margin-bottom: 20px;
            text-align: center;
            letter-spacing: 1px;
        }

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

        label {
            display: block;
            font-size: 0.8rem;
            margin-bottom: 6px;
            color: var(--text-sub);
            font-weight: 600;
        }

        input,
        select {
            width: 100%;
            padding: 12px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-main);
            border-radius: 10px;
            font-size: 0.95rem;
            transition: 0.3s ease;
        }

        option {
            background: #0A1128;
            color: #E2E8F0;
        }

        input:focus,
        select:focus {
            outline: none;
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--accent-cyan);
            box-shadow: 0 0 12px rgba(34, 211, 238, 0.2);
        }

        input::placeholder {
            color: #64748B;
        }

        /* --- 버튼 스타일 --- */
        .btn-group {
            margin-top: 24px;
            display: flex;
            gap: 10px;
            flex-direction: column;
        }

        button {
            padding: 14px;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-reset {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-main);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

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

        .btn-submit {
            background: linear-gradient(135deg, #E2E8F0 0%, #94A3B8 100%);
            color: #020617;
            box-shadow: 0 4px 15px rgba(192, 192, 192, 0.1);
        }

        .btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px var(--accent-glow);
            filter: brightness(1.1);
        }

        .btn-delete {
            background: transparent;
            color: var(--danger);
            border: 1px solid rgba(255, 107, 107, 0.3);
            margin-top: auto;
            font-size: 0.85rem;
            padding: 10px;
        }

        .btn-delete:hover {
            background: rgba(255, 107, 107, 0.15);
        }

        /* --- 즐겨찾기 목록 --- */
        .fav-info {
            text-align: center;
            color: var(--text-sub);
            font-size: 0.9rem;
            padding-top: 40px;
        }

        .fav-list {
            list-style: none;
            flex: 1;
            overflow-y: auto;
            margin-bottom: 20px;
            padding-right: 4px;
        }

        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .fav-item {
            background: rgba(255, 255, 255, 0.03);
            padding: 12px;
            border-radius: 10px;
            margin-bottom: 8px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.3s ease;
        }

        .fav-item:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--accent-cyan);
            box-shadow: 0 0 10px rgba(34, 211, 238, 0.15);
        }

        .fav-main {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-main);
        }

        .fav-sub {
            font-size: 0.8rem;
            color: var(--text-sub);
            margin-top: 2px;
        }

        .btn-fav-delete {
            color: var(--danger);
            font-size: 0.85rem;
            padding: 4px 8px;
            margin-right: 4px;
            border-radius: 6px;
            transition: background 0.2s;
        }

        .btn-fav-delete:hover {
            background: rgba(255, 107, 107, 0.15);
        }

        .fav-actions {
            display: flex;
            align-items: center;
        }

        /* --- 히어로 섹션 (중앙 신묘한 만세력 카드) --- */
        #hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 1;
            /* 결과 화면(z-index: 2)보다 뒤에 배치 */
        }

        /* 중앙 글로우 스팟 추가 */
        #hero-overlay::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 30vw;
            height: 30vw;
            background: radial-gradient(circle, rgba(148, 163, 184, 0.15) 0%, transparent 60%);
            filter: blur(50px);
            z-index: -1;
            pointer-events: none;
        }

        .hero-content {
            background: rgba(15, 23, 42, 0.3);
            /* 유리를 투명하게 */
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 48px 64px;
            border-radius: 32px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            /* 반사광 강조 */
            text-align: center;
            pointer-events: auto;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.02);
        }

        /* --- [신규 추가] 아이콘 플로팅 및 아우라 애니메이션 --- */

        /* 1. 무중력 부유 애니메이션 */
        @keyframes floatIcon {
            0% {
                transform: translateY(0px);
            }

            50% {
                transform: translateY(-12px);
            }

            100% {
                transform: translateY(0px);
            }
        }

        /* 2. 시안(Cyan) & 은빛(Silver) 숨쉬기 아우라 */
        @keyframes auraPulse {
            0% {
                box-shadow: 0 0 20px rgba(34, 211, 238, 0.3),
                    0 0 0px rgba(59, 130, 246, 0),
                    /* 투명한 그림자 추가 */
                    inset 0 0 10px rgba(255, 255, 255, 0.1);
            }

            50% {
                box-shadow: 0 0 40px rgba(34, 211, 238, 0.7),
                    0 0 60px rgba(59, 130, 246, 0.5),
                    inset 0 0 20px rgba(255, 255, 255, 0.4);
            }

            100% {
                box-shadow: 0 0 20px rgba(34, 211, 238, 0.3),
                    0 0 0px rgba(59, 130, 246, 0),
                    inset 0 0 10px rgba(255, 255, 255, 0.1);
            }
        }

        /* 아이콘 래퍼: 부유(Floating) 담당 */
        .hero-icon-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 24px;
            animation: floatIcon 4s ease-in-out infinite;
            /* 4초 주기로 부드럽게 위아래 이동 */
        }

        /* 아이콘 본체: 원형 마스킹 및 빛 발산 담당 */
        .hero-icon {
            width: 120px;
            height: 120px;
            border-radius: 50%;

            /* [핵심] 배경 이미지로 설정하고 10% 확대하여 움직일 공간 확보 */
            background-image: url('../assets/icon.png');
            background-size: 110%;

            /* 이제 마음대로 중심점을 이동할 수 있습니다! (숫자를 조절해보세요) */
            /* 45%로 주면 구슬 중심이 왼쪽으로 살짝 이동하여 쏠림이 해결될 것입니다. */
            background-position: 45% 50%;
            background-repeat: no-repeat;

            border: 1px solid rgba(255, 255, 255, 0.25);
            animation: auraPulse 4s ease-in-out infinite;
            filter: contrast(1.1) brightness(1.05);
        }

        /* 벤더 프리픽스 경고 해결됨 */
        .hero-title {
            font-size: 2.2rem;
            font-weight: 800;
            margin-bottom: 12px;
            background: linear-gradient(135deg, #FFFFFF 0%, #94A3B8 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
            letter-spacing: -0.5px;
        }

        .hero-desc {
            font-size: 1.1rem;
            color: var(--text-sub);
            font-weight: 500;
        }

        /* --- [신규 추가] Fade-in & Slide-up 애니메이션 --- */
        @keyframes fadeSlideUp {
            0% {
                opacity: 0;
                transform: translateY(30px);
            }

            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* --- 결과 뷰 화면 (은은한 실루엣 비침 튜닝) --- */
        #result-view {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;

            /* [수정] 투명도를 없애고 완벽한 딥 블루 단색으로 덮음 */
            background: #020617;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;

            z-index: 2;
            /* footer(5) 보다 뒤에 배치 */
            flex-direction: column;
            padding: 24px 32px 80px 32px;
            /* footer 가림 방지 패딩 */
            overflow-y: auto;

            /* 1. 마이크로 인터랙션 적용 (1.0s) */
            animation: fadeSlideUp 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;

            /* 3. 우측 스크롤바 완전 숨김 */
            -ms-overflow-style: none;
            /* IE and Edge */
            scrollbar-width: none;
            /* Firefox */
        }

        #result-view::-webkit-scrollbar {
            display: none;
        }

        /* Chrome, Safari, Opera */

        .result-header {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            margin-bottom: 20px;
            gap: 12px;
        }

        .res-name {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--text-main);
            white-space: nowrap;
        }

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

        /* --- [신규 추가] 버튼 숨쉬기 애니메이션 --- */
        @keyframes pulseGlow {
            0% {
                box-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
            }

            50% {
                box-shadow: 0 0 25px rgba(34, 211, 238, 0.8), 0 0 10px rgba(59, 130, 246, 0.6);
            }

            100% {
                box-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
            }
        }

        /* --- 헤더 우측 버튼 (수정) --- */
        .btn-prompt-header {
            padding: 10px 20px;
            font-size: 0.95rem;
            font-weight: 800;
            border-radius: 25px;
            /* 실버에서 강렬한 시안-블루 그라데이션으로 변경 */
            background: linear-gradient(135deg, #22D3EE 0%, #3B82F6 100%);
            color: #FFFFFF;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            animation: pulseGlow 2.5s infinite;
            /* 펄스 애니메이션 적용 */
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        }

        .btn-prompt-header:hover {
            transform: translateY(-2px) scale(1.02);
            filter: brightness(1.15);
            animation: none;
            /* 마우스 오버 시 숨쉬기 정지하고 밝게 고정 */
            box-shadow: 0 10px 25px rgba(34, 211, 238, 0.6);
        }

        .btn-close {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            color: var(--text-main);
            transition: 0.2s;
        }

        .btn-close:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        /* 사주 원국표 */
        .saju-grid {
            display: flex;
            flex-direction: row-reverse;
            justify-content: center;
            gap: 20px;
            margin-bottom: 30px;
            padding: 30px;
            background: rgba(15, 23, 42, 0.4);
            border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        }

        .saju-pillar {
            display: flex;
            flex-direction: column;
            gap: 10px;
            align-items: center;
            width: 80px;
        }

        .pillar-title {
            font-size: 0.9rem;
            color: var(--text-sub);
            font-weight: 700;
        }

        .saju-char {
            width: 80px;
            height: 80px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 2.2rem;
            font-weight: 700;
            font-family: 'Times New Roman', serif;
            border-radius: 20px;
            position: relative;
            color: #fff;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        /* --- [수정] 사주 한자 우측 하단 한글 라벨 (동그란 배경) --- */
        .saju-label {
            position: absolute;
            bottom: -6px;
            right: -6px;
            font-size: 0.85rem;
            font-weight: 800;
            color: #FFFFFF;
            background: rgba(2, 6, 23, 0.9);
            /* 다크 네이비 원형 배경 */
            border: 1px solid rgba(255, 255, 255, 0.25);
            /* 은은한 실버 테두리 */
            border-radius: 50%;
            /* 완벽한 동그라미 */
            width: 26px;
            height: 26px;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
            text-shadow: none;
            /* 배경이 생겼으므로 텍스트 그림자는 제거 */
            backdrop-filter: blur(4px);
        }

        /* --- [신규 추가] 오행 카운터 디자인 --- */
        .element-counter-wrapper {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 6px;

            /* 왼쪽(left) 여백과 선을 오른쪽(right)으로 변경하여 사주 기둥과의 사이에 배치 */
            padding-right: 20px;
            margin-right: 10px;
            border-right: 1px dashed var(--glass-border);
        }

        .elem-badge {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            color: var(--text-main);
            font-weight: 600;
            background: rgba(255, 255, 255, 0.05);
            padding: 4px 10px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.2s ease;
        }

        .elem-badge:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .elem-badge .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        }

        .elem-wood {
            background: var(--wood);
        }

        .elem-fire {
            background: var(--fire);
        }

        .elem-earth {
            background: var(--earth);
        }

        .elem-metal {
            background: var(--metal);
        }

        .elem-water {
            background: var(--water);
        }

        /* 운의 흐름 */
        .luck-section {
            margin-bottom: 24px;
        }

        .luck-header-row {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
            border-left: 4px solid var(--accent-cyan);
            padding-left: 12px;
        }

        .luck-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-main);
            margin-right: 8px;
        }

        /* --- 운의 흐름 스크롤 영역 (수정) --- */
        .luck-scroll-area {
            display: flex;
            overflow-x: auto;
            padding: 4px 4px 16px 4px;
            gap: 12px;

            /* 3. 하단 가로 스크롤바 완전 숨김 */
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        .luck-scroll-area::-webkit-scrollbar {
            display: none;
        }

        .luck-card {
            flex: 0 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 14px;
            border-radius: 16px;
            min-width: 90px;
            background: rgba(30, 41, 59, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        .luck-card.current {
            background: rgba(15, 23, 42, 0.8);
            border: 1px solid var(--accent-cyan);
            transform: scale(1.05);
            box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
            z-index: 5;
        }

        .luck-header {
            font-size: 0.8rem;
            color: var(--text-sub);
            margin-bottom: 6px;
            font-weight: 600;
        }

        .luck-ganzhi {
            display: flex;
            gap: 4px;
            margin-bottom: 6px;
        }

        .luck-char {
            width: 30px;
            height: 30px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 6px;
            color: #fff;
            font-family: serif;
            font-size: 1.1rem;
            font-weight: bold;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        }

        .luck-korean {
            font-size: 0.95rem;
            color: var(--text-main);
            font-weight: 700;
        }

        .luck-footer {
            font-size: 0.8rem;
            color: var(--text-sub);
            margin-top: 4px;
            font-weight: 500;
        }

        /* 로딩 및 모달 (기존 유지, 색상만 동기화) */
        #loading-screen {
            position: fixed;
            /* absolute -> fixed 변경하여 최상위 스크롤 영향 안 받게 처리 */
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(2, 6, 23, 0.85);
            backdrop-filter: blur(10px);
            z-index: 5000;
            /* 200 -> 5000: 상단 top-header나 기타 DOM 요소 위로 무조건 덮기 위함 */
            display: none;
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(192, 192, 192, 0.1);
            border-top-color: var(--accent-cyan);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin-bottom: 20px;
            box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        #prompt-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(8px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .modal-content {
            background: rgba(15, 23, 42, 0.9);
            width: 90%;
            max-width: 500px;
            padding: 28px;
            border-radius: 24px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .modal-header {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-main);
            text-align: center;
        }

        .modal-tags-wrapper {
            display: flex;
            flex-direction: column;
            gap: 10px;
            width: 100%;
        }

        .modal-tag-row {
            display: flex;
            justify-content: center;
            gap: 8px;
            width: 100%;
        }

        .modal-tag {
            flex: 1;
            max-width: 110px;
            text-align: center;
            padding: 10px 8px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-sub);
            cursor: pointer;
            transition: all 0.2s;
        }

        .modal-tag:hover {
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-main);
        }

        .modal-tag.active {
            background: var(--accent-blue);
            color: #fff;
            border-color: var(--accent-cyan);
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
        }

        /* --- 모달 리치 에디터 박스 디자인 (강제 화이트 처방) --- */
        #modal-inquiry-box {
            width: 100% !important;
            height: 110px !important;
            padding: 16px !important;
            border-radius: 12px !important;
            border: 1px solid rgba(255, 255, 255, 0.2) !important;
            background: rgba(15, 23, 42, 0.6) !important;
            font-family: inherit !important;
            font-size: 1rem !important;
            line-height: 1.6 !important;

            /* 핵심: 어떤 코드가 방해하든 무조건 눈부신 순백색으로 렌더링! */
            color: #E2E8F0 !important;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;

            resize: none !important;
            outline: none !important;
            transition: all 0.3s ease !important;
        }

        /* 에디터 박스 클릭(Focus) 시 시안(Cyan) 빛 발산 */
        #modal-inquiry-box:focus {
            background: rgba(15, 23, 42, 0.9) !important;
            border-color: var(--accent-cyan) !important;
            box-shadow: 0 0 15px rgba(34, 211, 238, 0.2) !important;
        }

        /* 아무것도 입력 안 했을 때 안내 문구 색상 */
        #modal-inquiry-box::placeholder {
            color: #94A3B8 !important;
        }

        .modal-footer {
            display: flex;
            gap: 12px;
            margin-top: 5px;
        }

        .modal-footer button {
            flex: 1;
            padding: 14px;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            font-size: 1rem;
            transition: 0.3s;
        }

        .btn-cancel {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-main);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

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

        .btn-confirm {
            background: linear-gradient(135deg, #94A3B8 0%, #C0C0C0 100%);
            color: #020617;
            border: none;
            box-shadow: 0 4px 15px rgba(192, 192, 192, 0.2);
        }

        .btn-confirm:hover {
            filter: brightness(1.1);
            box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
            transform: translateY(-1px);
        }

        /* --- 푸터 --- */
        #app-footer {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            z-index: 5;
            /* 좌우 패널(z-index:10) 뒤에 배치 */
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            background: rgba(2, 6, 23, 0.75);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            pointer-events: auto;
        }

        .footer-link {
            background: none;
            border: none;
            color: var(--text-sub);
            font-size: 0.75rem;
            cursor: pointer;
            padding: 4px 10px;
            border-radius: 20px;
            transition: all 0.2s ease;
            font-family: inherit;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .footer-link:hover {
            color: var(--accent-cyan);
            background: rgba(34, 211, 238, 0.08);
        }

        .footer-sep {
            color: rgba(255, 255, 255, 0.15);
            font-size: 0.75rem;
            user-select: none;
        }

        /* --- 문서 뷰어 모달 --- */
        #doc-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            padding: 20px;
        }

        .doc-modal-content {
            background: rgba(10, 17, 40, 0.97);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 24px;
            width: 100%;
            max-width: 720px;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
            overflow: hidden;
        }

        .doc-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 28px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            flex-shrink: 0;
        }

        .doc-modal-title {
            font-size: 1rem;
            font-weight: 700;
            color: var(--accent-cyan);
            letter-spacing: 0.5px;
        }

        .doc-modal-close {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-sub);
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 1.1rem;
            transition: all 0.2s;
            line-height: 1;
        }

        .doc-modal-close:hover {
            background: rgba(255, 107, 107, 0.2);
            border-color: rgba(255, 107, 107, 0.4);
            color: #ff6b6b;
        }

        .doc-modal-body {
            padding: 28px 32px;
            overflow-y: auto;
            flex: 1;
            color: var(--text-main);
            line-height: 1.8;
            font-size: 0.9rem;
        }

        /* 마크다운 렌더링 스타일 */
        .doc-modal-body h1 {
            font-size: 1.5rem;
            font-weight: 800;
            color: #FFFFFF;
            margin-bottom: 6px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            text-align: left;
            letter-spacing: 0;
        }

        .doc-modal-body h2 {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--accent-cyan);
            margin-top: 28px;
            margin-bottom: 10px;
            text-align: left;
            letter-spacing: 0;
            border-left: 3px solid var(--accent-cyan);
            padding-left: 10px;
        }

        .doc-modal-body h3 {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--accent-silver);
            margin-top: 20px;
            margin-bottom: 8px;
            text-align: left;
        }

        .doc-modal-body p {
            margin-bottom: 10px;
            color: var(--text-main);
        }

        .doc-modal-body strong {
            color: #FFFFFF;
            font-weight: 700;
        }

        .doc-modal-body blockquote {
            border-left: 3px solid var(--accent-blue);
            padding: 10px 16px;
            margin: 14px 0;
            background: rgba(59, 130, 246, 0.08);
            border-radius: 0 10px 10px 0;
            color: #FFFFFF;
            font-weight: 600;
        }

        .doc-modal-body img {
            max-width: 100%;
            height: auto;
            border-radius: 12px;
            margin: 16px 0;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .doc-modal-body table {
            width: 100%;
            border-collapse: collapse;
            margin: 14px 0;
            font-size: 0.85rem;
        }

        .doc-modal-body th {
            background: rgba(34, 211, 238, 0.1);
            color: var(--accent-cyan);
            padding: 10px 14px;
            text-align: left;
            border-bottom: 1px solid rgba(34, 211, 238, 0.2);
        }

        .doc-modal-body td {
            padding: 9px 14px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            color: var(--text-main);
        }

        .doc-modal-body tr:hover td {
            background: rgba(255, 255, 255, 0.03);
        }

        .doc-modal-body ul,
        .doc-modal-body ol {
            padding-left: 20px;
            margin-bottom: 10px;
        }

        .doc-modal-body li {
            margin-bottom: 5px;
            color: var(--text-main);
        }

        .doc-modal-body hr {
            border: none;
            border-top: 1px solid rgba(255, 255, 255, 0.07);
            margin: 20px 0;
        }

        .doc-modal-body a {
            color: var(--accent-cyan);
            text-decoration: none;
        }

        .doc-modal-body .doc-meta {
            font-size: 0.8rem;
            color: var(--text-sub);
            margin-bottom: 20px;
        }

        /* --- 의견 및 문의 모달 --- */
        #contact-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 3000;
            padding: 20px;
        }

        /* --- 커스텀 알림창 (메시지 팝업) --- */
        #custom-alert-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        #custom-alert-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }

        .custom-alert-box {
            background: rgba(15, 23, 42, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 20px;
            padding: 30px;
            width: 85%;
            max-width: 400px;
            text-align: center;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.02);
            transform: scale(0.9);
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        #custom-alert-overlay.show .custom-alert-box {
            transform: scale(1);
        }

        .custom-alert-message {
            color: var(--text-main);
            font-size: 1rem;
            line-height: 1.6;
            margin-bottom: 24px;
            white-space: pre-line;
            word-break: keep-all;
            /* 단어 끊김 현상 방지 */
            font-weight: 500;
        }

        .custom-alert-btn {
            background: linear-gradient(135deg, #22D3EE 0%, #3B82F6 100%);
            color: #FFFFFF;
            border: none;
            padding: 12px 30px;
            border-radius: 25px;
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(34, 211, 238, 0.3);
            transition: all 0.2s ease;
        }

        .custom-alert-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(34, 211, 238, 0.5);
            filter: brightness(1.1);
        }

        /* --- 커스텀 확인창 (Confirm 팝업) --- */
        #custom-confirm-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        #custom-confirm-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }

        .custom-confirm-box {
            background: rgba(15, 23, 42, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 20px;
            padding: 30px;
            width: 85%;
            max-width: 400px;
            text-align: center;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.02);
            transform: scale(0.9);
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        #custom-confirm-overlay.show .custom-confirm-box {
            transform: scale(1);
        }

        .custom-confirm-message {
            color: var(--text-main);
            font-size: 1rem;
            line-height: 1.6;
            margin-bottom: 24px;
            white-space: pre-line;
            /* js에서 br 태그 없어도 개행 되게함 */
            word-break: keep-all;
            /* 단어 끊김 현상 방지 */
            font-weight: 500;
        }

        .custom-confirm-actions {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-top: 10px;
        }

        .custom-confirm-btn {
            padding: 12px 24px;
            border-radius: 25px;
            font-size: 0.95rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
            flex: 1;
            max-width: 140px;
        }

        .btn-cancel {
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-main);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .btn-cancel:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        .btn-confirm-action {
            background: linear-gradient(135deg, #22D3EE 0%, #3B82F6 100%);
            color: #FFFFFF;
            border: none;
            box-shadow: 0 4px 15px rgba(34, 211, 238, 0.3);
        }

        .btn-confirm-action:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(34, 211, 238, 0.5);
            filter: brightness(1.1);
        }