/* 광컴퍼니 - 온라인 휴대폰 판매 사이트 스타일 */

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --primary-color: #2274d2;
    --secondary-color: #243f7d;
    --accent-color: #ff5722;
    --lguplus-color: #2274d2;
    --success-color: #4caf50;
    --warning-color: #ffc107;
    --dark-color: #212529;

    /* 상세 페이지 공통 토큰.
       섹션마다 제각각이던 선/여백/그림자를 한 벌로 모아 톤을 맞춘다. */
    --d-line: #e7e9ee;
    --d-soft: #f6f7f9;
    --d-muted: #8b95a1;
    --d-radius: 12px;
    --d-shadow: 0 2px 10px rgba(23, 23, 28, 0.06);
    --d-shadow-md: 0 6px 20px rgba(23, 23, 28, 0.09);
    --d-accent-soft: #f0f6fc;
    --d-accent-line: #d4e4f6;
}

/* 기본 스타일 */
html, body {
    /* overflow-x:hidden 은 body 를 스크롤 컨테이너로 만들어 position:sticky 를 죽인다.
       clip 은 가로 넘침만 잘라내고 스크롤 컨테이너를 만들지 않아 sticky 가 살아있다.
       clip 미지원 브라우저는 위의 hidden 으로 폴백된다. */
    overflow-x: hidden;
    overflow-x: clip;
    width: 100%;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
}

/* ===== 엘지티샵 스타일 헤더 ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-inner {
    border-bottom: 1px solid #f0f0f0;
}

.header-content {
    display: flex;
    align-items: center;
    height: 65px;
    gap: 40px;
}

/* 로고 */
.header-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-uplus {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--lguplus-color);
    line-height: 1;
}

.logo-uplus sup {
    font-size: 0.7em;
    color: var(--lguplus-color);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark-color);
    letter-spacing: -0.5px;
}

/* 카테고리 탭 */
.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.nav-tab {
    padding: 8px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.nav-tab:hover {
    color: var(--lguplus-color);
    background: #f6fafe;
}

.nav-tab.active {
    color: var(--lguplus-color);
    background: transparent;
    position: relative;
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background: var(--lguplus-color);
    border-radius: 3px 3px 0 0;
}

/* 우측 메뉴 */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-link {
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.header-link:hover {
    color: var(--lguplus-color);
}

/* ===== 헤더 검색 (PC) ===== */
.header-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-toggle {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #666;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s;
}

.header-search-toggle:hover {
    color: var(--lguplus-color);
    background: rgba(34, 116, 210, 0.08);
}

.header-search-box {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    overflow: visible;
    transition: width 0.3s ease, opacity 0.25s ease;
    pointer-events: none;
}

.header-search-box.open {
    width: 320px;
    opacity: 1;
    pointer-events: all;
}

.header-search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 2px solid var(--lguplus-color);
    border-radius: 24px;
    font-size: 0.9rem;
    outline: none;
    background: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.header-search-input::placeholder {
    color: #aaa;
}

.header-search-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px;
}

.header-search-close:hover {
    color: var(--lguplus-color);
}

/* 검색 결과 드롭다운 (공통) */
.search-results-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 2000;
}

.search-results-dropdown.show {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--dark-color);
    transition: background 0.15s;
    border-bottom: 1px solid #f5f5f5;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:first-child {
    border-radius: 14px 14px 0 0;
}

.search-result-item:last-child {
    border-radius: 0 0 14px 14px;
}

.search-result-item:only-child {
    border-radius: 14px;
}

.search-result-item:hover {
    background: #f0f4f8;
}

.search-result-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f9fa;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-name em {
    color: var(--lguplus-color);
    font-style: normal;
    font-weight: 700;
}

.search-result-price {
    font-size: 0.78rem;
    color: #888;
    margin-top: 2px;
}

.search-result-price strong {
    color: var(--lguplus-color);
    font-weight: 700;
}

.search-no-result {
    padding: 24px 16px;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}

.search-no-result i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 6px;
    color: #ddd;
}

/* ===== 모바일 헤더 버튼 ===== */
.mobile-header-btns {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.mobile-search-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.15rem;
    color: #555;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
}

.mobile-search-btn:hover {
    color: var(--lguplus-color);
    background: rgba(34, 116, 210, 0.08);
}

/* 모바일 메뉴 버튼 */
.mobile-menu-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

/* ===== 모바일 풀스크린 검색 오버레이 ===== */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 9999;
    flex-direction: column;
}

.mobile-search-overlay.show {
    display: flex;
}

.mso-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.mso-icon {
    font-size: 1.1rem;
    color: #999;
    flex-shrink: 0;
}

.mso-input {
    flex: 1;
    padding: 10px 0;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.mso-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 0.9rem;
    color: var(--lguplus-color);
    font-weight: 600;
    cursor: pointer;
    padding: 8px 4px;
}

.mso-results {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.mso-results .search-result-item {
    padding: 14px 18px;
    gap: 14px;
}

.mso-results .search-result-img {
    width: 52px;
    height: 52px;
}

.mso-results .search-result-name {
    font-size: 0.92rem;
}

.mso-results .search-no-result {
    padding: 60px 20px;
    font-size: 0.95rem;
}

.mso-results .search-no-result i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* ===== 사이드 메뉴 (햄버거) =====
   예전에는 헤더 아래로 펼쳐지는 가로 스크롤 바였는데,
   카테고리가 늘어나면 담을 곳이 없어 우측 드로어로 바꿨다. PC/모바일 공용. */
.header-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.header-menu-btn:hover {
    color: var(--lguplus-color);
    background: rgba(34, 116, 210, 0.08);
}

.side-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(17, 17, 24, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.side-menu-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    width: 300px;
    max-width: 84vw;
    background: #fff;
    box-shadow: -12px 0 32px rgba(17, 17, 24, 0.14);
    transform: translateX(100%);
    transition: transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1);
    overscroll-behavior: contain;
}

.side-menu.show {
    transform: translateX(0);
}

.side-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    height: 65px;
    padding: 0 8px 0 20px;
    border-bottom: 1px solid #ececf1;
}

.side-menu-title {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #17171c;
}

.side-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 50%;
    font-size: 1.05rem;
    color: #6b6b78;
    cursor: pointer;
}

.side-menu-close:hover {
    background: #f4f4f7;
    color: #17171c;
}

.side-menu-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 0 32px;
}

.side-group {
    padding: 0 12px;
}

.side-group + .side-group {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid #f2f2f5;
}

.side-group-title {
    margin: 0 0 2px;
    padding: 0 10px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a3a3b0;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 10px;
    border-radius: 10px;
    font-size: 0.87rem;
    font-weight: 600;
    color: #3b3b46;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.side-link:hover {
    background: #f6f6f9;
    color: #17171c;
}

.side-link.active {
    background: #f0f6fc;
    color: var(--lguplus-color);
}

.side-link i {
    flex-shrink: 0;
    width: 18px;
    font-size: 0.98rem;
    color: #9a9aa6;
}

.side-link.active i {
    color: var(--lguplus-color);
}

/* 그룹 제목이 없는 하단 묶음은 한 단계 큰 글씨로 둔다 */
.side-link--lg {
    font-size: 0.92rem;
    font-weight: 700;
}

body.side-menu-open {
    overflow: hidden;
}

/* 헤더가 고정이라 앵커로 이동하면 섹션 제목이 헤더 뒤로 숨는다 */
.phone-section {
    scroll-margin-top: 88px;
}

@media (max-width: 991px) {
    .phone-section {
        scroll-margin-top: 72px;
    }
}

/* 메인 컨텐츠 */
.main-content {
    padding-top: 77px; /* 65px header + 12px gap */
    padding-bottom: 20px;
}

@media (max-width: 991px) {
    .main-content {
        padding-top: 63px; /* 55px header + 8px gap */
    }
}

@media (max-width: 576px) {
    .main-content {
        padding-top: 58px; /* 50px header + 8px gap */
    }
}

@media (max-width: 767px) {
    .main-content {
        padding-bottom: 10px;
    }
    .main-content > .container {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* 반응형 헤더 */
@media (max-width: 991px) {
    .header-content {
        height: 55px;
        gap: 20px;
    }

    .logo-uplus {
        font-size: 1.5rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .header-content {
        height: 50px;
    }

    .logo-uplus {
        font-size: 1.3rem;
    }

    .logo-text {
        font-size: 1.05rem;
    }
}

/* 휴대폰 카드 */
.phone-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
}

.phone-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.phone-card .card-img-wrapper {
    position: relative;
    padding: 16px 12px;
    background: #fafafa;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-card .card-img-top {
    max-height: 160px;
    width: auto;
    object-fit: contain;
}

.phone-card .manufacturer-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    z-index: 3;
}

.manufacturer-badge.samsung {
    background-color: #1428a0;
    color: white;
}

.manufacturer-badge.apple {
    background-color: #000;
    color: white;
}

.phone-card .card-body {
    padding: 12px;
}

.phone-card .phone-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .phone-card .card-img-wrapper {
        padding: 12px 8px;
        min-height: 130px;
    }
    .phone-card .card-img-top {
        max-height: 130px;
    }
    .phone-card .card-body {
        padding: 10px 8px;
    }
    .phone-card .phone-name {
        font-size: 0.82rem;
    }
    .phone-card .manufacturer-badge {
        top: 6px;
        left: 6px;
        padding: 1px 6px;
        font-size: 0.58rem;
    }
    .row.g-4 {
        --bs-gutter-x: 8px;
        --bs-gutter-y: 8px;
    }
}

/* ===== index.php 카드 가격 정보 ===== */
.phone-card .price-info {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 8px 10px;
    margin-top: 8px;
    position: relative;
}

.phone-card .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    flex-wrap: nowrap;
}

.phone-card .price-row.plan-row {
    justify-content: center;
    padding: 2px 0;
    border-bottom: none;
}

.phone-card .price-row.final-row {
    border-top: 1px solid #e0e0e0;
    padding-top: 6px;
    margin-top: 2px;
}

.phone-card .plan-basis {
    font-size: 0.65rem;
    color: #999;
    background: #eee;
    padding: 1px 8px;
    border-radius: 8px;
    font-weight: 500;
}

.phone-card .price-label {
    font-size: 0.72rem;
    color: #888;
    font-weight: 500;
    flex-shrink: 0;
}

.phone-card .price-value {
    font-size: 0.82rem;
    color: #333;
    font-weight: 600;
    text-align: right;
}

.phone-card .price-value.original {
    color: #aaa;
    text-decoration: line-through;
    font-size: 0.78rem;
    font-weight: 400;
}

.phone-card .price-value.discount {
    color: var(--lguplus-color);
    font-weight: 700;
    font-size: 0.82rem;
}

.phone-card .price-value.final {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--lguplus-color);
}

.phone-card .discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    background: linear-gradient(135deg, var(--lguplus-color), #1c61ae);
    border-radius: 8px;
    font-size: 0.6rem;
    color: white;
    font-weight: 700;
    white-space: nowrap;
}

.phone-card .discount-badge i {
    font-size: 0.55rem;
}

/* 반응형 가격 정보 */
@media (max-width: 767px) {
    .phone-card .price-info {
        padding: 6px 8px;
        margin-top: 6px;
    }
    .phone-card .price-label {
        font-size: 0.65rem;
    }
    .phone-card .price-value {
        font-size: 0.72rem;
    }
    .phone-card .price-value.original {
        font-size: 0.68rem;
    }
    .phone-card .price-value.final {
        font-size: 0.9rem;
    }
    .phone-card .discount-badge {
        padding: 1px 5px;
        font-size: 0.55rem;
    }
    .phone-card .plan-basis {
        font-size: 0.58rem;
    }
}

/* 이전 가격 클래스 숨김 (하위 호환) */
.phone-card .original-price,
.phone-card .sale-price,
.phone-card .monthly-price {
    display: none;
}

/* 색상 선택 */
.color-options {
    display: flex;
    gap: 5px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-dot:hover,
.color-dot.active {
    border-color: var(--lguplus-color);
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(34, 116, 210, 0.3);
}

@media (max-width: 767px) {
    .color-dot {
        width: 14px;
        height: 14px;
        border-width: 1.5px;
    }
    .color-options {
        gap: 4px;
        margin-bottom: 4px;
    }
}

/* 상세 페이지의 색상 선택용 큰 점.
   목록 카드용 .color-dot 축소 규칙보다 뒤에 둬야 모바일에서도 유지된다. */
.color-dot-lg {
    width: 36px;
    height: 36px;
}

/* 상세 페이지 */
/* 카드는 그림자 대신 얇은 선으로 구분한다.
   섹션이 10개 가까이 쌓이는 페이지라 그림자가 겹치면 화면이 탁해진다. */
.detail-section {
    background: white;
    border: 1px solid var(--d-line);
    border-radius: var(--d-radius);
    padding: 20px;
    margin-bottom: 14px;
}

.detail-main-image {
    max-height: 300px;
}

.detail-image-box {
    margin-bottom: 20px;
}

/* 제목마다 강조선을 깔면 화면이 줄무늬처럼 된다. 선 없이 여백으로만 띄운다. */
.detail-section h5 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-section h5 i {
    color: var(--lguplus-color);
    margin-right: 4px;
}

/* 요금제 선택 */
.plan-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.plan-card:hover {
    border-color: var(--lguplus-color);
    background-color: #f6fafe;
}

.plan-card.selected {
    border-color: var(--lguplus-color);
    background-color: #e5effb;
}

.plan-card .plan-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark-color);
}

.plan-card .plan-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--lguplus-color);
}

.plan-card .plan-data {
    font-size: 0.9rem;
    color: #666;
}

/* 할부 계산기 */
.calculator-box {
    background: linear-gradient(135deg, #667eea 0%, #384c7a 100%);
    border-radius: 16px;
    padding: 25px;
    color: white;
}

.calculator-box h5 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.calculator-result {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.calculator-result .label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.calculator-result .value {
    font-size: 1.5rem;
    font-weight: 800;
}

.calculator-result .total-monthly {
    font-size: 2rem;
    font-weight: 900;
    color: #ffc107;
}

/* ===== 약정 방식 선택 (통합 카드) ===== */
.contract-select-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contract-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.contract-card:hover {
    border-color: #ccc;
    background: #f0f0f0;
}

.contract-card.active {
    border-color: var(--lguplus-color);
    background: linear-gradient(135deg, #f6fafe, #e5effb);
}

.contract-card.better {
    background: linear-gradient(135deg, #f1f8e9, #dcedc8);
    border-color: #aed581;
}

.contract-card.better.active {
    border-color: #7cb342;
    background: linear-gradient(135deg, #dcedc8, #c5e1a5);
    box-shadow: 0 2px 12px rgba(124, 179, 66, 0.25);
}

/* 체크 아이콘 */
.contract-card-check {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s ease;
}

.contract-card.active .contract-card-check {
    background: var(--lguplus-color);
    border-color: var(--lguplus-color);
    color: white;
}

.contract-card.better.active .contract-card-check {
    background: #7cb342;
    border-color: #7cb342;
}

.contract-card-check i {
    font-size: 0.9rem;
    font-weight: bold;
}

/* 카드 내용 */
.contract-card-content {
    flex: 1;
}

.contract-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.contract-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-color);
}

.contract-card-badge {
    display: none;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    background: var(--lguplus-color);
    padding: 2px 8px;
    border-radius: 10px;
}

.contract-card.better .contract-card-badge {
    display: inline-block;
}

.contract-card-desc {
    font-size: 0.8rem;
    color: #888;
}

.contract-card-amount {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--lguplus-color);
    margin-top: 6px;
}

.contract-card.better .contract-card-amount {
    color: #558b2f;
}

/* 결과 메시지 */
.contract-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 15px;
    background: linear-gradient(90deg, #fff8e1, #ffecb3);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #f57c00;
}

.contract-result i {
    font-size: 1rem;
}

.contract-result.equal {
    background: linear-gradient(90deg, #e3f2fd, #bbdefb);
    color: #1565c0;
}

/* 약정 방식 반응형 */
@media (max-width: 576px) {
    .contract-card {
        padding: 14px 15px;
        gap: 12px;
    }

    .contract-card-check {
        width: 24px;
        height: 24px;
        min-width: 24px;
    }

    .contract-card-check i {
        font-size: 0.8rem;
    }

    .contract-card-title {
        font-size: 0.9rem;
    }

    .contract-card-desc {
        font-size: 0.75rem;
    }

    .contract-card-amount {
        font-size: 1rem;
        margin-top: 4px;
    }

    .contract-result {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}

/* ===== 가입유형 선택 (새 디자인) ===== */
.join-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

/* 선택 카드 공통 톤: 평상시엔 흰 바탕 + 얇은 회색 선,
   선택되면 강조색 선 + 아주 옅은 강조 배경만으로 표시한다.
   그림자나 들어올림 효과는 쓰지 않는다. */
.join-type-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 13px 10px;
    border: 1px solid var(--d-line);
    border-radius: var(--d-radius);
    background: white;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.join-type-card:hover {
    border-color: #d7dbe2;
}

.join-type-card.active {
    border-color: var(--lguplus-color);
    background: var(--d-accent-soft);
}

.join-type-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    margin-bottom: 6px;
    font-size: 1.15rem;
    color: #666;
    transition: all 0.3s ease;
}

.join-type-card.active .join-type-icon {
    background: var(--lguplus-color);
    color: white;
}

.join-type-label {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--dark-color);
}

.join-type-card.active .join-type-label {
    color: var(--lguplus-color);
}

/* 통신사 섹션 */
.carrier-section {
    background: transparent;
    border-radius: var(--d-radius);
    padding: 18px 0 0;
    margin-top: 12px;
    border-top: 1px solid var(--d-line);
    animation: fadeIn 0.3s ease;
}

.carrier-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
}

/* 통신사 선택기 */
.carrier-selector {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.carrier-selector.single {
    justify-content: flex-start;
}

.carrier-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 14px;
    background: white;
    border: 1px solid var(--d-line);
    border-radius: var(--d-radius);
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
    min-width: 78px;
}

.carrier-option:hover {
    border-color: #d7dbe2;
}

.carrier-option.active {
    border-color: var(--lguplus-color);
    background: var(--d-accent-soft);
}

.carrier-option.uplus-only {
    cursor: default;
    border-color: var(--lguplus-color);
    background: var(--d-accent-soft);
}

/* 통신사 로고 */
.carrier-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 5px;
    font-weight: 800;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

/* 원 안의 글자가 사이트 헤더용 .logo-text 규칙(어두운 색·1.4rem)을 그대로 물려받아
   빨강·분홍 배경 위에서 거의 안 보였다. 통신사 원 안에서는 부모를 따르게 한다. */
.carrier-logo .logo-text {
    color: inherit;
    font-size: inherit;
    letter-spacing: -0.3px;
}

/* SK 로고. KT 와 나란히 놓으면 둘 다 빨강이라 구분이 안 돼 파랑으로 둔다. */
.carrier-logo.skt {
    background: linear-gradient(135deg, #0057a8, #0090ea);
    color: white;
}

.carrier-option:not(.active) .carrier-logo.skt {
    filter: grayscale(100%);
    opacity: 0.5;
}

.carrier-option.active .carrier-logo.skt {
    filter: none;
    opacity: 1;
    box-shadow: 0 3px 10px rgba(0, 87, 168, 0.22);
}

/* KT 로고 */
.carrier-logo.kt {
    background: linear-gradient(135deg, #FF0000, #cc0000);
    color: white;
}

.carrier-option:not(.active) .carrier-logo.kt {
    filter: grayscale(100%);
    opacity: 0.5;
}

.carrier-option.active .carrier-logo.kt {
    filter: none;
    opacity: 1;
    box-shadow: 0 3px 10px rgba(255, 0, 0, 0.18);
}

/* 알뜰폰 로고 */
.carrier-logo.mvno {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    font-size: 1.3rem;
}

.carrier-option:not(.active) .carrier-logo.mvno {
    filter: grayscale(100%);
    opacity: 0.5;
}

.carrier-option.active .carrier-logo.mvno {
    filter: none;
    opacity: 1;
    box-shadow: 0 3px 10px rgba(108, 117, 125, 0.18);
}

/* U+ 로고 */
.carrier-logo.uplus {
    background: linear-gradient(135deg, #3f8ae0, #206cc2);
    color: white;
    font-size: 1rem;
    box-shadow: 0 3px 10px rgba(32, 108, 194, 0.2);
}

/* 사용 중인 통신사 없음 (= 신규가입) */
.carrier-logo.none {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: white;
    font-size: 1.1rem;
}

.carrier-option:not(.active) .carrier-logo.none {
    filter: grayscale(100%);
    opacity: 0.5;
}

.carrier-option.active .carrier-logo.none {
    filter: none;
    opacity: 1;
    box-shadow: 0 3px 10px rgba(107, 114, 128, 0.18);
}

/* 통신사가 5개까지 늘어나 한 줄에 안 들어가면 접히게 둔다 */
.current-carrier-selector {
    flex-wrap: wrap;
}

.carrier-name {
    font-size: 0.74rem;
    font-weight: 600;
    color: #666;
}

.carrier-option.active .carrier-name {
    color: var(--dark-color);
}

/* 가입유형 설명 텍스트 */
.join-type-desc {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* 안내 문구는 배경으로 구분할 이유가 없어 한 가지 톤으로 통일한다.
   (신규가입은 그동안 대응 규칙이 없어 스타일이 비어 있었다) */
.join-type-desc.mnp,
.join-type-desc.change,
.join-type-desc.new {
    background: var(--d-soft);
    border: 1px solid var(--d-line);
    color: #4b5563;
}

.join-type-desc i {
    font-size: 1rem;
}

.join-type-desc strong {
    color: var(--lguplus-color);
}

/* 반응형 - 가입유형.
   크기 축소는 아래 모바일 통합 블록(≤767px)에서 한 번에 처리한다. */
@media (max-width: 576px) {
    .carrier-logo.mvno {
        font-size: 1.1rem;
    }

    .carrier-name {
        font-size: 0.7rem;
    }

    .join-type-desc {
        font-size: 0.8rem;
        padding: 10px 12px;
    }

    /* 통신사가 최대 5개라 좁은 화면에서는 칸을 줄여 두 줄 안에 들어오게 한다 */
    .current-carrier-selector .carrier-option {
        min-width: 64px;
        padding: 8px 10px;
    }
}

/* ===== 진입 시 통신사 선택 팝업 ===== */
.carrier-entry-modal {
    border: none;
    border-radius: 16px;
}

.carrier-entry-modal .modal-body {
    padding: 26px 22px 22px;
    position: relative;
}

.carrier-entry-close {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.7rem;
    opacity: 0.4;
}

.carrier-entry-head {
    text-align: center;
    margin-bottom: 20px;
}

.carrier-entry-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--d-accent-soft);
    color: var(--lguplus-color);
    font-size: 1.4rem;
}

.carrier-entry-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 6px;
}

.carrier-entry-desc {
    font-size: 0.84rem;
    color: #6b7280;
    margin: 0;
}

/* 선택지 수만큼 칸을 나눠 한 줄에 담는다.
   3열로 고정하면 4개일 때 둘째 줄에 하나만 남아 여백이 크게 뜬다. */
.carrier-entry-grid {
    display: grid;
    grid-template-columns: repeat(var(--carrier-count, 3), minmax(0, 1fr));
    gap: 10px;
}

.carrier-entry-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 6px;
    background: #fff;
    border: 1px solid var(--d-line);
    border-radius: var(--d-radius);
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.carrier-entry-option:hover {
    border-color: var(--lguplus-color);
    background: var(--d-accent-soft);
}

.carrier-entry-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark-color);
    white-space: nowrap;
}

.carrier-entry-sub {
    font-size: 0.68rem;
    color: #9ca3af;
}

/* 통신사가 5개까지 늘어나도 한 줄에 들어가도록 폭을 조금 넓힌다 */
@media (min-width: 576px) {
    #carrierEntryModal .modal-dialog {
        max-width: 560px;
    }
}

/* 좁은 화면에서는 한 줄을 고집하지 않고 접는다 */
@media (max-width: 575px) {
    .carrier-entry-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 400px) {
    .carrier-entry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .carrier-entry-label {
        font-size: 0.76rem;
    }
}

/* ===== 용량 선택 ===== */
.storage-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.storage-option {
    flex: 1;
    min-width: 92px;
    padding: 10px;
    border: 1px solid var(--d-line);
    border-radius: var(--d-radius);
    background: white;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
    text-align: center;
}

.storage-option:hover {
    border-color: #d7dbe2;
}

.storage-option.active {
    border-color: var(--lguplus-color);
    background: var(--d-accent-soft);
}

.storage-name {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark-color);
    margin-bottom: 3px;
}

.storage-option.active .storage-name {
    color: var(--lguplus-color);
}

.storage-price {
    display: block;
    font-size: 0.85rem;
    color: #666;
}

.storage-option.active .storage-price {
    color: var(--lguplus-color);
    font-weight: 600;
}

@media (max-width: 576px) {
    .storage-option {
        min-width: 80px;
        padding: 12px 10px;
    }

    .storage-name {
        font-size: 0.95rem;
    }

    .storage-price {
        font-size: 0.75rem;
    }
}

/* 인덱스 페이지 용량 배지 */
.storage-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.storage-badges .badge {
    font-size: 0.65rem;
    font-weight: 500;
    padding: 2px 6px;
}

@media (max-width: 767px) {
    .storage-badges .badge {
        font-size: 0.58rem;
        padding: 1px 4px;
    }
}

/* 할부 개월 선택 */
.installment-btn {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 10px 25px;
    background: transparent;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.installment-btn:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

.installment-btn.active {
    border-color: #ffc107;
    background: #ffc107;
    color: #333;
}

/* 제조사 필터 */
.manufacturer-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 10px 30px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    background: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--lguplus-color);
}

.filter-btn.active {
    background: var(--lguplus-color);
    border-color: var(--lguplus-color);
    color: white;
}

/* 카카오톡 플로팅 버튼 */
.kakao-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.kakao-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #fee500;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.kakao-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.kakao-float i {
    font-size: 28px;
    color: #3c1e1e;
}

/* 관리자 페이지 */
.admin-sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 5px 10px;
    transition: all 0.2s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-content {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 30px;
}

/* 반응형 */
@media (max-width: 768px) {
    .phone-card .card-img-wrapper {
        min-height: 150px;
    }

    .phone-card .card-img-top {
        max-height: 130px;
    }

    .calculator-box {
        padding: 15px;
    }

    .calculator-result .total-monthly {
        font-size: 1.5rem;
    }

    .kakao-float {
        bottom: 20px;
        right: 20px;
    }

    .kakao-float a {
        width: 50px;
        height: 50px;
    }

    .kakao-float i {
        font-size: 24px;
    }
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* 로딩 스피너 */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.loading-spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top-color: var(--lguplus-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* 견적 결과 테이블 */
.estimate-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.estimate-table th,
.estimate-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.estimate-table th {
    text-align: left;
    font-weight: 500;
    opacity: 0.9;
}

.estimate-table td {
    text-align: right;
    font-weight: 700;
}

.estimate-table tr:last-child th,
.estimate-table tr:last-child td {
    border-bottom: none;
}

/* 이미지 갤러리 */
.phone-gallery {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.phone-gallery .thumbnail {
    width: 60px;
    height: 60px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
    transition: all 0.2s ease;
}

.phone-gallery .thumbnail:hover,
.phone-gallery .thumbnail.active {
    border-color: var(--lguplus-color);
}

/* 요금제 상세 모달 */
.plan-benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-benefit-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.plan-benefit-list li:last-child {
    border-bottom: none;
}

.plan-benefit-list li::before {
    content: '✓';
    color: var(--success-color);
    margin-right: 8px;
    font-weight: bold;
}

/* ===== 상세 페이지 개선 스타일 ===== */

/* 요금제 상세 박스 */
.plan-detail-box {
    background: var(--d-soft);
    border-radius: 12px;
    padding: 20px;
}

.plan-info-item i {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.plan-info-item .info-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 4px;
}

.plan-info-item .info-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-color);
}

.plan-benefit {
    background: white;
    border-radius: 8px;
    padding: 15px;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    max-height: 150px;
    overflow-y: auto;
}

/* 할부 개월 선택 버튼 (상세 페이지용) */
.installment-select-btn {
    border: 1px solid var(--d-line);
    border-radius: var(--d-radius);
    padding: 10px 16px;
    background: white;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
    font-weight: 600;
    flex: 1;
}

.installment-select-btn:hover {
    border-color: #d7dbe2;
}

.installment-select-btn.active {
    border-color: var(--lguplus-color);
    background-color: var(--d-accent-soft);
    color: var(--lguplus-color);
}

.installment-select-btn:disabled,
.installment-select-btn.disabled {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

.installment-select-btn:disabled:hover,
.installment-select-btn.disabled:hover {
    border-color: #e9ecef;
}

/* ===== 예상 요금 카드 (엘지티샵 스타일) ===== */
.estimate-card-new {
    background: #fff;
    border: 1px solid var(--d-line);
    border-radius: var(--d-radius);
    overflow: hidden;
    margin-top: 20px;
}

/* 섹션 공통 */
.estimate-section {
    padding: 16px 18px;
    border-bottom: 1px solid var(--d-line);
}

.estimate-section:last-of-type {
    border-bottom: none;
}

/* 섹션 헤더 */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--lguplus-color);
    color: white;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 10px;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-color);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-title small {
    font-size: 0.85rem;
    font-weight: 400;
    color: #666;
    margin-left: 5px;
}

