/* ============================================================
   해밀 (Haemil) - 메인 페이지 스타일시트
   ============================================================
   SECTION 1: CSS Variables & Reset        (00_1_Style_Global에서)
   SECTION 2: Global Layout & Typography   (00_1_Style_Global에서)
   SECTION 3: Components                   (00_1_Style_Global에서)
   SECTION 4: Animations (CSS keyframes)   (00_1_Style_Global에서)
   SECTION 5: Drawer                       (Task 4에서 추가 예정)
   SECTION 6: Responsive                   (Task 4에서 정리 예정)
   ============================================================ */

/* ============================================================
   SECTION 1: CSS Variables & Reset
   ============================================================ */

/* 디자인 토큰 (Design Tokens) - 'hm-' 접두사 적용 */
html {
    font-size: 10px;
}

:root {
    /* 1. Blue Series (희망, 청명함, 새로운 시작) */
    --hm-color-primary: #0067C6;
    /* 1.1 해밀 블루 (메인) */
    --hm-color-secondary: #009FE3;
    /* 1.2 스카이 블루 (서브) */
    --hm-color-accent: #00C8FF;
    /* 1.3 오션 시안 (강조) */
    --hm-color-hope: #64E5C2;
    /* 1.4 민트 라이트 (희망) */
    --hm-color-therapy: #6D9EEB;
    /* 1.5 소프트 라벤더 (치유) */

    /* 2. Gray & Neutral Series (안정, 기반, 배경) */
    --hm-color-charcoal: #333333;
    /* 2.1 차콜 20 (타이틀) */
    --hm-color-body: #595959;
    /* 2.2 차콜 그레이 35 (본문) */
    --hm-color-line: #808080;
    /* 2.3 미디엄 그레이 (라인) */
    --hm-color-bg-warm: #F5F3EB;
    /* 2.4 웜 아이보리 (배경) */
    --hm-color-bg-soft: #E6E6E6;
    /* 2.5 소프트 그레이 90 (여백) */

    /* Gradients */
    --hm-gradient-main: linear-gradient(135deg, var(--hm-color-secondary) 0%, var(--hm-color-hope) 100%);
    --hm-gradient-text-style: linear-gradient(90deg, var(--hm-color-hope) 0%, var(--hm-color-secondary) 50%, var(--hm-color-hope) 100%);

    /* Typography Maps */
    --hm-font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    --hm-font-head: 'Tmon Monsori', 'TmonMonsori', 'TmonMonsoriOTF', 'Pretendard', sans-serif;
    /* Layout */
    --hm-radius-md: 12px;
    --hm-radius-lg: 20px;
    --hm-radius-pill: 50px;
    --hm-shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
    --hm-shadow-md: 0 10px 25px rgba(0, 103, 198, 0.1);
    --hm-shadow-hover: 0 15px 35px rgba(0, 103, 198, 0.15);

    /* Aliases for legacy support */
    --hm-color-text-head: var(--hm-color-charcoal);
    --hm-color-text-body: var(--hm-color-body);
    --hm-color-text-line: var(--hm-color-line);

    /* Header Height Variables */
    --hm-header-height: 130px;
    --hm-header-sticky-height: 80px;
    --hm-header-bg: transparent;
    --hm-header-sticky-bg: rgba(255, 255, 255, 0.95);
}

/* ============================================================
   SECTION 1.5: Topbar & Side Menu (01_1_UI_Topbar에서)
   ============================================================ */

.hm-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--hm-header-height);
    z-index: 2000;
    transition: height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        background-color 0.4s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        backdrop-filter 0.4s ease;
    background-color: var(--hm-header-bg);
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    will-change: height, background-color, backdrop-filter;
    backface-visibility: hidden;
}

.hm-header:not(.sticky) {
    transition: height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        background-color 0.2s ease,
        box-shadow 0.1s ease,
        border-color 0.1s ease,
        backdrop-filter 0.2s ease;
}

.hm-header.sticky {
    height: var(--hm-header-sticky-height);
    background-color: var(--hm-header-sticky-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hm-header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 100%;
}

.hm-header-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    z-index: 10;
}

.hm-header-logo img {
    height: 68px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    transition: all 0.4s ease;
}

.hm-header.sticky .hm-header-logo img {
    height: 46px;
    filter: none;
}

.hm-header-actions {
    margin-left: auto;
    z-index: 20;
}

.hm-header-left {
    z-index: 20;
}

.hm-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
}

.hm-hamburger:hover {
    transform: scale(1.05);
}

.hm-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hm-header.sticky .hm-hamburger span {
    background-color: #333333;
}

.hm-side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.hm-side-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hm-side-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: #ffffff;
    z-index: 3001;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 15px 0 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.hm-side-menu.active {
    transform: translateX(320px);
}

.hm-side-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
}

.hm-side-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.hm-side-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hm-side-close:hover {
    background: #f5f5f5;
}

.hm-side-logo-wrap {
    margin-bottom: 40px;
    padding: 0 8px;
}

.hm-side-logo-img {
    height: 36px;
    width: auto;
}

.hm-side-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hm-side-nav-item {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #f8f9fa;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.hm-side-nav-item:hover {
    background: #ffffff;
    border-color: #009fe3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 159, 227, 0.1);
}

.hm-side-nav-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hm-side-nav-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.hm-side-nav-sub {
    font-size: 12px;
    color: #888;
}

.hm-side-nav-icon {
    color: #009fe3;
    transition: transform 0.3s ease;
}

.hm-side-nav-item:hover .hm-side-nav-icon {
    transform: translateX(4px);
}

.hm-side-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #aaa;
    text-align: center;
}

.hm-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hm-gradient-main);
    color: #ffffff !important;
    text-decoration: none;
    padding: 10px 28px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 159, 227, 0.2);
}

.hm-header.sticky .hm-header-btn {
    padding: 8px 22px;
    font-size: 13px;
    box-shadow: none;
}

