/* Chance Homepage Styles */
/* ================= 원본 스타일 100% 유지 ================= */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        body { font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; color: #333; line-height: 1.6; background-color: #fcfcfc; }
        
        a { text-decoration: none; color: inherit; }
        
        /* 포인트 컬러 */
        :root {
            --chance-blue: #5090cd; 
            --chance-dark: #2c3e50; 
            --chance-gray: #111111;
        }

        /* ================= 1. 헤더 & 네비게이션 ================= */
        header {
            display: flex; justify-content: space-between; align-items: center;
            padding: 9px 5%; border-bottom: none;
            background-color: rgba(255, 255, 255, 0.85);
            position: sticky; top: 0; z-index: 1000;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
            transition: all 0.3s ease;
        }

        .logo { 
            display: inline-flex; 
            align-items: center; 
            transform: translateY(3px); 
        }
        .logo img { height: 64px; width: auto; mix-blend-mode: multiply; -webkit-mix-blend-mode: multiply; transition: transform 0.3s ease; } 
        .logo img:hover { transform: scale(1.03); }

        .nav-menu { display: flex; gap: 16px; align-items: center; }
        
        /* 모든 메뉴 링크의 입체 버튼화 */
        .nav-menu a { 
            font-size: 1.05rem !important;
            font-weight: 600 !important;
            color: #111111 !important;
            text-transform: uppercase;
            padding: 8px 20px;
            border-radius: 10px;
            border: 2px solid var(--chance-blue) !important;
            background: #ffffff !important;
            box-shadow: 3px 3px var(--chance-blue) !important;
            cursor: pointer;
            transition: all 0.1s ease !important;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .nav-menu a:hover { 
            background: #f1f5f9 !important;
            transform: translate(-1px, -1px);
            box-shadow: 4px 4px var(--chance-blue) !important;
        }
        .nav-menu a:active {
            box-shadow: none !important;
            transform: translate(3px, 3px) !important;
        }

        .nav-icon { height: 18px; width: auto; vertical-align: middle; position: relative; top: -1px; }

        /* ====        /* ================= 2. 메인 배너 (하늘/바다 2존 완벽 중앙 분할 레이아웃) ================= */
        .hero { 
            min-height: calc(100vh - 68px);
            min-height: calc(100dvh - 68px);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 24px 5% 36px 5%;
            background-image: linear-gradient(rgba(255,255,255,0.06), rgba(255,255,255,0.06)), url('bg.webp');
            background-size: cover;
            background-position: center;
            border-bottom: 1px solid rgba(0,0,0,0.05);
            box-sizing: border-box;
            position: relative;
        }

        /* 1. 하늘 영역: 행복도시 세종, 수직 중앙 & 상단 4개 버튼 아래 카드 정렬 */
        .hero-sky-zone {
            width: 100%;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 40px;
            flex: 1;
            min-height: 200px;
        }

        .hero-cards-top {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 12px;
            max-width: 530px;
            width: 100%;
            margin-top: -12px;
        }

        /* 2. 바다 영역: 여러분들의 찬스메이커가 되겠습니다. 수직 중앙 */
        .hero-ocean-zone {
            width: 100%;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 6px;
            flex: 1.15;
            min-height: 250px;
        }

        /* 타이포그래피 공통 */
        .hero-slogan-title {
            font-weight: 900;
            color: #ffffff;
            word-break: keep-all;
            text-shadow: 
                /* 1. 8방향 촘촘한 테두리 (깨짐 방지) */
                -1.5px -1.5px 0 var(--chance-blue),  
                 1.5px -1.5px 0 var(--chance-blue),
                -1.5px  1.5px 0 var(--chance-blue),
                 1.5px  1.5px 0 var(--chance-blue),
                -1.5px  0px   0 var(--chance-blue),
                 1.5px  0px   0 var(--chance-blue),
                 0px   -1.5px 0 var(--chance-blue),
                 0px    1.5px 0 var(--chance-blue),
                /* 2. 우하(+X, +Y) 3D 입체 림 그림자 */
                2px 2px 0 var(--chance-blue), 
                3px 3px 0 var(--chance-blue),
                4px 4px 0 var(--chance-blue),
                5px 5px 0 var(--chance-blue),
                6px 6px 0 var(--chance-blue),
                7px 7px 0 var(--chance-blue);
        }

        /* 1행 (하늘 영역): 행복도시 세종, ➡️ 125px 단정하고 우아한 크기 */
        .hero-slogan-line1 {
            font-size: 125px;
            font-size: clamp(50px, 6.4vw, 125px);
            line-height: 1.1;
            letter-spacing: -2px;
        }

        /* 2~3행 (바다 영역): 여러분들의 찬스메이커가 되겠습니다. ➡️ 155px 메인 압도적 스케일 */
        .hero-slogan-line2,
        .hero-slogan-line3 {
            font-size: 155px;
            font-size: clamp(60px, 7.8vw, 155px);
            line-height: 1.06;
            letter-spacing: -3px;
        }

        /* '찬스메이커' 핵심 키워드 올 퓨어 화이트 & 3D 입체 블루 섀도우 */
        .hero-slogan-title span {
            color: #ffffff !important;
            display: inline !important;
            text-shadow: 
                -1.5px -1.5px 0 var(--chance-blue),  
                 1.5px -1.5px 0 var(--chance-blue),
                -1.5px  1.5px 0 var(--chance-blue),
                 1.5px  1.5px 0 var(--chance-blue),
                -1.5px  0px   0 var(--chance-blue),
                 1.5px  0px   0 var(--chance-blue),
                 0px   -1.5px 0 var(--chance-blue),
                 0px    1.5px 0 var(--chance-blue),
                2px 2px 0 var(--chance-blue), 
                3px 3px 0 var(--chance-blue),
                4px 4px 0 var(--chance-blue),
                5px 5px 0 var(--chance-blue),
                6px 6px 0 var(--chance-blue),
                7px 7px 0 var(--chance-blue) !important;
        }
        
        /* ================= 3. 에디토리얼 매거진 타이포그래피 (하늘 위 순수 잡지 스타일) ================= */
        .hero-editorial-wrap {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 16px;
            max-width: 530px;
            width: 100%;
            text-align: right;
            margin-top: -6px;
        }

        .hero-editorial-quote {
            color: #ffffff;
            word-break: keep-all;
            position: relative;
            text-shadow: 0 2px 10px rgba(2, 132, 199, 0.45), 0 1px 4px rgba(15, 23, 42, 0.25);
        }

        .hero-quote-def {
            font-size: 1.15rem;
            font-weight: 700;
            line-height: 1.5;
            letter-spacing: -0.5px;
        }

        .hero-quote-story {
            font-size: 1.16rem;
            font-weight: 600;
            line-height: 1.74;
            letter-spacing: -0.4px;
            opacity: 0.98;
        }

        /* 큰따옴표 순백색 포인트 */
        .editorial-quote-mark {
            font-family: 'Playfair Display', 'Georgia', 'Batang', serif;
            font-size: 1.85rem;
            font-weight: 900;
            color: #ffffff;
            line-height: 0;
            position: relative;
            top: 4px;
            margin: 0 2px;
            text-shadow: 0 2px 8px rgba(2, 132, 199, 0.6);
        }

        .editorial-highlight {
            color: #ffffff;
            font-weight: 800;
            margin-right: 4px;
            text-decoration: none;
        }

        .flip-contact-btn, .flip-register-btn {
            font-size: 0.88rem;
            font-weight: 700;
            color: #111111;
            background: #ffffff;
            border: 1.5px solid var(--chance-blue);
            padding: 8px 6px;
            border-radius: 8px;
            text-decoration: none;
            transition: all 0.15s ease;
            box-shadow: 2px 2px var(--chance-blue);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            box-sizing: border-box;
            flex: 1;
            line-height: 1.35;
        }

        .flip-contact-btn span.title {
            font-size: 0.82rem;
            color: #555;
            margin-bottom: 2px;
        }

        .flip-contact-btn span.number {
            font-size: 0.98rem;
            color: var(--chance-blue);
        }

        .flip-register-btn {
            background: #ffffff;
            border-color: var(--chance-blue);
            font-size: 0.9rem;
            color: var(--chance-blue);
        }

        .flip-contact-btn:hover, .flip-register-btn:hover {
            background: #f1f5f9;
            color: var(--chance-blue);
            transform: translate(-1px, -1px);
            box-shadow: 3px 3px var(--chance-blue);
        }
        
        .hero h1 { 
            font-size: 5.2rem; 
            font-weight: 900; 
            line-height: 1.14; 
            margin: 0;
            letter-spacing: -2px; 
            color: #ffffff; 
            word-break: keep-all;
            text-shadow: 
                /* 1. 8방향 촘촘한 테두리 (깨짐 방지) */
                -1.5px -1.5px 0 var(--chance-blue),  
                 1.5px -1.5px 0 var(--chance-blue),
                -1.5px  1.5px 0 var(--chance-blue),
                 1.5px  1.5px 0 var(--chance-blue),
                -1.5px  0px   0 var(--chance-blue),
                 1.5px  0px   0 var(--chance-blue),
                 0px   -1.5px 0 var(--chance-blue),
                 0px    1.5px 0 var(--chance-blue),
                /* 2. 우하(+X, +Y) 3D 입체 림 그림자 */
                2px 2px 0 var(--chance-blue), 
                3px 3px 0 var(--chance-blue),
                4px 4px 0 var(--chance-blue),
                5px 5px 0 var(--chance-blue),
                6px 6px 0 var(--chance-blue),
                7px 7px 0 var(--chance-blue);
        }

        /* ================= 3. 인사말 섹션 ================= */
        .greeting-section {
            padding: 80px 5% 90px; position: relative; overflow: hidden; background: #eef6fc;
        }
        #greeting-lightfall-bg {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
        }
        .greeting-container {
            position: relative; z-index: 1;
            display: flex; align-items: center; justify-content: center; gap: 50px;
            max-width: 1200px; margin: 0 auto;
        }
        .greeting-box {
            flex: 1.3; background: white; padding: 40px;
            border-radius: 24px;
            box-shadow: 0 10px 40px rgba(15, 23, 42, 0.04);
            text-align: left;
            border: 1px solid #f1f5f9;
        }
        .greeting-box h2 {
            font-size: 1.8rem; margin-bottom: 20px; color: var(--chance-dark);
            border-bottom: 3px solid var(--chance-blue); display: inline-block; padding-bottom: 10px;
        }
        
        .greeting-box p { margin-bottom: 15px; color: #333; line-height: 1.8; font-size: 1.05rem; }
        
        .service-list { margin-top: 20px; background-color: #f8fbff; padding: 25px; border-radius: 15px; }
        .service-list li { list-style: none; margin-bottom: 10px; font-weight: 600; color: #2c3e50; }
        .service-list li::before { content: "✔ "; color: var(--chance-blue); margin-right: 5px;}

        .greeting-image-box {
            flex: 0.7; display: flex; justify-content: center; align-items: center;
        }
        .character-card {
            position: relative; background: white; padding: 16px; border-radius: 32px;
            box-shadow: 0 30px 60px rgba(13, 37, 80, 0.08), 0 0 1px rgba(13, 37, 80, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.8);
            transform: rotate(0deg);
            transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            max-width: 340px; width: 100%;
        }
        .character-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 45px 80px rgba(13, 37, 80, 0.12), 0 0 1px rgba(13, 37, 80, 0.2);
        }
        .character-card img {
            width: 100%; height: auto; border-radius: 20px; display: block;
        }

        /* ================= 4. 서비스 카드 ================= */
        .features { padding: 100px 5%; background-color: #f9f9f9; }
        .scroll-reveal { opacity: 0; transform: translateY(50px); transition: all 1s ease-out; }
        .scroll-reveal.visible { opacity: 1; transform: translateY(0); }
        
        .cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
        .card { 
            padding: 40px 30px; 
            background: white;
            border: 1px solid #eee; border-radius: 15px; transition: 0.3s; text-align: center; 
            box-shadow: 0 5px 15px rgba(0,0,0,0.03);
        }
        .card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--chance-blue); }
        .card-icon { font-size: 3.5rem; margin-bottom: 20px; }
        .card h3 { font-size: 1.5rem; margin-bottom: 10px; color: #2c3e50;}
        .card p { color: #777; font-size: 0.95rem; }

        /* ================= 5. 하단 푸터 ================= */
        footer { background-color: var(--chance-dark); color: #ecf0f1; padding: 60px 5%; font-size: 0.95rem; }
        .footer-content { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
        .footer-left h2 { font-size: 1.8rem; margin-bottom: 20px; color: white; }
        .footer-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px 30px; }
        .footer-item strong { color: #bdc3c7; font-weight: 400; display: inline-block; width: 80px; }
        .footer-item a { color: white; border-bottom: 1px dotted #7f8c8d; }
        .copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid #34495e; color: #7f8c8d; font-size: 0.85rem; }

        /* 푸터 오시는 길 네오 브루탈리즘 버튼 */
        .btn-footer-map {
            font-size: 0.95rem !important;
            font-weight: 700 !important;
            color: #111111 !important;
            padding: 8px 16px;
            border-radius: 8px;
            border: 2px solid var(--chance-blue) !important;
            background: #ffffff !important;
            box-shadow: -2.5px 2.5px var(--chance-blue) !important; /* 그림자 방향을 왼쪽 아래로 변경 */
            cursor: pointer;
            transition: all 0.1s ease !important;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .btn-footer-map:hover {
            background: #f1f5f9 !important;
            transform: translate(1px, -1px); /* 호버 시 반대로 움직이게 조정 */
            box-shadow: -3.5px 3.5px var(--chance-blue) !important;
        }
        .btn-footer-map:active {
            box-shadow: none !important;
            transform: translate(-2.5px, 2.5px) !important; /* 클릭 시 왼쪽 아래로 쫀득하게 들어가게 처리 */
        }

        /* ================= 6. 우측 하단 고정 QR코드 ================= */
        .fixed-qr {
            position: fixed; 
            bottom: 36px; 
            right: 5%; 
            z-index: 100;
            background: rgba(255, 255, 255, 0.96); 
            padding: 14px 16px; 
            border-radius: 16px;
            box-shadow: 3px 3px 0 var(--chance-blue), 0 10px 25px rgba(0, 0, 0, 0.08); 
            text-align: center; 
            border: 1.5px solid rgba(2, 132, 199, 0.3);
            backdrop-filter: blur(8px);
        }
        .fixed-qr img { width: 110px; height: auto; display: block; margin-bottom: 8px; border-radius: 6px; }
        .fixed-qr p { font-size: 0.88rem; color: var(--chance-dark); font-weight: 800; margin: 0; }

        /* 모바일/태블릿 최적화 미디어 쿼리 */
        @media (max-width: 992px) {
            header { position: relative; flex-direction: column; padding: 15px 5%; gap: 15px; } 
            .logo img { height: 45px; }
            .nav-menu { 
                display: grid !important; 
                grid-template-columns: repeat(3, 1fr) !important; 
                gap: 8px !important; 
                width: 100% !important;
            }
            .nav-menu a { 
                justify-content: center !important; 
                padding: 10px 4px !important; 
                font-size: 0.85rem !important; 
                font-weight: 700 !important;
                border-radius: 8px;
                box-shadow: 2px 2px var(--chance-blue) !important;
                text-align: center !important;
                white-space: nowrap !important;
            }
            .nav-menu a:active {
                transform: translate(2px, 2px) !important;
            }
            .nav-menu a.btn-register, .nav-menu a[href*="docs.google.com"] {
                grid-column: 1 / -1 !important;
                font-size: 0.95rem !important;
                padding: 12px 8px !important;
            }
            
            .hero {
                padding: 30px 5%;
                min-height: auto;
                gap: 20px;
            }
            .hero-sky-zone {
                flex-direction: column;
                align-items: flex-start;
                gap: 16px;
                min-height: auto;
            }
            .hero-editorial-wrap {
                align-items: flex-start;
                text-align: left;
                max-width: 100%;
                margin-top: 0;
                gap: 12px;
            }
            .hero-ocean-zone {
                min-height: auto;
                gap: 8px;
            }
            .hero-quote-def, .hero-quote-story {
                font-size: 1.05rem;
                line-height: 1.6;
            }
            
            .hero-slogan-title { 
                font-size: 2.6rem !important; 
                line-height: 1.2 !important;
                letter-spacing: -1px !important;
                word-break: keep-all; 
            }
            .hero-slogan-title span {
                display: inline-block; 
            }
            
            .footer-info-grid { grid-template-columns: 1fr; }
            .fixed-qr { bottom: 10px; right: 10px; padding: 10px; }
            .fixed-qr img { width: 90px; }
            
            .greeting-container { flex-direction: column; gap: 40px; }
            .greeting-box { width: 100%; padding: 30px 20px; }
            .greeting-image-box { order: -1; width: 100%; max-width: 280px; }
        }
        
        @media (max-width: 640px) {
            header { padding: 10px 4% !important; gap: 8px !important; }
            .logo img { height: 36px !important; }
            .nav-menu { 
                display: grid !important; 
                grid-template-columns: repeat(3, 1fr) !important; 
                gap: 6px !important; 
                width: 100% !important;
            }
            .nav-menu a { 
                padding: 10px 4px !important; 
                font-size: 0.78rem !important; 
                text-align: center !important;
                white-space: nowrap !important;
                justify-content: center !important;
            }
            .nav-menu a.btn-register, .nav-menu a[href*="docs.google.com"] {
                grid-column: 1 / -1 !important;
                font-size: 0.88rem !important;
                padding: 10px 8px !important;
            }
            .hero { padding: 15px 16px 40px !important; min-height: auto !important; justify-content: flex-start !important; }
            .hero h1 { font-size: 2.1rem !important; margin-bottom: 15px !important; margin-top: 20px !important; line-height: 1.25 !important; letter-spacing: -0.5px !important; }
            .hero p { font-size: 0.88rem !important; margin-bottom: 15px !important; }
            .flip-card-subtitle .flip-card-front, .flip-card-subtitle .flip-card-back { padding: 8px 12px !important; font-size: 0.82rem !important; }
            .flip-card-desc .flip-card-front, .flip-card-desc .flip-card-back { padding: 15px 12px !important; font-size: 0.88rem !important; line-height: 1.4 !important; }
            .fixed-qr { bottom: 8px !important; right: 8px !important; padding: 6px !important; border-radius: 10px !important; }
            .fixed-qr img { width: 65px !important; margin-bottom: 4px !important; }
            .fixed-qr p { font-size: 0.75rem !important; }
        }

        /* 폭포수 애니메이션 (완벽하게 보장되는 CSS 모션) */
        @keyframes waterfallFadeIn {
            0% { opacity: 0; transform: translateY(var(--start-y, 30px)) scale(var(--start-scale, 1)); }
            100% { opacity: 1; transform: translateY(0) scale(1); }
        }

        .logo {
            opacity: 0;
            animation: waterfallFadeIn 0.7s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
            --start-y: -15px;
        }
        .nav-menu a {
            opacity: 0;
            animation: waterfallFadeIn 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
            --start-y: -18px;
            --start-scale: 0.96;
        }
        .nav-menu a:nth-child(1) { animation-delay: 0.3s; }
        .nav-menu a:nth-child(2) { animation-delay: 0.39s; }
        .nav-menu a:nth-child(3) { animation-delay: 0.48s; }
        .nav-menu a:nth-child(4) { animation-delay: 0.57s; }

        .hero h1 {
            opacity: 0;
            animation: waterfallFadeIn 1.0s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
            animation-delay: 0.6s;
            --start-y: 35px;
        }
        .flip-card-subtitle {
            opacity: 0;
            animation: waterfallFadeIn 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
            animation-delay: 1.1s;
            --start-y: 25px;
        }
        .flip-card-desc {
            opacity: 0;
            animation: waterfallFadeIn 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
            animation-delay: 1.4s;
            --start-y: 25px;
        }
        .fixed-qr {
            opacity: 0;
            animation: waterfallFadeIn 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
            animation-delay: 1.7s;
            --start-y: 20px;
            --start-scale: 0.85;
        }

        /* 하단 텍스트 요소 기본 상태 (항시 노출 보장) */
        .greeting-box h2, .greeting-box p, .service-list li {
            opacity: 1; 
            transform: translateY(0);
        }

        /* 하단 스크롤 애니메이션 전용 CSS (완벽 보장 Keyframes 방식) */
        @keyframes scrollFadeUp {
            0% { opacity: 0; transform: translateY(48px); }
            100% { opacity: 1; transform: translateY(0); }
        }
        html body .reveal-item {
            opacity: 0; /* JS에서 이 클래스를 붙이면 먼저 숨김 처리됨 */
        }
        html body .reveal-item.is-visible {
            animation: scrollFadeUp 1.85s cubic-bezier(0.12, 1, 0.25, 1) forwards;
        }
        
        /* ================= Mascot Character Effects Panel ================= */
        .character-bounce-wrapper {
            width: 100%;
            height: auto;
            border-radius: 20px;
            overflow: hidden;
            display: block;
            position: relative;
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .character-effects-panel {
            position: absolute;
            bottom: -55px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            padding: 8px 14px;
            border-radius: 40px;
            box-shadow: 0 10px 25px rgba(13, 37, 80, 0.2);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            opacity: 0;
            pointer-events: none;
            z-index: 10000 !important;
            border: 1px solid rgba(255, 255, 255, 0.8);
        }

        .character-card:hover .character-effects-panel {
            bottom: 20px;
            opacity: 1;
            pointer-events: auto;
        }

        .effect-btn {
            border: none;
            background: white;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            font-size: 1.2rem;
            cursor: pointer !important;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.08);
            transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            outline: none;
            pointer-events: auto !important;
            position: relative;
            z-index: 10001 !important;
            padding: 0;
        }

        .effect-btn:hover {
            transform: scale(1.2);
            box-shadow: 0 4px 12px rgba(13, 37, 80, 0.18);
            background: var(--chance-blue);
            color: white;
        }

        @keyframes elastic-bounce {
            0% { transform: scale(1) rotate(0deg); }
            15% { transform: scale(1.15, 0.85) rotate(-4deg); }
            30% { transform: scale(0.85, 1.15) rotate(4deg); }
            45% { transform: scale(1.08, 0.92) rotate(-2deg); }
            60% { transform: scale(0.96, 1.04) rotate(2deg); }
            75% { transform: scale(1.02, 0.98) rotate(-0.5deg); }
            100% { transform: scale(1) rotate(0deg); }
        }

        .elastic-bounce-active {
            animation: elastic-bounce 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
        }

        .character-particle {
            position: absolute;
            pointer-events: none;
            z-index: 5;
            will-change: transform, opacity;
            user-select: none;
            line-height: 1;
        }

/* ================= 1-1. 헤더 좌측 로고 및 날씨 묶음 ================= */
.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.header-weather-ambient {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 35px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.3px;
    white-space: nowrap;
    user-select: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
    margin: 0;
}

.header-weather-ambient:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.hwa-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #475569;
}

.hwa-item #weatherTemp {
    font-weight: 800;
    color: #0f172a;
}

.hwa-item #weatherCondition {
    font-weight: 700;
    color: #0f172a;
}

.hwa-item #weatherHumidity {
    font-weight: 700;
    color: #0f172a;
}

.hwa-item #weatherDust {
    font-weight: 700;
    color: #0f172a;
}

.hwa-divider {
    width: 1px;
    height: 10px;
    background: #cbd5e1;
    display: inline-block;
}

@media (max-width: 1024px) {
    .header-weather-ambient {
        display: none !important; /* 모바일/태블릿에서는 헤더 메뉴 공간 확보를 위해 깔끔하게 숨김 */
    }
}

/* ================= 3. 스마트 프롭테크 허브 (부동산 계산기 & 실거래가) ================= */
.hub-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.hub-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    padding: 36px 26px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.hub-card-header {
    margin-bottom: 24px;
}

.hub-tag {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    border: 1px solid #e2e8f0;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.hub-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--chance-dark);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.hub-desc {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* 세그먼트 탭 */
.calc-tab-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    background: #f8fafc;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.calc-tab-btn {
    flex: 1;
    min-width: 65px;
    padding: 8px 8px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    white-space: nowrap;
}

.calc-tab-btn:hover {
    color: #0f172a;
}

.calc-tab-btn.active {
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #0f172a;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.06);
    font-weight: 800;
}

/* 계산기 패널 */
.calc-panel {
    display: none;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.calc-panel.active {
    display: flex;
}

.calc-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.calc-input-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #334155;
}

.calc-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.calc-input {
    width: 100%;
    height: 46px;
    padding: 0 54px 0 14px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    text-align: right;
}

.calc-input:focus {
    border-color: var(--chance-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.calc-unit {
    position: absolute;
    right: 14px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #64748b;
    pointer-events: none;
}

.calc-korean-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    margin-top: 2px;
}

/* 빠른 금액 증감 버튼 */
.calc-quick-btns {
    display: flex;
    gap: 5px;
    margin-top: 4px;
}

.btn-quick {
    flex: 1;
    padding: 5px 2px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.btn-quick:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
}

.btn-quick:active {
    transform: scale(0.96);
    background: #e0f2fe;
    color: #0284c7;
    border-color: #38bdf8;
}

.btn-quick-reset {
    flex: 0 0 45px;
    color: #94a3b8;
    background: #ffffff;
}

/* 타입 선택자 */
.calc-type-selector {
    display: flex;
    gap: 8px;
}

.calc-type-btn {
    flex: 1;
    padding: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #475569;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.calc-type-btn:hover {
    border-color: #cbd5e1;
    color: #0f172a;
}

.calc-type-btn.active {
    background: #ffffff;
    border-color: #0f172a;
    color: #0f172a;
    font-weight: 800;
}

/* 계산기 실무 가이드 텍스트 */
.calc-guide-box {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.5;
    padding: 2px 0;
    margin-top: 2px;
}

.calc-guide-box strong {
    color: #334155;
    font-weight: 700;
}

/* 결과 박스 */
.calc-result-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.res-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
}

.res-value {
    font-size: 1.55rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.res-value.highlight {
    color: #0f172a;
}

.calc-sub-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.calc-sub-info b {
    color: #0f172a;
    font-weight: 800;
}

.calc-sub-info .sep {
    color: #cbd5e1;
}

/* 상담 연결 버튼 */
.calc-footer-action {
    margin-top: 16px;
}

.btn-calc-consult {
    display: block;
    width: 100%;
    padding: 13px;
    text-align: center;
    background: #ffffff;
    color: #111111;
    font-size: 0.92rem;
    font-weight: 800;
    border: 2px solid var(--chance-blue);
    border-radius: 10px;
    box-shadow: 2px 2px var(--chance-blue);
    transition: all 0.15s ease;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
}

.btn-calc-consult:hover {
    background: #f8fafc;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px var(--chance-blue);
}

@media (max-width: 900px) {
    .hub-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .hub-card {
        padding: 24px 20px;
    }
    .calc-input-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .res-value {
        font-size: 1.35rem;
    }
}

/* ================= 3-1. 국토부 실거래가 카드 및 피드 스타일 ================= */
.hub-card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.btn-feed-refresh {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-feed-refresh:hover {
    background: #ffffff;
    border-color: var(--chance-blue);
    color: #0284c7;
}

.molit-feed-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.molit-feed-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    transition: all 0.15s ease;
}

.molit-feed-item:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.mfi-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.mfi-badge {
    font-size: 0.82rem;
    font-weight: 800;
    color: #475569;
    padding: 0;
    background: transparent;
    white-space: nowrap;
    flex-shrink: 0;
}

.mfi-dong {
    font-size: 0.84rem;
    font-weight: 800;
    color: #0f172a;
    flex-shrink: 0;
}

.mfi-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mfi-area {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    flex-shrink: 0;
}

.mfi-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.mfi-price {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.mfi-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
}

/* ================= 3-2. 실거래가 전체보기 팝업 모달 ================= */
.molit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.molit-modal-container {
    background: #ffffff;
    width: 94%;
    max-width: 1060px;
    max-height: 88vh;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.molit-modal-header {
    padding: 22px 28px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #f1f5f9;
    gap: 16px;
}

.molit-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.molit-header-tag-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.molit-gov-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.74rem;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: -0.2px;
}

.molit-dataset-summary {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: -0.2px;
}

.molit-modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.molit-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.modal-view-switcher {
    display: flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
    gap: 2px;
}

.view-switch-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.view-switch-btn:hover {
    color: #0f172a;
}

.view-switch-btn.active {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.15);
}

.btn-modal-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.btn-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ================= 3-3. 모달 스마트 수치 인사이트 대시보드 ================= */
.modal-insight-dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 16px 28px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.insight-stat-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.isi-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
}

.isi-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.isi-sub-row {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
    display: block;
    margin-top: 3px;
    line-height: 1.2;
}

.isi-sub-tag.sale { color: #0f172a; }
.isi-sub-tag.jeonse { color: #0284c7; }
.isi-sub-tag.rent { color: #16a34a; }

.mfi-badge.badge-sale { color: #0f172a; font-weight: 800; }
.mfi-badge.badge-jeonse { color: #0284c7; font-weight: 800; }
.mfi-badge.badge-rent { color: #16a34a; font-weight: 800; }

.isi-val.highlight {
    color: #0284c7;
}

.modal-filter-wrap {
    padding: 14px 28px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 2px 0;
}

.modal-sub-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-type-group {
    display: flex;
    gap: 6px;
}

.modal-period-combo-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.period-combo-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}

.smart-combobox {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    height: 32px;
    padding: 0 6px 0 8px;
    transition: all 0.15s ease;
}

.smart-combobox:focus-within {
    border-color: #0f172a;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

.combo-input {
    width: 26px;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.86rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    padding: 0;
    font-family: inherit;
}

.combo-unit {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    margin-left: 2px;
    margin-right: 4px;
    user-select: none;
}

.combo-toggle-btn {
    background: transparent;
    border: none;
    padding: 0 4px;
    height: 100%;
    font-size: 0.75rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #e2e8f0;
    transition: color 0.15s ease;
}

.combo-toggle-btn:hover {
    color: #0f172a;
}

.combo-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #ffffff;
    border: 1.5px solid #0f172a;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
    z-index: 10001;
    min-width: 140px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.combo-item {
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    text-align: left;
}

.combo-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.combo-item.active {
    background: #0284c7;
    color: #ffffff;
}

.modal-sort-group {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    background: #f8fafc;
    padding: 3px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.sort-chip {
    padding: 4px 10px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.sort-chip:hover {
    color: #0f172a;
}

.sort-chip.active {
    background: #0f172a;
    color: #ffffff;
}

.modal-filter-group::-webkit-scrollbar,
.modal-type-group::-webkit-scrollbar {
    display: none;
}

.filter-chip, .type-chip {
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.filter-chip:hover, .type-chip:hover {
    border-color: #94a3b8;
    color: #0f172a;
}

.filter-chip.active, .type-chip.active {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
}

.molit-modal-body {
    padding: 20px 28px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ================= 3-4. 모달 스마트 차트 분석 뷰 ================= */
.molit-chart-body {
    padding: 20px 28px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f8fafc;
}

.chart-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.chart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

.chart-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chart-card-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.chart-card-sub {
    font-size: 0.76rem;
    font-weight: 600;
    color: #94a3b8;
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 14px;
}

.legend-item {
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 2.5px;
}

.legend-dot.sale {
    background: #0f172a;
}

.legend-dot.jeonse {
    background: #0284c7;
}

.legend-dot.rent {
    background: #16a34a;
}

.chart-canvas-wrap {
    width: 100%;
    height: 180px;
    position: relative;
}

.chart-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .chart-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* 막대 차트 스타일 */
.chart-bars-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chart-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.chart-bar-row:hover {
    background: #f8fafc;
}

.chart-bar-row.is-active {
    background: #f1f5f9;
}

.cbar-tooltip-badge {
    position: absolute;
    top: -24px;
    right: 48px;
    background: #0f172a;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.70rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    white-space: nowrap;
}

.cbar-tooltip-badge::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 20px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #0f172a;
}

.chart-bar-row:hover .cbar-tooltip-badge,
.chart-bar-row.is-active .cbar-tooltip-badge {
    opacity: 1;
    transform: translateY(0);
}

.tip-part.sale { color: #f8fafc; }
.tip-part.jeonse { color: #38bdf8; }
.tip-part.rent { color: #4ade80; }

.cbar-rank {
    width: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
}

.cbar-name {
    width: 145px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cbar-track {
    flex: 1;
    height: 14px;
    background: #f1f5f9;
    border-radius: 7px;
    overflow: hidden;
    position: relative;
}

.cbar-fill {
    height: 100%;
    border-radius: 7px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cbar-fill.fill-all {
    background: linear-gradient(90deg, #0284c7, #38bdf8);
}
.cbar-fill.fill-all.gold {
    background: linear-gradient(90deg, #0f172a, #334155);
}

.cbar-fill.fill-sale {
    background: linear-gradient(90deg, #475569, #64748b);
}
.cbar-fill.fill-sale.gold {
    background: linear-gradient(90deg, #0f172a, #1e293b);
}

.cbar-fill.fill-jeonse {
    background: linear-gradient(90deg, #38bdf8, #7dd3fc);
}
.cbar-fill.fill-jeonse.gold {
    background: linear-gradient(90deg, #0284c7, #0369a1);
}

.cbar-fill.fill-rent {
    background: linear-gradient(90deg, #4ade80, #86efac);
}
.cbar-fill.fill-rent.gold {
    background: linear-gradient(90deg, #16a34a, #15803d);
}

.cbar-val {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
    min-width: 32px;
    text-align: right;
}

.cbar-stacked-fill {
    display: flex;
    height: 100%;
    border-radius: 7px;
    overflow: hidden;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cbar-seg {
    height: 100%;
    transition: width 0.3s ease;
}

.cbar-seg.sale {
    background: #0f172a;
}

.cbar-seg.jeonse {
    background: #0284c7;
}

.cbar-seg.rent {
    background: #16a34a;
}

/* 분포 차트 스타일 */
.chart-distribution-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dist-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dist-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
}

.dist-seg-bar {
    display: flex;
    height: 16px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}

.dist-seg {
    height: 100%;
    transition: width 0.5s ease;
}

.dist-legend-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 2px;
}

/* ================= 세종시 권역별 실거래량 TOP 12 계단식 상승 차트 ================= */
.chart-regional-rankings {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 4px;
}

.regional-asc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.asc-chart-container {
    width: 100%;
    margin-top: 14px;
    padding-top: 10px;
}

.asc-chart-grid {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
    height: 175px;
    padding-bottom: 26px;
    position: relative;
    border-bottom: 1.5px solid #e2e8f0;
}

.asc-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.asc-col:hover {
    transform: translateY(-4px);
}

.asc-top-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 6px;
    white-space: nowrap;
}

.asc-count {
    font-size: 0.72rem;
    font-weight: 800;
    color: #475569;
}

.asc-col.is-champion .asc-count {
    color: #0f172a;
    font-weight: 900;
    font-size: 0.80rem;
}

.asc-bar-track {
    width: 100%;
    max-width: 38px;
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: #f8fafc;
    border-radius: 6px 6px 0 0;
    position: relative;
    overflow: hidden;
}

.asc-bar-fill {
    width: 100%;
    border-radius: 5px 5px 0 0;
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.asc-bar-fill.sale {
    background: linear-gradient(180deg, #334155 0%, #0f172a 100%);
}

.asc-bar-fill.jeonse {
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
}

.asc-bar-fill.rent {
    background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
}

.asc-col.is-champion .asc-bar-fill.sale {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    box-shadow: 0 0 10px rgba(15, 23, 42, 0.3);
}

.asc-col.is-champion .asc-bar-fill.jeonse {
    background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.4);
}

.asc-col.is-champion .asc-bar-fill.rent {
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 0 10px rgba(22, 163, 74, 0.4);
}

.asc-dong-name {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.70rem;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
}

.asc-col.is-champion .asc-dong-name {
    color: #0f172a;
    font-weight: 800;
}

@media (max-width: 640px) {
    .asc-chart-grid {
        gap: 3px;
        overflow-x: auto;
        padding-bottom: 26px;
    }
    .asc-dong-name {
        font-size: 0.62rem;
        bottom: -24px;
    }
    .asc-count {
        font-size: 0.65rem;
    }
}

.molit-modal-footer {
    padding: 16px 28px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.molit-modal-footer p {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0;
    font-weight: 500;
}

.btn-modal-print {
    padding: 8px 18px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 800;
    border: 1.5px solid var(--chance-blue);
    border-radius: 8px;
    box-shadow: 2px 2px var(--chance-blue);
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-modal-print:hover {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 2px 2px #0369a1;
}

/* ================= 3-5. 리포트 인쇄 맞춤 설정 모달 ================= */
.print-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.print-dialog-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
    overflow: visible;
    animation: printModalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes printModalPop {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.print-dialog-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.print-dialog-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.print-dialog-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.print-dialog-sub {
    font-size: 0.78rem;
    font-weight: 500;
    color: #94a3b8;
}

.print-dialog-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.print-dialog-close:hover {
    color: #0f172a;
}

.print-dialog-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.print-opt-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.print-opt-item:hover {
    border-color: #0284c7;
    background: #f8fafc;
}

.print-opt-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0284c7;
    margin-top: 2px;
    cursor: pointer;
}

.print-opt-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.print-opt-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}

.print-opt-desc {
    font-size: 0.74rem;
    font-weight: 500;
    color: #64748b;
}

.print-opt-item.table-opt-item {
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.print-opt-label-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    flex: 1;
}

.print-scope-combo-wrap {
    position: relative;
    flex-shrink: 0;
}

.print-scope-combo {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 2px 6px;
    height: 32px;
    display: inline-flex;
    align-items: center;
}

.print-scope-combo:hover, .print-scope-combo:focus-within {
    border-color: #0284c7;
}

.print-scope-input {
    width: 36px;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.print-scope-dropdown {
    bottom: calc(100% + 6px);
    top: auto;
    right: 0;
    left: auto;
    width: 145px;
    z-index: 10005;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 -10px 25px rgba(15, 23, 42, 0.15);
}

.print-page-estimate-banner {
    margin: 0 24px 16px 24px;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.estimate-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: #166534;
}

.estimate-highlight {
    font-weight: 800;
    color: #15803d;
    margin-left: 4px;
}

.print-dialog-footer {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-print-cancel {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
}

.btn-print-cancel:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.btn-print-execute {
    padding: 8px 20px;
    background: #0284c7;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
    transition: all 0.15s ease;
}

.btn-print-execute:hover {
    background: #0369a1;
}

/* ================= 3-6. 프리미엄 A4 리포트 인쇄 전용 CSS ================= */
.print-report-area {
    display: none;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 12mm 12mm 15mm 12mm;
    }

    body * {
        visibility: hidden !important;
    }

    body {
        background: #ffffff !important;
        color: #0f172a !important;
        font-family: 'Pretendard', sans-serif !important;
    }

    .print-report-area, .print-report-area * {
        visibility: visible !important;
    }

    .print-report-area {
        display: block !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .pr-header {
        border-bottom: 2px solid #0f172a;
        padding-bottom: 8px;
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }

    .pr-brand {
        font-size: 1.25rem;
        font-weight: 900;
        color: #0f172a;
        letter-spacing: -0.5px;
    }

    .pr-doc-title {
        font-size: 0.9rem;
        font-weight: 700;
        color: #0284c7;
        margin-top: 2px;
    }

    .pr-meta-box {
        text-align: right;
        font-size: 0.74rem;
        color: #475569;
        font-weight: 600;
    }

    .pr-conditions-bar {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        padding: 6px 12px;
        margin-bottom: 12px;
        font-size: 0.78rem;
        font-weight: 700;
        color: #0f172a;
        display: flex;
        gap: 14px;
    }

    .pr-cond-tag {
        color: #0284c7;
    }

    .pr-summary-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-bottom: 12px;
    }

    .pr-sum-card {
        background: #ffffff;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        padding: 8px 10px;
    }

    .pr-sum-label {
        font-size: 0.7rem;
        font-weight: 600;
        color: #64748b;
        margin-bottom: 2px;
    }

    .pr-sum-val {
        font-size: 0.98rem;
        font-weight: 900;
        color: #0f172a;
    }

    .pr-sum-val.highlight {
        color: #0284c7;
    }

    .pr-section {
        margin-bottom: 12px;
        page-break-inside: avoid;
    }

    .pr-sec-title {
        font-size: 0.85rem;
        font-weight: 800;
        color: #0f172a;
        margin-bottom: 6px;
        padding-left: 8px;
        border-left: 3.5px solid #0284c7;
    }

    .pr-chart-wrap {
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 8px;
        background: #ffffff;
    }

    .pr-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.73rem;
    }

    .pr-table th {
        background: #f1f5f9;
        border-top: 1px solid #cbd5e1;
        border-bottom: 1px solid #cbd5e1;
        padding: 5px 6px;
        font-weight: 800;
        color: #334155;
        text-align: left;
    }

    .pr-table td {
        padding: 4.5px 6px;
        border-bottom: 1px solid #f1f5f9;
        color: #1e293b;
    }

    .pr-table tr:nth-child(even) {
        background: #f8fafc;
    }

    .pr-footer {
        margin-top: 12px;
        padding-top: 8px;
        border-top: 1px solid #cbd5e1;
        font-size: 0.72rem;
        color: #64748b;
        display: flex;
        justify-content: space-between;
        align-items: center;
        page-break-inside: avoid;
    }

    .pr-foot-notice {
        font-size: 0.68rem;
        color: #94a3b8;
    }

    .pr-foot-info {
        font-size: 0.74rem;
        font-weight: 700;
        color: #334155;
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .molit-modal-header {
        padding: 18px 20px 14px;
    }
    .modal-filter-wrap {
        padding: 12px 20px;
    }
    .molit-modal-body {
        padding: 14px 20px;
    }
    .molit-modal-footer {
        padding: 14px 20px;
        flex-direction: column;
        align-items: stretch;
    }
    .btn-modal-call {
        text-align: center;
    }
}