.section-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark-color);
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: 8px;
}

/* 섹션 상세.
   회색 박스 안에 줄마다 구분선까지 넣으면 표처럼 답답해진다.
   배경과 구분선을 걷어내고 여백과 글자색만으로 위계를 만든다. */
.section-detail {
    background: transparent;
    border-radius: 0;
    padding: 4px 0 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 0.88rem;
}

.detail-label {
    color: var(--d-muted);
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-value {
    color: #4b5563;
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.detail-value.discount {
    color: var(--lguplus-color);
}

.detail-value.self-discount {
    color: var(--lguplus-color);
    font-weight: 700;
    font-size: 1rem;
}

.detail-row.highlight {
    background: var(--d-accent-soft);
    border-radius: 8px;
    margin: 5px 0;
    padding: 9px 12px;
}

.detail-row.result {
    border-bottom: none;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px solid var(--d-line);
}

.detail-row.result .detail-label {
    font-weight: 600;
    color: var(--dark-color);
}

.detail-row.result .detail-value {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--dark-color);
}

/* 할부 이자율 뱃지 */
.installment-rate-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    padding: 6px 12px;
    background: var(--d-soft);
    color: #6b7280;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 선택약정 24개월 총 혜택 박스 */
.choice-benefit-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 15px;
    background: var(--d-accent-soft);
    border-radius: 10px;
    color: #19569c;
}

.choice-benefit-box i {
    font-size: 1.2rem;
}

.choice-benefit-box span {
    flex: 1;
    font-size: 0.9rem;
}

.choice-benefit-box strong {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--lguplus-color);
}

/* 총 납부금 섹션 */
/* 합계는 색 블록으로 덮기보다 흰 바탕에 강조색 숫자로 두는 편이
   위의 상세 내역과 이어져 읽히고 화면도 차분해진다. */
.estimate-total-section {
    background: #fff;
    border-top: 1px solid var(--d-line);
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.daemyung-final-bar {
    background: var(--d-soft);
    border-top: 1px solid var(--d-line);
    padding: 14px 20px;
    font-size: .85rem;
}

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

.total-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--d-accent-soft);
    color: var(--lguplus-color);
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* C·D 는 배경만 진한 색으로 바꾸므로 글자색도 같이 흰색으로 뒤집어야 읽힌다 */
.total-badge-c {
    background: #304d92;
    color: #fff;
}

.total-badge-d {
    background: #0d9488;
    color: #fff;
}

.total-plus {
    color: #c9cfd6;
    font-weight: 300;
    font-size: 1.2rem;
}

.total-title {
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 700;
    margin-left: 5px;
}

.total-amount {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--lguplus-color);
    font-variant-numeric: tabular-nums;
}

/* 반응형 */
@media (max-width: 576px) {
    .estimate-card-new {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .section-value {
        font-size: 1.2rem;
    }

    .total-amount {
        font-size: 1.45rem;
    }
}

/* ===== 하단 고정 바 (모바일) ===== */
.bottom-fixed-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--d-line);
    box-shadow: 0 -2px 12px rgba(23, 23, 28, 0.06);
    z-index: 1050;
    padding: 0;
}

/* 상세보기 토글 버튼 */
.mobile-detail-toggle {
    display: block;
    width: 100%;
    background: #f8f9fa;
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 6px 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.mobile-detail-toggle i {
    font-size: 0.65rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.mobile-detail-toggle.active i {
    transform: rotate(180deg);
}

/* 상세 펼침 영역 */
.mobile-detail-expand {
    display: none;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 16px 6px;
    background: #fafafa;
    border-bottom: 1px solid #e9ecef;
}

.mobile-detail-expand.show {
    display: block;
}

.mde-section {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.mde-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.mde-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: 0.82rem;
}

.mde-row.mde-header {
    font-size: 0.88rem;
    font-weight: 700;
    padding: 4px 0;
    color: var(--dark-color);
}

.mde-row.mde-sub {
    font-size: 0.78rem;
    color: #666;
    padding: 2px 0 2px 6px;
}

.mde-row.mde-dashed {
    border-top: 1px dashed #ddd;
    margin-top: 4px;
    padding-top: 4px;
}

.mde-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--lguplus-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    margin-right: 4px;
}

.mde-badge-b {
    background: #6b7280;
}

/* 콤팩트 요약 (항상 보임) */
.mobile-price-compact {
    padding: 8px 16px;
}

.mpc-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.mpc-item {
    font-size: 0.78rem;
    color: #666;
}

.mpc-item strong {
    color: var(--dark-color);
    font-weight: 700;
}

.mpc-op {
    color: #ccc;
    font-size: 0.8rem;
}

.mpc-total {
    font-size: 0.85rem;
    color: var(--lguplus-color);
    font-weight: 600;
}

.mpc-total strong {
    font-size: 1.05rem;
    font-weight: 800;
}

/* 하단 버튼 */
.mobile-bar-buttons {
    display: flex;
    gap: 0;
    padding: 0;
}

.mbb-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 0;
    font-size: 0.88rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.mbb-btn:active {
    opacity: 0.8;
}

.mbb-kakao {
    background: #fee500;
    color: #3c1e1e;
}

.mbb-order {
    background: linear-gradient(135deg, #3f8ae0, #206cc2);
    color: white;
    flex: 2;
}

.mbb-order:hover,
.mbb-order:active {
    color: white;
}

/* ===== 주문 모달 ===== */
.order-summary-box {
    background: var(--d-soft);
    border: 1px solid var(--d-line);
    border-radius: var(--d-radius);
    padding: 20px;
}

.order-phone-thumb {
    background: white;
    border-radius: 8px;
    padding: 5px;
}

/* 약관 박스 */
.terms-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.terms-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.terms-detail {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
}

.terms-detail ol, .terms-detail ul {
    padding-left: 20px;
    margin: 10px 0;
}

.terms-detail li {
    margin-bottom: 5px;
}

/* 반응형 - 하단 고정 바 */
@media (max-width: 991px) {
    .bottom-fixed-bar {
        padding: 12px 0;
    }

    .fixed-bar-buttons {
        justify-content: center;
    }

    .btn-phone, .btn-kakao, .btn-order {
        flex: 1;
        justify-content: center;
        padding: 14px 15px;
    }

    .btn-phone span, .btn-kakao span, .btn-order span {
        display: inline;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .estimate-card {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }

    .estimate-total {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .total-value {
        font-size: 1.8rem;
    }


    .item-value {
        font-size: 1.2rem;
    }
}

/* ===== 히어로 배너 슬라이더 ===== */
.hero-banner-section {
    width: 100%;
    max-width: 100%;
    background: #000;
    margin-bottom: clamp(20px, 4vw, 40px);
    overflow: hidden;
    box-sizing: border-box;
}

.hero-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    box-sizing: border-box;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.hero-slider .slide {
    min-width: 100%;
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* 배너 이미지 - 뷰포트 너비에 맞춰 전체 표시 */
.hero-slider .slide img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    display: block;
}

.hero-slider .slide a {
    display: block;
    width: 100%;
}

/* 슬라이더 네비게이션 화살표 */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(35px, 5vw, 50px);
    height: clamp(35px, 5vw, 50px);
    border: none;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: clamp(1rem, 2vw, 1.5rem);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slider-nav.prev {
    left: clamp(10px, 2vw, 25px);
}

.slider-nav.next {
    right: clamp(10px, 2vw, 25px);
}

/* 페이지 인디케이터 (점) */
.slider-dots {
    position: absolute;
    bottom: clamp(12px, 3vw, 25px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: clamp(6px, 1.5vw, 12px);
    z-index: 10;
}

.slider-dot {
    width: clamp(8px, 1.5vw, 12px);
    height: clamp(8px, 1.5vw, 12px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* 슬라이드 카운터 */
.slider-counter {
    position: absolute;
    bottom: clamp(12px, 3vw, 25px);
    right: clamp(12px, 2vw, 25px);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: clamp(4px, 1vw, 8px) clamp(10px, 2vw, 16px);
    border-radius: 15px;
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    z-index: 10;
}

.slider-counter .current {
    font-weight: 700;
}

/* ===== 인터넷+TV 섹션 (index.php) ===== */
.internet-section {
    padding: clamp(30px, 5vw, 60px) 0;
    background: linear-gradient(135deg, #f3f6fc 0%, #f2f7fd 100%);
    margin-top: 40px;
}

.internet-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(20px, 3vw, 30px);
}

.internet-section .section-title {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 800;
    color: var(--dark-color);
    margin: 0;
}

.internet-section .section-title i {
    color: var(--lguplus-color);
    margin-right: 8px;
}

.internet-section .more-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    text-decoration: none;
    font-size: clamp(0.85rem, 2vw, 1rem);
    transition: color 0.2s ease;
}

.internet-section .more-link:hover {
    color: var(--lguplus-color);
}

.internet-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.internet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(34, 116, 210, 0.15);
}

.internet-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--lguplus-color), #243f7d);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.internet-card-header {
    background: var(--d-soft);
    padding: 40px 20px 20px;
    text-align: center;
}

.internet-plan-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.internet-speed {
    color: var(--lguplus-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.internet-card-body {
    padding: 20px;
    flex: 1;
}

.internet-price {
    text-align: center;
    padding: 15px;
    background: #f6fafe;
    border-radius: 12px;
    margin-bottom: 15px;
}

.internet-price .price-label {
    font-size: 0.85rem;
    color: #888;
}

.internet-price .price-amount {
    font-size: 1.6rem;
    font-weight: 800;
    color: #333;
    margin: 0 3px;
}

.internet-price .price-unit {
    font-size: 0.9rem;
    color: #666;
}

.internet-feature {
    text-align: center;
    padding: 8px;
    color: #666;
    font-size: 0.9rem;
}

.internet-feature i {
    color: var(--lguplus-color);
    margin-right: 5px;
}

.internet-gift {
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-radius: 10px;
    margin-top: 10px;
    border: 1px dashed #ffc107;
}

.internet-gift i {
    color: #f57c00;
    margin-right: 5px;
}

.internet-gift strong {
    color: #e65100;
    font-size: 1.1rem;
}

.internet-card-btn {
    display: block;
    padding: 15px;
    text-align: center;
    background: var(--lguplus-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.internet-card-btn:hover {
    background: #1c61ae;
    color: white;
}

@media (max-width: 767px) {
    .internet-section {
        margin-top: 30px;
    }
    .internet-plan-name {
        font-size: 0.85rem;
    }
    .internet-price .price-amount {
        font-size: 1.1rem;
    }
    .internet-card-header {
        padding: 30px 12px 12px;
    }
    .internet-card-body {
        padding: 12px;
    }
    .internet-price {
        padding: 10px;
        margin-bottom: 8px;
    }
    .internet-card-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
        top: 10px;
        left: 10px;
    }
    .internet-card-btn {
        padding: 10px;
        font-size: 0.85rem;
    }
    .internet-gift {
        padding: 8px;
        font-size: 0.8rem;
    }
    .internet-gift strong {
        font-size: 0.9rem;
    }
    .internet-feature {
        font-size: 0.8rem;
        padding: 5px;
    }
    .internet-speed {
        font-size: 0.8rem;
    }
}

/* ===== 뷰 모드 전환 ===== */
.view-toggle-wrap {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    margin-bottom: 15px;
}

.view-toggle-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    color: #999;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.view-toggle-btn:hover {
    border-color: var(--lguplus-color);
    color: var(--lguplus-color);
}

.view-toggle-btn.active {
    background: var(--lguplus-color);
    border-color: var(--lguplus-color);
    color: white;
}

/* ===== 리스트 뷰 스타일 ===== */
.phone-grid.list-view > div {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

.phone-grid.list-view .phone-card {
    flex-direction: row;
    align-items: stretch;
}

.phone-grid.list-view .card-img-wrapper {
    width: 140px;
    min-width: 140px;
    min-height: auto;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-grid.list-view .card-img-top {
    max-height: 120px;
}

.phone-grid.list-view .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px;
    flex: 1;
}

.phone-grid.list-view .phone-name {
    font-size: 1rem;
    margin-bottom: 5px;
}

.phone-grid.list-view .color-options {
    margin-bottom: 5px;
}

.phone-grid.list-view .storage-badges {
    margin-bottom: 5px;
}

.phone-grid.list-view .price-info {
    gap: 2px;
}

.phone-grid.list-view .manufacturer-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
}

@media (max-width: 767px) {
    .phone-grid.list-view .card-img-wrapper {
        width: 110px;
        min-width: 110px;
        padding: 10px;
    }
    .phone-grid.list-view .card-img-top {
        max-height: 90px;
    }
    .phone-grid.list-view .card-body {
        padding: 10px;
    }
    .phone-grid.list-view .phone-name {
        font-size: 0.85rem;
    }
}

/* ===== 이벤트 섹션 ===== */
.event-section {
    padding: clamp(30px, 5vw, 60px) 0;
    background: #fff;
}

.event-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(20px, 3vw, 30px);
}

.event-section .section-title {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 800;
    color: var(--dark-color);
    margin: 0;
}

.event-section .more-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    text-decoration: none;
    font-size: clamp(0.85rem, 2vw, 1rem);
    transition: color 0.2s ease;
}

.event-section .more-link:hover {
    color: var(--lguplus-color);
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 2vw, 20px);
}

.event-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    background: #fff;
}

.event-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.event-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.event-thumb {
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    transition: transform 0.3s;
}

.event-item:hover .event-thumb img {
    transform: scale(1.05);
}

.event-info {
    padding: 12px 14px 14px;
}

.event-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #333;
}

.event-date {
    font-size: 0.78rem;
    color: #999;
}

/* 태블릿 */
@media (max-width: 991px) {
    .event-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-item:nth-child(n+5) {
        display: none;
    }
}

/* 모바일 */
@media (max-width: 767px) {
    .event-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-item:nth-child(n+5) {
        display: none;
    }

    .event-info {
        padding: 10px 12px 12px;
    }

    .event-title {
        font-size: 0.82rem;
    }
}

/* ===== 이벤트 목록 페이지 ===== */
.events-list-section {
    padding: 40px 0 60px;
}

.events-list-section .section-header {
    margin-bottom: 30px;
}

.events-list-section .section-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.event-list-item {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-list-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    color: inherit;
}

.event-list-item.expired {
    opacity: 0.6;
}

.event-list-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.event-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.event-list-item:hover .event-list-thumb img {
    transform: scale(1.05);
}

.event-expired-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.event-list-info {
    padding: 16px;
}

.event-list-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-list-date {
    font-size: 0.85rem;
    color: #888;
}

.event-list-date i {
    margin-right: 4px;
}

@media (max-width: 991px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 575px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .event-list-thumb {
        aspect-ratio: 16 / 9;
    }
}

/* ===== 이벤트 상세 페이지 ===== */
.event-view-section {
    padding: 40px 0 60px;
}

.event-article {
    max-width: 800px;
    margin: 0 auto;
}

.event-article-header {
    border-bottom: 2px solid #333;
    padding-bottom: 16px;
    margin-bottom: 32px;
}

.event-article-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.4;
}

.event-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #888;
    font-size: 0.9rem;
}

.event-article-date i {
    margin-right: 4px;
}

.event-article-body {
    padding: 20px 0;
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
    word-break: break-word;
}

.event-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

.event-article-body p {
    margin-bottom: 16px;
}

.event-article-body h1, .event-article-body h2, .event-article-body h3,
.event-article-body h4, .event-article-body h5, .event-article-body h6 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 700;
}

.event-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.event-article-body table th,
.event-article-body table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
}

.event-article-body table th {
    background: #f8f9fa;
}

/* 이벤트 이전/다음 네비게이션 */
.event-article-nav {
    display: flex;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-top: 40px;
}

.event-nav-item {
    flex: 1;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.event-nav-item:hover:not(.disabled) {
    background: #f8f9fa;
    color: inherit;
}

.event-nav-item.next {
    text-align: right;
    border-left: 1px solid #eee;
}

.event-nav-item.disabled {
    opacity: 0.4;
    cursor: default;
}

.event-nav-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 4px;
}

.event-nav-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 575px) {
    .event-article-title {
        font-size: 1.3rem;
    }

    .event-article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .event-article-nav {
        flex-direction: column;
    }

    .event-nav-item.next {
        text-align: left;
        border-left: none;
        border-top: 1px solid #eee;
    }
}

/* ===== VS 비교 섹션 ===== */
.vs-comparison-section {
    padding: 60px 0 40px;
    margin-top: 50px;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.vs-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.vs-section-title h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.vs-section-title p {
    color: #666;
    font-size: 1rem;
}

.vs-container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 80px;
    position: relative;
    max-width: 950px;
    margin: 0 auto;
    padding: 0 20px;
}

/* VS 텍스트 - 카드 사이 중앙 */
.vs-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #476eca, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 15px rgba(71, 110, 202, 0.3));
    pointer-events: none;
}

/* 카드 공통 */
.vs-card {
    flex: 1;
    max-width: 400px;
    background: white;
    border-radius: 24px;
    padding: 40px 35px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.vs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

/* 일반 판매점 카드 (왼쪽) */
.vs-card.normal {
    border: 2px solid #e9ecef;
}

/* 광컴퍼니 카드 (오른쪽) - 강조 */
.vs-card.koang {
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #476eca, #6366f1) border-box;
    box-shadow: 0 8px 40px rgba(71, 110, 202, 0.2);
}

.vs-card.koang:hover {
    box-shadow: 0 12px 50px rgba(71, 110, 202, 0.3);
}

/* 카드 헤더 */
.vs-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.vs-card-icon {
    font-size: 2.2rem;
}

.vs-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-color);
}

.vs-card.koang .vs-card-title {
    background: linear-gradient(135deg, var(--lguplus-color), #476eca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 카드 리스트 */
.vs-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vs-card-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
}

.vs-card-list li:not(:last-child) {
    border-bottom: none;
}

/* 일반 판매점 - bullet */
.vs-card.normal .vs-card-list li::before {
    content: '';
    width: 10px;
    height: 10px;
    min-width: 10px;
    background: #adb5bd;
    border-radius: 50%;
    margin-top: 8px;
}

/* 광컴퍼니 - bullet */
.vs-card.koang .vs-card-list li::before {
    content: '';
    width: 10px;
    height: 10px;
    min-width: 10px;
    background: linear-gradient(135deg, var(--lguplus-color), #476eca);
    border-radius: 50%;
    margin-top: 8px;
}

/* 강조 텍스트 */
.vs-card-list .highlight {
    font-weight: 700;
    color: var(--dark-color);
}

.vs-card.koang .vs-card-list .highlight {
    color: var(--lguplus-color);
}

.vs-card-list .negative {
    color: var(--lguplus-color);
    font-weight: 800;
}

/* 면책 조항 */
.vs-disclaimer {
    text-align: center;
    margin-top: 40px;
    padding: 0 20px;
    font-size: 0.85rem;
    color: #888;
}

/* 반응형 - 태블릿 및 모바일 */
@media (max-width: 991px) {
    .vs-comparison-section {
        padding: 50px 0 30px;
        margin-top: 40px;
    }

    .vs-container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .vs-card {
        max-width: 100%;
        width: 100%;
        padding: 30px 25px;
    }

    .vs-badge {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        text-align: center;
        font-size: 3rem;
        margin: 0;
        order: 1;
    }

    .vs-card.normal {
        order: 0;
    }

    .vs-card.koang {
        order: 2;
    }
}

/* 반응형 - 모바일 */
@media (max-width: 576px) {
    .vs-comparison-section {
        padding: 40px 0 25px;
        margin-top: 30px;
    }

    .vs-section-title {
        margin-bottom: 35px;
    }

    .vs-section-title h2 {
        font-size: 1.4rem;
    }

    .vs-section-title p {
        font-size: 0.9rem;
    }

    .vs-card {
        padding: 25px 20px;
        border-radius: 18px;
    }

    .vs-card-icon {
        font-size: 1.8rem;
    }

    .vs-card-title {
        font-size: 1.25rem;
    }

    .vs-card-list li {
        font-size: 0.95rem;
        padding: 14px 0;
        gap: 12px;
    }

    .vs-card.normal .vs-card-list li::before,
    .vs-card.koang .vs-card-list li::before {
        margin-top: 6px;
    }

    .vs-badge {
        font-size: 2.5rem;
    }

    .vs-disclaimer {
        font-size: 0.75rem;
        margin-top: 30px;
    }
}


/* ===== 상세 정보 영역 (WYSIWYG) ===== */
.phone-description {
    text-align: center;
    line-height: 1.8;
    word-break: keep-all;
}

.phone-description img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

.phone-description p {
    margin-bottom: 15px;
}

.phone-description h1,
.phone-description h2,
.phone-description h3,
.phone-description h4,
.phone-description h5,
.phone-description h6 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.phone-description table {
    width: 100%;
    margin: 20px auto;
    border-collapse: collapse;
}

.phone-description table td,
.phone-description table th {
    border: 1px solid #dee2e6;
    padding: 10px;
}

.phone-description ul,
.phone-description ol {
    display: inline-block;
    text-align: left;
    margin: 15px 0;
}

/* 상세 이미지도 가운데 정렬 */
.detail-section .row.g-3 img {
    display: block;
    margin: 0 auto;
}

/* ===== 요금제 추가설명 영역 ===== */
.plan-benefit-area {
    margin-top: 10px;
    padding: 12px 16px;
    background: #f0f4ff;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #444;
    line-height: 1.6;
    border-left: 3px solid var(--lguplus-color);
}

/* ===== OTT팩 택1 ===== */
.plan-ott-area {
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.plan-ott-area.need-select {
    border-color: var(--lguplus-color);
    box-shadow: 0 0 0 3px rgba(30, 102, 184, 0.12);
}

.plan-ott-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.plan-ott-title i {
    color: var(--lguplus-color);
}

.plan-ott-title small {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lguplus-color);
    margin-left: 2px;
}

.plan-ott-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.plan-ott-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 12px;
    text-align: left;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.plan-ott-item:hover {
    border-color: var(--lguplus-color);
}

.plan-ott-item.active {
    background: #e5effb;
    border-color: var(--lguplus-color);
}

.plan-ott-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
}

.plan-ott-item.active .plan-ott-name {
    color: var(--lguplus-color);
}

.plan-ott-desc {
    font-size: 0.75rem;
    color: #777;
    line-height: 1.4;
}

/* ===== 전체요금제 / 제휴카드 버튼 ===== */
.plan-extra-btns {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.plan-extra-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.plan-extra-btn:hover {
    color: var(--lguplus-color);
    border-color: var(--lguplus-color);
    background: #e5effb;
}

.plan-extra-btn i {
    font-size: 1rem;
}

/* ===== 광컴퍼니 자체할인 배너 (요금제 선택) ===== */
.self-discount-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #3f8ae0 0%, #206cc2 100%);
    border-radius: var(--d-radius);
    margin-bottom: 15px;
}

.self-discount-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
}

.self-discount-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.self-discount-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.self-discount-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
}

.self-discount-tag {
    padding: 6px 14px;
    background: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #206cc2;
    white-space: nowrap;
}

/* 반응형 - 자체할인 배너 */
@media (max-width: 576px) {
    .self-discount-banner {
        padding: 14px 16px;
        gap: 10px;
    }

    .self-discount-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 1.1rem;
    }

    .self-discount-label {
        font-size: 0.8rem;
    }

    .self-discount-amount {
        font-size: 1.25rem;
    }

    .self-discount-tag {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
}

/* ===== 하단 고정바 자체할인 칩 ===== */
.self-discount-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #72a9e8, #3b77bb);
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    animation: chip-pulse 2s ease-in-out infinite;
}

@keyframes chip-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.self-discount-chip i {
    font-size: 0.9rem;
}

.self-discount-chip strong {
    font-weight: 800;
    font-size: 0.95rem;
}

/* 모바일 자체할인 칩 */
.self-discount-chip-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #72a9e8, #3b77bb);
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.self-discount-chip-mobile i {
    font-size: 0.85rem;
}

.self-discount-chip-mobile strong {
    font-weight: 800;
}

/* ===== 휴대폰 카드 이미지 클릭 가능 & 호버 효과 강화 ===== */
.phone-card .card-img-wrapper {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.phone-card .card-img-wrapper::after {
    content: '자세히 보기';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(34, 116, 210, 0.95), transparent);
    color: white;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.phone-card:hover .card-img-wrapper::after {
    transform: translateY(0);
}

.phone-card:hover .card-img-wrapper {
    background: linear-gradient(135deg, #f6fafe 0%, #e5effb 100%);
}

.phone-card:hover .card-img-top {
    transform: scale(1.08);
    transition: transform 0.4s ease;
}

.phone-card .card-img-top {
    transition: transform 0.4s ease;
}

/* 카드 전체 호버 효과 강화 */
.phone-card {
    position: relative;
}

.phone-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.3s ease;
}

.phone-card:hover::before {
    background: linear-gradient(135deg, #72a9e8, #3b77bb);
}

.phone-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(34, 116, 210, 0.25);
}

/* 이미지 링크 래퍼 */
.phone-card .card-img-link {
    display: block;
    text-decoration: none;
}

.phone-card .card-img-link:hover {
    text-decoration: none;
}

.phone-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.phone-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* ===== 우측 플로팅 상담 버튼 (엘지티샵 스타일) ===== */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.floating-btn i {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.floating-btn span {
    font-size: 0.6rem;
    font-weight: 600;
    white-space: nowrap;
}

/* 전화 버튼 */
.floating-btn.phone {
    background: #fff;
    color: #4a5568;
    border: 1px solid #e9ecef;
}

.floating-btn.phone:hover {
    background: #4a5568;
    color: #fff;
    border-color: #4a5568;
    transform: scale(1.1);
}

/* 카카오 버튼 */
.floating-btn.kakao {
    background: #fee500;
    color: #3c1e1e;
}

.floating-btn.kakao:hover {
    background: #fdd835;
    transform: scale(1.1);
}

/* 반응형 - 플로팅 버튼 */
@media (max-width: 767px) {
    .floating-contact {
        right: 15px;
        bottom: 80px;
    }

    .floating-btn {
        width: 52px;
        height: 52px;
    }

    .floating-btn i {
        font-size: 1.1rem;
    }

    .floating-btn span {
        font-size: 0.55rem;
    }
}

/* ===== 고객 리뷰 섹션 ===== */
.review-section {
    padding: clamp(40px, 6vw, 80px) 0;
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
}

/* ==========================================================================
   detail.php 하단 안내 탭 (안내사항 / 고객후기 / 개통방법)
   왼쪽 칼럼 안에 두어 PC에서 우측 sticky 견적 영역을 침범하지 않게 한다.
   ========================================================================== */
.detail-tabs-block {
    margin-top: 20px;
}

/* 패널이 길어 한참 내려가도 탭을 바꿀 수 있어야 하므로 고정 헤더 바로 밑에 붙여 둔다.
   top 값은 브레이크포인트별 헤더 높이(65/55/50px)와 맞춘다. */
.detail-tabs-nav {
    position: sticky;
    top: 65px;
    z-index: 12;
    display: flex;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--d-line);
    margin-bottom: 18px;
}

@media (max-width: 991.98px) {
    .detail-tabs-nav {
        top: 55px;
    }
}

@media (max-width: 576px) {
    .detail-tabs-nav {
        top: 50px;
    }
}

.detail-tab-btn {
    flex: 1;
    padding: 11px 8px;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--d-muted);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.detail-tab-btn:hover {
    color: var(--dark-color);
}

.detail-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 700;
}

