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

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

:root {
    --primary-color: #e91e63;
    --secondary-color: #9c27b0;
    --accent-color: #ff5722;
    --lguplus-color: #e91e63;
    --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: #fdeff5;
    --d-accent-line: #f6d4e4;
}

/* 기본 스타일 */
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: #fff5f8;
}

.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(233, 30, 99, 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: #f8f0f4;
}

.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(233, 30, 99, 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(233, 30, 99, 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: #fdeff5;
    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), #c2185b);
    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(233, 30, 99, 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: #fff5f8;
}

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

.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%, #764ba2 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, #fff5f8, #fce4ec);
}

.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, #ec4899, #d81b60);
    color: white;
    font-size: 1rem;
    box-shadow: 0 3px 10px rgba(216, 27, 96, 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: #b0135a;
}

.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: #6f42c1;
    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, #ec4899, #d81b60);
    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, #f5f0ff 0%, #fff0f5 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(233, 30, 99, 0.15);
}

.internet-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--lguplus-color), #9c27b0);
    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: #fff5f8;
    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: #c2185b;
    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, #8b5cf6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 15px rgba(139, 92, 246, 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, #8b5cf6, #6366f1) border-box;
    box-shadow: 0 8px 40px rgba(139, 92, 246, 0.2);
}

.vs-card.koang:hover {
    box-shadow: 0 12px 50px rgba(139, 92, 246, 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), #8b5cf6);
    -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), #8b5cf6);
    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);
}

/* ===== 전체요금제 / 제휴카드 버튼 ===== */
.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: #fce4ec;
}

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

/* ===== 광컴퍼니 자체할인 배너 (요금제 선택) ===== */
.self-discount-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #ec4899 0%, #d81b60 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: #d81b60;
    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, #ff6b9d, #c44569);
    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, #ff6b9d, #c44569);
    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(233, 30, 99, 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, #fff5f8 0%, #fce4ec 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, #ff6b9d, #c44569);
}

.phone-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 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-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-btn-wrap {
    text-align: center;
    margin-top: 40px;
}

.review-write-btn {
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
}

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

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

/* ===== 리뷰 게시판 페이지 ===== */
.review-page-header {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 30px;
}

.review-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.review-page-desc {
    color: #666;
    margin-bottom: 20px;
}

.btn-write {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
}

.empty-reviews {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty-reviews i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-reviews h4 {
    color: #666;
    margin-bottom: 10px;
}

/* 리뷰 목록 그리드 */
.review-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.review-list-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.review-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: inherit;
}

.review-list-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f8f9fa;
}

.review-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.review-list-card:hover .review-list-image img {
    transform: scale(1.05);
}

.review-list-content {
    padding: 20px;
}

.review-list-rating {
    margin-bottom: 10px;
}

.review-list-rating .star {
    color: #ddd;
    font-size: 0.9rem;
}

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

.review-list-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.review-list-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

.review-list-date {
    color: #999;
}

/* 리뷰 페이징 */
.review-pagination {
    margin-top: 40px;
}

.review-pagination .page-link {
    border-radius: 8px;
    margin: 0 3px;
    color: #666;
    border: 1px solid #e9ecef;
}

.review-pagination .page-item.active .page-link {
    background: var(--lguplus-color);
    border-color: var(--lguplus-color);
}

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

@media (max-width: 576px) {
    .review-list-grid {
        grid-template-columns: 1fr;
    }

    .review-page-title {
        font-size: 1.5rem;
    }
}

/* ===== 리뷰 리스트 모드 (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: #f8f4ff;
    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;
}

/* 리뷰 모달 별점 */
#rmRating .star {
    font-size: 1.3rem;
    color: #ddd;
}

#rmRating .star.filled {
    color: #ffc107;
}

@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;
}

/* ===== 리뷰 상세 페이지 ===== */
.review-view-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

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

.review-view-rating {
    margin-bottom: 15px;
}