.hm-header-btn:hover {
    background: linear-gradient(135deg, #0089C4 0%, #54D4B1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 159, 227, 0.3);
    color: #ffffff !important;
}

@media (max-width: 768px) {
    :root {
        --hm-header-height: 80px;
        --hm-header-sticky-height: 60px;
    }

    .hm-header-container {
        padding: 0 12px;
    }

    .hm-header-logo img {
        height: 50px;
    }

    .hm-header.sticky .hm-header-logo img {
        height: 38px;
    }

    .hm-header-btn {
        padding: 7px 18px;
        font-size: 12px;
    }
}

/* ============================================================
   SECTION 2: Global Layout & Typography
   ============================================================ */

/* Gradient Text with Flow Animation */
.hm-text-gradient-primary {
    background: linear-gradient(90deg,
            var(--hm-color-primary) 0%,
            var(--hm-color-hope) 50%,
            var(--hm-color-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: hm-text-flow 8s linear infinite;
    will-change: background-position;
    /* Fix for overlapping text-shadow inherited from parent */
    text-shadow: none !important;
}

/* Hero Section Specific Gradient Text */
.hm-text-gradient-hero {
    background: linear-gradient(90deg,
            var(--hm-color-primary) 0%,
            var(--hm-color-hope) 50%,
            var(--hm-color-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: hm-text-flow 8s linear infinite;
    will-change: background-position;
    /* Hero specific shadow */
    text-shadow: none !important;
    /* Layered shadows: Sharp dark contour + Deep soft shadow for max visibility */
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.9)) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.hm-wrapper {
    font-family: var(--hm-font-body);
    font-size: 1.6rem;
    background-color: #F9FAFC;
    color: var(--hm-color-body);
    line-height: 1.6;
    padding: 60px 20px;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.hm-wrapper * {
    box-sizing: border-box;
}

.hm-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Shared Section Typography */
.hm-wrapper h1,
.hm-wrapper h2,
.hm-wrapper h3,
.hm-wrapper h4,
.hm-wrapper h5,
.hm-wrapper h6 {
    margin: 0;
    font-weight: normal;
}

.hm-title {
    font-family: var(--hm-font-head);
    font-size: clamp(28px, 4vw, 50px);
    font-weight: normal;
    color: var(--hm-color-charcoal);
    margin: 0 auto 16px;
    line-height: 1.2;
    word-break: keep-all;
}

.hm-subtitle {
    color: var(--hm-color-text-body);
    font-size: clamp(14px, 1.8vw, 19px);
    line-height: 1.5;
    margin: 0 auto;
    word-break: keep-all;
    max-width: 800px;
    font-weight: 400;
}

/* Responsive Helpers */
.pc-only {
    display: block;
}

.mo-only {
    display: none;
}

@media (max-width: 900px) {
    .pc-only {
        display: none;
    }

    .mo-only {
        display: block;
    }
}

/* Button Base */
.hm-btn-gradient {
    background: var(--hm-gradient-main);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: var(--hm-radius-pill);
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 159, 227, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hm-btn-gradient:hover {
    background: var(--hm-color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 159, 227, 0.4);
}

/* ============================================================
   SECTION 3: Components
   ============================================================ */

/* --------------------------------------------------
   1) Hero - Interactive Scroll
   -------------------------------------------------- */
.hm-hero-scroll-container {
    position: relative;
    height: 300vh;
    background-color: #ffffff;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    overflow: hidden;
}

.hm-hero-sticky-wrapper {
    position: fixed;
    top: 0;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    height: 100vh;
    overflow: hidden;
    z-index: 5;
    pointer-events: none;
    background-color: #ffffff;
    opacity: 0;
    visibility: hidden;
}

.hm-hero-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.2s ease-out;
    will-change: opacity;
}

.hm-scene-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hm-hero-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.hm-hero-text-group {
    position: relative;
    text-align: center;
    color: #FFFFFF;
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.7),
        0px 2px 5px rgba(0, 0, 0, 0.5),
        0px 0px 30px rgba(0, 0, 0, 0.3);
    padding: 0 20px;
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 650px;
}

.hm-scene-text {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    opacity: 0;
    transition: opacity 0.2s ease-out;
    will-change: opacity;
}

.hm-hero-txt-support {
    font-family: var(--hm-font-body);
    font-size: clamp(22.4px, 3vw, 28.8px);
    font-weight: 700;
    margin: 0;
    opacity: 0.9;
}

.hm-hero-txt-main {
    font-family: var(--hm-font-body);
    font-size: clamp(80px, 10vw, 120px);
    font-weight: 900;
    margin: 15px 0;
    line-height: 1;
}

.hm-hero-txt-bottom {
    font-family: var(--hm-font-body);
    font-size: clamp(28.8px, 4vw, 40px);
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    word-break: keep-all;
}

.hm-highlight-빚 {
    color: #0067C6;
}

.hm-highlight-빛 {
    color: #64E5C2;
}

.hm-text-h1-size {
    font-size: clamp(3.5rem, 10vw, 6rem);
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

/* Hero Scroll Indicator */
.hm-hero-scroll-indicator {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 100;
    color: #ffffff;
    opacity: 0.8;
    animation: hm-hero-bounce 2s infinite;
    pointer-events: auto;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.hm-scroll-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hm-scroll-arrow {
    font-size: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .hm-hero-scroll-container {
        height: 250vh;
    }

    .hm-hero-text-group {
        min-height: 350px;
    }
}

/* --------------------------------------------------
   2) Why Haemil & Premium Card Components
   -------------------------------------------------- */
.hm-why-section {
    background: #ffffff;
    padding: 180px 20px 100px;
    box-sizing: border-box;
}

.hm-why-header {
    text-align: center;
    margin-bottom: 80px;
}

.hm-why-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Premium Common Card Style */
.hm-premium-list-section {
    background: #f0f4f8;
    width: 100%;
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.hm-card-inner {
    width: 100%;
    max-width: 1200px;
    height: 460px;
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    margin: 0 auto;
}

.hm-card-inner:hover {
    transform: translateY(-10px);
}

.hm-card-content {
    flex: 1.2;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.hm-card-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hm-step-label {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 25px;
    display: inline-block;
    padding: 5px 0;
    border-bottom: 2px solid;
}

.hm-card-content h3 {
    font-family: var(--hm-font-head);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #1a1a1a;
    word-break: keep-all;
}

.hm-card-content p {
    font-size: 18px;
    color: #666;
    line-height: 1.7;
    max-width: 600px;
}

/* 포인트 컬러 */
.v-card-1 .hm-step-label {
    color: #009FE3;
    border-color: #009FE3;
}

.v-card-2 .hm-step-label {
    color: #2CBCC9;
    border-color: #2CBCC9;
}

.v-card-3 .hm-step-label {
    color: #64E5C2;
    border-color: #64E5C2;
}

.hm-card-visual i {
    font-size: 180px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

/* --------------------------------------------------
   Chart Animation System
   -------------------------------------------------- */
.hm-visual-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
}

.hm-chart-anim-wrap {
    position: relative;
    width: 90%;
    height: 80%;
}

/* 차트 배경 그리드 */
.hm-chart-grid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-bottom: 2px solid #e2e8f0;
    border-left: 2px solid #e2e8f0;
    background-image:
        linear-gradient(#e2e8f0 1px, transparent 1px),
        linear-gradient(90deg, #e2e8f0 1px, transparent 1px);
    background-size: 20% 20%;
    opacity: 0.3;
}

/* 5개 분석 구간 (Fan shapes) */
.hm-chart-zones {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: bottom left;
}

.hm-zone {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 200%;
    transform-origin: 0% 100%;
    opacity: 0.9;
    clip-path: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hm-zone-bankruptcy {
    background: rgba(244, 63, 94, 0.3);
    transform: rotate(0deg) skewY(-77.15deg);
}

.hm-zone-risk {
    background: rgba(251, 146, 60, 0.3);
    transform: rotate(12.85deg) skewY(-77.15deg);
}

.hm-zone-strategic {
    background: rgba(20, 83, 45, 0.3);
    transform: rotate(25.7deg) skewY(-77.15deg);
    z-index: 2;
}

.hm-zone-ideal {
    background: rgba(21, 128, 61, 0.3);
    transform: rotate(38.55deg) skewY(-77.15deg);
}

.hm-zone-stable {
    background: rgba(34, 197, 94, 0.3);
    transform: rotate(51.4deg) skewY(-77.15deg);
}

.hm-zone-boundary {
    background: rgba(134, 239, 172, 0.3);
    transform: rotate(64.25deg) skewY(-77.15deg);
}

.hm-zone-normal {
    background: rgba(37, 99, 235, 0.3);
    transform: rotate(77.1deg) skewY(-77.15deg);
}

/* 좌표 커서 */
.hm-chart-cursor {
    position: absolute;
    bottom: 50%;
    left: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
}

.hm-cursor-dot {
    width: 14px;
    height: 14px;
    background: #009FE3;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 159, 227, 0.5);
}

.hm-cursor-line-h,
.hm-cursor-line-v {
    position: absolute;
    background: rgba(0, 159, 227, 0.3);
    z-index: -1;
}

.hm-cursor-line-h {
    width: 1000px;
    height: 1px;
    left: -1000px;
    border-bottom: 1px dashed rgba(0, 159, 227, 0.5);
}

.hm-cursor-line-v {
    width: 1px;
    height: 1000px;
    bottom: -1000px;
    border-left: 1px dashed rgba(0, 159, 227, 0.5);
}

/* 결과 배지 */
.hm-result-badge-anim {
    position: absolute;
    top: 20%;
    right: 10%;
    background: linear-gradient(135deg, #009FE3 0%, #64E5C2 100%);
    padding: 12px 24px;
    border-radius: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 35px rgba(0, 159, 227, 0.3);
    opacity: 0;
    transform: translateY(20px);
    z-index: 20;
}

/* === Diagnosis 3D Vertical Carousel === */
.hm-diagnosis-wrap {
    width: 320px;
    height: 220px;
    overflow: hidden;
    position: relative;
    perspective: 1000px;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.hm-diagnosis-list {
    width: 100%;
    height: 100%;
    position: relative;
}

.hm-diag-card {
    width: 100%;
    height: 70px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    will-change: transform, opacity;
    overflow: hidden;
}

/* 배경 장식 (투명 원) */
.hm-diag-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    z-index: 1;
}

.hm-diag-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.hm-diag-card i,
.hm-diag-card span {
    position: relative;
    z-index: 2;
}

.hm-diag-card i {
    font-size: 24px;
    width: 24px;
    text-align: center;
}

/* Types */
.hm-diag-eligible {
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
}

/* === Future Benefit 3D Carousel (Card 3) === */
.hm-benefit-wrap {
    width: 320px;
    height: 280px;
    overflow: hidden;
    position: relative;
    perspective: 1000px;
}

.hm-benefit-list {
    width: 100%;
    height: 100%;
    position: relative;
}

.hm-benefit-card {
    width: 100% !important;
    height: 180px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 1 !important;
    /* 항상 보이도록 수정 */
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* DTI 바 고정용 (메인페이지 데모 전용) */
.hm-dti-bar-static {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 10px !important;
    display: block !important;
    z-index: 1 !important;
}

.hm-ben-header {
    font-size: 14px;
    font-weight: 700;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 아이콘 크기 리셋 및 강제 지정 (Global Style Override) */
.hm-benefit-card i {
    font-size: inherit !important;
    width: auto !important;
    line-height: 1 !important;
}

.hm-ben-header i {
    font-size: 18px !important;
    color: #22d3ee;
}

.hm-ben-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    width: 100%;
}

.hm-ben-val-old {
    font-size: 18px;
    font-weight: 600;
    color: #999;
    text-decoration: line-through;
}

.hm-ben-arrow {
    color: #22d3ee;
    font-size: 24px !important;
}

.hm-ben-val-new {
    font-size: 26px;
    font-weight: 800;
    color: #22d3ee;
}

.hm-ben-badge {
    background: linear-gradient(90deg, #06b6d4, #2dd4bf);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(34, 211, 238, 0.5);
    width: auto;
    min-width: 200px;
    text-align: center;
    letter-spacing: -0.5px;
    margin-top: 5px;
}

.hm-text-yellow {
    color: #fde047 !important;
    font-weight: 800;
    font-size: 19px;
    margin: 0 2px;
    display: inline-block;
}

.hm-diag-risk {
    background: linear-gradient(135deg, #fbbf24, #f97316);
}

.hm-diag-bankruptcy {
    background: linear-gradient(135deg, #f87171, #ef4444);
}

.hm-diag-normal {
    background: linear-gradient(135deg, #4ade80, #10b981);
}

.hm-diag-ineligible {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
}

.hm-result-badge-anim i {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.2);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.hm-badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hm-badge-sub {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.9;
}

.hm-badge-main {
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .hm-chart-anim-wrap {
        width: 90%;
        height: 80%;
        top: 5%;
    }

    .hm-result-badge-anim {
        padding: 8px 16px;
        gap: 8px;
        top: 10%;
        right: 15%;
    }

    .hm-result-badge-anim i {
        width: 32px !important;
        height: 32px !important;
        font-size: 20px !important;
        flex: 0 0 32px !important;
    }

    .hm-badge-main {
        font-size: 15px;
    }
}

@media (max-width: 1024px) {
    .hm-card-inner {
        flex-direction: column;
        height: auto;
        min-height: 600px;
        width: calc(100% - 40px);
        max-width: 500px;
        margin: 0 20px;
    }

    .hm-card-content {
        padding: 50px 35px;
        order: 2;
    }

    .hm-card-visual {
        order: 1;
        height: 320px;
        flex-shrink: 0;
    }

    .hm-card-visual i {
        font-size: 100px;
    }

    .hm-card-content h3 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .hm-card-content p {
        font-size: 16px;
        line-height: 1.6;
    }

    /* [Premium Card Mobile Override] - 고정 높이 방식으로 변경 */
    .hm-card-inner.hm-premium-card {
        min-height: auto !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .hm-card-inner.hm-premium-card .hm-card-visual {
        height: 300px !important;
        flex: none !important;
        order: 1 !important;
        width: 100% !important;
    }

    .hm-card-inner.hm-premium-card .hm-card-content {
        flex: 1 !important;
        height: auto !important;
        padding: 40px 30px !important;
        order: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .hm-card-inner.hm-premium-card .hm-card-content h3 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .hm-card-inner.hm-premium-card .hm-card-content p {
        font-size: 15px;
    }

    /* Mobile Adjustments for Diagnosis Card */
    .hm-diag-card {
        width: 90% !important;
        left: 5% !important;
        font-size: 16px !important;
        height: 60px !important;
    }

    .hm-diag-card i {
        font-size: 18px !important;
        width: 18px !important;
    }

    .hm-why-section {
        padding: 120px 0 60px;
    }

    .hm-why-header {
        padding: 0 20px;
    }

    .hm-why-header p {
        font-size: 16px;
    }
}

/* --------------------------------------------------
   3) Comparison (Services)
   -------------------------------------------------- */
.hm-comparison-section {
    padding: 100px 20px;
    background-color: #ffffff;
    box-sizing: border-box;
}

.hm-comparison-container {
    max-width: 1100px;
    margin: 0 auto;
}

.hm-comp-header {
    text-align: center;
    margin-bottom: 60px;
}

.hm-comp-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive: Stack vertically below 900px */
@media (max-width: 900px) {
    .hm-comp-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

.hm-comp-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--hm-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hm-comp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--hm-color-hope);
}

.hm-comp-card-header {
    padding: 40px 40px 30px;
    position: relative;
}

.hm-comp-card-body {
    padding: 30px 40px 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Card Themes matching Why Section */
.hm-comp-card.comp-v1 .hm-comp-card-header {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

.hm-comp-card.comp-v1 .hm-comp-icon {
    color: #009FE3;
    background: #fff;
}

.hm-comp-card.comp-v2 .hm-comp-card-header {
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
}

.hm-comp-card.comp-v2 .hm-comp-icon {
    color: #2CBCC9;
    background: #fff;
}

.hm-comp-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hm-badge-rehab {
    background-color: #E3F2FD;
    color: #0067C6;
}

.hm-badge-business {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.hm-card-header-flex {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hm-comp-icon {
    font-size: 32px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.hm-comp-title {
    font-family: var(--hm-font-body);
    font-size: 28px;
    font-weight: 800;
    color: var(--hm-color-charcoal);
    margin-bottom: 5px;
}

.hm-text-group {
    display: flex;
    flex-direction: column;
}

.hm-comp-desc {
    font-size: 14.5px;
    color: var(--hm-color-body);
    margin: 0;
    font-weight: 500;
    opacity: 0.85;
}

.hm-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
    width: 100%;
}

.hm-mini-card {
    background: #F9FBFC;
    border-radius: 12px;
    height: 100px;
    position: relative;
    overflow: hidden;
    border: 1px solid #edf1f5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-sizing: border-box;
}

.hm-comp-card.comp-v1 .hm-mini-card:hover {
    background: #fff;
    border-color: #009FE3;
    box-shadow: 0 8px 20px rgba(0, 159, 227, 0.1);
}

.hm-comp-card.comp-v2 .hm-mini-card:hover {
    background: #fff;
    border-color: #2CBCC9;
    box-shadow: 0 8px 20px rgba(44, 188, 201, 0.1);
}

.hm-mini-head {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 10px;
    text-align: center;
    transition: opacity 0.2s ease, visibility 0.2s;
    opacity: 1;
    visibility: visible;
    box-sizing: border-box;
}

.hm-mini-card:hover .hm-mini-head,
.hm-mini-card.active .hm-mini-head {
    opacity: 0;
    visibility: hidden;
}

.hm-mini-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
    word-break: keep-all;
}

.hm-comp-card.comp-v1 .hm-mini-title {
    color: #0067C6;
}

.hm-comp-card.comp-v2 .hm-mini-title {
    color: #15803d;
}

.hm-mini-body {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13.5px;
    color: #334155;
    line-height: 1.6;
    word-break: keep-all;
    text-align: center !important;
    background: #fff;
    z-index: 3;
    box-sizing: border-box;
    font-weight: 600;
}

.hm-mini-card:hover .hm-mini-body {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

@media (max-width: 768px) {
    .hm-comp-card {
        padding: 0 !important;
    }

    .hm-comp-card-header {
        padding: 30px 20px 20px !important;
    }

    .hm-comp-card-body {
        padding: 20px 20px 30px !important;
    }

    .hm-card-header-flex {
        gap: 15px !important;
    }

    .hm-comp-icon {
        width: 52px !important;
        height: 52px !important;
        font-size: 24px !important;
        border-radius: 12px !important;
    }

    .hm-comp-title {
        font-size: 22px !important;
    }

    .hm-comp-desc {
        font-size: 13px !important;
    }

    .hm-comp-badge {
        font-size: 11px !important;
        padding: 5px 12px !important;
        margin-bottom: 15px !important;
    }

    .hm-mini-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 10px !important;
    }

    .hm-mini-card {
        height: 85px !important;
    }

    .hm-mini-title {
        font-size: 13px;
    }

    .hm-mini-body {
        font-size: 11.5px;
        padding: 8px;
    }
}

/* --------------------------------------------------
   4) 성공 사례
   -------------------------------------------------- */
.hm-stories-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    --hm-color-bg-soft: #f0f4f8;
    --hm-gradient-main-local: linear-gradient(135deg, #009FE3 0%, #64E5C2 100%);
    --hm-radius-md: 16px;
    --hm-shadow-card: 0 15px 35px rgba(0, 0, 0, 0.1);
    background-color: var(--hm-color-bg-soft);
    padding: 80px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.hm-stories-section * {
    box-sizing: border-box;
}

.hm-stories-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.hm-stories-header {
    text-align: center;
    margin-top: 100px;
    margin-bottom: 60px;
}

.hm-stories-header h2 {
    margin-bottom: 16px;
    line-height: 1.4;
    word-break: keep-all;
}

.hm-stories-header p {
    color: var(--hm-color-text-body);
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    word-break: keep-all;
}

.hm-carousel-wrapper {
    position: relative;
    height: 420px;
    perspective: 1000px;
    margin-top: 20px;
}

.hm-review-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: 340px;
    background: #ffffff;
    border-radius: var(--hm-radius-md);
    box-shadow: var(--hm-shadow-card);
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: all 0.5s ease-in-out;
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
    z-index: 1;
    cursor: pointer;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.hm-review-card.active {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 159, 227, 0.15);
    border: 1px solid rgba(0, 159, 227, 0.1);
}

.hm-review-card.prev {
    opacity: 0.6;
    transform: translateX(-130%) scale(0.85);
    z-index: 5;
}

.hm-review-card.next {
    opacity: 0.6;
    transform: translateX(30%) scale(0.85);
    z-index: 5;
}

.hm-review-card.hide-left {
    transform: translateX(-250%) scale(0.6);
    opacity: 0;
    z-index: 0;
}

.hm-review-card.hide-right {
    transform: translateX(150%) scale(0.6);
    opacity: 0;
    z-index: 0;
}

.hm-review-tag {
    display: inline-block;
    font-size: 14px;
    color: var(--hm-color-text-line);
    margin-bottom: 12px;
    font-weight: 500;
}

.hm-review-stat {
    font-size: 24px;
    color: var(--hm-color-primary);
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hm-review-stat i {
    font-size: 18px;
}

.hm-review-compare {
    background-color: #F5F7FA;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    color: var(--hm-color-text-head);
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
    word-break: keep-all;
}

.hm-review-quote {
    font-size: 16px;
    color: var(--hm-color-text-body);
    line-height: 1.6;
    font-style: italic;
    position: relative;
    padding-left: 12px;
    border-left: 3px solid var(--hm-color-hope);
    word-break: keep-all;
}

.hm-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--hm-color-text-head);
    font-size: 18px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.hm-nav-btn:hover {
    background: var(--hm-color-primary);
    color: #ffffff;
    border-color: var(--hm-color-primary);
}

.hm-nav-prev {
    left: 20px;
}

.hm-nav-next {
    right: 20px;
}

/* --------------------------------------------------
   6) Posts Section
   -------------------------------------------------- */
.hm-posts-section {
    padding: 120px 20px;
    background-color: #f0f4f8;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
}

.hm-posts-header {
    text-align: center;
    margin-bottom: 60px;
}

.hm-posts-grid {
    max-width: 1200px;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.hm-post-card {
    background: #fff;
    border-radius: var(--hm-radius-lg);
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hm-post-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 103, 198, 0.1);
    border-color: var(--hm-color-hope);
}

.hm-post-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f8f9fa;
}

.hm-post-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hm-post-card:hover .hm-post-img-wrapper img {
    transform: scale(1.08);
}

.hm-post-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hm-post-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    color: var(--hm-color-primary);
    margin-bottom: 16px;
    background: #f0f7ff;
    padding: 5px 12px;
    border-radius: 4px;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hm-post-title {
    font-size: 1.95rem;
    font-weight: 800;
    color: var(--hm-color-charcoal);
    margin: 0 0 15px 0;
    line-height: 1.45;
    word-break: keep-all;
    transition: color 0.3s ease;
}

.hm-post-card:hover .hm-post-title {
    color: var(--hm-color-primary);
}

.hm-post-excerpt {
    font-size: 15px;
    color: var(--hm-color-body);
    line-height: 1.6;
    margin-bottom: 25px;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.hm-post-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f5f5f5;
}

.hm-post-date {
    font-size: 13px;
    color: #bbb;
    font-weight: 500;
}

.hm-post-more {
    font-size: 14px;
    font-weight: 700;
    color: var(--hm-color-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.hm-post-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.hm-post-card:hover .hm-post-more i {
    transform: translateX(3px);
}

.hm-posts-cta {
    text-align: center;
}

@media (max-width: 1024px) {
    .hm-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .hm-posts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .hm-posts-section {
        padding: 80px 20px;
    }

    .hm-post-title {
        font-size: 1.755rem;
    }

    .hm-post-content {
        padding: 25px;
    }
}

/* Carousel Button Specific Override */
.hm-nav-btn.hm-nav-prev,
.hm-nav-btn.hm-nav-next {
    background: #ffffff !important;
    color: var(--hm-color-text-head) !important;
    border: 1px solid #eee !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.hm-nav-btn:hover {
    background: var(--hm-color-primary) !important;
    color: #ffffff !important;
    border-color: var(--hm-color-primary) !important;
}

@media (max-width: 768px) {
    .hm-carousel-wrapper {
        height: 400px;
    }

    .hm-review-card {
        width: 240px;
    }

    .hm-review-card.prev {
        transform: translateX(-155%) scale(0.85);
        opacity: 0.6;
        z-index: 5;
    }

    .hm-review-card.next {
        transform: translateX(55%) scale(0.85);
        opacity: 0.6;
        z-index: 5;
    }

    .hm-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .hm-nav-prev {
        left: 10px;
    }

    .hm-nav-next {
        right: 10px;
    }
}

/* --------------------------------------------------
   5) FAQ
   -------------------------------------------------- */
.hm-faq-section {
    --hm-color-bg-soft: #F9FAFC;
    --hm-color-white: #ffffff;
    --hm-radius-md: 12px;
    --hm-shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
    --hm-transition: all 0.3s ease;
    background-color: #ffffff;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 100px 20px;
    box-sizing: border-box;
    position: relative;
}

.hm-faq-section * {
    box-sizing: border-box;
}

.hm-faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

.hm-faq-header {
    text-align: center;
    margin-top: 100px;
    margin-bottom: 50px;
}

.hm-faq-header .hm-title {
    margin-bottom: 16px;
    line-height: 1.4;
    word-break: keep-all;
    margin-top: 0;
}

.hm-faq-header p {
    color: var(--hm-color-text-body);
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    word-break: keep-all;
}

.hm-accordion-item {
    margin-bottom: 24px;
    border-radius: var(--hm-radius-md);
    box-shadow: var(--hm-shadow-sm);
    overflow: hidden;
    transition: var(--hm-transition);
}

.hm-accordion-header {
    background-color: var(--hm-color-white);
    padding: 32px 40px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--hm-transition);
    flex-shrink: 0;
}

.hm-accordion-header:hover {
    background-color: #fcfcfc;
}

.hm-question-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--hm-color-text-head);
    margin: 0;
    word-break: keep-all;
    padding-right: 20px;
    transition: var(--hm-transition);
    line-height: 1.5;
}

.hm-accordion-icon {
    font-size: 20px;
    color: #ccc;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.hm-accordion-content {
    background-color: var(--hm-color-bg-soft);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.hm-answer-inner {
    padding: 35px 40px;
    font-size: 1.4rem;
    color: var(--hm-color-text-body);
    line-height: 1.7;
    word-break: keep-all;
    border-top: 1px solid #eee;
    min-height: 0;
}

.hm-answer-inner strong {
    color: var(--hm-color-primary);
    font-weight: 700;
}

.hm-accordion-item.active .hm-question-text {
    color: var(--hm-color-primary);
}

.hm-accordion-item.active .hm-accordion-icon {
    transform: rotate(45deg);
    color: var(--hm-color-primary);
}

.hm-accordion-item.active .hm-accordion-content {
    max-height: 500px;
    opacity: 1;
}

@media (max-width: 768px) {
    .hm-question-text {
        font-size: 16px;
    }

    .hm-accordion-header {
        padding: 20px;
    }

    .hm-answer-inner {
        padding: 20px;
        font-size: 15px;
    }
}

/* --------------------------------------------------
   6) 상담 폼
   -------------------------------------------------- */
.hm-consult-section {
    --hm-color-bg-soft: #F5F3EB;
    --hm-color-alert: #E53935;
    --hm-radius-md: 12px;
    --hm-input-height: 52px;
    background-color: #ffffff;
    padding: 80px 20px;
    box-sizing: border-box;
}

.hm-consult-section * {
    box-sizing: border-box;
}

.hm-consult-container {
    max-width: 900px;
    margin: 0 auto;
}

.hm-consult-header {
    text-align: center;
    margin-bottom: 50px;
}

.hm-consult-header .hm-title {
    margin-bottom: 16px;
    line-height: 1.4;
    word-break: keep-all;
    margin-top: 0;
}

.hm-consult-header p {
    color: var(--hm-color-text-body);
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    word-break: keep-all;
}

.hm-form-wrapper {
    display: flex;
    gap: 0;
    border-radius: var(--hm-radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
}

.hm-part-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--hm-color-text-head);
    margin-top: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 12px;
    line-height: 1.4;
}

.hm-form-part-a {
    flex: 1;
    min-width: 300px;
    background-color: var(--hm-color-bg-soft);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hm-form-part-b {
    flex: 1.5;
    min-width: 300px;
    background-color: #ffffff;
    padding: 40px;
}

.hm-form-group {
    margin-bottom: 24px;
}

.hm-form-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--hm-color-text-head);
    margin-bottom: 8px;
}

.hm-required-mark {
    color: var(--hm-color-alert);
    margin-left: 4px;
}

.hm-input,
.hm-select,
.hm-textarea {
    width: 100%;
    height: var(--hm-input-height);
    min-height: var(--hm-input-height);
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: var(--hm-color-text-body);
    transition: border-color 0.2s;
    background-color: #fff;
}

.hm-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.hm-textarea {
    height: 120px;
    padding: 16px;
    resize: vertical;
}

.hm-input:focus,
.hm-select:focus,
.hm-textarea:focus {
    outline: none;
    border-color: var(--hm-color-primary);
}

.hm-date-time-group {
    display: flex;
    gap: 12px;
}

.hm-date-time-group .hm-input,
.hm-date-time-group .hm-select {
    flex: 1;
}

.hm-chip-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hm-chip-btn {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: var(--hm-color-text-body);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.hm-chip-btn.active {
    background-color: var(--hm-color-primary);
    color: #fff;
    border-color: var(--hm-color-primary);
    font-weight: 600;
}

.hm-submit-btn {
    width: 100%;
    height: 60px;
    background: var(--hm-gradient-main);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.hm-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 103, 198, 0.3);
}

.hm-toggle-btn {
    width: 100%;
    padding: 16px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: var(--hm-color-text-head);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    transition: all 0.2s;
}

.hm-toggle-btn:hover {
    background-color: #f0f0f0;
}

.hm-toggle-btn.active {
    background-color: #eef6fc;
    border-color: var(--hm-color-primary);
    color: var(--hm-color-primary);
}

.hm-toggle-btn i {
    transition: transform 0.3s;
}

.hm-toggle-btn.active i {
    transform: rotate(180deg);
}

/* --------------------------------------------------
   Pricing Section
   -------------------------------------------------- */
.hm-checklist-section {
    padding: 80px 20px;
    background-color: #ffffff;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
}

.hm-pricing-section {
    padding: 80px 20px;
    background-color: #f0f4f8;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
}

.hm-pricing-container,
.hm-checklist-container {
    max-width: 900px;
    margin: 0 auto;
}

.hm-pricing-header {
    text-align: center;
    margin-top: 100px;
    margin-bottom: 40px;
}

.hm-pricing-eyebrow {
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--hm-color-secondary);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

/* Main Pricing Card */
.hm-price-card {
    background: #fff;
    border-radius: var(--hm-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    margin-bottom: 30px;
}

.hm-price-card-header {
    display: none;
}

.hm-price-card-body {
    padding: 25px 30px;
    text-align: center;
}

.hm-price-main-display {
    background: var(--hm-gradient-main);
    margin: 20px;
    padding: 45px 30px;
    border-radius: 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 15px 35px rgba(0, 159, 227, 0.2);
    text-align: center;
}

.hm-price-main-display::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.hm-price-main-display::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.hm-price-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.hm-price-value-wrap {
    margin-bottom: 0;
}

.hm-price-value {
    font-size: 64px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -2px;
}

.hm-price-vat {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 5px;
    font-weight: 500;
}

.hm-price-highlight-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    grid-column: span 2;
    background: #F0F7FF;
    border: 1px solid #D9E9FA;
    transition: transform 0.2s;
    margin-bottom: 3px;
}

.hm-price-highlight-box:hover {
    transform: translateY(-2px);
}

.hm-price-highlight-box .hm-benefit-icon {
    background: transparent;
    color: #009FE3;
    width: auto;
    height: auto;
    box-shadow: none;
    font-size: 20px;
}

.hm-price-highlight-box .hm-benefit-text {
    font-size: 18px;
    font-weight: 800;
    color: #007BD2;
}

.hm-benefit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    text-align: left;
}

.hm-benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F8F9FA;
    padding: 14px 20px;
    border-radius: 12px;
    transition: transform 0.2s;
}

.hm-benefit-item:hover {
    transform: translateY(-2px);
}

.hm-benefit-icon {
    width: 36px;
    height: 36px;
    background: #E8F8F5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4ADBB5;
    font-size: 14px;
    flex-shrink: 0;
}

.hm-benefit-text {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

/* Comparison Section Refined - Outer Card Removed for Open Layout */
.hm-comparison-mini {
    padding: 40px 0 80px;
    margin-bottom: 60px;
    text-align: center;
}

.hm-comp-header {
    margin-bottom: 50px;
}

.hm-comp-warning-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FF5252;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(255, 82, 82, 0.3);
}

/* 해미리 프리미엄 그라데이션 뱃지 */
.hm-badge-gradient {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--hm-gradient-main);
    color: #fff !important;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 159, 227, 0.25);
    margin-bottom: 20px;
    border: none;
    line-height: normal;
}

.hm-badge-gradient i {
    font-size: 1.1em;
}

.hm-comp-mini-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--hm-color-charcoal);
    margin-bottom: 15px;
    word-break: keep-all;
}

.hm-comp-mini-desc {
    font-size: 16px;
    color: var(--hm-color-text-body);
    line-height: 1.6;
    margin-bottom: 0;
    word-break: keep-all;
    opacity: 0.9;
}

/* Progress Display Integrated into Cards */
.hm-comp-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

/* Vertical line for PC (positioned behind cards) */
.hm-comp-grid-wrap {
    position: relative;
}

.hm-comp-pc-line {
    position: absolute;
    top: 15px;
    left: 10%;
    right: 10%;
    height: 6px;
    background: #f0f0f0;
    z-index: 0;
    border-radius: 4px;
    overflow: hidden;
}

.hm-comp-pc-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--hm-color-primary), transparent);
    transform: translateX(-100%);
    animation: hm-progress-pc 3s infinite linear;
    opacity: 0.6;
}

.hm-comp-step-unit {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.hm-comp-step-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
}

.hm-comp-step-num {
    width: 36px;
    height: 36px;
    background: var(--hm-color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 0 0 4px rgba(0, 159, 227, 0.1), 0 4px 10px rgba(0, 159, 227, 0.2);
}

.hm-comp-step-label {
    font-size: 15px;
    font-weight: 800;
    color: var(--hm-color-charcoal);
}

/* Card Item Style */
.hm-comp-point {
    background: #fff;
    border: 1px solid #f2f2f2;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: 100% !important;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Pain Bubble (Light Red) */
.hm-pain-bubble {
    background: #FFF5F5;
    border: 1px solid #FFCBD1;
    border-radius: 16px;
    padding: 25px 20px;
    margin: 20px 15px 20px;
    position: relative;
    text-align: left;
    width: calc(100% - 30px);
    box-sizing: border-box;
    color: #444;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 10px 25px rgba(229, 57, 53, 0.05);
    min-height: 110px;
}

.hm-pain-bubble strong {
    color: #E53935;
    font-weight: 800;
}

/* Bubble Tail with Stroke */
.hm-pain-bubble::before {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 24px;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 11px solid #FFCBD1;
    z-index: 1;
}

.hm-pain-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #FFF5F5;
    z-index: 2;
}

.hm-pain-bubble .hm-q-icon {
    position: absolute;
    top: -12px;
    right: -10px;
    width: 32px;
    height: 32px;
    background: #FF5252;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(255, 82, 82, 0.4);
    border: 2px solid #fff;
}

/* Comparison Rows Refined */
.hm-comp-comparison-rows {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex-grow: 1;
}

.hm-comp-row {
    text-align: left;
    padding: 0 25px 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.hm-icon-circ {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.hm-comp-row.others {
    color: #aaa;
    padding-bottom: 30px;
    min-height: 60px;
}

.hm-comp-row.others .hm-icon-circ {
    background: #FFF5F5;
    color: #FF8A80;
}

.hm-comp-row.others .main-txt {
    text-decoration: line-through;
    color: #bbb;
    font-weight: 500;
    font-size: 14px;
}

.hm-comp-row.others .sub-txt {
    color: #FF8A80;
    font-weight: 700;
    font-size: 14px;
    display: block;
    margin-top: 4px;
    line-height: 1.4;
}

/* Haemil Row (Bottom Highlight) */
.hm-comp-row.haemil {
    background: #f8fbff;
    padding: 40px 25px;
    margin-top: auto;
    border-top: 1px solid #f0f5fa;
}

.hm-comp-row.haemil .hm-icon-circ {
    background: var(--hm-gradient-main);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 159, 227, 0.3);
}

.hm-comp-row.haemil .main-txt {
    font-size: 17px;
    font-weight: 800;
    color: var(--hm-color-charcoal);
    display: block;
    min-height: 45px;
}

.hm-comp-row.haemil .sub-txt {
    color: var(--hm-color-primary);
    font-weight: 700;
    font-size: 14px;
    display: block;
    margin-top: 6px;
}

/* Comparison Footer */
.hm-comp-footer {
    margin-top: 60px;
    padding: 40px 20px;
}

.hm-trust-msg {
    font-size: 18px;
    font-weight: 800;
    color: var(--hm-color-primary);
    margin-bottom: 10px;
    word-break: keep-all;
}

.hm-trust-sub {
    font-size: 14px;
    color: #777;
}

/* Mobile Responsive Logic */
@media (max-width: 768px) {
    .hm-comp-pc-line {
        display: none;
    }

    .hm-comp-grid-3 {
        grid-template-columns: 1fr;
        gap: 50px;
        position: relative;
        padding-left: 20px;
    }

    /* Vertical Progress Line for Mobile */
    .hm-comp-grid-3::before {
        content: '';
        position: absolute;
        top: 0;
        left: 33px;
        bottom: 0;
        width: 6px;
        z-index: 0;
        border-radius: 4px;
        background: linear-gradient(to bottom, #f0f0f0 0%, #f0f0f0 30%, var(--hm-color-primary) 50%, #f0f0f0 70%, #f0f0f0 100%);
        background-size: 100% 200%;
        animation: hm-progress-mobile 3s infinite linear;
        opacity: 0.8;
    }

    .hm-comp-step-unit {
        align-items: flex-start;
    }

    .hm-comp-step-info {
        flex-direction: row;
        align-items: center;
        margin-bottom: 20px;
        z-index: 2;
    }

    .hm-comp-step-num {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .hm-pain-bubble,
    .hm-comp-row.others,
    .hm-comp-row.haemil .main-txt {
        min-height: auto;
    }
}

/* Cost List Section */
.hm-cost-list-wrap {
    background: #fff;
    border-radius: var(--hm-radius-lg);
    padding: 30px 20px;
    border: 1px solid #eee;
}

.hm-cost-list-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.hm-cost-list-header::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--hm-color-hope);
    border-radius: 2px;
}

.hm-cost-list-header .hm-comp-title {
    font-size: 20px;
    margin-bottom: 0;
    font-weight: 800;
    color: var(--hm-color-charcoal);
}

.hm-cost-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.hm-cost-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hm-cost-label-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hm-cost-item-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--hm-color-charcoal);
}

.hm-cost-item-desc {
    font-size: 15px;
    color: #999;
    font-weight: 500;
    margin-top: 2px;
}

.hm-cost-value-text {
    font-size: 15px;
    font-weight: 500;
    color: #007BD2;
    text-align: right;
}

/* Tooltip */
.hm-tooltip-trigger {
    width: 22px;
    height: 22px;
    background: #fff;
    color: #ccc;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.hm-tooltip-trigger:hover {
    background: var(--hm-color-secondary);
    color: #fff;
}

.hm-tooltip-content {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    width: 250px;
    background: #333;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.6;
    z-index: 100;
    display: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.hm-tooltip-trigger:hover .hm-tooltip-content {
    display: block;
}

.hm-tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 4px;
    border: 6px solid transparent;
    border-top-color: #333;
}

.hm-tooltip-content strong {
    display: block;
    color: var(--hm-color-hope);
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .hm-price-value {
        font-size: 48px;
    }

    .hm-benefit-grid {
        grid-template-columns: 1fr;
    }

    .hm-comp-grid-3 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hm-price-highlight-box {
        grid-column: span 1;
    }

    .hm-cost-item {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 20px 0;
    }

    .hm-cost-info {
        flex: 1;
        min-width: 180px;
    }

    .hm-cost-value-text {
        text-align: right;
        width: auto;
        flex-shrink: 0;
        padding-top: 0;
        border-top: none;
        margin-left: auto;
    }

    .hm-tooltip-content {
        right: auto;
        left: -100px;
        width: 200px;
    }

    .hm-tooltip-content::after {
        right: auto;
        left: 105px;
    }
}

/* =========================================
   COMPETITOR PAIN BUBBLE CUSTOM STYLES
   ========================================= */
.hm-pain-bubble {
    background: var(--hm-gradient-main) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0, 159, 227, 0.3) !important;
}

/* 말풍선 내부 모든 텍스트 흰색 강제 */
.hm-pain-bubble strong,
.hm-pain-bubble b,
.hm-pain-bubble span {
    color: #fff !important;
}

/* 말풍선 꼬다리 색상 매칭 */
.hm-pain-bubble::after {
    border-top-color: #38c1d3 !important;
}

.hm-pain-bubble::before {
    border-top-color: transparent !important;
}

/* 아이콘 스타일 (해밀 블루 배경에 흰색 텍스트) */
.hm-q-icon {
    background: #009FE3 !important;
    color: #fff !important;
    font-weight: 900 !important;
    border: 2px solid #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transform: scale(1.1);
}

/* 업체 선정 필수 체크리스트 라벨 강제 적용 */
.hm-comp-warning-label {
    background: var(--hm-gradient-main) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 159, 227, 0.3) !important;
}

.hm-comp-warning-label i {
    color: #fff !important;
}

/* ============================================================
   SECTION 5: Drawer
   ============================================================ */

/* [Drawer Style Restoration & Fix] */
.hm-step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    border: none !important;
}

.hm-step-num {
    background: #eef6fc;
    color: #009FE3;
    font-weight: 800;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 20px;
    line-height: 1;
    flex-shrink: 0;
    height: auto;
}

.hm-step-label {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    text-decoration: none !important;
    border-bottom: none !important;
    display: block !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    padding-top: 3px;
    font-family: 'Pretendard', sans-serif !important;
    letter-spacing: -0.5px !important;
}

.hm-desc-sm {
    font-size: 14px;
    color: #888;
    margin-top: -15px;
    font-weight: 400;
    margin-bottom: 25px;
}

.hm-drawer-title {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    line-height: 1.3;
    margin-bottom: 12px;
    margin-top: 0;
}

.hm-drawer-title .hm-gradient-text {
    background: linear-gradient(135deg, #009FE3 0%, #64E5C2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hm-drawer-subtitle {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Hero Scroll Indicator Position Adjustment */
.hm-hero-scroll-indicator {
    bottom: 70px !important;
}

/* [Premium Section Full Width Background] */
.hm-premium-list-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: #F8FBFF;
    padding: 80px 0;
    position: relative;
    left: 0;
}

/* Centering Content inside Full Width Section */
.hm-premium-list-section > .hm-section-header,
.hm-premium-list-section > .hm-card-inner {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 40px);
    box-sizing: border-box;
}

.hm-premium-list-section > .hm-card-inner {
    margin-bottom: 60px;
}

/* ============================================================
   SECTION 4: Animations (CSS keyframes)
   ============================================================ */

@keyframes hm-text-flow {
    0% {
        background-position: 200% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes hm-hero-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes hm-progress-pc {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes hm-progress-mobile {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 0% 100%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ============================================================
   SECTION 5: Drawer (사이드 드로어 전용)
   출처: 00_2_Style_Drawer.html
   ============================================================ */

/* Fixed CTA Button */
.hm-fixed-cta {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 9990 !important;
    cursor: pointer !important;
    border-radius: 50px !important;
    transition: none !important;
    opacity: 0;
    transform: scale(0) translateY(100px) rotate(10deg);
    pointer-events: none !important;
    will-change: transform, opacity;
}

@media (max-width: 900px) {
    .hm-fixed-cta {
        bottom: 20px !important;
        right: 20px !important;
    }
}

.hm-fixed-cta.is-visible {
    pointer-events: auto !important;
}

.hm-fixed-cta:hover {
    transform: translateY(-5px) !important;
    animation: none !important;
}

@keyframes hm-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 159, 227, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 159, 227, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 159, 227, 0);
    }
}

@keyframes hm-bounce-down {

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

    50% {
        transform: translateY(3px);
    }
}

.hm-arrow-bounce {
    animation: hm-bounce-down 1.2s ease-in-out infinite;
}

.hm-cta-content {
    background: var(--hm-gradient-main);
    padding: 18px 28px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 103, 198, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    position: relative;
    overflow: hidden;
    animation: hm-pulse 2s infinite !important;
}

@media (max-width: 900px) {
    .hm-cta-content {
        padding: 14px 22px;
    }

    .hm-cta-text {
        font-size: 16px !important;
    }

    .hm-cta-icon {
        font-size: 18px !important;
    }
}

.hm-cta-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.5),
            transparent);
    transform: skewX(-25deg);
}

.hm-fixed-cta.is-animating .hm-cta-content::after {
    animation: hm-cta-shine 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.5s;
}

@keyframes hm-cta-shine {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}

.hm-cta-icon {
    font-size: 20px;
}

.hm-cta-text {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.2;
}

.hm-cta-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.hm-cta-subtext {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.9;
    line-height: 1;
    letter-spacing: -0.2px;
    margin-bottom: 2px;
}

/* Drawer Overlay */
.hm-drawer-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 9998 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3) !important;
}

.hm-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sliding Drawer */
.hm-drawer {
    position: fixed !important;
    top: 0 !important;
    right: -520px !important;
    width: 480px !important;
    max-width: 100% !important;
    height: 100% !important;
    background: #fff !important;
    z-index: 9999 !important;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1) !important;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
}

.hm-drawer * {
    box-sizing: border-box !important;
}

.hm-drawer.active {
    right: 0 !important;
}

/* Drawer Header */
.hm-drawer-header {
    padding: 15px 30px !important;
    border-bottom: 1px solid #eee !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: #fff !important;
    position: relative !important;
}

.hm-drawer-logo-header {
    height: 70px;
    width: auto;
}

.hm-drawer-close {
    position: absolute !important;
    right: 25px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    color: #999 !important;
    cursor: pointer !important;
    padding: 5px !important;
    transition: color 0.2s !important;
}

.hm-drawer-close:hover {
    color: var(--hm-color-charcoal);
}

/* Drawer Body */
.hm-drawer-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 30px !important;
    background: #fcfcfc !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Drawer Tab Navigation */
.hm-drawer-tabs {
    display: flex !important;
    background: var(--hm-gradient-main) !important;
    padding: 6px !important;
    border-radius: 50px !important;
    margin-bottom: 30px !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

.hm-tab-item {
    flex: 1 !important;
    padding: 13px 0 !important;
    border: none !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 40px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.hm-tab-item:hover:not(.active) {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.hm-tab-item.active {
    background: #fff !important;
    color: #009FE3 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Pane Animation */
.hm-tab-pane {
    animation: fadeIn 0.4s ease-out !important;
    position: relative !important;
    display: none;
}

.hm-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Preparing Card (Empty State) */
.hm-preparing-card {
    background: #fff;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    border: 2px dashed #e5e5e5;
    margin-top: 40px;
}

.hm-icon-circle-lg {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--hm-color-secondary);
    font-size: 28px;
    box-shadow: 0 10px 20px rgba(0, 159, 227, 0.1);
}

.hm-preparing-card h3 {
    margin: 0 0 10px;
    color: var(--hm-color-text-head);
    font-size: 20px;
    font-weight: 800;
}

.hm-preparing-card p {
    color: #999;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    word-break: keep-all;
}

/* Form Steps */
.hm-form-step {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Drawer Header Text */
.hm-drawer-header-text {
    margin-bottom: 30px;
    padding: 0 5px;
}

/* NOTE: .hm-drawer-title, .hm-drawer-title .hm-gradient-text, .hm-drawer-subtitle
   는 style.css line 2943~2964에 이미 정의되어 있어 중복 제외 */

.hm-step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.hm-step-num {
    background: #eef6fc;
    color: var(--hm-color-primary);
    font-weight: 800;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 20px;
}

.hm-step-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--hm-color-text-head);
}

.hm-divider-light {
    height: 1px;
    background: #f0f0f0;
    margin: 25px 0;
}

/* Error Messages */
.hm-error-msg {
    color: #E53935;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
    padding-left: 5px;
    display: none;
    align-items: center;
    gap: 5px;
}

.hm-error-msg.visible {
    display: flex;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

.hm-step-group {
    margin-bottom: 0;
}

/* Inputs */
.hm-input-field {
    width: 100%;
    padding: 14px 25px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.2s;
    outline: none;
    box-sizing: border-box;
}

.hm-input-field:focus {
    border-color: var(--hm-color-primary);
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.1);
}

/* Grid Layouts */
.hm-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Select Buttons */
.hm-select-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 14px;
    border-radius: 50px;
    color: var(--hm-color-text-body);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}

.hm-select-btn:hover:not(.active) {
    background: #f9fafe;
    border-color: #b3d7ff;
}

.hm-select-btn.active,
.hm-time-btn.active,
.hm-date-square.active {
    background: var(--hm-gradient-main) !important;
    border-color: transparent !important;
    color: #fff !important;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(0, 103, 198, 0.25);
}

.hm-date-square.active .hm-date-num,
.hm-date-square.active .hm-today-label {
    color: #fff !important;
}

/* Calendar UI */
.hm-calendar-wrapper {
    margin-bottom: 25px;
    padding: 0 5px;
}

.hm-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px;
}

.hm-calendar-current {
    font-size: 19px;
    font-weight: 800;
    color: var(--hm-color-charcoal);
}

.hm-calendar-nav {
    display: flex;
    gap: 20px;
}

.hm-cal-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #ccc;
    padding: 5px;
    transition: color 0.2s;
}