.detail-tab-panel {
    display: none;
}

.detail-tab-panel.active {
    display: block;
}

/* --- 안내사항 --- */
.detail-notice-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--d-radius);
}

.detail-notice-image+.detail-notice-image {
    margin-top: 10px;
}

/* --- 개통방법 --- */
.activation-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.activation-step {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 26px;
    padding: 14px 16px;
    border: 1px solid var(--d-line);
    border-radius: var(--d-radius);
    background: #fff;
}

.activation-step:last-child {
    margin-bottom: 0;
}

/* 단계 사이 아래 방향 연결 표시 */
.activation-step:not(:last-child)::after {
    content: "\F282";
    /* bi-chevron-down */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 50%;
    bottom: -19px;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #c7ccd4;
    line-height: 1;
}

.as-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.as-icon-blue {
    background: #e8f0fe;
    color: #2563eb;
}

.as-icon-yellow {
    background: #fef3c7;
    color: #d97706;
}

.as-icon-orange {
    background: #fee9d6;
    color: #ea7317;
}

.as-icon-navy {
    background: #e4e9f7;
    color: #3b4f9e;
}

.as-icon-red {
    background: #fde8e8;
    color: #dc2626;
}

.as-body {
    min-width: 0;
}

.as-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 3px 0 6px;
}

.as-desc {
    font-size: 0.84rem;
    line-height: 1.65;
    color: #6b7280;
    margin: 0;
    word-break: keep-all;
}

/* --- 고객후기 --- */
/* 고객후기 탭: 전체 / 이 모델만 (세그먼트 버튼) */
.dt-review-filter {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    margin-bottom: 14px;
    background: var(--d-soft);
    border: 1px solid var(--d-line);
    border-radius: 999px;
}

.dt-review-filter-btn {
    padding: 6px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--d-muted);
    font-size: 0.84rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.dt-review-filter-btn span {
    margin-left: 2px;
    font-size: 0.78rem;
    font-weight: 500;
}

.dt-review-filter-btn.active {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(23, 23, 28, 0.08);
}

.dt-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--d-line);
}

.dt-review-score {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dt-review-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1;
}

.dt-review-stars .star,
.dt-review-rating .star {
    color: #d8dce3;
    font-size: 0.88rem;
    letter-spacing: -1px;
}

.dt-review-stars .star.filled,
.dt-review-rating .star.filled {
    color: #fbbf24;
}

.dt-review-count {
    font-size: 0.82rem;
    color: var(--d-muted);
}

.dt-review-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f1f4;
    cursor: pointer;
}

.dt-review-main {
    flex: 1;
    min-width: 0;
}

.dt-review-item .dt-review-thumb {
    flex: 0 0 64px;
    display: block;
    width: 64px;
    height: 64px;
    min-width: 64px;
    max-width: 64px;
    max-height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--d-line);
    background: var(--d-soft);
}

.dt-review-item:last-child {
    border-bottom: 0;
}

.dt-review-item.is-hidden {
    display: none;
}

.dt-review-rating {
    margin-bottom: 6px;
}

.dt-review-title {
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 6px;
}

.dt-review-text {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #6b7280;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dt-review-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 0.76rem;
    color: #9ca3af;
}

/* ===== 번들 단말기 미선택 확인 모달 ===== */
.modal-sm-custom {
    max-width: 380px;
}

.bundle-prompt {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
}

.bundle-prompt .modal-body {
    padding: 28px 24px 18px;
}

.bundle-prompt-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--d-accent-soft);
    color: var(--primary-color);
    font-size: 1.5rem;
}

.bundle-prompt-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.bundle-prompt-desc {
    font-size: 0.86rem;
    line-height: 1.7;
    color: #6b7280;
    margin: 0;
    word-break: keep-all;
}

.bundle-prompt-desc strong {
    color: var(--primary-color);
}

.bundle-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 24px 24px;
    border-top: 0;
}

.bundle-prompt-actions .btn {
    width: 100%;
    margin: 0;
    padding: 11px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-bundle-prompt-yes {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #fff;
    order: -1;
}

.btn-bundle-prompt-yes:hover {
    filter: brightness(0.95);
    color: #fff;
}

.btn-bundle-prompt-no {
    background: #fff;
    border: 1px solid var(--d-line);
    color: var(--d-muted);
}

.btn-bundle-prompt-no:hover {
    background: var(--d-soft);
    color: var(--dark-color);
}

/* 어떤 기기를 개통한 후기인지 날짜 옆에 붙인다 */
.dt-review-model,
.review-model-tag {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 10px;
    background: var(--d-accent-soft);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}

.dt-review-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.dt-review-more,
.dt-review-write {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border: 1px solid var(--d-line);
    background: #fff;
    color: var(--dark-color);
    cursor: pointer;
    transition: background 0.15s;
}

/* 남은 후기 수 */
.dt-review-remain {
    display: inline-block;
    min-width: 18px;
    padding: 1px 5px;
    margin-left: 2px;
    border-radius: 9px;
    background: var(--d-soft);
    font-size: 0.72rem;
    color: var(--d-muted);
}

.dt-review-more:hover,
.dt-review-write:hover {
    background: var(--d-soft);
    color: var(--dark-color);
}

.dt-review-write {
    border-color: var(--d-accent-line);
    color: var(--primary-color);
}

.dt-empty {
    padding: 40px 0;
    text-align: center;
    color: var(--d-muted);
    font-size: 0.88rem;
}

@media (max-width: 575.98px) {
    .detail-tab-btn {
        font-size: 0.86rem;
        padding: 10px 4px;
    }

    .activation-step {
        padding: 12px 13px;
        gap: 10px;
    }

    .as-title {
        font-size: 0.9rem;
    }

    .as-desc {
        font-size: 0.8rem;
    }
}

.review-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(30px, 5vw, 45px);
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.review-header-left {}

.review-section-title {
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1.3;
    margin: 0 0 6px;
}

.review-section-subtitle {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
}

.review-header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.review-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.review-stat-score {
    text-align: center;
}

.review-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1;
}

.review-stat-stars {
    margin-top: 4px;
}

.review-stat-stars .star {
    color: #ddd;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.review-stat-stars .star.filled {
    color: #ffc107;
}

.review-stat-count {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.review-stat-total {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--lguplus-color);
    line-height: 1;
}

.review-stat-label {
    font-size: 0.8rem;
    color: #888;
    margin-top: 2px;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(15px, 2.5vw, 25px);
}

.review-card {
    background: #fff;
    border-radius: 16px;
    padding: clamp(20px, 3vw, 28px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.review-rating {
    margin-bottom: 12px;
}

.review-rating .star {
    color: #ddd;
    font-size: 1rem;
    letter-spacing: 2px;
}

.review-rating .star.filled {
    color: #ffc107;
}

.review-title {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
    line-height: 1.5;
    word-break: keep-all;
}

.review-content {
    flex: 1;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
    word-break: keep-all;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.review-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-color);
}

.review-date {
    font-size: 0.8rem;
    color: #999;
}

/* 리뷰 반응형 - 태블릿 */
@media (max-width: 991px) {
    .review-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .review-card:nth-child(n+5) {
        display: none;
    }
}

/* 리뷰 반응형 - 모바일 */
@media (max-width: 767px) {
    .review-section {
        padding: 40px 0;
    }

    .review-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .review-card {
        padding: 18px;
    }

    .review-card:nth-child(n+5) {
        display: none;
    }

    .review-title {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .review-content {
        font-size: 0.8rem;
        -webkit-line-clamp: 4;
    }

    .review-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* 리뷰 반응형 - 작은 모바일 */
@media (max-width: 480px) {
    .review-grid {
        grid-template-columns: 1fr;
    }

    .review-card:nth-child(n+4) {
        display: none;
    }

    .review-content {
        -webkit-line-clamp: 3;
    }
}

.review-more-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.review-more-link:hover {
    color: var(--lguplus-color);
}

/* 리뷰 헤더 반응형 - 태블릿 */
@media (max-width: 991px) {
    .review-stats {
        gap: 12px;
    }

    .review-stat-number {
        font-size: 1.6rem;
    }

    .review-stat-total {
        font-size: 1.3rem;
    }
}

/* 리뷰 헤더 반응형 - 모바일 */
@media (max-width: 767px) {
    .review-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .review-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .review-stat-number {
        font-size: 1.4rem;
    }

    .review-stat-total {
        font-size: 1.1rem;
    }

    .review-section-subtitle {
        font-size: 0.82rem;
    }
}

.review-write-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
    padding: 20px 24px;
    background: var(--d-accent-soft);
    border: 1px solid var(--d-accent-line);
    border-radius: var(--d-radius);
}

.review-write-cta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-write-cta-text strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-color);
}

.review-write-cta-text span {
    font-size: 0.86rem;
    color: #6b7280;
}

/* 후기 작성 버튼 (메인 후기 띠 · 후기 게시판 공통). 부트스트랩 파란 btn-primary 대신 사이트 핑크 */
.review-write-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, transform 0.15s;
}

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

.btn-brand:hover,
.btn-brand:focus,
.btn-brand:active {
    background: #206cc2 !important;
    border-color: #206cc2 !important;
    color: #fff !important;
}

.review-write-cta-btn:hover,
.review-write-cta-btn:focus {
    background: #206cc2;
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 575.98px) {
    .review-write-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 18px 16px;
    }

    .review-write-cta-text strong {
        font-size: 0.95rem;
    }
}

/* 리뷰 카드 링크 스타일 */
a.review-card {
    text-decoration: none;
    color: inherit;
}

a.review-card:hover {
    text-decoration: none;
    color: inherit;
}

/* ===== 리뷰 리스트 모드 (index.php) ===== */
.review-list-mode {
    border-top: 2px solid #333;
}

.review-list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    cursor: pointer;
}

.review-list-row:hover {
    background: #f6f8fd;
    color: inherit;
}

.review-list-row .rl-rating {
    flex-shrink: 0;
    font-size: 0.75rem;
    white-space: nowrap;
}

.review-list-row .rl-rating .star {
    color: #ddd;
}

.review-list-row .rl-rating .star.filled {
    color: #ffc107;
}

.review-list-row .rl-title {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-list-row .rl-author {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: #888;
    min-width: 50px;
    text-align: center;
}

.review-list-row .rl-date {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: #aaa;
    min-width: 70px;
    text-align: right;
}

@media (max-width: 576px) {
    .review-list-row .rl-author {
        display: none;
    }

    .review-list-row .rl-rating {
        font-size: 0.65rem;
    }

    .review-list-row .rl-title {
        font-size: 0.85rem;
    }
}

/* ===== 리뷰 작성 페이지 ===== */
.review-write-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.review-write-header {
    text-align: center;
    margin-bottom: 30px;
}

.review-write-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.review-write-header p {
    color: #666;
}

.review-write-form {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-section {
    margin-bottom: 25px;
}

.form-section .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* 별점 입력 */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    font-size: 2rem;
    color: #ddd;
    transition: color 0.2s;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: #ffc107;
}

/* 비밀번호 확인 박스 */
.password-check-box {
    max-width: 400px;
    margin: 50px auto;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.password-check-box h5 {
    font-weight: 700;
    margin-bottom: 15px;
}

.password-check-box p {
    color: #666;
    margin-bottom: 20px;
}

.nav-label {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 5px;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .review-write-form {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* ===== 푸터 스타일 =====
   상단 상담 띠(전화 · 상담시간 · 바로가기) + 브랜드 / 사업자 정보 / 운영 매장 3단 + 하단 약관 줄.
   흰 바탕에 옅은 회색 상담 띠, 강조는 브랜드 핑크 한 가지만 쓴다. */
.site-footer {
    --sf-bg: #fff;
    --sf-bg-2: #f7f8fa;
    --sf-line: #e7e9ee;
    --sf-text: #4e5562;
    --sf-dim: #8b95a1;
    --sf-strong: #191b22;
    background: var(--sf-bg);
    color: var(--sf-text);
    margin-top: 50px;
    border-top: 1px solid var(--sf-line);
    font-size: 0.86rem;
    line-height: 1.6;
}

.site-footer a { color: inherit; text-decoration: none; }

/* 상담 띠 */
.sf-contact {
    background: var(--sf-bg-2);
    border-bottom: 1px solid var(--sf-line);
    padding: 36px 0 32px;
}
.sf-contact-inner {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 40px;
}
.sf-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    margin-bottom: 6px;
}
.site-footer .sf-phone {
    display: inline-block;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--sf-strong);
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}
.sf-hours {
    display: flex;
    gap: 14px;
    margin: 10px 0 18px;
}
.sf-hours dt { font-weight: 600; color: var(--sf-strong); white-space: nowrap; }
.sf-hours dd { margin: 0; }
.sf-cs-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.site-footer .sf-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #d5d9e0;
    border-radius: 999px;
    background: #fff;
    color: var(--sf-strong);
    font-size: 0.84rem;
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s;
}
.site-footer .sf-btn:hover { border-color: var(--sf-strong); }
.site-footer .sf-btn--kakao { background: #fee500; border-color: #fee500; color: #191919; }
.site-footer .sf-btn--kakao:hover { background: #f5dc00; border-color: #f5dc00; }

.sf-quick {
    display: flex;
    align-self: center;
    border: 1px solid var(--sf-line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}
.site-footer .sf-quick-link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    min-width: 150px;
    padding: 18px 20px;
    color: var(--sf-strong);
    font-weight: 600;
    transition: background 0.15s;
}
.site-footer .sf-quick-link + .sf-quick-link { border-left: 1px solid var(--sf-line); }
.site-footer .sf-quick-link span { display: flex; align-items: center; gap: 8px; }
.site-footer .sf-quick-link span i { color: var(--primary-color); font-size: 1.05rem; }
.site-footer .sf-quick-link > i { align-self: flex-end; color: var(--sf-dim); transition: transform 0.15s, color 0.15s; }
.site-footer .sf-quick-link:hover { background: var(--d-accent-soft, #f0f6fc); }
.site-footer .sf-quick-link:hover > i { color: var(--sf-strong); transform: translateX(3px); }

/* 브랜드 / 사업자 / 매장 */
.sf-info {
    display: grid;
    grid-template-columns: 1fr 1.35fr 1.35fr;
    gap: 40px;
    padding: 40px 0;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.footer-logo .logo-uplus {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--lguplus-color);
    line-height: 1;
}
.footer-logo .logo-uplus sup {
    font-size: 0.7em;
    color: var(--lguplus-color);
}
.site-footer .footer-logo .logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--sf-strong);
    letter-spacing: -0.5px;
}
.sf-brand-sub { color: var(--sf-dim); margin: 0 0 18px; }
.sf-certs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-footer .footer-cert-logo {
    display: block;
    height: 46px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: 8px;
    opacity: 0.92;
    transition: opacity 0.2s;
}
.site-footer .footer-cert-logo:hover { opacity: 1; }

.sf-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--sf-strong);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--sf-line);
}
.sf-count {
    display: inline-block;
    margin-left: 4px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--d-accent-soft, #f0f6fc);
    color: var(--primary-color);
    font-size: 0.72rem;
    line-height: 1.6;
    vertical-align: 1px;
}
.sf-dl { margin: 0; }
.sf-dl > div { display: flex; gap: 14px; padding: 3px 0; }
.sf-dl dt { flex: 0 0 72px; color: var(--sf-dim); font-weight: 500; }
.sf-dl dd { margin: 0; color: var(--sf-text); word-break: keep-all; }
.site-footer .sf-biz-check {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border: 1px solid #d5d9e0;
    border-radius: 4px;
    font-size: 0.72rem;
    color: var(--sf-strong);
    vertical-align: 1px;
    transition: border-color 0.15s;
}
.site-footer .sf-biz-check:hover { border-color: var(--sf-strong); }

.sf-store-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 230px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d5d9e0 transparent;
}
.sf-store-list li { display: flex; flex-direction: column; padding: 5px 0; }
.sf-store-list li + li { border-top: 1px dashed var(--sf-line); }
.sf-store-list strong { color: var(--sf-strong); font-weight: 600; font-size: 0.84rem; }
.sf-store-list span { color: var(--sf-dim); font-size: 0.78rem; }

/* 하단 약관 줄 */
.sf-bottom { border-top: 1px solid var(--sf-line); padding: 18px 0; }
.sf-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-footer .footer-legal-link { color: var(--sf-text); font-size: 0.82rem; font-weight: 600; transition: color 0.2s; }
.site-footer .footer-legal-link:first-child { color: var(--sf-strong); }
.site-footer .footer-legal-link:hover { color: var(--primary-color); }
.site-footer .footer-legal-divider { color: var(--sf-dim); margin: 0 10px; font-size: 0.75rem; }
.site-footer .footer-copy { color: var(--sf-dim); font-size: 0.78rem; }

@media (max-width: 991.98px) {
    .sf-contact-inner { flex-direction: column; gap: 24px; }
    .sf-quick { align-self: stretch; }
    .site-footer .sf-quick-link { flex: 1; min-width: 0; }
    .sf-info { grid-template-columns: 1fr 1fr; }
    .sf-brand { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
    .sf-contact { padding: 28px 0 24px; }
    .site-footer .sf-phone { font-size: 1.65rem; }
    .site-footer .sf-quick-link { padding: 14px 12px; gap: 14px; font-size: 0.82rem; }
    .site-footer .sf-quick-link span { flex-direction: column; align-items: flex-start; gap: 4px; }
    .sf-info { grid-template-columns: 1fr; gap: 28px; padding: 30px 0; }
    .sf-bottom-inner { flex-direction: column; align-items: flex-start; }
}

.policy-modal-body {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #444;
}

.policy-modal-body h6 {
    font-weight: 700;
    color: #222;
    margin-top: 24px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary-color, #2274d2);
    font-size: 0.95rem;
}

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

.policy-modal-body li {
    margin-bottom: 4px;
}

.policy-modal-body .table {
    font-size: 0.83rem;
}

.policy-updated-modal {
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 16px;
}

#privacyModal .modal-header,
#termsModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #384c7a 100%);
    color: #fff;
}

#privacyModal .modal-header .btn-close,
#termsModal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* ===== 주문조회 모달 타임라인 스타일 ===== */
.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    padding-bottom: 15px;
    padding-left: 20px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-badge {
    position: absolute;
    left: -14px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #6c757d;
}

.timeline-badge.bg-warning {
    background: #ffc107 !important;
}

.timeline-badge.bg-info {
    background: #0dcaf0 !important;
}

.timeline-badge.bg-primary {
    background: #0d6efd !important;
}

.timeline-badge.bg-purple {
    background: #304d92 !important;
}

.timeline-badge.bg-success {
    background: #198754 !important;
}

.timeline-badge.bg-danger {
    background: #dc3545 !important;
}

.timeline-content {
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
}

/* bg-purple 클래스 (Bootstrap에 없음) */
.bg-purple {
    background-color: #304d92 !important;
    color: #fff !important;
}

/* 주문조회 모달: 부트스트랩 기본 파랑 대신 사이트 핑크 톤에 맞춘다 (흰 헤더 + 핑크 강조) */
#orderLookupModal .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
}
#orderLookupModal .modal-header {
    background: #fff;
    border-bottom: 1px solid var(--d-line);
    padding: 16px 20px;
}
#orderLookupModal .modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-color);
}
#orderLookupModal .modal-title i { color: var(--primary-color); margin-right: 4px; }
#orderLookupModal .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(34, 116, 210, 0.15);
}
#orderLookupModal .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
}
#orderLookupModal .btn-primary:hover,
#orderLookupModal .btn-primary:focus {
    background: #206cc2;
    border-color: #206cc2;
}
#orderLookupModal .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
#orderLookupModal .btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
#orderLookupModal .text-primary { color: var(--primary-color) !important; }
#orderLookupModal .alert-info {
    background: var(--d-soft);
    border-color: var(--d-line);
    color: #4e5562;
}
#orderLookupModal .badge.bg-primary { background-color: var(--primary-color) !important; }
#orderLookupModal .timeline-badge.bg-primary { background-color: var(--primary-color) !important; }

/* 주문조회 모달 카드 스타일 */
#orderLookupModal .card {
    border: 1px solid #e9ecef;
}

#orderLookupModal .list-group-item {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

#orderLookupModal .list-group-item:hover {
    border-left-color: var(--lguplus-color);
    background-color: #f6fafe;
}

/* 모달 z-index - 헤더(1100)보다 높게 설정 */
.modal {
    z-index: 1200 !important;
}

.modal-backdrop {
    z-index: 1150 !important;
}

/* 알뜰폰 세부 선택 스타일 */
.mvno-sub-selector {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    border: 1px solid #e9ecef;
}

.mvno-sub-title {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 12px;
    font-weight: 500;
}

.mvno-sub-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mvno-sub-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.mvno-sub-option:hover {
    border-color: #adb5bd;
}

.mvno-sub-option.active {
    border-color: var(--lguplus-color);
    background: #f6fafe;
}

.mvno-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
}

.mvno-badge.skt {
    background: #ea002c;
}

.mvno-badge.kt {
    background: #000;
}

.mvno-badge.lgu {
    background: var(--lguplus-color);
}

/* 본인인증 섹션 스타일 */
.auth-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.auth-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-section-title i {
    color: var(--lguplus-color);
}

.auth-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.auth-input-group .form-control {
    flex: 1;
}

.auth-input-group .btn {
    white-space: nowrap;
    min-width: 100px;
}

.auth-timer {
    font-size: 0.85rem;
    color: #dc3545;
    margin-top: 4px;
    display: none;
}

.auth-timer.show {
    display: block;
}

.auth-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.auth-status.pending {
    background: #fff3cd;
    color: #856404;
}

.auth-status.success {
    background: #d4edda;
    color: #155724;
}

.auth-status.error {
    background: #f8d7da;
    color: #721c24;
}

.auth-status i {
    font-size: 1.1rem;
}

.auth-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #d4edda;
    color: #155724;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-verified-badge i {
    font-size: 1rem;
}

/* ===== 페이백 스타일 ===== */

/* index.php 폰 카드 페이백 배지 */
.payback-badge {
    margin-top: 6px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #3f8ae0, #206cc2);
    color: #fff;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.payback-badge i {
    font-size: 0.85rem;
}

@media (max-width: 767px) {
    .payback-badge {
        font-size: 0.65rem;
        padding: 3px 6px;
        gap: 3px;
    }
    .payback-badge i {
        font-size: 0.7rem;
    }
}

/* ===== detail.php 브레드크럼 ===== */
.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.dbc-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #666;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.dbc-item:hover {
    color: var(--lguplus-color);
    background: rgba(34, 116, 210, 0.08);
}

.dbc-item i {
    font-size: 0.8rem;
}

.dbc-sep {
    font-size: 0.6rem;
    color: #bbb;
}

.dbc-current {
    color: var(--dark-color);
    font-weight: 600;
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    cursor: default;
}

.dbc-current:hover {
    color: var(--dark-color);
    background: white;
}

/* detail.php 페이백 혜택 섹션 */
/* 본문 안내 박스 공통. 섹션마다 초록·파랑으로 달랐던 것을 한 톤으로 맞춘다. */
.info-note {
    padding: 10px 14px;
    background: var(--d-soft);
    border: 1px solid var(--d-line);
    border-radius: 8px;
    font-size: 0.8rem;
}

.info-note-lead {
    font-weight: 600;
    color: #212529;
}

.info-note-sub {
    margin-top: 2px;
    font-size: 0.75rem;
    color: var(--d-muted);
}

.info-note-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.72rem;
    color: var(--lguplus-color);
    text-decoration: none;
}

.info-note-link:hover {
    color: #19569c;
    text-decoration: underline;
}

