
:root {
    --nest-primary: #a19276;
    --nest-secondary: #8f7e61;
    --nest-bg: #ffffff;
    --nest-text: #333333;
    --nest-border: #e8e6e1;
    --nest-table-bg-subtle: #faf9f6;
    --nest-cta-bg: #193871;
    --nest-cta-btn-bg: #ffffff;
    --nest-cta-btn-color: #193871;
    --nest-font: -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
}

.nest-fees-wrapper {
    font-family: var(--nest-font);
    color: var(--nest-text);
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 16px 100px 16px;
    box-sizing: border-box;
}

.nest-fees-wrapper * {
    box-sizing: border-box;
}

.nest-prevent-copy {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ==========================================================
   상단 타이틀 영역
   ========================================================== */
.nest-fees-header {
    text-align: center;
    margin-bottom: 48px;
}
.nest-fees-header-sub {
    font-size: 13.5px;
    letter-spacing: 3px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}
.nest-fees-header-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.8px;
    line-height: 1.3;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .nest-fees-wrapper {
        padding: 50px 12px 70px 12px;
    }
    .nest-fees-header {
        margin-bottom: 24px;
    }
    .nest-fees-header-title {
        font-size: 25px;
    }
}

/* ==========================================================
   ✨ 시안 A: 오리지널 테이블 (960px 이하 1열 반응형 전환 보강)
   ========================================================== */
.nest-layout-original-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
    width: 100%;
}

/* 960px 이하에서 1열 스택으로 전환 */
@media (max-width: 960px) {
    .nest-layout-original-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.nest-original-col {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nest-original-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background: #ffffff;
    border: 1px solid var(--nest-border);
    font-size: 14.5px;
}

.nest-original-table thead th {
    background-color: var(--nest-primary);
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    padding: 13px 10px;
    font-size: 14.5px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.nest-original-table thead th:last-child {
    border-right: none;
}
.nest-original-table thead th.col-cat { width: 22%; }
.nest-original-table thead th.col-name { width: 48%; }
.nest-original-table thead th.col-price { width: 30%; }

.nest-original-table tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--nest-border);
    border-right: 1px solid var(--nest-border);
    vertical-align: middle;
    word-break: keep-all;
}
.nest-original-table tbody td:last-child {
    border-right: none;
}

.nest-original-table tbody td.cat-cell {
    background-color: var(--nest-table-bg-subtle);
    font-weight: 700;
    color: var(--nest-secondary);
    text-align: center;
    font-size: 14.5px;
    border-right: 1px solid var(--nest-border);
}

.nest-original-table tbody td.name-cell {
    color: #333333;
    font-weight: 500;
    text-align: center;
}

.nest-original-table tbody td.price-cell {
    color: #111111;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

@media (max-width: 480px) {
    .nest-original-table {
        font-size: 13px;
    }
    .nest-original-table thead th {
        padding: 10px 6px;
        font-size: 13px;
    }
    .nest-original-table tbody td {
        padding: 10px 8px;
    }
    .nest-original-table thead th.col-cat { width: 20%; }
    .nest-original-table thead th.col-name { width: 46%; }
    .nest-original-table thead th.col-price { width: 34%; }
}

/* ==========================================================
   ✨ 시안 D: 모던 스티키 캐러셀 탭 바 (독립 Pill 버튼 + 좌우 화살표)
   ========================================================== */
.nest-layout-segmented {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

/* 데스크톱에서는 탭 바 숨김, 모바일(768px 이하)에서만 노출 */
.nest-segmented-sticky-bar {
    display: none;
}

@media (max-width: 768px) {
    .nest-segmented-sticky-bar {
        display: block;
        position: sticky;
        top: 60px;
        z-index: 80;
        padding: 6px 0;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        margin-bottom: 24px;
        border-radius: 40px;
    }
}

.nest-segmented-nav-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 4px;
}

.nest-segmented-nav-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}
.nest-segmented-nav-scroll::-webkit-scrollbar {
    display: none;
}

.nest-nav-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #334155;
    transition: all 0.2s ease;
    outline: none;
}
.nest-nav-arrow-btn:hover {
    background: #f8fafc;
    color: #0f172a;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.nest-nav-arrow-btn.prev { left: -14px; }
.nest-nav-arrow-btn.next { right: -14px; }
.nest-nav-arrow-btn.hidden { opacity: 0; pointer-events: none; }

@media (max-width: 768px) {
    .nest-nav-arrow-btn {
        display: none;
    }
}

.nest-nav-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 24px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.nest-nav-fade.left {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
}
.nest-nav-fade.right {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
    opacity: 1;
}

.nest-segmented-tab {
    flex-shrink: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 9px 20px;
    border-radius: 30px;
    font-size: 14.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.nest-segmented-tab:hover {
    background: #edf2f7;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.nest-segmented-tab.active {
    background: var(--nest-primary);
    color: #ffffff;
    border-color: var(--nest-primary);
    box-shadow: 0 4px 14px rgba(161, 146, 118, 0.38);
    transform: translateY(-1px);
}

/* 연속 스크롤 섹션 */
.nest-segmented-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nest-segmented-group {
    background: #ffffff;
    border: 1px solid var(--nest-border);
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    scroll-margin-top: 140px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.nest-segmented-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--nest-table-bg-subtle);
}

.nest-group-badge {
    width: 5px;
    height: 20px;
    background: var(--nest-primary);
    border-radius: 3px;
    display: inline-block;
}

.nest-segmented-group-title h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
}