.hm-cal-btn:hover:not(:disabled) {
    color: var(--hm-color-charcoal);
}

.hm-cal-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.hm-calendar-week-labels {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 12px;
}

.hm-calendar-week-labels span {
    font-size: 15px;
    font-weight: 700;
    color: var(--hm-color-charcoal);
}

.hm-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.hm-date-square {
    background: none;
    border: none;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: relative;
    padding: 0;
}

.hm-date-square:hover:not(.active):not(:disabled) {
    background: #f0f3f8;
}

.hm-date-square:disabled {
    cursor: default;
    color: #ddd;
}

.hm-date-square:disabled .hm-date-num {
    color: #ddd;
}

.hm-date-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--hm-color-charcoal);
}

.hm-today-label {
    font-size: 10px;
    font-weight: 800;
    margin-top: -1px;
}

/* Time Grid */
.hm-time-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.hm-time-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 50px;
    font-size: 14px;
    color: var(--hm-color-text-body);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.hm-time-btn.full-width {
    grid-column: span 2;
    font-weight: 700;
}

.hm-time-btn:hover:not(:disabled) {
    background: #f9fafe;
    border-color: #b3d7ff;
}

.hm-time-btn:disabled {
    background: #f5f5f5;
    color: #ccc;
    border-color: #eee;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Map Section */
.hm-drawer-map-section {
    margin-top: 50px;
    padding-top: 35px;
    border-top: 1px solid #eee;
}

.hm-contact-info {
    margin-bottom: 25px;
    padding: 0 5px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hm-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.hm-contact-icon {
    width: 40px !important;
    height: 40px !important;
    background: #f0f7ff !important;
    color: var(--hm-color-primary) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

.hm-contact-text {
    display: flex;
    flex-direction: column;
}

.hm-contact-label {
    font-size: 12px;
    color: #999;
    font-weight: 700;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hm-contact-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--hm-color-charcoal);
    line-height: 1.45;
    word-break: keep-all;
}

.hm-drawer-map-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.hm-agree-label {
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    gap: 8px;
    width: 100% !important;
    margin-bottom: 15px;
    cursor: pointer;
}

.hm-agree-text {
    font-size: 14px;
    color: #666;
}

/* Calculator Core */
.hm-calc-progress-box {
    margin-bottom: 30px;
    padding: 0 5px;
}

.hm-progress-track {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.hm-progress-fill {
    height: 100%;
    background: var(--hm-gradient-main);
    transition: width 0.3s ease;
}

.hm-progress-steps {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #ccc;
}

.hm-p-step.active {
    color: var(--hm-color-secondary);
    font-weight: 700;
}

.hm-calc-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.hm-calc-step.active {
    display: block;
}

.hm-calc-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--hm-color-charcoal);
    margin-bottom: 25px;
    line-height: 1.4;
}

.hm-desc-sm {
    font-size: 14px;
    color: #888;
    margin-top: -15px;
    margin-bottom: 25px;
}

.hm-label-sm {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #666;
    margin-bottom: 8px;
}

.hm-select-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.hm-select-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.hm-select-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.hm-radio-btn {
    position: relative;
    cursor: pointer;
}

.hm-radio-btn input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.hm-radio-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 15px;
    color: #666;
    transition: all 0.2s;
    font-weight: 500;
}