/* 안내 모달 헤더. 모달마다 파랑·빨강·초록으로 갈렸던 것을 브랜드색 한 벌로 통일한다. */
.modal-header-brand {
    background: linear-gradient(135deg, #3f8ae0, #206cc2);
    color: #fff;
    border-radius: 0.5rem 0.5rem 0 0;
}

.payback-benefit-section {
    margin-top: 16px;
    border: 1px solid var(--d-accent-line);
    border-radius: var(--d-radius);
    overflow: hidden;
}

.payback-benefit-header {
    background: var(--d-accent-soft);
    color: #19569c;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.payback-benefit-body {
    padding: 12px 16px;
    background: #fff;
}

.payback-benefit-body .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.payback-benefit-body .detail-label {
    font-size: 0.9rem;
    color: #555;
}

.payback-value {
    font-size: 1rem;
    font-weight: 700;
    color: #206cc2;
}

/* ===== 휴대폰 섹션 스타일 (index.php) ===== */
.phone-section {
    margin-bottom: 40px;
}

.phone-section:first-child {
    margin-top: 10px;
}

.phone-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.phone-section-title {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 800;
    color: #212529;
    margin: 0;
}

.phone-section-title i {
    margin-right: 6px;
}

.recommended-section .phone-section-title i {
    color: #ffc107;
}

.all-phones-section .phone-section-title i {
    color: var(--lguplus-color);
}

.group-section .phone-section-title i {
    color: #304d92;
}

.phone-section-count {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

/* 페이지네이션 */
.phone-pagination {
    margin-top: 30px;
    margin-bottom: 10px;
}

.phone-pagination .pagination {
    gap: 4px;
}

.phone-pagination .page-link {
    border-radius: 8px;
    padding: 8px 14px;
    color: #333;
    border: 1px solid #dee2e6;
    font-weight: 500;
    transition: all 0.2s;
}

.phone-pagination .page-item.active .page-link {
    background: var(--lguplus-color);
    border-color: var(--lguplus-color);
    color: #fff;
}

.phone-pagination .page-link:hover {
    background: #f8f9fa;
    border-color: var(--lguplus-color);
    color: var(--lguplus-color);
}

.phone-pagination .page-item.active .page-link:hover {
    background: var(--lguplus-color);
    color: #fff;
}

@media (max-width: 767px) {
    .phone-section-header {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    .phone-section {
        margin-bottom: 24px;
    }
    .phone-section-title {
        font-size: 1rem;
    }
    .phone-pagination .page-link {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

/* === 인터넷+TV 동시가입 섹션 === */
.internet-bundle-section .detail-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.internet-bundle-table {
    font-size: 0.9rem;
}
.internet-bundle-table th {
    font-size: 0.8rem;
    white-space: nowrap;
    vertical-align: middle;
}
.internet-bundle-table td {
    vertical-align: middle;
}
.internet-bundle-table .badge-sm {
    font-size: 0.7rem;
    padding: 2px 6px;
}
.internet-select-btn {
    white-space: nowrap;
    font-size: 0.85rem;
}
#selectedInternetPlan {
    border-radius: 10px;
}
@media (max-width: 768px) {
    .internet-bundle-table {
        font-size: 0.78rem;
    }
    .internet-bundle-table th,
    .internet-bundle-table td {
        padding: 6px 4px;
    }
    .internet-select-btn {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

/* ===== 3컬럼 레이아웃 (detail.php) ===== */

/* 견적 카드 sticky 래퍼 */
.estimate-sticky-wrap {
    position: sticky;
    top: 85px;
    z-index: 10;
}

/* 보험·번들까지 붙으면 카드가 화면보다 길어질 수 있다.
   카드 안에 스크롤을 넣으면 요금표 옆에 스크롤바가 생겨 지저분하므로,
   대신 detail.php 의 syncEstimateStickyTop() 이 top 을 음수로 내려
   카드 아래쪽(합계·주문 버튼)이 화면에 걸리도록 붙여준다. */

/* 부트스트랩 열은 기본이 stretch 라 sticky 가 움직일 세로 여백이 생긴다.
   왼쪽 칸이 길어져도 견적 카드는 위쪽에 붙어 있어야 한다. */
.detail-layout-row .detail-estimate-col {
    align-self: stretch;
}

/* === PC 2단 레이아웃 (≥992px) ===
   이미지·선택폼·견적을 3단으로 나누면 칸마다 폭이 좁아 버튼이 계속 줄바꿈된다.
   왼쪽 한 칸에 이미지+선택폼을 쌓고 오른쪽은 견적 카드만 둔다. */
@media (min-width: 992px) {
    /* flex 로는 안내 탭이 2행으로 밀릴 때 견적 칸이 1행 높이에 갇혀 sticky 가 일찍 끝난다.
       grid 로 견적 칸만 두 행에 걸치게 해 탭을 넘겨보는 동안에도 계속 붙어 있게 한다. */
    .detail-layout-row {
        display: grid;
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        align-items: start;
    }

    .detail-layout-row>* {
        width: auto;
        max-width: none;
    }

    .detail-main-col {
        grid-column: 1;
        grid-row: 1;
    }

    .detail-tabs-col {
        grid-column: 1;
        grid-row: 2;
    }

    .detail-layout-row .detail-estimate-col {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: stretch;
    }

    /* 이미지 섹션은 좌우로 나눠 세로 길이를 줄인다 */
    .detail-image-col .detail-section {
        display: grid;
        grid-template-columns: 230px minmax(0, 1fr);
        column-gap: 24px;
        align-items: center;
    }

    .detail-image-box {
        margin-bottom: 0;
    }

    .detail-image-side .detail-basic-info {
        margin-top: 16px !important;
        padding-top: 16px !important;
    }
}

/* 모바일·태블릿에서는 한 줄로 쌓이는데, 요금 합계를 안내 탭보다 먼저 봐야 하므로
   DOM 순서(탭 → 견적)를 flex order 로 뒤집는다. */
@media (max-width: 991.98px) {
    .detail-layout-row .detail-estimate-col {
        order: 1;
    }

    .detail-layout-row .detail-tabs-col {
        order: 2;
    }
}

/* 선택 폼 컬럼 컴팩트화 */
.detail-form-col .detail-section {
    padding: 16px;
    margin-bottom: 10px;
    border-radius: var(--d-radius);
}

.detail-form-col .detail-section h5 {
    font-size: 0.92rem;
    margin-bottom: 10px;
    padding-bottom: 6px;
}

/* 가입유형 카드 컴팩트 */
.detail-form-col .join-type-selector {
    gap: 8px;
    margin-bottom: 12px;
}

/* 통신사 선택 컴팩트 */
.detail-form-col .carrier-section {
    padding: 15px;
    margin-top: 10px;
}

.detail-form-col .storage-price {
    font-size: 0.78rem;
}

/* 약정 카드 컴팩트 */
.detail-form-col .contract-card {
    padding: 12px 15px;
    gap: 10px;
}

.detail-form-col .contract-card-check {
    width: 24px;
    height: 24px;
    min-width: 24px;
}

.detail-form-col .contract-card-title {
    font-size: 0.9rem;
}

.detail-form-col .contract-card-desc {
    font-size: 0.75rem;
}

.detail-form-col .contract-card-amount {
    font-size: 1rem;
    margin-top: 4px;
}

/* 요금제 드롭다운 & 할부 컴팩트 */
.detail-form-col .plan-detail-box {
    padding: 15px;
}

/* ===== 커스텀 요금제 리스트 (lgtshop 스타일) ===== */
.plan-selected-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--lguplus-color);
    border-radius: 10px;
    cursor: pointer;
    background: #f6fafe;
    transition: all 0.2s ease;
}

.plan-selected-header:hover {
    background: #e5effb;
}

.plan-selected-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.plan-selected-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.plan-selected-price {
    font-size: 0.85rem;
    color: var(--lguplus-color);
    font-weight: 600;
}

.plan-selected-price strong {
    font-size: 1rem;
    font-weight: 800;
}

.plan-selected-arrow {
    font-size: 0.9rem;
    color: #999;
    transition: transform 0.3s ease;
}

.plan-selected-arrow.open {
    transform: rotate(180deg);
}

/* 선택된 요금제 스펙 (데이터/통화/문자) */
.plan-selected-specs {
    display: flex;
    gap: 12px;
    padding: 6px 8px;
    margin-top: 6px;
}

.plan-spec {
    font-size: 0.72rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 3px;
}

.plan-spec i {
    font-size: 0.7rem;
    color: #aaa;
}

/* 요금제 드롭다운 앵커 */
.plan-dropdown-anchor {
    position: relative;
}

/* 요금제 리스트 (드롭다운 오버레이) */
.plan-list-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.plan-list-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s ease;
}

.plan-list-item:last-child {
    border-bottom: none;
}

.plan-list-item:hover {
    background: #f8f9fa;
}

.plan-list-item.active {
    background: #f6fafe;
    border-left: 3px solid var(--lguplus-color);
}

.plan-list-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.plan-list-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark-color);
}

.plan-list-item.active .plan-list-name::before {
    content: '\2713 ';
    color: var(--lguplus-color);
    font-weight: 700;
}

.plan-list-price {
    font-size: 0.82rem;
    color: var(--lguplus-color);
    font-weight: 600;
}

.plan-list-price strong {
    font-weight: 800;
}

.plan-list-specs {
    display: flex;
    gap: 10px;
    font-size: 0.68rem;
    color: #999;
}

.plan-list-specs i {
    font-size: 0.62rem;
    margin-right: 2px;
}

/* 드롭다운: OTT팩 요금제 강조 */
.plan-list-ott-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
    padding: 1px 7px;
    font-size: 0.66rem;
    font-weight: 700;
    color: #fff;
    background: var(--lguplus-color);
    border-radius: 999px;
    vertical-align: 1px;
}

.plan-list-ott {
    margin-top: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--lguplus-color);
}

/* ===== 가족결합 탭 ===== */
.family-bundle-tabs {
    display: flex;
    gap: 0;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.family-tab {
    flex: 1;
    text-align: center;
    padding: 9px 6px;
    cursor: pointer;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #777;
    transition: all 0.2s ease;
    user-select: none;
}

.family-tab:last-child {
    border-right: none;
}

.family-tab:hover {
    background: #f0f0f0;
}

.family-tab.active {
    background: #fff;
    color: var(--dark-color);
    border-bottom: 2.5px solid var(--lguplus-color);
}

/* ===== 복지할인 커스텀 드롭다운 ===== */
.welfare-dropdown-anchor {
    position: relative;
}

.welfare-selected-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1.5px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
}

.welfare-selected-header:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
}

.welfare-selected-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.welfare-selected-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark-color);
}

.welfare-selected-desc {
    font-size: 0.75rem;
    color: #999;
}

.welfare-selected-arrow {
    font-size: 0.85rem;
    color: #999;
    transition: transform 0.3s ease;
}

.welfare-selected-arrow.open {
    transform: rotate(180deg);
}

.welfare-list-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-top: 4px;
    max-height: 280px;
    overflow-y: auto;
    background: white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.welfare-list-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s ease;
}

.welfare-list-item:last-child {
    border-bottom: none;
}

.welfare-list-item:hover {
    background: #f8f9fa;
}

.welfare-list-item.active {
    background: var(--d-accent-soft);
    border-left: 3px solid var(--lguplus-color);
}

.welfare-list-item.active .welfare-list-name::before {
    content: '\2713 ';
    color: var(--lguplus-color);
    font-weight: 700;
}

.welfare-list-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.welfare-list-name {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--dark-color);
}

/* 할인율 배지는 강조색, 금액 배지는 무채색으로 두 종류만 쓴다 */
.welfare-list-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--lguplus-color);
    background: var(--d-accent-soft);
    padding: 2px 8px;
    border-radius: 20px;
}

.welfare-list-badge.welfare-badge-amount {
    color: #4b5563;
    background: var(--d-soft);
}

.welfare-list-desc {
    font-size: 0.72rem;
    color: var(--d-muted);
}

.welfare-discount-result {
    background: var(--d-soft);
    border: 1px solid var(--d-line);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.8rem;
    color: #495057;
}

.welfare-discount-result i {
    color: var(--lguplus-color);
    margin-right: 4px;
}

.welfare-discount-amount {
    margin-top: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--lguplus-color);
}

/* ===== 약정 방식 탭 스타일 ===== */
/* 선택 카드류와 같은 규칙(흰 바탕 → 강조 테두리)으로 맞춘다 */
.contract-tabs {
    display: flex;
    gap: 8px;
}

.contract-tab {
    flex: 1;
    text-align: center;
    padding: 9px 6px;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--d-line);
    border-radius: var(--d-radius);
    transition: border-color 0.18s ease, background-color 0.18s ease;
    position: relative;
}

.contract-tab:hover {
    border-color: #d7dbe2;
}

.contract-tab.active {
    border-color: var(--lguplus-color);
    background: var(--d-accent-soft);
}

.contract-tab.active .contract-tab-title {
    color: var(--lguplus-color);
}

.contract-tab-title {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark-color);
}

.contract-tab-sub {
    display: block;
    font-size: 0.65rem;
    color: #999;
}

.contract-tab-amount {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--lguplus-color);
    margin-top: 2px;
}

.contract-tab.better .contract-tab-amount {
    color: var(--lguplus-color);
}

.contract-tab .contract-card-badge {
    display: none;
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.55rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #8bc34a, #689f38);
    padding: 1px 6px;
    border-radius: 8px;
}

.contract-tab.better .contract-card-badge {
    display: inline-block;
}

.contract-result-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 10px;
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lguplus-color);
    background: #f6fafe;
    border-radius: 8px;
}

.contract-result-compact.equal {
    color: #4b5563;
    background: var(--d-soft);
}

/* ===== 전체 섹션 더 컴팩트 ===== */
/* PC에서 주문 버튼 (견적 카드 내) */
/* 페이지의 유일한 주 CTA. 나머지 버튼은 무채색으로 두어 여기로 시선이 모이게 한다. */
.btn-order-lg {
    background: linear-gradient(135deg, #3f8ae0, #206cc2);
    color: white;
    border: none;
    padding: 13px 18px;
    border-radius: var(--d-radius);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(32, 108, 194, 0.22);
}

.btn-order-lg:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(32, 108, 194, 0.3);
    color: white;
}

.estimate-buttons {
    margin-top: 15px;
}

/* 전화/카톡 버튼 (견적카드 내) */
.btn-estimate-phone {
    background: #4a5568;
    color: white;
    border: none;
    padding: 9px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-estimate-phone:hover {
    background: #2d3748;
    color: white;
    transform: translateY(-1px);
}

.btn-estimate-kakao {
    background: #fee500;
    color: #3c1e1e;
    border: none;
    padding: 9px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-estimate-kakao:hover {
    background: #fdd835;
    color: #3c1e1e;
    transform: translateY(-1px);
}

/* ===== 인터넷+TV 트리거 버튼 ===== */
/* 보조 CTA는 주 CTA와 색으로 경쟁하지 않도록 무채색 아웃라인으로 둔다 */
.btn-internet-bundle {
    background: #fff;
    color: #384250;
    border: 1px solid var(--d-line);
    padding: 11px 14px;
    border-radius: var(--d-radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-internet-bundle:hover {
    background: var(--d-soft);
    border-color: #d7dbe2;
    color: #384250;
}

.btn-internet-bundle i.bi-router-fill {
    font-size: 1.1rem;
}

.btn-internet-bundle i.bi-chevron-right {
    font-size: 0.8rem;
    color: var(--d-muted);
}

.internet-bundle-sub {
    display: block;
    font-size: 0.75rem;
    color: var(--d-muted);
    margin-top: 2px;
    font-weight: 400;
}

/* 인터넷 선택 요약 (견적카드 아래) */
.selected-internet-summary {
    background: var(--d-soft);
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid var(--d-line);
}

.selected-internet-summary strong {
    font-size: 0.88rem;
    color: #212529;
}

.selected-internet-summary small {
    font-size: 0.8rem;
    color: var(--d-muted);
}

/* ===== 인터넷+TV 동시가입 모달 (detail.php #internetBundleModal) =====
   혜택 요약 헤더 → 속도 탭 → 상품표(모바일은 카드) → 선택 표시.
   JS(selectInternetPlan · updateTogetherAvailability)가 쓰는 클래스와 btn-primary/btn-outline-* 전환은 그대로 두고 모양만 입힌다. */
#internetBundleModal {
    --ib-brand: #2274d2;
    --ib-brand-2: #243f7d;
    --ib-ink: #17171c;
    --ib-sub: #5b6270;
    --ib-muted: #8b95a1;
    --ib-line: #eceef2;
    --ib-soft: #f7f8fa;
    --ib-accent-soft: #f0f6fc;
}

#internetBundleModal .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(23, 23, 28, 0.25);
}

/* 헤더: 혜택 요약 */
#internetBundleModal .ib-hero {
    position: relative;
    align-items: flex-start;
    padding: 24px 28px 22px;
    border: 0;
    color: #fff;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(135deg, var(--ib-brand) 0%, #206cc2 45%, var(--ib-brand-2) 100%);
    overflow: hidden;
}

#internetBundleModal .ib-hero-text {
    position: relative;
    z-index: 1;
    min-width: 0;
}

#internetBundleModal .ib-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.92;
    letter-spacing: 0.01em;
}

#internetBundleModal .ib-hero .modal-title {
    margin: 4px 0 12px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

#internetBundleModal .ib-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#internetBundleModal .ib-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

#internetBundleModal .ib-chip strong {
    font-weight: 800;
}

#internetBundleModal .ib-hero-icon {
    position: absolute;
    right: 56px;
    bottom: -18px;
    font-size: 7.5rem;
    line-height: 1;
    opacity: 0.14;
    transform: rotate(-8deg);
    pointer-events: none;
}

#internetBundleModal .ib-hero .btn-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    margin: 0;
    opacity: 0.9;
}

/* 본문 */
#internetBundleModal .modal-body {
    padding: 20px 24px 22px;
    background: var(--ib-soft);
}

#internetBundleModal .ib-intro {
    margin: 0 0 14px;
    font-size: 0.86rem;
    color: var(--ib-sub);
}

/* 속도 탭: 세그먼트 */
#internetBundleModal .nav-pills {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 14px !important;
    background: #fff;
    border: 1px solid var(--ib-line);
    border-radius: 999px;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

#internetBundleModal .nav-pills::-webkit-scrollbar {
    display: none;
}

#internetBundleModal .nav-pills .nav-link {
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ib-sub);
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

#internetBundleModal .nav-pills .nav-link:hover {
    color: var(--ib-ink);
}

#internetBundleModal .nav-pills .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--ib-brand), var(--ib-brand-2));
    box-shadow: 0 4px 12px rgba(34, 116, 210, 0.28);
}

/* 상품표 */
#internetBundleModal .ib-table-wrap {
    background: #fff;
    border: 1px solid var(--ib-line);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(23, 23, 28, 0.04);
}

#internetBundleModal .internet-bundle-table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

#internetBundleModal .internet-bundle-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 12px 14px;
    background: #fafbfc;
    border-bottom: 1px solid var(--ib-line);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ib-muted);
    white-space: nowrap;
}

#internetBundleModal .internet-bundle-table th small {
    font-size: 0.7rem;
}

#internetBundleModal .internet-bundle-table td {
    padding: 16px 14px;
    border-bottom: 1px solid #f2f3f6;
    font-size: 0.9rem;
    color: var(--ib-ink);
    transition: background 0.15s;
}

#internetBundleModal .internet-bundle-table tbody tr:last-child td {
    border-bottom: 0;
}

#internetBundleModal .internet-bundle-table tbody tr:hover td {
    background: #fffafc;
}

#internetBundleModal .internet-bundle-table td:first-child strong {
    font-size: 0.95rem;
    font-weight: 700;
}

/* 상품 종류 배지: 진한 bootstrap 색 대신 옅은 바탕 */
#internetBundleModal .internet-bundle-table .badge-sm {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
}

#internetBundleModal .internet-bundle-table .badge.bg-info {
    background: #e0f2fe !important;
    color: #0369a1;
}

#internetBundleModal .internet-bundle-table .badge.bg-primary {
    background: var(--ib-accent-soft) !important;
    color: #1c5fab;
}

#internetBundleModal .internet-bundle-table .badge.bg-success {
    background: #dcfce7 !important;
    color: #15803d;
}

/* 결합 가격 · 할인액 */
#internetBundleModal .internet-bundle-table .text-primary {
    color: var(--ib-brand) !important;
    font-size: 1rem;
    font-weight: 800;
}

#internetBundleModal .internet-bundle-table small.text-danger {
    display: inline-block !important;
    margin-top: 4px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #fff1f2;
    color: #e11d48 !important;
    font-size: 0.72rem;
    font-weight: 700;
}

/* 사은품 */
#internetBundleModal .ib-gift {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    background: #ecfdf5;
    color: #047857;
    font-weight: 800;
    font-size: 0.92rem;
}

/* 선택 버튼 */
#internetBundleModal .internet-select-btn {
    min-width: 76px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.15s;
}

#internetBundleModal .internet-select-btn.btn-outline-primary {
    color: var(--ib-brand);
    border-color: #b2d0f2;
    background: #fff;
}

#internetBundleModal .internet-select-btn.btn-outline-primary:hover {
    color: #fff;
    border-color: var(--ib-brand);
    background: var(--ib-brand);
}

#internetBundleModal .internet-select-btn.btn-outline-secondary {
    color: var(--ib-sub);
    border-color: #d9dde3;
    background: #fff;
}

#internetBundleModal .internet-select-btn.btn-outline-secondary:hover {
    color: var(--ib-ink);
    background: var(--ib-soft);
}

#internetBundleModal .internet-select-btn.btn-primary {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--ib-brand), var(--ib-brand-2));
    box-shadow: 0 4px 12px rgba(34, 116, 210, 0.3);
}

#internetBundleModal .internet-select-btn:disabled {
    opacity: 0.45;
}

#internetBundleModal .together-disabled-content .small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--ib-soft);
    color: var(--ib-muted) !important;
}

/* 선택한 상품 */
#internetBundleModal #selectedInternetPlan {
    margin-top: 14px !important;
    padding: 14px 16px;
    border: 1px solid var(--ib-accent-soft);
    border-left: 4px solid var(--ib-brand);
    border-radius: 12px;
    background: #fff;
    color: var(--ib-ink);
    box-shadow: 0 4px 14px rgba(34, 116, 210, 0.08);
}

#internetBundleModal #selectedInternetPlan .bi-check-circle-fill {
    color: var(--ib-brand) !important;
}

#internetBundleModal #selectedBundleType {
    background: var(--ib-accent-soft) !important;
    color: #1c5fab;
}

#internetBundleModal #selectedInternetPlan .btn-outline-danger {
    border-radius: 999px;
}

#internetBundleModal #togetherNotice {
    border: 0;
    border-radius: 10px;
    background: #fffbeb;
    color: #92400e;
}

/* 하단 */
#internetBundleModal .ib-footer {
    justify-content: space-between;
    gap: 10px;
    padding: 12px 24px;
    border-top: 1px solid var(--ib-line);
    background: #fff;
}

#internetBundleModal .ib-footer-note {
    font-size: 0.8rem;
    color: var(--ib-muted);
}

#internetBundleModal .ib-done-btn {
    min-width: 110px;
    padding: 9px 22px;
    border-radius: 999px;
    background: var(--ib-ink);
    color: #fff;
    font-weight: 700;
}

#internetBundleModal .ib-done-btn:hover {
    background: #000;
    color: #fff;
}

/* 모바일: 표 → 촘촘한 카드
   상품 하나 = 이름 줄 / [결합 없음 | 가족결합 | 투게더] 3칸 / 사은품 한 줄. 헤더 · 안내문 · 하단 문구도 줄인다. */
@media (max-width: 768px) {
    #internetBundleModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    /* 헤더: 한 줄 제목 + 가로로 넘기는 칩 */
    #internetBundleModal .ib-hero {
        padding: 14px 16px 12px;
    }

    #internetBundleModal .ib-hero-eyebrow {
        display: none;
    }

    #internetBundleModal .ib-hero .modal-title {
        margin: 0 0 8px;
        padding-right: 28px;
        font-size: 1.05rem;
    }

    #internetBundleModal .ib-hero-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    #internetBundleModal .ib-hero-chips::-webkit-scrollbar {
        display: none;
    }

    #internetBundleModal .ib-chip {
        flex-shrink: 0;
        padding: 3px 8px;
        font-size: 0.72rem;
    }

    #internetBundleModal .ib-hero-icon {
        right: 8px;
        bottom: -12px;
        font-size: 4.2rem;
    }

    #internetBundleModal .ib-hero .btn-close {
        top: 12px;
        right: 12px;
    }

    #internetBundleModal .modal-body {
        padding: 10px 10px 12px;
    }

    #internetBundleModal .ib-intro {
        display: none;
    }

    /* 속도 탭 */
    #internetBundleModal .nav-pills {
        display: flex;
        margin-bottom: 10px !important;
        padding: 3px;
    }

    #internetBundleModal .nav-pills .nav-link {
        flex: 1 0 auto;
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    /* 카드 목록 */
    #internetBundleModal .ib-table-wrap {
        background: transparent;
        border: 0;
        box-shadow: none;
        overflow-x: visible;
    }

    #internetBundleModal .internet-bundle-table thead {
        display: none;
    }

    #internetBundleModal .internet-bundle-table tbody {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    #internetBundleModal .internet-bundle-table tbody tr {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        background: #fff;
        border: 1px solid var(--ib-line);
        border-radius: 12px;
        overflow: hidden;
    }

    #internetBundleModal .internet-bundle-table tbody tr:hover td {
        background: transparent;
    }

    #internetBundleModal .internet-bundle-table tbody td {
        display: block;
        min-width: 0;
        padding: 0;
        border: 0;
        font-size: 0.8rem;
    }

    /* 이름 줄: 이름 · 종류 · 채널을 한 줄에 */
    #internetBundleModal .internet-bundle-table tbody td:first-child {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 2px 6px;
        padding: 9px 12px 7px;
        border-bottom: 1px solid #f2f3f6;
        text-align: left;
    }

    #internetBundleModal .internet-bundle-table tbody td:first-child br {
        display: none;
    }

    #internetBundleModal .internet-bundle-table tbody td:first-child strong {
        font-size: 0.88rem;
    }

    #internetBundleModal .internet-bundle-table tbody td:first-child .badge-sm {
        margin: 0;
    }

    #internetBundleModal .internet-bundle-table tbody td:first-child small.d-block {
        display: inline !important;
        font-size: 0.72rem;
    }

    /* 결합 3칸: 이름 / 요금 / 할인 / 버튼 세로로 */
    #internetBundleModal .internet-bundle-table tbody td[data-label="월 요금"],
    #internetBundleModal .internet-bundle-table tbody td[data-label="참쉬운가족결합"],
    #internetBundleModal .internet-bundle-table tbody td[data-label="투게더결합"] {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 2px;
        padding: 8px 4px 9px;
        text-align: center;
    }

    #internetBundleModal .internet-bundle-table tbody td[data-label="참쉬운가족결합"],
    #internetBundleModal .internet-bundle-table tbody td[data-label="투게더결합"] {
        border-left: 1px solid #f2f3f6;
    }

    #internetBundleModal .internet-bundle-table tbody td[data-label="월 요금"]::before,
    #internetBundleModal .internet-bundle-table tbody td[data-label="참쉬운가족결합"]::before,
    #internetBundleModal .internet-bundle-table tbody td[data-label="투게더결합"]::before {
        display: block;
        margin-bottom: 1px;
        font-size: 0.66rem;
        font-weight: 700;
        color: var(--ib-muted);
        white-space: nowrap;
    }

    #internetBundleModal .internet-bundle-table tbody td[data-label="월 요금"]::before {
        content: "결합 없음";
    }

    #internetBundleModal .internet-bundle-table tbody td[data-label="참쉬운가족결합"]::before {
        content: "가족결합";
    }

    #internetBundleModal .internet-bundle-table tbody td[data-label="투게더결합"]::before {
        content: "투게더결합";
    }

    #internetBundleModal .together-available-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        width: 100%;
    }

    #internetBundleModal .internet-bundle-table tbody td strong {
        font-size: 0.88rem;
    }

    #internetBundleModal .internet-bundle-table .text-primary {
        font-size: 0.9rem;
    }

    #internetBundleModal .internet-bundle-table small.text-danger {
        margin-top: 0;
        padding: 0 5px;
        font-size: 0.64rem;
    }

    #internetBundleModal .internet-bundle-table tbody td .mt-1 {
        margin-top: 2px !important;
        width: 100%;
    }

    #internetBundleModal .internet-bundle-table .internet-select-btn {
        width: 100%;
        min-width: 0;
        margin-top: 3px !important;
        padding: 4px 2px;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    #internetBundleModal .together-disabled-content .small {
        padding: 2px 4px;
        font-size: 0.64rem !important;
        line-height: 1.3;
    }

    #internetBundleModal .together-disabled-content br {
        display: none;
    }

    /* 사은품 한 줄 */
    #internetBundleModal .internet-bundle-table tbody td[data-label="사은품"] {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 2px 8px;
        padding: 6px 12px;
        border-top: 1px solid #f2f3f6;
        background: #f6fdf9;
        text-align: left;
    }

    #internetBundleModal .internet-bundle-table tbody td[data-label="사은품"]::before {
        content: "사은품";
        font-size: 0.68rem;
        font-weight: 700;
        color: #047857;
    }

    #internetBundleModal .ib-gift {
        padding: 2px 7px;
        font-size: 0.8rem;
    }

    #internetBundleModal .internet-bundle-table tbody td[data-label="사은품"] small.d-block {
        display: inline !important;
        font-size: 0.68rem;
    }

    #internetBundleModal .internet-bundle-table tbody td[data-label="사은품"] small br {
        display: none;
    }

    /* 선택한 상품 · 안내 · 하단 */
    #internetBundleModal #selectedInternetPlan {
        margin-top: 10px !important;
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    #internetBundleModal #togetherNotice {
        padding: 8px 10px;
        font-size: 0.74rem;
    }

    #internetBundleModal .ib-footer {
        padding: 8px 10px;
    }

    #internetBundleModal .ib-footer-note {
        display: none;
    }

    #internetBundleModal .ib-done-btn {
        width: 100%;
        padding: 9px;
    }
}

/* ===== 우측 하단 고정 사이드바 ===== */
.right-fixed-panel {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 1060;
    display: flex;
    align-items: stretch;
}

/* 토글 탭 (접힌 상태에서 보이는 탭) */
.rfp-toggle {
    width: 30px;
    background: var(--lguplus-color);
    color: white;
    border: none;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    padding: 12px 0;
}

.rfp-toggle:hover {
    background: #1c61ae;
    width: 34px;
}

/* 컨텐츠 영역 */
.rfp-content {
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
    width: 76px;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.3s ease, opacity 0.3s ease;
    border-left: 1px solid #e9ecef;
}

/* 접힌 상태 */
.right-fixed-panel.collapsed .rfp-content {
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    border: none;
}

/* 상담 버튼 */
.rfp-contact {
    display: flex;
    flex-direction: column;
}

.rfp-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.62rem;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}

.rfp-btn i {
    font-size: 1.2rem;
}

.rfp-phone {
    color: #4a5568;
    background: #f8f9fa;
}

.rfp-phone:hover {
    color: white;
    background: #4a5568;
}

.rfp-kakao {
    color: #3c1e1e;
    background: #fee500;
}

.rfp-kakao:hover {
    background: #fdd835;
    color: #3c1e1e;
}

/* 최근 본 모델 */
.rfp-recent {
    padding: 6px 4px;
    border-top: 2px solid #e9ecef;
}

.rfp-recent-title {
    font-size: 0.55rem;
    font-weight: 700;
    color: #999;
    text-align: center;
    padding: 3px 0 5px;
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.rfp-recent-title i {
    font-size: 0.6rem;
}

.rfp-recent-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rfp-recent-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 4px 2px;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-align: center;
}

.rfp-recent-item:hover {
    background: #f0f0f0;
}

.rfp-recent-item img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
    background: #fafafa;
    margin-bottom: 2px;
}

.rfp-recent-name {
    font-size: 0.55rem;
    font-weight: 500;
    color: #555;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
    max-width: 66px;
}

/* 최근 본 항목이 없으면 영역 자체를 비운다 */
.right-fixed-panel:not(.has-recent) .rfp-recent {
    display: none;
}

/* 데스크톱은 좁은 세로 패널이라 최근 2개까지만 노출한다 */
@media (min-width: 992px) {
    .rfp-recent-item:nth-child(n+3) {
        display: none;
    }
}