.review-view-rating .star {
    font-size: 1.2rem;
    color: #ddd;
}

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

.review-view-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.review-view-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.9rem;
}

.review-view-meta i {
    margin-right: 5px;
}

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

.review-view-image {
    margin-bottom: 25px;
    text-align: center;
}

.review-view-image img {
    max-width: 100%;
    border-radius: 12px;
}

.review-view-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

.review-view-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

/* 이전/다음 네비게이션 */
.review-nav {
    display: flex;
    gap: 15px;
}

.review-nav-item {
    flex: 1;
    display: block;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.review-nav-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.review-nav-item.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.review-nav-item.next {
    text-align: right;
}

.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-view-header,
    .review-view-content,
    .review-write-form {
        padding: 20px;
    }

    .review-view-title {
        font-size: 1.3rem;
    }

    .review-view-meta {
        flex-direction: column;
        gap: 8px;
    }

    .review-nav {
        flex-direction: column;
    }

    .review-nav-item.next {
        text-align: left;
    }

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

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

/* ===== 푸터 스타일 ===== */
.site-footer {
    background: #fff;
    color: #333;
    padding: 40px 0 30px;
    margin-top: 50px;
    border-top: 1px solid #e9ecef;
}

.site-footer h5 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

/* 푸터 로고 (헤더 로고와 동일 스타일) */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
.footer-logo .logo-uplus {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--lguplus-color);
    line-height: 1;
}
.footer-logo .logo-uplus sup {
    font-size: 0.7em;
    color: var(--lguplus-color);
}
.footer-logo .logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark-color);
    letter-spacing: -0.5px;
}

.site-footer .footer-sub {
    color: #666;
    margin-bottom: 0;
}

.site-footer .footer-time {
    color: #666;
}

.site-footer hr {
    border-color: #e9ecef;
}

.site-footer .footer-info {
    color: #666;
}

.site-footer .footer-info strong {
    color: #333;
}

.site-footer .footer-copy {
    color: #999;
}

.site-footer .footer-legal {
    margin-bottom: 8px;
}

.site-footer .footer-legal-link {
    color: #333;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer .footer-legal-link:first-child {
    color: var(--primary-color, #e91e63);
}

.site-footer .footer-legal-link:hover {
    color: var(--primary-color, #e91e63);
    text-decoration: underline;
}

.site-footer .footer-legal-divider {
    color: #ccc;
    margin: 0 10px;
    font-size: 0.8rem;
}

.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, #e91e63);
    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%, #764ba2 100%);
    color: #fff;
}

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

.site-footer .footer-cert-logo {
    max-width: 100px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.site-footer .footer-cert-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}


/* ===== 주문조회 모달 타임라인 스타일 ===== */
.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: #6f42c1 !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: #6f42c1 !important;
    color: #fff !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: #fff5f8;
}

/* 모달 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: #fff5f8;
}

.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, #ec4899, #d81b60);
    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(233, 30, 99, 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: #b0135a;
    text-decoration: underline;
}

/* 안내 모달 헤더. 모달마다 파랑·빨강·초록으로 갈렸던 것을 브랜드색 한 벌로 통일한다. */
.modal-header-brand {
    background: linear-gradient(135deg, #ec4899, #d81b60);
    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: #b0135a;
    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: #d81b60;
}

/* ===== 휴대폰 섹션 스타일 (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: #6f42c1;
}

.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: #fff5f8;
    transition: all 0.2s ease;
}

.plan-selected-header:hover {
    background: #fce4ec;
}

.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: #fff5f8;
    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;
}

/* ===== 가족결합 탭 ===== */
.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: #fff5f8;
    border-radius: 8px;
}

.contract-result-compact.equal {
    color: #4b5563;
    background: var(--d-soft);
}