.hm-radio-btn input:checked+span {
    background: var(--hm-gradient-main);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(0, 159, 227, 0.3);
}

.hm-input-unit-wrap {
    position: relative;
    margin-bottom: 20px;
}

.hm-unit-text {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 15px;
}

.hm-text-right {
    text-align: right;
    padding-right: 60px !important;
}

.hm-radio-box {
    position: relative;
    cursor: pointer;
}

.hm-radio-box input {
    position: absolute;
    opacity: 0;
}

.hm-radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #666;
    transition: all 0.2s;
}

.hm-radio-box input:checked+.hm-radio-content {
    border-color: transparent;
    background: var(--hm-gradient-main);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 159, 227, 0.3);
}

.hm-chip-group {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    align-items: flex-start !important;
}

.hm-chip-group>.hm-check-chip {
    display: inline-block !important;
    flex-shrink: 0 !important;
    width: auto !important;
    max-width: none !important;
}

.hm-check-chip {
    display: inline-block !important;
    position: relative !important;
    cursor: pointer !important;
    width: auto !important;
    margin: 0 !important;
}

.hm-check-chip input {
    position: absolute !important;
    opacity: 0;
    width: 0 !important;
    height: 0 !important;
}

.hm-check-chip span {
    display: inline-block !important;
    padding: 10px 20px !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    color: #666 !important;
    transition: all 0.2s !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

.hm-check-chip input:checked+span {
    background: var(--hm-gradient-main) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 10px rgba(0, 159, 227, 0.2) !important;
}

.hm-drawer input[type=number]::-webkit-inner-spin-button,
.hm-drawer input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.hm-drawer input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.hm-amount-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 25px;
}