/* === 모바일: 우측 세로 패널 → 하단 가로 바 ===
   세로 패널이 카드 위에 겹쳐 상품을 가리므로, 화면을 가리지 않는
   하단 고정바로 바꾸고 본문에 그만큼 여백을 준다. */
@media (max-width: 991px) {
    /* detail 페이지는 자체 하단 고정바가 있어 중복을 피한다 */
    .has-bottom-bar .right-fixed-panel {
        display: none;
    }

    body:not(.has-bottom-bar) {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    }

    /* 최근 본 줄이 붙으면 하단 바가 그만큼 높아진다 */
    body.has-recent:not(.has-bottom-bar) {
        padding-bottom: calc(102px + env(safe-area-inset-bottom, 0px));
    }

    .right-fixed-panel {
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
    }

    .rfp-toggle {
        display: none;
    }

    .right-fixed-panel .rfp-content,
    .right-fixed-panel.collapsed .rfp-content {
        display: flex;
        /* DOM 순서는 상담 → 최근 본이지만 최근 본이 위로 오게 뒤집는다 */
        flex-direction: column-reverse;
        width: 100%;
        height: auto;
        max-height: none;
        opacity: 1;
        overflow: visible;
        border-left: 0;
        border-top: 1px solid #e9ecef;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .rfp-contact {
        flex-direction: row;
    }

    .rfp-btn {
        flex: 1;
        flex-direction: row;
        gap: 6px;
        padding: 15px 6px;
        font-size: 0.8rem;
        border-bottom: 0;
    }

    .rfp-btn i {
        font-size: 1rem;
    }

    /* 최근 본은 상담 버튼 바로 위에 한 줄로 항상 펼쳐 둔다 */
    .right-fixed-panel.has-recent .rfp-recent {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        border-top: 0;
        border-bottom: 1px solid #eef0f2;
    }

    .rfp-recent-title {
        flex-shrink: 0;
        padding: 0;
        font-size: 0.66rem;
    }

    .rfp-recent-title i {
        font-size: 0.7rem;
    }

    /* 최근 10개를 옆으로 밀어서 훑어볼 수 있게 한다 */
    .rfp-recent-list {
        flex-direction: row;
        gap: 6px;
        min-width: 0;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .rfp-recent-list::-webkit-scrollbar {
        display: none;
    }

    .rfp-recent-item {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
        scroll-snap-align: start;
        padding: 3px 8px 3px 3px;
        border: 1px solid #eef0f2;
        border-radius: 8px;
    }

    .rfp-recent-item img {
        width: 26px;
        height: 26px;
        margin-bottom: 0;
    }

    .rfp-recent-name {
        -webkit-line-clamp: 1;
        max-width: 76px;
        font-size: 0.66rem;
    }
}

/* PC에서 하단 고정바 숨김 (견적카드가 sticky이므로) */
@media (min-width: 992px) {
    .bottom-fixed-bar.d-lg-none {
        display: none !important;
    }

    .estimate-sticky-wrap .estimate-card-new {
        margin-top: 0;
    }

    .kakao-float {
        bottom: 30px;
    }
}

/* === 992-1199px: 3컬럼 컴팩트화 === */
@media (min-width: 992px) and (max-width: 1199px) {
    .estimate-section {
        padding: 14px 16px;
    }
    .section-title {
        font-size: 0.85rem;
    }
    .section-title small {
        font-size: 0.72rem;
    }
    .section-value {
        font-size: 1.1rem;
    }
    .total-amount {
        font-size: 1.3rem;
    }
    .total-title {
        font-size: 0.95rem;
    }
    .estimate-total-section {
        padding: 16px;
    }
    .detail-row {
        font-size: 0.78rem;
    }
    .detail-form-col .detail-section {
        padding: 12px;
    }
    .detail-form-col .detail-section h5 {
        font-size: 0.82rem;
    }
    .contract-tab-title {
        font-size: 0.8rem;
    }
    .contract-tab-amount {
        font-size: 0.85rem;
    }
    .plan-selected-header {
        padding: 10px 14px;
    }
    .plan-selected-name {
        font-size: 0.85rem;
    }
    .plan-selected-price strong {
        font-size: 1rem;
    }
    .plan-selected-specs .plan-spec {
        font-size: 0.75rem;
    }
    .welfare-selected-header {
        padding: 9px 12px;
    }
    .welfare-selected-name {
        font-size: 0.8rem;
    }
    .welfare-list-name {
        font-size: 0.78rem;
    }
}

/* === 1200-1399px: 소폭 축소 === */
@media (min-width: 1200px) and (max-width: 1399px) {
    .section-title {
        font-size: 0.92rem;
    }
    .section-value {
        font-size: 1.2rem;
    }
    .estimate-section {
        padding: 16px 20px;
    }
    .total-amount {
        font-size: 1.35rem;
    }
    .detail-row {
        font-size: 0.82rem;
    }
    .detail-form-col .detail-section {
        padding: 14px;
    }
    .contract-tab-title {
        font-size: 0.85rem;
    }
    .contract-tab-amount {
        font-size: 0.9rem;
    }
}

/* === 태블릿 (768-991px): 폭이 남으니 이미지 섹션만 좌우로 나눈다 === */
@media (min-width: 768px) and (max-width: 991px) {
    .detail-image-col .detail-section {
        display: grid;
        grid-template-columns: 210px minmax(0, 1fr);
        column-gap: 20px;
        align-items: center;
    }
    .detail-image-box {
        margin-bottom: 0;
    }
    .estimate-sticky-wrap {
        position: static;
    }
}

/* === 모바일 (≤767px): 상세 페이지 밀도 조정 ===
   3단이 1단으로 접히면서 이미지·색상·표가 원래 크기 그대로 세로로 쌓여
   첫 화면이 상품 사진만으로 채워지던 문제를 잡는다. */
@media (max-width: 767px) {
    .detail-main-image {
        max-height: 190px;
    }

    .color-dot-lg {
        width: 32px;
        height: 32px;
    }

    .detail-image-col .detail-section,
    .detail-estimate-col .detail-section {
        padding: 14px;
        margin-bottom: 10px;
    }

    .detail-form-col .detail-section {
        padding: 13px;
        margin-bottom: 8px;
    }

    .detail-image-col .detail-image-box {
        margin-bottom: 12px;
    }

    .detail-image-col .d-flex.gap-3 {
        gap: 10px !important;
    }

    .detail-image-col .color-option small {
        font-size: 0.68rem;
    }

    /* 기본 정보 표는 참고용이라 폭을 줄이고 글자도 낮춘다 */
    .detail-image-col .mt-4.pt-4 {
        margin-top: 14px !important;
        padding-top: 14px !important;
    }

    .detail-image-col .table {
        margin-bottom: 0;
        font-size: 0.8rem;
    }

    .detail-image-col .table th,
    .detail-image-col .table td {
        padding: 5px 6px;
    }

    .detail-image-col h6,
    .detail-form-col h6 {
        font-size: 0.85rem;
        margin-bottom: 10px !important;
    }

    .detail-section h5 {
        font-size: 0.92rem;
        margin-bottom: 12px;
    }

    /* 선택 카드류도 한 단계씩 낮춘다 */
    .join-type-card {
        padding: 12px 8px;
    }

    .join-type-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .join-type-label {
        font-size: 0.82rem;
    }

    .carrier-option {
        padding: 9px 10px;
        min-width: 70px;
    }

    .carrier-logo {
        width: 34px;
        height: 34px;
        font-size: 0.72rem;
        margin-bottom: 4px;
    }

    .carrier-name {
        font-size: 0.72rem;
    }

    .storage-option {
        padding: 10px 8px;
    }

    .storage-name {
        font-size: 0.92rem;
        margin-bottom: 2px;
    }

    .storage-price {
        font-size: 0.75rem;
    }

    .installment-select-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    /* 버튼류: 모바일에서 한 줄씩 차지하므로 높이를 낮춘다 */
    .btn-order-lg {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .btn-internet-bundle,
    .btn-bundle-device {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .btn-estimate-phone,
    .btn-estimate-kakao {
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    .contract-tab {
        padding: 8px 5px;
    }

    /* 견적 카드 */
    .estimate-section,
    .estimate-total-section {
        padding: 13px 14px;
    }

    .section-value {
        font-size: 1.05rem;
    }

    .total-amount {
        font-size: 1.25rem;
    }

    .self-discount-banner {
        padding: 10px 12px;
        gap: 8px;
    }

    .self-discount-icon {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 0.9rem;
    }

    .self-discount-amount {
        font-size: 1.1rem;
    }
}

/* 모바일 - 1컬럼 스택 */
@media (max-width: 767px) {
    .estimate-sticky-wrap {
        position: static;
    }

    .estimate-buttons {
        display: none !important;
    }

    .internet-bundle-trigger {
        margin-bottom: 15px;
    }
}

/* 가입유형 설명 텍스트 컴팩트 */
.detail-form-col .join-type-desc {
    font-size: 0.82rem;
    padding: 8px 12px;
    margin-top: 10px;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-form-col .join-type-desc i {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.detail-form-col .join-type-desc span {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 휴대폰 보험 ===== */
.insurance-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.insurance-row {
    display: flex;
    align-items: stretch;
    gap: 6px;
}

.insurance-row .insurance-option {
    flex: 1;
    min-width: 0;
}

.insurance-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--d-line);
    border-radius: var(--d-radius);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.insurance-option:hover {
    border-color: var(--d-accent-line);
}

.insurance-option.active {
    border-color: var(--lguplus-color);
    background: var(--d-accent-soft);
}

/* 선택 표시는 원형 체크로, 미선택 시 빈 원만 보인다 */
.insurance-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1px solid #d0d5dd;
    border-radius: 50%;
    color: transparent;
    font-size: 0.7rem;
}

.insurance-option.active .insurance-check {
    background: var(--lguplus-color);
    border-color: var(--lguplus-color);
    color: #fff;
}

.insurance-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.insurance-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1f2937;
}

.insurance-summary {
    font-size: 0.75rem;
    color: var(--d-muted);
    margin-top: 1px;
}

.insurance-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--lguplus-color);
    white-space: nowrap;
}

.insurance-option:not(.active) .insurance-price {
    color: #4b5563;
}

.insurance-detail-btn {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 10px;
    background: var(--d-soft);
    border: 1px solid var(--d-line);
    border-radius: var(--d-radius);
    font-size: 0.75rem;
    font-weight: 600;
    color: #4b5563;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.18s ease;
}

.insurance-detail-btn:hover {
    background: #fff;
    border-color: var(--d-accent-line);
    color: var(--lguplus-color);
}

/* 모바일에서는 이름·요약·금액·버튼이 한 줄에 몰려 요약이 서너 줄로 쪼개진다.
   요약만 아래 줄 전체를 쓰게 하고 보장내용은 카드 하단 바로 내린다. */
@media (max-width: 767px) {
    .insurance-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .insurance-option {
        display: grid;
        grid-template-columns: 20px minmax(0, 1fr) auto;
        grid-template-areas:
            "check name  price"
            ".     sum   sum";
        align-items: center;
        column-gap: 8px;
        row-gap: 3px;
        padding: 11px 12px;
    }

    .insurance-check {
        grid-area: check;
    }

    /* 이름과 요약을 각각 그리드 칸으로 올린다 */
    .insurance-info {
        display: contents;
    }

    .insurance-name {
        grid-area: name;
    }

    .insurance-summary {
        grid-area: sum;
        margin-top: 0;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .insurance-price {
        grid-area: price;
    }

    .insurance-row .insurance-option {
        border-radius: var(--d-radius) var(--d-radius) 0 0;
    }

    .insurance-row .insurance-detail-btn {
        justify-content: center;
        padding: 7px;
        border-top: 0;
        border-radius: 0 0 var(--d-radius) var(--d-radius);
    }
}

/* 보장 내용 모달 */
.insurance-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--d-line);
}

.insurance-detail-head strong {
    font-size: 1rem;
}

.insurance-detail-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--lguplus-color);
    white-space: nowrap;
}

.insurance-detail-summary {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: var(--d-muted);
}

.insurance-detail-summary:empty {
    display: none;
}

/* 관리자가 입력한 줄바꿈을 그대로 보여준다 */
.insurance-detail-body {
    margin-top: 12px;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #374151;
    white-space: pre-wrap;
}

/* 견적카드 D 섹션 배지 */
.section-badge-d {
    background: #0d9488 !important;
}

/* ===== 번들 단말기 스타일 ===== */

/* 견적카드 C 섹션 배지 */
.section-badge-c {
    background: #304d92 !important;
}

/* 번들 선택 트리거 버튼 */
.btn-bundle-device {
    background: #fff;
    color: #384250;
    border: 1px solid var(--d-line);
    border-radius: var(--d-radius);
    padding: 11px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-bundle-device:hover {
    background: var(--d-soft);
    border-color: #d7dbe2;
    color: #384250;
}
.bundle-trigger-sub {
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--d-muted);
    margin-top: 2px;
}

/* 번들 선택 요약 */
.selected-bundle-summary {
    background: var(--d-soft);
    border: 1px solid var(--d-line);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.88rem;
}

/* 번들 모달 카드 목록 */
.bundle-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bundle-card-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.bundle-card-item:hover {
    border-color: #304d92;
    background: #faf8ff;
}
.bundle-card-item.selected {
    border-color: #304d92;
    background: #f2f5fb;
    box-shadow: 0 0 0 1px #304d92;
}

.bci-left {
    flex-shrink: 0;
}
.bci-image {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
}
.bci-image-placeholder {
    width: 70px;
    height: 70px;
    background: #eceff5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #304d92;
}

.bci-right {
    flex: 1;
    min-width: 0;
}
.bci-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
    color: #333;
}
.bci-fee {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.bci-effective-fee {
    font-size: 1.1rem;
    font-weight: 700;
    color: #304d92;
}
.bci-discount {
    font-size: 0.78rem;
    color: #dc3545;
    font-weight: 600;
}
.bci-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.78rem;
    color: #888;
}
.bci-principal {
    font-size: 0.82rem;
    color: #555;
    margin-top: 3px;
}

.bci-select-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e9ecef;
    color: #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.bundle-card-item.selected .bci-select-badge {
    background: #304d92;
    color: #fff;
}

/* 번들 색상 dot */
.bci-colors {
    display: flex;
    gap: 5px;
    margin: 4px 0;
}
.bci-color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.2s;
}
.bci-color-dot:hover {
    transform: scale(1.15);
}
.bci-color-dot.active {
    border-color: #304d92;
    box-shadow: 0 0 0 2px #304d92;
}

/* 번들 다중 기기 C 섹션 서브아이템 */
.bundle-device-detail-item {
    padding-bottom: 2px;
}

/* 번들 할부개월 버튼 */
.bundle-inst-btn {
    padding: 8px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.bundle-inst-btn:hover {
    border-color: #304d92;
    color: #304d92;
}
.bundle-inst-btn.active {
    border-color: #304d92;
    background: #304d92;
    color: #fff;
}

/* 모바일 반응형 */
@media (max-width: 576px) {
    .bci-image, .bci-image-placeholder {
        width: 55px;
        height: 55px;
    }
    .bci-name {
        font-size: 0.9rem;
    }
    .bci-effective-fee {
        font-size: 1rem;
    }
    .bundle-card-item {
        padding: 10px;
        gap: 10px;
    }
}

/* ===== 고객센터 (Customer Center) ===== */

/* 고객센터 페이지 헤더 */
.support-page-header {
    text-align: center;
    padding: 30px 0 20px;
}
.support-page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.support-page-header p {
    color: #888;
    margin-bottom: 0;
}

/* 탭 네비게이션 */
/* 고객센터 '이벤트·공지' 탭 안의 소제목 */
.support-subhead {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 8px 0 14px;
}

.support-subhead i {
    color: var(--primary-color);
}

.events-grid + .support-subhead {
    margin-top: 36px;
}

.support-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 24px;
}
.support-tabs .nav-link {
    color: #666;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}
.support-tabs .nav-link:hover {
    color: var(--primary-color);
    border-color: transparent;
}
.support-tabs .nav-link.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}

/* 공지사항 목록 */
.notice-list {
    border-top: 2px solid #333;
}
.notice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.notice-item:hover {
    background: #f6f8fd;
    color: inherit;
}
.notice-item .ni-title {
    flex: 1;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 12px;
}
.notice-item .ni-date {
    font-size: 0.8rem;
    color: #aaa;
    white-space: nowrap;
}

/* 공지사항 상세 */
.notice-view-wrapper {
    max-width: 800px;
    margin: 0 auto;
}
.notice-view-header {
    border-bottom: 2px solid #333;
    padding-bottom: 16px;
    margin-bottom: 24px;
}
.notice-view-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.notice-view-header .notice-date {
    font-size: 0.85rem;
    color: #888;
}
.notice-view-content {
    padding: 20px 0;
    min-height: 200px;
    line-height: 1.8;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.notice-view-content img {
    max-width: 100%;
    height: auto;
}

/* FAQ */
.faq-category-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.faq-category-btn {
    padding: 6px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #555;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.faq-category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.faq-category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.faq-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid #eee;
}
.faq-accordion .accordion-button {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 16px 12px;
    background: transparent;
    box-shadow: none;
    color: #333;
}
.faq-accordion .accordion-button::before {
    content: 'Q.';
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 8px;
    flex-shrink: 0;
}
.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background: #f6fafe;
}
.faq-accordion .accordion-button::after {
    flex-shrink: 0;
}
.faq-accordion .accordion-body {
    padding: 16px 12px 20px 36px;
    color: #555;
    line-height: 1.7;
    font-size: 0.9rem;
    background: #fafafa;
}
.faq-accordion .accordion-body img {
    max-width: 100%;
    height: auto;
}
.faq-category-label {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e6ebf6;
    color: var(--secondary-color);
    margin-right: 6px;
}

/* 1:1 문의 목록 */
.inquiry-list {
    border-top: 2px solid #333;
}
.inquiry-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.inquiry-item:hover {
    background: #f6f8fd;
    color: inherit;
}
.inquiry-item .iq-status {
    flex-shrink: 0;
}
.inquiry-item .iq-title {
    flex: 1;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.inquiry-item .iq-author {
    font-size: 0.8rem;
    color: #888;
    flex-shrink: 0;
}
.inquiry-item .iq-date {
    font-size: 0.8rem;
    color: #aaa;
    flex-shrink: 0;
}
.inquiry-status-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.inquiry-status-badge.waiting {
    background: #fff3cd;
    color: #856404;
}
.inquiry-status-badge.answered {
    background: #d1e7dd;
    color: #0f5132;
}

/* 문의 작성/상세 */
.inquiry-write-wrapper,
.inquiry-view-wrapper {
    max-width: 700px;
    margin: 0 auto;
}
.inquiry-write-header,
.inquiry-view-header {
    text-align: center;
    margin-bottom: 24px;
}
.inquiry-write-header h1,
.inquiry-view-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
}
.inquiry-view-meta {
    font-size: 0.85rem;
    color: #888;
    margin-top: 8px;
}
.inquiry-view-meta span {
    margin: 0 8px;
}
.inquiry-view-content {
    padding: 20px 0;
    min-height: 150px;
    line-height: 1.8;
    font-size: 0.95rem;
    border-top: 2px solid #333;
    border-bottom: 1px solid #eee;
}
.inquiry-reply-box {
    background: #f0f8ff;
    border: 1px solid #d0e4f5;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}
.inquiry-reply-box .reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
}
.inquiry-reply-box .reply-header .reply-label {
    font-weight: 700;
    color: var(--primary-color);
}
.inquiry-reply-box .reply-header .reply-date {
    color: #888;
}
.inquiry-reply-box .reply-content {
    line-height: 1.7;
    font-size: 0.95rem;
}

/* 비밀번호 확인 박스 */
.inquiry-password-box {
    max-width: 400px;
    margin: 40px auto;
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.inquiry-password-box h5 {
    margin-bottom: 16px;
    font-weight: 700;
}

/* 고객센터 빈 상태 */
.support-empty {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}
.support-empty i {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
}

/* 전체 탭 통합 목록 */
.all-list {
    border-top: 2px solid #333;
}
.all-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s;
}
.all-item:hover {
    background: #f6f8fd;
    color: inherit;
}
.all-type {
    flex-shrink: 0;
    width: 64px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 6px;
    border-radius: 6px;
    color: #fff;
    line-height: 1.3;
}
.all-type-event {
    background: var(--primary-color, #2274d2);
}
.all-type-notice {
    background: #304d92;
}
.all-type-faq {
    background: #0d6efd;
}
.all-type-inquiry {
    background: #20c997;
}
.all-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    background: #f2f2f2;
}
.all-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.all-title {
    flex: 1;
    min-width: 0;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.all-badge {
    flex-shrink: 0;
}
.all-date {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: #aaa;
    white-space: nowrap;
}
@media (max-width: 575px) {
    .all-item {
        gap: 8px;
        padding: 10px 4px;
    }
    .all-type {
        width: 52px;
        font-size: 0.65rem;
        padding: 3px 4px;
    }
    .all-thumb {
        width: 48px;
        height: 36px;
    }
    .all-title {
        font-size: 0.85rem;
    }
    .all-date {
        display: none;
    }
}

/* 문의 네비게이션 (이전/다음) */
.notice-nav {
    display: flex;
    gap: 1px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}
.notice-nav-item {
    flex: 1;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.notice-nav-item:hover {
    background: #f6f8fd;
    color: inherit;
}
.notice-nav-item.disabled {
    color: #ccc;
}
.notice-nav-item .nav-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 4px;
}
.notice-nav-item .nav-title {
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
.notice-nav-item.next {
    text-align: right;
}

/* 반응형 */
@media (max-width: 576px) {
    .support-tabs .nav-link {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    .inquiry-item .iq-author {
        display: none;
    }
    .faq-category-btn {
        font-size: 0.78rem;
        padding: 5px 12px;
    }
    .support-page-header h1 {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .notice-item .ni-title {
        font-size: 0.88rem;
    }
}

/* ===== 가입유형별 가격 표시 (메인 페이지 폰 카드) ===== */
.join-type-prices {
    margin-top: 10px;
}

.join-type-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    border-left: 3px solid #ccc;
}

.join-type-box.mnp {
    border-left-color: var(--primary-color);
    background: linear-gradient(135deg, #f6fafe 0%, #fff 100%);
}

.join-type-box.rejoin {
    border-left-color: #4caf50;
    background: linear-gradient(135deg, #f5fff5 0%, #fff 100%);
}

.join-type-box.new-join {
    border-left-color: #2196f3;
    background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
}

.join-type-header {
    margin-bottom: 6px;
}

.join-type-label {
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.join-type-box.mnp .join-type-label {
    color: var(--primary-color);
}

.join-type-box.rejoin .join-type-label {
    color: #4caf50;
}

.join-type-box.new-join .join-type-label {
    color: #2196f3;
}

.join-type-discount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.join-type-discount .discount-label {
    color: #666;
}

.join-type-discount .discount-value {
    color: var(--primary-color);
    font-weight: 600;
}

.join-type-plan {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 4px;
}

.join-type-final {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    border-top: 1px dashed #ddd;
}

.join-type-final .final-label {
    font-size: 0.75rem;
    color: #333;
    font-weight: 500;
}

.join-type-final .final-value {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
}

/* 모바일 최적화 */
@media (max-width: 576px) {
    .join-type-box {
        padding: 8px;
        margin-bottom: 6px;
    }

    .join-type-label {
        font-size: 0.7rem;
    }

    .join-type-discount {
        font-size: 0.75rem;
    }

    .join-type-final .final-value {
        font-size: 0.9rem;
    }
}

/* ===== 가입유형 변경 시 요금제 전환 토스트 알림 ===== */
.join-type-plan-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    animation: toastSlideIn 0.25s ease-out;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-15px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.join-type-plan-toast.fade-out {
    animation: toastSlideOut 0.25s ease-out forwards;
}

@keyframes toastSlideOut {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(-15px); }
}

.join-type-plan-toast .toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2274d2 0%, #243f7d 100%);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(34, 116, 210, 0.3);
    white-space: nowrap;
}

.join-type-plan-toast .toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.join-type-plan-toast .toast-text {
    font-size: 0.85rem;
    line-height: 1.4;
}

.join-type-plan-toast .toast-text strong {
    color: #ffeb3b;
}

.join-type-plan-toast .plan-info {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.join-type-plan-toast .toast-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 0 0 0 6px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.join-type-plan-toast .toast-close:hover {
    color: #fff;
}

@media (max-width: 576px) {
    .join-type-plan-toast {
        left: 10px;
        right: 10px;
        transform: none;
    }
    .join-type-plan-toast .toast-content {
        white-space: normal;
        font-size: 0.8rem;
    }
}

/* ===== 사전예약 / 코멘트 뱃지 ===== */
.preorder-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #3b2fb0, #2f51a1);
    box-shadow: 0 2px 6px rgba(59, 47, 176, 0.18);
    z-index: 2;
}

/* 코멘트(혜택 뱃지) 리스트 - 프리미엄 스타일 */
.phone-comments {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0;
}

.phone-comment {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 16px;
    border-radius: 14px;
    font-size: 0.82rem;
    line-height: 1.5;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid transparent;
    box-shadow: 0 2px 10px rgba(20, 20, 43, 0.05);
}

/* 상단 은은한 하이라이트 라인 */
.phone-comment::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}

.phone-comment .pc-icon {
    flex-shrink: 0;
    font-size: 1.02rem;
    line-height: 1.4;
    filter: saturate(1.05);
}

.phone-comment .pc-text {
    color: #2c2c34;
    font-weight: 600;
    letter-spacing: -0.01em;
    word-break: keep-all;
}

.phone-comment .pc-text br {
    line-height: 1.7;
}

/* 강조 텍스트 (텍스트 일부만 포인트 컬러) */
.phone-comment .pc-em {
    color: currentColor;
    font-weight: 800;
}

/* 색상 테마: 그라데이션·그림자를 걷어내고 옅은 단색 배경 + 글자색으로만 구분한다.
   여러 개가 나란히 붙어도 스티커처럼 튀지 않게 하기 위함이다. */
.phone-comment.pc-pink {
    color: #2976cd;
    background: #f6f9fd;
    border-color: rgba(41, 118, 205, 0.16);
}
.phone-comment.pc-orange {
    color: #e8590c;
    background: #fff7ef;
    border-color: rgba(232, 89, 12, 0.16);
}
.phone-comment.pc-blue {
    color: #1971c2;
    background: #f2f8ff;
    border-color: rgba(25, 113, 194, 0.16);
}
.phone-comment.pc-green {
    color: #2b8a3e;
    background: #f2fbf6;
    border-color: rgba(43, 138, 62, 0.16);
}
.phone-comment.pc-purple {
    color: #3052a4;
    background: #f6f8fd;
    border-color: rgba(48, 82, 164, 0.16);
}
.phone-comment.pc-dark {
    color: #343a46;
    background: var(--d-soft);
    border-color: rgba(52, 58, 70, 0.14);
}

/* 사전예약 출고가 박스 */
.phone-card .price-info.preorder-price-info {
    margin-top: 12px;
    background: #faf9ff;
    border-color: #e4eaf7;
}

.phone-card .price-info.preorder-price-info .price-value {
    font-size: 1rem;
    font-weight: 800;
    color: #3b2fb0;
    text-decoration: none;
}

.price-estimated {
    font-size: 0.72rem;
    font-weight: 500;
    color: #999;
}

/* 사전예약: 이통사 미확정 표기 */
.preorder-uncf {
    color: #e8590c;
    font-size: 0.62rem;
    font-weight: 700;
    white-space: nowrap;
}

/* 사전예약 안내 문구 */
.preorder-note {
    margin: 8px 0 10px;
    font-size: 0.7rem;
    color: #999;
    line-height: 1.45;
    text-align: right;
}

/* 사전예약 버튼 */
.preorder-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 6px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    background: linear-gradient(135deg, #3b2fb0, #2f51a1);
    box-shadow: 0 4px 12px rgba(59, 47, 176, 0.18);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.preorder-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 47, 176, 0.26);
    color: #fff !important;
}

.preorder-btn-lg {
    max-width: 340px;
    padding: 13px 18px;
    font-size: 0.95rem;
}

/* 상세페이지 사전예약 배너 */
.preorder-banner {
    background: linear-gradient(135deg, #f6f8fd 0%, #eff5fc 100%);
    border: 1px solid #e4eaf7;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 16px;
}

.preorder-banner-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.preorder-banner .preorder-badge {
    position: static;
}

.preorder-banner-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #2a2350;
}

.preorder-banner .phone-comments {
    margin: 0 0 14px;
}

@media (max-width: 576px) {
    .preorder-banner {
        padding: 16px;
    }
    .preorder-btn-lg {
        max-width: 100%;
    }
}

/* ===================================================================
   사전예약 섹션 (index.php 최상단) — 화이트 미니멀
   배경 그라데이션 대신 헤어라인·여백·타이포그래피로 격을 만든다.
   모델이 1~2개면 카드를 가로로 눕혀 여백 없이 채우되 높이는 낮게 유지한다.
   =================================================================== */
:root {
    --pre-ink: #17171c;
    --pre-line: #ececf1;
    --pre-muted: #8b8b98;
}

/* overflow: hidden 을 두면 PC 에서 금액 상세 팝오버(.pcard-detail)가 섹션 아래로 잘린다.
   장식은 배경 레이어와 모서리 radius 로 안쪽에 가둬서 잘라낼 필요가 없게 한다. */
.preorder-section {
    position: relative;
    padding: 22px 22px 24px;
    border: 1px solid var(--pre-line);
    border-radius: 16px;
    /* 첫 레이어는 상단 액센트 헤어라인 - 섹션이 특별하다는 신호를 2px 로만 준다.
       나머지는 흰 바탕을 유지하되 모서리에서 아주 옅게 번지는 워시로 존재감만 준다 */
    background:
        linear-gradient(90deg, #2f51a1, #1e66b8 52%, rgba(30, 102, 184, 0)) top left / 100% 2px no-repeat,
        radial-gradient(120% 90% at 100% 0%, rgba(47, 81, 161, 0.055), transparent 62%),
        radial-gradient(90% 70% at 0% 100%, rgba(30, 102, 184, 0.038), transparent 62%),
        #fff;
    box-shadow: var(--d-shadow);
}

/* 우상단 도트 텍스처. 마스크로 서서히 사라지게 해서 배경처럼만 깔린다.
   섹션 안쪽 모서리(16px - 테두리 1px)에 맞춰 둥글려서 밖으로 삐져나오지 않게 한다 */
.preorder-section::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-top-right-radius: 15px;
    width: 190px;
    height: 130px;
    background-image: radial-gradient(rgba(23, 23, 28, 0.06) 1px, transparent 1px);
    background-size: 9px 9px;
    -webkit-mask-image: linear-gradient(218deg, #000, transparent 72%);
    mask-image: linear-gradient(218deg, #000, transparent 72%);
    pointer-events: none;
}

.preorder-section > * {
    position: relative;
    z-index: 1;
}

/* ----- 히어로(오버라인 + 타이틀 + 코멘트 + 안내문구) ----- */
.preorder-hero {
    margin-bottom: 18px;
}

.preorder-hero-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--pre-line);
}

/* 그라데이션 뱃지 대신 작은 영문 오버라인으로 격을 준다 */
.preorder-eyebrow {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #2f51a1;
}

.preorder-eyebrow::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2f51a1, #1e66b8);
}

.preorder-hero-title {
    margin: 0;
    font-size: clamp(1.02rem, 2.2vw, 1.28rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.35;
    color: var(--pre-ink);
    word-break: keep-all;
}

.preorder-hero-count {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--pre-muted);
    white-space: nowrap;
}

/* 코멘트 그리드: auto-fit 이라 1개면 꽉 차고 3~4개면 나눠 담긴다.
   개수와 무관하게 남는 칸이 생기지 않는다. */
.preorder-comments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 8px;
    margin: 0;
}