.nest-group-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
}

.nest-segmented-table {
    width: 100%;
    border-collapse: collapse;
}

.nest-segmented-table td {
    padding: 14px 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
}

.nest-segmented-table tr:last-child td {
    border-bottom: none;
}

.nest-segmented-table .name-cell {
    color: #334155;
    font-weight: 500;
}

.nest-segmented-table .price-cell {
    text-align: right;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

/* 하단 주의사항 */
.nest-fees-footer-note {
    margin-top: 28px;
    margin-bottom: 48px;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    text-align: center;
    background: #fdfdfd;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
}

/* ==========================================================
   🎯 프리미엄 인라인 CTA 카드
   ========================================================== */
.nest-cta-card {
    background: var(--nest-cta-bg, linear-gradient(135deg, #193871 0%, #2a4d96 100%));
    border-radius: 20px;
    padding: 36px 40px;
    color: #ffffff;
    box-shadow: 0 12px 36px rgba(25, 56, 113, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 40px auto 0 auto;
    position: relative;
    overflow: hidden;
}

.nest-cta-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.nest-cta-content {
    flex: 1;
    min-width: 0;
}

.nest-cta-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
}

.nest-cta-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
    color: #ffffff;
    word-break: keep-all;
}

.nest-cta-action {
    flex-shrink: 0;
}

.nest-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--nest-cta-btn-bg, #ffffff);
    color: var(--nest-cta-btn-color, #193871);
    font-size: 15.5px;
    font-weight: 800;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

.nest-cta-btn:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: var(--nest-cta-btn-color, #193871);
}

.nest-cta-btn svg {
    transition: transform 0.2s ease;
}
.nest-cta-btn:hover svg {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .nest-cta-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 28px 22px;
        gap: 20px;
        border-radius: 16px;
    }
    .nest-cta-title {
        font-size: 17px;
    }
    .nest-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}

/* 시안 B, C 스타일 */
.nest-layout-accordion { display: flex; flex-direction: column; gap: 10px; }
.nest-accordion-item { border: 1px solid var(--nest-border); border-radius: 8px; overflow: hidden; background: #ffffff; transition: box-shadow 0.2s ease; }
.nest-accordion-item.active { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); border-color: var(--nest-primary); }
.nest-accordion-header { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #ffffff; border: none; cursor: pointer; font-size: 16px; font-weight: 700; color: #1e293b; text-align: left; }
.nest-accordion-item.active .nest-accordion-header { background: var(--nest-table-bg-subtle); color: var(--nest-secondary); }
.nest-accordion-count { font-size: 12px; color: #888888; margin-left: auto; margin-right: 14px; }
.nest-accordion-icon { width: 10px; height: 10px; border-right: 2px solid #888888; border-bottom: 2px solid #888888; transform: rotate(45deg); transition: transform 0.25s ease; }
.nest-accordion-item.active .nest-accordion-icon { transform: rotate(-135deg); border-color: var(--nest-primary); }
.nest-accordion-body { display: none; padding: 10px 16px 16px 16px; border-top: 1px solid var(--nest-border); background: #ffffff; }
.nest-accordion-item.active .nest-accordion-body { display: block; }
.nest-accordion-table { width: 100%; border-collapse: collapse; }
.nest-accordion-table td { padding: 12px 8px; border-bottom: 1px dashed #eef0f2; font-size: 14px; }
.nest-accordion-table tr:last-child td { border-bottom: none; }
.nest-accordion-table .name-cell { font-weight: 500; color: #333333; }
.nest-accordion-table .price-cell { text-align: right; font-weight: 800; color: #111111; white-space: nowrap; }

.nest-layout-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.nest-card-item { background: #ffffff; border: 1px solid var(--nest-border); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03); }
.nest-card-header { background-color: var(--nest-primary); color: #ffffff; padding: 14px 18px; }
.nest-card-header h3 { margin: 0; font-size: 16px; font-weight: 700; color: #ffffff; }
.nest-card-body { padding: 12px 16px; }
.nest-card-table { width: 100%; border-collapse: collapse; }
.nest-card-table td { padding: 10px 4px; border-bottom: 1px solid #f1f3f5; font-size: 13.5px; }
.nest-card-table tr:last-child td { border-bottom: none; }
.nest-card-table .name-cell { color: #444444; }
.nest-card-table .price-cell { text-align: right; font-weight: 700; color: #111111; }