.hm-amount-chips.cols-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

.hm-amount-btn {
    width: 100%;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hm-amount-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #333;
}

.hm-amount-btn:active {
    background: #e1e6eb;
    transform: scale(0.98);
}

.hm-amount-btn.minus {
    background: #ffffff;
    color: #adb5bd;
    border-style: dashed;
    font-weight: 500;
}

.hm-amount-btn.minus:hover {
    background: #fff5f5;
    color: #ff8787;
    border-color: #ffc9c9;
    border-style: solid;
}

.hm-korean-money-display {
    font-size: 14px;
    color: var(--hm-color-primary);
    font-weight: 700;
    margin-top: -15px;
    margin-bottom: 15px;
    text-align: right;
    min-height: 20px;
}

.hm-range-wrap {
    position: relative;
    padding: 10px 0 30px;
}

.hm-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    outline: none;
}

.hm-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 2px solid var(--hm-color-secondary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s;
}

.hm-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.hm-range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #fff;
    border: 2px solid var(--hm-color-secondary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.hm-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.hm-range-value-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.hm-range-value-chip {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 50px;
    border: 2px solid transparent;
    background-image: linear-gradient(#fff, #fff), var(--hm-gradient-main);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    color: var(--hm-color-primary);
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 159, 227, 0.1);
    letter-spacing: -0.5px;
}

.hm-calc-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.hm-nav-prev,
.hm-nav-next {
    flex: 1;
    height: 52px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.hm-nav-prev {
    background: #f5f5f5;
    color: #888;
}

.hm-nav-prev:hover {
    background: #eee;
}

.hm-nav-next {
    background: var(--hm-color-charcoal);
    color: #fff;
}

.hm-nav-next:hover {
    background: #000;
}

.hm-submit-btn {
    width: 100%;
    height: 60px;
    background: var(--hm-gradient-main);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.hm-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 103, 198, 0.3);
}

@media (max-width: 768px) {
    .hm-fixed-cta {
        bottom: 15px;
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 0;
        padding: 0 15px;
        box-sizing: border-box;
        animation: none;
    }

    .hm-cta-content {
        border-radius: 50px;
        width: 100%;
        justify-content: center;
        padding: 20px;
        box-sizing: border-box;
        animation: hm-pulse 2s infinite;
    }

    .hm-drawer {
        width: 100% !important;
        right: -100% !important;
    }

    .hm-drawer.active {
        right: 0 !important;
    }

    .hm-drawer-body {
        padding: 20px 15px !important;
    }

    /* 모바일: 결과 모드 탭 여백도 body 패딩(15px)과 동일 */
    .hm-drawer-body.result-mode .hm-drawer-tabs {
        margin: 10px 15px 20px !important;
    }

    /* 모바일: consult 탭 전환 시 패딩 복원 */
    .hm-drawer-body.result-mode.consult-active {
        padding: 20px 15px !important;
    }

    .hm-form-step {
        padding: 20px 15px;
    }

    .hm-calendar-wrapper {
        margin-bottom: 20px;
        padding: 0;
    }

    .hm-calendar-grid {
        gap: 4px;
    }
}

/* Loading & Results Styles */
@keyframes hm-gradient-flow {
    0% {
        background-position: 200% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes hm-pulse-ai {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 159, 227, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(0, 159, 227, 0);
        transform: scale(1.03);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 159, 227, 0);
        transform: scale(1);
    }
}

#calc-loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.hm-result-status-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
    text-align: center !important;
    color: #333 !important;
    margin-bottom: 25px !important;
    transition: all 0.4s ease !important;
    border: none !important;
    display: block !important;
    position: relative !important;
    box-sizing: border-box !important;
    z-index: 1 !important;
}

.hm-result-status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: var(--hm-result-bg-color, #009FE3);
    z-index: -1;
    transition: background 0.4s ease;
}

.hm-result-status-card:has(.hm-status-header-inner.eligible) {
    --hm-result-bg-color: #009FE3;
}

.hm-result-status-card:has(.hm-status-header-inner.expert),
.hm-result-status-card:has(.hm-status-header-inner.tier-blue) {
    --hm-result-bg-color: #3DCBB1;
}

.hm-result-status-card:has(.hm-status-header-inner.bankruptcy) {
    --hm-result-bg-color: #e03131;
}

.hm-result-status-card:has(.hm-status-header-inner.ineligible) {
    --hm-result-bg-color: #868e96;
}