/* 미니멀 톤에서는 스티커처럼 보이는 그림자·광택선을 걷어내고
   관리자가 고른 pc-* 색상은 그대로 살린다. */
.preorder-comments .phone-comment {
    border-radius: 10px;
    box-shadow: none;
}

.preorder-comments .phone-comment::after {
    display: none;
}

.preorder-hero-note {
    margin: 14px 0 0;
    font-size: 0.72rem;
    line-height: 1.6;
    color: var(--pre-muted);
    text-align: left;
}

/* ----- 카드 ----- */
.preorder-grid .pcard {
    border-color: var(--pre-line);
}

.preorder-grid .pcard-thumb {
    background: #fff;
}

.preorder-grid .pcard-preorder-btn {
    padding: 11px;
    border-radius: 10px;
    font-size: 0.78rem;
    letter-spacing: -0.01em;
}

/* 모델이 1~2개일 때: 좌 이미지 / 우 정보 가로형 카드.
   반반으로 벌어진 칸을 세로 카드로 채우면 이미지만 400px 넘게 커진다.
   리스트 뷰(.phone-grid.list-view .pcard)와 같은 그리드 구성을 재사용한다. */
.preorder-section--solo .pcard,
.preorder-section--duo .pcard {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    grid-template-areas:
        "head name"
        "head chips"
        "head colors"
        "head body";
    align-content: start;
    column-gap: 14px;
    padding: 12px;
}

.preorder-section--solo .pcard-head,
.preorder-section--duo .pcard-head {
    grid-area: head;
    align-self: start;
}

.preorder-section--solo .pcard-name-link,
.preorder-section--duo .pcard-name-link {
    grid-area: name;
}

.preorder-section--solo .pcard-chips,
.preorder-section--duo .pcard-chips {
    grid-area: chips;
}

.preorder-section--solo .pcard-colors,
.preorder-section--duo .pcard-colors {
    grid-area: colors;
}

.preorder-section--solo .pcard-body,
.preorder-section--duo .pcard-body {
    grid-area: body;
    min-width: 0;
}

/* 그리드/플렉스 자식은 min-width 가 auto 라서 nowrap 인 금액이 칸을 밀어낸다.
   가로형 카드에서는 칸이 좁아 그대로 두면 금액이 테두리를 넘고 상세 팝오버도 잘린다. */
.preorder-section--solo .pcard-name-link,
.preorder-section--duo .pcard-name-link,
.preorder-section--solo .pcard-offers,
.preorder-section--duo .pcard-offers,
.preorder-section--solo .pcard-offer,
.preorder-section--duo .pcard-offer {
    min-width: 0;
}

.preorder-section--solo .pcard-thumb,
.preorder-section--duo .pcard-thumb {
    aspect-ratio: 1 / 1;
    padding: 10px;
    border-radius: 12px;
}

/* 카드 자체에 패딩이 생겼으므로 안쪽 요소의 좌우 여백은 없앤다 */
.preorder-section--solo .pcard-name,
.preorder-section--duo .pcard-name {
    padding: 0 0 2px;
    text-align: left;
}

.preorder-section--solo .pcard-chips,
.preorder-section--duo .pcard-chips,
.preorder-section--solo .pcard-colors,
.preorder-section--duo .pcard-colors {
    justify-content: flex-start;
    padding: 6px 0 0;
}

.preorder-section--solo .pcard-offers,
.preorder-section--duo .pcard-offers {
    padding: 10px 0 0;
}

.preorder-section--solo .pcard-payback,
.preorder-section--duo .pcard-payback,
.preorder-section--solo .pcard-preorder-btn,
.preorder-section--duo .pcard-preorder-btn {
    margin: 10px 0 0;
}

@media (min-width: 576px) {
    .preorder-section--solo .pcard,
    .preorder-section--duo .pcard {
        grid-template-columns: 140px minmax(0, 1fr);
        column-gap: 16px;
        padding: 14px;
    }
}

@media (min-width: 992px) {
    .preorder-section--solo .pcard,
    .preorder-section--duo .pcard {
        grid-template-columns: 170px minmax(0, 1fr);
        column-gap: 20px;
        padding: 16px;
    }
    .preorder-section--solo .pcard-offer {
        flex: 1 1 250px;
    }
    .preorder-section--solo .pcard-offers {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .preorder-section {
        padding: 18px 14px 20px;
    }
    .preorder-comments {
        grid-template-columns: 1fr;
    }
}

/* ===== 상세페이지 사전예약 배너도 같은 화이트 미니멀 톤으로 ===== */
.preorder-badge {
    padding: 5px 11px;
    font-size: 0.68rem;
    letter-spacing: 0.01em;
    background: var(--pre-ink);
    box-shadow: none;
}

.preorder-banner {
    padding: 20px;
    border: 1px solid var(--pre-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--d-shadow);
}

.preorder-banner-head {
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--pre-line);
}

.preorder-banner-title {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--pre-ink);
}

.preorder-banner .preorder-comments {
    margin: 0 0 16px;
}

.preorder-banner .preorder-note {
    margin: 0 0 14px;
    font-size: 0.72rem;
    color: var(--pre-muted);
    text-align: left;
}

.preorder-btn {
    border-radius: 11px;
    background: var(--pre-ink);
    box-shadow: none;
}

.preorder-btn:hover {
    transform: none;
    background: #33333d;
    box-shadow: none;
}

/* ===================================================================
   index.php 상품 카드 (.pcard)
   무채색 기반 + 강조색 1개(--pc-accent)만 사용한다.
   store.php / special.php 의 기존 .phone-card 와는 완전히 분리된 계열.
   =================================================================== */
:root {
    --pc-accent: #1e66b8;
    --pc-text: #17171c;
    --pc-sub: #4b5563;
    --pc-muted: #8b95a1;
    --pc-line: #eceef1;
    --pc-soft: #f5f6f8;
}

.pcard {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--pc-line);
    border-radius: 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.pcard:hover {
    border-color: #dcdfe4;
    box-shadow: 0 4px 16px rgba(23, 23, 28, 0.07);
}

/* 마우스 오버 효과 (마우스가 있는 기기만):
   카드가 살짝 떠오르고, 기기 이미지가 커지며 떠오르고, 하단에 '자세히 보기' 꼬리표가 올라온다.
   기기 사진 중엔 흰 배경이 그대로 있는(투명 처리 안 된) 것이 있어서, 사진 뒤 배경색을 바꾸거나
   그림자(drop-shadow)를 주면 사진 네모 테두리가 드러난다. 그래서 배경은 흰색 그대로 두고 확대만 한다. 터치 기기에서는 탭 한 번에 남아 버리므로 끈다. */
@media (hover: hover) and (pointer: fine) {
    .pcard {
        transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .pcard:hover {
        transform: translateY(-6px);
        border-color: var(--d-accent-line, #d4e4f6);
        box-shadow: 0 14px 32px rgba(34, 116, 210, 0.12), 0 4px 10px rgba(23, 23, 28, 0.05);
    }

    /* 상세 팝오버가 열린 카드는 움직이지 않는다 (팝오버가 같이 출렁이지 않게) */
    .pcard.is-open,
    .pcard.is-open:hover {
        transform: none;
    }

    .pcard-thumb::after {
        content: "자세히 보기 \2192";
        position: absolute;
        left: 50%;
        bottom: 10px;
        padding: 4px 12px;
        border-radius: 999px;
        background: rgba(23, 23, 28, 0.82);
        color: #fff;
        font-size: 0.72rem;
        font-weight: 600;
        white-space: nowrap;
        opacity: 0;
        transform: translate(-50%, 8px);
        transition: opacity 0.25s ease, transform 0.3s ease;
        pointer-events: none;
        z-index: 2;
    }

    .pcard-img,
    .pcard-img-empty {
        position: relative;
        transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .pcard-name {
        transition: color 0.2s ease;
    }

    .pcard:hover .pcard-thumb::after {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    .pcard:hover .pcard-img,
    .pcard:hover .pcard-img-empty {
        transform: translateY(-6px) scale(1.07);
    }

    .pcard:hover .pcard-name {
        color: var(--primary-color);
    }

    /* 리스트 보기는 썸네일이 작아 꼬리표를 작게 */
    .phone-grid.list-view .pcard-thumb::after {
        bottom: 6px;
        padding: 3px 9px;
        font-size: 0.66rem;
    }

    .phone-grid.list-view .pcard:hover {
        transform: translateY(-3px);
    }
}

/* 움직임 줄이기 설정을 켠 사용자는 이동 · 확대 없이 색 변화만 */
@media (prefers-reduced-motion: reduce) {
    .pcard,
    .pcard:hover,
    .pcard:hover .pcard-img,
    .pcard:hover .pcard-img-empty {
        transform: none !important;
    }
}

/* 상세 팝오버가 이웃 카드 위로 떠야 하므로 열린 카드만 위로 올린다 */
.pcard.is-open {
    z-index: 30;
}

/* ----- 상단: 썸네일 + 모델명 ----- */
.pcard-head {
    display: block;
    text-decoration: none;
    color: inherit;
}

.pcard-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    padding: 14px;
    background: #fff;
    border-radius: 13px 13px 0 0;
    overflow: hidden;
}

.pcard-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    object-fit: contain;
    /* 투명 처리 안 된 사진의 흰 배경이 썸네일 바탕과 섞이도록 (흰색은 사라지고 기기 색은 그대로) */
    mix-blend-mode: multiply;
}

.pcard-img-empty {
    font-size: 3rem;
    color: #c9ced4;
}

.pcard-mfr,
.pcard-flag {
    position: absolute;
    z-index: 2;  /* 휴대폰 사진(오버 효과로 떠오를 때 포함)보다 항상 위 */
    top: 8px;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.5;
}

.pcard-mfr {
    left: 8px;
    background: rgba(245, 246, 248, 0.92);  /* 흰 썸네일 위에서도 보이게 옅은 회색 */
    color: var(--pc-sub);
}

.pcard-flag {
    right: 8px;
    background: var(--pc-text);
    color: #fff;
}

.pcard-name-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.pcard-name {
    margin: 0;
    padding: 12px 12px 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--pc-text);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ----- 용량 / 색상 ----- */
.pcard-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px 0;
}

.pcard-chip {
    padding: 2px 7px;
    border: 1px solid var(--pc-line);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.63rem;
    font-weight: 600;
    color: var(--pc-sub);
    background: #fff;
    line-height: 1.5;
    transition: all 0.15s ease;
}

button.pcard-chip {
    cursor: pointer;
}

.pcard-chip.is-active {
    border-color: var(--pc-accent);
    background: var(--pc-soft);
    color: var(--pc-accent);
}

.pcard-colors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px 0;
}

.pcard-colors .color-dot {
    width: 13px;
    height: 13px;
    border-width: 1.5px;
}

/* ----- 오퍼(가입유형별 판매가) ----- */
.pcard-body {
    display: flex;
    flex-direction: column;
    margin-top: auto;
}

.pcard-offers {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 12px;
}

.pcard-offer {
    position: relative;
    border: 1px solid var(--pc-line);
    border-radius: 10px;
}

.pcard-offer-btn {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 22px 9px 9px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

/* 두 오퍼 모두 LG U+ 라서 통신사 로고로는 구분이 안 된다.
   가입유형을 기준점으로 삼아 번호이동은 강조색, 기기변경은 무채색으로 나눈다. */
.pcard-offer--mnp {
    border-color: #d3e2f4;
}

.pcard-offer--mnp .pcard-telco {
    background: #f0f6fc;
    color: var(--pc-accent);
}

.pcard-offer--mnp .pcard-jt {
    color: var(--pc-accent);
}

.pcard-offer--rejoin .pcard-telco {
    background: var(--pc-soft);
    color: #98a2ad;
}

.pcard-offer--rejoin .pcard-jt {
    color: var(--pc-sub);
}

.pcard-jt {
    font-weight: 700;
}

.pcard-telco {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--pc-soft);
    color: var(--pc-accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pcard-telco sup {
    font-size: 0.6em;
    top: -0.4em;
}

.pcard-offer-main {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

/* 할인율을 금액과 같은 줄에 두면 자릿수에 따라 줄바꿈 여부가 갈려
   카드마다 금액 위치가 어긋난다. 할인율은 라벨 줄로 올려 배치를 고정한다. */
.pcard-offer-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
}

.pcard-offer-label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.66rem;
    color: var(--pc-muted);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pcard-telco-name::after {
    content: " / ";
}

.pcard-rate {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--pc-accent);
    line-height: 1.4;
}

.pcard-final {
    display: block;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--pc-text);
    line-height: 1.35;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* 캐럿을 흐름에서 빼내 금액이 쓸 수 있는 폭을 최대로 확보한다 */
.pcard-caret {
    position: absolute;
    top: 50%;
    right: 8px;
    margin-left: 0;
    font-size: 0.6rem;
    color: var(--pc-muted);
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.pcard-offer-btn[aria-expanded="true"] .pcard-caret {
    transform: translateY(-50%) rotate(180deg);
}

.pcard-msrp {
    font-size: 0.64rem;
    color: #b6bec7;
    text-decoration: line-through;
    line-height: 1.4;
}

.pcard-offer-plain {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--pc-line);
    border-radius: 10px;
}

/* ----- 펼침 상세 (구매가 분해) -----
   문서 흐름에 두면 같은 행의 다른 카드까지 높이가 늘어나므로 팝오버로 띄운다. */
.pcard-detail {
    position: absolute;
    top: calc(100% + 6px);
    right: -1px;
    left: -1px;
    z-index: 5;
    background: #fff;
    border: 1px solid var(--pc-line);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(23, 23, 28, 0.18);
}

.pcard-detail::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 22px;
    width: 9px;
    height: 9px;
    background: #fff;
    border-top: 1px solid var(--pc-line);
    border-left: 1px solid var(--pc-line);
    transform: rotate(45deg);
}

.pcard-detail-inner {
    position: relative;
    padding: 12px;
}

.pcard-detail-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 0;
    font-size: 0.7rem;
}

.pcard-detail-row.is-head {
    padding-bottom: 5px;
    font-size: 0.76rem;
}

.pcard-detail-row.has-divider {
    margin-top: 8px;
    padding-top: 9px;
    border-top: 1px solid var(--pc-line);
}

.pcard-detail-name {
    color: var(--pc-muted);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pcard-detail-row.is-head .pcard-detail-name {
    color: var(--pc-text);
    font-weight: 700;
}

.pcard-detail-val {
    color: var(--pc-sub);
    white-space: nowrap;
}

.pcard-detail-val.is-minus {
    color: var(--pc-accent);
}

.pcard-detail-sum {
    font-weight: 800;
    color: var(--pc-text);
    white-space: nowrap;
}

.pcard-tag {
    display: inline-block;
    margin-left: 2px;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--pc-soft);
    color: var(--pc-muted);
    font-size: 0.6rem;
    font-weight: 700;
    vertical-align: middle;
}

.pcard-detail-note {
    margin: 7px 0 0;
    font-size: 0.62rem;
    color: var(--pc-muted);
    line-height: 1.45;
}

/* ----- 페이백 / 사전예약 ----- */
.pcard-payback {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 12px 12px;
    padding: 8px 10px;
    border: 1px solid #dbe7f4;
    border-radius: 9px;
    background: linear-gradient(180deg, #fff8fb, #fff);
    color: var(--pc-sub);
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
}

.pcard-payback > i {
    flex-shrink: 0;
    font-size: 0.86rem;
    color: var(--pc-accent);
}

.pcard-payback-body {
    min-width: 0;
}

.pcard-payback-label {
    display: block;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8fa6c0;
}

.pb-kind {
    color: var(--pc-muted);
    font-weight: 600;
}

.pb-amt {
    color: var(--pc-accent);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.pb-sep {
    margin: 0 3px;
    color: #c2cedb;
}

.pcard-preorder-btn,
.pcard-order-btn {
    display: block;
    margin: 0 12px 12px;
    padding: 9px;
    border-radius: 9px;
    background: var(--pc-text);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.pcard-preorder-btn:hover,
.pcard-order-btn:hover {
    color: #fff;
    opacity: 0.9;
}

/* 일반 판매 카드의 주문 CTA: 사전예약 버튼과 모양은 같고 색만 강조색 */
.pcard-order-btn {
    background: var(--pc-accent);
}

.pcard .phone-comments {
    margin: 0 12px 8px;
}

.pcard .preorder-note {
    margin: 0 12px 8px;
    font-size: 0.64rem;
}

/* ----- 리스트 뷰: 썸네일 좌측 고정 ----- */
/* 리스트 뷰는 왼쪽 썸네일 + 오른쪽 정보 구조라
   제품명이 오른쪽 칸 맨 위에 와야 가격보다 먼저 읽힌다. */
.phone-grid.list-view .pcard {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    grid-template-areas:
        "head name"
        "head chips"
        "head colors"
        "head body";
    align-content: start;
    column-gap: 14px;
    padding: 12px;
}

.phone-grid.list-view .pcard-head {
    grid-area: head;
    align-self: start;
}

/* 세로 카드에서는 썸네일이 카드 위쪽 모서리에 맞물리지만
   가로 카드에서는 안쪽에 놓이므로 네 모서리를 모두 둥글린다. */
.phone-grid.list-view .pcard-thumb {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
}

.phone-grid.list-view .pcard-name-link {
    grid-area: name;
}

.phone-grid.list-view .pcard-chips {
    grid-area: chips;
    justify-content: flex-start;
    padding: 6px 0 0;
}

.phone-grid.list-view .pcard-colors {
    grid-area: colors;
    justify-content: flex-start;
    padding: 6px 0 0;
}

.phone-grid.list-view .pcard-body {
    grid-area: body;
}

.phone-grid.list-view .pcard-offers {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px 0 0;
}

/* 카드 자체에 패딩이 생겼으므로 안쪽 요소의 좌우 여백은 없앤다 */
.phone-grid.list-view .pcard-payback,
.phone-grid.list-view .pcard-preorder-btn,
.phone-grid.list-view .pcard-order-btn,
.phone-grid.list-view .pcard .phone-comments,
.phone-grid.list-view .pcard .preorder-note {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    margin-top: 8px;
}

.phone-grid.list-view .pcard-offer {
    flex: 1 1 250px;
}

.phone-grid.list-view .pcard-name {
    text-align: left;
    padding: 0 0 2px;
}

/* 태블릿~일반 데스크톱은 카드 폭이 210px 안팎이라 100만원대 금액이 아슬아슬하다.
   타일과 글자를 한 단계 줄여 여유를 둔다. */
@media (min-width: 768px) and (max-width: 1399px) {
    .pcard-offer-btn {
        gap: 7px;
        padding: 8px 20px 8px 8px;
    }

    .pcard-telco {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        font-size: 0.76rem;
    }

    .pcard-rate {
        font-size: 0.7rem;
    }

    .pcard-final {
        font-size: 0.85rem;
    }

    .pcard-offer-label {
        font-size: 0.63rem;
    }
}

/* ----- 모바일 바텀시트 ----- */
.price-sheet {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.price-sheet.is-open {
    display: block;
}

.price-sheet-dim {
    position: absolute;
    inset: 0;
    background: rgba(23, 23, 28, 0.45);
}

.price-sheet-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    max-height: 82vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    animation: priceSheetUp 0.22s ease-out;
}

@keyframes priceSheetUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: none;
    }
}

.price-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--pc-line);
}

.price-sheet-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--pc-text);
}

.price-sheet-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--pc-muted);
    font-size: 0.95rem;
    cursor: pointer;
}

.price-sheet-body {
    padding: 6px 16px 24px;
    overflow-y: auto;
    overflow-x: hidden;
}

.price-sheet-body .pcard-detail-inner {
    padding: 0;
}

.price-sheet-body .pcard-detail-row {
    padding: 6px 0;
    font-size: 0.85rem;
}

.price-sheet-body .pcard-detail-row.is-head {
    font-size: 0.95rem;
}

.price-sheet-body .pcard-tag,
.price-sheet-body .pcard-detail-note {
    font-size: 0.72rem;
}

body.sheet-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .pcard {
        border-radius: 12px;
    }
    .pcard-thumb {
        padding: 10px;
    }
    .pcard-name {
        padding: 10px 8px 0;
        font-size: 0.8rem;
    }
    .pcard-chips,
    .pcard-colors {
        padding: 6px 8px 0;
    }
    .pcard-chip {
        font-size: 0.58rem;
        padding: 1px 5px;
    }
    .pcard-offers {
        gap: 6px;
        padding: 10px 8px;
    }
    .pcard-offer-btn {
        gap: 7px;
        padding: 7px 18px 7px 7px;
    }
    .pcard-telco {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        font-size: 0.72rem;
    }
    .pcard-offer-label {
        font-size: 0.6rem;
    }
    .pcard-rate {
        font-size: 0.7rem;
    }
    .pcard-final {
        font-size: 0.83rem;
    }
    .pcard-msrp {
        font-size: 0.58rem;
    }
    .pcard-payback,
    .pcard-preorder-btn,
    .pcard-order-btn {
        margin: 0 8px 10px;
        font-size: 0.62rem;
    }
    /* 모바일은 바텀시트로 열리므로 인라인 패널은 항상 숨긴다 */
    .pcard-detail {
        display: none;
    }
    .phone-grid.list-view .pcard {
        grid-template-columns: 120px minmax(0, 1fr);
        column-gap: 10px;
    }

    /* 모바일은 오른쪽 정보 칸이 썸네일보다 훨씬 길어, 정사각형으로 두면
       이미지가 위에만 붙고 아래로 빈 공간이 남는다. 카드 높이만큼 늘린다. */
    .phone-grid.list-view .pcard-head {
        align-self: stretch;
    }

    .phone-grid.list-view .pcard-thumb {
        aspect-ratio: auto;
        height: 100%;
        min-height: 120px;
    }
}

/* 모바일 3열: 카드 폭이 약 115px까지 좁아진다.
   통신사 타일을 접고 캐럿을 절대배치해 가격 표기 폭을 확보한다. */
@media (max-width: 575px) {
    .phone-grid.g-4 {
        --bs-gutter-x: 6px;
        --bs-gutter-y: 6px;
    }

    .pcard-thumb {
        padding: 8px;
    }

    .pcard-mfr,
    .pcard-flag {
        top: 5px;
        padding: 1px 4px;
        font-size: 0.52rem;
    }

    .pcard-mfr {
        left: 5px;
    }

    .pcard-flag {
        right: 5px;
    }

    /* 폭이 좁아 모델명이 잘리므로 두 줄까지 허용하고 높이를 고정해 정렬을 맞춘다 */
    .pcard-name {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
        min-height: 2.6em;
        padding: 8px 6px 0;
        font-size: 0.72rem;
        line-height: 1.3;
    }

    .pcard-chips,
    .pcard-colors {
        gap: 3px;
        padding: 5px 4px 0;
    }

    .pcard-chip {
        padding: 1px 4px;
        font-size: 0.53rem;
    }

    .pcard-colors .color-dot {
        width: 11px;
        height: 11px;
    }

    .pcard-offers {
        gap: 5px;
        padding: 8px 5px;
    }

    .pcard-offer-btn {
        position: relative;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding: 6px 15px 6px 6px;
    }

    .pcard-telco {
        display: none;
    }

    .pcard-caret {
        right: 4px;
        font-size: 0.55rem;
    }

    /* 모든 오퍼가 LG U+ 이므로 폭이 급한 3열에서는 통신사 표기를 접고 가입유형만 남긴다 */
    .pcard-offer-label {
        font-size: 0.56rem;
    }

    .pcard-telco-name {
        display: none;
    }

    .pcard-offer-top {
        gap: 4px;
    }

    .pcard-rate {
        font-size: 0.62rem;
    }

    .pcard-final {
        font-size: 0.74rem;
    }

    .pcard-msrp {
        font-size: 0.53rem;
    }

    .pcard-offer-plain {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 7px;
    }

    .pcard-payback,
    .pcard-preorder-btn,
    .pcard-order-btn {
        margin: 0 5px 8px;
        padding: 5px;
        font-size: 0.56rem;
    }

    .pcard .phone-comments,
    .pcard .preorder-note {
        margin: 0 5px 6px;
    }

    /* 리스트 뷰는 1열이라 폭이 넉넉하므로 타일과 캐럿을 원래대로 되돌린다 */
    .phone-grid.list-view .pcard-telco {
        display: flex;
    }

    .phone-grid.list-view .pcard-telco-name {
        display: inline;
    }

    .phone-grid.list-view .pcard-offer-btn {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 7px;
        padding: 7px 18px 7px 7px;
    }

    .phone-grid.list-view .pcard-name {
        min-height: 0;
    }
}