/* ===== 전체 섹션 더 컴팩트 ===== */
/* PC에서 주문 버튼 (견적 카드 내) */
/* 페이지의 유일한 주 CTA. 나머지 버튼은 무채색으로 두어 여기로 시선이 모이게 한다. */
.btn-order-lg {
    background: linear-gradient(135deg, #ec4899, #d81b60);
    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(216, 27, 96, 0.22);
}

.btn-order-lg:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(216, 27, 96, 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);
}

/* ===== 인터넷 모달 스타일 ===== */
#internetBundleModal .modal-header {
    background: linear-gradient(135deg, #ec4899, #d81b60) !important;
    padding: 15px 20px;
}

#internetBundleModal .modal-body {
    padding: 20px;
}

#internetBundleModal .internet-bundle-table th {
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* 인터넷 모달 모바일 최적화 - 카드형 레이아웃 */
@media (max-width: 768px) {
    #internetBundleModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    #internetBundleModal .modal-header {
        padding: 12px 15px;
    }

    #internetBundleModal .modal-header h5 {
        font-size: 1rem;
    }

    #internetBundleModal .modal-body {
        padding: 12px;
    }

    /* 테이블 → 카드형 변환 */
    #internetBundleModal .internet-bundle-table {
        border: none;
    }

    #internetBundleModal .internet-bundle-table thead {
        display: none;
    }

    #internetBundleModal .internet-bundle-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    #internetBundleModal .internet-bundle-table tbody tr {
        display: block;
        background: #fff;
        border: 1px solid #e9ecef;
        border-radius: 12px;
        padding: 0;
        overflow: hidden;
        box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    }

    #internetBundleModal .internet-bundle-table tbody td {
        display: block;
        border: none;
        border-bottom: 1px solid #f5f5f5;
        padding: 10px 14px;
        text-align: left;
    }

    #internetBundleModal .internet-bundle-table tbody td:last-child {
        border-bottom: none;
    }

    /* 상품명 셀 (첫번째) - 헤더 스타일 */
    #internetBundleModal .internet-bundle-table tbody td:first-child {
        background: #f8f9fa;
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    #internetBundleModal .internet-bundle-table tbody td:first-child::before {
        display: none;
    }

    /* 나머지 셀 - 라벨 위, 값 아래 */
    #internetBundleModal .internet-bundle-table tbody td:not(:first-child)::before {
        content: attr(data-label);
        display: block;
        font-size: 0.72rem;
        font-weight: 700;
        color: #888;
        margin-bottom: 4px;
        letter-spacing: -0.3px;
    }

    /* 월 요금 셀 */
    #internetBundleModal .internet-bundle-table tbody td[data-label="월 요금"] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 6px;
    }

    #internetBundleModal .internet-bundle-table tbody td[data-label="월 요금"]::before {
        flex-basis: 100%;
    }

    /* 결합 셀 - 가격+할인+버튼을 한 줄에 */
    #internetBundleModal .internet-bundle-table tbody td[data-label="참쉬운가족결합"],
    #internetBundleModal .internet-bundle-table tbody td[data-label="투게더결합"] {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 4px 8px;
    }

    #internetBundleModal .internet-bundle-table tbody td[data-label="참쉬운가족결합"]::before,
    #internetBundleModal .internet-bundle-table tbody td[data-label="투게더결합"]::before {
        flex-basis: 100%;
    }

    #internetBundleModal .internet-bundle-table tbody td[data-label="참쉬운가족결합"] .d-block,
    #internetBundleModal .internet-bundle-table tbody td[data-label="투게더결합"] .d-block,
    #internetBundleModal .internet-bundle-table tbody td[data-label="투게더결합"] .together-available-content .d-block {
        display: inline !important;
        margin-left: 6px;
    }

    /* 사은품 셀 */
    #internetBundleModal .internet-bundle-table tbody td[data-label="사은품"] {
        background: #fafafa;
        border-radius: 0 0 12px 12px;
    }

    #internetBundleModal .internet-bundle-table tbody td[data-label="사은품"] .d-block {
        display: inline !important;
        margin-left: 6px;
    }

    /* 버튼 크기 */
    #internetBundleModal .internet-bundle-table .internet-select-btn {
        font-size: 0.78rem;
        padding: 5px 14px;
        border-radius: 6px;
    }

    /* 투게더 비활성 */
    .together-disabled-content {
        font-size: 0.78rem;
    }

    .together-disabled-content .small {
        font-size: 0.75rem !important;
    }

    .together-disabled-content br {
        display: none;
    }

    /* 속도 탭 */
    #internetBundleModal .nav-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 5px;
    }

    #internetBundleModal .nav-pills .nav-link {
        font-size: 0.85rem;
        padding: 8px 16px;
        white-space: nowrap;
    }

    /* 선택 확인 영역 */
    #internetBundleModal #selectedInternetPlan {
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    /* table-responsive 스크롤 불필요 */
    #internetBundleModal .table-responsive {
        overflow-x: visible;
    }
}