.hm-status-header-inner {
    border-radius: 16px 16px 0 0 !important;
    padding: 40px 20px 80px !important;
    margin-bottom: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    background: transparent !important;
    transition: all 0.4s ease !important;
    overflow: visible;
    display: block !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

.hm-status-header-inner.bankruptcy {
    background: linear-gradient(135deg, #e03131 0%, #fa5252 100%) !important;
}

/* MASTER DESIGN SYSTEM - Result Header Backgrounds */

/* 1. 파산 전환 고려 (RED) */
.hm-result-status-card.tier-red {
    box-shadow: 0 12px 30px rgba(224, 49, 49, 0.15);
}

.hm-status-header-inner.tier-red,
.status-header-gradient.tier-red {
    background: linear-gradient(135deg, #e03131 0%, #fa5252 100%) !important;
}

/* 2. 기각 위험 / 전문가 소명 (ORANGE) */
.hm-result-status-card.tier-orange {
    box-shadow: 0 12px 30px rgba(240, 140, 0, 0.15);
}

.hm-status-header-inner.tier-orange,
.status-header-gradient.tier-orange {
    background: linear-gradient(135deg, #f08c00 0%, #fab005 100%) !important;
}

/* 3. 회생 가능 (BLUE) */
.hm-result-status-card.tier-blue {
    box-shadow: 0 12px 30px rgba(0, 159, 227, 0.15);
}

.hm-status-header-inner.tier-blue,
.status-header-gradient.tier-blue {
    background: linear-gradient(135deg, #009FE3 0%, #64E5C2 100%) !important;
}

/* 4. 일반 상환 고려 (GREEN) */
.hm-result-status-card.tier-green {
    box-shadow: 0 12px 30px rgba(43, 138, 62, 0.15);
}

.hm-status-header-inner.tier-green,
.status-header-gradient.tier-green {
    background: linear-gradient(135deg, #2b8a3e 0%, #40c057 100%) !important;
}

/* 5. 회생 신청 불가 (ineligible) */
.hm-result-status-card.ineligible {
    box-shadow: 0 12px 30px rgba(134, 142, 150, 0.1);
}

.hm-status-header-inner.ineligible,
.status-header-gradient.ineligible {
    background: linear-gradient(135deg, #868e96 0%, #adb5bd 100%) !important;
    padding-bottom: 60px !important;
}

.hm-status-header-inner::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none !important;
}

.hm-status-badge {
    position: absolute;
    top: 15px;
    left: 20px;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
    opacity: 0.9;
}

/* Analysis Tags */
.hm-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.hm-tag.tag-strategic {
    background: #e7f5ff;
    color: #1971c2;
    border: 1px solid #a5d8ff;
}

.hm-tag.tag-warning {
    background: #fff5f5;
    color: #fa5252;
    border: 1px solid #ffc9c9;
}

.hm-tag.tag-info {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.hm-tag.tag-success {
    background: #ebfbee;
    color: #2f9e44;
    border: 1px solid #b2f2bb;
}

.hm-tag i {
    font-size: 11px;
}

.hm-status-title-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 15px;
    animation: hm-slide-up 0.5s ease-out;
}

.hm-status-title-box i {
    color: #fff;
    font-size: 28px;
}

.hm-status-title {
    font-family: 'Tmon Monsori', 'TmonMonsori', 'TmonMonsoriOTF', var(--hm-font-head) !important;
    font-size: 26px;
    font-weight: normal !important;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@keyframes hm-slide-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.hm-status-checks {
    display: flex !important;
    gap: 8px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
}

.hm-status-header-inner.eligible .hm-status-checks,
.hm-status-header-inner.tier-blue .hm-status-checks,
.hm-status-header-inner.tier-orange .hm-status-checks,
.hm-status-header-inner.tier-red .hm-status-checks,
.hm-status-header-inner.bankruptcy .hm-status-checks {
    margin-bottom: 0 !important;
}

.hm-check-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hm-check-item i {
    color: #fff;
    font-size: 28px;
}

.hm-check-item.unmet {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 135, 135, 0.2);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0.85;
}

.hm-check-item.unmet i {
    color: #ff8787;
    text-shadow: 0 0 10px rgba(255, 135, 135, 0.3);
}

.hm-check-item.unmet span {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.hm-check-item span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
}

.hm-status-amount-box {
    background: #fff !important;
    border-radius: 20px !important;
    padding: 45px 24px 25px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
    z-index: 10 !important;
    margin: 0 15px 25px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    display: block !important;
    width: auto !important;
    box-sizing: border-box !important;
}

.hm-status-header-inner.ineligible {
    padding-bottom: 80px !important;
}

.hm-status-header-inner.eligible {
    padding-bottom: 80px !important;
}

.hm-status-header-inner.bankruptcy,
.hm-status-header-inner.tier-red,
.hm-status-header-inner.tier-orange,
.hm-status-header-inner.tier-blue,
.hm-status-header-inner.tier-green {
    padding-bottom: 80px !important;
}

#res-content-eligible .hm-status-amount-box,
#res-content-expert .hm-status-amount-box {
    margin-top: -40px !important;
    margin-bottom: 25px !important;
}

#res-content-bankruptcy .hm-status-amount-box,
#res-content-level100 .hm-status-amount-box,
#res-content-ineligible .hm-status-amount-box {
    margin-top: -40px !important;
    margin-bottom: 25px !important;
}

#hm-common-analysis-card .hm-status-amount-box {
    margin-top: -40px !important;
    margin-bottom: 25px !important;
}

#hm-common-analysis-card {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
    min-height: 0 !important;
    background: #fff !important;
}

#hm-calc-result {
    display: none;
}

#hm-calc-result[style*="display: block"],
#hm-calc-result.show {
    display: block;
}

#hm-calc-form {
    display: block;
}

#hm-calc-form[style*="display: none"],
#hm-calc-form.hide {
    display: none;
}

#res-content-eligible,
#res-content-bankruptcy,
#res-content-ineligible,
#res-content-expert {
    display: none;
}

#res-content-eligible[style*="display: block"],
#res-content-bankruptcy[style*="display: block"],
#res-content-ineligible[style*="display: block"],
#res-content-expert[style*="display: block"] {
    display: block;
}

#res-content-eligible .hm-status-amount-box.moved-to-common {
    display: none;
}

#res-content-bankruptcy .hm-status-amount-box>div:last-child,
#res-content-expert .hm-status-amount-box>div:last-child {
    margin-top: 30px !important;
}

/* 금융권 티어 배지 */
.hm-tier-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f1f3f5;
    color: #868e96;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.hm-tier-badge.tier-green {
    background: #ebfbee;
    color: #2b8a3e;
    border-color: #b2f2bb;
}

.hm-tier-badge.tier-blue {
    background: #e7f5ff;
    color: #1864ab;
    border-color: #a5d8ff;
}

.hm-tier-badge.tier-orange {
    background: #fff4e6;
    color: #d9480f;
    border-color: #ffd8a8;
}

.hm-tier-badge.tier-red {
    background: #fff5f5;
    color: #c92a2a;
    border-color: #ffc9c9;
}

.hm-tier-badge.tier-black {
    background: #212529;
    color: #ffffff;
    border-color: #000000;
}

.hm-text-highlight {
    color: #009FE3;
    font-weight: 700;
    margin-left: 4px;
}

#res-content-eligible .hm-status-amount-box::before,
#res-content-bankruptcy .hm-status-amount-box::before,
#res-content-level100 .hm-status-amount-box::before,
#res-content-expert .hm-status-amount-box::before,
#res-content-ineligible .hm-status-amount-box::before,
#hm-common-analysis-card .hm-status-amount-box::before {
    content: '주요 분석 결과' !important;
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: #fff !important;
    padding: 8px 18px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #009FE3 !important;
    border-radius: 30px !important;
    border: 1px solid rgba(0, 159, 227, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    z-index: 11 !important;
    white-space: nowrap !important;
    letter-spacing: -0.2px !important;
}

.hm-amt-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.hm-amt-value {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #009FE3 0%, #64E5C2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hm-amt-sub {
    font-size: 14px;
    color: #555;
}

.hm-amt-sub span {
    color: #009FE3;
    font-weight: 800;
}