/* ===== 주문 처리 중 오버레이 ===== */
/* 동의서 이미지 생성에 몇 초 걸려서, 그 사이 중복 터치를 물리적으로 막는다 */
.order-submit-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 20, 35, 0.72);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    padding: 20px;
}

.order-submit-overlay.show {
    display: flex;
}

.order-submit-overlay .oso-box {
    background: #fff;
    border-radius: 14px;
    padding: 28px 32px;
    text-align: center;
    max-width: 320px;
    width: 100%;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.order-submit-overlay .oso-spinner {
    width: 38px;
    height: 38px;
    border-width: 4px;
    color: #1b3faa;
    margin-bottom: 14px;
}

.order-submit-overlay .oso-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1f2e;
    margin-bottom: 6px;
}

.order-submit-overlay .oso-desc {
    font-size: 0.82rem;
    color: #7a8194;
    line-height: 1.5;
}

/* PDF 비밀번호 안내 (주문 완료 모달 / 주문 조회) */
.pdf-password-notice {
    margin-top: 10px;
    padding: 9px 12px;
    background: #fff8e6;
    border: 1px solid #f0d9a0;
    border-radius: 6px;
    color: #7a5b00;
    font-size: 0.82rem;
    line-height: 1.5;
    text-align: left;
}

.pdf-password-notice i {
    margin-right: 4px;
}

/* ===== 주문 모달 단계 진행 ===== */
/* 한 화면에 다 넣으면 모바일에서 너무 길어져 단계로 나눈다 */
.order-summary-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.order-summary-compact .order-phone-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex: 0 0 48px;
}

.order-summary-compact .osum-info {
    min-width: 0;
    flex: 1 1 auto;
}

.order-summary-compact .osum-name {
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-summary-compact .osum-meta {
    font-size: 0.76rem;
    color: #7a8194;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-summary-compact .osum-price {
    flex: 0 0 auto;
    font-size: 0.8rem;
    color: #1b3faa;
    white-space: nowrap;
}

.order-summary-compact .osum-price strong {
    font-size: 1rem;
}

/* 단계 표시기 */
.order-steps {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.order-steps .ostep {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
    min-width: 0;
}

/* 단계 사이 연결선 */
.order-steps .ostep::before {
    content: '';
    position: absolute;
    top: 13px;
    right: 50%;
    width: 100%;
    height: 2px;
    background: #e3e5ea;
}

.order-steps .ostep:first-child::before {
    display: none;
}

.order-steps .ostep.done::before,
.order-steps .ostep.current::before {
    background: #1b3faa;
}

.order-steps .ostep-dot {
    position: relative;
    z-index: 1;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e3e5ea;
    color: #8a90a0;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.order-steps .ostep.done .ostep-dot {
    background: #1b3faa;
    color: #fff;
}

.order-steps .ostep.current .ostep-dot {
    background: #1b3faa;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(27, 63, 170, 0.16);
}

.order-steps .ostep-label {
    font-size: 0.72rem;
    color: #8a90a0;
    white-space: nowrap;
}

.order-steps .ostep.current .ostep-label {
    color: #1b3faa;
    font-weight: 700;
}

.order-steps .ostep.done .ostep-label {
    color: #5a6274;
}

/* 단계 패널 */
.order-step-panel {
    display: none;
}

.order-step-panel.active {
    display: block;
}

/* 하단 버튼: 이전은 왼쪽, 나머지는 오른쪽 */
.modal-footer.order-step-footer {
    justify-content: flex-end;
}

.modal-footer.order-step-footer #orderPrevBtn {
    margin-right: auto;
}

/* 5단계 서류 미리보기 */
.agreement-preview {
    border: 1px solid #e3e5ea;
    border-radius: 8px;
    background: #f7f8fa;
    max-height: 46vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    text-align: center;
}

.agreement-preview img {
    width: 100%;
    height: auto;
    border: 1px solid #e3e5ea;
    border-radius: 4px;
    background: #fff;
}

.agreement-preview-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 10px;
    color: #7a8194;
    font-size: 0.86rem;
}

.agreement-preview-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

@media (max-width: 575.98px) {
    .order-steps .ostep-label {
        font-size: 0.66rem;
    }

    .order-steps .ostep-dot {
        width: 23px;
        height: 23px;
        font-size: 0.72rem;
    }

    .order-steps .ostep::before {
        top: 11px;
    }

    .agreement-preview {
        max-height: 40vh;
    }

    .modal-footer.order-step-footer .btn-lg {
        padding: 0.5rem 0.9rem;
        font-size: 0.95rem;
    }
}

/* ===================================================================
   하단 최근 개통 티커
   페이지를 늘리지 않도록 정해진 높이의 칸 안에서만 목록이 위로 흘러간다.
   목록을 두 번 깔고 -50% 까지 밀어 이음매 없이 반복시킨다.
   =================================================================== */
.act-ticker {
    margin: 32px 0 8px;
}

.act-box {
    overflow: hidden;
    border: 1px solid var(--d-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--d-shadow);
}

.act-head {
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--d-line);
    background: linear-gradient(180deg, #fcfcfe, #fff);
}

.act-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #17171c;
}

.act-title strong {
    font-weight: 800;
    color: var(--pc-accent);
    font-variant-numeric: tabular-nums;
}

.act-sub {
    margin: 3px 0 0;
    font-size: 0.76rem;
    color: var(--d-muted);
}

/* 지금도 들어오고 있다는 느낌만 주는 작은 신호등 */
.act-dot {
    float: left;
    width: 7px;
    height: 7px;
    margin: 7px 8px 0 0;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    animation: actPulse 2.4s ease-out infinite;
}

@keyframes actPulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
    70%  { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* 3행만 보이는 창. 위아래는 마스크로 흐려 잘린 느낌을 없앤다. */
.act-viewport {
    --act-row: 44px;
    height: calc(var(--act-row) * 3);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}

.act-track {
    margin: 0;
    padding: 0;
    list-style: none;
}

.act-track.is-rolling {
    animation: actScroll linear infinite;
}

@keyframes actScroll {
    from { transform: translateY(0); }
    to   { transform: translateY(-50%); }
}

/* 마우스를 올려도 흐름이 끊기지 않게 계속 굴린다 */
.act-viewport:hover .act-track.is-rolling {
    animation-play-state: running;
}

.act-item {
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--act-row);
    padding: 0 20px;
    font-size: 0.84rem;
    color: #3b3b46;
    white-space: nowrap;
}

.act-name {
    flex-shrink: 0;
    font-weight: 700;
    color: #17171c;
}

.act-nim {
    font-weight: 500;
    color: var(--d-muted);
}

.act-model {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--d-muted);
}

.act-date {
    flex-shrink: 0;
    font-size: 0.76rem;
    color: #b3b3c0;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 575px) {
    .act-ticker { margin: 24px 0 4px; }
    .act-head { padding: 14px 16px 12px; }
    .act-title { font-size: 0.88rem; }
    .act-viewport { --act-row: 40px; }
    .act-item { padding: 0 16px; gap: 8px; font-size: 0.78rem; }
}

/* ----- 티커 탭 ----- */
.act-tabs {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--d-line);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.act-tabs::-webkit-scrollbar {
    display: none;
}

.act-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border: 0;
    border-radius: 8px;
    background: none;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--d-muted);
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.act-tab i {
    font-size: 0.82rem;
}

.act-tab:hover {
    background: #f6f6f9;
    color: #17171c;
}

.act-tab.is-active {
    background: #f0f6fc;
    color: var(--pc-accent);
}

/* ----- 인기 모델 순위 ----- */
.act-panel-note {
    margin: 0;
    padding: 10px 20px 2px;
    font-size: 0.72rem;
    color: var(--d-muted);
}

.act-ranks {
    margin: 0;
    padding: 6px 0 10px;
    list-style: none;
}

.act-rank {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 40px;
    padding: 0 20px;
    border: 0;
    background: none;
    text-align: left;
}

.act-rank.is-clickable {
    cursor: pointer;
    transition: background 0.15s ease;
}

.act-rank.is-clickable:hover,
.act-rank.is-open {
    background: #fafafc;
}

.act-rank-no {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--d-soft);
    color: var(--d-muted);
    font-size: 0.68rem;
    font-weight: 800;
}

.act-rank-no.is-top {
    background: var(--pc-accent);
    color: #fff;
}

.act-rank-label {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.84rem;
    font-weight: 600;
    color: #17171c;
}

/* 1위 대비 비율 막대 - 순위 간 격차가 한눈에 보이게 */
.act-rank-bar {
    flex: 1 1 auto;
    min-width: 24px;
    height: 6px;
    border-radius: 999px;
    background: var(--d-soft);
    overflow: hidden;
}

.act-rank-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #a7caf1, var(--pc-accent));
}

.act-rank-count {
    flex-shrink: 0;
    min-width: 38px;
    text-align: right;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--d-muted);
    font-variant-numeric: tabular-nums;
}

.act-rank-caret {
    flex-shrink: 0;
    font-size: 0.7rem;
    color: #c3c3ce;
    transition: transform 0.2s ease;
}

.act-rank.is-open .act-rank-caret {
    transform: rotate(180deg);
    color: var(--pc-accent);
}

/* ----- 펼친 모델의 용량 / 색상 신청률 ----- */
.act-detail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    margin: 2px 20px 12px;
    padding: 14px 16px;
    border: 1px solid var(--d-line);
    border-radius: 12px;
    background: #fcfcfe;
}

.act-dist-title {
    margin: 0 0 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a3a3b0;
}

.act-dist-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.act-dist-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
}

.act-dist-label {
    flex: 0 0 68px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.76rem;
    font-weight: 600;
    color: #3b3b46;
}

.act-dist-bar {
    flex: 1 1 auto;
    min-width: 20px;
    height: 5px;
    border-radius: 999px;
    background: #eceef2;
    overflow: hidden;
}

.act-dist-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #a99cf0, #2f51a1);
}

.act-dist-pct {
    flex-shrink: 0;
    min-width: 32px;
    text-align: right;
    font-size: 0.72rem;
    font-weight: 700;
    color: #2f51a1;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 575px) {
    .act-tabs { padding: 7px 10px; }
    .act-tab { padding: 6px 10px; font-size: 0.73rem; }
    .act-rank { height: 36px; padding: 0 16px; gap: 8px; }
    .act-rank-label { font-size: 0.78rem; max-width: 40%; }
    .act-rank-count { font-size: 0.72rem; }
    .act-panel-note { padding: 8px 16px 0; font-size: 0.68rem; }
    .act-detail { grid-template-columns: 1fr; gap: 12px; margin: 2px 16px 10px; padding: 12px 14px; }
    .act-dist-label { flex-basis: 60px; font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
    .act-track.is-rolling { animation: none; }
    .act-dot { animation: none; }
}

/* ===== 메인 리뷰 ‹ › 넘김 · 베스트리뷰 (index.php) ===== */
/* 카드는 가로 트랙에 한 줄로 놓고 한 화면씩 민다. 위쪽 .review-card:nth-child(n+5) 숨김 규칙을 덮어쓴다. */
.review-track {
    --rv-per: 5;
    --rv-gap: clamp(12px, 1.5vw, 18px);
    display: flex;
    gap: var(--rv-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 8px 2px 14px;
    scroll-padding-inline: 2px;
}

.review-track::-webkit-scrollbar {
    display: none;
}

.review-track > .review-card {
    display: flex;
    flex: 0 0 calc((100% - (var(--rv-per) - 1) * var(--rv-gap)) / var(--rv-per));
    position: relative;  /* 베스트리뷰 배지 기준 */
    min-width: 0;
    height: auto;
    scroll-snap-align: none;
    padding: 14px;
    overflow: hidden;
}

/* 한 화면(--rv-per 장)의 첫 카드에만 멈춤 지점을 두고 지나치지 못하게 해서,
   손가락으로 세게 밀어도 ‹ › 와 같이 한 화면씩만 넘어간다. 아래 브레이크포인트마다 장수에 맞춰 바꾼다. */
.review-track > .review-card:nth-child(5n+1) {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* 카드가 좁아진 만큼 글자·줄 수를 줄인다 */
.review-track .review-rating {
    margin-bottom: 8px;
}

.review-track .review-rating .star {
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.review-track .review-title {
    font-size: 0.95rem;
    margin-bottom: 8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.review-track .review-content {
    font-size: 0.84rem;
    line-height: 1.55;
    -webkit-line-clamp: 3;
    margin-bottom: 10px;
}

.review-track .review-footer {
    flex-wrap: wrap;
    gap: 4px 8px;
}

/* 후기 사진 미리보기 (첫 장 = 대표 사진) */
.review-card-thumb {
    position: relative;
    margin: -14px -14px 10px;
    aspect-ratio: 4 / 3;
    background: #f3f4f6;
    overflow: hidden;
}

.review-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-card-thumb-count {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

/* 사진이 있는 카드는 본문을 더 짧게 */
.review-card-thumb ~ .review-content {
    -webkit-line-clamp: 2;
}

/* ===== 구매 후기 팝업 (index.php #reviewDetailModal) =====
   사진 → 작성자 · 일시 · 별점 → 개통 정보표 → 제목 · 본문. 무채색 위주, 강조는 베스트 배지와 할부원금만. */
.review-modal,
.rvb,
.rvv {
    --rm-text: #111827;
    --rm-sub: #6b7280;
    --rm-muted: #9ca3af;
    --rm-line: #e5e7eb;
    --rm-soft: #f9fafb;
}

.review-modal .modal-dialog {
    max-width: 440px;
}

.review-modal .modal-content {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(17, 24, 39, 0.18);
}

.review-modal .modal-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--rm-line);
}

.review-modal .modal-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--rm-text);
    letter-spacing: -0.01em;
}

.review-modal .btn-close {
    font-size: 0.7rem;
}

.review-modal .modal-body {
    padding: 0 0 6px;
    color: var(--rm-text);
}

.rm-gallery {
    position: relative;
    background: #f3f4f6;
    border-bottom: 1px solid var(--rm-line);
}

.rm-gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.rm-gallery-track::-webkit-scrollbar {
    display: none;
}

.rm-gallery-track img {
    flex: 0 0 100%;
    width: 100%;
    height: min(62vw, 280px);
    object-fit: contain;
    scroll-snap-align: start;
    display: block;
}

/* < > 버튼: PC 에서 사진 넘기기 (모바일은 밀어서 넘기므로 터치 기기에서는 숨김) */
.rm-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.45);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s;
}

.rm-gallery-nav:hover,
.rm-gallery-nav:focus-visible {
    background: rgba(17, 24, 39, 0.7);
}

.rm-gallery-nav[hidden] {
    display: none;
}

.rm-gallery-prev {
    left: 10px;
}

.rm-gallery-next {
    right: 10px;
}

@media (hover: none) and (pointer: coarse) {
    .rm-gallery-nav {
        display: none;
    }
}

.rm-gallery-track > a {
    flex: 0 0 100%;
    display: block;
    scroll-snap-align: start;
}

.rm-gallery-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(17, 24, 39, 0.6);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* 작성자 줄 */
.rm-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px 14px;
}

.rm-profile-main {
    flex: 1;
    min-width: 0;
}

.rm-who {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rm-author {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--rm-text);
}

.rm-who .review-best-badge {
    margin: 0;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.62rem;
}

.rm-date {
    margin-top: 1px;
    font-size: 0.72rem;
    color: var(--rm-muted);
    font-variant-numeric: tabular-nums;
}

.rm-rating {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 1px;
}

.rm-rating .star {
    font-size: 0.78rem;
    color: #e5e7eb;
}

.rm-rating .star.filled {
    color: #f59e0b;
}

.rm-score {
    margin-left: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--rm-text);
}

/* 개통 정보표 */
.rm-info {
    margin: 0 18px;
    padding: 4px 14px;
    border: 1px solid var(--rm-line);
    border-radius: 10px;
    background: var(--rm-soft);
}

.rm-section-label {
    margin: 0;
    padding: 9px 0 7px;
    border-bottom: 1px solid var(--rm-line);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--rm-sub);
    letter-spacing: 0.02em;
}

.rm-info-list {
    margin: 0;
}

.rm-info-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
}

.rm-info-row + .rm-info-row {
    border-top: 1px dashed var(--rm-line);
}

.rm-info-row dt {
    flex-shrink: 0;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--rm-sub);
}

.rm-info-row dd {
    margin: 0;
    min-width: 0;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rm-text);
    word-break: keep-all;
    font-variant-numeric: tabular-nums;
}

.rm-info-row--total {
    border-top: 1px solid var(--rm-line) !important;
}

.rm-info-row--total dd {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--lguplus-color);
}

/* 후기 본문 */
.rm-review {
    padding: 16px 18px 14px;
}

.rm-title {
    margin: 0 0 6px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--rm-text);
    word-break: keep-all;
}

.rm-content {
    font-size: 0.82rem;
    line-height: 1.7;
    color: #4b5563;
    white-space: pre-wrap;
    word-break: keep-all;
}

@media (max-width: 575px) {
    .review-modal .modal-dialog {
        margin: 12px;
    }
}

/* ===== 고객 후기 목록 (reviews.php) =====
   PC 는 4열 카드, 휴대폰은 사진을 왼쪽에 둔 한 줄 목록. 색 토큰은 구매 후기 팝업과 같다. */
.rvb {
    max-width: 1140px;
    padding-top: 28px;
    padding-bottom: 48px;
}

.rvb-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 2px solid var(--rm-text);
}

.rvb-title {
    margin: 0 0 4px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rm-text);
    letter-spacing: -0.02em;
}

.rvb-desc {
    margin: 0;
    font-size: 0.86rem;
    color: var(--rm-sub);
}

.rvb-head-side {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.rvb-summary {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rvb-summary-score {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--rm-text);
    font-variant-numeric: tabular-nums;
}

.rvb-summary-count {
    padding-left: 8px;
    margin-left: 2px;
    border-left: 1px solid var(--rm-line);
    font-size: 0.8rem;
    color: var(--rm-sub);
}

.rvb-write {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--rm-text);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.rvb-write:hover,
.rvb-write:focus {
    background: #374151;
    color: #fff;
}

.rvb-empty {
    padding: 72px 20px;
    text-align: center;
    color: var(--rm-muted);
}

.rvb-empty > i {
    font-size: 2.6rem;
}

.rvb-empty-title {
    margin: 14px 0 4px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--rm-text);
}

.rvb-empty-desc {
    margin-bottom: 18px;
    font-size: 0.86rem;
}

.rvb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.rvb-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--rm-line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.rvb-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
    color: inherit;
}

.rvb-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f3f4f6;
    overflow: hidden;
}

.rvb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rvb-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    font-size: 2rem;
}

.rvb-thumb-count {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(17, 24, 39, 0.6);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
}

.rvb-thumb .rvb-best {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.64rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.rvb-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 14px 14px 12px;
}

.rvb-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 8px;
}

.rvb-join {
    padding: 1px 6px;
    border: 1px solid var(--rm-line);
    border-radius: 4px;
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--rm-sub);
    white-space: nowrap;
}

.rvb-card-title {
    margin: 0 0 4px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--rm-text);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rvb-card-text {
    flex: 1;
    margin: 0 0 12px;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #4b5563;
    word-break: keep-all;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rvb-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
    font-size: 0.72rem;
}

.rvb-author {
    font-weight: 700;
    color: var(--rm-text);
}

.rvb-date {
    color: var(--rm-muted);
    font-variant-numeric: tabular-nums;
}

.rvb-model {
    margin-left: auto;
    max-width: 100%;
    color: var(--rm-sub);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rvb-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 36px;
}

.rvb-page {
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rm-line);
    border-radius: 6px;
    background: #fff;
    color: var(--rm-sub);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.rvb-page:hover {
    border-color: #9ca3af;
    color: var(--rm-text);
}

.rvb-page.is-active {
    border-color: var(--rm-text);
    background: var(--rm-text);
    color: #fff;
}

@media (max-width: 1199px) {
    .rvb-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .rvb {
        padding-top: 18px;
    }

    .rvb-head {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-bottom: 14px;
        margin-bottom: 4px;
    }

    .rvb-title {
        font-size: 1.25rem;
    }

    .rvb-desc {
        font-size: 0.8rem;
    }

    .rvb-head-side {
        justify-content: space-between;
    }

    .rvb-summary-score {
        font-size: 1.05rem;
    }

    /* 휴대폰: 카드 대신 사진 왼쪽 · 내용 오른쪽 한 줄 목록 */
    .rvb-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .rvb-card {
        flex-direction: row;
        gap: 12px;
        padding: 14px 0;
        border: 0;
        border-bottom: 1px solid var(--rm-line);
        border-radius: 0;
    }

    .rvb-card:hover {
        box-shadow: none;
    }

    .rvb-thumb {
        flex: 0 0 92px;
        width: 92px;
        height: 92px;
        aspect-ratio: auto;
        border-radius: 8px;
    }

    .rvb-thumb--empty {
        font-size: 1.5rem;
    }

    .rvb-thumb-count {
        right: 4px;
        bottom: 4px;
        padding: 1px 5px;
        font-size: 0.6rem;
    }

    .rvb-thumb .rvb-best {
        top: 4px;
        right: auto;
        left: 4px;
        padding: 1px 5px;
        font-size: 0.56rem;
    }

    .rvb-body {
        padding: 0;
    }

    .rvb-rating {
        margin-bottom: 4px;
    }

    .rvb-card-title {
        font-size: 0.86rem;
    }

    .rvb-card-text {
        margin-bottom: 6px;
        font-size: 0.76rem;
        line-height: 1.5;
    }

    .rvb-card-foot {
        padding-top: 0;
        border-top: 0;
        font-size: 0.68rem;
    }

    .rvb-model {
        margin-left: 0;
    }
}

/* ===== 고객 후기 상세 (review_view.php) =====
   제목 · 작성자 · 일시 · 별점 → 사진 → 개통 정보표(팝업과 같은 .rm-info) → 본문 */
.rvv {
    max-width: 760px;
    padding-top: 22px;
    padding-bottom: 48px;
}

.rvv-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--rm-sub);
    text-decoration: none;
}

.rvv-back:hover {
    color: var(--rm-text);
}

.rvv-card {
    border: 1px solid var(--rm-line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.rvv-head {
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--rm-line);
}

.rvv-head .rvv-best {
    margin-bottom: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
}

.rvv-title {
    margin: 0 0 12px;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--rm-text);
    letter-spacing: -0.02em;
    word-break: keep-all;
}

.rvv-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rvv-who {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 10px;
}

.rvv-author {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--rm-text);
}

.rvv-date {
    font-size: 0.78rem;
    color: var(--rm-muted);
    font-variant-numeric: tabular-nums;
}

/* 사진 갤러리는 후기 팝업과 같은 .rm-gallery, 상세 페이지에서는 더 크게 */
.rvv-gallery {
    margin: 20px 24px 0;
    border-bottom: 0;
    border-radius: 10px;
    overflow: hidden;
}

.rvv-gallery .rm-gallery-track img {
    height: min(80vw, 520px);
}

.rvv-info {
    margin: 20px 24px 0;
}

.rvv-info .rm-section-label {
    font-size: 0.74rem;
}

.rvv-text {
    padding: 22px 24px 26px;
    font-size: 0.92rem;
    line-height: 1.8;
    color: #374151;
    word-break: keep-all;
}

.rvv-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 16px 0 24px;
}

.rvv-actions-own {
    display: flex;
    gap: 6px;
}

.rvv-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    border: 1px solid var(--rm-line);
    border-radius: 8px;
    background: #fff;
    color: var(--rm-sub);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.rvv-btn:hover {
    border-color: #9ca3af;
    color: var(--rm-text);
}

.rvv-btn--danger:hover {
    border-color: #fca5a5;
    color: #dc2626;
}

.rvv-btn--primary {
    border-color: var(--rm-text);
    background: var(--rm-text);
    color: #fff;
}

.rvv-btn--primary:hover {
    background: #374151;
    color: #fff;
}

.rvv-nav {
    border-top: 1px solid var(--rm-text);
}

.rvv-nav-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 13px 4px;
    border-bottom: 1px solid var(--rm-line);
    color: inherit;
    text-decoration: none;
}

a.rvv-nav-row:hover .rvv-nav-title {
    color: var(--rm-text);
    text-decoration: underline;
}

.rvv-nav-label {
    flex: 0 0 72px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--rm-sub);
}

.rvv-nav-title {
    min-width: 0;
    font-size: 0.86rem;
    color: #374151;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rvv-nav-row.is-empty .rvv-nav-title {
    color: var(--rm-muted);
}

.rvv-delete-body {
    padding: 18px !important;
}

@media (max-width: 767px) {
    .rvv {
        padding-top: 14px;
    }

    .rvv-head {
        padding: 18px 16px 14px;
    }

    .rvv-title {
        font-size: 1.1rem;
    }

    .rvv-meta {
        align-items: flex-end;
    }

    .rvv-who {
        flex-direction: column;
        gap: 1px;
    }

    .rvv-gallery {
        margin: 16px 16px 0;
    }

    .rvv-info {
        margin: 16px 16px 0;
    }

    .rvv-text {
        padding: 18px 16px 22px;
        font-size: 0.86rem;
    }

    .rvv-nav-label {
        flex-basis: 60px;
    }
}


.review-track > .review-card:hover {
    transform: translateY(-4px);
}

.review-card--best {
    border: 2px solid var(--lguplus-color);
    box-shadow: 0 6px 24px rgba(34, 116, 210, 0.14);
}

.review-best-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--lguplus-color);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* 베스트리뷰 배지: 빛이 한 번씩 훑고 지나간다 */
.review-best-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: reviewBestShine 3.2s ease-in-out infinite;
    pointer-events: none;
}

.review-best-badge > * {
    position: relative;
}

.review-best-badge .crown-ico {
    animation: reviewBestCrown 3.2s ease-in-out infinite;
    transform-origin: 50% 80%;
}

@keyframes reviewBestShine {
    0%, 55% { transform: translateX(-120%); }
    85%, 100% { transform: translateX(120%); }
}

@keyframes reviewBestCrown {
    0%, 60%, 100% { transform: rotate(0) scale(1); }
    70% { transform: rotate(-12deg) scale(1.15); }
    80% { transform: rotate(8deg) scale(1.1); }
}

/* 베스트 후기 줄 · 카드 강조 (상품 상세 후기 탭 · 후기 목록) */
.dt-review-item--best {
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(34, 116, 210, 0.06), rgba(34, 116, 210, 0.015) 70%);
    box-shadow: inset 3px 0 0 var(--lguplus-color);
}

.dt-review-best {
    margin-bottom: 6px;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 0.64rem;
}

.rvb-card--best {
    border-color: rgba(34, 116, 210, 0.45);
    box-shadow: 0 6px 20px rgba(34, 116, 210, 0.1);
}

.rvb-card--best:hover {
    border-color: var(--lguplus-color);
    box-shadow: 0 10px 28px rgba(34, 116, 210, 0.16);
}

@media (max-width: 767px) {
    .rvb-card--best {
        margin: 0 -10px;
        padding-left: 10px;
        padding-right: 10px;
        border-bottom-color: var(--rm-line);
        background: linear-gradient(90deg, rgba(34, 116, 210, 0.06), rgba(34, 116, 210, 0.015) 70%);
        box-shadow: inset 3px 0 0 var(--lguplus-color);
    }

    .rvb-card--best:hover {
        box-shadow: inset 3px 0 0 var(--lguplus-color);
    }
}

@media (prefers-reduced-motion: reduce) {
    .review-best-badge::after,
    .review-best-badge .crown-ico {
        animation: none;
    }
}

.crown-ico {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
    color: #ffd54a;
}

