/* ── Comparison / Misc Section ── */
.comp-title {
    position: relative;
    z-index: 2;
    font-family: 'Pretendard', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    line-height: 1.4;
    letter-spacing: -0.04em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
    z-index: 10;
}

.comp-bubbles {
    position: absolute;
    top: 180px;
    left: 0;
    width: 100%;
    height: calc(100% - 180px);
    z-index: 2;
}

.comp-bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 18px 26px;
    color: #f8f9fa;
    font-size: 15.5px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
    cursor: default;
    transition: background 0.3s ease, transform 0.3s ease;
}

.comp-bubble:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.02);
}

.comp-bubble.b1 {
    top: 15%;
    left: 8%;
    animation: comp-float-1 5s ease-in-out infinite alternate;
}

.comp-bubble.b2 {
    top: 5%;
    right: 8%;
    animation: comp-float-2 6s ease-in-out infinite alternate;
}

.comp-bubble.b3 {
    top: 60%;
    left: 16%;
    animation: comp-float-1 5.5s ease-in-out infinite alternate-reverse;
}

.comp-bubble.b4 {
    top: 52%;
    right: 12%;
    animation: comp-float-2 6.5s ease-in-out infinite alternate-reverse;
}

@keyframes comp-float-1 {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-12px);
    }
}

@keyframes comp-float-2 {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-16px);
    }
}

@media (max-width: 600px) {
    .oc-complaints-hero {
        height: 480px;
        flex: 0 0 calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        padding: 40px 20px;
    }

    .comp-title {
        font-size: 24px;
        padding: 0 10px;
        margin-top: 0;
    }

    .comp-bubble {
        padding: 12px 16px;
        font-size: 13.5px;
        max-width: 85%;
    }

    .comp-bubble.b1 {
        top: 25%;
        left: 5%;
    }

    .comp-bubble.b2 {
        top: 45%;
        right: 5%;
    }

    .comp-bubble.b3 {
        top: 55%;
        left: 5%;
    }

    .comp-bubble.b4 {
        top: 75%;
        right: 5%;
    }
}

/* ═══════════════════════════════════════════════════════════
   AI Floating Selector — Premium Dark Glassmorphism
   ═══════════════════════════════════════════════════════════ */

.ai-floating-selector {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 9999;
    font-family: 'Pretendard', sans-serif;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.5s ease;
}

.ai-floating-selector.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* 코치마크 (말풍선) — 비활성화 */
.ai-coachmark {
    display: none !important;
}

@keyframes coachmark-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* 메인 바 — 다크 글래스 */
.ai-collapsed-view {
    background: rgba(10, 10, 15, 0.82);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 60px;
    padding: 10px 12px 10px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: visible;
}

/* 바 뒤쪽 은은한 그라데이션 글로우 — 하늘색 톤 */
.ai-collapsed-view::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.7), rgba(96, 165, 250, 0.6), rgba(125, 211, 252, 0.4), transparent);
    pointer-events: none;
}

.ai-selector-msg {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.ai-selector-btns {
    display: flex;
    gap: 6px;
    align-items: center;
}

.ai-selector-btn {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.ai-selector-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.2), rgba(96, 165, 250, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-selector-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.ai-selector-btn:hover::before {
    opacity: 1;
}

/* active 버튼 — 하늘색 그라데이션 */
.ai-selector-btn.active {
    background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 50%, #7dd3fc 100%);
    color: #fff;
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    font-weight: 700;
}

.ai-selector-btn.active::before {
    opacity: 0;
}

/* ── 닫기 버튼 — 세련된 미니멀 디자인 ── */
.ai-selector-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin-left: 20px;
    /* PC: 더 띄워서 버튼 뭉침 방지 */
    margin-right: 4px;
    /* PC: 우측 가장자리와 숨쉴 공간 확보 (좌측으로 이동 효과) */
    flex-shrink: 0;
    transition: all 0.25s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
}

/* X 아이콘을 CSS로 깔끔하게 — &times; 문자 대신 */
.ai-selector-close-btn::before,
.ai-selector-close-btn::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1px;
    transition: background 0.25s ease;
}

.ai-selector-close-btn::before {
    transform: rotate(45deg);
}

.ai-selector-close-btn::after {
    transform: rotate(-45deg);
}

.ai-selector-close-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.ai-selector-close-btn:hover::before,
.ai-selector-close-btn:hover::after {
    background: rgba(255, 255, 255, 0.85);
}

.ai-selector-close-btn:active {
    transform: scale(0.92);
}

/* ── 모바일 ── */
@media (max-width: 768px) {
    .ai-floating-selector {
        width: 100%;
        max-width: calc(100vw - 32px);
        bottom: 20px;
    }

    .ai-coachmark {
        font-size: 12.5px;
        padding: 7px 15px;
    }

    .ai-collapsed-view {
        /* 강제 1줄 가로스크롤 대신 유연하게 2줄로 감싸서 짤림 방지 */
        padding: 12px 14px;
        gap: 8px;
        border-radius: 20px; /* 폼이 위아래로 커지므로 둥글기를 살짝 완화 */
        width: 100%;
        overflow-x: visible; 
        flex-wrap: wrap; /* 요소들이 자연스럽게 아래로 쌓이게 허용 */
        justify-content: center;
        text-align: center;
    }

    .ai-selector-msg {
        width: 100%; /* 제목 텍스트가 100%를 차지해 버튼들을 아래로 내림 */
        text-align: center;
        display: block !important;
        font-size: 13.5px;
        letter-spacing: -0.04em;
        margin-bottom: 2px;
    }

    .ai-selector-btns {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .ai-selector-btn {
        font-size: 12.5px;
        padding: 8px 12px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .ai-selector-close-btn {
        /* X 닫기 버튼은 레이아웃에 영향 주지 않게 우측 상단 구석에 고정 */
        position: absolute;
        right: 12px;
        top: 12px;
        transform: none;
        width: 24px;
        height: 24px;
        margin: 0;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: none;
        border: 1px solid rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .ai-selector-close-btn::before,
    .ai-selector-close-btn::after {
        width: 10px;
    }
}