/* ===== 우측 하단 고정 사이드바 ===== */
.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: #c2185b;
    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: #6f42c1 !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: #6f42c1;
    background: #faf8ff;
}
.bundle-card-item.selected {
    border-color: #6f42c1;
    background: #f3eeff;
    box-shadow: 0 0 0 1px #6f42c1;
}

.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: #f0ecf5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #6f42c1;
}

.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: #6f42c1;
}
.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: #6f42c1;
    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: #6f42c1;
    box-shadow: 0 0 0 2px #6f42c1;
}

/* 번들 다중 기기 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: #6f42c1;
    color: #6f42c1;
}
.bundle-inst-btn.active {
    border-color: #6f42c1;
    background: #6f42c1;
    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-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: #f8f4ff;
    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: #fef6f9;
}
.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: #f0e6f6;
    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: #f8f4ff;
    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: #f8f4ff;
    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, #e91e63);
}
.all-type-notice {
    background: #6f42c1;
}
.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: #f8f4ff;
    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, #fff5f8 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, #e91e63 0%, #9c27b0 100%);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(233, 30, 99, 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, #6a3fd6);
    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: #d6336c;
    background: #fff4f8;
    border-color: rgba(214, 51, 108, 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: #6741d9;
    background: #f7f4ff;
    border-color: rgba(103, 65, 217, 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: #e6e0fb;
}

.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, #6a3fd6);
    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, #f6f4ff 0%, #fdeef7 100%);
    border: 1px solid #e6e0fb;
    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, #6a3fd6, #e6007e 52%, rgba(230, 0, 126, 0)) top left / 100% 2px no-repeat,
        radial-gradient(120% 90% at 100% 0%, rgba(106, 63, 214, 0.055), transparent 62%),
        radial-gradient(90% 70% at 0% 100%, rgba(230, 0, 126, 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: #6a3fd6;
}

.preorder-eyebrow::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a3fd6, #e6007e);
}

.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: #f7f7f9;
}

.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: #e6007e;
    --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);
}

/* 상세 팝오버가 이웃 카드 위로 떠야 하므로 열린 카드만 위로 올린다 */
.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: var(--pc-soft);
    border-radius: 13px 13px 0 0;
    overflow: hidden;
}

.pcard-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.pcard-img-empty {
    font-size: 3rem;
    color: #c9ced4;
}

.pcard-mfr,
.pcard-flag {
    position: absolute;
    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(255, 255, 255, 0.9);
    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: #f4d3e5;
}

.pcard-offer--mnp .pcard-telco {
    background: #fdeff6;
    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 #f4dbe8;
    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: #c69ab2;
}

.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: #ddc6d4;
}

.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: #fdeff5;
    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, #f7a8cd, 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, #6a3fd6);
}

.act-dist-pct {
    flex-shrink: 0;
    min-width: 32px;
    text-align: right;
    font-size: 0.72rem;
    font-weight: 700;
    color: #6a3fd6;
    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; }
}