/* 카드에서는 상품 카드의 '사전예약' 표시(.pcard-flag)처럼 우측 상단에 얹는다 */
.review-track .review-best-badge {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;
    margin: 0;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.62rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

/* 사진 없는 베스트 카드는 배지가 별점 줄에 겹치지 않게 별점을 내린다 */
.review-track > .review-card--best:not(:has(.review-card-thumb)) .review-rating {
    margin-top: 16px;
}

/* 좁은 카드에서 모델 태그가 카드 테두리 밖으로 나가지 않게 한다 */

.review-track .review-model-tag {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-list-row .rl-best {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-right: 6px;
    color: var(--lguplus-color);
    font-size: 0.8rem;
    font-weight: 700;
}

.review-list-row .rl-best .crown-ico {
    color: inherit;
}

.review-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.review-pager-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #333;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.review-pager-btn:hover:not(:disabled) {
    border-color: var(--lguplus-color);
    color: var(--lguplus-color);
}

.review-pager-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.review-pager-count {
    min-width: 56px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
}

@media (max-width: 1199px) {
    .review-track > .review-card:nth-child(n) {
        scroll-snap-align: none;
        scroll-snap-stop: normal;
    }

    .review-track > .review-card:nth-child(4n+1) {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .review-track {
        --rv-per: 4;
    }
}

@media (max-width: 991px) {
    .review-track > .review-card:nth-child(n) {
        scroll-snap-align: none;
        scroll-snap-stop: normal;
    }

    .review-track > .review-card:nth-child(3n+1) {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .review-track {
        --rv-per: 3;
    }
}

@media (max-width: 767px) {
    .review-track > .review-card:nth-child(n) {
        scroll-snap-align: none;
        scroll-snap-stop: normal;
    }

    .review-track > .review-card:nth-child(3n+1) {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    /* 휴대폰에서도 최소 세 장씩 보이게 하고, 카드가 좁아진 만큼 글자·여백을 줄여 높이를 낮춘다 */
    .review-track {
        --rv-per: 3;
        --rv-gap: 8px;
        padding: 6px 2px 10px;
    }

    .review-track > .review-card {
        padding: 10px;
        border-radius: 12px;
    }

    .review-card-thumb {
        margin: -10px -10px 8px;
    }

    .review-card-thumb-count {
        right: 5px;
        bottom: 5px;
        padding: 1px 6px;
        font-size: 0.62rem;
    }

    .review-track .review-rating {
        margin-bottom: 4px;
    }

    .review-track .review-rating .star {
        font-size: 0.66rem;
        letter-spacing: 0;
    }

    .review-track .review-title {
        font-size: 0.8rem;
        line-height: 1.35;
        margin-bottom: 4px;
        -webkit-line-clamp: 1;
    }

    .review-track .review-content {
        font-size: 0.72rem;
        line-height: 1.45;
        margin-bottom: 8px;
    }

    .review-track .review-footer {
        padding-top: 6px;
        gap: 2px 6px;
    }

    .review-track .review-author {
        font-size: 0.7rem;
    }

    .review-track .review-date {
        font-size: 0.64rem;
    }

    .review-track .review-model-tag {
        display: none;
    }

    .review-track .review-best-badge {
        top: 5px;
        right: 5px;
        gap: 2px;
        padding: 1px 5px;
        font-size: 0.55rem;
    }

    .review-track > .review-card--best:not(:has(.review-card-thumb)) .review-rating {
        margin-top: 14px;
    }

    .review-track > .review-card {
        display: flex;
    }
}

@media (max-width: 480px) {
    .review-track > .review-card {
        display: flex;
    }
}

/* 후기 작성: 첨부 사진 (기존 / 새로 고른 사진 미리보기) */
.review-upload-current,
.review-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.review-upload-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.review-upload-current img,
.review-upload-preview img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* ===== 견적서 이미지 저장 (detail.php) =====
   버튼은 보조 CTA(인터넷·번들 버튼과 같은 무채색 톤), 견적서(#quoteDocument)는 화면 밖에서 html2canvas 로만 그린다. */
.btn-quote-save {
    background: #fff;
    color: #384250;
    border: 1px dashed #c9ced6;
    padding: 10px 14px;
    border-radius: var(--d-radius);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.btn-quote-save:hover,
.btn-quote-save:focus-visible {
    background: var(--d-soft);
    border-color: #aab2bd;
    color: #212529;
}

.btn-quote-save:disabled {
    opacity: 0.7;
}

.quote-doc {
    position: fixed;
    left: -10000px;
    top: 0;
    z-index: -1;
    width: 640px;
    padding: 32px 32px 26px;
    background: #fff;
    color: #17171c;
    font-family: 'Pretendard', 'Malgun Gothic', '맑은 고딕', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}

.quote-doc-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 2px solid #17171c;
}

.quote-doc-brand {
    font-size: 15px;
    font-weight: 800;
    color: #17171c;
}

.quote-doc-uplus {
    color: #2274d2;
    font-weight: 900;
}

.quote-doc-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.quote-doc-date {
    margin-left: auto;
    font-size: 12px;
    color: #8b95a1;
}

.quote-doc-phone {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #f7f8fa;
}

.quote-doc-image {
    width: 96px;
    height: 96px;
    object-fit: contain;
    flex-shrink: 0;
}

.quote-doc-phone-name {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.quote-doc-phone-option {
    margin-top: 2px;
    font-size: 14px;
    color: #5b6270;
}

.quote-doc-terms {
    width: 100%;
    margin-bottom: 16px;
    border-collapse: collapse;
}

.quote-doc-terms th,
.quote-doc-terms td {
    padding: 9px 12px;
    border-bottom: 1px solid #eceef2;
    font-size: 13.5px;
    text-align: left;
    vertical-align: top;
}

.quote-doc-terms th {
    width: 110px;
    color: #8b95a1;
    font-weight: 600;
}

.quote-doc-terms td {
    font-weight: 600;
}

.quote-doc .estimate-card-new {
    margin: 0 !important;
    border: 1px solid #e7e9ee !important;
    border-radius: 12px !important;
}

.quote-doc-foot {
    margin-top: 16px;
    font-size: 11.5px;
    color: #8b95a1;
    text-align: center;
}

.quote-doc-site {
    margin-top: 4px;
    font-weight: 700;
    color: #5b6270;
}

/* ===== 견적카드 PC 촘촘하게 (detail.php 오른쪽) =====
   부가서비스 · 결합 · 번들 · 페이백까지 켜면 카드가 화면보다 길어져서, PC 에서만 줄 간격과 여백을 줄인다.
   모바일과 견적서 이미지(.quote-doc 안의 복제본)는 원래 간격을 쓴다. */
@media (min-width: 992px) {
    .detail-estimate-col .estimate-section {
        padding: 11px 16px;
    }

    .detail-estimate-col .section-header {
        margin-bottom: 4px;
    }

    .detail-estimate-col .section-detail {
        padding-top: 0;
    }

    .detail-estimate-col .detail-row {
        padding: 2px 0;
    }

    .detail-estimate-col .detail-value.self-discount {
        font-size: 0.94rem;
    }

    .detail-estimate-col .detail-row.highlight {
        margin: 3px 0;
        padding: 5px 10px;
    }

    .detail-estimate-col .detail-row.result {
        padding-top: 6px;
        margin-top: 4px;
    }

    .detail-estimate-col .detail-row.result .detail-value {
        font-size: 0.98rem;
    }

    .detail-estimate-col .installment-rate-badge {
        margin-top: 6px;
        padding: 3px 10px;
        font-size: 0.74rem;
    }

    .detail-estimate-col .choice-benefit-box {
        margin-top: 6px;
        padding: 7px 12px;
    }

    .detail-estimate-col .choice-benefit-box i {
        font-size: 1rem;
    }

    .detail-estimate-col .choice-benefit-box span {
        font-size: 0.84rem;
    }

    .detail-estimate-col .choice-benefit-box strong {
        font-size: 1rem;
    }

    .detail-estimate-col .estimate-total-section {
        padding: 11px 16px;
    }

    .detail-estimate-col .daemyung-final-bar {
        padding: 9px 16px;
    }

    .detail-estimate-col .payback-benefit-section {
        margin-top: 8px;
    }

    .detail-estimate-col .payback-benefit-header {
        padding: 7px 14px;
        font-size: 0.88rem;
    }

    .detail-estimate-col .payback-benefit-body {
        padding: 6px 14px;
    }

    .detail-estimate-col .payback-benefit-body .detail-row {
        padding: 2px 0;
    }

    /* 카드 아래 버튼들 사이 간격 */
    .detail-estimate-col .estimate-buttons {
        margin-top: 10px;
    }

    .detail-estimate-col .btn-order-lg {
        padding: 11px 16px;
    }

    .detail-estimate-col .internet-bundle-trigger.mt-3,
    .detail-estimate-col .bundle-device-trigger.mt-3 {
        margin-top: 8px !important;
    }

    .detail-estimate-col .btn-internet-bundle,
    .detail-estimate-col .btn-bundle-device {
        padding: 8px 14px;
    }

    .detail-estimate-col .btn-quote-save {
        padding: 7px 14px;
    }
}

/* ===== 자체할인 없는 요금제 안내 (detail.php #noSelfDiscountModal, 모양은 .bundle-prompt) ===== */
.nsd-icon {
    background: #fff7ed;
    color: #ea580c;
}

.nsd-list-label {
    margin: 4px 0 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--d-muted);
    text-align: left;
}

.nsd-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nsd-plan {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "name discount" "price discount";
    align-items: center;
    gap: 0 10px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--d-line);
    border-radius: 10px;
    background: #fff;
    text-align: left;
    transition: border-color 0.15s, background 0.15s;
}

.nsd-plan:hover,
.nsd-plan:focus-visible {
    border-color: var(--d-accent-line);
    background: var(--d-accent-soft);
}

.nsd-plan-name {
    grid-area: name;
    font-size: 0.88rem;
    font-weight: 700;
    color: #212529;
}

.nsd-plan-price {
    grid-area: price;
    font-size: 0.78rem;
    color: var(--d-muted);
}

.nsd-plan-discount {
    grid-area: discount;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* ===== 견적카드 아래 혜택 버튼 (detail.php 인터넷+TV · 번들 단말기) =====
   아이콘 타일 + 제목/배지 + 혜택 한 줄. 번들은 실제로 무료 조건이 있을 때(.is-free) FREE 리본과 반짝임을 붙인다. */
.btn.trigger-card {
    --tc-color: #2563eb;
    --tc-soft: #eff6ff;
    --tc-line: #bfdbfe;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid var(--tc-line);
    border-radius: 14px;
    background: linear-gradient(135deg, #fff 0%, var(--tc-soft) 100%);
    color: #17171c;
    text-align: left;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(23, 23, 28, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn.trigger-card:hover,
.btn.trigger-card:focus-visible {
    color: #17171c;
    border-color: var(--tc-color);
    background: linear-gradient(135deg, #fff 0%, var(--tc-soft) 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(23, 23, 28, 0.09);
}

.trigger-card--bundle {
    --tc-color: #3256ab;
    --tc-soft: #f3f6fc;
    --tc-line: #d7e0f4;
}

.trigger-card-icon {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--tc-color);
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(23, 23, 28, 0.15);
}

/* 번들: 태블릿 + 워치 겹친 아이콘 */
.trigger-card--bundle .trigger-card-icon {
    background: linear-gradient(135deg, #476eca, #2b4b95);
}

.trigger-card--bundle .trigger-card-icon .bi-tablet-fill {
    font-size: 1.25rem;
    margin-left: -6px;
}

.trigger-card--bundle .trigger-card-icon .bi-smartwatch {
    position: absolute;
    right: 5px;
    bottom: 5px;
    font-size: 0.85rem;
    padding: 1px;
    border-radius: 4px;
    background: #2b4b95;
}

.trigger-card-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trigger-card-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.93rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.trigger-card-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--tc-color);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0;
}

.trigger-card-sub {
    font-size: 0.79rem;
    font-weight: 500;
    color: #5b6270;
}

.trigger-card-sub strong {
    color: var(--tc-color);
    font-weight: 800;
}

.trigger-card-arrow {
    flex-shrink: 0;
    font-size: 0.9rem;
    color: var(--tc-color);
}

/* 무료 번들 강조: FREE 리본 + 지나가는 반짝임 */
.trigger-card--bundle.is-free {
    border-color: #adbee7;
}

.trigger-card-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px 9px 3px 10px;
    border-bottom-left-radius: 10px;
    background: linear-gradient(135deg, #3f8ae0, #2274d2);
    color: #fff;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.trigger-card--bundle.is-free .trigger-card-badge {
    background: linear-gradient(135deg, #3f8ae0, #2274d2);
}

.trigger-card--bundle.is-free::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-18deg);
    animation: trigger-card-shine 3.6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes trigger-card-shine {
    0%, 60% { left: -60%; }
    100% { left: 130%; }
}

@media (prefers-reduced-motion: reduce) {
    .trigger-card--bundle.is-free::after {
        animation: none;
        display: none;
    }
}

/* PC 촘촘 규칙(.detail-estimate-col .btn-*-bundle padding)보다 뒤에서 카드 여백을 다시 정한다 */
.detail-estimate-col .btn.trigger-card {
    padding: 11px 14px;
}

/* 예전 버튼 규칙(.btn-internet-bundle i.bi-*)이 아이콘 크기 · 화살표 색을 덮지 않게 */
.btn.trigger-card .trigger-card-arrow {
    font-size: 0.9rem;
    color: var(--tc-color);
}

.btn.trigger-card .trigger-card-icon > .bi-router-fill {
    font-size: 1.3rem;
}

/* 번들 모달: 고른 기기가 모두 기기값 0원일 때 할부개월 대신 보이는 안내 */
.bundle-no-inst-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.85rem;
}

.bundle-no-inst-note > i {
    font-size: 1.15rem;
    margin-top: 1px;
}

.bundle-no-inst-note strong {
    display: block;
    font-weight: 800;
}

/* ===== 모바일 하단바 금액 줄 · 버튼 (detail.php #mobileBottomBar) =====
   칸 안에서 "할부금 / 0원" 처럼 줄이 넘어가지 않게 묶고, 글자는 화면 폭에 맞춰 줄인다.
   그래도 넘치면 fitMobilePriceRow() 가 .mpc-stack 을 붙여 월납부금만 아랫줄로 내린다. */
.mpc-row {
    gap: 4px;
}

.mpc-item,
.mpc-op,
.mpc-total {
    white-space: nowrap;
    flex-shrink: 0;
}

.mpc-item {
    font-size: clamp(0.68rem, 3.1vw, 0.78rem);
}

.mpc-total {
    font-size: clamp(0.74rem, 3.4vw, 0.85rem);
}

.mpc-total strong {
    font-size: clamp(0.9rem, 4.2vw, 1.05rem);
}

.mpc-row.mpc-stack {
    flex-wrap: wrap;
    row-gap: 1px;
}

.mpc-row.mpc-stack .mpc-eq {
    display: none;
}

.mpc-row.mpc-stack .mpc-total {
    flex-basis: 100%;
    text-align: center;
}

/* 카톡문의 · 견적저장 · 주문 */
.mbb-quote {
    background: #f1f3f5;
    color: #384250;
    border-left: 1px solid #e5e7eb;
}

.mbb-quote:hover,
.mbb-quote:active {
    color: #212529;
}

.mbb-btn {
    white-space: nowrap;
    font-size: clamp(0.78rem, 3.6vw, 0.88rem);
    gap: 4px;
}

/* 모바일 하단바 함께 신청 혜택 (인터넷+TV · 번들 단말기)
   금액 줄과 버튼 사이에 반반 나눈 네모 칸. 아이콘 타일 + 이름/혜택 두 줄. 고르면 .is-selected */
.mobile-offer-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    border-top: 1px solid var(--d-line);
    background: #fff;
}

.moc-chip {
    --moc-color: #2563eb;
    --moc-soft: #eff6ff;
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px 9px 12px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #17171c;
    text-align: left;
    transition: background 0.15s;
}

.moc-chip + .moc-chip {
    border-left: 1px solid var(--d-line);
}

.moc-chip:active {
    background: var(--moc-soft);
}

.moc-chip--bundle {
    --moc-color: #3256ab;
    --moc-soft: #f3f6fc;
}

.moc-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--moc-soft);
    color: var(--moc-color);
    font-size: 0.98rem;
}

.moc-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.moc-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: clamp(0.72rem, 3.3vw, 0.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.moc-free {
    flex-shrink: 0;
    padding: 0 4px;
    border-radius: 3px;
    background: linear-gradient(135deg, #3f8ae0, #2274d2);
    color: #fff;
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.moc-sub {
    font-size: clamp(0.66rem, 3vw, 0.72rem);
    font-weight: 700;
    color: var(--moc-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.moc-chip--bundle.is-free .moc-sub {
    color: #2274d2;
}

.moc-arrow {
    flex-shrink: 0;
    font-size: 0.72rem;
    color: #b0b7c3;
}

/* 고른 뒤: 왼쪽 색 띠 + 초록 "선택됨" */
.moc-chip.is-selected {
    background: var(--moc-soft);
}

.moc-chip.is-selected::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--moc-color);
}

.moc-chip.is-selected .moc-sub {
    color: #16a34a;
}

/* ===== 번들 단말기 선택 모달 (detail.php #bundleDeviceModal) =====
   인터넷+TV 모달 · 모바일 하단바 혜택 칸과 같은 결: 그라데이션 헤더 + 칩, 흰 카드, 네모 세그먼트, 진한 확인 버튼.
   카드 · 할부 버튼의 클래스와 JS(toggleBundleDevice · selectBundleInstallment) 동작은 그대로 두고 모양만 덮는다. */
#bundleDeviceModal {
    --bd-color: #3256ab;
    --bd-color-2: #2b4b95;
    --bd-soft: #f3f6fc;
    --bd-line: #eceef2;
    --bd-ink: #17171c;
    --bd-sub: #5b6270;
    --bd-muted: #8b95a1;
}

#bundleDeviceModal .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(23, 23, 28, 0.25);
}

/* 헤더 */
#bundleDeviceModal .bd-hero {
    position: relative;
    align-items: flex-start;
    padding: 24px 28px 22px;
    border: 0;
    color: #fff;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(135deg, #476eca 0%, var(--bd-color) 45%, #243f7d 100%);
    overflow: hidden;
}

#bundleDeviceModal .bd-hero-text {
    position: relative;
    z-index: 1;
    min-width: 0;
}

#bundleDeviceModal .bd-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.92;
}

#bundleDeviceModal .bd-hero .modal-title {
    margin: 4px 0 12px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

#bundleDeviceModal .bd-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#bundleDeviceModal .bd-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

#bundleDeviceModal .bd-chip--free {
    background: #fff;
    border-color: #fff;
    color: #2274d2;
    font-weight: 800;
}

#bundleDeviceModal .bd-chip--free em {
    padding: 0 5px;
    border-radius: 3px;
    background: linear-gradient(135deg, #3f8ae0, #2274d2);
    color: #fff;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.04em;
}

#bundleDeviceModal .bd-hero-icon {
    position: absolute;
    right: 56px;
    bottom: -20px;
    font-size: 7.5rem;
    line-height: 1;
    opacity: 0.14;
    transform: rotate(-10deg);
    pointer-events: none;
}

#bundleDeviceModal .bd-hero .btn-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    margin: 0;
    opacity: 0.9;
}

/* 본문 */
#bundleDeviceModal .modal-body {
    padding: 18px 22px 20px;
    background: #f7f8fa;
}

#bundleDeviceModal .bd-intro {
    margin: 0 0 12px;
    font-size: 0.85rem;
    color: var(--bd-sub);
}

/* 기기 카드 */
#bundleDeviceModal .bundle-card-list {
    gap: 10px;
}

#bundleDeviceModal .bundle-card-item {
    gap: 14px;
    padding: 14px 44px 14px 14px;
    border: 1px solid var(--bd-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(23, 23, 28, 0.04);
    overflow: hidden;
}

#bundleDeviceModal .bundle-card-item:hover {
    border-color: #d2dcf2;
    background: #fff;
    box-shadow: 0 6px 18px rgba(23, 23, 28, 0.07);
}

#bundleDeviceModal .bundle-card-item.selected {
    border-color: var(--bd-color);
    background: var(--bd-soft);
    box-shadow: 0 6px 18px rgba(50, 86, 171, 0.14);
}

#bundleDeviceModal .bundle-card-item.selected::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--bd-color);
}

#bundleDeviceModal .bci-image,
#bundleDeviceModal .bci-image-placeholder {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    background: #f7f8fa;
}

#bundleDeviceModal .bci-image-placeholder {
    color: var(--bd-color);
}

#bundleDeviceModal .bci-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 3px;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--bd-ink);
    letter-spacing: -0.01em;
}

#bundleDeviceModal .bci-tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    background: #f1f3f5;
    color: var(--bd-sub);
    font-size: 0.66rem;
    font-weight: 700;
}

#bundleDeviceModal .bci-tag--warn {
    background: #fff7ed;
    color: #c2410c;
}

#bundleDeviceModal .bci-fee {
    gap: 6px;
    margin-bottom: 2px;
}

#bundleDeviceModal .bci-effective-fee {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--bd-color);
}

#bundleDeviceModal .bci-effective-fee::before {
    content: "월 ";
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bd-muted);
}

#bundleDeviceModal .bci-discount {
    padding: 1px 7px;
    border-radius: 4px;
    background: #fff1f2;
    color: #e11d48;
    font-size: 0.72rem;
    font-weight: 800;
}

#bundleDeviceModal .bci-info {
    gap: 4px 10px;
    font-size: 0.75rem;
    color: var(--bd-muted);
}

#bundleDeviceModal .bci-principal {
    display: inline-block;
    margin-top: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--bd-sub);
}

#bundleDeviceModal .bci-principal.is-zero {
    padding: 2px 8px;
    border-radius: 4px;
    background: #f0fdf4;
    color: #15803d;
}

/* 선택 표시: 네모 체크 */
#bundleDeviceModal .bci-select-badge {
    top: 50%;
    right: 14px;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    border-radius: 7px;
    border: 1.5px solid #d6dbe1;
    background: #fff;
    color: transparent;
}

#bundleDeviceModal .bundle-card-item.selected .bci-select-badge {
    border-color: var(--bd-color);
    background: var(--bd-color);
    color: #fff;
}

#bundleDeviceModal .bci-color-dot.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px var(--bd-color);
}

/* 할부개월: 네모 세그먼트 */
#bundleDeviceModal #bundleInstallmentSection {
    border-top: 0 !important;
    padding-top: 0 !important;
    margin-top: 18px !important;
}

#bundleDeviceModal .bd-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--bd-ink);
}

#bundleDeviceModal .bd-seg {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--bd-line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

#bundleDeviceModal .bundle-inst-btn {
    padding: 10px 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: var(--bd-sub);
    font-size: 0.86rem;
    font-weight: 700;
}

#bundleDeviceModal .bundle-inst-btn + .bundle-inst-btn {
    border-left: 1px solid var(--bd-line);
}

#bundleDeviceModal .bundle-inst-btn:hover {
    color: var(--bd-color);
    background: var(--bd-soft);
}

#bundleDeviceModal .bundle-inst-btn.active {
    background: var(--bd-color);
    color: #fff;
}

/* 기기값 0원 안내 */
#bundleDeviceModal .bundle-no-inst-note {
    margin-top: 18px !important;
    border-radius: 10px;
}

/* 월정액 무료 가능 요금제 */
#bundleDeviceModal .bd-free-plans {
    border: 1px solid var(--bd-line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

#bundleDeviceModal .bd-free-plans-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 11px 14px;
    border: 0;
    background: #fff;
    color: var(--bd-ink);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: left;
}

#bundleDeviceModal .bd-free-plans-toggle > .bi-gift {
    color: #2274d2;
}

#bundleDeviceModal .bd-free-plans-arrow {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--bd-muted);
    transition: transform 0.2s;
}

#bundleDeviceModal .bd-free-plans-toggle[aria-expanded="true"] .bd-free-plans-arrow {
    transform: rotate(180deg);
}

#bundleDeviceModal .bd-free-plans-body {
    padding: 10px 14px 12px;
    border-top: 1px solid var(--bd-line);
    background: #fafbfc;
}

/* 하단 */
#bundleDeviceModal .bd-footer {
    justify-content: space-between;
    gap: 10px;
    padding: 12px 22px;
    border-top: 1px solid var(--bd-line);
    background: #fff;
}

#bundleDeviceModal .bd-count {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--bd-color);
}

#bundleDeviceModal .bd-footer-actions {
    display: flex;
    gap: 6px;
}

#bundleDeviceModal .bd-clear-btn {
    padding: 9px 16px;
    border: 1px solid var(--bd-line);
    border-radius: 10px;
    background: #fff;
    color: var(--bd-sub);
    font-size: 0.86rem;
    font-weight: 700;
}

#bundleDeviceModal .bd-clear-btn:hover {
    background: #f7f8fa;
    color: var(--bd-ink);
}

#bundleDeviceModal .bd-done-btn {
    min-width: 110px;
    padding: 9px 20px;
    border-radius: 10px;
    background: var(--bd-ink);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
}

#bundleDeviceModal .bd-done-btn:hover {
    background: #000;
    color: #fff;
}

@media (max-width: 768px) {
    #bundleDeviceModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    #bundleDeviceModal .bd-hero {
        padding: 20px 18px 18px;
    }

    #bundleDeviceModal .bd-hero .modal-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    #bundleDeviceModal .bd-chip {
        font-size: 0.74rem;
        padding: 4px 9px;
    }

    #bundleDeviceModal .bd-hero-icon {
        right: 10px;
        font-size: 5.5rem;
    }

    #bundleDeviceModal .bd-hero .btn-close {
        top: 14px;
        right: 14px;
    }

    #bundleDeviceModal .modal-body {
        padding: 14px 12px 16px;
    }

    #bundleDeviceModal .bundle-card-item {
        gap: 10px;
        padding: 12px 40px 12px 12px;
    }

    #bundleDeviceModal .bci-image,
    #bundleDeviceModal .bci-image-placeholder {
        width: 60px;
        height: 60px;
    }

    #bundleDeviceModal .bci-name {
        font-size: 0.9rem;
    }

    #bundleDeviceModal .bci-effective-fee {
        font-size: 1rem;
    }

    #bundleDeviceModal .bd-footer {
        padding: 10px 12px;
    }

    #bundleDeviceModal .bd-done-btn {
        min-width: 96px;
    }
}

/* 인터넷+TV 모달도 하단바 · 번들 모달과 같은 네모 결로 (둥근 알약 → 각진 모서리) */
#internetBundleModal .ib-chip {
    border-radius: 8px;
}

#internetBundleModal .nav-pills {
    border-radius: 10px;
}

#internetBundleModal .nav-pills .nav-link {
    border-radius: 7px;
}

#internetBundleModal .internet-select-btn {
    border-radius: 8px;
}

#internetBundleModal .internet-bundle-table small.text-danger,
#internetBundleModal .together-disabled-content .small {
    border-radius: 4px;
}

#internetBundleModal .ib-gift {
    border-radius: 6px;
}

#internetBundleModal #selectedInternetPlan .btn-outline-danger {
    border-radius: 8px;
}

#internetBundleModal .ib-done-btn {
    border-radius: 10px;
}

/* 번들 무료 요금제 안내 (detail.php #bundlePlanGuideModal, 목록 모양은 .nsd-*) */
.bguide-icon {
    background: #f3f6fc;
    color: #3256ab;
}

.bguide-free {
    display: inline-block;
    margin-right: 3px;
    padding: 0 4px;
    border-radius: 3px;
    background: linear-gradient(135deg, #3f8ae0, #2274d2);
    color: #fff;
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.04em;
    vertical-align: 1px;
}

#bundlePlanGuideModal .nsd-plan-discount {
    font-size: 0.78rem;
    padding: 2px 7px;
    border-radius: 4px;
    background: #f0f6fc;
}

/* 번들 안내 요금제 줄: 이름 · 월요금 / 아래 줄에 종류별 혜택 ("워치 무료 · 탭 월정액 50% 할인") */
.nsd-plan.bguide-plan {
    grid-template-columns: 1fr auto;
    grid-template-areas: "name price" "tag tag";
    gap: 3px 10px;
}

.bguide-plan .nsd-plan-price {
    font-weight: 700;
    color: #5b6270;
}

.bguide-tag {
    grid-area: tag;
    justify-self: start;
    padding: 2px 7px;
    border-radius: 4px;
    background: #f3f6fc;
    color: #2b4b95;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.4;
}

#bundleGuideBothList .bguide-tag {
    background: #f0f6fc;
    color: #2274d2;
}

/* 자체할인 없는 요금제 안내: 요금제 유지 기간 안내 */
.nsd-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 12px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f7f8fa;
    color: #5b6270;
    font-size: 0.78rem;
    font-weight: 600;
}