.hm-gradient-text {
    background: linear-gradient(135deg, #009FE3 0%, #64E5C2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* DTI Indicator Styles */
.hm-dti-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e9ecef;
}

.hm-dti-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hm-dti-label {
    font-size: 11px;
    font-weight: 800;
    color: #868e96;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hm-dti-value-group {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.hm-dti-val {
    font-size: 14px;
    font-weight: 800;
    color: #495057;
}

.hm-dti-status {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Severity Colors */
.hm-dti-level-red {
    color: #fa5252;
    border-color: #fa5252 !important;
}

.hm-dti-level-yellow {
    color: #f08c00;
    border-color: #f08c00 !important;
}

.hm-dti-level-green {
    color: #2f9e44;
    border-color: #2f9e44 !important;
}

/* DTI Gauge Bar */
.hm-dti-gauge-bg {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 10px;
    position: relative;
    margin-top: 10px;
    margin-bottom: 5px;
}

.hm-dti-gauge-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    border-radius: 10px;
    background: linear-gradient(90deg, #40c057 0%, #fab005 50%, #fa5252 100%);
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hm-dti-indicator {
    position: absolute;
    right: -10px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.hm-dti-indicator i {
    font-size: 11px;
}

@keyframes hm-dti-fire-anim {

    0%,
    100% {
        transform: scale(1) translateY(0);
        box-shadow: 0 0 8px rgba(255, 77, 77, 0.5);
    }

    50% {
        transform: scale(1.15) translateY(-2px);
        box-shadow: 0 0 15px rgba(255, 77, 77, 0.8);
    }
}

.hm-dti-indicator.burning {
    background: #ff4d4d !important;
    border-color: #ff4d4d !important;
    color: #fff !important;
    animation: hm-dti-fire-anim 0.6s infinite !important;
}

.hm-status-warning-card {
    background: transparent;
    border-radius: 0;
    padding: 30px 20px;
    text-align: center;
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hm-warning-icon-box {
    width: 60px;
    height: 60px;
    background: #f1f3f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #5c7cfa;
}

.hm-status-warning-card p {
    font-size: 18px;
    font-weight: 800;
    color: #333;
}

.hm-warning-sub {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
}

.hm-calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
    color: #555 !important;
}

.hm-calc-label {
    font-weight: 500;
}

.hm-calc-value {
    font-weight: 500;
    color: #333 !important;
}

.hm-calc-row.minus .hm-calc-value::before {
    content: "- ";
}

.hm-calc-row.multiply .hm-calc-value::before {
    content: "x ";
}

.hm-calc-divider {
    border-bottom: 1px solid #f0f0f0;
    margin: 5px 0;
}

.hm-calc-highlight {
    font-weight: 800 !important;
    color: #0A58CA !important;
    font-size: 16px;
}

.hm-breakdown-wrapper {
    margin-top: 25px;
    border-radius: 16px;
    border: 1px solid #eee;
    background: #fff;
    overflow: hidden;
}

.hm-details-toggle {
    width: 100%;
    background: #f8fafc;
    padding: 16px 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border: none;
}

.hm-details-toggle.active {
    background: #fff;
}

.hm-result-details-inner {
    padding: 20px;
    display: none;
}

.hm-details-toggle.active+.hm-result-details-inner {
    display: block;
}

.hm-tooltip-trigger {
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    position: relative;
    margin-left: 5px;
}

.hm-tooltip-trigger:hover,
.hm-tooltip-trigger.active {
    background: #009FE3;
    color: #fff;
    border-color: #009FE3;
}

.hm-tooltip-content {
    position: absolute;
    bottom: calc(100% + 10px);
    left: -10px;
    width: 200px;
    background: #333;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-size: 11px;
    display: none;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.hm-tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 20px;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.hm-tooltip-trigger:hover .hm-tooltip-content,
.hm-tooltip-trigger.active .hm-tooltip-content {
    display: block;
}

/* Success Modal Styles */
.hm-modal-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4) !important;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999 !important;
    backdrop-filter: blur(8px) !important;
    padding: 20px;
    animation: hm-fade-in 0.3s ease;
}

.hm-modal-content {
    background: #fff;
    border-radius: 28px;
    width: 100%;
    max-width: 360px;
    padding: 35px 25px 25px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    animation: hm-scale-up 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hm-modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #009FE3 0%, #64E5C2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 28px;
}

.hm-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #333;
    margin-bottom: 15px;
}

.hm-modal-summary {
    background: #f8fafc;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 25px;
    text-align: left;
}

.hm-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.hm-summary-value {
    color: #333;
    font-weight: 700;
}

.hm-modal-cta-btn {
    width: 100%;
    background: linear-gradient(135deg, #0A58CA 0%, #009FE3 100%);
    border: none;
    border-radius: 14px;
    padding: 20px 16px;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(10, 88, 202, 0.25);
    position: relative;
    overflow: hidden;
}

.hm-modal-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hm-modal-cta-btn:hover::before {
    left: 100%;
}

.hm-modal-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(10, 88, 202, 0.4);
}

.hm-modal-cta-btn:active {
    transform: translateY(-1px);
}

.hm-modal-cta-btn .sub {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    opacity: 0.95;
}

.hm-modal-cta-btn .main {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.hm-modal-close-btn {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 5px;
    margin-top: 10px;
    cursor: pointer;
    color: #aaa;
    font-weight: 500;
    font-size: 13px;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: all 0.2s;
}

.hm-modal-close-btn:hover {
    color: #777;
    text-decoration-color: #777;
}

@keyframes hm-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes hm-scale-up {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================================
   SECTION 6: Footer
   ============================================================ */

.hm-footer {
    background: var(--hm-color-charcoal, #333);
    color: rgba(255,255,255,0.65);
    padding: 40px 20px;
    text-align: center;
}
.hm-footer-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.hm-footer-logo-img {
    height: 32px;
    opacity: 0.8;
    filter: brightness(0) invert(1);
}
.hm-footer-contact {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}
.hm-footer-contact p {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}
.hm-footer-biz {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.hm-footer-biz p {
    margin: 0;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}
.hm-footer-copy {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
}
.hm-footer-copy p { margin: 0; }
.hm-footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}
.hm-footer-link-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.55);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-family: inherit;
}
.hm-footer-link-btn:hover { color: #fff; }
.hm-footer-link-sep {
    color: rgba(255,255,255,0.3);
    font-size: 1.2rem;
}

/* ============================================================
   LEGAL MODALS
   ============================================================ */
.hm-legal-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.hm-legal-modal.is-open {
    display: flex;
}
.hm-legal-modal-box {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 680px;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.hm-legal-modal-head {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.hm-legal-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
    margin: 0;
}
.hm-legal-modal-close {
    background: none;
    border: none;
    font-size: 2.4rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}
.hm-legal-modal-close:hover { color: #222; }
.hm-legal-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
    font-size: 1.3rem;
    line-height: 1.85;
    color: #333;
}
.hm-legal-modal-body h3 {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 24px 0 8px;
    color: #111;
    padding-bottom: 4px;
    border-bottom: 1px solid #f0f0f0;
}
.hm-legal-modal-body h3:first-child { margin-top: 0; }
.hm-legal-modal-body p {
    margin: 0 0 10px;
}
.hm-legal-modal-body .hm-legal-indent {
    padding-left: 16px;
}

/* =========================================================================
   [2026-02-25] 드로어 결과 UI (preview_scenario v3 7섹션 구조)
   simulation.css L693~960 포팅 — var(--sim-*) → 직접 값 교체
   ========================================================================= */

.hm-result-root {
  background: #ffffff;
  min-height: 100%;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── 헤더 ── */
.hm-hdr {
  padding: 22px 18px 18px;
  color: #fff;
  position: relative;
  border-radius: 16px;
  margin: 10px 12px;
  overflow: hidden;
}
.hm-hdr.lv-05  { background: #fa5252; box-shadow: 0 10px 25px rgba(250,82,82,0.35); }
.hm-hdr.lv-15  { background: #fd7e14; box-shadow: 0 10px 25px rgba(253,126,20,0.35); }
.hm-hdr.lv-25  { background: #228be6; box-shadow: 0 10px 25px rgba(34,139,230,0.35); }
.hm-hdr.lv-35  { background: #15aabf; box-shadow: 0 10px 25px rgba(21,170,191,0.35); }
.hm-hdr.lv-50  { background: #40c057; box-shadow: 0 10px 25px rgba(64,192,87,0.35); }
.hm-hdr.lv-80  { background: #82c91e; box-shadow: 0 10px 25px rgba(130,201,30,0.35); }
.hm-hdr.lv-100 { background: #fab005; box-shadow: 0 10px 25px rgba(250,176,5,0.35); }
.hm-hdr.lv-gray { background: #adb5bd; box-shadow: 0 10px 25px rgba(173,181,189,0.25); }

.hm-hdr-icon { font-size: 28px; margin-bottom: 6px; color: #fff; }
.hm-hdr-title {
  font-size: 22px; font-weight: 900; margin: 0 0 3px; line-height: 1.2;
  color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.hm-hdr-sub { font-size: 11.5px; margin: 0 0 14px; line-height: 1.4; color: rgba(255,255,255,0.88); }

.hm-hdr-sub-label {
  display: inline-block; background: #fff; border-radius: 20px;
  padding: 3px 10px; margin-bottom: 12px;
}
.hm-hdr-sub-label span {
  font-size: 10px; font-weight: 800;
  background: linear-gradient(135deg, #009FE3 0%, #64E5C2 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; color: transparent;
}
.hm-hdr.lv-05   .hm-hdr-sub-label span { background: none; -webkit-text-fill-color: #fa5252; }
.hm-hdr.lv-15   .hm-hdr-sub-label span { background: none; -webkit-text-fill-color: #fd7e14; }
.hm-hdr.lv-25   .hm-hdr-sub-label span { background: none; -webkit-text-fill-color: #228be6; }
.hm-hdr.lv-35   .hm-hdr-sub-label span { background: none; -webkit-text-fill-color: #15aabf; }
.hm-hdr.lv-50   .hm-hdr-sub-label span { background: none; -webkit-text-fill-color: #40c057; }
.hm-hdr.lv-80   .hm-hdr-sub-label span { background: none; -webkit-text-fill-color: #82c91e; }
.hm-hdr.lv-100  .hm-hdr-sub-label span { background: none; -webkit-text-fill-color: #fab005; }
.hm-hdr.lv-gray .hm-hdr-sub-label span { background: none; -webkit-text-fill-color: #adb5bd; }

.hm-checks { display: flex; gap: 6px; flex-wrap: wrap; }
.hm-chk-chip {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.2); border-radius: 20px;
  padding: 4px 9px; font-size: 10.5px; font-weight: 600; color: #fff;
}
.hm-chk-chip.unmet { opacity: 0.45; text-decoration: line-through; }
.hm-chk-chip i { font-size: 11px; color: #fff; }

/* ── 카드 공통 ── */
.hm-result-root .hm-card {
  background: #fff; border-radius: 16px;
  margin: 10px 12px; padding: 15px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.065);
}
.hm-result-root .hm-card-title {
  font-size: 13px; font-weight: 800; color: #aaa;
  margin: 0 0 12px; display: flex; align-items: center; gap: 7px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.hm-result-root .hm-card-title i { color: #009FE3; font-size: 14px; }

/* ── A/B 면책률 ── */
.hm-ab-grid { display: grid; gap: 8px; }
.hm-ab-grid.ab-both { grid-template-columns: 1fr 1fr; }
.hm-ab-grid.ab-one { grid-template-columns: 1fr; }

.hm-ab-col { border-radius: 14px; padding: 14px 12px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.065); }
.hm-ab-col.col-b {
  background: rgba(0,159,227,0.06);
  border: 1.5px solid rgba(0,159,227,0.3);
  box-shadow: 0 4px 14px rgba(0,103,198,0.1);
}
.hm-ab-col.col-a { border: 1.5px solid #e9ecef; }

.hm-ab-badge {
  display: inline-block; font-size: 9px; font-weight: 800;
  padding: 3px 9px; border-radius: 20px; margin-bottom: 8px;
}
.col-b .hm-ab-badge { background: linear-gradient(135deg, #009FE3 0%, #64E5C2 100%); color: #fff; }
.col-a .hm-ab-badge { background: #e9ecef; color: #868e96; }

.hm-ab-big-rate { font-size: 32px; font-weight: 900; line-height: 1; margin-bottom: 10px; }
.col-b .hm-ab-big-rate { color: #0067C6; }
.col-a .hm-ab-big-rate { color: #adb5bd; }

.hm-ab-divider { border: none; border-top: 1px solid #f0f0f0; margin: 8px 0; }
.hm-ab-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.hm-ab-row-k { font-size: 10px; color: #aaa; }
.hm-ab-row-v { font-size: 11.5px; font-weight: 700; color: #222; }

.hm-ab-note {
  margin-top: 10px; background: #f7f9fb; border: 1px solid #e0e4e8;
  border-radius: 8px; padding: 6px 8px;
  font-size: 10px; color: #888; text-align: center; line-height: 1.5;
}

/* ── 생활비 비교 ── */
.hm-cmp-before {
  background: #f8f9fa; padding: 8px 10px;
  border-radius: 10px; border: 1px solid #f1f3f5;
}
.hm-cmp-row { display: flex; justify-content: space-between; align-items: center; }
.hm-cmp-lbl { font-size: 11px; font-weight: 800; color: #999; }
.hm-cmp-val { font-size: 16px; font-weight: 700; color: #333; }

.hm-cmp-divider { height: 1px; background: #f0f0f0; margin: 8px 0; position: relative; }
.hm-cmp-divider i {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 24px; height: 24px;
  background: linear-gradient(135deg, #009FE3 0%, #64E5C2 100%);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 9px; box-shadow: 0 3px 6px rgba(0,159,227,0.2);
}
.hm-cmp-after { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px; }
.hm-cmp-after .hm-cmp-lbl { font-size: 13px; color: #333; }
.hm-cmp-after .hm-cmp-val {
  font-size: 22px; font-weight: 800;
  background: linear-gradient(135deg, #009FE3 0%, #64E5C2 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; color: transparent; display: inline-block;
}

/* ── DTI 게이지 ── */
.hm-dti-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.hm-dti-lbl { font-size: 10.5px; font-weight: 800; color: #bbb; display: flex; align-items: center; gap: 4px; }
.hm-dti-pct { font-size: 13px; font-weight: 800; color: #495057; }
.hm-dti-bg {
  width: 100%; height: 8px; background: #f1f3f5; border-radius: 20px;
  position: relative; margin-bottom: 18px; box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}
.hm-dti-fill {
  position: absolute; top: 0; left: 0; height: 100%; border-radius: 20px;
  background: linear-gradient(90deg, #40c057 0%, #fab005 50%, #fa5252 100%);
  transition: width 0.8s cubic-bezier(0.34,1.56,0.64,1);
}
.hm-dti-dot {
  position: absolute; right: -10px; top: -7px;
  width: 22px; height: 22px; background: #fff; border: 2px solid #dee2e6;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15); font-size: 8px; color: #555;
}
.hm-dti-sep { border-bottom: 1px dashed #e9ecef; margin-bottom: 10px; }

/* ── 탈출 기간 CTA 뱃지 ── */
.hm-escape-cta {
  margin-top: 10px; width: 100%; box-sizing: border-box;
  padding: 10px 14px; font-size: 12px; border-radius: 8px;
  background: linear-gradient(135deg, #009FE3 0%, #64E5C2 100%);
  box-shadow: 0 4px 12px rgba(0,103,198,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 4px;
  color: white; text-align: center; font-weight: 700; line-height: 1.5;
}
.hm-escape-cta strong { color: #ffeb3b; font-weight: 800; }

/* ── 구간 요약 카드 ── */
.hm-level-summary { border-radius: 12px; padding: 14px 14px 12px; margin-bottom: 10px; color: #fff; }
.hm-level-summary-name { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.hm-level-summary-desc { font-size: 11px; line-height: 1.55; opacity: 0.92; margin-bottom: 10px; }
.hm-level-summary-traits { display: flex; flex-wrap: wrap; gap: 5px; }
.hm-level-summary-trait {
  display: inline-block; font-size: 9.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 20px; background: rgba(255,255,255,0.22); color: #fff;
}

/* ── 체크포인트 ── */
.hm-cp {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 12px; border-radius: 12px; margin-bottom: 7px; border-left: 4px solid;
}
.hm-cp:last-child { margin-bottom: 0; }
.hm-cp.cp-danger  { background: #fff5f5; border-left-color: #ef4444; }
.hm-cp.cp-warning { background: #fffbeb; border-left-color: #f59e0b; }
.hm-cp.cp-info    { background: #e8f5ff; border-left-color: #009FE3; }
.hm-cp.cp-success { background: #f0fdf4; border-left-color: #22c55e; }

.hm-cp-ico { font-size: 15px; margin-top: 2px; flex-shrink: 0; }
.hm-cp.cp-danger  .hm-cp-ico { color: #ef4444; }
.hm-cp.cp-warning .hm-cp-ico { color: #f59e0b; }
.hm-cp.cp-info    .hm-cp-ico { color: #009FE3; }
.hm-cp.cp-success .hm-cp-ico { color: #22c55e; }

.hm-cp-title { font-size: 12px; font-weight: 800; color: #1d1d1f; margin-bottom: 2px; }
.hm-cp-desc  { font-size: 10.5px; color: #666; line-height: 1.45; }

/* ── 파산 특화 ── */
.hm-bankrupt-hero { text-align: center; padding: 10px 0 14px; }
.hm-bankrupt-rate { font-size: 44px; font-weight: 900; color: #ef4444; line-height: 1; margin-bottom: 4px; }
.hm-bankrupt-sub { font-size: 12px; color: #888; margin-bottom: 12px; }
.hm-bankrupt-box {
  font-size: 12px; color: #555; line-height: 1.65;
  background: #fff5f5; border-radius: 10px; padding: 12px 14px;
}
.hm-bankrupt-box strong { color: #ef4444; }

/* ── 일반상환 특화 ── */
.hm-general-hero { text-align: center; padding: 10px 0 14px; }
.hm-general-badge {
  display: inline-block; font-size: 15px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #fab005, #f59f00);
  border-radius: 22px; padding: 6px 18px; margin-bottom: 10px;
}
.hm-general-title { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 6px; }
.hm-general-desc { font-size: 12px; color: #555; line-height: 1.65; margin-bottom: 14px; }
.hm-general-options { display: flex; flex-direction: column; gap: 8px; }
.hm-general-opt {
  display: flex; align-items: center; gap: 10px;
  background: #fffcf0; border: 1px solid #ffe58f; border-radius: 10px; padding: 10px 12px; text-align: left;
}
.hm-general-opt-icon {
  flex-shrink: 0; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #fff3bf; color: #e67700; font-size: 14px;
}
.hm-general-opt-text { flex: 1; }
.hm-general-opt-text strong { display: block; font-size: 12px; font-weight: 700; color: #333; margin-bottom: 2px; }
.hm-general-opt-text span { font-size: 10.5px; color: #868e96; line-height: 1.4; }

/* ── 자격미달 특화 ── */
.hm-ineligible-body { text-align: center; padding: 12px 6px; }
.hm-ineligible-body i { font-size: 38px; color: #9ca3af; margin-bottom: 12px; display: block; }
.hm-ineligible-body p { font-size: 12px; color: #666; line-height: 1.7; margin: 0; }

/* ── CTA ── */
.hm-cta { padding: 12px 12px 24px; display: flex; flex-direction: column; gap: 7px; }
.hm-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; border-radius: 12px; font-size: 14px; font-weight: 800;
  cursor: pointer; border: none; width: 100%;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}
.hm-cta-primary {
  background: linear-gradient(135deg, #009FE3 0%, #64E5C2 100%); color: #fff;
  box-shadow: 0 4px 14px rgba(0,159,227,0.35);
}
.hm-cta-secondary { background: #f1f3f5; color: #333; border: 1px solid #ced4da; }

/* ── A/B 면책률 차이 배너 ── */
.hm-ab-diff {
  margin-top: 8px; width: 100%; box-sizing: border-box;
  padding: 10px 14px; font-size: 12px; border-radius: 8px;
  background: linear-gradient(135deg, #009FE3 0%, #64E5C2 100%);
  box-shadow: 0 4px 12px rgba(0,103,198,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 4px;
  color: white; text-align: center; font-weight: 700; line-height: 1.5;
}
.hm-ab-diff strong { color: #ffeb3b; font-weight: 800; }
.hm-ab-diff-sub { font-size: 10px; font-weight: 600; opacity: 0.85; margin-top: 1px; }

/* ── 결과 화면 (카드/헤더가 자체 margin 12px 보유, 탭은 body 패딩과 동일 여백) ── */
.hm-drawer-body.result-mode {
  padding: 0 !important;
}
/* 탭 좌우 여백 = 기본 drawer-body 패딩(30px)과 동일 유지 */
.hm-drawer-body.result-mode .hm-drawer-tabs {
  margin: 10px 30px 20px !important;
}

/* 탭 전환 시 consult 탭이 활성이면 result-mode 패딩 무시 (switchTab에서 클래스 추가) */
.hm-drawer-body.result-mode.consult-active {
  padding: 30px !important;
}

/* tab-calculator에 position:relative 보장 (로딩 오버레이 기준점) */
#tab-calculator {
  position: relative;
}

/* ── AI 전략 (해미리) ── */
.hm-ai-section { position: relative; }
.hm-ai-loading {
  display: flex; align-items: center; gap: 10px;
  padding: 16px; font-size: 12px; color: #888;
}
.hm-ai-loading i { animation: hm-spin 1s linear infinite; color: #009FE3; }
@keyframes hm-spin { to { transform: rotate(360deg); } }

/* ── 해미리 AI 인라인 로딩 (카드 내부 뇌 아이콘 + 프로그래스 바) ── */
.hm-ai-inline-loader {
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 16px 24px;
}
.hm-ai-inline-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #009FE3 0%, #64E5C2 100%);
  background-size: 200% auto;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  animation: hm-gradient-flow 3s linear infinite, hm-pulse-ai 2s infinite;
}
.hm-ai-inline-icon i {
  color: #fff; font-size: 22px;
}
.hm-ai-inline-text {
  font-size: 13px; font-weight: 600; color: #555;
  margin: 0 0 14px; text-align: center;
}
.hm-ai-inline-bar-wrap {
  width: 160px; height: 4px;
  background: #f0f0f0; border-radius: 10px; overflow: hidden;
}
.hm-ai-inline-bar {
  width: 0%; height: 100%;
  background: linear-gradient(90deg, #009FE3, #64E5C2);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.hm-strategy-kicker {
  font-size: 9.5px; font-weight: 900; color: #009FE3;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 5px;
}
.hm-strategy-oneliner {
  font-size: 13px; font-weight: 800; color: #1d1d1f;
  font-style: italic; margin-bottom: 12px; line-height: 1.5;
}
.hm-ai-body {
  font-size: 11.5px; color: #444; line-height: 1.75;
}
.hm-ai-body strong { color: #0067C6; }
.hm-ai-error {
  font-size: 11px; color: #aaa; padding: 12px 0; text-align: center;
}

/* ============================================================
   SPA: Shop Page Container
   ============================================================ */
.page-shop #page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

/* ============================================================
   SPA: Signup Page
   ============================================================ */
.page-signup #page-content {
    max-width: 520px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

.hm-signup-page {
    min-height: 60vh;
}

.hm-signup-container {
    background: #fff;
    border-radius: var(--hm-radius-lg);
    padding: 40px 30px;
    box-shadow: var(--hm-shadow-sm);
}

.hm-signup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.hm-signup-back {
    font-size: 14px;
    color: var(--hm-color-body);
    text-decoration: none;
}

.hm-signup-back:hover {
    color: var(--hm-color-primary);
}

.hm-signup-logo {
    height: 36px;
    width: auto;
}

.hm-signup-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--hm-color-charcoal);
    margin-bottom: 8px;
}

.hm-signup-subtitle {
    font-size: 14px;
    color: var(--hm-color-body);
    margin-bottom: 30px;
}

.hm-signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hm-signup-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--hm-color-charcoal);
    margin-bottom: 6px;
}

.hm-signup-field label .required {
    color: #e74c3c;
}

.hm-signup-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: var(--hm-radius-md);
    font-size: 14px;
    font-family: var(--hm-font-body);
    transition: border-color 0.2s;
    outline: none;
}

.hm-signup-field input:focus {
    border-color: var(--hm-color-primary);
    box-shadow: 0 0 0 3px rgba(0, 103, 198, 0.1);
}

.hm-pw-help {
    margin-top: 6px;
    font-size: 12px;
    color: #868e96;
}

.hm-pw-help.pass {
    color: #2b9e7e;
}

.hm-pw-help.fail {
    color: #e74c3c;
}

.hm-pw-rule {
    display: inline-block;
    font-size: 12px;
    color: #868e96;
    margin-right: 10px;
}

.hm-pw-rule::before {
    content: '○ ';
}

.hm-pw-rule.pass {
    color: #2b9e7e;
}

.hm-pw-rule.pass::before {
    content: '✓ ';
}

.hm-pw-rule.fail {
    color: #e74c3c;
}

.hm-pw-rule.fail::before {
    content: '✗ ';
}

.hm-signup-agreements {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 0;
}

.hm-signup-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--hm-color-body);
    cursor: pointer;
}

.hm-signup-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--hm-color-primary);
}

.hm-signup-checkbox a {
    color: var(--hm-color-primary);
    text-decoration: underline;
}

.hm-signup-error {
    font-size: 13px;
    color: #e74c3c;
    min-height: 20px;
}

.hm-signup-submit {
    width: 100%;
    padding: 14px;
    background: var(--hm-gradient-main);
    color: #fff;
    border: none;
    border-radius: var(--hm-radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: var(--hm-font-body);
}

.hm-signup-submit:hover {
    opacity: 0.9;
}

.hm-signup-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hm-signup-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--hm-color-body);
}

.hm-signup-login-link {
    color: var(--hm-color-primary);
    font-weight: 600;
    text-decoration: none;
}

.hm-signup-login-link:hover {
    text-decoration: underline;
}

/* ============================================================
   SPA: Mypage
   ============================================================ */
.page-mypage #page-content {
    max-width: 640px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

.hm-mypage {
    min-height: 60vh;
}

.hm-mypage-container {
    padding: 0;
}

.hm-mypage-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--hm-color-charcoal);
    margin-bottom: 24px;
}

.hm-mypage-login-required {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: var(--hm-radius-lg);
    box-shadow: var(--hm-shadow-sm);
}

.hm-mypage-lock-icon {
    margin-bottom: 16px;
}

.hm-mypage-login-required p {
    font-size: 15px;
    color: var(--hm-color-body);
    margin-bottom: 20px;
}

.hm-mypage-login-btn {
    display: inline-block;
    padding: 12px 40px;
    background: var(--hm-gradient-main);
    color: #fff;
    border: none;
    border-radius: var(--hm-radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--hm-font-body);
    transition: opacity 0.2s;
}

.hm-mypage-login-btn:hover {
    opacity: 0.9;
}

.hm-mypage-profile {
    background: #fff;
    border-radius: var(--hm-radius-lg);
    padding: 24px;
    box-shadow: var(--hm-shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hm-mypage-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--hm-gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.hm-mypage-profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 120px;
}

.hm-mypage-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--hm-color-charcoal);
}

.hm-mypage-status {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
}

.hm-mypage-status.tag--paid {
    background: rgba(0, 159, 227, 0.1);
    color: var(--hm-color-secondary);
}

.hm-mypage-status.tag--pre {
    background: rgba(100, 229, 194, 0.15);
    color: #2b9e7e;
}

.hm-mypage-profile-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    color: var(--hm-color-body);
    margin-left: auto;
}

.hm-mypage-section {
    background: #fff;
    border-radius: var(--hm-radius-lg);
    padding: 24px;
    box-shadow: var(--hm-shadow-sm);
    margin-bottom: 16px;
}

.hm-mypage-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--hm-color-charcoal);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.hm-mypage-section--upcoming {
    opacity: 0.6;
}

.hm-mypage-placeholder {
    font-size: 13px;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
}

.hm-mypage-empty {
    font-size: 13px;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
}

.hm-mypage-payment-card {
    border: 1px solid #f0f0f0;
    border-radius: var(--hm-radius-md);
    padding: 16px;
    margin-bottom: 10px;
}

.hm-mypage-payment-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.hm-mypage-payment-date {
    font-size: 12px;
    color: var(--hm-color-line);
}

.hm-mypage-payment-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.payment-status--paid {
    background: rgba(0, 159, 227, 0.1);
    color: var(--hm-color-secondary);
}

.payment-status--pending {
    background: #fff3cd;
    color: #856404;
}

.payment-status--cancelled {
    background: #f8d7da;
    color: #721c24;
}

.payment-status--refunded {
    background: #f0f0f0;
    color: #666;
}

.hm-mypage-payment-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hm-mypage-payment-desc {
    font-size: 14px;
    color: var(--hm-color-charcoal);
}

.hm-mypage-payment-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--hm-color-primary);
}

.hm-mypage-payment-method {
    font-size: 12px;
    color: var(--hm-color-line);
    margin-top: 6px;
}

/* ============================================================
   Sidebar Auth Section
   ============================================================ */
.hm-side-auth {
    padding: 16px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: auto;
}

.hm-auth-login-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    background: var(--hm-gradient-main);
    color: #fff;
    border: none;
    border-radius: var(--hm-radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--hm-font-body);
    transition: opacity 0.2s;
}

.hm-auth-login-btn:hover {
    opacity: 0.9;
}

.hm-auth-login-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin-left: auto;
}

.hm-auth-user {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hm-auth-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--hm-color-charcoal);
}

.hm-auth-actions {
    display: flex;
    gap: 8px;
}

.hm-auth-actions a,
.hm-auth-actions button {
    flex: 1;
    padding: 10px 0;
    border: 1px solid #e0e0e0;
    border-radius: var(--hm-radius-md);
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--hm-font-body);
    transition: all 0.2s;
    color: var(--hm-color-body);
    text-align: center;
    text-decoration: none;
}

.hm-auth-actions a:hover,
.hm-auth-actions button:hover {
    border-color: var(--hm-color-primary);
    color: var(--hm-color-primary);
}

.hm-auth-logged-in {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hm-auth-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hm-auth-status-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.hm-auth-status-tag.tag--paid {
    background: rgba(0, 159, 227, 0.1);
    color: var(--hm-color-secondary);
}

.hm-auth-status-tag.tag--pre {
    background: rgba(100, 229, 194, 0.15);
    color: #2b9e7e;
}

.hm-auth-login-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hm-auth-login-title {
    font-size: 14px;
    font-weight: 600;
}

/* ============================================================
   Login Modal (extends hm-legal-modal)
   ============================================================ */
.hm-login-modal-box {
    max-width: 400px;
}

.hm-login-modal-body {
    padding: 30px !important;
}

.hm-login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hm-login-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--hm-color-charcoal);
    margin-bottom: 6px;
}

.hm-login-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: var(--hm-radius-md);
    font-size: 14px;
    font-family: var(--hm-font-body);
    outline: none;
    transition: border-color 0.2s;
}

.hm-login-field input:focus {
    border-color: var(--hm-color-primary);
    box-shadow: 0 0 0 3px rgba(0, 103, 198, 0.1);
}

.hm-login-error {
    font-size: 13px;
    color: #e74c3c;
    min-height: 18px;
}

.hm-login-submit {
    width: 100%;
    padding: 14px;
    background: var(--hm-gradient-main);
    color: #fff;
    border: none;
    border-radius: var(--hm-radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--hm-font-body);
    transition: opacity 0.2s;
}

.hm-login-submit:hover {
    opacity: 0.9;
}

.hm-login-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hm-login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: var(--hm-color-body);
}

.hm-login-signup-link {
    color: var(--hm-color-primary);
    font-weight: 600;
    text-decoration: none;
}

.hm-login-signup-link:hover {
    text-decoration: underline;
}

/* ============================================================
   Responsive: Signup & Mypage
   ============================================================ */
@media (max-width: 600px) {
    .page-signup #page-content,
    .page-mypage #page-content {
        padding: 100px 12px 40px;
    }

    .hm-signup-container {
        padding: 28px 20px;
    }

    .hm-mypage-profile {
        flex-direction: column;
        text-align: center;
    }

    .hm-mypage-profile-detail {
        margin-left: 0;
        align-items: center;
    }
}
